From 5e81c8a6b8faabde1be97dc98e6fee2ee6bd5f0f Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 18 Sep 2026 07:39:52 +0000 Subject: [PATCH 1/3] wip(spec): declaration-text snapshot generator + first generation Claude-Session: https://claude.ai/code/session_019srGWGCBBCBHqcDoRZpQRh Co-authored-by: Claude --- packages/spec/api-surface-declarations/ai.txt | 3061 + .../spec/api-surface-declarations/api.txt | 34537 ++++++++ .../api-surface-declarations/automation.txt | 3937 + .../api-surface-declarations/contracts.txt | 9763 ++ .../spec/api-surface-declarations/data.txt | 23832 +++++ .../api-surface-declarations/identity.txt | 1259 + .../api-surface-declarations/integration.txt | 1133 + .../spec/api-surface-declarations/kernel.txt | 8628 ++ .../api-surface-declarations/marketplace.txt | 884 + .../meta-spelling.txt | 49 + packages/spec/api-surface-declarations/qa.txt | 398 + .../spec/api-surface-declarations/root.txt | 45264 ++++++++++ .../api-surface-declarations/security.txt | 1418 + .../spec/api-surface-declarations/shared.txt | 819 + .../spec/api-surface-declarations/studio.txt | 860 + .../spec/api-surface-declarations/system.txt | 73283 ++++++++++++++++ packages/spec/api-surface-declarations/ui.txt | 28581 ++++++ packages/spec/package.json | 2 + .../scripts/build-api-surface-declarations.ts | 444 + 19 files changed, 238152 insertions(+) create mode 100644 packages/spec/api-surface-declarations/ai.txt create mode 100644 packages/spec/api-surface-declarations/api.txt create mode 100644 packages/spec/api-surface-declarations/automation.txt create mode 100644 packages/spec/api-surface-declarations/contracts.txt create mode 100644 packages/spec/api-surface-declarations/data.txt create mode 100644 packages/spec/api-surface-declarations/identity.txt create mode 100644 packages/spec/api-surface-declarations/integration.txt create mode 100644 packages/spec/api-surface-declarations/kernel.txt create mode 100644 packages/spec/api-surface-declarations/marketplace.txt create mode 100644 packages/spec/api-surface-declarations/meta-spelling.txt create mode 100644 packages/spec/api-surface-declarations/qa.txt create mode 100644 packages/spec/api-surface-declarations/root.txt create mode 100644 packages/spec/api-surface-declarations/security.txt create mode 100644 packages/spec/api-surface-declarations/shared.txt create mode 100644 packages/spec/api-surface-declarations/studio.txt create mode 100644 packages/spec/api-surface-declarations/system.txt create mode 100644 packages/spec/api-surface-declarations/ui.txt create mode 100644 packages/spec/scripts/build-api-surface-declarations.ts diff --git a/packages/spec/api-surface-declarations/ai.txt b/packages/spec/api-surface-declarations/ai.txt new file mode 100644 index 00000000000..fc6e6315bc4 --- /dev/null +++ b/packages/spec/api-surface-declarations/ai.txt @@ -0,0 +1,3061 @@ +# @objectstack/spec — the .d.ts DECLARATION TEXT of every export of `./ai`. +# +# The SHAPE half of the ADR-0059 public-API pin, and the readable counterpart of +# api-surface/ai.json's breadth half. That file pins each export by +# `name (kind)`, which a signature change, a renamed interface field and a dropped +# union member all leave untouched. This file pins the declaration text, so each of +# those moves a line here. Text and NOT a hash, deliberately: a diff a reviewer can +# read is what makes contract review a guard rather than a rubber stamp. +# +# Verbatim from the PACKED `.d.ts` reached through this package's `exports` map — the +# declarations a consumer installs, never `src/`. A declaration's leading TSDoc is +# excluded: documentation drift is `check:docs`'s axis, not this one. +# +# entry: ./ai +# exported names: 182 +# declarations: 182 +# +# GENERATED — ⛔ never hand-edited. Regenerate after a real build: +# pnpm --filter @objectstack/spec build && pnpm --filter @objectstack/spec gen:api-surface-declarations +# Gated by `check:api-surface-declarations`; a hand edit is a red gate, not a change. + +// ── AIModelConfigSchema (const) ── +declare const AIModelConfigSchema: z.ZodObject<{ + provider: z.ZodDefault>; + model: z.ZodString; + temperature: z.ZodDefault; + maxTokens: z.ZodOptional; + topP: z.ZodOptional; +}, z.core.$strict>; + +// ── AIUsageRecord (type) ── +type AIUsageRecord = z.input; + +// ── AIUsageRecordSchema (const) ── +declare const AIUsageRecordSchema: z.ZodObject<{ + model: z.ZodString; + usage: z.ZodObject<{ + promptTokens: z.ZodNumber; + completionTokens: z.ZodNumber; + totalTokens: z.ZodNumber; + }, z.core.$strip>; + costUsd: z.ZodNumber; + latencyMs: z.ZodOptional; + timestamp: z.ZodOptional; +}, z.core.$strip>; + +// ── Agent (type) ── +type Agent = z.input; + +// ── AgentParsed (type) ── +type AgentParsed = z.infer; + +// ── AgentSchema (const) ── +declare const AgentSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + avatar: z.ZodOptional; + role: z.ZodString; + instructions: z.ZodString; + model: z.ZodOptional>; + model: z.ZodString; + temperature: z.ZodDefault; + maxTokens: z.ZodOptional; + topP: z.ZodOptional; + }, z.core.$strict>>; + lifecycle: z.ZodOptional; + contextSchema: z.ZodOptional>; + initial: z.ZodString; + states: z.ZodRecord>>; + on: z.ZodOptional; + cond: z.ZodOptional>; + }, z.core.$strict>]>>; + actions: z.ZodOptional>; + }, z.core.$strict>]>>>; + description: z.ZodOptional; + }, z.core.$strict>, z.ZodArray; + cond: z.ZodOptional>; + }, z.core.$strict>]>>; + actions: z.ZodOptional>; + }, z.core.$strict>]>>>; + description: z.ZodOptional; + }, z.core.$strict>>]>>>; + }, z.core.$strict>>; + surface: z.ZodDefault>; + skills: z.ZodOptional>; + tools: z.ZodOptional; + knowledge: z.ZodOptional; + active: z.ZodDefault; + access: z.ZodOptional>; + permissions: z.ZodOptional>; + planning: z.ZodOptional; + }, z.core.$strict>>; + memory: z.ZodOptional; + store: z.ZodDefault>; + maxEntries: z.ZodOptional; + }, z.core.$strict>>; + reflectionInterval: z.ZodOptional; + }, z.core.$strict>>; + guardrails: z.ZodOptional; + maxExecutionTimeSec: z.ZodOptional; + blockedTopics: z.ZodOptional>; + }, z.core.$strict>>; + structuredOutput: z.ZodOptional; + schema: z.ZodOptional>; + strict: z.ZodDefault; + retryOnValidationFailure: z.ZodDefault; + maxRetries: z.ZodDefault; + fallbackFormat: z.ZodOptional>; + transformPipeline: z.ZodOptional>>; + }, z.core.$strict>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── BUILD_PROGRESS_FRAME_TYPE (const) ── +declare const BUILD_PROGRESS_FRAME_TYPE = "data-build-progress"; + +// ── BUILD_PROGRESS_PHASES (const) ── +declare const BUILD_PROGRESS_PHASES: readonly ["structure", "data", "verify", "done"]; + +// ── BlueprintApp (type) ── +type BlueprintApp = z.input; + +// ── BlueprintAppParsed (type) ── +type BlueprintAppParsed = z.infer; + +// ── BlueprintAppSchema (const) ── +declare const BlueprintAppSchema: z.ZodObject<{ + name: z.ZodString; + label: z.ZodOptional; + icon: z.ZodOptional; + nav: z.ZodOptional>; + target: z.ZodString; + label: z.ZodOptional; + icon: z.ZodOptional; + viewName: z.ZodOptional; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── BlueprintCondition (type) ── +type BlueprintCondition = z.input; + +// ── BlueprintConditionSchema (const) ── +declare const BlueprintConditionSchema: z.ZodObject<{ + field: z.ZodString; + op: z.ZodEnum<{ + gt: "gt"; + gte: "gte"; + lt: "lt"; + lte: "lte"; + eq: "eq"; + ne: "ne"; + }>; + value: z.ZodUnion; +}, z.core.$strip>; + +// ── BlueprintDashboard (type) ── +type BlueprintDashboard = z.input; + +// ── BlueprintDashboardSchema (const) ── +declare const BlueprintDashboardSchema: z.ZodObject<{ + name: z.ZodString; + label: z.ZodOptional; + widgets: z.ZodOptional; + object: z.ZodOptional; + chart: z.ZodOptional>; + measure: z.ZodOptional; + groupBy: z.ZodOptional; + condition: z.ZodOptional; + value: z.ZodUnion; + }, z.core.$strip>>; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── BlueprintField (type) ── +type BlueprintField = z.input; + +// ── BlueprintFieldSchema (const) ── +declare const BlueprintFieldSchema: z.ZodObject<{ + name: z.ZodString; + label: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + email: "email"; + url: "url"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + required: z.ZodOptional; + reference: z.ZodOptional; + options: z.ZodOptional>>; + summaryOperations: z.ZodOptional; + field: z.ZodOptional; + relationshipField: z.ZodOptional; + conditions: z.ZodOptional; + value: z.ZodUnion; + }, z.core.$strip>>>; + filter: z.ZodOptional>>; + }, z.core.$strip>>; + expression: z.ZodOptional; +}, z.core.$strip>; + +// ── BlueprintNavItem (type) ── +type BlueprintNavItem = z.input; + +// ── BlueprintNavItemParsed (type) ── +type BlueprintNavItemParsed = z.infer; + +// ── BlueprintNavItemSchema (const) ── +declare const BlueprintNavItemSchema: z.ZodObject<{ + type: z.ZodDefault>; + target: z.ZodString; + label: z.ZodOptional; + icon: z.ZodOptional; + viewName: z.ZodOptional; +}, z.core.$strip>; + +// ── BlueprintObject (type) ── +type BlueprintObject = z.input; + +// ── BlueprintObjectSchema (const) ── +declare const BlueprintObjectSchema: z.ZodObject<{ + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + fields: z.ZodArray; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + email: "email"; + url: "url"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + required: z.ZodOptional; + reference: z.ZodOptional; + options: z.ZodOptional>>; + summaryOperations: z.ZodOptional; + field: z.ZodOptional; + relationshipField: z.ZodOptional; + conditions: z.ZodOptional; + value: z.ZodUnion; + }, z.core.$strip>>>; + filter: z.ZodOptional>>; + }, z.core.$strip>>; + expression: z.ZodOptional; + }, z.core.$strip>>; + sharingModel: z.ZodOptional>; + nameField: z.ZodOptional; +}, z.core.$strip>; + +// ── BlueprintSeed (type) ── +type BlueprintSeed = z.input; + +// ── BlueprintSeedSchema (const) ── +declare const BlueprintSeedSchema: z.ZodObject<{ + object: z.ZodString; + records: z.ZodArray>; +}, z.core.$strip>; + +// ── BlueprintSummaryOperations (type) ── +type BlueprintSummaryOperations = z.input; + +// ── BlueprintSummaryOperationsSchema (const) ── +declare const BlueprintSummaryOperationsSchema: z.ZodObject<{ + object: z.ZodString; + function: z.ZodEnum<{ + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + }>; + field: z.ZodOptional; + relationshipField: z.ZodOptional; + conditions: z.ZodOptional; + value: z.ZodUnion; + }, z.core.$strip>>>; + filter: z.ZodOptional>>; +}, z.core.$strip>; + +// ── BlueprintView (type) ── +type BlueprintView = z.input; + +// ── BlueprintViewParsed (type) ── +type BlueprintViewParsed = z.infer; + +// ── BlueprintViewSchema (const) ── +declare const BlueprintViewSchema: z.ZodObject<{ + object: z.ZodString; + name: z.ZodString; + label: z.ZodOptional; + type: z.ZodDefault>; + columns: z.ZodOptional>; + groupBy: z.ZodOptional; +}, z.core.$strip>; + +// ── BlueprintWidgetCondition (type) ── +type BlueprintWidgetCondition = z.input; + +// ── BlueprintWidgetConditionSchema (const) ── +declare const BlueprintWidgetConditionSchema: z.ZodObject<{ + field: z.ZodString; + op: z.ZodEnum<{ + gt: "gt"; + gte: "gte"; + lt: "lt"; + lte: "lte"; + eq: "eq"; + ne: "ne"; + }>; + value: z.ZodUnion; +}, z.core.$strip>; + +// ── BuildProgressFrame (type) ── +type BuildProgressFrame = z.input; + +// ── BuildProgressFrameSchema (const) ── +declare const BuildProgressFrameSchema: z.ZodObject<{ + phase: z.ZodEnum<{ + done: "done"; + data: "data"; + structure: "structure"; + verify: "verify"; + }>; + hop: z.ZodOptional; + tool: z.ZodOptional; +}, z.core.$loose>; + +// ── BuildProgressPhase (type) ── +type BuildProgressPhase = z.input; + +// ── BuildProgressPhaseSchema (const) ── +declare const BuildProgressPhaseSchema: z.ZodEnum<{ + done: "done"; + data: "data"; + structure: "structure"; + verify: "verify"; +}>; + +// ── CodeContentSchema (const) ── +declare const CodeContentSchema: z.ZodObject<{ + type: z.ZodLiteral<"code">; + text: z.ZodString; + language: z.ZodDefault>; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── ConversationAnalytics (type) ── +type ConversationAnalytics = z.input; + +// ── ConversationAnalyticsParsed (type) ── +type ConversationAnalyticsParsed = z.infer; + +// ── ConversationAnalyticsSchema (const) ── +declare const ConversationAnalyticsSchema: z.ZodObject<{ + sessionId: z.ZodString; + totalMessages: z.ZodNumber; + userMessages: z.ZodNumber; + assistantMessages: z.ZodNumber; + systemMessages: z.ZodNumber; + totalTokens: z.ZodNumber; + averageTokensPerMessage: z.ZodNumber; + peakTokenUsage: z.ZodNumber; + pruningEvents: z.ZodDefault; + summarizationEvents: z.ZodDefault; + tokensSavedByPruning: z.ZodDefault; + tokensSavedBySummarization: z.ZodDefault; + durationSeconds: z.ZodOptional; + duration: z.ZodOptional; + firstMessageAt: z.ZodOptional; + lastMessageAt: z.ZodOptional; +}, z.core.$strip>; + +// ── ConversationContext (type) ── +type ConversationContext = z.input; + +// ── ConversationContextSchema (const) ── +declare const ConversationContextSchema: z.ZodObject<{ + sessionId: z.ZodString; + userId: z.ZodOptional; + agentId: z.ZodOptional; + object: z.ZodOptional; + recordId: z.ZodOptional; + scope: z.ZodOptional>; + systemMessage: z.ZodOptional; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── ConversationMessage (type) ── +type ConversationMessage = z.input; + +// ── ConversationMessageParsed (type) ── +type ConversationMessageParsed = z.infer; + +// ── ConversationMessageSchema (const) ── +declare const ConversationMessageSchema: z.ZodObject<{ + id: z.ZodString; + timestamp: z.ZodString; + role: z.ZodEnum<{ + function: "function"; + user: "user"; + system: "system"; + tool: "tool"; + assistant: "assistant"; + }>; + content: z.ZodArray; + text: z.ZodString; + metadata: z.ZodOptional>; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"image">; + imageUrl: z.ZodString; + detail: z.ZodDefault>>; + metadata: z.ZodOptional>; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"file">; + fileUrl: z.ZodString; + mimeType: z.ZodString; + fileName: z.ZodOptional; + metadata: z.ZodOptional>; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"code">; + text: z.ZodString; + language: z.ZodDefault>; + metadata: z.ZodOptional>; + }, z.core.$strip>]>>; + functionCall: z.ZodOptional; + }, z.core.$strip>>; + toolCalls: z.ZodOptional>; + function: z.ZodObject<{ + name: z.ZodString; + arguments: z.ZodString; + result: z.ZodOptional; + }, z.core.$strip>; + }, z.core.$strip>>>; + toolCallId: z.ZodOptional; + name: z.ZodOptional; + tokens: z.ZodOptional>; + cost: z.ZodOptional; + pinned: z.ZodDefault>; + importance: z.ZodOptional; + embedding: z.ZodOptional>; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── ConversationSession (type) ── +type ConversationSession = z.input; + +// ── ConversationSessionParsed (type) ── +type ConversationSessionParsed = z.infer; + +// ── ConversationSessionSchema (const) ── +declare const ConversationSessionSchema: z.ZodObject<{ + id: z.ZodString; + name: z.ZodOptional; + context: z.ZodObject<{ + sessionId: z.ZodString; + userId: z.ZodOptional; + agentId: z.ZodOptional; + object: z.ZodOptional; + recordId: z.ZodOptional; + scope: z.ZodOptional>; + systemMessage: z.ZodOptional; + metadata: z.ZodOptional>; + }, z.core.$strip>; + modelId: z.ZodOptional; + tokenBudget: z.ZodObject<{ + maxTokens: z.ZodNumber; + maxPromptTokens: z.ZodOptional; + maxCompletionTokens: z.ZodOptional; + reserveTokens: z.ZodDefault; + bufferPercentage: z.ZodDefault; + strategy: z.ZodDefault>; + slidingWindowSize: z.ZodOptional; + minImportanceScore: z.ZodOptional; + semanticThreshold: z.ZodOptional; + enableSummarization: z.ZodDefault; + summarizationThreshold: z.ZodOptional; + summaryModel: z.ZodOptional; + warnThreshold: z.ZodDefault; + }, z.core.$strip>; + messages: z.ZodDefault; + content: z.ZodArray; + text: z.ZodString; + metadata: z.ZodOptional>; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"image">; + imageUrl: z.ZodString; + detail: z.ZodDefault>>; + metadata: z.ZodOptional>; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"file">; + fileUrl: z.ZodString; + mimeType: z.ZodString; + fileName: z.ZodOptional; + metadata: z.ZodOptional>; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"code">; + text: z.ZodString; + language: z.ZodDefault>; + metadata: z.ZodOptional>; + }, z.core.$strip>]>>; + functionCall: z.ZodOptional; + }, z.core.$strip>>; + toolCalls: z.ZodOptional>; + function: z.ZodObject<{ + name: z.ZodString; + arguments: z.ZodString; + result: z.ZodOptional; + }, z.core.$strip>; + }, z.core.$strip>>>; + toolCallId: z.ZodOptional; + name: z.ZodOptional; + tokens: z.ZodOptional>; + cost: z.ZodOptional; + pinned: z.ZodDefault>; + importance: z.ZodOptional; + embedding: z.ZodOptional>; + metadata: z.ZodOptional>; + }, z.core.$strip>>>; + tokens: z.ZodOptional; + completionTokens: z.ZodDefault; + totalTokens: z.ZodDefault; + budgetLimit: z.ZodNumber; + budgetUsed: z.ZodDefault; + budgetRemaining: z.ZodNumber; + budgetPercentage: z.ZodNumber; + messageCount: z.ZodDefault; + prunedMessageCount: z.ZodDefault; + summarizedMessageCount: z.ZodDefault; + }, z.core.$strip>>; + totalTokens: z.ZodOptional>; + totalCost: z.ZodOptional; + status: z.ZodDefault>; + createdAt: z.ZodString; + updatedAt: z.ZodString; + expiresAt: z.ZodOptional; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── ConversationSummary (type) ── +type ConversationSummary = z.input; + +// ── ConversationSummarySchema (const) ── +declare const ConversationSummarySchema: z.ZodObject<{ + summary: z.ZodString; + keyPoints: z.ZodOptional>; + originalTokens: z.ZodNumber; + summaryTokens: z.ZodNumber; + tokensSaved: z.ZodNumber; + messageRange: z.ZodObject<{ + startIndex: z.ZodNumber; + endIndex: z.ZodNumber; + }, z.core.$strip>; + generatedAt: z.ZodString; + modelId: z.ZodOptional; +}, z.core.$strip>; + +// ── EmbeddingModel (type) ── +type EmbeddingModel = z.input; + +// ── EmbeddingModelSchema (const) ── +declare const EmbeddingModelSchema: z.ZodObject<{ + provider: z.ZodEnum<{ + custom: "custom"; + local: "local"; + openai: "openai"; + azure_openai: "azure_openai"; + cohere: "cohere"; + huggingface: "huggingface"; + }>; + model: z.ZodString; + dimensions: z.ZodNumber; + endpoint: z.ZodOptional; + secretRef: z.ZodOptional; +}, z.core.$strip>; + +// ── FileContent (type) ── +type FileContent = z.input; + +// ── FileContentSchema (const) ── +declare const FileContentSchema: z.ZodObject<{ + type: z.ZodLiteral<"file">; + fileUrl: z.ZodString; + mimeType: z.ZodString; + fileName: z.ZodOptional; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── FileKnowledgeSource (type) ── +type FileKnowledgeSource = z.input; + +// ── FileKnowledgeSourceSchema (const) ── +declare const FileKnowledgeSourceSchema: z.ZodObject<{ + kind: z.ZodLiteral<"file">; + prefix: z.ZodString; + mimeTypes: z.ZodOptional>>; +}, z.core.$strip>; + +// ── FilterCondition (type) ── +type FilterCondition = { + [key: string]: any | z.infer | FilterCondition; +} & { + /** Logical AND - combines all conditions that must be true */ + $and?: FilterCondition[]; + /** Logical OR - at least one condition must be true */ + $or?: FilterCondition[]; + /** + * Logical NOT - negates the condition, **NULL-safely** (#5146). + * + * A row whose compared column is NULL does NOT satisfy the negated condition + * and IS returned. In SQL terms the operand is negated as + * `NOT (…) OR col IS NULL` rather than as a bare `NOT (…)`. + * + * See {@link FilterConditionSchema} for why this is part of the contract + * rather than each backend's own choice. + */ + $not?: FilterCondition; +}; + +// ── FunctionCall (type) ── +type FunctionCall = z.input; + +// ── FunctionCallSchema (const) ── +declare const FunctionCallSchema: z.ZodObject<{ + name: z.ZodString; + arguments: z.ZodString; + result: z.ZodOptional; +}, z.core.$strip>; + +// ── HttpKnowledgeSource (type) ── +type HttpKnowledgeSource = z.input; + +// ── HttpKnowledgeSourceSchema (const) ── +declare const HttpKnowledgeSourceSchema: z.ZodObject<{ + kind: z.ZodLiteral<"http">; + urls: z.ZodArray; + userAgent: z.ZodOptional; +}, z.core.$strip>; + +// ── ImageContentSchema (const) ── +declare const ImageContentSchema: z.ZodObject<{ + type: z.ZodLiteral<"image">; + imageUrl: z.ZodString; + detail: z.ZodDefault>>; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── KnowledgeChunk (type) ── +type KnowledgeChunk = z.input; + +// ── KnowledgeChunkSchema (const) ── +declare const KnowledgeChunkSchema: z.ZodObject<{ + id: z.ZodString; + documentId: z.ZodString; + index: z.ZodNumber; + content: z.ZodString; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── KnowledgeDocument (type) ── +type KnowledgeDocument = z.input; + +// ── KnowledgeDocumentSchema (const) ── +declare const KnowledgeDocumentSchema: z.ZodObject<{ + id: z.ZodString; + sourceId: z.ZodString; + sourceRecordId: z.ZodOptional; + content: z.ZodString; + title: z.ZodOptional; + metadata: z.ZodOptional>>; + permissions: z.ZodOptional>; +}, z.core.$strip>; + +// ── KnowledgeHit (type) ── +type KnowledgeHit = z.input; + +// ── KnowledgeHitSchema (const) ── +declare const KnowledgeHitSchema: z.ZodObject<{ + chunkId: z.ZodString; + documentId: z.ZodString; + sourceId: z.ZodString; + sourceRecordId: z.ZodOptional; + score: z.ZodNumber; + snippet: z.ZodString; + title: z.ZodOptional; + metadata: z.ZodOptional>>; +}, z.core.$strip>; + +// ── KnowledgeRefreshPolicy (type) ── +type KnowledgeRefreshPolicy = z.input; + +// ── KnowledgeRefreshPolicyParsed (type) ── +type KnowledgeRefreshPolicyParsed = z.infer; + +// ── KnowledgeRefreshPolicySchema (const) ── +declare const KnowledgeRefreshPolicySchema: z.ZodObject<{ + onRecordChange: z.ZodOptional>; + cron: z.ZodOptional>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"cron">; + }, z.core.$strip>]>>; +}, z.core.$strip>; + +// ── KnowledgeSource (type) ── +type KnowledgeSource = z.input; + +// ── KnowledgeSourceKind (type) ── +type KnowledgeSourceKind = z.input; + +// ── KnowledgeSourceKindSchema (const) ── +declare const KnowledgeSourceKindSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ + kind: z.ZodLiteral<"object">; + object: z.ZodString; + contentFields: z.ZodArray; + metadataFields: z.ZodOptional>>; + where: z.ZodOptional>; +}, z.core.$strip>, z.ZodObject<{ + kind: z.ZodLiteral<"file">; + prefix: z.ZodString; + mimeTypes: z.ZodOptional>>; +}, z.core.$strip>, z.ZodObject<{ + kind: z.ZodLiteral<"http">; + urls: z.ZodArray; + userAgent: z.ZodOptional; +}, z.core.$strip>], "kind">; + +// ── KnowledgeSourceParsed (type) ── +type KnowledgeSourceParsed = z.infer; + +// ── KnowledgeSourceSchema (const) ── +declare const KnowledgeSourceSchema: z.ZodObject<{ + id: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + adapter: z.ZodString; + adapterConfig: z.ZodOptional>>; + source: z.ZodDiscriminatedUnion<[z.ZodObject<{ + kind: z.ZodLiteral<"object">; + object: z.ZodString; + contentFields: z.ZodArray; + metadataFields: z.ZodOptional>>; + where: z.ZodOptional>; + }, z.core.$strip>, z.ZodObject<{ + kind: z.ZodLiteral<"file">; + prefix: z.ZodString; + mimeTypes: z.ZodOptional>>; + }, z.core.$strip>, z.ZodObject<{ + kind: z.ZodLiteral<"http">; + urls: z.ZodArray; + userAgent: z.ZodOptional; + }, z.core.$strip>], "kind">; + embedding: z.ZodOptional; + model: z.ZodString; + dimensions: z.ZodNumber; + endpoint: z.ZodOptional; + secretRef: z.ZodOptional; + }, z.core.$strip>>; + vectorStore: z.ZodOptional; + collection: z.ZodString; + endpoint: z.ZodOptional; + secretRef: z.ZodOptional; + dimensions: z.ZodOptional; + }, z.core.$strip>>; + refresh: z.ZodOptional>; + cron: z.ZodOptional>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"cron">; + }, z.core.$strip>]>>; + }, z.core.$strip>>>; + aiExposed: z.ZodOptional>; +}, z.core.$strip>; + +// ── MCPApprovalPolicy (type) ── +type MCPApprovalPolicy = z.input; + +// ── MCPApprovalPolicySchema (const) ── +declare const MCPApprovalPolicySchema: z.ZodEnum<{ + never: "never"; + always: "always"; + first_call: "first_call"; +}>; + +// ── MCPServerRef (type) ── +type MCPServerRef = z.input; + +// ── MCPServerRefParsed (type) ── +type MCPServerRefParsed = z.infer; + +// ── MCPServerRefSchema (const) ── +declare const MCPServerRefSchema: z.ZodObject<{ + name: z.ZodString; + label: z.ZodString; + transport: z.ZodEnum<{ + stdio: "stdio"; + http: "http"; + websocket: "websocket"; + }>; + endpoint: z.ZodString; + secretRef: z.ZodOptional; + active: z.ZodDefault; +}, z.core.$strip>; + +// ── MCPToolBinding (type) ── +type MCPToolBinding = z.input; + +// ── MCPToolBindingParsed (type) ── +type MCPToolBindingParsed = z.infer; + +// ── MCPToolBindingSchema (const) ── +declare const MCPToolBindingSchema: z.ZodObject<{ + server: z.ZodString; + toolName: z.ZodString; + aliasAs: z.ZodOptional; + approval: z.ZodDefault>; +}, z.core.$strip>; + +// ── MCPTransport (type) ── +type MCPTransport = z.input; + +// ── MCPTransportSchema (const) ── +declare const MCPTransportSchema: z.ZodEnum<{ + stdio: "stdio"; + http: "http"; + websocket: "websocket"; +}>; + +// ── MCP_AGENT_PERMISSION_SETS (const) ── +declare const MCP_AGENT_PERMISSION_SETS: readonly ["mcp_agent_data_read", "mcp_agent_data_write", "mcp_agent_restricted"]; + +// ── MCP_AGENT_PERMISSION_SET_READ (const) ── +declare const MCP_AGENT_PERMISSION_SET_READ = "mcp_agent_data_read"; + +// ── MCP_AGENT_PERMISSION_SET_RESTRICTED (const) ── +declare const MCP_AGENT_PERMISSION_SET_RESTRICTED = "mcp_agent_restricted"; + +// ── MCP_AGENT_PERMISSION_SET_WRITE (const) ── +declare const MCP_AGENT_PERMISSION_SET_WRITE = "mcp_agent_data_write"; + +// ── MCP_OAUTH_SCOPES (const) ── +declare const MCP_OAUTH_SCOPES: readonly ["data:read", "data:write", "actions:execute"]; + +// ── MCP_OAUTH_SCOPE_ACTIONS (const) ── +declare const MCP_OAUTH_SCOPE_ACTIONS = "actions:execute"; + +// ── MCP_OAUTH_SCOPE_DATA_READ (const) ── +declare const MCP_OAUTH_SCOPE_DATA_READ = "data:read"; + +// ── MCP_OAUTH_SCOPE_DATA_WRITE (const) ── +declare const MCP_OAUTH_SCOPE_DATA_WRITE = "data:write"; + +// ── McpOauthScope (type) ── +type McpOauthScope = (typeof MCP_OAUTH_SCOPES)[number]; + +// ── MessageContent (type) ── +type MessageContent = z.input; + +// ── MessageContentParsed (type) ── +type MessageContentParsed = z.infer; + +// ── MessageContentSchema (const) ── +declare const MessageContentSchema: z.ZodUnion; + text: z.ZodString; + metadata: z.ZodOptional>; +}, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"image">; + imageUrl: z.ZodString; + detail: z.ZodDefault>>; + metadata: z.ZodOptional>; +}, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"file">; + fileUrl: z.ZodString; + mimeType: z.ZodString; + fileName: z.ZodOptional; + metadata: z.ZodOptional>; +}, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"code">; + text: z.ZodString; + language: z.ZodDefault>; + metadata: z.ZodOptional>; +}, z.core.$strip>]>; + +// ── MessageContentType (type) ── +type MessageContentType = z.input; + +// ── MessageContentTypeSchema (const) ── +declare const MessageContentTypeSchema: z.ZodEnum<{ + code: "code"; + file: "file"; + text: "text"; + image: "image"; + structured: "structured"; +}>; + +// ── MessagePruningEvent (type) ── +type MessagePruningEvent = z.input; + +// ── MessagePruningEventSchema (const) ── +declare const MessagePruningEventSchema: z.ZodObject<{ + timestamp: z.ZodString; + prunedMessages: z.ZodArray; + tokens: z.ZodNumber; + importance: z.ZodOptional; + }, z.core.$strip>>; + tokensFreed: z.ZodNumber; + messagesRemoved: z.ZodNumber; + remainingTokens: z.ZodNumber; + remainingMessages: z.ZodNumber; +}, z.core.$strip>; + +// ── MessageRole (type) ── +type MessageRole = z.input; + +// ── MessageRoleSchema (const) ── +declare const MessageRoleSchema: z.ZodEnum<{ + function: "function"; + user: "user"; + system: "system"; + tool: "tool"; + assistant: "assistant"; +}>; + +// ── ModelCapability (type) ── +type ModelCapability = z.input; + +// ── ModelCapabilityParsed (type) ── +type ModelCapabilityParsed = z.infer; + +// ── ModelCapabilitySchema (const) ── +declare const ModelCapabilitySchema: z.ZodObject<{ + textGeneration: z.ZodDefault>; + textEmbedding: z.ZodDefault>; + imageGeneration: z.ZodDefault>; + imageUnderstanding: z.ZodDefault>; + functionCalling: z.ZodDefault>; + codeGeneration: z.ZodDefault>; + reasoning: z.ZodDefault>; +}, z.core.$strip>; + +// ── ModelConfig (type) ── +type ModelConfig = z.input; + +// ── ModelConfigParsed (type) ── +type ModelConfigParsed = z.infer; + +// ── ModelConfigSchema (const) ── +declare const ModelConfigSchema: z.ZodObject<{ + id: z.ZodString; + name: z.ZodString; + version: z.ZodString; + provider: z.ZodEnum<{ + custom: "custom"; + local: "local"; + openai: "openai"; + azure_openai: "azure_openai"; + anthropic: "anthropic"; + google: "google"; + cohere: "cohere"; + huggingface: "huggingface"; + }>; + capabilities: z.ZodObject<{ + textGeneration: z.ZodDefault>; + textEmbedding: z.ZodDefault>; + imageGeneration: z.ZodDefault>; + imageUnderstanding: z.ZodDefault>; + functionCalling: z.ZodDefault>; + codeGeneration: z.ZodDefault>; + reasoning: z.ZodDefault>; + }, z.core.$strip>; + limits: z.ZodObject<{ + maxTokens: z.ZodNumber; + contextWindow: z.ZodNumber; + maxOutputTokens: z.ZodOptional; + rateLimit: z.ZodOptional; + tokensPerMinute: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + pricing: z.ZodOptional>; + inputCostPer1kTokens: z.ZodOptional; + outputCostPer1kTokens: z.ZodOptional; + embeddingCostPer1kTokens: z.ZodOptional; + }, z.core.$strip>>; + endpoint: z.ZodOptional; + apiKey: z.ZodOptional; + secretRef: z.ZodOptional; + region: z.ZodOptional; + description: z.ZodOptional; + tags: z.ZodOptional>; + deprecated: z.ZodDefault>; + recommendedFor: z.ZodOptional>; +}, z.core.$strip>; + +// ── ModelLimits (type) ── +type ModelLimits = z.input; + +// ── ModelLimitsSchema (const) ── +declare const ModelLimitsSchema: z.ZodObject<{ + maxTokens: z.ZodNumber; + contextWindow: z.ZodNumber; + maxOutputTokens: z.ZodOptional; + rateLimit: z.ZodOptional; + tokensPerMinute: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── ModelPricing (type) ── +type ModelPricing = z.input; + +// ── ModelPricingParsed (type) ── +type ModelPricingParsed = z.infer; + +// ── ModelPricingSchema (const) ── +declare const ModelPricingSchema: z.ZodObject<{ + currency: z.ZodDefault>; + inputCostPer1kTokens: z.ZodOptional; + outputCostPer1kTokens: z.ZodOptional; + embeddingCostPer1kTokens: z.ZodOptional; +}, z.core.$strip>; + +// ── ModelProvider (type) ── +type ModelProvider = z.input; + +// ── ModelProviderSchema (const) ── +declare const ModelProviderSchema: z.ZodEnum<{ + custom: "custom"; + local: "local"; + openai: "openai"; + azure_openai: "azure_openai"; + anthropic: "anthropic"; + google: "google"; + cohere: "cohere"; + huggingface: "huggingface"; +}>; + +// ── ModelRegistry (type) ── +type ModelRegistry = z.input; + +// ── ModelRegistryEntry (type) ── +type ModelRegistryEntry = z.input; + +// ── ModelRegistryEntryParsed (type) ── +type ModelRegistryEntryParsed = z.infer; + +// ── ModelRegistryEntrySchema (const) ── +declare const ModelRegistryEntrySchema: z.ZodObject<{ + model: z.ZodObject<{ + id: z.ZodString; + name: z.ZodString; + version: z.ZodString; + provider: z.ZodEnum<{ + custom: "custom"; + local: "local"; + openai: "openai"; + azure_openai: "azure_openai"; + anthropic: "anthropic"; + google: "google"; + cohere: "cohere"; + huggingface: "huggingface"; + }>; + capabilities: z.ZodObject<{ + textGeneration: z.ZodDefault>; + textEmbedding: z.ZodDefault>; + imageGeneration: z.ZodDefault>; + imageUnderstanding: z.ZodDefault>; + functionCalling: z.ZodDefault>; + codeGeneration: z.ZodDefault>; + reasoning: z.ZodDefault>; + }, z.core.$strip>; + limits: z.ZodObject<{ + maxTokens: z.ZodNumber; + contextWindow: z.ZodNumber; + maxOutputTokens: z.ZodOptional; + rateLimit: z.ZodOptional; + tokensPerMinute: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + pricing: z.ZodOptional>; + inputCostPer1kTokens: z.ZodOptional; + outputCostPer1kTokens: z.ZodOptional; + embeddingCostPer1kTokens: z.ZodOptional; + }, z.core.$strip>>; + endpoint: z.ZodOptional; + apiKey: z.ZodOptional; + secretRef: z.ZodOptional; + region: z.ZodOptional; + description: z.ZodOptional; + tags: z.ZodOptional>; + deprecated: z.ZodDefault>; + recommendedFor: z.ZodOptional>; + }, z.core.$strip>; + status: z.ZodDefault>; + priority: z.ZodDefault; + fallbackModels: z.ZodOptional>; + healthCheck: z.ZodOptional; + intervalSeconds: z.ZodDefault; + lastChecked: z.ZodOptional; + status: z.ZodDefault>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── ModelRegistryParsed (type) ── +type ModelRegistryParsed = z.infer; + +// ── ModelRegistrySchema (const) ── +declare const ModelRegistrySchema: z.ZodObject<{ + name: z.ZodString; + models: z.ZodRecord; + capabilities: z.ZodObject<{ + textGeneration: z.ZodDefault>; + textEmbedding: z.ZodDefault>; + imageGeneration: z.ZodDefault>; + imageUnderstanding: z.ZodDefault>; + functionCalling: z.ZodDefault>; + codeGeneration: z.ZodDefault>; + reasoning: z.ZodDefault>; + }, z.core.$strip>; + limits: z.ZodObject<{ + maxTokens: z.ZodNumber; + contextWindow: z.ZodNumber; + maxOutputTokens: z.ZodOptional; + rateLimit: z.ZodOptional; + tokensPerMinute: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + pricing: z.ZodOptional>; + inputCostPer1kTokens: z.ZodOptional; + outputCostPer1kTokens: z.ZodOptional; + embeddingCostPer1kTokens: z.ZodOptional; + }, z.core.$strip>>; + endpoint: z.ZodOptional; + apiKey: z.ZodOptional; + secretRef: z.ZodOptional; + region: z.ZodOptional; + description: z.ZodOptional; + tags: z.ZodOptional>; + deprecated: z.ZodDefault>; + recommendedFor: z.ZodOptional>; + }, z.core.$strip>; + status: z.ZodDefault>; + priority: z.ZodDefault; + fallbackModels: z.ZodOptional>; + healthCheck: z.ZodOptional; + intervalSeconds: z.ZodDefault; + lastChecked: z.ZodOptional; + status: z.ZodDefault>; + }, z.core.$strip>>; + }, z.core.$strip>>; + promptTemplates: z.ZodOptional>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"template">; + }, z.core.$strip>]>>; + user: z.ZodUnion>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"template">; + }, z.core.$strip>]>; + assistant: z.ZodOptional; + variables: z.ZodOptional>; + required: z.ZodDefault; + defaultValue: z.ZodOptional; + description: z.ZodOptional; + validation: z.ZodOptional; + maxLength: z.ZodOptional; + pattern: z.ZodOptional; + enum: z.ZodOptional>; + }, z.core.$strip>>; + }, z.core.$strip>>>; + modelId: z.ZodOptional; + temperature: z.ZodOptional; + maxTokens: z.ZodOptional; + topP: z.ZodOptional; + frequencyPenalty: z.ZodOptional; + presencePenalty: z.ZodOptional; + stopSequences: z.ZodOptional>; + version: z.ZodDefault>; + description: z.ZodOptional; + category: z.ZodOptional; + tags: z.ZodOptional>; + examples: z.ZodOptional; + output: z.ZodString; + }, z.core.$strip>>>; + }, z.core.$strip>>>; + defaultModel: z.ZodOptional; + enableAutoFallback: z.ZodDefault; +}, z.core.$strip>; + +// ── ModelSelectionCriteria (type) ── +type ModelSelectionCriteria = z.input; + +// ── ModelSelectionCriteriaParsed (type) ── +type ModelSelectionCriteriaParsed = z.infer; + +// ── ModelSelectionCriteriaSchema (const) ── +declare const ModelSelectionCriteriaSchema: z.ZodObject<{ + capabilities: z.ZodOptional>; + maxCostPer1kTokens: z.ZodOptional; + minContextWindow: z.ZodOptional; + provider: z.ZodOptional>; + tags: z.ZodOptional>; + excludeDeprecated: z.ZodDefault; +}, z.core.$strip>; + +// ── ObjectKnowledgeSource (type) ── +type ObjectKnowledgeSource = z.input; + +// ── ObjectKnowledgeSourceSchema (const) ── +declare const ObjectKnowledgeSourceSchema: z.ZodObject<{ + kind: z.ZodLiteral<"object">; + object: z.ZodString; + contentFields: z.ZodArray; + metadataFields: z.ZodOptional>>; + where: z.ZodOptional>; +}, z.core.$strip>; + +// ── PromptTemplate (type) ── +type PromptTemplate = z.input; + +// ── PromptTemplateParsed (type) ── +type PromptTemplateParsed = z.infer; + +// ── PromptTemplateSchema (const) ── +declare const PromptTemplateSchema: z.ZodObject<{ + id: z.ZodString; + name: z.ZodString; + label: z.ZodString; + system: z.ZodOptional>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"template">; + }, z.core.$strip>]>>; + user: z.ZodUnion>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"template">; + }, z.core.$strip>]>; + assistant: z.ZodOptional; + variables: z.ZodOptional>; + required: z.ZodDefault; + defaultValue: z.ZodOptional; + description: z.ZodOptional; + validation: z.ZodOptional; + maxLength: z.ZodOptional; + pattern: z.ZodOptional; + enum: z.ZodOptional>; + }, z.core.$strip>>; + }, z.core.$strip>>>; + modelId: z.ZodOptional; + temperature: z.ZodOptional; + maxTokens: z.ZodOptional; + topP: z.ZodOptional; + frequencyPenalty: z.ZodOptional; + presencePenalty: z.ZodOptional; + stopSequences: z.ZodOptional>; + version: z.ZodDefault>; + description: z.ZodOptional; + category: z.ZodOptional; + tags: z.ZodOptional>; + examples: z.ZodOptional; + output: z.ZodString; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── PromptVariable (type) ── +type PromptVariable = z.input; + +// ── PromptVariableParsed (type) ── +type PromptVariableParsed = z.infer; + +// ── PromptVariableSchema (const) ── +declare const PromptVariableSchema: z.ZodObject<{ + name: z.ZodString; + type: z.ZodDefault>; + required: z.ZodDefault; + defaultValue: z.ZodOptional; + description: z.ZodOptional; + validation: z.ZodOptional; + maxLength: z.ZodOptional; + pattern: z.ZodOptional; + enum: z.ZodOptional>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── SKILL_TRIGGER_LIST_VALUE_OPERATORS (const) ── +declare const SKILL_TRIGGER_LIST_VALUE_OPERATORS: readonly ["in", "not_in"]; + +// ── SKILL_TRIGGER_SCALAR_VALUE_OPERATORS (const) ── +declare const SKILL_TRIGGER_SCALAR_VALUE_OPERATORS: readonly ["eq", "neq"]; + +// ── Skill (type) ── +type Skill = z.input; + +// ── SkillParsed (type) ── +type SkillParsed = z.infer; + +// ── SkillSchema (const) ── +declare const SkillSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + surface: z.ZodDefault>; + instructions: z.ZodOptional; + tools: z.ZodArray; + triggerPhrases: z.ZodOptional; + triggerConditions: z.ZodOptional; + value: z.ZodUnion]>; + }, z.core.$strip>>>; + active: z.ZodDefault; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── SkillTriggerCondition (type) ── +type SkillTriggerCondition = z.input; + +// ── SkillTriggerConditionSchema (const) ── +declare const SkillTriggerConditionSchema: z.ZodObject<{ + field: z.ZodString; + operator: z.ZodEnum<{ + in: "in"; + not_in: "not_in"; + eq: "eq"; + neq: "neq"; + contains: "contains"; + }>; + value: z.ZodUnion]>; +}, z.core.$strip>; + +// ── SolutionBlueprint (type) ── +type SolutionBlueprint = z.input; + +// ── SolutionBlueprintParsed (type) ── +type SolutionBlueprintParsed = z.infer; + +// ── SolutionBlueprintSchema (const) ── +declare const SolutionBlueprintSchema: z.ZodObject<{ + summary: z.ZodOptional; + assumptions: z.ZodDefault>; + questions: z.ZodOptional>; + objects: z.ZodArray; + description: z.ZodOptional; + fields: z.ZodArray; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + email: "email"; + url: "url"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + required: z.ZodOptional; + reference: z.ZodOptional; + options: z.ZodOptional>>; + summaryOperations: z.ZodOptional; + field: z.ZodOptional; + relationshipField: z.ZodOptional; + conditions: z.ZodOptional; + value: z.ZodUnion; + }, z.core.$strip>>>; + filter: z.ZodOptional>>; + }, z.core.$strip>>; + expression: z.ZodOptional; + }, z.core.$strip>>; + sharingModel: z.ZodOptional>; + nameField: z.ZodOptional; + }, z.core.$strip>>; + views: z.ZodOptional; + type: z.ZodDefault>; + columns: z.ZodOptional>; + groupBy: z.ZodOptional; + }, z.core.$strip>>>; + dashboards: z.ZodOptional; + widgets: z.ZodOptional; + object: z.ZodOptional; + chart: z.ZodOptional>; + measure: z.ZodOptional; + groupBy: z.ZodOptional; + condition: z.ZodOptional; + value: z.ZodUnion; + }, z.core.$strip>>; + }, z.core.$strip>>>; + }, z.core.$strip>>>; + app: z.ZodOptional; + icon: z.ZodOptional; + nav: z.ZodOptional>; + target: z.ZodString; + label: z.ZodOptional; + icon: z.ZodOptional; + viewName: z.ZodOptional; + }, z.core.$strip>>>; + }, z.core.$strip>>; + seedData: z.ZodOptional>; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── SolutionBlueprintStrict (type) ── +type SolutionBlueprintStrict = z.input; + +// ── SolutionBlueprintStrictSchema (const) ── +declare const SolutionBlueprintStrictSchema: z.ZodObject<{ + summary: z.ZodString; + assumptions: z.ZodArray; + questions: z.ZodNullable>; + objects: z.ZodArray; + description: z.ZodNullable; + fields: z.ZodArray; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + email: "email"; + url: "url"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + required: z.ZodNullable; + reference: z.ZodNullable; + options: z.ZodNullable>>; + summaryOperations: z.ZodNullable; + field: z.ZodNullable; + relationshipField: z.ZodNullable; + conditions: z.ZodNullable; + value: z.ZodUnion; + }, z.core.$strip>>>; + }, z.core.$strip>>; + expression: z.ZodNullable; + }, z.core.$strip>>; + sharingModel: z.ZodNullable>; + nameField: z.ZodNullable; + }, z.core.$strip>>; + views: z.ZodNullable; + type: z.ZodNullable>; + columns: z.ZodNullable>; + groupBy: z.ZodNullable; + }, z.core.$strip>>>; + dashboards: z.ZodNullable; + widgets: z.ZodNullable; + object: z.ZodNullable; + chart: z.ZodNullable>; + measure: z.ZodNullable; + groupBy: z.ZodNullable; + condition: z.ZodNullable; + value: z.ZodUnion; + }, z.core.$strip>>; + }, z.core.$strip>>>; + }, z.core.$strip>>>; + app: z.ZodNullable; + icon: z.ZodNullable; + nav: z.ZodNullable; + target: z.ZodString; + label: z.ZodNullable; + icon: z.ZodNullable; + viewName: z.ZodNullable; + }, z.core.$strip>>>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── StateNodeConfig (type) ── +type StateNodeConfig = { + type?: 'atomic' | 'compound' | 'parallel' | 'final' | 'history'; + entry?: ActionRef[]; + exit?: ActionRef[]; + on?: Record; + always?: Transition[]; + initial?: string; + states?: Record; + meta?: { + label?: string; + description?: string; + color?: string; + aiInstructions?: string; + }; +}; + +// ── StructuredOutputConfig (type) ── +type StructuredOutputConfig = z.input; + +// ── StructuredOutputConfigParsed (type) ── +type StructuredOutputConfigParsed = z.infer; + +// ── StructuredOutputConfigSchema (const) ── +declare const StructuredOutputConfigSchema: z.ZodObject<{ + format: z.ZodEnum<{ + regex: "regex"; + json_schema: "json_schema"; + json_object: "json_object"; + grammar: "grammar"; + xml: "xml"; + }>; + schema: z.ZodOptional>; + strict: z.ZodDefault; + retryOnValidationFailure: z.ZodDefault; + maxRetries: z.ZodDefault; + fallbackFormat: z.ZodOptional>; + transformPipeline: z.ZodOptional>>; +}, z.core.$strict>; + +// ── StructuredOutputFormat (type) ── +type StructuredOutputFormat = z.input; + +// ── StructuredOutputFormatSchema (const) ── +declare const StructuredOutputFormatSchema: z.ZodEnum<{ + regex: "regex"; + json_schema: "json_schema"; + json_object: "json_object"; + grammar: "grammar"; + xml: "xml"; +}>; + +// ── TextContent (type) ── +type TextContent = z.input; + +// ── TextContentSchema (const) ── +declare const TextContentSchema: z.ZodObject<{ + type: z.ZodLiteral<"text">; + text: z.ZodString; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── TokenBudgetConfig (type) ── +type TokenBudgetConfig = z.input; + +// ── TokenBudgetConfigParsed (type) ── +type TokenBudgetConfigParsed = z.infer; + +// ── TokenBudgetConfigSchema (const) ── +declare const TokenBudgetConfigSchema: z.ZodObject<{ + maxTokens: z.ZodNumber; + maxPromptTokens: z.ZodOptional; + maxCompletionTokens: z.ZodOptional; + reserveTokens: z.ZodDefault; + bufferPercentage: z.ZodDefault; + strategy: z.ZodDefault>; + slidingWindowSize: z.ZodOptional; + minImportanceScore: z.ZodOptional; + semanticThreshold: z.ZodOptional; + enableSummarization: z.ZodDefault; + summarizationThreshold: z.ZodOptional; + summaryModel: z.ZodOptional; + warnThreshold: z.ZodDefault; +}, z.core.$strip>; + +// ── TokenBudgetStrategy (type) ── +type TokenBudgetStrategy = z.input; + +// ── TokenBudgetStrategySchema (const) ── +declare const TokenBudgetStrategySchema: z.ZodEnum<{ + summary: "summary"; + importance: "importance"; + fifo: "fifo"; + semantic: "semantic"; + sliding_window: "sliding_window"; +}>; + +// ── TokenUsage (type) ── +type TokenUsage = z.input; + +// ── TokenUsageSchema (const) ── +declare const TokenUsageSchema: z.ZodObject<{ + promptTokens: z.ZodNumber; + completionTokens: z.ZodNumber; + totalTokens: z.ZodNumber; +}, z.core.$strip>; + +// ── TokenUsageStats (type) ── +type TokenUsageStats = z.input; + +// ── TokenUsageStatsParsed (type) ── +type TokenUsageStatsParsed = z.infer; + +// ── TokenUsageStatsSchema (const) ── +declare const TokenUsageStatsSchema: z.ZodObject<{ + promptTokens: z.ZodDefault; + completionTokens: z.ZodDefault; + totalTokens: z.ZodDefault; + budgetLimit: z.ZodNumber; + budgetUsed: z.ZodDefault; + budgetRemaining: z.ZodNumber; + budgetPercentage: z.ZodNumber; + messageCount: z.ZodDefault; + prunedMessageCount: z.ZodDefault; + summarizedMessageCount: z.ZodDefault; +}, z.core.$strip>; + +// ── Tool (type) ── +type Tool = z.input; + +// ── ToolCall (type) ── +type ToolCall = z.input; + +// ── ToolCallParsed (type) ── +type ToolCallParsed = z.infer; + +// ── ToolCallSchema (const) ── +declare const ToolCallSchema: z.ZodObject<{ + id: z.ZodString; + type: z.ZodDefault>; + function: z.ZodObject<{ + name: z.ZodString; + arguments: z.ZodString; + result: z.ZodOptional; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── ToolSchema (const) ── +declare const ToolSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + description: z.ZodString; + parameters: z.ZodRecord; + outputSchema: z.ZodOptional>; + objectName: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── TransformPipelineStep (type) ── +type TransformPipelineStep = z.input; + +// ── TransformPipelineStepSchema (const) ── +declare const TransformPipelineStepSchema: z.ZodEnum<{ + trim: "trim"; + parse_json: "parse_json"; + validate: "validate"; + coerce_types: "coerce_types"; +}>; + +// ── VectorStore (type) ── +type VectorStore = z.input; + +// ── VectorStoreProvider (type) ── +type VectorStoreProvider = z.input; + +// ── VectorStoreProviderSchema (const) ── +declare const VectorStoreProviderSchema: z.ZodEnum<{ + custom: "custom"; + redis: "redis"; + pgvector: "pgvector"; + chroma: "chroma"; + qdrant: "qdrant"; + pinecone: "pinecone"; + weaviate: "weaviate"; + milvus: "milvus"; + opensearch: "opensearch"; + elasticsearch: "elasticsearch"; +}>; + +// ── VectorStoreSchema (const) ── +declare const VectorStoreSchema: z.ZodObject<{ + provider: z.ZodEnum<{ + custom: "custom"; + redis: "redis"; + pgvector: "pgvector"; + chroma: "chroma"; + qdrant: "qdrant"; + pinecone: "pinecone"; + weaviate: "weaviate"; + milvus: "milvus"; + opensearch: "opensearch"; + elasticsearch: "elasticsearch"; + }>; + collection: z.ZodString; + endpoint: z.ZodOptional; + secretRef: z.ZodOptional; + dimensions: z.ZodOptional; +}, z.core.$strip>; + +// ── agentForm (const) ── +declare const agentForm: { + type: "split" | "drawer" | "modal" | "simple" | "tabbed" | "wizard"; + layout?: "grid" | "inline" | "vertical" | "horizontal" | undefined; + columns?: number | undefined; + title?: string | undefined; + description?: string | undefined; + defaultTab?: string | undefined; + tabPosition?: "left" | "right" | "top" | "bottom" | undefined; + allowSkip?: boolean | undefined; + showStepIndicator?: boolean | undefined; + splitDirection?: "vertical" | "horizontal" | undefined; + splitSize?: number | undefined; + splitResizable?: boolean | undefined; + drawerSide?: "left" | "right" | "top" | "bottom" | undefined; + drawerWidth?: string | undefined; + modalSize?: "default" | "full" | "sm" | "lg" | "xl" | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + sections?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + groups?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + subforms?: { + childObject: string; + relationshipField?: string | undefined; + columns?: any[] | undefined; + amountField?: string | undefined; + totalField?: string | undefined; + title?: string | undefined; + addLabel?: string | undefined; + minRows?: number | undefined; + maxRows?: number | undefined; + }[] | undefined; + defaultSort?: undefined; + sharing?: { + enabled: boolean; + allowAnonymous: boolean; + publicLink?: string | undefined; + password?: string | undefined; + allowedDomains?: string[] | undefined; + expiresAt?: string | undefined; + } | undefined; + submitBehavior?: { + kind: "thank-you"; + title?: string | undefined; + message?: string | undefined; + } | { + kind: "redirect"; + url: string; + delayMs?: number | undefined; + } | { + kind: "continue"; + } | { + kind: "next-record"; + } | undefined; + buttons?: { + submit?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + cancel?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + reset?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + } | undefined; + defaults?: Record | undefined; + aria?: undefined; +}; + +// ── defineAgent (function) ── +declare function defineAgent(config: z.input): AgentParsed; + +// ── defineSkill (function) ── +declare function defineSkill(config: z.input): SkillParsed; + +// ── defineSolutionBlueprint (function) ── +declare function defineSolutionBlueprint(config: z.input): SolutionBlueprintParsed; + +// ── defineTool (function) ── +declare function defineTool(config: z.input): Tool; + +// ── scopesToAgentPermissionSets (function) ── +declare function scopesToAgentPermissionSets(scopes: readonly string[] | undefined): string[]; + +// ── skillForm (const) ── +declare const skillForm: { + type: "split" | "drawer" | "modal" | "simple" | "tabbed" | "wizard"; + layout?: "grid" | "inline" | "vertical" | "horizontal" | undefined; + columns?: number | undefined; + title?: string | undefined; + description?: string | undefined; + defaultTab?: string | undefined; + tabPosition?: "left" | "right" | "top" | "bottom" | undefined; + allowSkip?: boolean | undefined; + showStepIndicator?: boolean | undefined; + splitDirection?: "vertical" | "horizontal" | undefined; + splitSize?: number | undefined; + splitResizable?: boolean | undefined; + drawerSide?: "left" | "right" | "top" | "bottom" | undefined; + drawerWidth?: string | undefined; + modalSize?: "default" | "full" | "sm" | "lg" | "xl" | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + sections?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + groups?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + subforms?: { + childObject: string; + relationshipField?: string | undefined; + columns?: any[] | undefined; + amountField?: string | undefined; + totalField?: string | undefined; + title?: string | undefined; + addLabel?: string | undefined; + minRows?: number | undefined; + maxRows?: number | undefined; + }[] | undefined; + defaultSort?: undefined; + sharing?: { + enabled: boolean; + allowAnonymous: boolean; + publicLink?: string | undefined; + password?: string | undefined; + allowedDomains?: string[] | undefined; + expiresAt?: string | undefined; + } | undefined; + submitBehavior?: { + kind: "thank-you"; + title?: string | undefined; + message?: string | undefined; + } | { + kind: "redirect"; + url: string; + delayMs?: number | undefined; + } | { + kind: "continue"; + } | { + kind: "next-record"; + } | undefined; + buttons?: { + submit?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + cancel?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + reset?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + } | undefined; + defaults?: Record | undefined; + aria?: undefined; +}; + +// ── toolForm (const) ── +declare const toolForm: { + type: "split" | "drawer" | "modal" | "simple" | "tabbed" | "wizard"; + layout?: "grid" | "inline" | "vertical" | "horizontal" | undefined; + columns?: number | undefined; + title?: string | undefined; + description?: string | undefined; + defaultTab?: string | undefined; + tabPosition?: "left" | "right" | "top" | "bottom" | undefined; + allowSkip?: boolean | undefined; + showStepIndicator?: boolean | undefined; + splitDirection?: "vertical" | "horizontal" | undefined; + splitSize?: number | undefined; + splitResizable?: boolean | undefined; + drawerSide?: "left" | "right" | "top" | "bottom" | undefined; + drawerWidth?: string | undefined; + modalSize?: "default" | "full" | "sm" | "lg" | "xl" | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + sections?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + groups?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + subforms?: { + childObject: string; + relationshipField?: string | undefined; + columns?: any[] | undefined; + amountField?: string | undefined; + totalField?: string | undefined; + title?: string | undefined; + addLabel?: string | undefined; + minRows?: number | undefined; + maxRows?: number | undefined; + }[] | undefined; + defaultSort?: undefined; + sharing?: { + enabled: boolean; + allowAnonymous: boolean; + publicLink?: string | undefined; + password?: string | undefined; + allowedDomains?: string[] | undefined; + expiresAt?: string | undefined; + } | undefined; + submitBehavior?: { + kind: "thank-you"; + title?: string | undefined; + message?: string | undefined; + } | { + kind: "redirect"; + url: string; + delayMs?: number | undefined; + } | { + kind: "continue"; + } | { + kind: "next-record"; + } | undefined; + buttons?: { + submit?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + cancel?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + reset?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + } | undefined; + defaults?: Record | undefined; + aria?: undefined; +}; diff --git a/packages/spec/api-surface-declarations/api.txt b/packages/spec/api-surface-declarations/api.txt new file mode 100644 index 00000000000..2ab4fe51142 --- /dev/null +++ b/packages/spec/api-surface-declarations/api.txt @@ -0,0 +1,34537 @@ +# @objectstack/spec — the .d.ts DECLARATION TEXT of every export of `./api`. +# +# The SHAPE half of the ADR-0059 public-API pin, and the readable counterpart of +# api-surface/api.json's breadth half. That file pins each export by +# `name (kind)`, which a signature change, a renamed interface field and a dropped +# union member all leave untouched. This file pins the declaration text, so each of +# those moves a line here. Text and NOT a hash, deliberately: a diff a reviewer can +# read is what makes contract review a guard rather than a rubber stamp. +# +# Verbatim from the PACKED `.d.ts` reached through this package's `exports` map — the +# declarations a consumer installs, never `src/`. A declaration's leading TSDoc is +# excluded: documentation drift is `check:docs`'s axis, not this one. +# +# entry: ./api +# exported names: 1084 +# declarations: 1132 +# +# GENERATED — ⛔ never hand-edited. Regenerate after a real build: +# pnpm --filter @objectstack/spec build && pnpm --filter @objectstack/spec gen:api-surface-declarations +# Gated by `check:api-surface-declarations`; a hand edit is a red gate, not a change. + +// ── AckMessage (type) ── +type AckMessage = z.input; + +// ── AckMessageSchema (const) ── +declare const AckMessageSchema: z.ZodObject<{ + messageId: z.ZodString; + timestamp: z.ZodString; + type: z.ZodLiteral<"ack">; + ackMessageId: z.ZodString; + success: z.ZodBoolean; + error: z.ZodOptional; +}, z.core.$strip>; + +// ── AiAgentCapabilities (type) ── +type AiAgentCapabilities = z.input; + +// ── AiAgentCapabilitiesSchema (const) ── +declare const AiAgentCapabilitiesSchema: z.ZodObject<{ + authoring: z.ZodBoolean; + canvas: z.ZodBoolean; + debug: z.ZodBoolean; + resume: z.ZodBoolean; +}, z.core.$strip>; + +// ── AiAgentChatRequest (type) ── +type AiAgentChatRequest = z.input; + +// ── AiAgentChatRequestSchema (const) ── +declare const AiAgentChatRequestSchema: z.ZodObject<{ + messages: z.ZodArray; + content: z.ZodOptional; + parts: z.ZodOptional>; + }, z.core.$loose>>; + context: z.ZodOptional>; + options: z.ZodOptional>; +}, z.core.$strip>; + +// ── AiAgentSummary (type) ── +type AiAgentSummary = z.input; + +// ── AiAgentSummarySchema (const) ── +declare const AiAgentSummarySchema: z.ZodObject<{ + name: z.ZodString; + label: z.ZodString; + role: z.ZodString; + capabilities: z.ZodObject<{ + authoring: z.ZodBoolean; + canvas: z.ZodBoolean; + debug: z.ZodBoolean; + resume: z.ZodBoolean; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── AiAgentsResponse (type) ── +type AiAgentsResponse = z.input; + +// ── AiAgentsResponseSchema (const) ── +declare const AiAgentsResponseSchema: z.ZodObject<{ + agents: z.ZodArray; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── AiChatRequest (type) ── +type AiChatRequest = z.input; + +// ── AiChatRequestSchema (const) ── +declare const AiChatRequestSchema: z.ZodObject<{ + messages: z.ZodArray; + content: z.ZodOptional; + parts: z.ZodOptional>; + }, z.core.$loose>>; + system: z.ZodOptional; + model: z.ZodOptional; + temperature: z.ZodOptional; + maxTokens: z.ZodOptional; + stream: z.ZodOptional; + conversationId: z.ZodOptional; + turnId: z.ZodOptional; + options: z.ZodOptional>; +}, z.core.$strip>; + +// ── AiChatResponse (type) ── +type AiChatResponse = z.input; + +// ── AiChatResponseSchema (const) ── +declare const AiChatResponseSchema: z.ZodObject<{ + content: z.ZodString; + model: z.ZodOptional; + toolCalls: z.ZodOptional>; + usage: z.ZodOptional>; + conversationId: z.ZodOptional; +}, z.core.$strip>; + +// ── AiCompleteRequest (type) ── +type AiCompleteRequest = z.input; + +// ── AiCompleteRequestSchema (const) ── +declare const AiCompleteRequestSchema: z.ZodObject<{ + prompt: z.ZodString; + options: z.ZodOptional>; +}, z.core.$strip>; + +// ── AiConversation (type) ── +type AiConversation = z.input; + +// ── AiConversationSchema (const) ── +declare const AiConversationSchema: z.ZodObject<{ + id: z.ZodString; + title: z.ZodOptional; + agentId: z.ZodOptional; + userId: z.ZodOptional; + messages: z.ZodArray; + content: z.ZodOptional; + parts: z.ZodOptional>; + }, z.core.$loose>>; + createdAt: z.ZodString; + updatedAt: z.ZodString; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── AiMessage (type) ── +type AiMessage = z.input; + +// ── AiMessageSchema (const) ── +declare const AiMessageSchema: z.ZodObject<{ + role: z.ZodEnum<{ + user: "user"; + system: "system"; + tool: "tool"; + assistant: "assistant"; + }>; + content: z.ZodOptional; + parts: z.ZodOptional>; +}, z.core.$loose>; + +// ── AiModelsResponse (type) ── +type AiModelsResponse = z.input; + +// ── AiModelsResponseSchema (const) ── +declare const AiModelsResponseSchema: z.ZodObject<{ + models: z.ZodArray]>>; + defaultModel: z.ZodOptional; +}, z.core.$strip>; + +// ── AiPendingAction (type) ── +type AiPendingAction = z.input; + +// ── AiPendingActionSchema (const) ── +declare const AiPendingActionSchema: z.ZodObject<{ + id: z.ZodString; + object_name: z.ZodString; + action_name: z.ZodString; + tool_name: z.ZodString; + tool_input: z.ZodString; + status: z.ZodEnum<{ + failed: "failed"; + pending: "pending"; + approved: "approved"; + executed: "executed"; + rejected: "rejected"; + }>; + result: z.ZodOptional; + error: z.ZodOptional; + rejection_reason: z.ZodOptional; + conversation_id: z.ZodOptional; + message_id: z.ZodOptional; + proposed_by: z.ZodOptional; + decided_by: z.ZodOptional; + proposed_at: z.ZodString; + decided_at: z.ZodOptional; +}, z.core.$strip>; + +// ── AiPendingActionStatus (type) ── +type AiPendingActionStatus = z.input; + +// ── AiPendingActionStatusSchema (const) ── +declare const AiPendingActionStatusSchema: z.ZodEnum<{ + failed: "failed"; + pending: "pending"; + approved: "approved"; + executed: "executed"; + rejected: "rejected"; +}>; + +// ── AiStreamChunk (type) ── +type AiStreamChunk = z.input; + +// ── AiStreamChunkSchema (const) ── +declare const AiStreamChunkSchema: z.ZodObject<{ + type: z.ZodString; +}, z.core.$loose>; + +// ── AnalyticsEndpoint (const) ── +declare const AnalyticsEndpoint: z.ZodEnum<{ + "/api/v1/analytics/query": "/api/v1/analytics/query"; + "/api/v1/analytics/meta": "/api/v1/analytics/meta"; + "/api/v1/analytics/sql": "/api/v1/analytics/sql"; +}>; + +// ── AnalyticsEndpoint (type) ── +type AnalyticsEndpoint = z.input; + +// ── AnalyticsMetadataResponse (type) ── +type AnalyticsMetadataResponse = z.input; + +// ── AnalyticsMetadataResponseParsed (type) ── +type AnalyticsMetadataResponseParsed = z.infer; + +// ── AnalyticsMetadataResponseSchema (const) ── +declare const AnalyticsMetadataResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodArray; + measures: z.ZodArray; + }, z.core.$strip>>; + dimensions: z.ZodArray; + }, z.core.$strip>>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── AnalyticsProtocol (interface) ── +interface AnalyticsProtocol { + analyticsQuery?(request: AnalyticsQueryRequest): Promise; + getAnalyticsMeta?(request: GetAnalyticsMetaRequest): Promise; +} + +// ── AnalyticsQueryRequest (type) ── +type AnalyticsQueryRequest$1 = z.input; + +// ── AnalyticsQueryRequestSchema (const) ── +declare const AnalyticsQueryRequestSchema: z.ZodObject<{ + measures: z.ZodArray; + dimensions: z.ZodOptional>; + where: z.ZodOptional>>; + timeDimensions: z.ZodOptional>; + dateRange: z.ZodOptional, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional>>; + limit: z.ZodOptional; + offset: z.ZodOptional; + timezone: z.ZodOptional; + cube: z.ZodString; + query: z.ZodOptional; + format: z.ZodOptional; +}, z.core.$strict>; + +// ── AnalyticsResultResponse (type) ── +type AnalyticsResultResponse$1 = z.input; + +// ── AnalyticsResultResponseParsed (type) ── +type AnalyticsResultResponseParsed = z.infer; + +// ── AnalyticsResultResponseSchema (const) ── +declare const AnalyticsResultResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + rows: z.ZodArray>; + fields: z.ZodArray; + format: z.ZodOptional; + currency: z.ZodOptional; + percentScale: z.ZodOptional>; + builtinAggregate: z.ZodOptional>; + }, z.core.$strip>>; + sql: z.ZodOptional; + totals: z.ZodOptional; + rows: z.ZodArray>; + }, z.core.$strip>>>; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── AnalyticsSqlResponse (type) ── +type AnalyticsSqlResponse = z.input; + +// ── AnalyticsSqlResponseParsed (type) ── +type AnalyticsSqlResponseParsed = z.infer; + +// ── AnalyticsSqlResponseSchema (const) ── +declare const AnalyticsSqlResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + sql: z.ZodString; + params: z.ZodArray; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── ApiChangelogEntry (type) ── +type ApiChangelogEntry = z.input; + +// ── ApiChangelogEntryParsed (type) ── +type ApiChangelogEntryParsed = z.infer; + +// ── ApiChangelogEntrySchema (const) ── +declare const ApiChangelogEntrySchema: z.ZodObject<{ + version: z.ZodString; + date: z.ZodString; + changes: z.ZodObject<{ + added: z.ZodDefault>>; + changed: z.ZodDefault>>; + deprecated: z.ZodDefault>>; + removed: z.ZodDefault>>; + fixed: z.ZodDefault>>; + security: z.ZodDefault>>; + }, z.core.$strip>; + migrationGuide: z.ZodOptional; +}, z.core.$strip>; + +// ── ApiDocumentationConfig (const) ── +declare const ApiDocumentationConfig: z.ZodObject<{ + enabled: z.ZodDefault; + title: z.ZodDefault; + version: z.ZodString; + description: z.ZodOptional; + servers: z.ZodDefault; + variables: z.ZodOptional; + enum: z.ZodOptional>; + }, z.core.$strip>>>; + }, z.core.$strip>>>>; + ui: z.ZodOptional; + path: z.ZodDefault; + theme: z.ZodDefault>; + enableTryItOut: z.ZodDefault; + enableFilter: z.ZodDefault; + enableCors: z.ZodDefault; + defaultModelsExpandDepth: z.ZodDefault; + displayRequestDuration: z.ZodDefault; + syntaxHighlighting: z.ZodDefault; + customCssUrl: z.ZodOptional; + customJsUrl: z.ZodOptional; + layout: z.ZodOptional; + showCommonExtensions: z.ZodDefault; + deepLinking: z.ZodDefault; + displayOperationId: z.ZodDefault; + defaultModelRendering: z.ZodDefault>; + defaultModelsExpandDepth: z.ZodDefault; + defaultModelExpandDepth: z.ZodDefault; + docExpansion: z.ZodDefault>; + }, z.core.$strip>>; + }, z.core.$strip>>; + generateOpenApi: z.ZodDefault; + generateTestCollections: z.ZodDefault; + testCollections: z.ZodDefault; + variables: z.ZodDefault>>; + requests: z.ZodArray; + method: z.ZodEnum<{ + GET: "GET"; + POST: "POST"; + PUT: "PUT"; + DELETE: "DELETE"; + PATCH: "PATCH"; + HEAD: "HEAD"; + OPTIONS: "OPTIONS"; + }>; + url: z.ZodString; + headers: z.ZodDefault>>; + queryParams: z.ZodDefault>>>; + body: z.ZodOptional; + variables: z.ZodDefault>>; + expectedResponse: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + folders: z.ZodOptional; + requests: z.ZodArray; + method: z.ZodEnum<{ + GET: "GET"; + POST: "POST"; + PUT: "PUT"; + DELETE: "DELETE"; + PATCH: "PATCH"; + HEAD: "HEAD"; + OPTIONS: "OPTIONS"; + }>; + url: z.ZodString; + headers: z.ZodDefault>>; + queryParams: z.ZodDefault>>>; + body: z.ZodOptional; + variables: z.ZodDefault>>; + expectedResponse: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + }, z.core.$strip>>>; + }, z.core.$strip>>>>; + changelog: z.ZodDefault>>; + changed: z.ZodDefault>>; + deprecated: z.ZodDefault>>; + removed: z.ZodDefault>>; + fixed: z.ZodDefault>>; + security: z.ZodDefault>>; + }, z.core.$strip>; + migrationGuide: z.ZodOptional; + }, z.core.$strip>>>>; + codeTemplates: z.ZodDefault>; + }, z.core.$strip>>>>; + termsOfService: z.ZodOptional; + contact: z.ZodOptional; + url: z.ZodOptional; + email: z.ZodOptional; + }, z.core.$strip>>; + license: z.ZodOptional; + }, z.core.$strip>>; + externalDocs: z.ZodOptional; + url: z.ZodString; + }, z.core.$strip>>; + securitySchemes: z.ZodOptional; + scheme: z.ZodOptional; + bearerFormat: z.ZodOptional; + name: z.ZodOptional; + in: z.ZodOptional>; + flows: z.ZodOptional; + password: z.ZodOptional; + clientCredentials: z.ZodOptional; + authorizationCode: z.ZodOptional; + }, z.core.$strip>>; + openIdConnectUrl: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strip>>>; + tags: z.ZodOptional; + externalDocs: z.ZodOptional; + url: z.ZodString; + }, z.core.$strip>>; + }, z.core.$strip>>>; +}, z.core.$strip> & { + create: >(config: T) => T; +}; + +// ── ApiDocumentationConfig (type) ── +type ApiDocumentationConfig = z.input; + +// ── ApiDocumentationConfigParsed (type) ── +type ApiDocumentationConfigParsed = z.infer; + +// ── ApiDocumentationConfigSchema (const) ── +declare const ApiDocumentationConfigSchema: z.ZodObject<{ + enabled: z.ZodDefault; + title: z.ZodDefault; + version: z.ZodString; + description: z.ZodOptional; + servers: z.ZodDefault; + variables: z.ZodOptional; + enum: z.ZodOptional>; + }, z.core.$strip>>>; + }, z.core.$strip>>>>; + ui: z.ZodOptional; + path: z.ZodDefault; + theme: z.ZodDefault>; + enableTryItOut: z.ZodDefault; + enableFilter: z.ZodDefault; + enableCors: z.ZodDefault; + defaultModelsExpandDepth: z.ZodDefault; + displayRequestDuration: z.ZodDefault; + syntaxHighlighting: z.ZodDefault; + customCssUrl: z.ZodOptional; + customJsUrl: z.ZodOptional; + layout: z.ZodOptional; + showCommonExtensions: z.ZodDefault; + deepLinking: z.ZodDefault; + displayOperationId: z.ZodDefault; + defaultModelRendering: z.ZodDefault>; + defaultModelsExpandDepth: z.ZodDefault; + defaultModelExpandDepth: z.ZodDefault; + docExpansion: z.ZodDefault>; + }, z.core.$strip>>; + }, z.core.$strip>>; + generateOpenApi: z.ZodDefault; + generateTestCollections: z.ZodDefault; + testCollections: z.ZodDefault; + variables: z.ZodDefault>>; + requests: z.ZodArray; + method: z.ZodEnum<{ + GET: "GET"; + POST: "POST"; + PUT: "PUT"; + DELETE: "DELETE"; + PATCH: "PATCH"; + HEAD: "HEAD"; + OPTIONS: "OPTIONS"; + }>; + url: z.ZodString; + headers: z.ZodDefault>>; + queryParams: z.ZodDefault>>>; + body: z.ZodOptional; + variables: z.ZodDefault>>; + expectedResponse: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + folders: z.ZodOptional; + requests: z.ZodArray; + method: z.ZodEnum<{ + GET: "GET"; + POST: "POST"; + PUT: "PUT"; + DELETE: "DELETE"; + PATCH: "PATCH"; + HEAD: "HEAD"; + OPTIONS: "OPTIONS"; + }>; + url: z.ZodString; + headers: z.ZodDefault>>; + queryParams: z.ZodDefault>>>; + body: z.ZodOptional; + variables: z.ZodDefault>>; + expectedResponse: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + }, z.core.$strip>>>; + }, z.core.$strip>>>>; + changelog: z.ZodDefault>>; + changed: z.ZodDefault>>; + deprecated: z.ZodDefault>>; + removed: z.ZodDefault>>; + fixed: z.ZodDefault>>; + security: z.ZodDefault>>; + }, z.core.$strip>; + migrationGuide: z.ZodOptional; + }, z.core.$strip>>>>; + codeTemplates: z.ZodDefault>; + }, z.core.$strip>>>>; + termsOfService: z.ZodOptional; + contact: z.ZodOptional; + url: z.ZodOptional; + email: z.ZodOptional; + }, z.core.$strip>>; + license: z.ZodOptional; + }, z.core.$strip>>; + externalDocs: z.ZodOptional; + url: z.ZodString; + }, z.core.$strip>>; + securitySchemes: z.ZodOptional; + scheme: z.ZodOptional; + bearerFormat: z.ZodOptional; + name: z.ZodOptional; + in: z.ZodOptional>; + flows: z.ZodOptional; + password: z.ZodOptional; + clientCredentials: z.ZodOptional; + authorizationCode: z.ZodOptional; + }, z.core.$strip>>; + openIdConnectUrl: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strip>>>; + tags: z.ZodOptional; + externalDocs: z.ZodOptional; + url: z.ZodString; + }, z.core.$strip>>; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── ApiEndpoint (const) ── +declare const ApiEndpoint: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + path: z.ZodString; + method: z.ZodEnum<{ + GET: "GET"; + POST: "POST"; + PUT: "PUT"; + DELETE: "DELETE"; + PATCH: "PATCH"; + HEAD: "HEAD"; + OPTIONS: "OPTIONS"; + }>; + summary: z.ZodOptional; + description: z.ZodOptional; + type: z.ZodEnum<{ + flow: "flow"; + script: "script"; + object_operation: "object_operation"; + proxy: "proxy"; + }>; + target: z.ZodOptional; + objectParams: z.ZodOptional; + operation: z.ZodOptional>; + }, z.core.$strip>>; + inputMapping: z.ZodOptional; + }, z.core.$strip>>>; + outputMapping: z.ZodOptional; + }, z.core.$strip>>>; + authRequired: z.ZodDefault; + rateLimit: z.ZodOptional; + windowMs: z.ZodDefault; + maxRequests: z.ZodDefault; + }, z.core.$strict>>; + cacheTtlSeconds: z.ZodOptional; + cacheTtl: z.ZodOptional; +}, z.core.$strict> & { + create: >(config: T) => T; +}; + +// ── ApiEndpoint (type) ── +type ApiEndpoint = z.input; + +// ── ApiEndpointParsed (type) ── +type ApiEndpointParsed = z.infer; + +// ── ApiEndpointSchema (const) ── +declare const ApiEndpointSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + path: z.ZodString; + method: z.ZodEnum<{ + GET: "GET"; + POST: "POST"; + PUT: "PUT"; + DELETE: "DELETE"; + PATCH: "PATCH"; + HEAD: "HEAD"; + OPTIONS: "OPTIONS"; + }>; + summary: z.ZodOptional; + description: z.ZodOptional; + type: z.ZodEnum<{ + flow: "flow"; + script: "script"; + object_operation: "object_operation"; + proxy: "proxy"; + }>; + target: z.ZodOptional; + objectParams: z.ZodOptional; + operation: z.ZodOptional>; + }, z.core.$strip>>; + inputMapping: z.ZodOptional; + }, z.core.$strip>>>; + outputMapping: z.ZodOptional; + }, z.core.$strip>>>; + authRequired: z.ZodDefault; + rateLimit: z.ZodOptional; + windowMs: z.ZodDefault; + maxRequests: z.ZodDefault; + }, z.core.$strict>>; + cacheTtlSeconds: z.ZodOptional; + cacheTtl: z.ZodOptional; +}, z.core.$strict>; + +// ── ApiError (type) ── +type ApiError = z.input; + +// ── ApiErrorParsed (type) ── +type ApiErrorParsed = z.infer; + +// ── ApiErrorSchema (const) ── +declare const ApiErrorSchema: z.ZodObject<{ + code: z.ZodType<"INVALID_FILTER" | "ITEM_LOCKED" | "VALIDATION_ERROR" | "INVALID_FIELD" | "MISSING_REQUIRED_FIELD" | "INVALID_FORMAT" | "VALUE_TOO_LONG" | "VALUE_TOO_SHORT" | "VALUE_OUT_OF_RANGE" | "INVALID_REFERENCE" | "DUPLICATE_VALUE" | "INVALID_QUERY" | "INVALID_SORT" | "MAX_RECORDS_EXCEEDED" | "UNAUTHENTICATED" | "INVALID_CREDENTIALS" | "EXPIRED_TOKEN" | "INVALID_TOKEN" | "SESSION_EXPIRED" | "MFA_REQUIRED" | "EMAIL_NOT_VERIFIED" | "PERMISSION_DENIED" | "INSUFFICIENT_PRIVILEGES" | "FIELD_NOT_ACCESSIBLE" | "RECORD_NOT_ACCESSIBLE" | "LICENSE_REQUIRED" | "IP_RESTRICTED" | "TIME_RESTRICTED" | "RESOURCE_NOT_FOUND" | "OBJECT_NOT_FOUND" | "RECORD_NOT_FOUND" | "FIELD_NOT_FOUND" | "ENDPOINT_NOT_FOUND" | "RESOURCE_CONFLICT" | "CONCURRENT_MODIFICATION" | "DELETE_RESTRICTED" | "DUPLICATE_RECORD" | "LOCK_CONFLICT" | "METHOD_NOT_ALLOWED" | "PRECONDITION_REQUIRED" | "RATE_LIMIT_EXCEEDED" | "QUOTA_EXCEEDED" | "CONCURRENT_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "DATABASE_ERROR" | "TIMEOUT" | "SERVICE_UNAVAILABLE" | "NOT_IMPLEMENTED" | "EXTERNAL_SERVICE_ERROR" | "INTEGRATION_ERROR" | "WEBHOOK_DELIVERY_FAILED" | "ALREADY_REVERTED" | "AMBIGUOUS_MATCH" | "ANALYTICS_QUERY_FAILED" | "APPROVAL_ACTIONS_FAILED" | "APPROVAL_APPROVE_FAILED" | "APPROVAL_COMMENT_FAILED" | "APPROVAL_REASSIGN_FAILED" | "APPROVAL_RECALL_FAILED" | "APPROVAL_REJECT_FAILED" | "APPROVAL_REMIND_FAILED" | "APPROVAL_REQUEST_GET_FAILED" | "APPROVAL_REQUEST_INFO_FAILED" | "APPROVAL_REQUEST_LIST_FAILED" | "APPROVAL_RESUBMIT_FAILED" | "APPROVAL_REVISE_FAILED" | "BATCH_NOT_ATOMIC" | "BATCH_TOO_LARGE" | "BATCH_UNRESOLVED_REF" | "BLANK_MATCH_KEY" | "CONCURRENT_UPDATE" | "CONFLICT" | "CONFLICTING_MAPPING" | "DATASET_INVALID" | "DELEGABLE_SCOPE_FAILED" | "DUPLICATE_REQUEST" | "EMAIL_SEND_FAILED" | "ERR_BULK_RESULT_MISMATCH" | "ERR_DATASOURCE_UNAVAILABLE" | "EXPLAIN_FAILED" | "EXPORT_NOT_PERMITTED" | "EXTERNAL_DATASOURCE_ERROR" | "EXTERNAL_IMPORT_ERROR" | "FIELD_VISIBILITY_UNRESOLVED" | "FORBIDDEN" | "FORM_NOT_FOUND" | "FORM_RESOLVE_FAILED" | "IMPORT_JOB_CREATE_FAILED" | "IMPORT_ROW_FAILED" | "INTERNAL" | "INVALID_REQUEST" | "INVALID_STATE" | "LOOKUP_NOT_PUBLIC" | "LOOKUP_TARGET_MISSING" | "MAPPING_FORMAT_MISMATCH" | "MAPPING_FORMAT_UNSUPPORTED" | "MAPPING_NOT_FOUND" | "MAPPING_TARGET_MISMATCH" | "NOT_FOUND" | "NOT_UNDOABLE" | "NO_MATCH" | "OBJECT_API_DISABLED" | "OBJECT_API_METHOD_NOT_ALLOWED" | "OPENAPI_UNAVAILABLE" | "PACKAGE_DELETE_FAILED" | "PACKAGE_DELETE_PARTIAL" | "PACKAGE_MANIFEST_INVALID" | "PACKAGE_PUBLISH_FAILED" | "PAYLOAD_TOO_LARGE" | "PROJECT_NOT_FOUND" | "PROJECT_PROVISIONING" | "PROJECT_PROVISIONING_FAILED" | "READ_BACK_FAILED" | "REPORTS_LIST_FAILED" | "REPORT_DELETE_FAILED" | "REPORT_GET_FAILED" | "REPORT_NOT_FOUND" | "REPORT_RUN_FAILED" | "REPORT_SAVE_FAILED" | "REPORT_SCHEDULE_FAILED" | "REQUEST_NOT_FOUND" | "RESUME_FAILED" | "RESUME_TARGET_LOST" | "RULE_DEFINE_FAILED" | "RULE_DELETE_FAILED" | "RULE_EVALUATE_FAILED" | "RULE_GET_FAILED" | "RULE_LIST_FAILED" | "RULE_NOT_FOUND" | "SCHEDULES_LIST_FAILED" | "SCHEDULE_DELETE_FAILED" | "SHARES_LIST_FAILED" | "SHARE_GRANT_FAILED" | "SHARE_REVOKE_FAILED" | "SUGGESTION_CONFIRM_FAILED" | "SUGGESTION_DISMISS_FAILED" | "SUGGESTION_LIST_FAILED" | "SUMMARY_RECOMPUTE_FAILED" | "THROTTLED" | "UNAUTHORIZED" | "UNIQUE_VIOLATION" | "UNSUPPORTED_TRANSFORM" | "VALIDATION_FAILED" | "ANALYTICS_DATE_RANGE_UNRECOGNIZED" | "ACTION_CONFIRMATION_REQUIRED" | "ACTION_DISABLED" | "DUPLICATE_SOURCE_NOT_A_BASE" | "EXPIRED_OR_REVOKED" | "FLOW_DISABLED" | "FLOW_FAILED" | "FLOW_INPUT_SCHEMA_INVALID" | "FLOW_NO_START_NODE" | "INVALID_OR_EXPIRED" | "NEEDS_PASSWORD" | "PROJECT_MEMBERSHIP_REQUIRED" | "RECORD_GONE" | "ROUTE_NOT_FOUND" | "SIGN_IN_REQUIRED" | "UNSUPPORTED" | "WRITABLE_PACKAGE_REQUIRED" | "WRONG_PASSWORD" | "MIXED_ARTIFACT_COLLECTION_SHAPE" | "ATTACHMENT_DELETE_DENIED" | "ATTACHMENT_DOWNLOAD_DENIED" | "ATTACHMENT_PARENT_ACCESS" | "AUTH_REQUIRED" | "ERR_FILE_CONSTRAINT" | "ERR_FILE_REFERENCE_COPY" | "FILE_DOWNLOAD_DENIED" | "FILE_FIELD_BULK_WRITE_REFUSED" | "FILE_NOT_FOUND" | "INVALID_RESUME_TOKEN" | "UPLOAD_SESSION_EXPIRED" | "UPLOAD_SESSION_NOT_FOUND" | "ACCOUNT_LOCKED" | "ASYNC_NOT_SUPPORTED" | "AUTH_CONFIG_ERROR" | "CREATE_FAILED" | "DOMAIN_VERIFICATION_DISABLED" | "DOMAIN_VERIFICATION_FAILED" | "EMAIL_DOMAIN_NOT_ALLOWED" | "EMAIL_SERVICE_REQUIRED" | "ENV_ACCESS_DENIED" | "INVALID_EMAIL" | "INVALID_PHONE" | "INVITE_EMAIL_FAILED" | "INVITE_REQUIRES_EMAIL" | "INVITE_SMS_FAILED" | "IP_NOT_ALLOWED" | "LAST_LOCAL_CREDENTIAL" | "NO_IDENTITY" | "NO_PENDING_VERIFICATION" | "PASSWORD_ALREADY_SET" | "PASSWORD_EXPIRED" | "PASSWORD_POLICY_VIOLATION" | "PASSWORD_REUSE" | "OAUTH_REGISTER_FAILED" | "PHONE_NOT_ENABLED" | "SAML_REGISTER_FAILED" | "SELF_REGISTRATION_CLOSED" | "SSO_REGISTER_FAILED" | "SSO_REGISTER_FORBIDDEN" | "USER_ALREADY_EXISTS" | "USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL" | "AUDIENCE_NOT_ALLOWED" | "ELIGIBILITY_UNEVALUABLE" | "EXPIRY_IN_PAST" | "EXPIRY_TOO_LONG" | "INVALID_EXPIRY" | "PERMISSION_NOT_ALLOWED" | "RECORD_NOT_ELIGIBLE" | "SHARING_NOT_ENABLED" | "AUDIT_TYPE_NOT_CANONICAL" | "BATCH_ABORTED" | "CLONE_DISABLED" | "COMMIT_NOT_FOUND" | "DESTRUCTIVE_CHANGE" | "FLOW_CONVERSION_CONFLICT" | "INVALID_METADATA" | "METADATA_CONFLICT" | "NAMESPACE_PREFIX" | "NO_DRAFT" | "NOT_ATTEMPTED" | "NOT_CREATABLE" | "NOT_OVERRIDABLE" | "OBJECT_OVERLAY_PACKAGE_MISMATCH" | "OBJECT_PACKAGE_DISABLED" | "QUERY_OBJECT_MISMATCH" | "REGISTRY_TYPE_NOT_CANONICAL" | "ROLLED_BACK" | "STORED_TYPE_NOT_CANONICAL" | "TENANT_SCOPE_REQUIRED" | "UNSUPPORTED_QUERY_PARAM" | "VERSION_NOT_FOUND" | "VERSION_NOT_RESTORABLE" | "METADATA_BRANCH" | "METADATA_NOT_FOUND" | "METADATA_SCHEMA_INVALID" | "OS_PROTOCOL_INCOMPATIBLE" | "ERR_AUTONUMBER_COLLISION" | "ERR_CROSS_DATASOURCE_TRANSACTION_WRITE" | "ERR_DRIVER_CONNECT" | "ERR_HOOK_TARGET_REBIND" | "ERR_READONLY_FIELD_REJECTED" | "ERR_SUMMARY_RECOMPUTE" | "ERR_SYSTEM_WRITE_ORGANIZATION_REQUIRED" | "ERR_TRANSACTION_UNSUPPORTED" | "FIND_HOOK_RESULT_NOT_ARRAY" | "FIND_ONE_HOOK_RESULT_NOT_RECORD" | "HOOK_UNSCOPED_DATA_ACCESS" | "MULTI_UPDATE_HOOK_KEY_DIVERGENCE" | "DELETE_HOOK_RESULT_NOT_WRITE_SHAPE" | "UPDATE_HOOK_RESULT_NOT_WRITE_SHAPE" | "NAMESPACE_CONFLICT" | "OBJECT_OWNERSHIP_CONFLICT" | "UPDATE_ID_MISMATCH" | "DUPLICATE_ARTIFACT_OBJECT_NAME" | "FILTER_TOKEN_UNKNOWN" | "FILTER_TOKEN_UNRESOLVED" | "INVALID_ARTIFACT_PACKAGES" | "INVALID_ARTIFACT_PACKAGE_ENTRY" | "DUPLICATE_ARTIFACT_PACKAGE" | "NO_SUCH_RUN" | "PLAN_CHANGED" | "PREFLIGHT_FAILED" | "NOT_COMPENSABLE" | "SERVICE_NOT_REGISTERED" | "PLUGIN_CONTRACT_VIOLATION" | "DELIVERY_NEVER_SENT" | "DELIVERY_NOT_ELIGIBLE" | "ENQUEUE_FAILED" | "INVALID_SIGNATURE" | "ENVIRONMENT_NOT_FOUND" | "CLOUD_FETCH_FAILED" | "CLOUD_UNCONFIGURED" | "DEVICE_CODE_FAILED" | "DRIVER_UNAVAILABLE" | "ENVIRONMENT_BIND_FAILED" | "MANIFEST_CONFLICT" | "MARKETPLACE_PROXY_FAILED" | "MARKETPLACE_STORAGE_FAILED" | "MARKETPLACE_UNAVAILABLE" | "NOTHING_TO_PURGE" | "PLUGIN_INSTALL_FAILED" | "PLUGIN_MANIFEST_INVALID" | "PLUGIN_REGISTER_FAILED" | "RESEED_NO_ROWS" | "RESEED_SKIPPED" | "UNIQUE_SCOPE_CONFIRMATION_REQUIRED" | "SETTINGS_ACTION_FAILED" | "SETTINGS_CRYPTO_UNAVAILABLE" | "SETTINGS_ENGINE_NOT_BOUND" | "SETTINGS_FORBIDDEN" | "SETTINGS_LOCKED" | "SETTINGS_UNKNOWN_KEY" | "SETTINGS_UNKNOWN_NAMESPACE" | "SETTINGS_VALIDATION" | "UNKNOWN_KEY" | "UNKNOWN_NAMESPACE" | "AUTOMATION_UNSCOPED_RUN_DATA_ACCESS" | "EXECUTION_ERROR" | "INVALID_SIGNAL" | "NODE_FAILURE" | "NO_EXECUTOR" | "RESUME_IN_PROGRESS" | "RUN_NOT_FOUND" | "STORE_UNAVAILABLE" | "CUBE_NOT_FOUND" | "RAW_SQL_UNSUPPORTED" | "READ_SCOPE_COMPILE_FAILED" | "DATASOURCE_ADMIN_ERROR" | "FEEDS_DISABLED" | "FILES_DISABLED" | "RECORD_LOCKED" | "SUGGESTION_NOT_FOUND" | "SUGGESTION_STATE" | "WALLED_MEMBERSHIP_POLICY_UNDECLARED" | "MEMORY_MULTI_TENANT_UNSUPPORTED" | "MONGODB_MULTI_TENANT_UNSUPPORTED" | "SQL_DIALECT_EMISSION_UNSUPPORTED" | "CONNECTOR_UPSTREAM_UNAVAILABLE" | "EXTERNAL_SCHEMA_MISMATCH" | "EXTERNAL_SCHEMA_MODE_VIOLATION" | "EXTERNAL_WRITE_FORBIDDEN" | "PLUGIN_UI_REQUIRED_KEY_MISSING" | "STACK_CAPABILITY_UNKNOWN" | "STACK_CROSS_REFERENCE_INVALID" | "STACK_HIERARCHY_SCOPE_CAPABILITY_REQUIRED" | "STACK_NAMESPACE_PREFIX_INVALID" | "STACK_SCHEMA_INVALID" | "STACK_SINGLE_APP_VIOLATION" | "STACK_TRIGGER_CAPABILITY_REQUIRED", unknown, z.core.$ZodTypeInternals<"INVALID_FILTER" | "ITEM_LOCKED" | "VALIDATION_ERROR" | "INVALID_FIELD" | "MISSING_REQUIRED_FIELD" | "INVALID_FORMAT" | "VALUE_TOO_LONG" | "VALUE_TOO_SHORT" | "VALUE_OUT_OF_RANGE" | "INVALID_REFERENCE" | "DUPLICATE_VALUE" | "INVALID_QUERY" | "INVALID_SORT" | "MAX_RECORDS_EXCEEDED" | "UNAUTHENTICATED" | "INVALID_CREDENTIALS" | "EXPIRED_TOKEN" | "INVALID_TOKEN" | "SESSION_EXPIRED" | "MFA_REQUIRED" | "EMAIL_NOT_VERIFIED" | "PERMISSION_DENIED" | "INSUFFICIENT_PRIVILEGES" | "FIELD_NOT_ACCESSIBLE" | "RECORD_NOT_ACCESSIBLE" | "LICENSE_REQUIRED" | "IP_RESTRICTED" | "TIME_RESTRICTED" | "RESOURCE_NOT_FOUND" | "OBJECT_NOT_FOUND" | "RECORD_NOT_FOUND" | "FIELD_NOT_FOUND" | "ENDPOINT_NOT_FOUND" | "RESOURCE_CONFLICT" | "CONCURRENT_MODIFICATION" | "DELETE_RESTRICTED" | "DUPLICATE_RECORD" | "LOCK_CONFLICT" | "METHOD_NOT_ALLOWED" | "PRECONDITION_REQUIRED" | "RATE_LIMIT_EXCEEDED" | "QUOTA_EXCEEDED" | "CONCURRENT_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "DATABASE_ERROR" | "TIMEOUT" | "SERVICE_UNAVAILABLE" | "NOT_IMPLEMENTED" | "EXTERNAL_SERVICE_ERROR" | "INTEGRATION_ERROR" | "WEBHOOK_DELIVERY_FAILED" | "ALREADY_REVERTED" | "AMBIGUOUS_MATCH" | "ANALYTICS_QUERY_FAILED" | "APPROVAL_ACTIONS_FAILED" | "APPROVAL_APPROVE_FAILED" | "APPROVAL_COMMENT_FAILED" | "APPROVAL_REASSIGN_FAILED" | "APPROVAL_RECALL_FAILED" | "APPROVAL_REJECT_FAILED" | "APPROVAL_REMIND_FAILED" | "APPROVAL_REQUEST_GET_FAILED" | "APPROVAL_REQUEST_INFO_FAILED" | "APPROVAL_REQUEST_LIST_FAILED" | "APPROVAL_RESUBMIT_FAILED" | "APPROVAL_REVISE_FAILED" | "BATCH_NOT_ATOMIC" | "BATCH_TOO_LARGE" | "BATCH_UNRESOLVED_REF" | "BLANK_MATCH_KEY" | "CONCURRENT_UPDATE" | "CONFLICT" | "CONFLICTING_MAPPING" | "DATASET_INVALID" | "DELEGABLE_SCOPE_FAILED" | "DUPLICATE_REQUEST" | "EMAIL_SEND_FAILED" | "ERR_BULK_RESULT_MISMATCH" | "ERR_DATASOURCE_UNAVAILABLE" | "EXPLAIN_FAILED" | "EXPORT_NOT_PERMITTED" | "EXTERNAL_DATASOURCE_ERROR" | "EXTERNAL_IMPORT_ERROR" | "FIELD_VISIBILITY_UNRESOLVED" | "FORBIDDEN" | "FORM_NOT_FOUND" | "FORM_RESOLVE_FAILED" | "IMPORT_JOB_CREATE_FAILED" | "IMPORT_ROW_FAILED" | "INTERNAL" | "INVALID_REQUEST" | "INVALID_STATE" | "LOOKUP_NOT_PUBLIC" | "LOOKUP_TARGET_MISSING" | "MAPPING_FORMAT_MISMATCH" | "MAPPING_FORMAT_UNSUPPORTED" | "MAPPING_NOT_FOUND" | "MAPPING_TARGET_MISMATCH" | "NOT_FOUND" | "NOT_UNDOABLE" | "NO_MATCH" | "OBJECT_API_DISABLED" | "OBJECT_API_METHOD_NOT_ALLOWED" | "OPENAPI_UNAVAILABLE" | "PACKAGE_DELETE_FAILED" | "PACKAGE_DELETE_PARTIAL" | "PACKAGE_MANIFEST_INVALID" | "PACKAGE_PUBLISH_FAILED" | "PAYLOAD_TOO_LARGE" | "PROJECT_NOT_FOUND" | "PROJECT_PROVISIONING" | "PROJECT_PROVISIONING_FAILED" | "READ_BACK_FAILED" | "REPORTS_LIST_FAILED" | "REPORT_DELETE_FAILED" | "REPORT_GET_FAILED" | "REPORT_NOT_FOUND" | "REPORT_RUN_FAILED" | "REPORT_SAVE_FAILED" | "REPORT_SCHEDULE_FAILED" | "REQUEST_NOT_FOUND" | "RESUME_FAILED" | "RESUME_TARGET_LOST" | "RULE_DEFINE_FAILED" | "RULE_DELETE_FAILED" | "RULE_EVALUATE_FAILED" | "RULE_GET_FAILED" | "RULE_LIST_FAILED" | "RULE_NOT_FOUND" | "SCHEDULES_LIST_FAILED" | "SCHEDULE_DELETE_FAILED" | "SHARES_LIST_FAILED" | "SHARE_GRANT_FAILED" | "SHARE_REVOKE_FAILED" | "SUGGESTION_CONFIRM_FAILED" | "SUGGESTION_DISMISS_FAILED" | "SUGGESTION_LIST_FAILED" | "SUMMARY_RECOMPUTE_FAILED" | "THROTTLED" | "UNAUTHORIZED" | "UNIQUE_VIOLATION" | "UNSUPPORTED_TRANSFORM" | "VALIDATION_FAILED" | "ANALYTICS_DATE_RANGE_UNRECOGNIZED" | "ACTION_CONFIRMATION_REQUIRED" | "ACTION_DISABLED" | "DUPLICATE_SOURCE_NOT_A_BASE" | "EXPIRED_OR_REVOKED" | "FLOW_DISABLED" | "FLOW_FAILED" | "FLOW_INPUT_SCHEMA_INVALID" | "FLOW_NO_START_NODE" | "INVALID_OR_EXPIRED" | "NEEDS_PASSWORD" | "PROJECT_MEMBERSHIP_REQUIRED" | "RECORD_GONE" | "ROUTE_NOT_FOUND" | "SIGN_IN_REQUIRED" | "UNSUPPORTED" | "WRITABLE_PACKAGE_REQUIRED" | "WRONG_PASSWORD" | "MIXED_ARTIFACT_COLLECTION_SHAPE" | "ATTACHMENT_DELETE_DENIED" | "ATTACHMENT_DOWNLOAD_DENIED" | "ATTACHMENT_PARENT_ACCESS" | "AUTH_REQUIRED" | "ERR_FILE_CONSTRAINT" | "ERR_FILE_REFERENCE_COPY" | "FILE_DOWNLOAD_DENIED" | "FILE_FIELD_BULK_WRITE_REFUSED" | "FILE_NOT_FOUND" | "INVALID_RESUME_TOKEN" | "UPLOAD_SESSION_EXPIRED" | "UPLOAD_SESSION_NOT_FOUND" | "ACCOUNT_LOCKED" | "ASYNC_NOT_SUPPORTED" | "AUTH_CONFIG_ERROR" | "CREATE_FAILED" | "DOMAIN_VERIFICATION_DISABLED" | "DOMAIN_VERIFICATION_FAILED" | "EMAIL_DOMAIN_NOT_ALLOWED" | "EMAIL_SERVICE_REQUIRED" | "ENV_ACCESS_DENIED" | "INVALID_EMAIL" | "INVALID_PHONE" | "INVITE_EMAIL_FAILED" | "INVITE_REQUIRES_EMAIL" | "INVITE_SMS_FAILED" | "IP_NOT_ALLOWED" | "LAST_LOCAL_CREDENTIAL" | "NO_IDENTITY" | "NO_PENDING_VERIFICATION" | "PASSWORD_ALREADY_SET" | "PASSWORD_EXPIRED" | "PASSWORD_POLICY_VIOLATION" | "PASSWORD_REUSE" | "OAUTH_REGISTER_FAILED" | "PHONE_NOT_ENABLED" | "SAML_REGISTER_FAILED" | "SELF_REGISTRATION_CLOSED" | "SSO_REGISTER_FAILED" | "SSO_REGISTER_FORBIDDEN" | "USER_ALREADY_EXISTS" | "USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL" | "AUDIENCE_NOT_ALLOWED" | "ELIGIBILITY_UNEVALUABLE" | "EXPIRY_IN_PAST" | "EXPIRY_TOO_LONG" | "INVALID_EXPIRY" | "PERMISSION_NOT_ALLOWED" | "RECORD_NOT_ELIGIBLE" | "SHARING_NOT_ENABLED" | "AUDIT_TYPE_NOT_CANONICAL" | "BATCH_ABORTED" | "CLONE_DISABLED" | "COMMIT_NOT_FOUND" | "DESTRUCTIVE_CHANGE" | "FLOW_CONVERSION_CONFLICT" | "INVALID_METADATA" | "METADATA_CONFLICT" | "NAMESPACE_PREFIX" | "NO_DRAFT" | "NOT_ATTEMPTED" | "NOT_CREATABLE" | "NOT_OVERRIDABLE" | "OBJECT_OVERLAY_PACKAGE_MISMATCH" | "OBJECT_PACKAGE_DISABLED" | "QUERY_OBJECT_MISMATCH" | "REGISTRY_TYPE_NOT_CANONICAL" | "ROLLED_BACK" | "STORED_TYPE_NOT_CANONICAL" | "TENANT_SCOPE_REQUIRED" | "UNSUPPORTED_QUERY_PARAM" | "VERSION_NOT_FOUND" | "VERSION_NOT_RESTORABLE" | "METADATA_BRANCH" | "METADATA_NOT_FOUND" | "METADATA_SCHEMA_INVALID" | "OS_PROTOCOL_INCOMPATIBLE" | "ERR_AUTONUMBER_COLLISION" | "ERR_CROSS_DATASOURCE_TRANSACTION_WRITE" | "ERR_DRIVER_CONNECT" | "ERR_HOOK_TARGET_REBIND" | "ERR_READONLY_FIELD_REJECTED" | "ERR_SUMMARY_RECOMPUTE" | "ERR_SYSTEM_WRITE_ORGANIZATION_REQUIRED" | "ERR_TRANSACTION_UNSUPPORTED" | "FIND_HOOK_RESULT_NOT_ARRAY" | "FIND_ONE_HOOK_RESULT_NOT_RECORD" | "HOOK_UNSCOPED_DATA_ACCESS" | "MULTI_UPDATE_HOOK_KEY_DIVERGENCE" | "DELETE_HOOK_RESULT_NOT_WRITE_SHAPE" | "UPDATE_HOOK_RESULT_NOT_WRITE_SHAPE" | "NAMESPACE_CONFLICT" | "OBJECT_OWNERSHIP_CONFLICT" | "UPDATE_ID_MISMATCH" | "DUPLICATE_ARTIFACT_OBJECT_NAME" | "FILTER_TOKEN_UNKNOWN" | "FILTER_TOKEN_UNRESOLVED" | "INVALID_ARTIFACT_PACKAGES" | "INVALID_ARTIFACT_PACKAGE_ENTRY" | "DUPLICATE_ARTIFACT_PACKAGE" | "NO_SUCH_RUN" | "PLAN_CHANGED" | "PREFLIGHT_FAILED" | "NOT_COMPENSABLE" | "SERVICE_NOT_REGISTERED" | "PLUGIN_CONTRACT_VIOLATION" | "DELIVERY_NEVER_SENT" | "DELIVERY_NOT_ELIGIBLE" | "ENQUEUE_FAILED" | "INVALID_SIGNATURE" | "ENVIRONMENT_NOT_FOUND" | "CLOUD_FETCH_FAILED" | "CLOUD_UNCONFIGURED" | "DEVICE_CODE_FAILED" | "DRIVER_UNAVAILABLE" | "ENVIRONMENT_BIND_FAILED" | "MANIFEST_CONFLICT" | "MARKETPLACE_PROXY_FAILED" | "MARKETPLACE_STORAGE_FAILED" | "MARKETPLACE_UNAVAILABLE" | "NOTHING_TO_PURGE" | "PLUGIN_INSTALL_FAILED" | "PLUGIN_MANIFEST_INVALID" | "PLUGIN_REGISTER_FAILED" | "RESEED_NO_ROWS" | "RESEED_SKIPPED" | "UNIQUE_SCOPE_CONFIRMATION_REQUIRED" | "SETTINGS_ACTION_FAILED" | "SETTINGS_CRYPTO_UNAVAILABLE" | "SETTINGS_ENGINE_NOT_BOUND" | "SETTINGS_FORBIDDEN" | "SETTINGS_LOCKED" | "SETTINGS_UNKNOWN_KEY" | "SETTINGS_UNKNOWN_NAMESPACE" | "SETTINGS_VALIDATION" | "UNKNOWN_KEY" | "UNKNOWN_NAMESPACE" | "AUTOMATION_UNSCOPED_RUN_DATA_ACCESS" | "EXECUTION_ERROR" | "INVALID_SIGNAL" | "NODE_FAILURE" | "NO_EXECUTOR" | "RESUME_IN_PROGRESS" | "RUN_NOT_FOUND" | "STORE_UNAVAILABLE" | "CUBE_NOT_FOUND" | "RAW_SQL_UNSUPPORTED" | "READ_SCOPE_COMPILE_FAILED" | "DATASOURCE_ADMIN_ERROR" | "FEEDS_DISABLED" | "FILES_DISABLED" | "RECORD_LOCKED" | "SUGGESTION_NOT_FOUND" | "SUGGESTION_STATE" | "WALLED_MEMBERSHIP_POLICY_UNDECLARED" | "MEMORY_MULTI_TENANT_UNSUPPORTED" | "MONGODB_MULTI_TENANT_UNSUPPORTED" | "SQL_DIALECT_EMISSION_UNSUPPORTED" | "CONNECTOR_UPSTREAM_UNAVAILABLE" | "EXTERNAL_SCHEMA_MISMATCH" | "EXTERNAL_SCHEMA_MODE_VIOLATION" | "EXTERNAL_WRITE_FORBIDDEN" | "PLUGIN_UI_REQUIRED_KEY_MISSING" | "STACK_CAPABILITY_UNKNOWN" | "STACK_CROSS_REFERENCE_INVALID" | "STACK_HIERARCHY_SCOPE_CAPABILITY_REQUIRED" | "STACK_NAMESPACE_PREFIX_INVALID" | "STACK_SCHEMA_INVALID" | "STACK_SINGLE_APP_VIOLATION" | "STACK_TRIGGER_CAPABILITY_REQUIRED", unknown>>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; +}, z.core.$strip>; + +// ── ApiMapping (type) ── +type ApiMapping = z.input; + +// ── ApiMappingSchema (const) ── +declare const ApiMappingSchema: z.ZodObject<{ + source: z.ZodString; + target: z.ZodString; + transform: z.ZodOptional; +}, z.core.$strip>; + +// ── ApiRoutes (type) ── +type ApiRoutes = z.input; + +// ── ApiRoutesSchema (const) ── +declare const ApiRoutesSchema: z.ZodObject<{ + data: z.ZodString; + metadata: z.ZodString; + discovery: z.ZodOptional; + ui: z.ZodOptional; + auth: z.ZodOptional; + automation: z.ZodOptional; + storage: z.ZodOptional; + analytics: z.ZodOptional; + packages: z.ZodOptional; + datasources: z.ZodOptional; + email: z.ZodOptional; + approvals: z.ZodOptional; + realtime: z.ZodOptional; + notifications: z.ZodOptional; + ai: z.ZodOptional; + i18n: z.ZodOptional; + mcp: z.ZodOptional; +}, z.core.$strip>; + +// ── ApiTestCollection (const) ── +declare const ApiTestCollection: z.ZodObject<{ + name: z.ZodString; + description: z.ZodOptional; + variables: z.ZodDefault>>; + requests: z.ZodArray; + method: z.ZodEnum<{ + GET: "GET"; + POST: "POST"; + PUT: "PUT"; + DELETE: "DELETE"; + PATCH: "PATCH"; + HEAD: "HEAD"; + OPTIONS: "OPTIONS"; + }>; + url: z.ZodString; + headers: z.ZodDefault>>; + queryParams: z.ZodDefault>>>; + body: z.ZodOptional; + variables: z.ZodDefault>>; + expectedResponse: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + folders: z.ZodOptional; + requests: z.ZodArray; + method: z.ZodEnum<{ + GET: "GET"; + POST: "POST"; + PUT: "PUT"; + DELETE: "DELETE"; + PATCH: "PATCH"; + HEAD: "HEAD"; + OPTIONS: "OPTIONS"; + }>; + url: z.ZodString; + headers: z.ZodDefault>>; + queryParams: z.ZodDefault>>>; + body: z.ZodOptional; + variables: z.ZodDefault>>; + expectedResponse: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + }, z.core.$strip>>>; +}, z.core.$strip> & { + create: >(config: T) => T; +}; + +// ── ApiTestCollection (type) ── +type ApiTestCollection = z.input; + +// ── ApiTestCollectionParsed (type) ── +type ApiTestCollectionParsed = z.infer; + +// ── ApiTestCollectionSchema (const) ── +declare const ApiTestCollectionSchema: z.ZodObject<{ + name: z.ZodString; + description: z.ZodOptional; + variables: z.ZodDefault>>; + requests: z.ZodArray; + method: z.ZodEnum<{ + GET: "GET"; + POST: "POST"; + PUT: "PUT"; + DELETE: "DELETE"; + PATCH: "PATCH"; + HEAD: "HEAD"; + OPTIONS: "OPTIONS"; + }>; + url: z.ZodString; + headers: z.ZodDefault>>; + queryParams: z.ZodDefault>>>; + body: z.ZodOptional; + variables: z.ZodDefault>>; + expectedResponse: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + folders: z.ZodOptional; + requests: z.ZodArray; + method: z.ZodEnum<{ + GET: "GET"; + POST: "POST"; + PUT: "PUT"; + DELETE: "DELETE"; + PATCH: "PATCH"; + HEAD: "HEAD"; + OPTIONS: "OPTIONS"; + }>; + url: z.ZodString; + headers: z.ZodDefault>>; + queryParams: z.ZodDefault>>>; + body: z.ZodOptional; + variables: z.ZodDefault>>; + expectedResponse: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── ApiTestRequest (type) ── +type ApiTestRequest = z.input; + +// ── ApiTestRequestParsed (type) ── +type ApiTestRequestParsed = z.infer; + +// ── ApiTestRequestSchema (const) ── +declare const ApiTestRequestSchema: z.ZodObject<{ + name: z.ZodString; + description: z.ZodOptional; + method: z.ZodEnum<{ + GET: "GET"; + POST: "POST"; + PUT: "PUT"; + DELETE: "DELETE"; + PATCH: "PATCH"; + HEAD: "HEAD"; + OPTIONS: "OPTIONS"; + }>; + url: z.ZodString; + headers: z.ZodDefault>>; + queryParams: z.ZodDefault>>>; + body: z.ZodOptional; + variables: z.ZodDefault>>; + expectedResponse: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── ApiTestingUiConfig (type) ── +type ApiTestingUiConfig = z.input; + +// ── ApiTestingUiConfigParsed (type) ── +type ApiTestingUiConfigParsed = z.infer; + +// ── ApiTestingUiConfigSchema (const) ── +declare const ApiTestingUiConfigSchema: z.ZodObject<{ + type: z.ZodEnum<{ + custom: "custom"; + "swagger-ui": "swagger-ui"; + redoc: "redoc"; + rapidoc: "rapidoc"; + stoplight: "stoplight"; + scalar: "scalar"; + graphiql: "graphiql"; + postman: "postman"; + }>; + path: z.ZodDefault; + theme: z.ZodDefault>; + enableTryItOut: z.ZodDefault; + enableFilter: z.ZodDefault; + enableCors: z.ZodDefault; + defaultModelsExpandDepth: z.ZodDefault; + displayRequestDuration: z.ZodDefault; + syntaxHighlighting: z.ZodDefault; + customCssUrl: z.ZodOptional; + customJsUrl: z.ZodOptional; + layout: z.ZodOptional; + showCommonExtensions: z.ZodDefault; + deepLinking: z.ZodDefault; + displayOperationId: z.ZodDefault; + defaultModelRendering: z.ZodDefault>; + defaultModelsExpandDepth: z.ZodDefault; + defaultModelExpandDepth: z.ZodDefault; + docExpansion: z.ZodDefault>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── ApiTestingUiType (const) ── +declare const ApiTestingUiType: z.ZodEnum<{ + custom: "custom"; + "swagger-ui": "swagger-ui"; + redoc: "redoc"; + rapidoc: "rapidoc"; + stoplight: "stoplight"; + scalar: "scalar"; + graphiql: "graphiql"; + postman: "postman"; +}>; + +// ── ApiTestingUiType (type) ── +type ApiTestingUiType = z.input; + +// ── AppDefinitionResponse (type) ── +type AppDefinitionResponse = z.input; + +// ── AppDefinitionResponseParsed (type) ── +type AppDefinitionResponseParsed = z.infer; + +// ── AppDefinitionResponseSchema (const) ── +declare const AppDefinitionResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + version: z.ZodOptional; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + branding: z.ZodOptional; + accentColor: z.ZodOptional; + logo: z.ZodOptional; + favicon: z.ZodOptional; + }, z.core.$strict>>; + active: z.ZodDefault>; + isDefault: z.ZodDefault>; + hidden: z.ZodOptional; + _unpublished: z.ZodOptional; + navigation: z.ZodOptional>>>; + areas: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + icon: z.ZodOptional; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + navigation: z.ZodArray>>; + }, z.core.$strict>>>; + contextSelectors: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + icon: z.ZodOptional; + optionsSource: z.ZodObject<{ + endpoint: z.ZodString; + valueKey: z.ZodDefault; + labelKey: z.ZodDefault; + filter: z.ZodOptional>; + value: z.ZodUnion]>; + }, z.core.$strict>>>; + }, z.core.$strict>; + allValue: z.ZodDefault; + persist: z.ZodDefault>; + }, z.core.$strict>>>; + homePageId: z.ZodOptional; + requiredPermissions: z.ZodOptional>; + objects: z.ZodOptional; + apis: z.ZodOptional; + sharing: z.ZodOptional; + embed: z.ZodOptional; + mobileNavigation: z.ZodOptional; + defaultAgent: z.ZodOptional; + aria: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; +}, z.core.$strip>; + +// ── ApproveAiPendingActionResponse (type) ── +type ApproveAiPendingActionResponse = z.input; + +// ── ApproveAiPendingActionResponseSchema (const) ── +declare const ApproveAiPendingActionResponseSchema: z.ZodObject<{ + status: z.ZodEnum<{ + failed: "failed"; + executed: "executed"; + }>; + result: z.ZodOptional; + error: z.ZodOptional; +}, z.core.$strip>; + +// ── AssembledInstalledPackage (type) ── +type AssembledInstalledPackage = z.input; + +// ── AssembledInstalledPackageParsed (type) ── +type AssembledInstalledPackageParsed = z.infer; + +// ── AssembledInstalledPackageSchema (const) ── +declare const AssembledInstalledPackageSchema: z.ZodObject<{ + status: z.ZodDefault>; + enabled: z.ZodDefault; + installedAt: z.ZodOptional; + updatedAt: z.ZodOptional; + installedVersion: z.ZodOptional; + previousVersion: z.ZodOptional; + statusChangedAt: z.ZodOptional; + errorMessage: z.ZodOptional; + settings: z.ZodOptional>; + upgradeHistory: z.ZodOptional; + migrationLog: z.ZodOptional>; + }, z.core.$strip>>>; + registeredNamespaces: z.ZodOptional>; + manifest: z.ZodObject<{ + readonly [x: string]: z.core.$ZodType>; + functions: z.ZodOptional; + hooks: z.ZodOptional; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── AuditMetaItemRequest (type) ── +type AuditMetaItemRequest = z.input; + +// ── AuditMetaItemRequestSchema (const) ── +declare const AuditMetaItemRequestSchema: z.ZodObject<{ + type: z.ZodString; + name: z.ZodString; + organizationId: z.ZodOptional>; + limit: z.ZodOptional; +}, z.core.$strip>; + +// ── AuditMetaItemResponse (type) ── +type AuditMetaItemResponse = z.input; + +// ── AuditMetaItemResponseSchema (const) ── +declare const AuditMetaItemResponseSchema: z.ZodObject<{ + events: z.ZodArray; + operation: z.ZodEnum<{ + delete: "delete"; + reset: "reset"; + publish: "publish"; + save: "save"; + rollback: "rollback"; + }>; + outcome: z.ZodEnum<{ + allowed: "allowed"; + denied: "denied"; + forced: "forced"; + }>; + code: z.ZodString; + lockState: z.ZodNullable>; + lockOverridden: z.ZodBoolean; + requestId: z.ZodNullable; + note: z.ZodNullable; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── AuthEndpoint (type) ── +type AuthEndpoint = z.input; + +// ── AuthEndpointAlias (type) ── +type AuthEndpointAlias = keyof typeof AuthEndpointAliases; + +// ── AuthEndpointAliases (const) ── +declare const AuthEndpointAliases: { + readonly login: "/sign-in/email"; + readonly register: "/sign-up/email"; + readonly logout: "/sign-out"; + readonly me: "/get-session"; +}; + +// ── AuthEndpointPath (type) ── +type AuthEndpointPath = typeof AuthEndpointPaths[keyof typeof AuthEndpointPaths]; + +// ── AuthEndpointPaths (const) ── +declare const AuthEndpointPaths: { + readonly signInEmail: "/sign-in/email"; + readonly signUpEmail: "/sign-up/email"; + readonly signOut: "/sign-out"; + readonly getSession: "/get-session"; + readonly forgetPassword: "/forget-password"; + readonly resetPassword: "/reset-password"; + readonly sendVerificationEmail: "/send-verification-email"; + readonly verifyEmail: "/verify-email"; + readonly twoFactorEnable: "/two-factor/enable"; + readonly twoFactorVerify: "/two-factor/verify"; + readonly passkeyRegister: "/passkey/register"; + readonly passkeyAuthenticate: "/passkey/authenticate"; + readonly magicLinkSend: "/magic-link/send"; + readonly magicLinkVerify: "/magic-link/verify"; + readonly deviceRequest: "/device/request"; + readonly deviceToken: "/device/token"; + readonly deviceApprove: "/device/approve"; +}; + +// ── AuthEndpointSchema (const) ── +declare const AuthEndpointSchema: z.ZodObject<{ + signInEmail: z.ZodObject<{ + method: z.ZodLiteral<"POST">; + path: z.ZodLiteral<"/sign-in/email">; + description: z.ZodLiteral<"Sign in with email and password">; + }, z.core.$strip>; + signUpEmail: z.ZodObject<{ + method: z.ZodLiteral<"POST">; + path: z.ZodLiteral<"/sign-up/email">; + description: z.ZodLiteral<"Register new user with email and password">; + }, z.core.$strip>; + signOut: z.ZodObject<{ + method: z.ZodLiteral<"POST">; + path: z.ZodLiteral<"/sign-out">; + description: z.ZodLiteral<"Sign out current user">; + }, z.core.$strip>; + getSession: z.ZodObject<{ + method: z.ZodLiteral<"GET">; + path: z.ZodLiteral<"/get-session">; + description: z.ZodLiteral<"Get current user session">; + }, z.core.$strip>; + forgetPassword: z.ZodObject<{ + method: z.ZodLiteral<"POST">; + path: z.ZodLiteral<"/forget-password">; + description: z.ZodLiteral<"Request password reset email">; + }, z.core.$strip>; + resetPassword: z.ZodObject<{ + method: z.ZodLiteral<"POST">; + path: z.ZodLiteral<"/reset-password">; + description: z.ZodLiteral<"Reset password with token">; + }, z.core.$strip>; + sendVerificationEmail: z.ZodObject<{ + method: z.ZodLiteral<"POST">; + path: z.ZodLiteral<"/send-verification-email">; + description: z.ZodLiteral<"Send email verification link">; + }, z.core.$strip>; + verifyEmail: z.ZodObject<{ + method: z.ZodLiteral<"GET">; + path: z.ZodLiteral<"/verify-email">; + description: z.ZodLiteral<"Verify email with token">; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── AuthFeaturesConfig (type) ── +type AuthFeaturesConfig = z.input; + +// ── AuthFeaturesConfigParsed (type) ── +type AuthFeaturesConfigParsed = z.infer; + +// ── AuthFeaturesConfigSchema (const) ── +declare const AuthFeaturesConfigSchema: z.ZodObject<{ + twoFactor: z.ZodDefault; + passkeys: z.ZodOptional; + magicLink: z.ZodOptional; + organization: z.ZodDefault; + ssoEnforced: z.ZodOptional; + phoneNumber: z.ZodOptional; + phoneNumberOtp: z.ZodOptional; +}, z.core.$strip>; + +// ── AuthProvider (const) ── +declare const AuthProvider: z.ZodEnum<{ + local: "local"; + google: "google"; + github: "github"; + microsoft: "microsoft"; + ldap: "ldap"; + saml: "saml"; +}>; + +// ── AuthProvider (type) ── +type AuthProvider = z.input; + +// ── AuthProviderInfo (type) ── +type AuthProviderInfo = z.input; + +// ── AuthProviderInfoParsed (type) ── +type AuthProviderInfoParsed = z.infer; + +// ── AuthProviderInfoSchema (const) ── +declare const AuthProviderInfoSchema: z.ZodObject<{ + id: z.ZodString; + name: z.ZodString; + enabled: z.ZodBoolean; + type: z.ZodDefault>; +}, z.core.$strip>; + +// ── AutomationActionsResponse (type) ── +type AutomationActionsResponse = z.input; + +// ── AutomationActionsResponseParsed (type) ── +type AutomationActionsResponseParsed = z.infer; + +// ── AutomationActionsResponseSchema (const) ── +declare const AutomationActionsResponseSchema: z.ZodObject<{ + actions: z.ZodArray; + icon: z.ZodOptional; + category: z.ZodDefault>; + paradigms: z.ZodDefault>>; + configSchema: z.ZodOptional; + supportsPause: z.ZodDefault; + supportsCancellation: z.ZodDefault; + supportsRetry: z.ZodDefault; + needsOutbox: z.ZodDefault; + isAsync: z.ZodOptional; + handlerContract: z.ZodDefault>; + resumeAuthority: z.ZodOptional>; + maturity: z.ZodDefault>; + source: z.ZodDefault>; + deprecated: z.ZodDefault; + aliasOf: z.ZodOptional; + }, z.core.$strip>>; + total: z.ZodNumber; +}, z.core.$strip>; + +// ── AutomationApiContracts (const) ── +declare const AutomationApiContracts: { + listFlows: { + method: "GET"; + path: string; + input: z.ZodObject<{ + status: z.ZodOptional>; + type: z.ZodOptional>; + limit: z.ZodDefault; + cursor: z.ZodOptional; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + flows: z.ZodArray; + lastRunAt: z.ZodOptional; + }, z.core.$strip>>; + total: z.ZodOptional; + nextCursor: z.ZodOptional; + hasMore: z.ZodBoolean; + }, z.core.$strip>; + }, z.core.$strip>; + }; + getFlow: { + method: "GET"; + path: string; + input: z.ZodObject<{ + name: z.ZodString; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + successMessage: z.ZodOptional; + errorMessage: z.ZodOptional; + version: z.ZodDefault; + status: z.ZodDefault>; + template: z.ZodOptional; + type: z.ZodEnum<{ + api: "api"; + screen: "screen"; + schedule: "schedule"; + autolaunched: "autolaunched"; + record_change: "record_change"; + }>; + variables: z.ZodOptional; + isOutput: z.ZodDefault; + defaultValue: z.ZodOptional; + }, z.core.$strict>>>; + nodes: z.ZodArray>; + connectorConfig: z.ZodOptional>; + }, z.core.$strict>>; + position: z.ZodOptional>; + timeoutMs: z.ZodOptional; + inputSchema: z.ZodOptional; + required: z.ZodDefault; + description: z.ZodOptional; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional; + waitEventConfig: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + timeoutMs: z.ZodOptional; + onTimeout: z.ZodOptional; + }, z.core.$strict>>; + boundaryConfig: z.ZodOptional; + interrupting: z.ZodDefault; + errorCode: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform<{ + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "manual" | "webhook" | "timer" | "signal"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "cancel" | "timer" | "signal"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }, { + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "manual" | "webhook" | "timer" | "signal"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "cancel" | "timer" | "signal"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }>>>; + edges: z.ZodArray>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + source: z.ZodString; + }, z.core.$strip>]>>; + type: z.ZodDefault>; + label: z.ZodOptional; + isDefault: z.ZodDefault; + }, z.core.$strict>>; + active: z.ZodOptional; + runAs: z.ZodDefault>; + errorHandling: z.ZodOptional; + fallbackNodeId: z.ZodOptional; + backoffMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; + maxRetryDelayMs: z.ZodDefault; + jitter: z.ZodDefault; + retryDelayMs: z.ZodOptional; + strategy: z.ZodDefault>; + }, z.core.$strict>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; + }, z.core.$strip>; + }; + createFlow: { + method: "POST"; + path: string; + input: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + successMessage: z.ZodOptional; + errorMessage: z.ZodOptional; + version: z.ZodDefault; + status: z.ZodDefault>; + template: z.ZodOptional; + type: z.ZodEnum<{ + api: "api"; + screen: "screen"; + schedule: "schedule"; + autolaunched: "autolaunched"; + record_change: "record_change"; + }>; + variables: z.ZodOptional; + isOutput: z.ZodDefault; + defaultValue: z.ZodOptional; + }, z.core.$strict>>>; + nodes: z.ZodArray>; + connectorConfig: z.ZodOptional>; + }, z.core.$strict>>; + position: z.ZodOptional>; + timeoutMs: z.ZodOptional; + inputSchema: z.ZodOptional; + required: z.ZodDefault; + description: z.ZodOptional; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional; + waitEventConfig: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + timeoutMs: z.ZodOptional; + onTimeout: z.ZodOptional; + }, z.core.$strict>>; + boundaryConfig: z.ZodOptional; + interrupting: z.ZodDefault; + errorCode: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform<{ + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "manual" | "webhook" | "timer" | "signal"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "cancel" | "timer" | "signal"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }, { + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "manual" | "webhook" | "timer" | "signal"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "cancel" | "timer" | "signal"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }>>>; + edges: z.ZodArray>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + source: z.ZodString; + }, z.core.$strip>]>>; + type: z.ZodDefault>; + label: z.ZodOptional; + isDefault: z.ZodDefault; + }, z.core.$strict>>; + active: z.ZodOptional; + runAs: z.ZodDefault>; + errorHandling: z.ZodOptional; + fallbackNodeId: z.ZodOptional; + backoffMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; + maxRetryDelayMs: z.ZodDefault; + jitter: z.ZodDefault; + retryDelayMs: z.ZodOptional; + strategy: z.ZodDefault>; + }, z.core.$strict>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + successMessage: z.ZodOptional; + errorMessage: z.ZodOptional; + version: z.ZodDefault; + status: z.ZodDefault>; + template: z.ZodOptional; + type: z.ZodEnum<{ + api: "api"; + screen: "screen"; + schedule: "schedule"; + autolaunched: "autolaunched"; + record_change: "record_change"; + }>; + variables: z.ZodOptional; + isOutput: z.ZodDefault; + defaultValue: z.ZodOptional; + }, z.core.$strict>>>; + nodes: z.ZodArray>; + connectorConfig: z.ZodOptional>; + }, z.core.$strict>>; + position: z.ZodOptional>; + timeoutMs: z.ZodOptional; + inputSchema: z.ZodOptional; + required: z.ZodDefault; + description: z.ZodOptional; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional; + waitEventConfig: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + timeoutMs: z.ZodOptional; + onTimeout: z.ZodOptional; + }, z.core.$strict>>; + boundaryConfig: z.ZodOptional; + interrupting: z.ZodDefault; + errorCode: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform<{ + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "manual" | "webhook" | "timer" | "signal"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "cancel" | "timer" | "signal"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }, { + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "manual" | "webhook" | "timer" | "signal"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "cancel" | "timer" | "signal"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }>>>; + edges: z.ZodArray>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + source: z.ZodString; + }, z.core.$strip>]>>; + type: z.ZodDefault>; + label: z.ZodOptional; + isDefault: z.ZodDefault; + }, z.core.$strict>>; + active: z.ZodOptional; + runAs: z.ZodDefault>; + errorHandling: z.ZodOptional; + fallbackNodeId: z.ZodOptional; + backoffMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; + maxRetryDelayMs: z.ZodDefault; + jitter: z.ZodDefault; + retryDelayMs: z.ZodOptional; + strategy: z.ZodDefault>; + }, z.core.$strict>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; + }, z.core.$strip>; + }; + updateFlow: { + method: "PUT"; + path: string; + input: z.ZodObject<{ + name: z.ZodString; + definition: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + successMessage: z.ZodOptional; + errorMessage: z.ZodOptional; + version: z.ZodDefault; + status: z.ZodDefault>; + template: z.ZodOptional; + type: z.ZodEnum<{ + api: "api"; + screen: "screen"; + schedule: "schedule"; + autolaunched: "autolaunched"; + record_change: "record_change"; + }>; + variables: z.ZodOptional; + isOutput: z.ZodDefault; + defaultValue: z.ZodOptional; + }, z.core.$strict>>>; + nodes: z.ZodArray>; + connectorConfig: z.ZodOptional>; + }, z.core.$strict>>; + position: z.ZodOptional>; + timeoutMs: z.ZodOptional; + inputSchema: z.ZodOptional; + required: z.ZodDefault; + description: z.ZodOptional; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional; + waitEventConfig: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + timeoutMs: z.ZodOptional; + onTimeout: z.ZodOptional; + }, z.core.$strict>>; + boundaryConfig: z.ZodOptional; + interrupting: z.ZodDefault; + errorCode: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform<{ + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "manual" | "webhook" | "timer" | "signal"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "cancel" | "timer" | "signal"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }, { + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "manual" | "webhook" | "timer" | "signal"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "cancel" | "timer" | "signal"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }>>>; + edges: z.ZodArray>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + source: z.ZodString; + }, z.core.$strip>]>>; + type: z.ZodDefault>; + label: z.ZodOptional; + isDefault: z.ZodDefault; + }, z.core.$strict>>; + active: z.ZodOptional; + runAs: z.ZodDefault>; + errorHandling: z.ZodOptional; + fallbackNodeId: z.ZodOptional; + backoffMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; + maxRetryDelayMs: z.ZodDefault; + jitter: z.ZodDefault; + retryDelayMs: z.ZodOptional; + strategy: z.ZodDefault>; + }, z.core.$strict>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + successMessage: z.ZodOptional; + errorMessage: z.ZodOptional; + version: z.ZodDefault; + status: z.ZodDefault>; + template: z.ZodOptional; + type: z.ZodEnum<{ + api: "api"; + screen: "screen"; + schedule: "schedule"; + autolaunched: "autolaunched"; + record_change: "record_change"; + }>; + variables: z.ZodOptional; + isOutput: z.ZodDefault; + defaultValue: z.ZodOptional; + }, z.core.$strict>>>; + nodes: z.ZodArray>; + connectorConfig: z.ZodOptional>; + }, z.core.$strict>>; + position: z.ZodOptional>; + timeoutMs: z.ZodOptional; + inputSchema: z.ZodOptional; + required: z.ZodDefault; + description: z.ZodOptional; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional; + waitEventConfig: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + timeoutMs: z.ZodOptional; + onTimeout: z.ZodOptional; + }, z.core.$strict>>; + boundaryConfig: z.ZodOptional; + interrupting: z.ZodDefault; + errorCode: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform<{ + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "manual" | "webhook" | "timer" | "signal"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "cancel" | "timer" | "signal"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }, { + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "manual" | "webhook" | "timer" | "signal"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "cancel" | "timer" | "signal"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }>>>; + edges: z.ZodArray>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + source: z.ZodString; + }, z.core.$strip>]>>; + type: z.ZodDefault>; + label: z.ZodOptional; + isDefault: z.ZodDefault; + }, z.core.$strict>>; + active: z.ZodOptional; + runAs: z.ZodDefault>; + errorHandling: z.ZodOptional; + fallbackNodeId: z.ZodOptional; + backoffMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; + maxRetryDelayMs: z.ZodDefault; + jitter: z.ZodDefault; + retryDelayMs: z.ZodOptional; + strategy: z.ZodDefault>; + }, z.core.$strict>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; + }, z.core.$strip>; + }; + deleteFlow: { + method: "DELETE"; + path: string; + input: z.ZodObject<{ + name: z.ZodString; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + name: z.ZodString; + deleted: z.ZodBoolean; + }, z.core.$strip>; + }, z.core.$strip>; + }; + triggerFlow: { + method: "POST"; + path: string; + input: z.ZodObject<{ + name: z.ZodString; + record: z.ZodOptional>; + object: z.ZodOptional; + event: z.ZodOptional; + userId: z.ZodOptional; + params: z.ZodOptional>; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + success: z.ZodBoolean; + output: z.ZodOptional; + error: z.ZodOptional; + durationMs: z.ZodOptional; + code: z.ZodOptional>; + status: z.ZodOptional>; + runId: z.ZodOptional; + screen: z.ZodOptional; + description: z.ZodOptional; + fields: z.ZodArray; + type: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + defaultValue: z.ZodOptional; + placeholder: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + inlineHelpText: z.ZodOptional; + reference: z.ZodOptional; + visibleWhen: z.ZodOptional; + }, z.core.$strip>>; + kind: z.ZodOptional>; + objectName: z.ZodOptional; + mode: z.ZodOptional>; + recordId: z.ZodOptional; + defaults: z.ZodOptional>; + idVariable: z.ZodOptional; + }, z.core.$strip>>; + successMessage: z.ZodOptional; + errorMessage: z.ZodOptional; + refusalMessage: z.ZodOptional; + summary: z.ZodOptional; + failed: z.ZodOptional; + nodes: z.ZodArray; + status: z.ZodEnum<{ + success: "success"; + skipped: "skipped"; + failure: "failure"; + }>; + runs: z.ZodNumber; + failures: z.ZodNumber; + skipped: z.ZodNumber; + selected: z.ZodOptional; + acted: z.ZodOptional; + unmeasured: z.ZodOptional; + }, z.core.$strip>>; + gates: z.ZodArray; + label: z.ZodOptional; + skipped: z.ZodNumber; + }, z.core.$strip>>; + detailOmitted: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + }, z.core.$strip>; + }; + toggleFlow: { + method: "POST"; + path: string; + input: z.ZodObject<{ + name: z.ZodString; + enabled: z.ZodBoolean; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + name: z.ZodString; + enabled: z.ZodBoolean; + }, z.core.$strip>; + }, z.core.$strip>; + }; + listRuns: { + method: "GET"; + path: string; + input: z.ZodObject<{ + name: z.ZodString; + status: z.ZodOptional>; + limit: z.ZodDefault; + cursor: z.ZodOptional; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + runs: z.ZodArray; + status: z.ZodEnum<{ + failed: "failed"; + refused: "refused"; + pending: "pending"; + completed: "completed"; + running: "running"; + cancelled: "cancelled"; + paused: "paused"; + timed_out: "timed_out"; + retrying: "retrying"; + }>; + refusalMessage: z.ZodOptional; + trigger: z.ZodObject<{ + type: z.ZodString; + recordId: z.ZodOptional; + object: z.ZodOptional; + userId: z.ZodOptional; + metadata: z.ZodOptional>; + }, z.core.$strip>; + steps: z.ZodArray; + status: z.ZodEnum<{ + success: "success"; + skipped: "skipped"; + failure: "failure"; + }>; + startedAt: z.ZodString; + completedAt: z.ZodOptional; + durationMs: z.ZodOptional; + input: z.ZodOptional>; + output: z.ZodOptional>; + error: z.ZodOptional; + }, z.core.$strip>>; + retryAttempt: z.ZodOptional; + parentNodeId: z.ZodOptional; + iteration: z.ZodOptional; + branch: z.ZodOptional; + regionKind: z.ZodOptional; + metrics: z.ZodOptional; + acted: z.ZodOptional; + unmeasuredEffect: z.ZodOptional; + failures: z.ZodOptional; + }, z.core.$strip>>; + skippedBy: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + summary: z.ZodOptional; + failed: z.ZodOptional; + nodes: z.ZodArray; + status: z.ZodEnum<{ + success: "success"; + skipped: "skipped"; + failure: "failure"; + }>; + runs: z.ZodNumber; + failures: z.ZodNumber; + skipped: z.ZodNumber; + selected: z.ZodOptional; + acted: z.ZodOptional; + unmeasured: z.ZodOptional; + }, z.core.$strip>>; + gates: z.ZodArray; + label: z.ZodOptional; + skipped: z.ZodNumber; + }, z.core.$strip>>; + detailOmitted: z.ZodOptional; + }, z.core.$strip>>; + variables: z.ZodOptional>; + startedAt: z.ZodString; + completedAt: z.ZodOptional; + durationMs: z.ZodOptional; + runAs: z.ZodOptional>; + tenantId: z.ZodOptional; + }, z.core.$strip>>; + total: z.ZodOptional; + nextCursor: z.ZodOptional; + hasMore: z.ZodBoolean; + }, z.core.$strip>; + }, z.core.$strip>; + }; + getRun: { + method: "GET"; + path: string; + input: z.ZodObject<{ + name: z.ZodString; + runId: z.ZodString; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + id: z.ZodString; + flowName: z.ZodString; + flowVersion: z.ZodOptional; + status: z.ZodEnum<{ + failed: "failed"; + refused: "refused"; + pending: "pending"; + completed: "completed"; + running: "running"; + cancelled: "cancelled"; + paused: "paused"; + timed_out: "timed_out"; + retrying: "retrying"; + }>; + refusalMessage: z.ZodOptional; + trigger: z.ZodObject<{ + type: z.ZodString; + recordId: z.ZodOptional; + object: z.ZodOptional; + userId: z.ZodOptional; + metadata: z.ZodOptional>; + }, z.core.$strip>; + steps: z.ZodArray; + status: z.ZodEnum<{ + success: "success"; + skipped: "skipped"; + failure: "failure"; + }>; + startedAt: z.ZodString; + completedAt: z.ZodOptional; + durationMs: z.ZodOptional; + input: z.ZodOptional>; + output: z.ZodOptional>; + error: z.ZodOptional; + }, z.core.$strip>>; + retryAttempt: z.ZodOptional; + parentNodeId: z.ZodOptional; + iteration: z.ZodOptional; + branch: z.ZodOptional; + regionKind: z.ZodOptional; + metrics: z.ZodOptional; + acted: z.ZodOptional; + unmeasuredEffect: z.ZodOptional; + failures: z.ZodOptional; + }, z.core.$strip>>; + skippedBy: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + summary: z.ZodOptional; + failed: z.ZodOptional; + nodes: z.ZodArray; + status: z.ZodEnum<{ + success: "success"; + skipped: "skipped"; + failure: "failure"; + }>; + runs: z.ZodNumber; + failures: z.ZodNumber; + skipped: z.ZodNumber; + selected: z.ZodOptional; + acted: z.ZodOptional; + unmeasured: z.ZodOptional; + }, z.core.$strip>>; + gates: z.ZodArray; + label: z.ZodOptional; + skipped: z.ZodNumber; + }, z.core.$strip>>; + detailOmitted: z.ZodOptional; + }, z.core.$strip>>; + variables: z.ZodOptional>; + startedAt: z.ZodString; + completedAt: z.ZodOptional; + durationMs: z.ZodOptional; + runAs: z.ZodOptional>; + tenantId: z.ZodOptional; + }, z.core.$strip>; + }, z.core.$strip>; + }; +}; + +// ── AutomationApiErrorCode (const) ── +declare const AutomationApiErrorCode: z.ZodEnum<{ + flow_not_found: "flow_not_found"; + flow_already_exists: "flow_already_exists"; + flow_validation_failed: "flow_validation_failed"; + flow_disabled: "flow_disabled"; + execution_not_found: "execution_not_found"; + execution_failed: "execution_failed"; + execution_timeout: "execution_timeout"; + node_executor_not_found: "node_executor_not_found"; + concurrent_execution_limit: "concurrent_execution_limit"; +}>; + +// ── AutomationApiErrorCode (type) ── +type AutomationApiErrorCode = z.input; + +// ── AutomationFlowPathParams (type) ── +type AutomationFlowPathParams = z.input; + +// ── AutomationFlowPathParamsSchema (const) ── +declare const AutomationFlowPathParamsSchema: z.ZodObject<{ + name: z.ZodString; +}, z.core.$strip>; + +// ── AutomationProtocol (interface) ── +interface AutomationProtocol { + triggerAutomation?(request: AutomationTriggerRequest): Promise; +} + +// ── AutomationRunPathParams (type) ── +type AutomationRunPathParams = z.input; + +// ── AutomationRunPathParamsSchema (const) ── +declare const AutomationRunPathParamsSchema: z.ZodObject<{ + name: z.ZodString; + runId: z.ZodString; +}, z.core.$strip>; + +// ── AutomationTriggerRequest (type) ── +type AutomationTriggerRequest = z.input; + +// ── AutomationTriggerRequestSchema (const) ── +declare const AutomationTriggerRequestSchema: z.ZodObject<{ + trigger: z.ZodString; + payload: z.ZodRecord; +}, z.core.$strip>; + +// ── AutomationTriggerResponse (type) ── +type AutomationTriggerResponse = z.input; + +// ── AutomationTriggerResponseSchema (const) ── +declare const AutomationTriggerResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + jobId: z.ZodOptional; + result: z.ZodOptional; +}, z.core.$strip>; + +// ── BasePresence (type) ── +type BasePresence = z.input; + +// ── BasePresenceSchema (const) ── +declare const BasePresenceSchema: z.ZodObject<{ + userId: z.ZodString; + status: z.ZodEnum<{ + online: "online"; + away: "away"; + busy: "busy"; + offline: "offline"; + }>; + lastSeen: z.ZodString; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── BaseResponse (type) ── +type BaseResponse = z.input; + +// ── BaseResponseParsed (type) ── +type BaseResponseParsed = z.infer; + +// ── BaseResponseSchema (const) ── +declare const BaseResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── BatchApiContracts (const) ── +declare const BatchApiContracts: { + batchOperation: { + input: z.ZodObject<{ + operation: z.ZodEnum<{ + create: "create"; + update: "update"; + delete: "delete"; + upsert: "upsert"; + }>; + records: z.ZodArray; + data: z.ZodOptional>; + externalId: z.ZodOptional; + }, z.core.$strip>>; + options: z.ZodOptional>; + returnRecords: z.ZodDefault>; + continueOnError: z.ZodDefault>; + validateOnly: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + operation: z.ZodOptional>; + total: z.ZodNumber; + succeeded: z.ZodNumber; + failed: z.ZodNumber; + results: z.ZodArray; + success: z.ZodBoolean; + errors: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>>; + data: z.ZodOptional>; + index: z.ZodOptional; + droppedFields: z.ZodOptional; + reason: z.ZodEnum<{ + readonly: "readonly"; + readonly_when: "readonly_when"; + primary_key: "primary_key"; + }>; + }, z.core.$strip>>>; + }, z.core.$strip>>; + }, z.core.$strip>; + }; + updateMany: { + input: z.ZodObject<{ + records: z.ZodArray; + }, z.core.$strip>>; + options: z.ZodOptional>; + returnRecords: z.ZodDefault>; + continueOnError: z.ZodDefault>; + validateOnly: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + operation: z.ZodOptional>; + total: z.ZodNumber; + succeeded: z.ZodNumber; + failed: z.ZodNumber; + results: z.ZodArray; + success: z.ZodBoolean; + errors: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>>; + data: z.ZodOptional>; + index: z.ZodOptional; + droppedFields: z.ZodOptional; + reason: z.ZodEnum<{ + readonly: "readonly"; + readonly_when: "readonly_when"; + primary_key: "primary_key"; + }>; + }, z.core.$strip>>>; + }, z.core.$strip>>; + }, z.core.$strip>; + }; + deleteMany: { + input: z.ZodObject<{ + ids: z.ZodArray; + options: z.ZodOptional>; + returnRecords: z.ZodDefault>; + continueOnError: z.ZodDefault>; + validateOnly: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + operation: z.ZodOptional>; + total: z.ZodNumber; + succeeded: z.ZodNumber; + failed: z.ZodNumber; + results: z.ZodArray; + success: z.ZodBoolean; + errors: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>>; + data: z.ZodOptional>; + index: z.ZodOptional; + droppedFields: z.ZodOptional; + reason: z.ZodEnum<{ + readonly: "readonly"; + readonly_when: "readonly_when"; + primary_key: "primary_key"; + }>; + }, z.core.$strip>>>; + }, z.core.$strip>>; + }, z.core.$strip>; + }; +}; + +// ── BatchConfig (type) ── +type BatchConfig = z.input; + +// ── BatchConfigParsed (type) ── +type BatchConfigParsed = z.infer; + +// ── BatchConfigSchema (const) ── +declare const BatchConfigSchema: z.ZodObject<{ + enabled: z.ZodDefault; + maxRecordsPerBatch: z.ZodDefault; + defaultOptions: z.ZodOptional>; + returnRecords: z.ZodDefault>; + continueOnError: z.ZodDefault>; + validateOnly: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$loose>; + +// ── BatchDataRequest (type) ── +type BatchDataRequest = z.input; + +// ── BatchDataRequestParsed (type) ── +type BatchDataRequestParsed = z.infer; + +// ── BatchDataRequestSchema (const) ── +declare const BatchDataRequestSchema: z.ZodObject<{ + object: z.ZodString; + request: z.ZodObject<{ + operation: z.ZodEnum<{ + create: "create"; + update: "update"; + delete: "delete"; + upsert: "upsert"; + }>; + records: z.ZodArray; + data: z.ZodOptional>; + externalId: z.ZodOptional; + }, z.core.$strip>>; + options: z.ZodOptional>; + returnRecords: z.ZodDefault>; + continueOnError: z.ZodDefault>; + validateOnly: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── BatchDataResponse (type) ── +type BatchDataResponse = z.input; + +// ── BatchDataResponseParsed (type) ── +type BatchDataResponseParsed = z.infer; + +// ── BatchDataResponseSchema (const) ── +declare const BatchDataResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + operation: z.ZodOptional>; + total: z.ZodNumber; + succeeded: z.ZodNumber; + failed: z.ZodNumber; + results: z.ZodArray; + success: z.ZodBoolean; + errors: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>>; + data: z.ZodOptional>; + index: z.ZodOptional; + droppedFields: z.ZodOptional; + reason: z.ZodEnum<{ + readonly: "readonly"; + readonly_when: "readonly_when"; + primary_key: "primary_key"; + }>; + }, z.core.$strip>>>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── BatchEndpointsConfig (type) ── +type BatchEndpointsConfig = z.input; + +// ── BatchEndpointsConfigParsed (type) ── +type BatchEndpointsConfigParsed = z.infer; + +// ── BatchEndpointsConfigSchema (const) ── +declare const BatchEndpointsConfigSchema: z.ZodObject<{ + maxBatchSize: z.ZodDefault; + enableBatchEndpoint: z.ZodDefault; + operations: z.ZodOptional; + updateMany: z.ZodDefault; + deleteMany: z.ZodDefault; + upsertMany: z.ZodOptional; + }, z.core.$strip>>; + defaultAtomic: z.ZodOptional; +}, z.core.$strip>; + +// ── BatchLoadingStrategy (type) ── +type BatchLoadingStrategy = z.input; + +// ── BatchLoadingStrategyParsed (type) ── +type BatchLoadingStrategyParsed = z.infer; + +// ── BatchLoadingStrategySchema (const) ── +declare const BatchLoadingStrategySchema: z.ZodObject<{ + strategy: z.ZodEnum<{ + dataloader: "dataloader"; + windowed: "windowed"; + prefetch: "prefetch"; + }>; + windowMs: z.ZodOptional; + prefetchDepth: z.ZodOptional; + associationLoading: z.ZodDefault>; +}, z.core.$strip>; + +// ── BatchOperationResult (type) ── +type BatchOperationResult = z.input; + +// ── BatchOperationResultParsed (type) ── +type BatchOperationResultParsed = z.infer; + +// ── BatchOperationResultSchema (const) ── +declare const BatchOperationResultSchema: z.ZodObject<{ + id: z.ZodOptional; + success: z.ZodBoolean; + errors: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>>; + data: z.ZodOptional>; + index: z.ZodOptional; + droppedFields: z.ZodOptional; + reason: z.ZodEnum<{ + readonly: "readonly"; + readonly_when: "readonly_when"; + primary_key: "primary_key"; + }>; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── BatchOperationType (const) ── +declare const BatchOperationType: z.ZodEnum<{ + create: "create"; + update: "update"; + delete: "delete"; + upsert: "upsert"; +}>; + +// ── BatchOperationType (type) ── +type BatchOperationType = z.input; + +// ── BatchOptions (type) ── +type BatchOptions = z.input; + +// ── BatchOptionsParsed (type) ── +type BatchOptionsParsed = z.infer; + +// ── BatchOptionsSchema (const) ── +declare const BatchOptionsSchema: z.ZodObject<{ + atomic: z.ZodDefault>; + returnRecords: z.ZodDefault>; + continueOnError: z.ZodDefault>; + validateOnly: z.ZodOptional; +}, z.core.$strip>; + +// ── BatchRecord (type) ── +type BatchRecord = z.input; + +// ── BatchRecordSchema (const) ── +declare const BatchRecordSchema: z.ZodObject<{ + id: z.ZodOptional; + data: z.ZodOptional>; + externalId: z.ZodOptional; +}, z.core.$strip>; + +// ── BatchUpdateRequest (type) ── +type BatchUpdateRequest = z.input; + +// ── BatchUpdateRequestParsed (type) ── +type BatchUpdateRequestParsed = z.infer; + +// ── BatchUpdateRequestSchema (const) ── +declare const BatchUpdateRequestSchema: z.ZodObject<{ + operation: z.ZodEnum<{ + create: "create"; + update: "update"; + delete: "delete"; + upsert: "upsert"; + }>; + records: z.ZodArray; + data: z.ZodOptional>; + externalId: z.ZodOptional; + }, z.core.$strip>>; + options: z.ZodOptional>; + returnRecords: z.ZodDefault>; + continueOnError: z.ZodDefault>; + validateOnly: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── BatchUpdateResponse (type) ── +type BatchUpdateResponse = z.input; + +// ── BatchUpdateResponseParsed (type) ── +type BatchUpdateResponseParsed = z.infer; + +// ── BatchUpdateResponseSchema (const) ── +declare const BatchUpdateResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + operation: z.ZodOptional>; + total: z.ZodNumber; + succeeded: z.ZodNumber; + failed: z.ZodNumber; + results: z.ZodArray; + success: z.ZodBoolean; + errors: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>>; + data: z.ZodOptional>; + index: z.ZodOptional; + droppedFields: z.ZodOptional; + reason: z.ZodEnum<{ + readonly: "readonly"; + readonly_when: "readonly_when"; + primary_key: "primary_key"; + }>; + }, z.core.$strip>>>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── BulkDataEvent (type) ── +type BulkDataEvent = z.input; + +// ── BulkDataEventSchema (const) ── +declare const BulkDataEventSchema: z.ZodObject<{ + id: z.ZodString; + type: z.ZodEnum<{ + "data.records.updated": "data.records.updated"; + "data.records.deleted": "data.records.deleted"; + }>; + object: z.ZodString; + organizationId: z.ZodOptional; + matched: z.ZodNumber; + userId: z.ZodOptional; + timestamp: z.ZodString; +}, z.core.$strip>; + +// ── BulkDataEventType (const) ── +declare const BulkDataEventType: z.ZodEnum<{ + "data.records.updated": "data.records.updated"; + "data.records.deleted": "data.records.deleted"; +}>; + +// ── BulkDataEventType (type) ── +type BulkDataEventType = z.input; + +// ── BulkRequest (type) ── +type BulkRequest = z.input; + +// ── BulkRequestParsed (type) ── +type BulkRequestParsed = z.infer; + +// ── BulkRequestSchema (const) ── +declare const BulkRequestSchema: z.ZodObject<{ + records: z.ZodArray>; + allOrNone: z.ZodDefault; +}, z.core.$strip>; + +// ── BulkResponse (type) ── +type BulkResponse = z.input; + +// ── BulkResponseParsed (type) ── +type BulkResponseParsed = z.infer; + +// ── BulkResponseSchema (const) ── +declare const BulkResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodArray; + success: z.ZodBoolean; + errors: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>>; + index: z.ZodOptional; + data: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── CHANNEL_SURFACE_SLOTS (const) ── +declare const CHANNEL_SURFACE_SLOTS: ReadonlySet; + +// ── CacheControl (type) ── +type CacheControl = z.input; + +// ── CacheControlSchema (const) ── +declare const CacheControlSchema: z.ZodObject<{ + directives: z.ZodArray>; + maxAge: z.ZodOptional; + staleWhileRevalidate: z.ZodOptional; + staleIfError: z.ZodOptional; +}, z.core.$strip>; + +// ── CacheDirective (const) ── +declare const CacheDirective: z.ZodEnum<{ + public: "public"; + private: "private"; + "no-cache": "no-cache"; + "no-store": "no-store"; + "must-revalidate": "must-revalidate"; + "max-age": "max-age"; +}>; + +// ── CacheDirective (type) ── +type CacheDirective = z.input; + +// ── CacheInvalidationRequest (type) ── +type CacheInvalidationRequest = z.input; + +// ── CacheInvalidationRequestParsed (type) ── +type CacheInvalidationRequestParsed = z.infer; + +// ── CacheInvalidationRequestSchema (const) ── +declare const CacheInvalidationRequestSchema: z.ZodObject<{ + target: z.ZodEnum<{ + object: "object"; + custom: "custom"; + field: "field"; + permission: "permission"; + all: "all"; + layout: "layout"; + }>; + identifiers: z.ZodOptional>; + cascade: z.ZodDefault>; + pattern: z.ZodOptional; +}, z.core.$strip>; + +// ── CacheInvalidationResponse (type) ── +type CacheInvalidationResponse = z.input; + +// ── CacheInvalidationResponseSchema (const) ── +declare const CacheInvalidationResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + invalidated: z.ZodNumber; + targets: z.ZodOptional>; +}, z.core.$strip>; + +// ── CacheInvalidationTarget (const) ── +declare const CacheInvalidationTarget: z.ZodEnum<{ + object: "object"; + custom: "custom"; + field: "field"; + permission: "permission"; + all: "all"; + layout: "layout"; +}>; + +// ── CacheInvalidationTarget (type) ── +type CacheInvalidationTarget = z.input; + +// ── CapabilityDescriptor (type) ── +type CapabilityDescriptor = z.input; + +// ── CapabilityDescriptorSchema (const) ── +declare const CapabilityDescriptorSchema: z.ZodObject<{ + enabled: z.ZodBoolean; + features: z.ZodOptional>; + description: z.ZodOptional; +}, z.core.$strip>; + +// ── CheckPermissionRequest (type) ── +type CheckPermissionRequest = z.input; + +// ── CheckPermissionRequestSchema (const) ── +declare const CheckPermissionRequestSchema: z.ZodObject<{ + object: z.ZodString; + action: z.ZodEnum<{ + create: "create"; + delete: "delete"; + edit: "edit"; + read: "read"; + transfer: "transfer"; + restore: "restore"; + purge: "purge"; + }>; + recordId: z.ZodOptional; + field: z.ZodOptional; +}, z.core.$strip>; + +// ── CheckPermissionResponse (type) ── +type CheckPermissionResponse = z.input; + +// ── CheckPermissionResponseSchema (const) ── +declare const CheckPermissionResponseSchema: z.ZodObject<{ + allowed: z.ZodBoolean; + reason: z.ZodOptional; +}, z.core.$strip>; + +// ── CloneDataResponse (type) ── +type CloneDataResponse = z.input; + +// ── CloneDataResponseSchema (const) ── +declare const CloneDataResponseSchema: z.ZodObject<{ + object: z.ZodString; + id: z.ZodString; + sourceId: z.ZodString; + record: z.ZodRecord; + droppedFields: z.ZodOptional; + reason: z.ZodEnum<{ + readonly: "readonly"; + readonly_when: "readonly_when"; + primary_key: "primary_key"; + }>; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── CodeGenerationTemplate (type) ── +type CodeGenerationTemplate = z.input; + +// ── CodeGenerationTemplateSchema (const) ── +declare const CodeGenerationTemplateSchema: z.ZodObject<{ + language: z.ZodString; + name: z.ZodString; + template: z.ZodString; + variables: z.ZodOptional>; +}, z.core.$strip>; + +// ── CompleteChunkedUploadRequest (type) ── +type CompleteChunkedUploadRequest = z.input; + +// ── CompleteChunkedUploadRequestSchema (const) ── +declare const CompleteChunkedUploadRequestSchema: z.ZodObject<{ + uploadId: z.ZodString; + parts: z.ZodArray>; +}, z.core.$strip>; + +// ── CompleteChunkedUploadResponse (type) ── +type CompleteChunkedUploadResponse = z.input; + +// ── CompleteChunkedUploadResponseParsed (type) ── +type CompleteChunkedUploadResponseParsed = z.infer; + +// ── CompleteChunkedUploadResponseSchema (const) ── +declare const CompleteChunkedUploadResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + fileId: z.ZodString; + key: z.ZodString; + size: z.ZodNumber; + mimeType: z.ZodString; + eTag: z.ZodOptional; + url: z.ZodOptional; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── CompleteUploadRequest (type) ── +type CompleteUploadRequest = z.input; + +// ── CompleteUploadRequestSchema (const) ── +declare const CompleteUploadRequestSchema: z.ZodObject<{ + fileId: z.ZodString; + eTag: z.ZodOptional; +}, z.core.$strip>; + +// ── ConceptListResponse (type) ── +type ConceptListResponse = z.input; + +// ── ConceptListResponseParsed (type) ── +type ConceptListResponseParsed = z.infer; + +// ── ConceptListResponseSchema (const) ── +declare const ConceptListResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodArray; + description: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── ConflictResolutionStrategy (const) ── +declare const ConflictResolutionStrategy: z.ZodEnum<{ + error: "error"; + priority: "priority"; + "first-wins": "first-wins"; + "last-wins": "last-wins"; +}>; + +// ── ConflictResolutionStrategy (type) ── +type ConflictResolutionStrategy = z.input; + +// ── CreateAiConversationRequest (type) ── +type CreateAiConversationRequest = z.input; + +// ── CreateAiConversationRequestSchema (const) ── +declare const CreateAiConversationRequestSchema: z.ZodObject<{ + title: z.ZodOptional; + agentId: z.ZodOptional; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── CreateDataRequest (type) ── +type CreateDataRequest = z.input; + +// ── CreateDataRequestSchema (const) ── +declare const CreateDataRequestSchema: z.ZodObject<{ + object: z.ZodString; + data: z.ZodRecord; +}, z.core.$strip>; + +// ── CreateDataResponse (type) ── +type CreateDataResponse = z.input; + +// ── CreateDataResponseSchema (const) ── +declare const CreateDataResponseSchema: z.ZodObject<{ + object: z.ZodString; + id: z.ZodString; + record: z.ZodRecord; + droppedFields: z.ZodOptional; + reason: z.ZodEnum<{ + readonly: "readonly"; + readonly_when: "readonly_when"; + primary_key: "primary_key"; + }>; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── CreateExportJobRequest (type) ── +type CreateExportJobRequest = z.input; + +// ── CreateExportJobRequestParsed (type) ── +type CreateExportJobRequestParsed = z.infer; + +// ── CreateExportJobRequestSchema (const) ── +declare const CreateExportJobRequestSchema: z.ZodObject<{ + object: z.ZodString; + format: z.ZodDefault>; + fields: z.ZodOptional>; + filter: z.ZodOptional>; + sort: z.ZodOptional>; + }, z.core.$strip>>>; + limit: z.ZodOptional; + includeHeaders: z.ZodDefault; + encoding: z.ZodDefault; + templateId: z.ZodOptional; +}, z.core.$strip>; + +// ── CreateExportJobResponse (type) ── +type CreateExportJobResponse = z.input; + +// ── CreateExportJobResponseParsed (type) ── +type CreateExportJobResponseParsed = z.infer; + +// ── CreateExportJobResponseSchema (const) ── +declare const CreateExportJobResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + jobId: z.ZodString; + status: z.ZodEnum<{ + expired: "expired"; + failed: "failed"; + pending: "pending"; + completed: "completed"; + processing: "processing"; + cancelled: "cancelled"; + }>; + estimatedRecords: z.ZodOptional; + createdAt: z.ZodString; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── CreateFlowRequest (type) ── +type CreateFlowRequest = z.input; + +// ── CreateFlowRequestParsed (type) ── +type CreateFlowRequestParsed = z.infer; + +// ── CreateFlowRequestSchema (const) ── +declare const CreateFlowRequestSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + successMessage: z.ZodOptional; + errorMessage: z.ZodOptional; + version: z.ZodDefault; + status: z.ZodDefault>; + template: z.ZodOptional; + type: z.ZodEnum<{ + api: "api"; + screen: "screen"; + schedule: "schedule"; + autolaunched: "autolaunched"; + record_change: "record_change"; + }>; + variables: z.ZodOptional; + isOutput: z.ZodDefault; + defaultValue: z.ZodOptional; + }, z.core.$strict>>>; + nodes: z.ZodArray>; + connectorConfig: z.ZodOptional>; + }, z.core.$strict>>; + position: z.ZodOptional>; + timeoutMs: z.ZodOptional; + inputSchema: z.ZodOptional; + required: z.ZodDefault; + description: z.ZodOptional; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional; + waitEventConfig: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + timeoutMs: z.ZodOptional; + onTimeout: z.ZodOptional; + }, z.core.$strict>>; + boundaryConfig: z.ZodOptional; + interrupting: z.ZodDefault; + errorCode: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform<{ + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "manual" | "webhook" | "timer" | "signal"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "cancel" | "timer" | "signal"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }, { + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "manual" | "webhook" | "timer" | "signal"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "cancel" | "timer" | "signal"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }>>>; + edges: z.ZodArray>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + source: z.ZodString; + }, z.core.$strip>]>>; + type: z.ZodDefault>; + label: z.ZodOptional; + isDefault: z.ZodDefault; + }, z.core.$strict>>; + active: z.ZodOptional; + runAs: z.ZodDefault>; + errorHandling: z.ZodOptional; + fallbackNodeId: z.ZodOptional; + backoffMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; + maxRetryDelayMs: z.ZodDefault; + jitter: z.ZodDefault; + retryDelayMs: z.ZodOptional; + strategy: z.ZodDefault>; + }, z.core.$strict>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── CreateFlowResponse (type) ── +type CreateFlowResponse = z.input; + +// ── CreateFlowResponseParsed (type) ── +type CreateFlowResponseParsed = z.infer; + +// ── CreateFlowResponseSchema (const) ── +declare const CreateFlowResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + successMessage: z.ZodOptional; + errorMessage: z.ZodOptional; + version: z.ZodDefault; + status: z.ZodDefault>; + template: z.ZodOptional; + type: z.ZodEnum<{ + api: "api"; + screen: "screen"; + schedule: "schedule"; + autolaunched: "autolaunched"; + record_change: "record_change"; + }>; + variables: z.ZodOptional; + isOutput: z.ZodDefault; + defaultValue: z.ZodOptional; + }, z.core.$strict>>>; + nodes: z.ZodArray>; + connectorConfig: z.ZodOptional>; + }, z.core.$strict>>; + position: z.ZodOptional>; + timeoutMs: z.ZodOptional; + inputSchema: z.ZodOptional; + required: z.ZodDefault; + description: z.ZodOptional; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional; + waitEventConfig: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + timeoutMs: z.ZodOptional; + onTimeout: z.ZodOptional; + }, z.core.$strict>>; + boundaryConfig: z.ZodOptional; + interrupting: z.ZodDefault; + errorCode: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform<{ + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "manual" | "webhook" | "timer" | "signal"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "cancel" | "timer" | "signal"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }, { + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "manual" | "webhook" | "timer" | "signal"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "cancel" | "timer" | "signal"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }>>>; + edges: z.ZodArray>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + source: z.ZodString; + }, z.core.$strip>]>>; + type: z.ZodDefault>; + label: z.ZodOptional; + isDefault: z.ZodDefault; + }, z.core.$strict>>; + active: z.ZodOptional; + runAs: z.ZodDefault>; + errorHandling: z.ZodOptional; + fallbackNodeId: z.ZodOptional; + backoffMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; + maxRetryDelayMs: z.ZodDefault; + jitter: z.ZodDefault; + retryDelayMs: z.ZodOptional; + strategy: z.ZodDefault>; + }, z.core.$strict>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; +}, z.core.$strip>; + +// ── CreateImportJobRequest (type) ── +type CreateImportJobRequest = z.input; + +// ── CreateImportJobRequestParsed (type) ── +type CreateImportJobRequestParsed = z.infer; + +// ── CreateImportJobRequestSchema (const) ── +declare const CreateImportJobRequestSchema: z.ZodObject<{ + format: z.ZodOptional>; + csv: z.ZodOptional; + rows: z.ZodOptional>>; + xlsxBase64: z.ZodOptional; + sheet: z.ZodOptional>; + mapping: z.ZodOptional, z.ZodArray; + transform: z.ZodDefault>; + defaultValue: z.ZodOptional; + required: z.ZodDefault; + }, z.core.$strip>>]>>; + mappingName: z.ZodOptional; + dryRun: z.ZodDefault; + writeMode: z.ZodDefault>; + matchFields: z.ZodOptional>; + runAutomations: z.ZodDefault; + treatAsHistorical: z.ZodDefault; + trimWhitespace: z.ZodDefault; + nullValues: z.ZodOptional>; + createMissingOptions: z.ZodDefault; + skipBlankMatchKey: z.ZodDefault; +}, z.core.$strip>; + +// ── CreateImportJobResponse (type) ── +type CreateImportJobResponse = z.input; + +// ── CreateImportJobResponseSchema (const) ── +declare const CreateImportJobResponseSchema: z.ZodObject<{ + jobId: z.ZodString; + object: z.ZodString; + status: z.ZodEnum<{ + succeeded: "succeeded"; + failed: "failed"; + pending: "pending"; + running: "running"; + cancelled: "cancelled"; + }>; + total: z.ZodNumber; + createdAt: z.ZodString; +}, z.core.$strip>; + +// ── CreateManyDataRequest (type) ── +type CreateManyDataRequest = z.input; + +// ── CreateManyDataRequestSchema (const) ── +declare const CreateManyDataRequestSchema: z.ZodObject<{ + object: z.ZodString; + records: z.ZodArray>; +}, z.core.$strip>; + +// ── CreateManyDataResponse (type) ── +type CreateManyDataResponse = z.input; + +// ── CreateManyDataResponseSchema (const) ── +declare const CreateManyDataResponseSchema: z.ZodObject<{ + object: z.ZodString; + records: z.ZodArray>; + count: z.ZodNumber; + droppedFields: z.ZodOptional; + reason: z.ZodEnum<{ + readonly: "readonly"; + readonly_when: "readonly_when"; + primary_key: "primary_key"; + }>; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── CreateRequest (type) ── +type CreateRequest = z.input; + +// ── CreateRequestSchema (const) ── +declare const CreateRequestSchema: z.ZodObject<{ + data: z.ZodRecord; +}, z.core.$strip>; + +// ── CrossObjectBatchDroppedFields (type) ── +type CrossObjectBatchDroppedFields = z.input; + +// ── CrossObjectBatchDroppedFieldsSchema (const) ── +declare const CrossObjectBatchDroppedFieldsSchema: z.ZodObject<{ + object: z.ZodString; + fields: z.ZodArray; + reason: z.ZodEnum<{ + readonly: "readonly"; + readonly_when: "readonly_when"; + primary_key: "primary_key"; + }>; + index: z.ZodNumber; +}, z.core.$strip>; + +// ── CrossObjectBatchOperation (type) ── +type CrossObjectBatchOperation = z.input; + +// ── CrossObjectBatchOperationParsed (type) ── +type CrossObjectBatchOperationParsed = z.infer; + +// ── CrossObjectBatchOperationSchema (const) ── +declare const CrossObjectBatchOperationSchema: z.ZodObject<{ + object: z.ZodString; + action: z.ZodDefault>>; + id: z.ZodOptional; + data: z.ZodOptional>; +}, z.core.$strip>; + +// ── CrossObjectBatchRequest (type) ── +type CrossObjectBatchRequest = z.input; + +// ── CrossObjectBatchRequestParsed (type) ── +type CrossObjectBatchRequestParsed = z.infer; + +// ── CrossObjectBatchRequestSchema (const) ── +declare const CrossObjectBatchRequestSchema: z.ZodObject<{ + operations: z.ZodArray>>; + id: z.ZodOptional; + data: z.ZodOptional>; + }, z.core.$strip>>; + atomic: z.ZodDefault>; +}, z.core.$strip>; + +// ── CrossObjectBatchResponse (type) ── +type CrossObjectBatchResponse = z.input; + +// ── CrossObjectBatchResponseSchema (const) ── +declare const CrossObjectBatchResponseSchema: z.ZodObject<{ + results: z.ZodArray; + droppedFields: z.ZodOptional; + reason: z.ZodEnum<{ + readonly: "readonly"; + readonly_when: "readonly_when"; + primary_key: "primary_key"; + }>; + index: z.ZodNumber; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── CrudEndpointsConfig (type) ── +type CrudEndpointsConfig = z.input; + +// ── CrudEndpointsConfigParsed (type) ── +type CrudEndpointsConfigParsed = z.infer; + +// ── CrudEndpointsConfigSchema (const) ── +declare const CrudEndpointsConfigSchema: z.ZodObject<{ + operations: z.ZodOptional; + read: z.ZodDefault; + update: z.ZodDefault; + delete: z.ZodDefault; + list: z.ZodDefault; + }, z.core.$strip>>; + patterns: z.ZodOptional; + dataPrefix: z.ZodDefault; + objectParamStyle: z.ZodOptional; +}, z.core.$strip>; + +// ── CrudOperation (const) ── +declare const CrudOperation: z.ZodEnum<{ + create: "create"; + update: "update"; + delete: "delete"; + read: "read"; + list: "list"; +}>; + +// ── CrudOperation (type) ── +type CrudOperation = z.input; + +// ── CursorMessage (type) ── +type CursorMessage = z.input; + +// ── CursorMessageSchema (const) ── +declare const CursorMessageSchema: z.ZodObject<{ + messageId: z.ZodString; + timestamp: z.ZodString; + type: z.ZodLiteral<"cursor">; + cursor: z.ZodObject<{ + userId: z.ZodString; + sessionId: z.ZodString; + documentId: z.ZodString; + position: z.ZodOptional>; + selection: z.ZodOptional; + end: z.ZodObject<{ + line: z.ZodNumber; + column: z.ZodNumber; + }, z.core.$strip>; + }, z.core.$strip>>; + color: z.ZodOptional; + userName: z.ZodOptional; + lastUpdate: z.ZodString; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── CursorPosition (type) ── +type CursorPosition = z.input; + +// ── CursorPositionSchema (const) ── +declare const CursorPositionSchema: z.ZodObject<{ + userId: z.ZodString; + sessionId: z.ZodString; + documentId: z.ZodString; + position: z.ZodOptional>; + selection: z.ZodOptional; + end: z.ZodObject<{ + line: z.ZodNumber; + column: z.ZodNumber; + }, z.core.$strip>; + }, z.core.$strip>>; + color: z.ZodOptional; + userName: z.ZodOptional; + lastUpdate: z.ZodString; +}, z.core.$strip>; + +// ── DEFAULT_ANALYTICS_ROUTES (const) ── +declare const DEFAULT_ANALYTICS_ROUTES: RestApiRouteRegistration; + +// ── DEFAULT_AUTOMATION_ROUTES (const) ── +declare const DEFAULT_AUTOMATION_ROUTES: RestApiRouteRegistration; + +// ── DEFAULT_BATCH_ROUTES (const) ── +declare const DEFAULT_BATCH_ROUTES: RestApiRouteRegistration; + +// ── DEFAULT_DATA_CRUD_ROUTES (const) ── +declare const DEFAULT_DATA_CRUD_ROUTES: RestApiRouteRegistration; + +// ── DEFAULT_DISCOVERY_ROUTES (const) ── +declare const DEFAULT_DISCOVERY_ROUTES: RestApiRouteRegistration; + +// ── DEFAULT_I18N_ROUTES (const) ── +declare const DEFAULT_I18N_ROUTES: RestApiRouteRegistration; + +// ── DEFAULT_METADATA_ROUTES (const) ── +declare const DEFAULT_METADATA_ROUTES: RestApiRouteRegistration; + +// ── DEFAULT_NOTIFICATION_ROUTES (const) ── +declare const DEFAULT_NOTIFICATION_ROUTES: RestApiRouteRegistration; + +// ── DEFAULT_VERSIONING_CONFIG (const) ── +declare const DEFAULT_VERSIONING_CONFIG: VersioningConfig; + +// ── DataEvent (type) ── +type DataEvent = z.input; + +// ── DataEventSchema (const) ── +declare const DataEventSchema: z.ZodObject<{ + id: z.ZodString; + type: z.ZodEnum<{ + "data.record.created": "data.record.created"; + "data.record.updated": "data.record.updated"; + "data.record.deleted": "data.record.deleted"; + }>; + object: z.ZodString; + recordId: z.ZodString; + organizationId: z.ZodOptional; + changes: z.ZodOptional>; + before: z.ZodOptional>; + after: z.ZodOptional>; + userId: z.ZodOptional; + timestamp: z.ZodString; +}, z.core.$strip>; + +// ── DataEventType (const) ── +declare const DataEventType: z.ZodEnum<{ + "data.record.created": "data.record.created"; + "data.record.updated": "data.record.updated"; + "data.record.deleted": "data.record.deleted"; +}>; + +// ── DataEventType (type) ── +type DataEventType = z.input; + +// ── DataLoaderConfig (type) ── +type DataLoaderConfig = z.input; + +// ── DataLoaderConfigParsed (type) ── +type DataLoaderConfigParsed = z.infer; + +// ── DataLoaderConfigSchema (const) ── +declare const DataLoaderConfigSchema: z.ZodObject<{ + maxBatchSize: z.ZodDefault; + batchScheduleFn: z.ZodDefault>; + cacheEnabled: z.ZodDefault; + cacheKeyFn: z.ZodOptional; + cacheTtlSeconds: z.ZodOptional; + cacheTtl: z.ZodOptional; + coalesceRequests: z.ZodDefault; + maxConcurrency: z.ZodOptional; +}, z.core.$strip>; + +// ── DataProtocol (interface) ── +interface DataProtocol { + findData(request: FindDataRequest): Promise; + getData(request: GetDataRequest): Promise; + createData(request: CreateDataRequest): Promise; + updateData(request: UpdateDataRequest): Promise; + deleteData(request: DeleteDataRequest): Promise; + /** + * Validate-only (#6037 — #4633 ruling D): the write path's verdict on + * candidate rows, with nothing persisted. + * + * Declared optional because it is additive to a shipped contract, not + * because it is aspirational — `metadata-protocol` implements it in the same + * change that declares it. That is a ruling clause, not a style note: + * `BatchOptions.validateOnly` was retired in #4052 as a dry-run flag that + * "promised a dry-run" while every batch surface persisted regardless, so a + * caller previewing a mutation had it EXECUTED. A second declared-and-unmet + * validation promise is the one outcome this operation must not become. + * + * The verdict honours the deployment's real ADR-0104 posture, so it predicts + * what THIS deployment would do — see `ValidateDataResponseSchema.posture`. + */ + validateData?(request: ValidateDataRequest): Promise; + batchData?(request: BatchDataRequest): Promise; + createManyData?(request: CreateManyDataRequest): Promise; + updateManyData?(request: UpdateManyDataRequest): Promise; + deleteManyData?(request: DeleteManyDataRequest): Promise; +} + +// ── DeduplicationStrategy (const) ── +declare const DeduplicationStrategy: z.ZodEnum<{ + update: "update"; + fail: "fail"; + skip: "skip"; + create_new: "create_new"; +}>; + +// ── DeduplicationStrategy (type) ── +type DeduplicationStrategy = z.input; + +// ── DeleteDataRequest (type) ── +type DeleteDataRequest = z.input; + +// ── DeleteDataRequestSchema (const) ── +declare const DeleteDataRequestSchema: z.ZodObject<{ + object: z.ZodString; + id: z.ZodString; + expectedVersion: z.ZodOptional; +}, z.core.$strip>; + +// ── DeleteDataResponse (type) ── +type DeleteDataResponse = z.input; + +// ── DeleteDataResponseSchema (const) ── +declare const DeleteDataResponseSchema: z.ZodObject<{ + object: z.ZodString; + id: z.ZodString; + success: z.ZodBoolean; +}, z.core.$strip>; + +// ── DeleteFlowRequest (type) ── +type DeleteFlowRequest = z.input; + +// ── DeleteFlowRequestSchema (const) ── +declare const DeleteFlowRequestSchema: z.ZodObject<{ + name: z.ZodString; +}, z.core.$strip>; + +// ── DeleteFlowResponse (type) ── +type DeleteFlowResponse = z.input; + +// ── DeleteFlowResponseParsed (type) ── +type DeleteFlowResponseParsed = z.infer; + +// ── DeleteFlowResponseSchema (const) ── +declare const DeleteFlowResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + name: z.ZodString; + deleted: z.ZodBoolean; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── DeleteManyDataRequest (type) ── +type DeleteManyDataRequest = z.input; + +// ── DeleteManyDataRequestParsed (type) ── +type DeleteManyDataRequestParsed = z.infer; + +// ── DeleteManyDataRequestSchema (const) ── +declare const DeleteManyDataRequestSchema: z.ZodObject<{ + ids: z.ZodArray; + options: z.ZodOptional>; + returnRecords: z.ZodDefault>; + continueOnError: z.ZodDefault>; + validateOnly: z.ZodOptional; + }, z.core.$strip>>; + object: z.ZodString; +}, z.core.$strip>; + +// ── DeleteManyDataResponse (type) ── +type DeleteManyDataResponse = z.input; + +// ── DeleteManyDataResponseParsed (type) ── +type DeleteManyDataResponseParsed = z.infer; + +// ── DeleteManyDataResponseSchema (const) ── +declare const DeleteManyDataResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + operation: z.ZodOptional>; + total: z.ZodNumber; + succeeded: z.ZodNumber; + failed: z.ZodNumber; + results: z.ZodArray; + success: z.ZodBoolean; + errors: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>>; + data: z.ZodOptional>; + index: z.ZodOptional; + droppedFields: z.ZodOptional; + reason: z.ZodEnum<{ + readonly: "readonly"; + readonly_when: "readonly_when"; + primary_key: "primary_key"; + }>; + }, z.core.$strip>>>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── DeleteManyRequest (type) ── +type DeleteManyRequest = z.input; + +// ── DeleteManyRequestParsed (type) ── +type DeleteManyRequestParsed = z.infer; + +// ── DeleteManyRequestSchema (const) ── +declare const DeleteManyRequestSchema: z.ZodObject<{ + ids: z.ZodArray; + options: z.ZodOptional>; + returnRecords: z.ZodDefault>; + continueOnError: z.ZodDefault>; + validateOnly: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── DeleteMetaItemRequest (type) ── +type DeleteMetaItemRequest = z.input; + +// ── DeleteMetaItemRequestSchema (const) ── +declare const DeleteMetaItemRequestSchema: z.ZodObject<{ + type: z.ZodString; + name: z.ZodString; + organizationId: z.ZodOptional; + parentVersion: z.ZodOptional; + actor: z.ZodOptional; + state: z.ZodOptional>; + dropStorage: z.ZodOptional; +}, z.core.$strip>; + +// ── DeleteMetaItemResponse (type) ── +type DeleteMetaItemResponse = z.input; + +// ── DeleteMetaItemResponseSchema (const) ── +declare const DeleteMetaItemResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + reset: z.ZodOptional; + seq: z.ZodOptional; + projectionApplied: z.ZodOptional; + }, z.core.$strip>>; + message: z.ZodOptional; +}, z.core.$strip>; + +// ── DeleteResponse (type) ── +type DeleteResponse = z.input; + +// ── DeleteResponseParsed (type) ── +type DeleteResponseParsed = z.infer; + +// ── DeleteResponseSchema (const) ── +declare const DeleteResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + id: z.ZodString; +}, z.core.$strip>; + +// ── DeviceRequestResponse (type) ── +type DeviceRequestResponse = z.input; + +// ── DeviceRequestResponseParsed (type) ── +type DeviceRequestResponseParsed = z.infer; + +// ── DeviceRequestResponseSchema (const) ── +declare const DeviceRequestResponseSchema: z.ZodObject<{ + code: z.ZodString; + verificationUrl: z.ZodString; + expiresAt: z.ZodString; + intervalSeconds: z.ZodDefault; + interval: z.ZodOptional; +}, z.core.$strip>; + +// ── DeviceTokenResponse (type) ── +type DeviceTokenResponse = z.input; + +// ── DeviceTokenResponseSchema (const) ── +declare const DeviceTokenResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ + status: z.ZodLiteral<"pending">; +}, z.core.$strip>, z.ZodObject<{ + status: z.ZodLiteral<"approved">; + token: z.ZodString; + user: z.ZodObject<{ + id: z.ZodString; + email: z.ZodString; + name: z.ZodOptional; + }, z.core.$strip>; +}, z.core.$strip>, z.ZodObject<{ + status: z.ZodLiteral<"expired">; +}, z.core.$strip>], "status">; + +// ── DiffMetaItemResponse (type) ── +type DiffMetaItemResponse = z.input; + +// ── DiffMetaItemResponseParsed (type) ── +type DiffMetaItemResponseParsed = z.infer; + +// ── DiffMetaItemResponseSchema (const) ── +declare const DiffMetaItemResponseSchema: z.ZodObject<{ + type: z.ZodString; + name: z.ZodString; + fromVersion: z.ZodNullable; + toVersion: z.ZodNullable; + added: z.ZodArray>; + removed: z.ZodArray>; + changed: z.ZodArray>; +}, z.core.$strip>; + +// ── DisablePackageRequest (type) ── +type DisablePackageRequest = z.input; + +// ── DisablePackageRequestSchema (const) ── +declare const DisablePackageRequestSchema: z.ZodObject<{ + id: z.ZodString; +}, z.core.$strip>; + +// ── DisablePackageResponse (type) ── +type DisablePackageResponse = z.input; + +// ── DisablePackageResponseSchema (const) ── +declare const DisablePackageResponseSchema: z.ZodObject<{ + package: z.ZodObject<{ + manifest: z.ZodObject<{ + id: z.ZodString; + namespace: z.ZodOptional; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>; + status: z.ZodDefault>; + enabled: z.ZodDefault; + installedAt: z.ZodOptional; + updatedAt: z.ZodOptional; + installedVersion: z.ZodOptional; + previousVersion: z.ZodOptional; + statusChangedAt: z.ZodOptional; + errorMessage: z.ZodOptional; + settings: z.ZodOptional>; + upgradeHistory: z.ZodOptional; + migrationLog: z.ZodOptional>; + }, z.core.$strip>>>; + registeredNamespaces: z.ZodOptional>; + }, z.core.$strip>; + message: z.ZodOptional; +}, z.core.$strip>; + +// ── DiscardPackageDraftsResponse (type) ── +type DiscardPackageDraftsResponse = z.input; + +// ── DiscardPackageDraftsResponseParsed (type) ── +type DiscardPackageDraftsResponseParsed = z.infer; + +// ── DiscardPackageDraftsResponseSchema (const) ── +declare const DiscardPackageDraftsResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + discardedCount: z.ZodNumber; + failedCount: z.ZodNumber; + discarded: z.ZodArray>; + failed: z.ZodArray; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── DiscoveryEnvironment (type) ── +type DiscoveryEnvironment = z.input; + +// ── DiscoveryEnvironmentSchema (const) ── +declare const DiscoveryEnvironmentSchema: z.ZodEnum<{ + production: "production"; + sandbox: "sandbox"; + development: "development"; +}>; + +// ── DiscoveryResponse (type) ── +type DiscoveryResponse = z.input; + +// ── DiscoverySchema (const) ── +declare const DiscoverySchema: z.ZodObject<{ + name: z.ZodString; + version: z.ZodString; + environment: z.ZodEnum<{ + production: "production"; + sandbox: "sandbox"; + development: "development"; + }>; + routes: z.ZodObject<{ + data: z.ZodString; + metadata: z.ZodString; + discovery: z.ZodOptional; + ui: z.ZodOptional; + auth: z.ZodOptional; + automation: z.ZodOptional; + storage: z.ZodOptional; + analytics: z.ZodOptional; + packages: z.ZodOptional; + datasources: z.ZodOptional; + email: z.ZodOptional; + approvals: z.ZodOptional; + realtime: z.ZodOptional; + notifications: z.ZodOptional; + ai: z.ZodOptional; + i18n: z.ZodOptional; + mcp: z.ZodOptional; + }, z.core.$strip>; + locale: z.ZodObject<{ + default: z.ZodString; + supported: z.ZodArray; + timezone: z.ZodString; + }, z.core.$strip>; + services: z.ZodRecord; + handlerReady: z.ZodOptional; + route: z.ZodOptional; + provider: z.ZodOptional; + version: z.ZodOptional; + message: z.ZodOptional; + rateLimit: z.ZodOptional; + requestsPerHour: z.ZodOptional; + burstLimit: z.ZodOptional; + retryAfterMs: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + capabilities: z.ZodObject<{ + search: z.ZodObject<{ + enabled: z.ZodBoolean; + features: z.ZodOptional>; + description: z.ZodOptional; + }, z.core.$strip>; + cron: z.ZodObject<{ + enabled: z.ZodBoolean; + features: z.ZodOptional>; + description: z.ZodOptional; + }, z.core.$strip>; + automation: z.ZodObject<{ + enabled: z.ZodBoolean; + features: z.ZodOptional>; + description: z.ZodOptional; + }, z.core.$strip>; + analytics: z.ZodObject<{ + enabled: z.ZodBoolean; + features: z.ZodOptional>; + description: z.ZodOptional; + }, z.core.$strip>; + notifications: z.ZodObject<{ + enabled: z.ZodBoolean; + features: z.ZodOptional>; + description: z.ZodOptional; + }, z.core.$strip>; + ai: z.ZodObject<{ + enabled: z.ZodBoolean; + features: z.ZodOptional>; + description: z.ZodOptional; + }, z.core.$strip>; + i18n: z.ZodObject<{ + enabled: z.ZodBoolean; + features: z.ZodOptional>; + description: z.ZodOptional; + }, z.core.$strip>; + comments: z.ZodObject<{ + enabled: z.ZodBoolean; + features: z.ZodOptional>; + description: z.ZodOptional; + }, z.core.$strip>; + export: z.ZodObject<{ + enabled: z.ZodBoolean; + features: z.ZodOptional>; + description: z.ZodOptional; + }, z.core.$strip>; + chunkedUpload: z.ZodObject<{ + enabled: z.ZodBoolean; + features: z.ZodOptional>; + description: z.ZodOptional; + }, z.core.$strip>; + transactionalBatch: z.ZodObject<{ + enabled: z.ZodBoolean; + features: z.ZodOptional>; + description: z.ZodOptional; + }, z.core.$strip>; + websockets: z.ZodObject<{ + enabled: z.ZodBoolean; + features: z.ZodOptional>; + description: z.ZodOptional; + }, z.core.$strip>; + files: z.ZodObject<{ + enabled: z.ZodBoolean; + features: z.ZodOptional>; + description: z.ZodOptional; + }, z.core.$strip>; + }, z.core.$strip>; + schemaDiscovery: z.ZodOptional; + jsonSchema: z.ZodOptional; + }, z.core.$strip>>; + scoping: z.ZodOptional; + scoped: z.ZodBoolean; + environmentId: z.ZodOptional; + }, z.core.$strip>>; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── DispatcherConfig (type) ── +type DispatcherConfig = z.input; + +// ── DispatcherConfigParsed (type) ── +type DispatcherConfigParsed = z.infer; + +// ── DispatcherConfigSchema (const) ── +declare const DispatcherConfigSchema: z.ZodObject<{ + routes: z.ZodArray; + authRequired: z.ZodDefault; + criticality: z.ZodDefault>; + permissions: z.ZodOptional>; + }, z.core.$strip>>; + fallback: z.ZodDefault>; + proxyTarget: z.ZodOptional; +}, z.core.$strip>; + +// ── DispatcherErrorCode (const) ── +declare const DispatcherErrorCode: z.ZodEnum<{ + METHOD_NOT_ALLOWED: "METHOD_NOT_ALLOWED"; + SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE"; + NOT_IMPLEMENTED: "NOT_IMPLEMENTED"; + ROUTE_NOT_FOUND: "ROUTE_NOT_FOUND"; +}>; + +// ── DispatcherErrorCode (type) ── +type DispatcherErrorCode = z.input; + +// ── DispatcherErrorResponse (type) ── +type DispatcherErrorResponse = z.input; + +// ── DispatcherErrorResponseSchema (const) ── +declare const DispatcherErrorResponseSchema: z.ZodObject<{ + success: z.ZodLiteral; + error: z.ZodObject<{ + code: z.ZodString; + message: z.ZodString; + httpStatus: z.ZodOptional; + route: z.ZodOptional; + service: z.ZodOptional; + hint: z.ZodOptional; + details: z.ZodOptional; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── DispatcherRoute (type) ── +type DispatcherRoute = z.input; + +// ── DispatcherRouteParsed (type) ── +type DispatcherRouteParsed = z.infer; + +// ── DispatcherRouteSchema (const) ── +declare const DispatcherRouteSchema: z.ZodObject<{ + prefix: z.ZodString; + service: z.ZodEnum<{ + metadata: "metadata"; + search: "search"; + storage: "storage"; + data: "data"; + auth: "auth"; + cache: "cache"; + realtime: "realtime"; + ui: "ui"; + automation: "automation"; + analytics: "analytics"; + ai: "ai"; + i18n: "i18n"; + job: "job"; + "file-storage": "file-storage"; + queue: "queue"; + notification: "notification"; + }>; + authRequired: z.ZodDefault; + criticality: z.ZodDefault>; + permissions: z.ZodOptional>; +}, z.core.$strip>; + +// ── DocumentState (type) ── +type DocumentState = z.input; + +// ── DocumentStateSchema (const) ── +declare const DocumentStateSchema: z.ZodObject<{ + documentId: z.ZodString; + version: z.ZodNumber; + content: z.ZodString; + lastModified: z.ZodString; + activeSessions: z.ZodArray; + checksum: z.ZodOptional; +}, z.core.$strip>; + +// ── DuplicatePackageResponse (type) ── +type DuplicatePackageResponse = z.input; + +// ── DuplicatePackageResponseParsed (type) ── +type DuplicatePackageResponseParsed = z.infer; + +// ── DuplicatePackageResponseSchema (const) ── +declare const DuplicatePackageResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + copiedCount: z.ZodNumber; + failedCount: z.ZodNumber; + targetPackageId: z.ZodString; + copied: z.ZodArray>; + failed: z.ZodArray>; +}, z.core.$strip>; + +// ── ERROR_CODE_LEDGER (const) ── +declare const ERROR_CODE_LEDGER: { + readonly '@objectstack/rest': readonly ["ALREADY_REVERTED", "AMBIGUOUS_MATCH", "ANALYTICS_QUERY_FAILED", "APPROVAL_ACTIONS_FAILED", "APPROVAL_APPROVE_FAILED", "APPROVAL_COMMENT_FAILED", "APPROVAL_REASSIGN_FAILED", "APPROVAL_RECALL_FAILED", "APPROVAL_REJECT_FAILED", "APPROVAL_REMIND_FAILED", "APPROVAL_REQUEST_GET_FAILED", "APPROVAL_REQUEST_INFO_FAILED", "APPROVAL_REQUEST_LIST_FAILED", "APPROVAL_RESUBMIT_FAILED", "APPROVAL_REVISE_FAILED", "BATCH_NOT_ATOMIC", "BATCH_TOO_LARGE", "BATCH_UNRESOLVED_REF", "BLANK_MATCH_KEY", "CONCURRENT_UPDATE", "CONFLICT", "CONFLICTING_MAPPING", "DATASET_INVALID", "DELEGABLE_SCOPE_FAILED", "DUPLICATE_REQUEST", "EMAIL_SEND_FAILED", "ERR_BULK_RESULT_MISMATCH", "ERR_DATASOURCE_UNAVAILABLE", "EXPLAIN_FAILED", "EXPORT_NOT_PERMITTED", "EXTERNAL_DATASOURCE_ERROR", "EXTERNAL_IMPORT_ERROR", "FIELD_VISIBILITY_UNRESOLVED", "FORBIDDEN", "FORM_NOT_FOUND", "FORM_RESOLVE_FAILED", "IMPORT_JOB_CREATE_FAILED", "IMPORT_ROW_FAILED", "INTERNAL", "INVALID_REQUEST", "INVALID_STATE", "LOOKUP_NOT_PUBLIC", "LOOKUP_TARGET_MISSING", "MAPPING_FORMAT_MISMATCH", "MAPPING_FORMAT_UNSUPPORTED", "MAPPING_NOT_FOUND", "MAPPING_TARGET_MISMATCH", "NOT_FOUND", "NOT_UNDOABLE", "NO_MATCH", "OBJECT_API_DISABLED", "OBJECT_API_METHOD_NOT_ALLOWED", "OPENAPI_UNAVAILABLE", "PACKAGE_DELETE_FAILED", "PACKAGE_DELETE_PARTIAL", "PACKAGE_MANIFEST_INVALID", "PACKAGE_PUBLISH_FAILED", "PAYLOAD_TOO_LARGE", "PROJECT_NOT_FOUND", "PROJECT_PROVISIONING", "PROJECT_PROVISIONING_FAILED", "READ_BACK_FAILED", "REPORTS_LIST_FAILED", "REPORT_DELETE_FAILED", "REPORT_GET_FAILED", "REPORT_NOT_FOUND", "REPORT_RUN_FAILED", "REPORT_SAVE_FAILED", "REPORT_SCHEDULE_FAILED", "REQUEST_NOT_FOUND", "RESUME_FAILED", "RESUME_TARGET_LOST", "RULE_DEFINE_FAILED", "RULE_DELETE_FAILED", "RULE_EVALUATE_FAILED", "RULE_GET_FAILED", "RULE_LIST_FAILED", "RULE_NOT_FOUND", "SCHEDULES_LIST_FAILED", "SCHEDULE_DELETE_FAILED", "SHARES_LIST_FAILED", "SHARE_GRANT_FAILED", "SHARE_REVOKE_FAILED", "SUGGESTION_CONFIRM_FAILED", "SUGGESTION_DISMISS_FAILED", "SUGGESTION_LIST_FAILED", "SUMMARY_RECOMPUTE_FAILED", "THROTTLED", "UNAUTHORIZED", "UNIQUE_VIOLATION", "UNSUPPORTED_TRANSFORM", "VALIDATION_FAILED"]; + readonly '@objectstack/runtime': readonly ["ANALYTICS_DATE_RANGE_UNRECOGNIZED", "ACTION_CONFIRMATION_REQUIRED", "ACTION_DISABLED", "DUPLICATE_SOURCE_NOT_A_BASE", "EXPIRED_OR_REVOKED", "FLOW_DISABLED", "FLOW_FAILED", "FLOW_INPUT_SCHEMA_INVALID", "FLOW_NO_START_NODE", "INVALID_OR_EXPIRED", "NEEDS_PASSWORD", "PACKAGE_DELETE_PARTIAL", "PROJECT_MEMBERSHIP_REQUIRED", "RECORD_GONE", "ROUTE_NOT_FOUND", "SIGN_IN_REQUIRED", "UNSUPPORTED", "VALIDATION_FAILED", "WRITABLE_PACKAGE_REQUIRED", "WRONG_PASSWORD", "MIXED_ARTIFACT_COLLECTION_SHAPE"]; + readonly '@objectstack/service-storage': readonly ["ATTACHMENT_DELETE_DENIED", "ATTACHMENT_DOWNLOAD_DENIED", "ATTACHMENT_PARENT_ACCESS", "AUTH_REQUIRED", "ERR_FILE_CONSTRAINT", "ERR_FILE_REFERENCE_COPY", "FILE_DOWNLOAD_DENIED", "FILE_FIELD_BULK_WRITE_REFUSED", "FILE_NOT_FOUND", "INTERNAL", "INVALID_REQUEST", "INVALID_RESUME_TOKEN", "UPLOAD_SESSION_EXPIRED", "UPLOAD_SESSION_NOT_FOUND"]; + readonly '@objectstack/service-i18n': readonly ["INTERNAL", "INVALID_REQUEST"]; + readonly '@objectstack/plugin-auth': readonly ["ACCOUNT_LOCKED", "ASYNC_NOT_SUPPORTED", "AUTH_CONFIG_ERROR", "CREATE_FAILED", "DOMAIN_VERIFICATION_DISABLED", "DOMAIN_VERIFICATION_FAILED", "EMAIL_DOMAIN_NOT_ALLOWED", "EMAIL_SERVICE_REQUIRED", "ENV_ACCESS_DENIED", "INVALID_EMAIL", "INVALID_PHONE", "INVITE_EMAIL_FAILED", "INVITE_REQUIRES_EMAIL", "INVALID_REQUEST", "INVITE_SMS_FAILED", "IP_NOT_ALLOWED", "LAST_LOCAL_CREDENTIAL", "NO_IDENTITY", "NO_PENDING_VERIFICATION", "PASSWORD_ALREADY_SET", "PASSWORD_EXPIRED", "PASSWORD_POLICY_VIOLATION", "PASSWORD_REUSE", "OAUTH_REGISTER_FAILED", "PHONE_NOT_ENABLED", "SAML_REGISTER_FAILED", "SELF_REGISTRATION_CLOSED", "SSO_REGISTER_FAILED", "SSO_REGISTER_FORBIDDEN", "USER_ALREADY_EXISTS", "USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL", "VALIDATION_FAILED"]; + readonly '@objectstack/plugin-sharing': readonly ["AUDIENCE_NOT_ALLOWED", "ELIGIBILITY_UNEVALUABLE", "EXPIRED_OR_REVOKED", "EXPIRY_IN_PAST", "EXPIRY_TOO_LONG", "FORBIDDEN", "INTERNAL", "INVALID_EXPIRY", "INVALID_OR_EXPIRED", "NEEDS_PASSWORD", "NOT_FOUND", "PERMISSION_NOT_ALLOWED", "RECORD_GONE", "RECORD_NOT_ELIGIBLE", "SHARING_NOT_ENABLED", "SIGN_IN_REQUIRED", "UNSUPPORTED", "VALIDATION_FAILED", "WRONG_PASSWORD"]; + readonly '@objectstack/metadata-protocol': readonly ["AUDIT_TYPE_NOT_CANONICAL", "BATCH_ABORTED", "CLONE_DISABLED", "COMMIT_NOT_FOUND", "CONCURRENT_UPDATE", "DESTRUCTIVE_CHANGE", "FLOW_CONVERSION_CONFLICT", "INVALID_METADATA", "INVALID_REQUEST", "ITEM_LOCKED", "METADATA_CONFLICT", "NAMESPACE_PREFIX", "NO_DRAFT", "NOT_ATTEMPTED", "NOT_CREATABLE", "NOT_OVERRIDABLE", "OBJECT_OVERLAY_PACKAGE_MISMATCH", "OBJECT_PACKAGE_DISABLED", "QUERY_OBJECT_MISMATCH", "REGISTRY_TYPE_NOT_CANONICAL", "ROLLED_BACK", "STORED_TYPE_NOT_CANONICAL", "TENANT_SCOPE_REQUIRED", "UNSUPPORTED_QUERY_PARAM", "VALIDATION_FAILED", "VERSION_NOT_FOUND", "VERSION_NOT_RESTORABLE", "WRITABLE_PACKAGE_REQUIRED"]; + readonly '@objectstack/metadata-core': readonly ["METADATA_BRANCH", "METADATA_CONFLICT", "METADATA_NOT_FOUND", "METADATA_SCHEMA_INVALID", "OS_PROTOCOL_INCOMPATIBLE"]; + readonly '@objectstack/objectql': readonly ["ERR_AUTONUMBER_COLLISION", "ERR_BULK_RESULT_MISMATCH", "ERR_CROSS_DATASOURCE_TRANSACTION_WRITE", "ERR_DATASOURCE_UNAVAILABLE", "ERR_DRIVER_CONNECT", "ERR_HOOK_TARGET_REBIND", "INVALID_METADATA", "ERR_READONLY_FIELD_REJECTED", "ERR_SUMMARY_RECOMPUTE", "ERR_SYSTEM_WRITE_ORGANIZATION_REQUIRED", "ERR_TRANSACTION_UNSUPPORTED", "FIND_HOOK_RESULT_NOT_ARRAY", "FIND_ONE_HOOK_RESULT_NOT_RECORD", "HOOK_UNSCOPED_DATA_ACCESS", "MULTI_UPDATE_HOOK_KEY_DIVERGENCE", "DELETE_HOOK_RESULT_NOT_WRITE_SHAPE", "UPDATE_HOOK_RESULT_NOT_WRITE_SHAPE", "NAMESPACE_CONFLICT", "OBJECT_OWNERSHIP_CONFLICT", "UPDATE_ID_MISMATCH", "VALIDATION_FAILED", "DUPLICATE_ARTIFACT_OBJECT_NAME"]; + readonly '@objectstack/core': readonly ["ERR_BULK_RESULT_MISMATCH", "FILTER_TOKEN_UNKNOWN", "FILTER_TOKEN_UNRESOLVED", "INVALID_ARTIFACT_PACKAGES", "INVALID_ARTIFACT_PACKAGE_ENTRY", "DUPLICATE_ARTIFACT_PACKAGE", "NO_SUCH_RUN", "PLAN_CHANGED", "PREFLIGHT_FAILED", "NOT_COMPENSABLE", "SERVICE_NOT_REGISTERED", "PLUGIN_CONTRACT_VIOLATION"]; + readonly '@objectstack/hono': readonly ["AUTH_CONFIG_ERROR"]; + readonly '@objectstack/service-messaging': readonly ["DELIVERY_NEVER_SENT", "DELIVERY_NOT_ELIGIBLE"]; + readonly '@objectstack/trigger-api': readonly ["ENQUEUE_FAILED", "INVALID_REQUEST", "INVALID_SIGNATURE"]; + readonly '@objectstack/cli': readonly ["ENVIRONMENT_NOT_FOUND"]; + readonly '@objectstack/cloud-connection': readonly ["CLOUD_FETCH_FAILED", "CLOUD_UNCONFIGURED", "DEVICE_CODE_FAILED", "DRIVER_UNAVAILABLE", "ENVIRONMENT_BIND_FAILED", "ENVIRONMENT_NOT_FOUND", "FORBIDDEN", "INVALID_REQUEST", "MANIFEST_CONFLICT", "MARKETPLACE_PROXY_FAILED", "MARKETPLACE_STORAGE_FAILED", "MARKETPLACE_UNAVAILABLE", "NOTHING_TO_PURGE", "PLUGIN_INSTALL_FAILED", "PLUGIN_MANIFEST_INVALID", "PLUGIN_REGISTER_FAILED", "RESEED_NO_ROWS", "RESEED_SKIPPED", "UNIQUE_SCOPE_CONFIRMATION_REQUIRED"]; + readonly '@objectstack/service-settings': readonly ["INTERNAL", "SETTINGS_ACTION_FAILED", "SETTINGS_CRYPTO_UNAVAILABLE", "SETTINGS_ENGINE_NOT_BOUND", "SETTINGS_FORBIDDEN", "SETTINGS_LOCKED", "SETTINGS_UNKNOWN_KEY", "SETTINGS_UNKNOWN_NAMESPACE", "SETTINGS_VALIDATION", "UNKNOWN_KEY", "UNKNOWN_NAMESPACE"]; + readonly '@objectstack/service-automation': readonly ["AUTOMATION_UNSCOPED_RUN_DATA_ACCESS", "EXECUTION_ERROR", "INVALID_SIGNAL", "NODE_FAILURE", "NO_EXECUTOR", "RESUME_IN_PROGRESS", "RUN_NOT_FOUND", "STORE_UNAVAILABLE"]; + readonly '@objectstack/service-analytics': readonly ["CUBE_NOT_FOUND", "DATASET_INVALID", "RAW_SQL_UNSUPPORTED", "READ_SCOPE_COMPILE_FAILED"]; + readonly '@objectstack/service-datasource': readonly ["DATASOURCE_ADMIN_ERROR", "EXTERNAL_DATASOURCE_ERROR"]; + readonly '@objectstack/plugin-audit': readonly ["FEEDS_DISABLED", "FILES_DISABLED"]; + readonly '@objectstack/plugin-approvals': readonly ["FORBIDDEN", "RECORD_LOCKED", "RESUME_FAILED"]; + readonly '@objectstack/plugin-security': readonly ["INVALID_METADATA", "SUGGESTION_NOT_FOUND", "SUGGESTION_STATE"]; + readonly '@objectstack/plugin-webhooks': readonly ["INVALID_REQUEST"]; + readonly '@objectstack/organizations': readonly ["WALLED_MEMBERSHIP_POLICY_UNDECLARED"]; + readonly '@objectstack/driver-memory': readonly ["UNIQUE_VIOLATION", "MEMORY_MULTI_TENANT_UNSUPPORTED"]; + readonly '@objectstack/driver-mongodb': readonly ["MONGODB_MULTI_TENANT_UNSUPPORTED"]; + readonly '@objectstack/driver-sql': readonly ["SQL_DIALECT_EMISSION_UNSUPPORTED"]; + readonly '@objectstack/driver-turso': readonly ["INVALID_REQUEST"]; + readonly '@objectstack/spec': readonly ["CONNECTOR_UPSTREAM_UNAVAILABLE", "EXTERNAL_SCHEMA_MISMATCH", "EXTERNAL_SCHEMA_MODE_VIOLATION", "EXTERNAL_WRITE_FORBIDDEN", "PLUGIN_UI_REQUIRED_KEY_MISSING", "STACK_CAPABILITY_UNKNOWN", "STACK_CROSS_REFERENCE_INVALID", "STACK_HIERARCHY_SCOPE_CAPABILITY_REQUIRED", "STACK_NAMESPACE_PREFIX_INVALID", "STACK_SCHEMA_INVALID", "STACK_SINGLE_APP_VIOLATION", "STACK_TRIGGER_CAPABILITY_REQUIRED"]; +}; + +// ── ETag (type) ── +type ETag = z.input; + +// ── ETagParsed (type) ── +type ETagParsed = z.infer; + +// ── ETagSchema (const) ── +declare const ETagSchema: z.ZodObject<{ + value: z.ZodString; + weak: z.ZodDefault>; +}, z.core.$strip>; + +// ── EditMessage (type) ── +type EditMessage = z.input; + +// ── EditMessageSchema (const) ── +declare const EditMessageSchema: z.ZodObject<{ + messageId: z.ZodString; + timestamp: z.ZodString; + type: z.ZodLiteral<"edit">; + operation: z.ZodObject<{ + operationId: z.ZodString; + documentId: z.ZodString; + userId: z.ZodString; + sessionId: z.ZodString; + type: z.ZodEnum<{ + replace: "replace"; + delete: "delete"; + insert: "insert"; + }>; + position: z.ZodObject<{ + line: z.ZodNumber; + column: z.ZodNumber; + }, z.core.$strip>; + endPosition: z.ZodOptional>; + content: z.ZodOptional; + version: z.ZodNumber; + timestamp: z.ZodString; + baseOperationId: z.ZodOptional; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── EditOperation (type) ── +type EditOperation = z.input; + +// ── EditOperationSchema (const) ── +declare const EditOperationSchema: z.ZodObject<{ + operationId: z.ZodString; + documentId: z.ZodString; + userId: z.ZodString; + sessionId: z.ZodString; + type: z.ZodEnum<{ + replace: "replace"; + delete: "delete"; + insert: "insert"; + }>; + position: z.ZodObject<{ + line: z.ZodNumber; + column: z.ZodNumber; + }, z.core.$strip>; + endPosition: z.ZodOptional>; + content: z.ZodOptional; + version: z.ZodNumber; + timestamp: z.ZodString; + baseOperationId: z.ZodOptional; +}, z.core.$strip>; + +// ── EditOperationType (const) ── +declare const EditOperationType: z.ZodEnum<{ + replace: "replace"; + delete: "delete"; + insert: "insert"; +}>; + +// ── EditOperationType (type) ── +type EditOperationType = z.input; + +// ── EmailPasswordConfigPublic (type) ── +type EmailPasswordConfigPublic = z.input; + +// ── EmailPasswordConfigPublicSchema (const) ── +declare const EmailPasswordConfigPublicSchema: z.ZodObject<{ + enabled: z.ZodBoolean; + disableSignUp: z.ZodOptional; + requireEmailVerification: z.ZodOptional; +}, z.core.$strip>; + +// ── EnablePackageRequest (type) ── +type EnablePackageRequest = z.input; + +// ── EnablePackageRequestSchema (const) ── +declare const EnablePackageRequestSchema: z.ZodObject<{ + id: z.ZodString; +}, z.core.$strip>; + +// ── EnablePackageResponse (type) ── +type EnablePackageResponse = z.input; + +// ── EnablePackageResponseSchema (const) ── +declare const EnablePackageResponseSchema: z.ZodObject<{ + package: z.ZodObject<{ + manifest: z.ZodObject<{ + id: z.ZodString; + namespace: z.ZodOptional; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>; + status: z.ZodDefault>; + enabled: z.ZodDefault; + installedAt: z.ZodOptional; + updatedAt: z.ZodOptional; + installedVersion: z.ZodOptional; + previousVersion: z.ZodOptional; + statusChangedAt: z.ZodOptional; + errorMessage: z.ZodOptional; + settings: z.ZodOptional>; + upgradeHistory: z.ZodOptional; + migrationLog: z.ZodOptional>; + }, z.core.$strip>>>; + registeredNamespaces: z.ZodOptional>; + }, z.core.$strip>; + message: z.ZodOptional; +}, z.core.$strip>; + +// ── EndpointGateIdentity (interface) ── +interface EndpointGateIdentity { + namespace?: string | undefined; +} + +// ── EndpointGateIssue (interface) ── +interface EndpointGateIssue { + /** Zod issue path — e.g. `['apis', 2, 'cacheTtlSeconds']`. */ + path: (string | number)[]; + message: string; +} + +// ── EndpointMapping (const) ── +declare const EndpointMapping: { + readonly '/login': "/sign-in/email"; + readonly '/register': "/sign-up/email"; + readonly '/logout': "/sign-out"; + readonly '/me': "/get-session"; + readonly '/refresh': "/get-session"; +}; + +// ── EndpointMappingKey (type) ── +type EndpointMappingKey = keyof typeof EndpointMapping; + +// ── EndpointRegistry (type) ── +type EndpointRegistry = z.input; + +// ── EndpointRegistrySchema (const) ── +declare const EndpointRegistrySchema: z.ZodObject<{ + endpoints: z.ZodArray; + path: z.ZodString; + object: z.ZodString; + operation: z.ZodUnion, z.ZodString]>; + handler: z.ZodString; + metadata: z.ZodOptional; + description: z.ZodOptional; + tags: z.ZodOptional>; + deprecated: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + total: z.ZodNumber; + byObject: z.ZodOptional; + path: z.ZodString; + object: z.ZodString; + operation: z.ZodUnion, z.ZodString]>; + handler: z.ZodString; + metadata: z.ZodOptional; + description: z.ZodOptional; + tags: z.ZodOptional>; + deprecated: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>>>; + byOperation: z.ZodOptional; + path: z.ZodString; + object: z.ZodString; + operation: z.ZodUnion, z.ZodString]>; + handler: z.ZodString; + metadata: z.ZodOptional; + description: z.ZodOptional; + tags: z.ZodOptional>; + deprecated: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>>>; +}, z.core.$strip>; + +// ── EnhancedApiError (type) ── +type EnhancedApiError = z.input; + +// ── EnhancedApiErrorParsed (type) ── +type EnhancedApiErrorParsed = z.infer; + +// ── EnhancedApiErrorSchema (const) ── +declare const EnhancedApiErrorSchema: z.ZodObject<{ + code: z.ZodEnum<{ + INVALID_FILTER: "INVALID_FILTER"; + VALIDATION_ERROR: "VALIDATION_ERROR"; + INVALID_FIELD: "INVALID_FIELD"; + MISSING_REQUIRED_FIELD: "MISSING_REQUIRED_FIELD"; + INVALID_FORMAT: "INVALID_FORMAT"; + VALUE_TOO_LONG: "VALUE_TOO_LONG"; + VALUE_TOO_SHORT: "VALUE_TOO_SHORT"; + VALUE_OUT_OF_RANGE: "VALUE_OUT_OF_RANGE"; + INVALID_REFERENCE: "INVALID_REFERENCE"; + DUPLICATE_VALUE: "DUPLICATE_VALUE"; + INVALID_QUERY: "INVALID_QUERY"; + INVALID_SORT: "INVALID_SORT"; + MAX_RECORDS_EXCEEDED: "MAX_RECORDS_EXCEEDED"; + UNAUTHENTICATED: "UNAUTHENTICATED"; + INVALID_CREDENTIALS: "INVALID_CREDENTIALS"; + EXPIRED_TOKEN: "EXPIRED_TOKEN"; + INVALID_TOKEN: "INVALID_TOKEN"; + SESSION_EXPIRED: "SESSION_EXPIRED"; + MFA_REQUIRED: "MFA_REQUIRED"; + EMAIL_NOT_VERIFIED: "EMAIL_NOT_VERIFIED"; + PERMISSION_DENIED: "PERMISSION_DENIED"; + INSUFFICIENT_PRIVILEGES: "INSUFFICIENT_PRIVILEGES"; + FIELD_NOT_ACCESSIBLE: "FIELD_NOT_ACCESSIBLE"; + RECORD_NOT_ACCESSIBLE: "RECORD_NOT_ACCESSIBLE"; + LICENSE_REQUIRED: "LICENSE_REQUIRED"; + IP_RESTRICTED: "IP_RESTRICTED"; + TIME_RESTRICTED: "TIME_RESTRICTED"; + RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND"; + OBJECT_NOT_FOUND: "OBJECT_NOT_FOUND"; + RECORD_NOT_FOUND: "RECORD_NOT_FOUND"; + FIELD_NOT_FOUND: "FIELD_NOT_FOUND"; + ENDPOINT_NOT_FOUND: "ENDPOINT_NOT_FOUND"; + RESOURCE_CONFLICT: "RESOURCE_CONFLICT"; + CONCURRENT_MODIFICATION: "CONCURRENT_MODIFICATION"; + DELETE_RESTRICTED: "DELETE_RESTRICTED"; + DUPLICATE_RECORD: "DUPLICATE_RECORD"; + LOCK_CONFLICT: "LOCK_CONFLICT"; + METHOD_NOT_ALLOWED: "METHOD_NOT_ALLOWED"; + PRECONDITION_REQUIRED: "PRECONDITION_REQUIRED"; + RATE_LIMIT_EXCEEDED: "RATE_LIMIT_EXCEEDED"; + QUOTA_EXCEEDED: "QUOTA_EXCEEDED"; + CONCURRENT_LIMIT_EXCEEDED: "CONCURRENT_LIMIT_EXCEEDED"; + INTERNAL_ERROR: "INTERNAL_ERROR"; + DATABASE_ERROR: "DATABASE_ERROR"; + TIMEOUT: "TIMEOUT"; + SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE"; + NOT_IMPLEMENTED: "NOT_IMPLEMENTED"; + EXTERNAL_SERVICE_ERROR: "EXTERNAL_SERVICE_ERROR"; + INTEGRATION_ERROR: "INTEGRATION_ERROR"; + WEBHOOK_DELIVERY_FAILED: "WEBHOOK_DELIVERY_FAILED"; + }>; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional>; + httpStatus: z.ZodOptional; + retryable: z.ZodDefault; + retryStrategy: z.ZodOptional>; + retryAfterSeconds: z.ZodOptional; + retryAfter: z.ZodOptional; + details: z.ZodOptional; + fields: z.ZodOptional; + message: z.ZodString; + label: z.ZodOptional; + value: z.ZodOptional; + constraint: z.ZodOptional>; + }, z.core.$strip>>>; + fieldErrors: z.ZodOptional; + timestamp: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + documentation: z.ZodOptional; + helpText: z.ZodOptional; +}, z.core.$strip>; + +// ── EnvironmentType (type) ── +type EnvironmentType = z.input; + +// ── EnvironmentTypeSchema (const) ── +declare const EnvironmentTypeSchema: z.ZodEnum<{ + production: "production"; + sandbox: "sandbox"; + development: "development"; + test: "test"; + staging: "staging"; + preview: "preview"; + trial: "trial"; +}>; + +// ── ErrorCategory (const) ── +declare const ErrorCategory: z.ZodEnum<{ + external: "external"; + server: "server"; + validation: "validation"; + conflict: "conflict"; + rate_limit: "rate_limit"; + authentication: "authentication"; + authorization: "authorization"; + not_found: "not_found"; + maintenance: "maintenance"; +}>; + +// ── ErrorCategory (type) ── +type ErrorCategory = z.input; + +// ── ErrorCode (const) ── +declare const ErrorCode: z.ZodType; + +// ── ErrorCode (type) ── +type ErrorCode = StandardErrorCode | RegisteredErrorCode; + +// ── ErrorHandlingConfig (type) ── +type ErrorHandlingConfig = z.input; + +// ── ErrorHandlingConfigParsed (type) ── +type ErrorHandlingConfigParsed = z.infer; + +// ── ErrorHandlingConfigSchema (const) ── +declare const ErrorHandlingConfigSchema: z.ZodObject<{ + enabled: z.ZodDefault; + includeStackTrace: z.ZodDefault; + logErrors: z.ZodDefault; + exposeInternalErrors: z.ZodDefault; + includeRequestId: z.ZodDefault; + includeTimestamp: z.ZodDefault; + includeDocumentation: z.ZodDefault; + documentationBaseUrl: z.ZodOptional; + customErrorMessages: z.ZodOptional>; + redactFields: z.ZodOptional>; +}, z.core.$strip>; + +// ── ErrorHttpStatusMap (const) ── +declare const ErrorHttpStatusMap: Record; + +// ── ErrorMessage (type) ── +type ErrorMessage = z.input; + +// ── ErrorMessageSchema (const) ── +declare const ErrorMessageSchema: z.ZodObject<{ + messageId: z.ZodString; + timestamp: z.ZodString; + type: z.ZodLiteral<"error">; + code: z.ZodString; + message: z.ZodString; + details: z.ZodOptional; +}, z.core.$strip>; + +// ── ErrorResponse (type) ── +type ErrorResponse = z.input; + +// ── ErrorResponseParsed (type) ── +type ErrorResponseParsed = z.infer; + +// ── ErrorResponseSchema (const) ── +declare const ErrorResponseSchema: z.ZodObject<{ + success: z.ZodLiteral; + error: z.ZodObject<{ + code: z.ZodEnum<{ + INVALID_FILTER: "INVALID_FILTER"; + VALIDATION_ERROR: "VALIDATION_ERROR"; + INVALID_FIELD: "INVALID_FIELD"; + MISSING_REQUIRED_FIELD: "MISSING_REQUIRED_FIELD"; + INVALID_FORMAT: "INVALID_FORMAT"; + VALUE_TOO_LONG: "VALUE_TOO_LONG"; + VALUE_TOO_SHORT: "VALUE_TOO_SHORT"; + VALUE_OUT_OF_RANGE: "VALUE_OUT_OF_RANGE"; + INVALID_REFERENCE: "INVALID_REFERENCE"; + DUPLICATE_VALUE: "DUPLICATE_VALUE"; + INVALID_QUERY: "INVALID_QUERY"; + INVALID_SORT: "INVALID_SORT"; + MAX_RECORDS_EXCEEDED: "MAX_RECORDS_EXCEEDED"; + UNAUTHENTICATED: "UNAUTHENTICATED"; + INVALID_CREDENTIALS: "INVALID_CREDENTIALS"; + EXPIRED_TOKEN: "EXPIRED_TOKEN"; + INVALID_TOKEN: "INVALID_TOKEN"; + SESSION_EXPIRED: "SESSION_EXPIRED"; + MFA_REQUIRED: "MFA_REQUIRED"; + EMAIL_NOT_VERIFIED: "EMAIL_NOT_VERIFIED"; + PERMISSION_DENIED: "PERMISSION_DENIED"; + INSUFFICIENT_PRIVILEGES: "INSUFFICIENT_PRIVILEGES"; + FIELD_NOT_ACCESSIBLE: "FIELD_NOT_ACCESSIBLE"; + RECORD_NOT_ACCESSIBLE: "RECORD_NOT_ACCESSIBLE"; + LICENSE_REQUIRED: "LICENSE_REQUIRED"; + IP_RESTRICTED: "IP_RESTRICTED"; + TIME_RESTRICTED: "TIME_RESTRICTED"; + RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND"; + OBJECT_NOT_FOUND: "OBJECT_NOT_FOUND"; + RECORD_NOT_FOUND: "RECORD_NOT_FOUND"; + FIELD_NOT_FOUND: "FIELD_NOT_FOUND"; + ENDPOINT_NOT_FOUND: "ENDPOINT_NOT_FOUND"; + RESOURCE_CONFLICT: "RESOURCE_CONFLICT"; + CONCURRENT_MODIFICATION: "CONCURRENT_MODIFICATION"; + DELETE_RESTRICTED: "DELETE_RESTRICTED"; + DUPLICATE_RECORD: "DUPLICATE_RECORD"; + LOCK_CONFLICT: "LOCK_CONFLICT"; + METHOD_NOT_ALLOWED: "METHOD_NOT_ALLOWED"; + PRECONDITION_REQUIRED: "PRECONDITION_REQUIRED"; + RATE_LIMIT_EXCEEDED: "RATE_LIMIT_EXCEEDED"; + QUOTA_EXCEEDED: "QUOTA_EXCEEDED"; + CONCURRENT_LIMIT_EXCEEDED: "CONCURRENT_LIMIT_EXCEEDED"; + INTERNAL_ERROR: "INTERNAL_ERROR"; + DATABASE_ERROR: "DATABASE_ERROR"; + TIMEOUT: "TIMEOUT"; + SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE"; + NOT_IMPLEMENTED: "NOT_IMPLEMENTED"; + EXTERNAL_SERVICE_ERROR: "EXTERNAL_SERVICE_ERROR"; + INTEGRATION_ERROR: "INTEGRATION_ERROR"; + WEBHOOK_DELIVERY_FAILED: "WEBHOOK_DELIVERY_FAILED"; + }>; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional>; + httpStatus: z.ZodOptional; + retryable: z.ZodDefault; + retryStrategy: z.ZodOptional>; + retryAfterSeconds: z.ZodOptional; + retryAfter: z.ZodOptional; + details: z.ZodOptional; + fields: z.ZodOptional; + message: z.ZodString; + label: z.ZodOptional; + value: z.ZodOptional; + constraint: z.ZodOptional>; + }, z.core.$strip>>>; + fieldErrors: z.ZodOptional; + timestamp: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + documentation: z.ZodOptional; + helpText: z.ZodOptional; + }, z.core.$strip>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── EventMessage (type) ── +type EventMessage = z.input; + +// ── EventMessageSchema (const) ── +declare const EventMessageSchema: z.ZodObject<{ + messageId: z.ZodString; + timestamp: z.ZodString; + type: z.ZodLiteral<"event">; + subscriptionId: z.ZodString; + eventName: z.ZodString; + object: z.ZodOptional; + payload: z.ZodUnknown; + userId: z.ZodOptional; +}, z.core.$strip>; + +// ── EventPattern (type) ── +type EventPattern = z.input; + +// ── EventPatternSchema (const) ── +declare const EventPatternSchema: z.ZodString; + +// ── EventSubscription (type) ── +type EventSubscription = z.input; + +// ── EventSubscriptionSchema (const) ── +declare const EventSubscriptionSchema: z.ZodObject<{ + subscriptionId: z.ZodString; + events: z.ZodArray; + objects: z.ZodOptional>; + filters: z.ZodOptional; + channels: z.ZodOptional>; +}, z.core.$strip>; + +// ── ExportApiContracts (const) ── +declare const ExportApiContracts: { + createExportJob: { + method: "POST"; + path: string; + input: z.ZodObject<{ + object: z.ZodString; + format: z.ZodDefault>; + fields: z.ZodOptional>; + filter: z.ZodOptional>; + sort: z.ZodOptional>; + }, z.core.$strip>>>; + limit: z.ZodOptional; + includeHeaders: z.ZodDefault; + encoding: z.ZodDefault; + templateId: z.ZodOptional; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + jobId: z.ZodString; + status: z.ZodEnum<{ + expired: "expired"; + failed: "failed"; + pending: "pending"; + completed: "completed"; + processing: "processing"; + cancelled: "cancelled"; + }>; + estimatedRecords: z.ZodOptional; + createdAt: z.ZodString; + }, z.core.$strip>; + }, z.core.$strip>; + }; + getExportJobProgress: { + method: "GET"; + path: string; + input: z.ZodObject<{ + jobId: z.ZodString; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + jobId: z.ZodString; + status: z.ZodEnum<{ + expired: "expired"; + failed: "failed"; + pending: "pending"; + completed: "completed"; + processing: "processing"; + cancelled: "cancelled"; + }>; + format: z.ZodEnum<{ + json: "json"; + csv: "csv"; + xlsx: "xlsx"; + jsonl: "jsonl"; + parquet: "parquet"; + }>; + totalRecords: z.ZodOptional; + processedRecords: z.ZodNumber; + percentComplete: z.ZodNumber; + fileSize: z.ZodOptional; + downloadUrl: z.ZodOptional; + downloadExpiresAt: z.ZodOptional; + error: z.ZodOptional>; + startedAt: z.ZodOptional; + completedAt: z.ZodOptional; + }, z.core.$strip>; + }, z.core.$strip>; + }; + getExportJobDownload: { + method: "GET"; + path: string; + input: z.ZodObject<{ + jobId: z.ZodString; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + jobId: z.ZodString; + downloadUrl: z.ZodString; + fileName: z.ZodString; + fileSize: z.ZodNumber; + format: z.ZodEnum<{ + json: "json"; + csv: "csv"; + xlsx: "xlsx"; + jsonl: "jsonl"; + parquet: "parquet"; + }>; + expiresAt: z.ZodString; + checksum: z.ZodOptional; + }, z.core.$strip>; + }, z.core.$strip>; + }; + listExportJobs: { + method: "GET"; + path: string; + input: z.ZodObject<{ + object: z.ZodOptional; + status: z.ZodOptional>; + limit: z.ZodDefault; + cursor: z.ZodOptional; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + jobs: z.ZodArray; + format: z.ZodEnum<{ + json: "json"; + csv: "csv"; + xlsx: "xlsx"; + jsonl: "jsonl"; + parquet: "parquet"; + }>; + totalRecords: z.ZodOptional; + fileSize: z.ZodOptional; + createdAt: z.ZodString; + completedAt: z.ZodOptional; + createdBy: z.ZodOptional; + }, z.core.$strip>>; + nextCursor: z.ZodOptional; + hasMore: z.ZodBoolean; + }, z.core.$strip>; + }, z.core.$strip>; + }; + scheduleExport: { + method: "POST"; + path: string; + input: z.ZodObject<{ + name: z.ZodString; + label: z.ZodOptional; + object: z.ZodString; + format: z.ZodDefault>; + fields: z.ZodOptional>; + filter: z.ZodOptional>; + templateId: z.ZodOptional; + schedule: z.ZodObject<{ + timezone: z.ZodDefault; + }, z.core.$strip>; + delivery: z.ZodObject<{ + method: z.ZodEnum<{ + email: "email"; + storage: "storage"; + webhook: "webhook"; + }>; + recipients: z.ZodOptional>; + storagePath: z.ZodOptional; + webhookUrl: z.ZodOptional; + }, z.core.$strip>; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + id: z.ZodString; + name: z.ZodString; + enabled: z.ZodBoolean; + nextRunAt: z.ZodOptional; + createdAt: z.ZodString; + }, z.core.$strip>; + }, z.core.$strip>; + }; + cancelExportJob: { + method: "POST"; + path: string; + input: z.ZodObject<{ + jobId: z.ZodString; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + }; +}; + +// ── ExportFormat (const) ── +declare const ExportFormat: z.ZodEnum<{ + json: "json"; + csv: "csv"; + xlsx: "xlsx"; + jsonl: "jsonl"; + parquet: "parquet"; +}>; + +// ── ExportFormat (type) ── +type ExportFormat = z.input; + +// ── ExportImportTemplate (type) ── +type ExportImportTemplate = z.input; + +// ── ExportImportTemplateParsed (type) ── +type ExportImportTemplateParsed = z.infer; + +// ── ExportImportTemplateSchema (const) ── +declare const ExportImportTemplateSchema: z.ZodObject<{ + id: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + object: z.ZodString; + direction: z.ZodEnum<{ + export: "export"; + import: "import"; + bidirectional: "bidirectional"; + }>; + format: z.ZodOptional>; + mappings: z.ZodArray; + transform: z.ZodDefault>; + defaultValue: z.ZodOptional; + required: z.ZodDefault; + }, z.core.$strip>>; + createdAt: z.ZodOptional; + updatedAt: z.ZodOptional; + createdBy: z.ZodOptional; +}, z.core.$strip>; + +// ── ExportJobProgress (type) ── +type ExportJobProgress = z.input; + +// ── ExportJobProgressParsed (type) ── +type ExportJobProgressParsed = z.infer; + +// ── ExportJobProgressSchema (const) ── +declare const ExportJobProgressSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + jobId: z.ZodString; + status: z.ZodEnum<{ + expired: "expired"; + failed: "failed"; + pending: "pending"; + completed: "completed"; + processing: "processing"; + cancelled: "cancelled"; + }>; + format: z.ZodEnum<{ + json: "json"; + csv: "csv"; + xlsx: "xlsx"; + jsonl: "jsonl"; + parquet: "parquet"; + }>; + totalRecords: z.ZodOptional; + processedRecords: z.ZodNumber; + percentComplete: z.ZodNumber; + fileSize: z.ZodOptional; + downloadUrl: z.ZodOptional; + downloadExpiresAt: z.ZodOptional; + error: z.ZodOptional>; + startedAt: z.ZodOptional; + completedAt: z.ZodOptional; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── ExportJobStatus (const) ── +declare const ExportJobStatus: z.ZodEnum<{ + expired: "expired"; + failed: "failed"; + pending: "pending"; + completed: "completed"; + processing: "processing"; + cancelled: "cancelled"; +}>; + +// ── ExportJobStatus (type) ── +type ExportJobStatus = z.input; + +// ── ExportJobSummary (type) ── +type ExportJobSummary = z.input; + +// ── ExportJobSummarySchema (const) ── +declare const ExportJobSummarySchema: z.ZodObject<{ + jobId: z.ZodString; + object: z.ZodString; + status: z.ZodEnum<{ + expired: "expired"; + failed: "failed"; + pending: "pending"; + completed: "completed"; + processing: "processing"; + cancelled: "cancelled"; + }>; + format: z.ZodEnum<{ + json: "json"; + csv: "csv"; + xlsx: "xlsx"; + jsonl: "jsonl"; + parquet: "parquet"; + }>; + totalRecords: z.ZodOptional; + fileSize: z.ZodOptional; + createdAt: z.ZodString; + completedAt: z.ZodOptional; + createdBy: z.ZodOptional; +}, z.core.$strip>; + +// ── ExportRequest (type) ── +type ExportRequest = z.input; + +// ── ExportRequestParsed (type) ── +type ExportRequestParsed = z.infer; + +// ── ExportRequestSchema (const) ── +declare const ExportRequestSchema: z.ZodIntersection>, z.ZodObject<{ + format: z.ZodDefault>; +}, z.core.$strip>>; + +// ── FIELD_SORTABLE_UNPROVISIONED_ANCHOR (const) ── +declare const FIELD_SORTABLE_UNPROVISIONED_ANCHOR: "unprovisioned-anchor"; + +// ── FIELD_UNSORTABLE_VIRTUAL_TYPE (const) ── +declare const FIELD_UNSORTABLE_VIRTUAL_TYPE: "virtual-type"; + +// ── FieldError (type) ── +type FieldError = z.input; + +// ── FieldErrorCode (const) ── +declare const FieldErrorCode: z.ZodEnum<{ + invalid_type: "invalid_type"; + invalid_format: "invalid_format"; + invalid_value: "invalid_value"; + required: "required"; + invalid_shape: "invalid_shape"; + unknown_field: "unknown_field"; + invalid_boolean: "invalid_boolean"; + invalid_number: "invalid_number"; + invalid_date: "invalid_date"; + invalid_time: "invalid_time"; + invalid_email: "invalid_email"; + invalid_url: "invalid_url"; + invalid_phone: "invalid_phone"; + invalid_json: "invalid_json"; + min_length: "min_length"; + max_length: "max_length"; + min_value: "min_value"; + max_value: "max_value"; + max_scale: "max_scale"; + min_items: "min_items"; + max_items: "max_items"; + invalid_option: "invalid_option"; + value_domain: "value_domain"; + reference_not_found: "reference_not_found"; + reference_ambiguous: "reference_ambiguous"; + rule_violation: "rule_violation"; + json_schema_violation: "json_schema_violation"; + invalid_initial_state: "invalid_initial_state"; + invalid_transition: "invalid_transition"; +}>; + +// ── FieldErrorCode (type) ── +type FieldErrorCode = z.input; + +// ── FieldErrorSchema (const) ── +declare const FieldErrorSchema: z.ZodObject<{ + field: z.ZodString; + code: z.ZodEnum<{ + invalid_type: "invalid_type"; + invalid_format: "invalid_format"; + invalid_value: "invalid_value"; + required: "required"; + invalid_shape: "invalid_shape"; + unknown_field: "unknown_field"; + invalid_boolean: "invalid_boolean"; + invalid_number: "invalid_number"; + invalid_date: "invalid_date"; + invalid_time: "invalid_time"; + invalid_email: "invalid_email"; + invalid_url: "invalid_url"; + invalid_phone: "invalid_phone"; + invalid_json: "invalid_json"; + min_length: "min_length"; + max_length: "max_length"; + min_value: "min_value"; + max_value: "max_value"; + max_scale: "max_scale"; + min_items: "min_items"; + max_items: "max_items"; + invalid_option: "invalid_option"; + value_domain: "value_domain"; + reference_not_found: "reference_not_found"; + reference_ambiguous: "reference_ambiguous"; + rule_violation: "rule_violation"; + json_schema_violation: "json_schema_violation"; + invalid_initial_state: "invalid_initial_state"; + invalid_transition: "invalid_transition"; + }>; + message: z.ZodString; + label: z.ZodOptional; + value: z.ZodOptional; + constraint: z.ZodOptional>; +}, z.core.$strip>; + +// ── FieldMappingEntry (type) ── +type FieldMappingEntry = z.input; + +// ── FieldMappingEntryParsed (type) ── +type FieldMappingEntryParsed = z.infer; + +// ── FieldMappingEntrySchema (const) ── +declare const FieldMappingEntrySchema: z.ZodObject<{ + sourceField: z.ZodString; + targetField: z.ZodString; + targetLabel: z.ZodOptional; + transform: z.ZodDefault>; + defaultValue: z.ZodOptional; + required: z.ZodDefault; +}, z.core.$strip>; + +// ── FieldSortability (type) ── +type FieldSortability = z.input; + +// ── FieldSortabilitySchema (const) ── +declare const FieldSortabilitySchema: z.ZodObject<{ + sortable: z.ZodBoolean; + reason: z.ZodOptional>; + caveat: z.ZodOptional>; +}, z.core.$strip>; + +// ── FileDownloadUrlResponse (type) ── +type FileDownloadUrlResponse = z.input; + +// ── FileDownloadUrlResponseParsed (type) ── +type FileDownloadUrlResponseParsed = z.infer; + +// ── FileDownloadUrlResponseSchema (const) ── +declare const FileDownloadUrlResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + url: z.ZodString; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── FileTypeValidation (type) ── +type FileTypeValidation = z.input; + +// ── FileTypeValidationSchema (const) ── +declare const FileTypeValidationSchema: z.ZodObject<{ + mode: z.ZodEnum<{ + whitelist: "whitelist"; + blacklist: "blacklist"; + }>; + mimeTypes: z.ZodArray; + extensions: z.ZodOptional>; + maxFileSize: z.ZodOptional; + minFileSize: z.ZodOptional; +}, z.core.$strip>; + +// ── FileUploadResponse (type) ── +type FileUploadResponse = z.input; + +// ── FileUploadResponseParsed (type) ── +type FileUploadResponseParsed = z.infer; + +// ── FileUploadResponseSchema (const) ── +declare const FileUploadResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + path: z.ZodString; + name: z.ZodString; + size: z.ZodNumber; + mimeType: z.ZodString; + lastModified: z.ZodString; + created: z.ZodString; + etag: z.ZodOptional; + fileId: z.ZodOptional; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── FindDataRequest (type) ── +type FindDataRequest = z.input; + +// ── FindDataRequestParsed (type) ── +type FindDataRequestParsed = z.infer; + +// ── FindDataRequestSchema (const) ── +declare const FindDataRequestSchema: z.ZodObject<{ + object: z.ZodString; + query: z.ZodOptional | undefined; + minScore?: number | undefined; + language?: string | undefined; + } | undefined; + searchFields?: string[] | undefined; + orderBy?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + offset?: number | undefined; + top?: number | undefined; + cursor?: undefined; + joins?: undefined; + aggregations?: { + function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct"; + alias: string; + field?: string | undefined; + distinct?: undefined; + filter?: FilterCondition | undefined; + }[] | undefined; + groupBy?: (string | { + field: string; + dateGranularity?: "year" | "month" | "day" | "week" | "quarter" | undefined; + alias?: string | undefined; + })[] | undefined; + having?: FilterCondition | undefined; + windowFunctions?: undefined; + distinct?: undefined; + } & { + expand?: Record; + } & { + count?: boolean; + }, QueryWithTransport, z.core.$ZodTypeInternals<{ + object: string; + fields?: string[] | undefined; + where?: FilterCondition | undefined; + search?: string | { + query: string; + fuzzy: boolean; + operator: "and" | "or"; + highlight: boolean; + fields?: string[] | undefined; + boost?: Record | undefined; + minScore?: number | undefined; + language?: string | undefined; + } | undefined; + searchFields?: string[] | undefined; + orderBy?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + offset?: number | undefined; + top?: number | undefined; + cursor?: undefined; + joins?: undefined; + aggregations?: { + function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct"; + alias: string; + field?: string | undefined; + distinct?: undefined; + filter?: FilterCondition | undefined; + }[] | undefined; + groupBy?: (string | { + field: string; + dateGranularity?: "year" | "month" | "day" | "week" | "quarter" | undefined; + alias?: string | undefined; + })[] | undefined; + having?: FilterCondition | undefined; + windowFunctions?: undefined; + distinct?: undefined; + } & { + expand?: Record; + } & { + count?: boolean; + }, QueryWithTransport>>>; +}, z.core.$strip>; + +// ── FindDataResponse (type) ── +type FindDataResponse = z.input; + +// ── FindDataResponseSchema (const) ── +declare const FindDataResponseSchema: z.ZodObject<{ + object: z.ZodString; + records: z.ZodArray>; + total: z.ZodOptional; + nextCursor: z.ZodOptional; + hasMore: z.ZodOptional; +}, z.core.$strip>; + +// ── FindReferencesToMetaResponse (type) ── +type FindReferencesToMetaResponse = z.input; + +// ── FindReferencesToMetaResponseParsed (type) ── +type FindReferencesToMetaResponseParsed = z.infer; + +// ── FindReferencesToMetaResponseSchema (const) ── +declare const FindReferencesToMetaResponseSchema: z.ZodObject<{ + references: z.ZodArray; + path: z.ZodString; + kind: z.ZodString; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── FlowSummary (type) ── +type FlowSummary = z.input; + +// ── FlowSummarySchema (const) ── +declare const FlowSummarySchema: z.ZodObject<{ + name: z.ZodString; + label: z.ZodString; + type: z.ZodString; + status: z.ZodString; + version: z.ZodNumber; + enabled: z.ZodBoolean; + nodeCount: z.ZodOptional; + lastRunAt: z.ZodOptional; +}, z.core.$strip>; + +// ── GeneratedApiDocumentation (type) ── +type GeneratedApiDocumentation = z.input; + +// ── GeneratedApiDocumentationParsed (type) ── +type GeneratedApiDocumentationParsed = z.infer; + +// ── GeneratedApiDocumentationSchema (const) ── +declare const GeneratedApiDocumentationSchema: z.ZodObject<{ + openApiSpec: z.ZodOptional; + info: z.ZodObject<{ + title: z.ZodString; + version: z.ZodString; + description: z.ZodOptional; + termsOfService: z.ZodOptional; + contact: z.ZodOptional; + url: z.ZodOptional; + email: z.ZodOptional; + }, z.core.$strip>>; + license: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + servers: z.ZodDefault; + variables: z.ZodOptional; + enum: z.ZodOptional>; + }, z.core.$strip>>>; + }, z.core.$strip>>>>; + paths: z.ZodRecord; + components: z.ZodOptional>; + responses: z.ZodOptional>; + parameters: z.ZodOptional>; + examples: z.ZodOptional>; + requestBodies: z.ZodOptional>; + headers: z.ZodOptional>; + securitySchemes: z.ZodOptional; + scheme: z.ZodOptional; + bearerFormat: z.ZodOptional; + name: z.ZodOptional; + in: z.ZodOptional>; + flows: z.ZodOptional; + password: z.ZodOptional; + clientCredentials: z.ZodOptional; + authorizationCode: z.ZodOptional; + }, z.core.$strip>>; + openIdConnectUrl: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strip>>>; + links: z.ZodOptional>; + callbacks: z.ZodOptional>; + }, z.core.$strip>>; + security: z.ZodOptional>>>; + tags: z.ZodOptional; + externalDocs: z.ZodOptional; + url: z.ZodString; + }, z.core.$strip>>; + }, z.core.$strip>>>; + externalDocs: z.ZodOptional; + url: z.ZodString; + }, z.core.$strip>>; + }, z.core.$strip>>; + testCollections: z.ZodOptional; + variables: z.ZodDefault>>; + requests: z.ZodArray; + method: z.ZodEnum<{ + GET: "GET"; + POST: "POST"; + PUT: "PUT"; + DELETE: "DELETE"; + PATCH: "PATCH"; + HEAD: "HEAD"; + OPTIONS: "OPTIONS"; + }>; + url: z.ZodString; + headers: z.ZodDefault>>; + queryParams: z.ZodDefault>>>; + body: z.ZodOptional; + variables: z.ZodDefault>>; + expectedResponse: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + folders: z.ZodOptional; + requests: z.ZodArray; + method: z.ZodEnum<{ + GET: "GET"; + POST: "POST"; + PUT: "PUT"; + DELETE: "DELETE"; + PATCH: "PATCH"; + HEAD: "HEAD"; + OPTIONS: "OPTIONS"; + }>; + url: z.ZodString; + headers: z.ZodDefault>>; + queryParams: z.ZodDefault>>>; + body: z.ZodOptional; + variables: z.ZodDefault>>; + expectedResponse: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + }, z.core.$strip>>>; + }, z.core.$strip>>>; + markdown: z.ZodOptional; + html: z.ZodOptional; + generatedAt: z.ZodString; + sourceApis: z.ZodArray; +}, z.core.$strip>; + +// ── GeneratedEndpoint (type) ── +type GeneratedEndpoint = z.input; + +// ── GeneratedEndpointSchema (const) ── +declare const GeneratedEndpointSchema: z.ZodObject<{ + id: z.ZodString; + method: z.ZodEnum<{ + GET: "GET"; + POST: "POST"; + PUT: "PUT"; + DELETE: "DELETE"; + PATCH: "PATCH"; + HEAD: "HEAD"; + OPTIONS: "OPTIONS"; + }>; + path: z.ZodString; + object: z.ZodString; + operation: z.ZodUnion, z.ZodString]>; + handler: z.ZodString; + metadata: z.ZodOptional; + description: z.ZodOptional; + tags: z.ZodOptional>; + deprecated: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── GetAnalyticsMetaRequest (type) ── +type GetAnalyticsMetaRequest$1 = z.input; + +// ── GetAnalyticsMetaRequestSchema (const) ── +declare const GetAnalyticsMetaRequestSchema: z.ZodObject<{ + cube: z.ZodOptional; +}, z.core.$strip>; + +// ── GetAuthConfigResponse (type) ── +type GetAuthConfigResponse = z.input; + +// ── GetAuthConfigResponseParsed (type) ── +type GetAuthConfigResponseParsed = z.infer; + +// ── GetAuthConfigResponseSchema (const) ── +declare const GetAuthConfigResponseSchema: z.ZodObject<{ + emailPassword: z.ZodObject<{ + enabled: z.ZodBoolean; + disableSignUp: z.ZodOptional; + requireEmailVerification: z.ZodOptional; + }, z.core.$strip>; + socialProviders: z.ZodArray>; + }, z.core.$strip>>; + features: z.ZodObject<{ + twoFactor: z.ZodDefault; + passkeys: z.ZodOptional; + magicLink: z.ZodOptional; + organization: z.ZodDefault; + ssoEnforced: z.ZodOptional; + phoneNumber: z.ZodOptional; + phoneNumberOtp: z.ZodOptional; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── GetDataRequest (type) ── +type GetDataRequest = z.input; + +// ── GetDataRequestSchema (const) ── +declare const GetDataRequestSchema: z.ZodObject<{ + object: z.ZodString; + id: z.ZodString; + select: z.ZodOptional>; + expand: z.ZodOptional>; +}, z.core.$strip>; + +// ── GetDataResponse (type) ── +type GetDataResponse = z.input; + +// ── GetDataResponseSchema (const) ── +declare const GetDataResponseSchema: z.ZodObject<{ + object: z.ZodString; + id: z.ZodString; + record: z.ZodRecord; +}, z.core.$strip>; + +// ── GetDiscoveryRequest (type) ── +type GetDiscoveryRequest = z.input; + +// ── GetDiscoveryRequestSchema (const) ── +declare const GetDiscoveryRequestSchema: z.ZodObject<{}, z.core.$strip>; + +// ── GetDiscoveryResponse (type) ── +type GetDiscoveryResponse = z.input; + +// ── GetDiscoveryResponseSchema (const) ── +declare const GetDiscoveryResponseSchema: z.ZodObject<{ + name: z.ZodOptional; + version: z.ZodNonOptional>; + environment: z.ZodOptional>; + routes: z.ZodOptional; + ui: z.ZodOptional; + auth: z.ZodOptional; + automation: z.ZodOptional; + storage: z.ZodOptional; + analytics: z.ZodOptional; + packages: z.ZodOptional; + datasources: z.ZodOptional; + email: z.ZodOptional; + approvals: z.ZodOptional; + realtime: z.ZodOptional; + notifications: z.ZodOptional; + ai: z.ZodOptional; + i18n: z.ZodOptional; + mcp: z.ZodOptional; + }, z.core.$strip>>; + locale: z.ZodOptional; + timezone: z.ZodString; + }, z.core.$strip>>; + services: z.ZodOptional; + handlerReady: z.ZodOptional; + route: z.ZodOptional; + provider: z.ZodOptional; + version: z.ZodOptional; + message: z.ZodOptional; + rateLimit: z.ZodOptional; + requestsPerHour: z.ZodOptional; + burstLimit: z.ZodOptional; + retryAfterMs: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>>; + capabilities: z.ZodOptional>; + description: z.ZodOptional; + }, z.core.$strip>; + cron: z.ZodObject<{ + enabled: z.ZodBoolean; + features: z.ZodOptional>; + description: z.ZodOptional; + }, z.core.$strip>; + automation: z.ZodObject<{ + enabled: z.ZodBoolean; + features: z.ZodOptional>; + description: z.ZodOptional; + }, z.core.$strip>; + analytics: z.ZodObject<{ + enabled: z.ZodBoolean; + features: z.ZodOptional>; + description: z.ZodOptional; + }, z.core.$strip>; + notifications: z.ZodObject<{ + enabled: z.ZodBoolean; + features: z.ZodOptional>; + description: z.ZodOptional; + }, z.core.$strip>; + ai: z.ZodObject<{ + enabled: z.ZodBoolean; + features: z.ZodOptional>; + description: z.ZodOptional; + }, z.core.$strip>; + i18n: z.ZodObject<{ + enabled: z.ZodBoolean; + features: z.ZodOptional>; + description: z.ZodOptional; + }, z.core.$strip>; + comments: z.ZodObject<{ + enabled: z.ZodBoolean; + features: z.ZodOptional>; + description: z.ZodOptional; + }, z.core.$strip>; + export: z.ZodObject<{ + enabled: z.ZodBoolean; + features: z.ZodOptional>; + description: z.ZodOptional; + }, z.core.$strip>; + chunkedUpload: z.ZodObject<{ + enabled: z.ZodBoolean; + features: z.ZodOptional>; + description: z.ZodOptional; + }, z.core.$strip>; + transactionalBatch: z.ZodObject<{ + enabled: z.ZodBoolean; + features: z.ZodOptional>; + description: z.ZodOptional; + }, z.core.$strip>; + websockets: z.ZodObject<{ + enabled: z.ZodBoolean; + features: z.ZodOptional>; + description: z.ZodOptional; + }, z.core.$strip>; + files: z.ZodObject<{ + enabled: z.ZodBoolean; + features: z.ZodOptional>; + description: z.ZodOptional; + }, z.core.$strip>; + }, z.core.$strip>>; + schemaDiscovery: z.ZodOptional; + jsonSchema: z.ZodOptional; + }, z.core.$strip>>>; + scoping: z.ZodOptional; + scoped: z.ZodBoolean; + environmentId: z.ZodOptional; + }, z.core.$strip>>>; + metadata: z.ZodOptional>>; + apiName: z.ZodOptional; +}, z.core.$strip>; + +// ── GetEffectivePermissionsRequest (type) ── +type GetEffectivePermissionsRequest = z.input; + +// ── GetEffectivePermissionsRequestSchema (const) ── +declare const GetEffectivePermissionsRequestSchema: z.ZodObject<{}, z.core.$strip>; + +// ── GetEffectivePermissionsResponse (type) ── +type GetEffectivePermissionsResponse = z.input; + +// ── GetEffectivePermissionsResponseSchema (const) ── +declare const GetEffectivePermissionsResponseSchema: z.ZodObject<{ + objects: z.ZodRecord, Record, z.core.$ZodTypeInternals, Record>> & { + readonly shape: { + readonly [x: string]: z.core.$ZodType>; + apiOperations: z.ZodOptional>>; + }; + }>; + systemPermissions: z.ZodArray; +}, z.core.$strip>; + +// ── GetExportJobDownloadRequest (type) ── +type GetExportJobDownloadRequest = z.input; + +// ── GetExportJobDownloadRequestSchema (const) ── +declare const GetExportJobDownloadRequestSchema: z.ZodObject<{ + jobId: z.ZodString; +}, z.core.$strip>; + +// ── GetExportJobDownloadResponse (type) ── +type GetExportJobDownloadResponse = z.input; + +// ── GetExportJobDownloadResponseParsed (type) ── +type GetExportJobDownloadResponseParsed = z.infer; + +// ── GetExportJobDownloadResponseSchema (const) ── +declare const GetExportJobDownloadResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + jobId: z.ZodString; + downloadUrl: z.ZodString; + fileName: z.ZodString; + fileSize: z.ZodNumber; + format: z.ZodEnum<{ + json: "json"; + csv: "csv"; + xlsx: "xlsx"; + jsonl: "jsonl"; + parquet: "parquet"; + }>; + expiresAt: z.ZodString; + checksum: z.ZodOptional; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── GetFieldLabelsRequest (type) ── +type GetFieldLabelsRequest = z.input; + +// ── GetFieldLabelsRequestSchema (const) ── +declare const GetFieldLabelsRequestSchema: z.ZodObject<{ + object: z.ZodString; + locale: z.ZodString; +}, z.core.$strip>; + +// ── GetFieldLabelsResponse (type) ── +type GetFieldLabelsResponse = z.input; + +// ── GetFieldLabelsResponseSchema (const) ── +declare const GetFieldLabelsResponseSchema: z.ZodObject<{ + object: z.ZodString; + locale: z.ZodString; + labels: z.ZodRecord; + options: z.ZodOptional>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── GetFlowRequest (type) ── +type GetFlowRequest = z.input; + +// ── GetFlowRequestSchema (const) ── +declare const GetFlowRequestSchema: z.ZodObject<{ + name: z.ZodString; +}, z.core.$strip>; + +// ── GetFlowResponse (type) ── +type GetFlowResponse = z.input; + +// ── GetFlowResponseParsed (type) ── +type GetFlowResponseParsed = z.infer; + +// ── GetFlowResponseSchema (const) ── +declare const GetFlowResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + successMessage: z.ZodOptional; + errorMessage: z.ZodOptional; + version: z.ZodDefault; + status: z.ZodDefault>; + template: z.ZodOptional; + type: z.ZodEnum<{ + api: "api"; + screen: "screen"; + schedule: "schedule"; + autolaunched: "autolaunched"; + record_change: "record_change"; + }>; + variables: z.ZodOptional; + isOutput: z.ZodDefault; + defaultValue: z.ZodOptional; + }, z.core.$strict>>>; + nodes: z.ZodArray>; + connectorConfig: z.ZodOptional>; + }, z.core.$strict>>; + position: z.ZodOptional>; + timeoutMs: z.ZodOptional; + inputSchema: z.ZodOptional; + required: z.ZodDefault; + description: z.ZodOptional; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional; + waitEventConfig: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + timeoutMs: z.ZodOptional; + onTimeout: z.ZodOptional; + }, z.core.$strict>>; + boundaryConfig: z.ZodOptional; + interrupting: z.ZodDefault; + errorCode: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform<{ + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "manual" | "webhook" | "timer" | "signal"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "cancel" | "timer" | "signal"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }, { + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "manual" | "webhook" | "timer" | "signal"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "cancel" | "timer" | "signal"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }>>>; + edges: z.ZodArray>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + source: z.ZodString; + }, z.core.$strip>]>>; + type: z.ZodDefault>; + label: z.ZodOptional; + isDefault: z.ZodDefault; + }, z.core.$strict>>; + active: z.ZodOptional; + runAs: z.ZodDefault>; + errorHandling: z.ZodOptional; + fallbackNodeId: z.ZodOptional; + backoffMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; + maxRetryDelayMs: z.ZodDefault; + jitter: z.ZodDefault; + retryDelayMs: z.ZodOptional; + strategy: z.ZodDefault>; + }, z.core.$strict>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; +}, z.core.$strip>; + +// ── GetInstalledPackageRequest (type) ── +type GetInstalledPackageRequest = z.input; + +// ── GetInstalledPackageRequestSchema (const) ── +declare const GetInstalledPackageRequestSchema: z.ZodObject<{ + packageId: z.ZodString; +}, z.core.$strip>; + +// ── GetInstalledPackageResponse (type) ── +type GetInstalledPackageResponse = z.input; + +// ── GetInstalledPackageResponseParsed (type) ── +type GetInstalledPackageResponseParsed = z.infer; + +// ── GetInstalledPackageResponseSchema (const) ── +declare const GetInstalledPackageResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodUnion; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>; + status: z.ZodDefault>; + enabled: z.ZodDefault; + installedAt: z.ZodOptional; + updatedAt: z.ZodOptional; + installedVersion: z.ZodOptional; + previousVersion: z.ZodOptional; + statusChangedAt: z.ZodOptional; + errorMessage: z.ZodOptional; + settings: z.ZodOptional>; + upgradeHistory: z.ZodOptional; + migrationLog: z.ZodOptional>; + }, z.core.$strip>>>; + registeredNamespaces: z.ZodOptional>; + }, z.core.$strip>, z.ZodObject<{ + status: z.ZodDefault>; + enabled: z.ZodDefault; + installedAt: z.ZodOptional; + updatedAt: z.ZodOptional; + installedVersion: z.ZodOptional; + previousVersion: z.ZodOptional; + statusChangedAt: z.ZodOptional; + errorMessage: z.ZodOptional; + settings: z.ZodOptional>; + upgradeHistory: z.ZodOptional; + migrationLog: z.ZodOptional>; + }, z.core.$strip>>>; + registeredNamespaces: z.ZodOptional>; + manifest: z.ZodObject<{ + readonly [x: string]: z.core.$ZodType>; + functions: z.ZodOptional; + hooks: z.ZodOptional; + }, z.core.$strip>; + }, z.core.$strip>]>; +}, z.core.$strip>; + +// ── GetLocalesRequest (type) ── +type GetLocalesRequest = z.input; + +// ── GetLocalesRequestSchema (const) ── +declare const GetLocalesRequestSchema: z.ZodObject<{}, z.core.$strip>; + +// ── GetLocalesResponse (type) ── +type GetLocalesResponse = z.input; + +// ── GetLocalesResponseParsed (type) ── +type GetLocalesResponseParsed = z.infer; + +// ── GetLocalesResponseSchema (const) ── +declare const GetLocalesResponseSchema: z.ZodObject<{ + locales: z.ZodArray; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── GetMetaDiagnosticsResponse (type) ── +type GetMetaDiagnosticsResponse = z.input; + +// ── GetMetaDiagnosticsResponseParsed (type) ── +type GetMetaDiagnosticsResponseParsed = z.infer; + +// ── GetMetaDiagnosticsResponseSchema (const) ── +declare const GetMetaDiagnosticsResponseSchema: z.ZodObject<{ + entries: z.ZodArray; + }, z.core.$strip>>>; + warnings: z.ZodOptional>>; + }, z.core.$strip>; + }, z.core.$strip>>; + total: z.ZodNumber; + scannedTypes: z.ZodNumber; + scannedItems: z.ZodNumber; + stats: z.ZodRecord; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── GetMetaItemCachedRequest (type) ── +type GetMetaItemCachedRequest = z.input; + +// ── GetMetaItemCachedRequestSchema (const) ── +declare const GetMetaItemCachedRequestSchema: z.ZodObject<{ + type: z.ZodString; + name: z.ZodString; + cacheRequest: z.ZodOptional; + ifModifiedSince: z.ZodOptional; + cacheControl: z.ZodOptional>; + maxAge: z.ZodOptional; + staleWhileRevalidate: z.ZodOptional; + staleIfError: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + locale: z.ZodOptional; + organizationId: z.ZodOptional; +}, z.core.$strip>; + +// ── GetMetaItemCachedResponse (type) ── +type GetMetaItemCachedResponse = z.input; + +// ── GetMetaItemCachedResponseParsed (type) ── +type GetMetaItemCachedResponseParsed = z.infer; + +// ── GetMetaItemCachedResponseSchema (const) ── +declare const GetMetaItemCachedResponseSchema: z.ZodObject<{ + data: z.ZodOptional; + etag: z.ZodOptional>; + }, z.core.$strip>>; + lastModified: z.ZodOptional; + cacheControl: z.ZodOptional>; + maxAge: z.ZodOptional; + staleWhileRevalidate: z.ZodOptional; + staleIfError: z.ZodOptional; + }, z.core.$strip>>; + notModified: z.ZodDefault>; + version: z.ZodOptional; +}, z.core.$strip>; + +// ── GetMetaItemLayeredRequest (type) ── +type GetMetaItemLayeredRequest = z.input; + +// ── GetMetaItemLayeredRequestSchema (const) ── +declare const GetMetaItemLayeredRequestSchema: z.ZodObject<{ + type: z.ZodString; + name: z.ZodString; + packageId: z.ZodOptional; + organizationId: z.ZodOptional; +}, z.core.$strip>; + +// ── GetMetaItemLayeredResponse (type) ── +type GetMetaItemLayeredResponse = z.input; + +// ── GetMetaItemLayeredResponseSchema (const) ── +declare const GetMetaItemLayeredResponseSchema: z.ZodObject<{ + lock: z.ZodEnum<{ + none: "none"; + "no-overlay": "no-overlay"; + "no-delete": "no-delete"; + full: "full"; + }>; + editable: z.ZodBoolean; + deletable: z.ZodBoolean; + resettable: z.ZodBoolean; + lockReason: z.ZodOptional; + lockSource: z.ZodOptional>; + lockDocsUrl: z.ZodOptional; + provenance: z.ZodOptional>; + packageId: z.ZodOptional; + packageVersion: z.ZodOptional; + type: z.ZodString; + name: z.ZodString; + code: z.ZodUnknown; + overlay: z.ZodUnknown; + overlayScope: z.ZodNullable>; + effective: z.ZodUnknown; + _diagnostics: z.ZodOptional; + }, z.core.$strip>>>; + warnings: z.ZodOptional>>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── GetMetaItemRequest (type) ── +type GetMetaItemRequest = z.input; + +// ── GetMetaItemRequestSchema (const) ── +declare const GetMetaItemRequestSchema: z.ZodObject<{ + type: z.ZodString; + name: z.ZodString; + packageId: z.ZodOptional; + organizationId: z.ZodOptional; + state: z.ZodOptional>; + previewDrafts: z.ZodOptional; +}, z.core.$strip>; + +// ── GetMetaItemResponse (type) ── +type GetMetaItemResponse = z.input; + +// ── GetMetaItemResponseSchema (const) ── +declare const GetMetaItemResponseSchema: z.ZodObject<{ + lock: z.ZodOptional>; + lockReason: z.ZodOptional; + lockSource: z.ZodOptional>; + lockDocsUrl: z.ZodOptional; + provenance: z.ZodOptional>; + packageId: z.ZodOptional; + packageVersion: z.ZodOptional; + editable: z.ZodOptional; + deletable: z.ZodOptional; + resettable: z.ZodOptional; + type: z.ZodString; + name: z.ZodString; + item: z.ZodUnknown; + sortability: z.ZodOptional>; + caveat: z.ZodOptional>; + }, z.core.$strip>>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── GetMetaItemsRequest (type) ── +type GetMetaItemsRequest = z.input; + +// ── GetMetaItemsRequestSchema (const) ── +declare const GetMetaItemsRequestSchema: z.ZodObject<{ + type: z.ZodString; + packageId: z.ZodOptional; + organizationId: z.ZodOptional; + previewDrafts: z.ZodOptional; +}, z.core.$strip>; + +// ── GetMetaItemsResponse (type) ── +type GetMetaItemsResponse = z.input; + +// ── GetMetaItemsResponseSchema (const) ── +declare const GetMetaItemsResponseSchema: z.ZodObject<{ + type: z.ZodString; + items: z.ZodArray; +}, z.core.$strip>; + +// ── GetMetaTypesRequest (type) ── +type GetMetaTypesRequest = z.input; + +// ── GetMetaTypesRequestSchema (const) ── +declare const GetMetaTypesRequestSchema: z.ZodObject<{}, z.core.$strip>; + +// ── GetMetaTypesResponse (type) ── +type GetMetaTypesResponse = z.input; + +// ── GetMetaTypesResponseSchema (const) ── +declare const GetMetaTypesResponseSchema: z.ZodObject<{ + types: z.ZodArray; + entries: z.ZodOptional; + filePatterns: z.ZodArray; + supportsOverlay: z.ZodBoolean; + allowOrgOverride: z.ZodBoolean; + allowRuntimeCreate: z.ZodBoolean; + supportsVersioning: z.ZodBoolean; + executionPinned: z.ZodBoolean; + loadOrder: z.ZodNumber; + domain: z.ZodEnum<{ + system: "system"; + data: "data"; + ui: "ui"; + automation: "automation"; + ai: "ai"; + security: "security"; + }>; + overrideSource: z.ZodEnum<{ + env: "env"; + registry: "registry"; + }>; + createSeed: z.ZodOptional; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── GetNotificationPreferencesRequest (type) ── +type GetNotificationPreferencesRequest = z.input; + +// ── GetNotificationPreferencesRequestSchema (const) ── +declare const GetNotificationPreferencesRequestSchema: z.ZodObject<{}, z.core.$strip>; + +// ── GetNotificationPreferencesResponse (type) ── +type GetNotificationPreferencesResponse = z.input; + +// ── GetNotificationPreferencesResponseParsed (type) ── +type GetNotificationPreferencesResponseParsed = z.infer; + +// ── GetNotificationPreferencesResponseSchema (const) ── +declare const GetNotificationPreferencesResponseSchema: z.ZodObject<{ + preferences: z.ZodObject<{ + email: z.ZodDefault; + push: z.ZodDefault; + inApp: z.ZodDefault; + digest: z.ZodDefault>; + channels: z.ZodOptional; + email: z.ZodOptional; + push: z.ZodOptional; + }, z.core.$strip>>>; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── GetObjectPermissionsRequest (type) ── +type GetObjectPermissionsRequest = z.input; + +// ── GetObjectPermissionsRequestSchema (const) ── +declare const GetObjectPermissionsRequestSchema: z.ZodObject<{ + object: z.ZodString; +}, z.core.$strip>; + +// ── GetObjectPermissionsResponse (type) ── +type GetObjectPermissionsResponse = z.input; + +// ── GetObjectPermissionsResponseParsed (type) ── +type GetObjectPermissionsResponseParsed = z.infer; + +// ── GetObjectPermissionsResponseSchema (const) ── +declare const GetObjectPermissionsResponseSchema: z.ZodObject<{ + object: z.ZodString; + permissions: z.ZodType<{ + allowCreate: boolean; + allowRead: boolean; + allowEdit: boolean; + allowDelete: boolean; + allowTransfer: boolean; + viewAllRecords: boolean; + modifyAllRecords: boolean; + allowExport?: boolean | undefined; + allowRestore?: undefined; + allowPurge?: undefined; + readScope?: "org" | "unit" | "own" | "own_and_reports" | "unit_and_below" | undefined; + writeScope?: "org" | "unit" | "own" | "own_and_reports" | "unit_and_below" | undefined; + }, { + allowCreate?: boolean | undefined; + allowRead?: boolean | undefined; + allowEdit?: boolean | undefined; + allowDelete?: boolean | undefined; + allowExport?: boolean | undefined; + allowTransfer?: boolean | undefined; + allowRestore?: undefined; + allowPurge?: undefined; + viewAllRecords?: boolean | undefined; + modifyAllRecords?: boolean | undefined; + readScope?: "org" | "unit" | "own" | "own_and_reports" | "unit_and_below" | undefined; + writeScope?: "org" | "unit" | "own" | "own_and_reports" | "unit_and_below" | undefined; + }, z.core.$ZodTypeInternals<{ + allowCreate: boolean; + allowRead: boolean; + allowEdit: boolean; + allowDelete: boolean; + allowTransfer: boolean; + viewAllRecords: boolean; + modifyAllRecords: boolean; + allowExport?: boolean | undefined; + allowRestore?: undefined; + allowPurge?: undefined; + readScope?: "org" | "unit" | "own" | "own_and_reports" | "unit_and_below" | undefined; + writeScope?: "org" | "unit" | "own" | "own_and_reports" | "unit_and_below" | undefined; + }, { + allowCreate?: boolean | undefined; + allowRead?: boolean | undefined; + allowEdit?: boolean | undefined; + allowDelete?: boolean | undefined; + allowExport?: boolean | undefined; + allowTransfer?: boolean | undefined; + allowRestore?: undefined; + allowPurge?: undefined; + viewAllRecords?: boolean | undefined; + modifyAllRecords?: boolean | undefined; + readScope?: "org" | "unit" | "own" | "own_and_reports" | "unit_and_below" | undefined; + writeScope?: "org" | "unit" | "own" | "own_and_reports" | "unit_and_below" | undefined; + }>> & { + readonly shape: { + allowCreate: z.ZodDefault; + allowRead: z.ZodDefault; + allowEdit: z.ZodDefault; + allowDelete: z.ZodDefault; + allowExport: z.ZodOptional; + allowTransfer: z.ZodDefault; + allowRestore: z.ZodOptional; + allowPurge: z.ZodOptional; + viewAllRecords: z.ZodDefault; + modifyAllRecords: z.ZodDefault; + readScope: z.ZodOptional>; + writeScope: z.ZodOptional>; + }; + }; + fieldPermissions: z.ZodOptional; + editable: z.ZodDefault; + }, z.core.$strict>>>; +}, z.core.$strip>; + +// ── GetPackageRequest (type) ── +type GetPackageRequest = z.input; + +// ── GetPackageRequestSchema (const) ── +declare const GetPackageRequestSchema: z.ZodObject<{ + id: z.ZodString; +}, z.core.$strip>; + +// ── GetPackageResponse (type) ── +type GetPackageResponse = z.input; + +// ── GetPackageResponseSchema (const) ── +declare const GetPackageResponseSchema: z.ZodObject<{ + package: z.ZodObject<{ + manifest: z.ZodObject<{ + id: z.ZodString; + namespace: z.ZodOptional; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>; + status: z.ZodDefault>; + enabled: z.ZodDefault; + installedAt: z.ZodOptional; + updatedAt: z.ZodOptional; + installedVersion: z.ZodOptional; + previousVersion: z.ZodOptional; + statusChangedAt: z.ZodOptional; + errorMessage: z.ZodOptional; + settings: z.ZodOptional>; + upgradeHistory: z.ZodOptional; + migrationLog: z.ZodOptional>; + }, z.core.$strip>>>; + registeredNamespaces: z.ZodOptional>; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── GetPresenceRequest (type) ── +type GetPresenceRequest = z.input; + +// ── GetPresenceRequestSchema (const) ── +declare const GetPresenceRequestSchema: z.ZodObject<{ + channel: z.ZodString; +}, z.core.$strip>; + +// ── GetPresenceResponse (type) ── +type GetPresenceResponse = z.input; + +// ── GetPresenceResponseSchema (const) ── +declare const GetPresenceResponseSchema: z.ZodObject<{ + channel: z.ZodString; + members: z.ZodArray; + lastSeen: z.ZodString; + metadata: z.ZodOptional>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── GetPresignedUrlRequest (type) ── +type GetPresignedUrlRequest = z.input; + +// ── GetPresignedUrlRequestParsed (type) ── +type GetPresignedUrlRequestParsed = z.infer; + +// ── GetPresignedUrlRequestSchema (const) ── +declare const GetPresignedUrlRequestSchema: z.ZodObject<{ + filename: z.ZodString; + mimeType: z.ZodString; + size: z.ZodNumber; + scope: z.ZodDefault; + bucket: z.ZodOptional; +}, z.core.$strip>; + +// ── GetPublishedMetaItemResponse (type) ── +type GetPublishedMetaItemResponse = z.input; + +// ── GetPublishedMetaItemResponseParsed (type) ── +type GetPublishedMetaItemResponseParsed = z.infer; + +// ── GetPublishedMetaItemResponseSchema (const) ── +declare const GetPublishedMetaItemResponseSchema: z.ZodUnknown; + +// ── GetRunRequest (type) ── +type GetRunRequest = z.input; + +// ── GetRunRequestSchema (const) ── +declare const GetRunRequestSchema: z.ZodObject<{ + name: z.ZodString; + runId: z.ZodString; +}, z.core.$strip>; + +// ── GetRunResponse (type) ── +type GetRunResponse = z.input; + +// ── GetRunResponseParsed (type) ── +type GetRunResponseParsed = z.infer; + +// ── GetRunResponseSchema (const) ── +declare const GetRunResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + id: z.ZodString; + flowName: z.ZodString; + flowVersion: z.ZodOptional; + status: z.ZodEnum<{ + failed: "failed"; + refused: "refused"; + pending: "pending"; + completed: "completed"; + running: "running"; + cancelled: "cancelled"; + paused: "paused"; + timed_out: "timed_out"; + retrying: "retrying"; + }>; + refusalMessage: z.ZodOptional; + trigger: z.ZodObject<{ + type: z.ZodString; + recordId: z.ZodOptional; + object: z.ZodOptional; + userId: z.ZodOptional; + metadata: z.ZodOptional>; + }, z.core.$strip>; + steps: z.ZodArray; + status: z.ZodEnum<{ + success: "success"; + skipped: "skipped"; + failure: "failure"; + }>; + startedAt: z.ZodString; + completedAt: z.ZodOptional; + durationMs: z.ZodOptional; + input: z.ZodOptional>; + output: z.ZodOptional>; + error: z.ZodOptional; + }, z.core.$strip>>; + retryAttempt: z.ZodOptional; + parentNodeId: z.ZodOptional; + iteration: z.ZodOptional; + branch: z.ZodOptional; + regionKind: z.ZodOptional; + metrics: z.ZodOptional; + acted: z.ZodOptional; + unmeasuredEffect: z.ZodOptional; + failures: z.ZodOptional; + }, z.core.$strip>>; + skippedBy: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + summary: z.ZodOptional; + failed: z.ZodOptional; + nodes: z.ZodArray; + status: z.ZodEnum<{ + success: "success"; + skipped: "skipped"; + failure: "failure"; + }>; + runs: z.ZodNumber; + failures: z.ZodNumber; + skipped: z.ZodNumber; + selected: z.ZodOptional; + acted: z.ZodOptional; + unmeasured: z.ZodOptional; + }, z.core.$strip>>; + gates: z.ZodArray; + label: z.ZodOptional; + skipped: z.ZodNumber; + }, z.core.$strip>>; + detailOmitted: z.ZodOptional; + }, z.core.$strip>>; + variables: z.ZodOptional>; + startedAt: z.ZodString; + completedAt: z.ZodOptional; + durationMs: z.ZodOptional; + runAs: z.ZodOptional>; + tenantId: z.ZodOptional; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── GetTranslationsRequest (type) ── +type GetTranslationsRequest = z.input; + +// ── GetTranslationsRequestSchema (const) ── +declare const GetTranslationsRequestSchema: z.ZodObject<{ + locale: z.ZodString; +}, z.core.$strip>; + +// ── GetTranslationsResponse (type) ── +type GetTranslationsResponse = z.input; + +// ── GetTranslationsResponseSchema (const) ── +declare const GetTranslationsResponseSchema: z.ZodObject<{ + locale: z.ZodString; + translations: z.ZodObject<{ + objects: z.ZodOptional; + pluralLabel: z.ZodOptional; + description: z.ZodOptional; + fields: z.ZodOptional; + help: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + _views: z.ZodOptional; + description: z.ZodOptional; + emptyState: z.ZodOptional; + message: z.ZodOptional; + }, z.core.$strict>>; + bulkActions: z.ZodOptional; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + params: z.ZodOptional; + help: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + _actions: z.ZodOptional; + description: z.ZodOptional; + confirmText: z.ZodOptional; + successMessage: z.ZodOptional; + params: z.ZodOptional; + helpText: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + resultDialog: z.ZodOptional; + description: z.ZodOptional; + acknowledge: z.ZodOptional; + fields: z.ZodOptional>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + _sections: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + _tabs: z.ZodOptional; + }, z.core.$strict>>>; + _validations: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + apps: z.ZodOptional; + navigation: z.ZodOptional>>; + }, z.core.$strict>>>; + messages: z.ZodOptional>; + globalActions: z.ZodOptional; + description: z.ZodOptional; + confirmText: z.ZodOptional; + successMessage: z.ZodOptional; + params: z.ZodOptional; + helpText: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + resultDialog: z.ZodOptional; + description: z.ZodOptional; + acknowledge: z.ZodOptional; + fields: z.ZodOptional>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + dashboards: z.ZodOptional; + description: z.ZodOptional; + actions: z.ZodOptional; + }, z.core.$strict>>>; + widgets: z.ZodOptional; + description: z.ZodOptional; + subCaption: z.ZodOptional; + }, z.core.$strict>>>; + globalFilters: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + datasets: z.ZodOptional; + description: z.ZodOptional; + dimensions: z.ZodOptional; + }, z.core.$strict>>>; + measures: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + pages: z.ZodOptional; + description: z.ZodOptional; + title: z.ZodOptional; + subtitle: z.ZodOptional; + components: z.ZodOptional; + description: z.ZodOptional; + label: z.ZodOptional; + placeholder: z.ZodOptional; + emptyText: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + flows: z.ZodOptional; + screens: z.ZodOptional; + fields: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + settings: z.ZodOptional; + description: z.ZodOptional; + groups: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + keys: z.ZodOptional; + help: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + actions: z.ZodOptional; + confirmText: z.ZodOptional; + successMessage: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + metadataForms: z.ZodOptional; + description: z.ZodOptional; + sections: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + fields: z.ZodOptional; + helpText: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + settingsCommon: z.ZodOptional; + global: z.ZodOptional; + tenant: z.ZodOptional; + user: z.ZodOptional; + default: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + }, z.core.$strict>; +}, z.core.$strip>; + +// ── GetUiViewRequest (type) ── +type GetUiViewRequest = z.input; + +// ── GetUiViewRequestSchema (const) ── +declare const GetUiViewRequestSchema: z.ZodObject<{ + object: z.ZodString; + type: z.ZodEnum<{ + form: "form"; + list: "list"; + }>; +}, z.core.$strip>; + +// ── GetUiViewResponse (type) ── +type GetUiViewResponse = z.input; + +// ── GetUiViewResponseParsed (type) ── +type GetUiViewResponseParsed = z.infer; + +// ── GetUiViewResponseSchema (const) ── +declare const GetUiViewResponseSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + object: z.ZodOptional; + list: z.ZodOptional; + }, z.core.$strict>>>; + map: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + name: z.ZodOptional; + type: z.ZodDefault>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + inlineEdit: z.ZodOptional; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + selection: z.ZodOptional>; + }, z.core.$strict>>; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + none: "none"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + resizable: z.ZodOptional; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + compactToolbar: z.ZodOptional; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + pageName: z.ZodOptional; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + rowActions: z.ZodOptional>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + update: "update"; + delete: "delete"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + email: "email"; + url: "url"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "csv" | "xlsx")[]; + }, ("json" | "csv" | "xlsx")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + performance: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + }, z.core.$strict>>; + form: z.ZodOptional>; + layout: z.ZodOptional>; + columns: z.ZodOptional; + title: z.ZodOptional; + description: z.ZodOptional; + defaultTab: z.ZodOptional; + tabPosition: z.ZodOptional>; + allowSkip: z.ZodOptional; + showStepIndicator: z.ZodOptional; + splitDirection: z.ZodOptional>; + splitSize: z.ZodOptional; + splitResizable: z.ZodOptional; + drawerSide: z.ZodOptional>; + drawerWidth: z.ZodOptional; + modalSize: z.ZodOptional>; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + sections: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional; + collapsible: z.ZodDefault; + collapsed: z.ZodDefault; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibleOn: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + columns: z.ZodPipe, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>, z.ZodTransform<2 | 1 | 4 | 3, 2 | 1 | "1" | "2" | "3" | "4" | 4 | 3>>; + pane: z.ZodOptional>; + group: z.ZodOptional; + fields: z.ZodOptional>]>>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">, { + collapsible: boolean; + collapsed: boolean; + columns: 2 | 1 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }>>>>; + groups: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional; + collapsible: z.ZodDefault; + collapsed: z.ZodDefault; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibleOn: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + columns: z.ZodPipe, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>, z.ZodTransform<2 | 1 | 4 | 3, 2 | 1 | "1" | "2" | "3" | "4" | 4 | 3>>; + pane: z.ZodOptional>; + group: z.ZodOptional; + fields: z.ZodOptional>]>>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">, { + collapsible: boolean; + collapsed: boolean; + columns: 2 | 1 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }>>>>; + subforms: z.ZodOptional; + columns: z.ZodOptional>; + amountField: z.ZodOptional; + totalField: z.ZodOptional; + title: z.ZodOptional; + addLabel: z.ZodOptional; + minRows: z.ZodOptional; + maxRows: z.ZodOptional; + }, z.core.$strict>>>; + defaultSort: z.ZodOptional; + sharing: z.ZodOptional; + publicLink: z.ZodOptional; + password: z.ZodOptional; + allowedDomains: z.ZodOptional>; + expiresAt: z.ZodOptional; + allowAnonymous: z.ZodDefault>; + }, z.core.$strict>>; + submitBehavior: z.ZodOptional; + title: z.ZodOptional; + message: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"redirect">; + url: z.ZodString; + delayMs: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"continue">; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"next-record">; + }, z.core.$strict>], "kind">>; + buttons: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + cancel: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + reset: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + }, z.core.$strict>>; + defaults: z.ZodOptional>; + aria: z.ZodOptional; + }, z.core.$strict>>; + listViews: z.ZodOptional; + }, z.core.$strict>>>; + map: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + name: z.ZodOptional; + type: z.ZodDefault>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + inlineEdit: z.ZodOptional; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + selection: z.ZodOptional>; + }, z.core.$strict>>; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + none: "none"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + resizable: z.ZodOptional; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + compactToolbar: z.ZodOptional; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + pageName: z.ZodOptional; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + rowActions: z.ZodOptional>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + update: "update"; + delete: "delete"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + email: "email"; + url: "url"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "csv" | "xlsx")[]; + }, ("json" | "csv" | "xlsx")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + performance: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + formViews: z.ZodOptional>; + layout: z.ZodOptional>; + columns: z.ZodOptional; + title: z.ZodOptional; + description: z.ZodOptional; + defaultTab: z.ZodOptional; + tabPosition: z.ZodOptional>; + allowSkip: z.ZodOptional; + showStepIndicator: z.ZodOptional; + splitDirection: z.ZodOptional>; + splitSize: z.ZodOptional; + splitResizable: z.ZodOptional; + drawerSide: z.ZodOptional>; + drawerWidth: z.ZodOptional; + modalSize: z.ZodOptional>; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + sections: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional; + collapsible: z.ZodDefault; + collapsed: z.ZodDefault; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibleOn: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + columns: z.ZodPipe, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>, z.ZodTransform<2 | 1 | 4 | 3, 2 | 1 | "1" | "2" | "3" | "4" | 4 | 3>>; + pane: z.ZodOptional>; + group: z.ZodOptional; + fields: z.ZodOptional>]>>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">, { + collapsible: boolean; + collapsed: boolean; + columns: 2 | 1 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }>>>>; + groups: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional; + collapsible: z.ZodDefault; + collapsed: z.ZodDefault; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibleOn: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + columns: z.ZodPipe, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>, z.ZodTransform<2 | 1 | 4 | 3, 2 | 1 | "1" | "2" | "3" | "4" | 4 | 3>>; + pane: z.ZodOptional>; + group: z.ZodOptional; + fields: z.ZodOptional>]>>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">, { + collapsible: boolean; + collapsed: boolean; + columns: 2 | 1 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }>>>>; + subforms: z.ZodOptional; + columns: z.ZodOptional>; + amountField: z.ZodOptional; + totalField: z.ZodOptional; + title: z.ZodOptional; + addLabel: z.ZodOptional; + minRows: z.ZodOptional; + maxRows: z.ZodOptional; + }, z.core.$strict>>>; + defaultSort: z.ZodOptional; + sharing: z.ZodOptional; + publicLink: z.ZodOptional; + password: z.ZodOptional; + allowedDomains: z.ZodOptional>; + expiresAt: z.ZodOptional; + allowAnonymous: z.ZodDefault>; + }, z.core.$strict>>; + submitBehavior: z.ZodOptional; + title: z.ZodOptional; + message: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"redirect">; + url: z.ZodString; + delayMs: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"continue">; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"next-record">; + }, z.core.$strict>], "kind">>; + buttons: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + cancel: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + reset: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + }, z.core.$strict>>; + defaults: z.ZodOptional>; + aria: z.ZodOptional; + }, z.core.$strict>>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── HistoryMetaItemRequest (type) ── +type HistoryMetaItemRequest = z.input; + +// ── HistoryMetaItemRequestSchema (const) ── +declare const HistoryMetaItemRequestSchema: z.ZodObject<{ + type: z.ZodString; + name: z.ZodString; + organizationId: z.ZodOptional; + sinceSeq: z.ZodOptional; + limit: z.ZodOptional; +}, z.core.$strip>; + +// ── HistoryMetaItemResponse (type) ── +type HistoryMetaItemResponse = z.input; + +// ── HistoryMetaItemResponseSchema (const) ── +declare const HistoryMetaItemResponseSchema: z.ZodObject<{ + events: z.ZodArray; + ref: z.ZodObject<{ + org: z.ZodString; + type: z.ZodString; + name: z.ZodString; + version: z.ZodOptional; + }, z.core.$strip>; + hash: z.ZodNullable; + parentHash: z.ZodNullable; + version: z.ZodOptional; + previousName: z.ZodOptional; + actor: z.ZodNullable; + message: z.ZodOptional; + ts: z.ZodString; + source: z.ZodString; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── HttpFindQueryParamsSchema (const) ── +declare const HttpFindQueryParamsSchema: z.ZodObject<{ + filter: z.ZodOptional; + filters: z.ZodOptional; + select: z.ZodOptional; + sort: z.ZodOptional; + orderBy: z.ZodOptional; + top: z.ZodOptional>; + skip: z.ZodOptional>; + expand: z.ZodOptional; + search: z.ZodOptional; + distinct: z.ZodOptional; + count: z.ZodOptional>; +}, z.core.$strip>; + +// ── HttpMethod (const) ── +declare const HttpMethod: z.ZodEnum<{ + GET: "GET"; + POST: "POST"; + PUT: "PUT"; + DELETE: "DELETE"; + PATCH: "PATCH"; + HEAD: "HEAD"; + OPTIONS: "OPTIONS"; +}>; + +// ── HttpMethod (type) ── +type HttpMethod = z.input; + +// ── HttpStatusErrorCodeMap (const) ── +declare const HttpStatusErrorCodeMap: Record; + +// ── I18nProtocol (interface) ── +interface I18nProtocol { + getLocales?(request: GetLocalesRequest): Promise; + getTranslations?(request: GetTranslationsRequest): Promise; + getFieldLabels?(request: GetFieldLabelsRequest): Promise; +} + +// ── IMPORT_JOB_MAX_ROWS (const) ── +declare const IMPORT_JOB_MAX_ROWS = 50000; + +// ── IdRequest (type) ── +type IdRequest = z.input; + +// ── IdRequestSchema (const) ── +declare const IdRequestSchema: z.ZodObject<{ + id: z.ZodString; +}, z.core.$strip>; + +// ── ImportJobApiContracts (const) ── +declare const ImportJobApiContracts: { + createImportJob: { + method: "POST"; + path: string; + input: z.ZodObject<{ + format: z.ZodOptional>; + csv: z.ZodOptional; + rows: z.ZodOptional>>; + xlsxBase64: z.ZodOptional; + sheet: z.ZodOptional>; + mapping: z.ZodOptional, z.ZodArray; + transform: z.ZodDefault>; + defaultValue: z.ZodOptional; + required: z.ZodDefault; + }, z.core.$strip>>]>>; + mappingName: z.ZodOptional; + dryRun: z.ZodDefault; + writeMode: z.ZodDefault>; + matchFields: z.ZodOptional>; + runAutomations: z.ZodDefault; + treatAsHistorical: z.ZodDefault; + trimWhitespace: z.ZodDefault; + nullValues: z.ZodOptional>; + createMissingOptions: z.ZodDefault; + skipBlankMatchKey: z.ZodDefault; + }, z.core.$strip>; + output: z.ZodObject<{ + jobId: z.ZodString; + object: z.ZodString; + status: z.ZodEnum<{ + succeeded: "succeeded"; + failed: "failed"; + pending: "pending"; + running: "running"; + cancelled: "cancelled"; + }>; + total: z.ZodNumber; + createdAt: z.ZodString; + }, z.core.$strip>; + }; + getImportJobProgress: { + method: "GET"; + path: string; + input: z.ZodObject<{ + jobId: z.ZodString; + }, z.core.$strip>; + output: z.ZodObject<{ + jobId: z.ZodString; + object: z.ZodString; + status: z.ZodEnum<{ + succeeded: "succeeded"; + failed: "failed"; + pending: "pending"; + running: "running"; + cancelled: "cancelled"; + }>; + dryRun: z.ZodBoolean; + writeMode: z.ZodEnum<{ + update: "update"; + insert: "insert"; + upsert: "upsert"; + }>; + total: z.ZodNumber; + processed: z.ZodNumber; + created: z.ZodNumber; + updated: z.ZodNumber; + skipped: z.ZodNumber; + errors: z.ZodNumber; + percentComplete: z.ZodNumber; + undoable: z.ZodBoolean; + revertedAt: z.ZodOptional; + error: z.ZodOptional; + startedAt: z.ZodOptional; + completedAt: z.ZodOptional; + createdAt: z.ZodString; + }, z.core.$strip>; + }; + getImportJobResults: { + method: "GET"; + path: string; + input: z.ZodObject<{ + jobId: z.ZodString; + }, z.core.$strip>; + output: z.ZodObject<{ + jobId: z.ZodString; + object: z.ZodString; + status: z.ZodEnum<{ + succeeded: "succeeded"; + failed: "failed"; + pending: "pending"; + running: "running"; + cancelled: "cancelled"; + }>; + dryRun: z.ZodBoolean; + writeMode: z.ZodEnum<{ + update: "update"; + insert: "insert"; + upsert: "upsert"; + }>; + total: z.ZodNumber; + processed: z.ZodNumber; + created: z.ZodNumber; + updated: z.ZodNumber; + skipped: z.ZodNumber; + errors: z.ZodNumber; + percentComplete: z.ZodNumber; + undoable: z.ZodBoolean; + revertedAt: z.ZodOptional; + error: z.ZodOptional; + startedAt: z.ZodOptional; + completedAt: z.ZodOptional; + createdAt: z.ZodString; + results: z.ZodArray; + id: z.ZodOptional; + field: z.ZodOptional; + code: z.ZodOptional; + error: z.ZodOptional; + }, z.core.$strip>>; + resultsTruncated: z.ZodBoolean; + }, z.core.$strip>; + }; + listImportJobs: { + method: "GET"; + path: string; + input: z.ZodObject<{ + object: z.ZodOptional; + status: z.ZodOptional>; + limit: z.ZodDefault; + offset: z.ZodDefault; + }, z.core.$strip>; + output: z.ZodObject<{ + jobs: z.ZodArray; + total: z.ZodNumber; + processed: z.ZodNumber; + created: z.ZodNumber; + updated: z.ZodNumber; + skipped: z.ZodNumber; + errors: z.ZodNumber; + createdAt: z.ZodString; + completedAt: z.ZodOptional; + undoable: z.ZodBoolean; + revertedAt: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + }; + cancelImportJob: { + method: "POST"; + path: string; + input: z.ZodObject<{ + jobId: z.ZodString; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + }; + undoImportJob: { + method: "POST"; + path: string; + input: z.ZodObject<{ + jobId: z.ZodString; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + jobId: z.ZodString; + object: z.ZodString; + deleted: z.ZodNumber; + restored: z.ZodNumber; + failed: z.ZodNumber; + }, z.core.$strip>; + }; +}; + +// ── ImportJobProgress (type) ── +type ImportJobProgress = z.input; + +// ── ImportJobProgressSchema (const) ── +declare const ImportJobProgressSchema: z.ZodObject<{ + jobId: z.ZodString; + object: z.ZodString; + status: z.ZodEnum<{ + succeeded: "succeeded"; + failed: "failed"; + pending: "pending"; + running: "running"; + cancelled: "cancelled"; + }>; + dryRun: z.ZodBoolean; + writeMode: z.ZodEnum<{ + update: "update"; + insert: "insert"; + upsert: "upsert"; + }>; + total: z.ZodNumber; + processed: z.ZodNumber; + created: z.ZodNumber; + updated: z.ZodNumber; + skipped: z.ZodNumber; + errors: z.ZodNumber; + percentComplete: z.ZodNumber; + undoable: z.ZodBoolean; + revertedAt: z.ZodOptional; + error: z.ZodOptional; + startedAt: z.ZodOptional; + completedAt: z.ZodOptional; + createdAt: z.ZodString; +}, z.core.$strip>; + +// ── ImportJobResults (type) ── +type ImportJobResults = z.input; + +// ── ImportJobResultsSchema (const) ── +declare const ImportJobResultsSchema: z.ZodObject<{ + jobId: z.ZodString; + object: z.ZodString; + status: z.ZodEnum<{ + succeeded: "succeeded"; + failed: "failed"; + pending: "pending"; + running: "running"; + cancelled: "cancelled"; + }>; + dryRun: z.ZodBoolean; + writeMode: z.ZodEnum<{ + update: "update"; + insert: "insert"; + upsert: "upsert"; + }>; + total: z.ZodNumber; + processed: z.ZodNumber; + created: z.ZodNumber; + updated: z.ZodNumber; + skipped: z.ZodNumber; + errors: z.ZodNumber; + percentComplete: z.ZodNumber; + undoable: z.ZodBoolean; + revertedAt: z.ZodOptional; + error: z.ZodOptional; + startedAt: z.ZodOptional; + completedAt: z.ZodOptional; + createdAt: z.ZodString; + results: z.ZodArray; + id: z.ZodOptional; + field: z.ZodOptional; + code: z.ZodOptional; + error: z.ZodOptional; + }, z.core.$strip>>; + resultsTruncated: z.ZodBoolean; +}, z.core.$strip>; + +// ── ImportJobStatus (const) ── +declare const ImportJobStatus: z.ZodEnum<{ + succeeded: "succeeded"; + failed: "failed"; + pending: "pending"; + running: "running"; + cancelled: "cancelled"; +}>; + +// ── ImportJobStatus (type) ── +type ImportJobStatus = z.input; + +// ── ImportJobSummary (type) ── +type ImportJobSummary = z.input; + +// ── ImportJobSummarySchema (const) ── +declare const ImportJobSummarySchema: z.ZodObject<{ + jobId: z.ZodString; + object: z.ZodString; + status: z.ZodEnum<{ + succeeded: "succeeded"; + failed: "failed"; + pending: "pending"; + running: "running"; + cancelled: "cancelled"; + }>; + total: z.ZodNumber; + processed: z.ZodNumber; + created: z.ZodNumber; + updated: z.ZodNumber; + skipped: z.ZodNumber; + errors: z.ZodNumber; + createdAt: z.ZodString; + completedAt: z.ZodOptional; + undoable: z.ZodBoolean; + revertedAt: z.ZodOptional; +}, z.core.$strip>; + +// ── ImportMapping (type) ── +type ImportMapping = z.input; + +// ── ImportMappingParsed (type) ── +type ImportMappingParsed = z.infer; + +// ── ImportMappingSchema (const) ── +declare const ImportMappingSchema: z.ZodUnion, z.ZodArray; + transform: z.ZodDefault>; + defaultValue: z.ZodOptional; + required: z.ZodDefault; +}, z.core.$strip>>]>; + +// ── ImportRequest (type) ── +type ImportRequest = z.input; + +// ── ImportRequestParsed (type) ── +type ImportRequestParsed = z.infer; + +// ── ImportRequestSchema (const) ── +declare const ImportRequestSchema: z.ZodObject<{ + format: z.ZodOptional>; + csv: z.ZodOptional; + rows: z.ZodOptional>>; + xlsxBase64: z.ZodOptional; + sheet: z.ZodOptional>; + mapping: z.ZodOptional, z.ZodArray; + transform: z.ZodDefault>; + defaultValue: z.ZodOptional; + required: z.ZodDefault; + }, z.core.$strip>>]>>; + mappingName: z.ZodOptional; + dryRun: z.ZodDefault; + writeMode: z.ZodDefault>; + matchFields: z.ZodOptional>; + runAutomations: z.ZodDefault; + treatAsHistorical: z.ZodDefault; + trimWhitespace: z.ZodDefault; + nullValues: z.ZodOptional>; + createMissingOptions: z.ZodDefault; + skipBlankMatchKey: z.ZodDefault; +}, z.core.$strip>; + +// ── ImportResponse (type) ── +type ImportResponse = z.input; + +// ── ImportResponseSchema (const) ── +declare const ImportResponseSchema: z.ZodObject<{ + object: z.ZodString; + dryRun: z.ZodBoolean; + writeMode: z.ZodEnum<{ + update: "update"; + insert: "insert"; + upsert: "upsert"; + }>; + total: z.ZodNumber; + ok: z.ZodNumber; + errors: z.ZodNumber; + created: z.ZodNumber; + updated: z.ZodNumber; + skipped: z.ZodNumber; + results: z.ZodArray; + id: z.ZodOptional; + field: z.ZodOptional; + code: z.ZodOptional; + error: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── ImportRowResult (type) ── +type ImportRowResult = z.input; + +// ── ImportRowResultSchema (const) ── +declare const ImportRowResultSchema: z.ZodObject<{ + row: z.ZodNumber; + ok: z.ZodBoolean; + action: z.ZodEnum<{ + created: "created"; + updated: "updated"; + failed: "failed"; + skipped: "skipped"; + }>; + id: z.ZodOptional; + field: z.ZodOptional; + code: z.ZodOptional; + error: z.ZodOptional; +}, z.core.$strip>; + +// ── ImportValidationConfig (type) ── +type ImportValidationConfig = z.input; + +// ── ImportValidationConfigParsed (type) ── +type ImportValidationConfigParsed = z.infer; + +// ── ImportValidationConfigSchema (const) ── +declare const ImportValidationConfigSchema: z.ZodObject<{ + mode: z.ZodDefault>; + deduplication: z.ZodOptional>; + matchFields: z.ZodArray; + }, z.core.$strip>>; + maxErrors: z.ZodDefault; + trimWhitespace: z.ZodDefault; + dateFormat: z.ZodOptional; + nullValues: z.ZodOptional>; +}, z.core.$strip>; + +// ── ImportValidationMode (const) ── +declare const ImportValidationMode: z.ZodEnum<{ + strict: "strict"; + lenient: "lenient"; + dry_run: "dry_run"; +}>; + +// ── ImportValidationMode (type) ── +type ImportValidationMode = z.input; + +// ── ImportValidationResult (type) ── +type ImportValidationResult = z.input; + +// ── ImportValidationResultParsed (type) ── +type ImportValidationResultParsed = z.infer; + +// ── ImportValidationResultSchema (const) ── +declare const ImportValidationResultSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + totalRecords: z.ZodNumber; + validRecords: z.ZodNumber; + invalidRecords: z.ZodNumber; + duplicateRecords: z.ZodNumber; + errors: z.ZodArray; + code: z.ZodString; + message: z.ZodString; + }, z.core.$strip>>; + preview: z.ZodOptional>>; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── ImportWriteMode (const) ── +declare const ImportWriteMode: z.ZodEnum<{ + update: "update"; + insert: "insert"; + upsert: "upsert"; +}>; + +// ── ImportWriteMode (type) ── +type ImportWriteMode = z.input; + +// ── InitiateChunkedUploadRequest (type) ── +type InitiateChunkedUploadRequest = z.input; + +// ── InitiateChunkedUploadRequestParsed (type) ── +type InitiateChunkedUploadRequestParsed = z.infer; + +// ── InitiateChunkedUploadRequestSchema (const) ── +declare const InitiateChunkedUploadRequestSchema: z.ZodObject<{ + filename: z.ZodString; + mimeType: z.ZodString; + totalSize: z.ZodNumber; + chunkSize: z.ZodDefault; + scope: z.ZodDefault; + bucket: z.ZodOptional; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── InitiateChunkedUploadResponse (type) ── +type InitiateChunkedUploadResponse = z.input; + +// ── InitiateChunkedUploadResponseParsed (type) ── +type InitiateChunkedUploadResponseParsed = z.infer; + +// ── InitiateChunkedUploadResponseSchema (const) ── +declare const InitiateChunkedUploadResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + uploadId: z.ZodString; + resumeToken: z.ZodString; + fileId: z.ZodString; + totalChunks: z.ZodNumber; + chunkSize: z.ZodNumber; + expiresAt: z.ZodString; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── InstallPackageRequest (type) ── +type InstallPackageRequest = z.input; + +// ── InstallPackageRequestSchema (const) ── +declare const InstallPackageRequestSchema: z.ZodObject<{ + manifest: z.ZodObject<{ + id: z.ZodString; + namespace: z.ZodOptional; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>; + settings: z.ZodOptional>; + enableOnInstall: z.ZodDefault; + platformVersion: z.ZodOptional; +}, z.core.$strip>; + +// ── InstallPackageResponse (type) ── +type InstallPackageResponse = z.input; + +// ── InstallPackageResponseSchema (const) ── +declare const InstallPackageResponseSchema: z.ZodObject<{ + package: z.ZodObject<{ + manifest: z.ZodObject<{ + id: z.ZodString; + namespace: z.ZodOptional; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>; + status: z.ZodDefault>; + enabled: z.ZodDefault; + installedAt: z.ZodOptional; + updatedAt: z.ZodOptional; + installedVersion: z.ZodOptional; + previousVersion: z.ZodOptional; + statusChangedAt: z.ZodOptional; + errorMessage: z.ZodOptional; + settings: z.ZodOptional>; + upgradeHistory: z.ZodOptional; + migrationLog: z.ZodOptional>; + }, z.core.$strip>>>; + registeredNamespaces: z.ZodOptional>; + }, z.core.$strip>; + message: z.ZodOptional; + dependencyResolution: z.ZodOptional; + installedVersion: z.ZodOptional; + status: z.ZodEnum<{ + conflict: "conflict"; + satisfied: "satisfied"; + needs_install: "needs_install"; + needs_upgrade: "needs_upgrade"; + }>; + conflictReason: z.ZodOptional; + }, z.core.$strip>>; + canProceed: z.ZodBoolean; + requiredActions: z.ZodArray; + packageId: z.ZodString; + description: z.ZodString; + }, z.core.$strip>>; + installOrder: z.ZodArray; + circularDependencies: z.ZodOptional>>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── InstalledPackage (type) ── +type InstalledPackage = z.input; + +// ── InstalledPackageAtEitherStage (type) ── +type InstalledPackageAtEitherStage = z.input; + +// ── InstalledPackageAtEitherStageParsed (type) ── +type InstalledPackageAtEitherStageParsed = z.infer; + +// ── InstalledPackageAtEitherStageSchema (const) ── +declare const InstalledPackageAtEitherStageSchema: z.ZodUnion; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>; + status: z.ZodDefault>; + enabled: z.ZodDefault; + installedAt: z.ZodOptional; + updatedAt: z.ZodOptional; + installedVersion: z.ZodOptional; + previousVersion: z.ZodOptional; + statusChangedAt: z.ZodOptional; + errorMessage: z.ZodOptional; + settings: z.ZodOptional>; + upgradeHistory: z.ZodOptional; + migrationLog: z.ZodOptional>; + }, z.core.$strip>>>; + registeredNamespaces: z.ZodOptional>; +}, z.core.$strip>, z.ZodObject<{ + status: z.ZodDefault>; + enabled: z.ZodDefault; + installedAt: z.ZodOptional; + updatedAt: z.ZodOptional; + installedVersion: z.ZodOptional; + previousVersion: z.ZodOptional; + statusChangedAt: z.ZodOptional; + errorMessage: z.ZodOptional; + settings: z.ZodOptional>; + upgradeHistory: z.ZodOptional; + migrationLog: z.ZodOptional>; + }, z.core.$strip>>>; + registeredNamespaces: z.ZodOptional>; + manifest: z.ZodObject<{ + readonly [x: string]: z.core.$ZodType>; + functions: z.ZodOptional; + hooks: z.ZodOptional; + }, z.core.$strip>; +}, z.core.$strip>]>; + +// ── ListAiConversationsRequest (type) ── +type ListAiConversationsRequest = z.input; + +// ── ListAiConversationsRequestSchema (const) ── +declare const ListAiConversationsRequestSchema: z.ZodObject<{ + agentId: z.ZodOptional; + limit: z.ZodOptional; + cursor: z.ZodOptional; +}, z.core.$strip>; + +// ── ListAiConversationsResponse (type) ── +type ListAiConversationsResponse = z.input; + +// ── ListAiConversationsResponseSchema (const) ── +declare const ListAiConversationsResponseSchema: z.ZodObject<{ + conversations: z.ZodArray; + agentId: z.ZodOptional; + userId: z.ZodOptional; + messages: z.ZodArray; + content: z.ZodOptional; + parts: z.ZodOptional>; + }, z.core.$loose>>; + createdAt: z.ZodString; + updatedAt: z.ZodString; + metadata: z.ZodOptional>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── ListAiPendingActionsRequest (type) ── +type ListAiPendingActionsRequest = z.input; + +// ── ListAiPendingActionsRequestSchema (const) ── +declare const ListAiPendingActionsRequestSchema: z.ZodObject<{ + status: z.ZodOptional>; + conversationId: z.ZodOptional; + limit: z.ZodOptional; +}, z.core.$strip>; + +// ── ListAiPendingActionsResponse (type) ── +type ListAiPendingActionsResponse = z.input; + +// ── ListAiPendingActionsResponseSchema (const) ── +declare const ListAiPendingActionsResponseSchema: z.ZodObject<{ + items: z.ZodArray; + result: z.ZodOptional; + error: z.ZodOptional; + rejection_reason: z.ZodOptional; + conversation_id: z.ZodOptional; + message_id: z.ZodOptional; + proposed_by: z.ZodOptional; + decided_by: z.ZodOptional; + proposed_at: z.ZodString; + decided_at: z.ZodOptional; + }, z.core.$strip>>; + total: z.ZodNumber; +}, z.core.$strip>; + +// ── ListDraftsResponse (type) ── +type ListDraftsResponse = z.input; + +// ── ListDraftsResponseParsed (type) ── +type ListDraftsResponseParsed = z.infer; + +// ── ListDraftsResponseSchema (const) ── +declare const ListDraftsResponseSchema: z.ZodObject<{ + drafts: z.ZodArray; + packageId: z.ZodNullable; + updatedAt: z.ZodNullable; + updatedBy: z.ZodNullable; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── ListExportJobsRequest (type) ── +type ListExportJobsRequest = z.input; + +// ── ListExportJobsRequestParsed (type) ── +type ListExportJobsRequestParsed = z.infer; + +// ── ListExportJobsRequestSchema (const) ── +declare const ListExportJobsRequestSchema: z.ZodObject<{ + object: z.ZodOptional; + status: z.ZodOptional>; + limit: z.ZodDefault; + cursor: z.ZodOptional; +}, z.core.$strip>; + +// ── ListExportJobsResponse (type) ── +type ListExportJobsResponse = z.input; + +// ── ListExportJobsResponseParsed (type) ── +type ListExportJobsResponseParsed = z.infer; + +// ── ListExportJobsResponseSchema (const) ── +declare const ListExportJobsResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + jobs: z.ZodArray; + format: z.ZodEnum<{ + json: "json"; + csv: "csv"; + xlsx: "xlsx"; + jsonl: "jsonl"; + parquet: "parquet"; + }>; + totalRecords: z.ZodOptional; + fileSize: z.ZodOptional; + createdAt: z.ZodString; + completedAt: z.ZodOptional; + createdBy: z.ZodOptional; + }, z.core.$strip>>; + nextCursor: z.ZodOptional; + hasMore: z.ZodBoolean; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── ListFlowsRequest (type) ── +type ListFlowsRequest = z.input; + +// ── ListFlowsRequestParsed (type) ── +type ListFlowsRequestParsed = z.infer; + +// ── ListFlowsRequestSchema (const) ── +declare const ListFlowsRequestSchema: z.ZodObject<{ + status: z.ZodOptional>; + type: z.ZodOptional>; + limit: z.ZodDefault; + cursor: z.ZodOptional; +}, z.core.$strip>; + +// ── ListFlowsResponse (type) ── +type ListFlowsResponse = z.input; + +// ── ListFlowsResponseParsed (type) ── +type ListFlowsResponseParsed = z.infer; + +// ── ListFlowsResponseSchema (const) ── +declare const ListFlowsResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + flows: z.ZodArray; + lastRunAt: z.ZodOptional; + }, z.core.$strip>>; + total: z.ZodOptional; + nextCursor: z.ZodOptional; + hasMore: z.ZodBoolean; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── ListImportJobsRequest (type) ── +type ListImportJobsRequest = z.input; + +// ── ListImportJobsRequestParsed (type) ── +type ListImportJobsRequestParsed = z.infer; + +// ── ListImportJobsRequestSchema (const) ── +declare const ListImportJobsRequestSchema: z.ZodObject<{ + object: z.ZodOptional; + status: z.ZodOptional>; + limit: z.ZodDefault; + offset: z.ZodDefault; +}, z.core.$strip>; + +// ── ListImportJobsResponse (type) ── +type ListImportJobsResponse = z.input; + +// ── ListImportJobsResponseSchema (const) ── +declare const ListImportJobsResponseSchema: z.ZodObject<{ + jobs: z.ZodArray; + total: z.ZodNumber; + processed: z.ZodNumber; + created: z.ZodNumber; + updated: z.ZodNumber; + skipped: z.ZodNumber; + errors: z.ZodNumber; + createdAt: z.ZodString; + completedAt: z.ZodOptional; + undoable: z.ZodBoolean; + revertedAt: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── ListInstalledPackagesRequest (type) ── +type ListInstalledPackagesRequest = z.input; + +// ── ListInstalledPackagesRequestParsed (type) ── +type ListInstalledPackagesRequestParsed = z.infer; + +// ── ListInstalledPackagesRequestSchema (const) ── +declare const ListInstalledPackagesRequestSchema: z.ZodObject<{ + status: z.ZodOptional>; + enabled: z.ZodOptional; + limit: z.ZodDefault; + cursor: z.ZodOptional; +}, z.core.$strip>; + +// ── ListInstalledPackagesResponse (type) ── +type ListInstalledPackagesResponse = z.input; + +// ── ListInstalledPackagesResponseParsed (type) ── +type ListInstalledPackagesResponseParsed = z.infer; + +// ── ListInstalledPackagesResponseSchema (const) ── +declare const ListInstalledPackagesResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + packages: z.ZodArray; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>; + status: z.ZodDefault>; + enabled: z.ZodDefault; + installedAt: z.ZodOptional; + updatedAt: z.ZodOptional; + installedVersion: z.ZodOptional; + previousVersion: z.ZodOptional; + statusChangedAt: z.ZodOptional; + errorMessage: z.ZodOptional; + settings: z.ZodOptional>; + upgradeHistory: z.ZodOptional; + migrationLog: z.ZodOptional>; + }, z.core.$strip>>>; + registeredNamespaces: z.ZodOptional>; + }, z.core.$strip>, z.ZodObject<{ + status: z.ZodDefault>; + enabled: z.ZodDefault; + installedAt: z.ZodOptional; + updatedAt: z.ZodOptional; + installedVersion: z.ZodOptional; + previousVersion: z.ZodOptional; + statusChangedAt: z.ZodOptional; + errorMessage: z.ZodOptional; + settings: z.ZodOptional>; + upgradeHistory: z.ZodOptional; + migrationLog: z.ZodOptional>; + }, z.core.$strip>>>; + registeredNamespaces: z.ZodOptional>; + manifest: z.ZodObject<{ + readonly [x: string]: z.core.$ZodType>; + functions: z.ZodOptional; + hooks: z.ZodOptional; + }, z.core.$strip>; + }, z.core.$strip>]>>; + total: z.ZodOptional; + nextCursor: z.ZodOptional; + hasMore: z.ZodBoolean; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── ListNotificationsRequest (type) ── +type ListNotificationsRequest = z.input; + +// ── ListNotificationsRequestParsed (type) ── +type ListNotificationsRequestParsed = z.infer; + +// ── ListNotificationsRequestSchema (const) ── +declare const ListNotificationsRequestSchema: z.ZodObject<{ + read: z.ZodOptional; + type: z.ZodOptional; + limit: z.ZodOptional; + cursor: z.ZodOptional; +}, z.core.$strip>; + +// ── ListNotificationsResponse (type) ── +type ListNotificationsResponse = z.input; + +// ── ListNotificationsResponseParsed (type) ── +type ListNotificationsResponseParsed = z.infer; + +// ── ListNotificationsResponseSchema (const) ── +declare const ListNotificationsResponseSchema: z.ZodObject<{ + notifications: z.ZodArray; + data: z.ZodOptional>; + actionUrl: z.ZodOptional; + createdAt: z.ZodString; + }, z.core.$strip>>; + unreadCount: z.ZodNumber; + cursor: z.ZodOptional; +}, z.core.$strip>; + +// ── ListPackageCommitsResponse (type) ── +type ListPackageCommitsResponse = z.input; + +// ── ListPackageCommitsResponseParsed (type) ── +type ListPackageCommitsResponseParsed = z.infer; + +// ── ListPackageCommitsResponseSchema (const) ── +declare const ListPackageCommitsResponseSchema: z.ZodObject<{ + commits: z.ZodArray; + message: z.ZodOptional; + actor: z.ZodOptional; + aiModel: z.ZodOptional; + parentCommitId: z.ZodOptional; + itemCount: z.ZodNumber; + items: z.ZodArray; + }, z.core.$strip>>; + createdAt: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── ListPackagesRequest (type) ── +type ListPackagesRequest = z.input; + +// ── ListPackagesRequestSchema (const) ── +declare const ListPackagesRequestSchema: z.ZodObject<{ + status: z.ZodOptional>; + type: z.ZodOptional>; + enabled: z.ZodOptional; +}, z.core.$strip>; + +// ── ListPackagesResponse (type) ── +type ListPackagesResponse = z.input; + +// ── ListPackagesResponseSchema (const) ── +declare const ListPackagesResponseSchema: z.ZodObject<{ + packages: z.ZodArray; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>; + status: z.ZodDefault>; + enabled: z.ZodDefault; + installedAt: z.ZodOptional; + updatedAt: z.ZodOptional; + installedVersion: z.ZodOptional; + previousVersion: z.ZodOptional; + statusChangedAt: z.ZodOptional; + errorMessage: z.ZodOptional; + settings: z.ZodOptional>; + upgradeHistory: z.ZodOptional; + migrationLog: z.ZodOptional>; + }, z.core.$strip>>>; + registeredNamespaces: z.ZodOptional>; + }, z.core.$strip>>; + total: z.ZodNumber; +}, z.core.$strip>; + +// ── ListRecordResponse (type) ── +type ListRecordResponse = z.input; + +// ── ListRecordResponseParsed (type) ── +type ListRecordResponseParsed = z.infer; + +// ── ListRecordResponseSchema (const) ── +declare const ListRecordResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodArray>; + pagination: z.ZodObject<{ + total: z.ZodOptional; + limit: z.ZodOptional; + offset: z.ZodOptional; + cursor: z.ZodOptional; + nextCursor: z.ZodOptional; + hasMore: z.ZodBoolean; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── ListRunsRequest (type) ── +type ListRunsRequest = z.input; + +// ── ListRunsRequestParsed (type) ── +type ListRunsRequestParsed = z.infer; + +// ── ListRunsRequestSchema (const) ── +declare const ListRunsRequestSchema: z.ZodObject<{ + name: z.ZodString; + status: z.ZodOptional>; + limit: z.ZodDefault; + cursor: z.ZodOptional; +}, z.core.$strip>; + +// ── ListRunsResponse (type) ── +type ListRunsResponse = z.input; + +// ── ListRunsResponseParsed (type) ── +type ListRunsResponseParsed = z.infer; + +// ── ListRunsResponseSchema (const) ── +declare const ListRunsResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + runs: z.ZodArray; + status: z.ZodEnum<{ + failed: "failed"; + refused: "refused"; + pending: "pending"; + completed: "completed"; + running: "running"; + cancelled: "cancelled"; + paused: "paused"; + timed_out: "timed_out"; + retrying: "retrying"; + }>; + refusalMessage: z.ZodOptional; + trigger: z.ZodObject<{ + type: z.ZodString; + recordId: z.ZodOptional; + object: z.ZodOptional; + userId: z.ZodOptional; + metadata: z.ZodOptional>; + }, z.core.$strip>; + steps: z.ZodArray; + status: z.ZodEnum<{ + success: "success"; + skipped: "skipped"; + failure: "failure"; + }>; + startedAt: z.ZodString; + completedAt: z.ZodOptional; + durationMs: z.ZodOptional; + input: z.ZodOptional>; + output: z.ZodOptional>; + error: z.ZodOptional; + }, z.core.$strip>>; + retryAttempt: z.ZodOptional; + parentNodeId: z.ZodOptional; + iteration: z.ZodOptional; + branch: z.ZodOptional; + regionKind: z.ZodOptional; + metrics: z.ZodOptional; + acted: z.ZodOptional; + unmeasuredEffect: z.ZodOptional; + failures: z.ZodOptional; + }, z.core.$strip>>; + skippedBy: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + summary: z.ZodOptional; + failed: z.ZodOptional; + nodes: z.ZodArray; + status: z.ZodEnum<{ + success: "success"; + skipped: "skipped"; + failure: "failure"; + }>; + runs: z.ZodNumber; + failures: z.ZodNumber; + skipped: z.ZodNumber; + selected: z.ZodOptional; + acted: z.ZodOptional; + unmeasured: z.ZodOptional; + }, z.core.$strip>>; + gates: z.ZodArray; + label: z.ZodOptional; + skipped: z.ZodNumber; + }, z.core.$strip>>; + detailOmitted: z.ZodOptional; + }, z.core.$strip>>; + variables: z.ZodOptional>; + startedAt: z.ZodString; + completedAt: z.ZodOptional; + durationMs: z.ZodOptional; + runAs: z.ZodOptional>; + tenantId: z.ZodOptional; + }, z.core.$strip>>; + total: z.ZodOptional; + nextCursor: z.ZodOptional; + hasMore: z.ZodBoolean; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── LoginRequest (type) ── +type LoginRequest = z.input; + +// ── LoginRequestParsed (type) ── +type LoginRequestParsed = z.infer; + +// ── LoginRequestSchema (const) ── +declare const LoginRequestSchema: z.ZodObject<{ + type: z.ZodDefault>; + email: z.ZodOptional; + username: z.ZodOptional; + password: z.ZodOptional; + provider: z.ZodOptional; + redirectTo: z.ZodOptional; +}, z.core.$strip>; + +// ── LoginType (const) ── +declare const LoginType: z.ZodEnum<{ + email: "email"; + phone: "phone"; + username: "username"; + "magic-link": "magic-link"; + social: "social"; +}>; + +// ── LoginType (type) ── +type LoginType = z.input; + +// ── MarkAllNotificationsReadRequest (type) ── +type MarkAllNotificationsReadRequest = z.input; + +// ── MarkAllNotificationsReadRequestSchema (const) ── +declare const MarkAllNotificationsReadRequestSchema: z.ZodObject<{}, z.core.$strip>; + +// ── MarkAllNotificationsReadResponse (type) ── +type MarkAllNotificationsReadResponse = z.input; + +// ── MarkAllNotificationsReadResponseSchema (const) ── +declare const MarkAllNotificationsReadResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + readCount: z.ZodNumber; +}, z.core.$strip>; + +// ── MarkNotificationsReadRequest (type) ── +type MarkNotificationsReadRequest = z.input; + +// ── MarkNotificationsReadRequestSchema (const) ── +declare const MarkNotificationsReadRequestSchema: z.ZodObject<{ + ids: z.ZodArray; +}, z.core.$strip>; + +// ── MarkNotificationsReadResponse (type) ── +type MarkNotificationsReadResponse = z.input; + +// ── MarkNotificationsReadResponseSchema (const) ── +declare const MarkNotificationsReadResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + readCount: z.ZodNumber; +}, z.core.$strip>; + +// ── MetadataBulkRegisterRequest (type) ── +type MetadataBulkRegisterRequest = z.input; + +// ── MetadataBulkRegisterRequestParsed (type) ── +type MetadataBulkRegisterRequestParsed = z.infer; + +// ── MetadataBulkRegisterRequestSchema (const) ── +declare const MetadataBulkRegisterRequestSchema: z.ZodObject<{ + items: z.ZodArray; + }, z.core.$strip>>; + continueOnError: z.ZodDefault; + validate: z.ZodDefault; +}, z.core.$strip>; + +// ── MetadataBulkResponse (type) ── +type MetadataBulkResponse = z.input; + +// ── MetadataBulkResponseParsed (type) ── +type MetadataBulkResponseParsed = z.infer; + +// ── MetadataBulkResponseSchema (const) ── +declare const MetadataBulkResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + total: z.ZodNumber; + succeeded: z.ZodNumber; + failed: z.ZodNumber; + errors: z.ZodOptional>>; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── MetadataBulkUnregisterRequest (type) ── +type MetadataBulkUnregisterRequest = z.input; + +// ── MetadataBulkUnregisterRequestSchema (const) ── +declare const MetadataBulkUnregisterRequestSchema: z.ZodObject<{ + items: z.ZodArray>; +}, z.core.$strip>; + +// ── MetadataCacheApi (const) ── +declare const MetadataCacheApi: { + getCached: { + input: z.ZodObject<{ + ifNoneMatch: z.ZodOptional; + ifModifiedSince: z.ZodOptional; + cacheControl: z.ZodOptional>; + maxAge: z.ZodOptional; + staleWhileRevalidate: z.ZodOptional; + staleIfError: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + output: z.ZodObject<{ + data: z.ZodOptional; + etag: z.ZodOptional>; + }, z.core.$strip>>; + lastModified: z.ZodOptional; + cacheControl: z.ZodOptional>; + maxAge: z.ZodOptional; + staleWhileRevalidate: z.ZodOptional; + staleIfError: z.ZodOptional; + }, z.core.$strip>>; + notModified: z.ZodDefault>; + version: z.ZodOptional; + }, z.core.$strip>; + }; + invalidate: { + input: z.ZodObject<{ + target: z.ZodEnum<{ + object: "object"; + custom: "custom"; + field: "field"; + permission: "permission"; + all: "all"; + layout: "layout"; + }>; + identifiers: z.ZodOptional>; + cascade: z.ZodDefault>; + pattern: z.ZodOptional; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + invalidated: z.ZodNumber; + targets: z.ZodOptional>; + }, z.core.$strip>; + }; +}; + +// ── MetadataCacheRequest (type) ── +type MetadataCacheRequest = z.input; + +// ── MetadataCacheRequestSchema (const) ── +declare const MetadataCacheRequestSchema: z.ZodObject<{ + ifNoneMatch: z.ZodOptional; + ifModifiedSince: z.ZodOptional; + cacheControl: z.ZodOptional>; + maxAge: z.ZodOptional; + staleWhileRevalidate: z.ZodOptional; + staleIfError: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── MetadataCacheResponse (type) ── +type MetadataCacheResponse = z.input; + +// ── MetadataCacheResponseParsed (type) ── +type MetadataCacheResponseParsed = z.infer; + +// ── MetadataCacheResponseSchema (const) ── +declare const MetadataCacheResponseSchema: z.ZodObject<{ + data: z.ZodOptional; + etag: z.ZodOptional>; + }, z.core.$strip>>; + lastModified: z.ZodOptional; + cacheControl: z.ZodOptional>; + maxAge: z.ZodOptional; + staleWhileRevalidate: z.ZodOptional; + staleIfError: z.ZodOptional; + }, z.core.$strip>>; + notModified: z.ZodDefault>; + version: z.ZodOptional; +}, z.core.$strip>; + +// ── MetadataDeleteResponse (type) ── +type MetadataDeleteResponse = z.input; + +// ── MetadataDeleteResponseParsed (type) ── +type MetadataDeleteResponseParsed = z.infer; + +// ── MetadataDeleteResponseSchema (const) ── +declare const MetadataDeleteResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + type: z.ZodString; + name: z.ZodString; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── MetadataDependenciesResponse (type) ── +type MetadataDependenciesResponse = z.input; + +// ── MetadataDependenciesResponseParsed (type) ── +type MetadataDependenciesResponseParsed = z.infer; + +// ── MetadataDependenciesResponseSchema (const) ── +declare const MetadataDependenciesResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodArray; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── MetadataDependentsResponse (type) ── +type MetadataDependentsResponse = z.input; + +// ── MetadataDependentsResponseParsed (type) ── +type MetadataDependentsResponseParsed = z.infer; + +// ── MetadataDependentsResponseSchema (const) ── +declare const MetadataDependentsResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodArray; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── MetadataEndpointsConfig (type) ── +type MetadataEndpointsConfig = z.input; + +// ── MetadataEndpointsConfigParsed (type) ── +type MetadataEndpointsConfigParsed = z.infer; + +// ── MetadataEndpointsConfigSchema (const) ── +declare const MetadataEndpointsConfigSchema: z.ZodObject<{ + prefix: z.ZodDefault; + enableCache: z.ZodDefault; + cacheTtl: z.ZodOptional; + maskObjectFields: z.ZodDefault; + endpoints: z.ZodOptional; + items: z.ZodDefault; + item: z.ZodDefault; + maintenance: z.ZodDefault; + schema: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── MetadataEvent (type) ── +type MetadataEvent = z.input; + +// ── MetadataEventSchema (const) ── +declare const MetadataEventSchema: z.ZodObject<{ + id: z.ZodString; + type: z.ZodEnum<{ + "metadata.object.created": "metadata.object.created"; + "metadata.object.updated": "metadata.object.updated"; + "metadata.object.deleted": "metadata.object.deleted"; + "metadata.field.created": "metadata.field.created"; + "metadata.field.updated": "metadata.field.updated"; + "metadata.field.deleted": "metadata.field.deleted"; + "metadata.view.created": "metadata.view.created"; + "metadata.view.updated": "metadata.view.updated"; + "metadata.view.deleted": "metadata.view.deleted"; + "metadata.app.created": "metadata.app.created"; + "metadata.app.updated": "metadata.app.updated"; + "metadata.app.deleted": "metadata.app.deleted"; + "metadata.agent.created": "metadata.agent.created"; + "metadata.agent.updated": "metadata.agent.updated"; + "metadata.agent.deleted": "metadata.agent.deleted"; + "metadata.tool.created": "metadata.tool.created"; + "metadata.tool.updated": "metadata.tool.updated"; + "metadata.tool.deleted": "metadata.tool.deleted"; + "metadata.flow.created": "metadata.flow.created"; + "metadata.flow.updated": "metadata.flow.updated"; + "metadata.flow.deleted": "metadata.flow.deleted"; + "metadata.action.created": "metadata.action.created"; + "metadata.action.updated": "metadata.action.updated"; + "metadata.action.deleted": "metadata.action.deleted"; + "metadata.workflow.created": "metadata.workflow.created"; + "metadata.workflow.updated": "metadata.workflow.updated"; + "metadata.workflow.deleted": "metadata.workflow.deleted"; + "metadata.dashboard.created": "metadata.dashboard.created"; + "metadata.dashboard.updated": "metadata.dashboard.updated"; + "metadata.dashboard.deleted": "metadata.dashboard.deleted"; + "metadata.report.created": "metadata.report.created"; + "metadata.report.updated": "metadata.report.updated"; + "metadata.report.deleted": "metadata.report.deleted"; + "metadata.role.created": "metadata.role.created"; + "metadata.role.updated": "metadata.role.updated"; + "metadata.role.deleted": "metadata.role.deleted"; + "metadata.permission.created": "metadata.permission.created"; + "metadata.permission.updated": "metadata.permission.updated"; + "metadata.permission.deleted": "metadata.permission.deleted"; + }>; + metadataType: z.ZodString; + name: z.ZodString; + packageId: z.ZodOptional; + definition: z.ZodOptional; + userId: z.ZodOptional; + timestamp: z.ZodString; +}, z.core.$strip>; + +// ── MetadataEventSubject (type) ── +type MetadataEventSubject = MetadataEventSubjectOf; + +// ── MetadataEventType (const) ── +declare const MetadataEventType: z.ZodEnum<{ + "metadata.object.created": "metadata.object.created"; + "metadata.object.updated": "metadata.object.updated"; + "metadata.object.deleted": "metadata.object.deleted"; + "metadata.field.created": "metadata.field.created"; + "metadata.field.updated": "metadata.field.updated"; + "metadata.field.deleted": "metadata.field.deleted"; + "metadata.view.created": "metadata.view.created"; + "metadata.view.updated": "metadata.view.updated"; + "metadata.view.deleted": "metadata.view.deleted"; + "metadata.app.created": "metadata.app.created"; + "metadata.app.updated": "metadata.app.updated"; + "metadata.app.deleted": "metadata.app.deleted"; + "metadata.agent.created": "metadata.agent.created"; + "metadata.agent.updated": "metadata.agent.updated"; + "metadata.agent.deleted": "metadata.agent.deleted"; + "metadata.tool.created": "metadata.tool.created"; + "metadata.tool.updated": "metadata.tool.updated"; + "metadata.tool.deleted": "metadata.tool.deleted"; + "metadata.flow.created": "metadata.flow.created"; + "metadata.flow.updated": "metadata.flow.updated"; + "metadata.flow.deleted": "metadata.flow.deleted"; + "metadata.action.created": "metadata.action.created"; + "metadata.action.updated": "metadata.action.updated"; + "metadata.action.deleted": "metadata.action.deleted"; + "metadata.workflow.created": "metadata.workflow.created"; + "metadata.workflow.updated": "metadata.workflow.updated"; + "metadata.workflow.deleted": "metadata.workflow.deleted"; + "metadata.dashboard.created": "metadata.dashboard.created"; + "metadata.dashboard.updated": "metadata.dashboard.updated"; + "metadata.dashboard.deleted": "metadata.dashboard.deleted"; + "metadata.report.created": "metadata.report.created"; + "metadata.report.updated": "metadata.report.updated"; + "metadata.report.deleted": "metadata.report.deleted"; + "metadata.role.created": "metadata.role.created"; + "metadata.role.updated": "metadata.role.updated"; + "metadata.role.deleted": "metadata.role.deleted"; + "metadata.permission.created": "metadata.permission.created"; + "metadata.permission.updated": "metadata.permission.updated"; + "metadata.permission.deleted": "metadata.permission.deleted"; +}>; + +// ── MetadataEventType (type) ── +type MetadataEventType = z.input; + +// ── MetadataExistsResponse (type) ── +type MetadataExistsResponse = z.input; + +// ── MetadataExistsResponseParsed (type) ── +type MetadataExistsResponseParsed = z.infer; + +// ── MetadataExistsResponseSchema (const) ── +declare const MetadataExistsResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + exists: z.ZodBoolean; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── MetadataExportRequestSchema (const) ── +declare const MetadataExportRequestSchema: z.ZodObject<{ + types: z.ZodOptional>; + namespaces: z.ZodOptional>; + format: z.ZodDefault>; +}, z.core.$strip>; + +// ── MetadataExportResponse (type) ── +type MetadataExportResponse = z.input; + +// ── MetadataExportResponseParsed (type) ── +type MetadataExportResponseParsed = z.infer; + +// ── MetadataExportResponseSchema (const) ── +declare const MetadataExportResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodUnknown; +}, z.core.$strip>; + +// ── MetadataImportRequestSchema (const) ── +declare const MetadataImportRequestSchema: z.ZodObject<{ + data: z.ZodUnknown; + conflictResolution: z.ZodDefault>; + validate: z.ZodDefault; + dryRun: z.ZodDefault; +}, z.core.$strip>; + +// ── MetadataImportResponse (type) ── +type MetadataImportResponse = z.input; + +// ── MetadataImportResponseParsed (type) ── +type MetadataImportResponseParsed = z.infer; + +// ── MetadataImportResponseSchema (const) ── +declare const MetadataImportResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + total: z.ZodNumber; + imported: z.ZodNumber; + skipped: z.ZodNumber; + failed: z.ZodNumber; + errors: z.ZodOptional>>; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── MetadataItemResponse (type) ── +type MetadataItemResponse = z.input; + +// ── MetadataItemResponseParsed (type) ── +type MetadataItemResponseParsed = z.infer; + +// ── MetadataItemResponseSchema (const) ── +declare const MetadataItemResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + type: z.ZodString; + name: z.ZodString; + definition: z.ZodRecord; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── MetadataListResponse (type) ── +type MetadataListResponse = z.input; + +// ── MetadataListResponseParsed (type) ── +type MetadataListResponseParsed = z.infer; + +// ── MetadataListResponseSchema (const) ── +declare const MetadataListResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodArray>; +}, z.core.$strip>; + +// ── MetadataNamesResponse (type) ── +type MetadataNamesResponse = z.input; + +// ── MetadataNamesResponseParsed (type) ── +type MetadataNamesResponseParsed = z.infer; + +// ── MetadataNamesResponseSchema (const) ── +declare const MetadataNamesResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodArray; +}, z.core.$strip>; + +// ── MetadataProtocol (interface) ── +interface MetadataProtocol { + getDiscovery(request?: GetDiscoveryRequest): Promise; + getMetaTypes(request?: GetMetaTypesRequest): Promise; + getMetaItems(request: GetMetaItemsRequest): Promise; + getMetaItem(request: GetMetaItemRequest): Promise; + saveMetaItem(request: SaveMetaItemRequest): Promise; + /** + * Promote the pending DRAFT overlay to the live (`active`) row — the write + * sibling of `saveMetaItem` and the verb behind + * `POST /api/v1/meta/:type/:name/publish`, i.e. the second half of Studio's + * designer save-then-publish loop (ADR-0033 two-step: `?mode=draft` stages + * a body, this makes it live). Declared optional like its `deleteMetaItem` + * / `getMetaItemLayered` siblings: additive to a shipped contract, with the + * implementation (`@objectstack/metadata-protocol`) predating the + * declaration. #11006 (maintainer ruling 2026-08-22, option B) promotes + * what was an ADR-0076 D9 server-only extension into a declared optional + * member, closing the half-declared door #7294 left: the response side was + * declared there while the request and this member were not — so the + * request literal at the one HTTP call site had nothing checking it. + */ + publishMetaItem?(request: PublishMetaItemRequest): Promise; + /** + * Delete a metadata customization overlay row. Per ADR-0005 this is the + * "reset to artifact factory default" semantic — it removes a sys_metadata + * row (if present) so subsequent reads fall through to the compiled + * artifact. Whitelisted to view + dashboard in project-kernel mode. + */ + deleteMetaItem?(request: DeleteMetaItemRequest): Promise; + getMetaItemCached?(request: GetMetaItemCachedRequest): Promise; + /** + * Three-layer diagnostic read (`GET /api/v1/meta/:type/:name/layers`) — + * packaged baseline, tenant overlay row and merged result side by side; see + * {@link GetMetaItemLayeredResponseSchema} for the shape and its #5882 + * route-separation rationale. A declared-surface catch-up, not a new + * capability: `metadata-protocol` has shipped this verb since the layered + * route landed. Declared optional like its `getMetaItemCached` / + * `deleteMetaItem` siblings — additive to a shipped contract, with the + * implementation predating the declaration. + */ + getMetaItemLayered?(request: GetMetaItemLayeredRequest): Promise; + /** + * ADR-0010 §3.6 compliance trail read (`GET /api/v1/meta/:type/:name/audit`) + * — recent `sys_metadata_audit` rows for one item, newest first, so Studio's + * 审计日志 / Audit log tab can show who tried what and whether a lock + * blocked it. Declared optional like its `deleteMetaItem` / + * `getMetaItemLayered` siblings: additive to a shipped contract, with the + * implementation (`@objectstack/metadata-protocol`) predating the + * declaration. Promotes what was an ADR-0076 D9 server-only extension into + * a declared optional member (the #11006 maintainer-ruled pattern, + * 2026-08-22 option B, carried one door over) — before this, the REST audit + * door reached the verb through a runtime cast and its request literal was + * compiled against nothing. A host without the verb is CONFORMING: the REST + * door feature-detects and answers 501 before the call (#9426 — a missing + * capability is never reported as an empty trail). + */ + auditMetaItem?(request: AuditMetaItemRequest): Promise; + /** + * Durable change-log read (`GET /api/v1/meta/:type/:name/history`) — the + * `sys_metadata_history` events for one item, oldest first, that Studio's + * History tab renders as a timeline (the audit member above serves the + * sibling 审计日志 / Audit log tab; ADR-0008 §2.4 is the event contract). + * Declared optional like its `auditMetaItem` / `deleteMetaItem` / + * `getMetaItemLayered` siblings: additive to a shipped contract, with the + * implementation (`@objectstack/metadata-protocol`) predating the + * declaration. Promotes what was an ADR-0076 D9 server-only extension into + * a declared optional member (the #11006 maintainer-ruled pattern, + * 2026-08-22 option B, carried one door over exactly as #11678 carried it + * to the audit twin) — before this, the REST history door reached the verb + * through a runtime cast and its request literal was compiled against + * nothing. A host without the verb is CONFORMING: the REST door + * feature-detects and answers 501 before the call. A host WITH the verb + * answers `{ events: [] }` for a non-overlay type — no history exists by + * construction — which is a declared, honest body, never a capability + * signal. + */ + historyMetaItem?(request: HistoryMetaItemRequest): Promise; + getUiView?(request: GetUiViewRequest): Promise; +} + +// ── MetadataQueryRequestSchema (const) ── +declare const MetadataQueryRequestSchema: z.ZodObject<{ + types: z.ZodOptional>>; + namespaces: z.ZodOptional>; + packageId: z.ZodOptional; + search: z.ZodOptional; + scope: z.ZodOptional>; + state: z.ZodOptional>; + tags: z.ZodOptional>; + sortBy: z.ZodDefault>; + sortOrder: z.ZodDefault>; + page: z.ZodDefault; + pageSize: z.ZodDefault; +}, z.core.$strip>; + +// ── MetadataQueryResponse (type) ── +type MetadataQueryResponse = z.input; + +// ── MetadataQueryResponseParsed (type) ── +type MetadataQueryResponseParsed = z.infer; + +// ── MetadataQueryResponseSchema (const) ── +declare const MetadataQueryResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + items: z.ZodArray; + label: z.ZodOptional; + scope: z.ZodOptional>; + state: z.ZodOptional>; + packageId: z.ZodOptional; + updatedAt: z.ZodOptional; + }, z.core.$strip>>; + total: z.ZodNumber; + page: z.ZodNumber; + pageSize: z.ZodNumber; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── MetadataRegisterRequest (type) ── +type MetadataRegisterRequest = z.input; + +// ── MetadataRegisterRequestSchema (const) ── +declare const MetadataRegisterRequestSchema: z.ZodObject<{ + type: z.ZodEnum<{ + object: "object"; + field: "field"; + position: "position"; + flow: "flow"; + view: "view"; + app: "app"; + agent: "agent"; + tool: "tool"; + action: "action"; + dashboard: "dashboard"; + report: "report"; + permission: "permission"; + api: "api"; + dataset: "dataset"; + page: "page"; + capability: "capability"; + datasource: "datasource"; + hook: "hook"; + seed: "seed"; + mapping: "mapping"; + job: "job"; + external_catalog: "external_catalog"; + translation: "translation"; + email_template: "email_template"; + doc: "doc"; + book: "book"; + skill: "skill"; + }>; + name: z.ZodString; + data: z.ZodRecord; + namespace: z.ZodOptional; +}, z.core.$strip>; + +// ── MetadataTypeInfoResponse (type) ── +type MetadataTypeInfoResponse = z.input; + +// ── MetadataTypeInfoResponseParsed (type) ── +type MetadataTypeInfoResponseParsed = z.infer; + +// ── MetadataTypeInfoResponseSchema (const) ── +declare const MetadataTypeInfoResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodOptional; + filePatterns: z.ZodArray; + supportsOverlay: z.ZodBoolean; + domain: z.ZodString; + actions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + objectName: z.ZodOptional; + icon: z.ZodOptional; + locations: z.ZodOptional>>; + component: z.ZodOptional>; + type: z.ZodDefault>; + target: z.ZodOptional; + openIn: z.ZodOptional>; + body: z.ZodOptional; + source: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + language: z.ZodLiteral<"js">; + source: z.ZodString; + capabilities: z.ZodDefault>>; + timeoutMs: z.ZodOptional; + memoryMb: z.ZodOptional; + }, z.core.$strict>], "language">>; + operation: z.ZodOptional>; + patch: z.ZodOptional>; + execution: z.ZodOptional>; + execute: z.ZodOptional; + params: z.ZodOptional; + field: z.ZodOptional; + objectOverride: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + required: z.ZodDefault>; + options: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + value: z.ZodString; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + placeholder: z.ZodOptional; + helpText: z.ZodOptional; + defaultValue: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + reference: z.ZodOptional; + defaultFromRow: z.ZodOptional; + carryOver: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiresFeature: z.ZodOptional>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "email" | "url" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">, { + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "email" | "url" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }>>>>; + variant: z.ZodOptional>; + order: z.ZodOptional; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + successMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + errorMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + refreshAfter: z.ZodDefault; + undoable: z.ZodOptional; + resultDialog: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + acknowledge: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiresFeature: z.ZodOptional>; + disabled: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiredPermissions: z.ZodOptional>; + shortcut: z.ZodOptional; + bulkEnabled: z.ZodOptional; + ai: z.ZodOptional; + description: z.ZodOptional; + category: z.ZodOptional>; + paramHints: z.ZodOptional; + enum: z.ZodOptional>>; + examples: z.ZodOptional>; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional>; + requiresConfirmation: z.ZodOptional; + }, z.core.$strict>>; + recordIdParam: z.ZodOptional; + recordIdField: z.ZodOptional; + bodyShape: z.ZodOptional, z.ZodObject<{ + wrap: z.ZodString; + }, z.core.$strict>]>>; + method: z.ZodOptional>; + bodyExtra: z.ZodOptional>; + mode: z.ZodOptional>; + opensInNewTab: z.ZodOptional; + newTabUrl: z.ZodOptional; + onSuccess: z.ZodOptional>; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("log" | "api.read" | "api.write" | "api.transaction" | "crypto.uuid")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "email" | "url" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "flow" | "analytics" | "action" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">, { + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("log" | "api.read" | "api.write" | "api.transaction" | "crypto.uuid")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "email" | "url" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "flow" | "analytics" | "action" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── MetadataTypesResponse (type) ── +type MetadataTypesResponse = z.input; + +// ── MetadataTypesResponseParsed (type) ── +type MetadataTypesResponseParsed = z.infer; + +// ── MetadataTypesResponseSchema (const) ── +declare const MetadataTypesResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodArray; +}, z.core.$strip>; + +// ── MetadataValidateRequest (type) ── +type MetadataValidateRequest = z.input; + +// ── MetadataValidateRequestSchema (const) ── +declare const MetadataValidateRequestSchema: z.ZodObject<{ + type: z.ZodString; + data: z.ZodUnknown; +}, z.core.$strip>; + +// ── MetadataValidateResponse (type) ── +type MetadataValidateResponse = z.input; + +// ── MetadataValidateResponseParsed (type) ── +type MetadataValidateResponseParsed = z.infer; + +// ── MetadataValidateResponseSchema (const) ── +declare const MetadataValidateResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + valid: z.ZodBoolean; + errors: z.ZodOptional; + }, z.core.$strip>>>; + warnings: z.ZodOptional>>; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── ModificationResult (type) ── +type ModificationResult = z.input; + +// ── ModificationResultParsed (type) ── +type ModificationResultParsed = z.infer; + +// ── ModificationResultSchema (const) ── +declare const ModificationResultSchema: z.ZodObject<{ + id: z.ZodOptional; + success: z.ZodBoolean; + errors: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>>; + index: z.ZodOptional; + data: z.ZodOptional; +}, z.core.$strip>; + +// ── Notification (type) ── +type Notification = z.input; + +// ── NotificationParsed (type) ── +type NotificationParsed = z.infer; + +// ── NotificationPreferences (type) ── +type NotificationPreferences = z.input; + +// ── NotificationPreferencesParsed (type) ── +type NotificationPreferencesParsed = z.infer; + +// ── NotificationPreferencesSchema (const) ── +declare const NotificationPreferencesSchema: z.ZodObject<{ + email: z.ZodDefault; + push: z.ZodDefault; + inApp: z.ZodDefault; + digest: z.ZodDefault>; + channels: z.ZodOptional; + email: z.ZodOptional; + push: z.ZodOptional; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── NotificationProtocol (interface) ── +interface NotificationProtocol { + registerDevice?(request: RegisterDeviceRequest): Promise; + unregisterDevice?(request: UnregisterDeviceRequest): Promise; + getNotificationPreferences?(request: GetNotificationPreferencesRequest): Promise; + updateNotificationPreferences?(request: UpdateNotificationPreferencesRequest): Promise; + listNotifications?(request: ListNotificationsRequest): Promise; + markNotificationsRead?(request: MarkNotificationsReadRequest): Promise; + markAllNotificationsRead?(request: MarkAllNotificationsReadRequest): Promise; +} + +// ── NotificationSchema (const) ── +declare const NotificationSchema: z.ZodObject<{ + id: z.ZodString; + type: z.ZodString; + title: z.ZodString; + body: z.ZodString; + read: z.ZodDefault; + data: z.ZodOptional>; + actionUrl: z.ZodOptional; + createdAt: z.ZodString; +}, z.core.$strip>; + +// ── OData (const) ── +declare const OData: { + /** + * Build OData query URL + */ + readonly buildUrl: (baseUrl: string, query: ODataQuery) => string; + /** + * Create a simple filter expression + */ + readonly filter: { + readonly eq: (field: string, value: string | number | boolean) => string; + readonly ne: (field: string, value: string | number | boolean) => string; + readonly gt: (field: string, value: number) => string; + readonly lt: (field: string, value: number) => string; + readonly contains: (field: string, value: string) => string; + readonly and: (...expressions: string[]) => string; + readonly or: (...expressions: string[]) => string; + }; +}; + +// ── ODataConfig (type) ── +type ODataConfig = z.input; + +// ── ODataConfigParsed (type) ── +type ODataConfigParsed = z.infer; + +// ── ODataConfigSchema (const) ── +declare const ODataConfigSchema: z.ZodObject<{ + enabled: z.ZodDefault; + path: z.ZodDefault; + metadata: z.ZodOptional; + properties: z.ZodArray; + }, z.core.$strip>>; + navigationProperties: z.ZodOptional; + }, z.core.$strip>>>; + }, z.core.$strip>>; + entitySets: z.ZodArray>; + }, z.core.$strip>>; +}, z.core.$loose>; + +// ── ODataError (type) ── +type ODataError = z.input; + +// ── ODataErrorSchema (const) ── +declare const ODataErrorSchema: z.ZodObject<{ + error: z.ZodObject<{ + code: z.ZodString; + message: z.ZodString; + target: z.ZodOptional; + details: z.ZodOptional; + }, z.core.$strip>>>; + innererror: z.ZodOptional>; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── ODataFilterFunction (type) ── +type ODataFilterFunction = z.input; + +// ── ODataFilterFunctionSchema (const) ── +declare const ODataFilterFunctionSchema: z.ZodEnum<{ + length: "length"; + concat: "concat"; + any: "any"; + date: "date"; + substring: "substring"; + trim: "trim"; + time: "time"; + contains: "contains"; + startswith: "startswith"; + endswith: "endswith"; + year: "year"; + month: "month"; + day: "day"; + hour: "hour"; + minute: "minute"; + second: "second"; + now: "now"; + indexof: "indexof"; + tolower: "tolower"; + toupper: "toupper"; + maxdatetime: "maxdatetime"; + mindatetime: "mindatetime"; + round: "round"; + floor: "floor"; + ceiling: "ceiling"; + cast: "cast"; + isof: "isof"; + all: "all"; +}>; + +// ── ODataMetadata (type) ── +type ODataMetadata = z.input; + +// ── ODataMetadataParsed (type) ── +type ODataMetadataParsed = z.infer; + +// ── ODataMetadataSchema (const) ── +declare const ODataMetadataSchema: z.ZodObject<{ + namespace: z.ZodString; + entityTypes: z.ZodArray; + properties: z.ZodArray; + }, z.core.$strip>>; + navigationProperties: z.ZodOptional; + }, z.core.$strip>>>; + }, z.core.$strip>>; + entitySets: z.ZodArray>; +}, z.core.$strip>; + +// ── ODataQuery (type) ── +type ODataQuery = z.input; + +// ── ODataQueryAdapter (type) ── +type ODataQueryAdapter = z.input; + +// ── ODataQueryAdapterParsed (type) ── +type ODataQueryAdapterParsed = z.infer; + +// ── ODataQueryAdapterSchema (const) ── +declare const ODataQueryAdapterSchema: z.ZodObject<{ + version: z.ZodDefault>; + usePrefix: z.ZodDefault; + stringFunctions: z.ZodOptional>>; + expand: z.ZodOptional; + maxDepth: z.ZodDefault; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── ODataQuerySchema (const) ── +declare const ODataQuerySchema: z.ZodObject<{ + $select: z.ZodOptional]>>; + $filter: z.ZodOptional; + $orderby: z.ZodOptional]>>; + $top: z.ZodOptional; + $skip: z.ZodOptional; + $expand: z.ZodOptional]>>; + $count: z.ZodOptional; + $search: z.ZodOptional; + $format: z.ZodOptional>; + $apply: z.ZodOptional; +}, z.core.$strip>; + +// ── ODataResponse (type) ── +type ODataResponse = z.input; + +// ── ODataResponseSchema (const) ── +declare const ODataResponseSchema: z.ZodObject<{ + '@odata.context': z.ZodOptional; + '@odata.count': z.ZodOptional; + '@odata.nextLink': z.ZodOptional; + value: z.ZodArray>; +}, z.core.$strip>; + +// ── ObjectDefinitionResponse (type) ── +type ObjectDefinitionResponse = z.input; + +// ── ObjectDefinitionResponseParsed (type) ── +type ObjectDefinitionResponseParsed = z.infer; + +// ── ObjectDefinitionResponseSchema (const) ── +declare const ObjectDefinitionResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + pluralLabel: z.ZodOptional; + description: z.ZodOptional; + icon: z.ZodOptional; + isSystem: z.ZodDefault>; + managedBy: z.ZodOptional>; + ownership: z.ZodOptional>; + userActions: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + import: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + edit: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + delete: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + exportCsv: z.ZodOptional; + }, z.core.$strict>>; + systemFields: z.ZodOptional, z.ZodObject<{ + tenant: z.ZodOptional; + audit: z.ZodOptional; + }, z.core.$strict>]>>; + datasource: z.ZodDefault>; + external: z.ZodOptional; + remoteSchema: z.ZodOptional; + writable: z.ZodDefault; + columnMap: z.ZodOptional>; + introspectedAt: z.ZodOptional; + ignoreColumns: z.ZodOptional>; + }, z.core.$strict>>; + fields: z.ZodRecord>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + email: "email"; + url: "url"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + description: z.ZodOptional; + format: z.ZodOptional; + required: z.ZodDefault; + storage: z.ZodOptional; + }, z.core.$strict>>; + searchable: z.ZodDefault; + multiple: z.ZodDefault; + unique: z.ZodOptional, z.ZodLiteral<"organization">]>>; + defaultValue: z.ZodOptional; + maxLength: z.ZodOptional; + minLength: z.ZodOptional; + valueDomain: z.ZodOptional>; + rows: z.ZodOptional; + precision: z.ZodOptional; + scale: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + useGrouping: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + options: z.ZodOptional; + color: z.ZodOptional; + default: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + reference: z.ZodOptional; + referenceVia: z.ZodOptional; + deleteBehavior: z.ZodOptional>; + inlineEdit: z.ZodOptional]>>; + inlineTitle: z.ZodOptional; + inlineColumns: z.ZodOptional; + type: z.ZodOptional>; + width: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + prefix: z.ZodOptional; + step: z.ZodOptional; + reference: z.ZodOptional; + displayField: z.ZodOptional; + idField: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + defaultHidden: z.ZodOptional; + computed: z.ZodOptional; + expr: z.ZodOptional; + scale: z.ZodOptional; + autofill: z.ZodOptional; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + inlineAmountField: z.ZodOptional; + relatedList: z.ZodOptional]>>; + relatedListTitle: z.ZodOptional; + relatedListColumns: z.ZodOptional>; + relatedListFilter: z.ZodOptional>>; + displayField: z.ZodOptional; + descriptionField: z.ZodOptional; + lookupColumns: z.ZodOptional; + width: z.ZodOptional; + type: z.ZodOptional; + }, z.core.$strict>]>>>; + lookupPageSize: z.ZodOptional; + lookupFilters: z.ZodOptional; + value: z.ZodAny; + }, z.core.$strict>>>; + dependsOn: z.ZodOptional; + }, z.core.$strict>]>>>; + allowCreate: z.ZodOptional; + expression: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + returnType: z.ZodOptional>; + summaryOperations: z.ZodOptional; + relationshipField: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strict>>; + language: z.ZodOptional; + step: z.ZodOptional; + currencyConfig: z.ZodOptional; + currencyMode: z.ZodDefault>; + defaultCurrency: z.ZodDefault; + }, z.core.$strict>>; + dimensions: z.ZodOptional; + trackHistory: z.ZodOptional; + group: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + conditionalRequired: z.ZodOptional; + widget: z.ZodOptional; + hidden: z.ZodDefault; + internal: z.ZodOptional; + readonly: z.ZodDefault; + requiredPermissions: z.ZodOptional>; + maskingRule: z.ZodOptional, z.ZodObject<{ + keepHead: z.ZodNumber; + keepTail: z.ZodNumber; + }, z.core.$strict>]>>; + ackPlaintextMasking: z.ZodOptional; + system: z.ZodOptional; + sortable: z.ZodDefault>; + inlineHelpText: z.ZodOptional; + placeholder: z.ZodOptional; + autonumberFormat: z.ZodOptional; + externalId: z.ZodDefault; + }, z.core.$strict>>; + indexes: z.ZodOptional; + fields: z.ZodArray; + unique: z.ZodDefault, z.ZodLiteral<"organization">]>>>; + type: z.ZodOptional; + partial: z.ZodOptional; + }, z.core.$strict>>>; + fieldGroups: z.ZodOptional; + description: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + collapse: z.ZodDefault>>; + defaultExpanded: z.ZodOptional; + collapsible: z.ZodOptional; + collapsed: z.ZodOptional; + }, z.core.$strict>>>; + tenancy: z.ZodOptional; + organizationField: z.ZodOptional; + }, z.core.$strict>>; + access: z.ZodOptional>; + }, z.core.$strict>>; + requiredPermissions: z.ZodOptional, z.ZodObject<{ + read: z.ZodOptional>; + create: z.ZodOptional>; + update: z.ZodOptional>; + delete: z.ZodOptional>; + }, z.core.$strict>]>>; + lifecycle: z.ZodOptional; + retention: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + ttl: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + storage: z.ZodOptional; + shards: z.ZodNumber; + unit: z.ZodEnum<{ + month: "month"; + day: "day"; + week: "week"; + }>; + }, z.core.$strict>>; + archive: z.ZodOptional; + }, z.core.$strict>>; + reclaim: z.ZodOptional; + }, z.core.$strict>>; + fileAccessDelegate: z.ZodOptional; + validations: z.ZodOptional>>>; + activityMilestones: z.ZodOptional; + }, z.core.$strict>>>; + nameField: z.ZodOptional; + displayNameField: z.ZodOptional; + titleFormat: z.ZodOptional>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"template">; + }, z.core.$strip>]>>; + highlightFields: z.ZodOptional>; + stageField: z.ZodOptional]>>; + editMode: z.ZodOptional>; + listViews: z.ZodOptional; + }, z.core.$strict>>>; + map: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + name: z.ZodOptional; + type: z.ZodDefault>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + inlineEdit: z.ZodOptional; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + selection: z.ZodOptional>; + }, z.core.$strict>>; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + none: "none"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + resizable: z.ZodOptional; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + compactToolbar: z.ZodOptional; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + pageName: z.ZodOptional; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + rowActions: z.ZodOptional>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + update: "update"; + delete: "delete"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + email: "email"; + url: "url"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "csv" | "xlsx")[]; + }, ("json" | "csv" | "xlsx")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + performance: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + enable: z.ZodOptional; + searchable: z.ZodDefault; + apiEnabled: z.ZodDefault; + apiMethods: z.ZodOptional>>; + files: z.ZodDefault; + feeds: z.ZodDefault; + activities: z.ZodDefault; + clone: z.ZodDefault; + }, z.core.$strict>>; + sharingModel: z.ZodOptional>; + externalSharingModel: z.ZodOptional>; + publicSharing: z.ZodOptional; + allowedAudiences: z.ZodOptional>>; + allowedPermissions: z.ZodOptional>>; + maxExpiryDays: z.ZodOptional; + redactFields: z.ZodOptional>; + eligibility: z.ZodOptional; + }, z.core.$strict>>; + actions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + objectName: z.ZodOptional; + icon: z.ZodOptional; + locations: z.ZodOptional>>; + component: z.ZodOptional>; + type: z.ZodDefault>; + target: z.ZodOptional; + openIn: z.ZodOptional>; + body: z.ZodOptional; + source: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + language: z.ZodLiteral<"js">; + source: z.ZodString; + capabilities: z.ZodDefault>>; + timeoutMs: z.ZodOptional; + memoryMb: z.ZodOptional; + }, z.core.$strict>], "language">>; + operation: z.ZodOptional>; + patch: z.ZodOptional>; + execution: z.ZodOptional>; + execute: z.ZodOptional; + params: z.ZodOptional; + field: z.ZodOptional; + objectOverride: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + required: z.ZodDefault>; + options: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + value: z.ZodString; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + placeholder: z.ZodOptional; + helpText: z.ZodOptional; + defaultValue: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + reference: z.ZodOptional; + defaultFromRow: z.ZodOptional; + carryOver: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiresFeature: z.ZodOptional>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "email" | "url" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">, { + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "email" | "url" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }>>>>; + variant: z.ZodOptional>; + order: z.ZodOptional; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + successMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + errorMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + refreshAfter: z.ZodDefault; + undoable: z.ZodOptional; + resultDialog: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + acknowledge: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiresFeature: z.ZodOptional>; + disabled: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiredPermissions: z.ZodOptional>; + shortcut: z.ZodOptional; + bulkEnabled: z.ZodOptional; + ai: z.ZodOptional; + description: z.ZodOptional; + category: z.ZodOptional>; + paramHints: z.ZodOptional; + enum: z.ZodOptional>>; + examples: z.ZodOptional>; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional>; + requiresConfirmation: z.ZodOptional; + }, z.core.$strict>>; + recordIdParam: z.ZodOptional; + recordIdField: z.ZodOptional; + bodyShape: z.ZodOptional, z.ZodObject<{ + wrap: z.ZodString; + }, z.core.$strict>]>>; + method: z.ZodOptional>; + bodyExtra: z.ZodOptional>; + mode: z.ZodOptional>; + opensInNewTab: z.ZodOptional; + newTabUrl: z.ZodOptional; + onSuccess: z.ZodOptional>; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("log" | "api.read" | "api.write" | "api.transaction" | "crypto.uuid")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "email" | "url" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "flow" | "analytics" | "action" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">, { + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("log" | "api.read" | "api.write" | "api.transaction" | "crypto.uuid")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "email" | "url" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "flow" | "analytics" | "action" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict> & { + parse(data: unknown, params?: Parameters<(data: unknown, params?: z.core.ParseContext) => { + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _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; + managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "none" | "org" | "user" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "event" | "telemetry" | "transient"; + retention?: { + maxAge: string; + onlyWhen?: Record | undefined; + } | undefined; + ttl?: { + field: string; + expireAfter: string; + onlyWhen?: Record | undefined; + } | undefined; + storage?: { + strategy: "rotation"; + shards: number; + unit: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "modal" | "page" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | 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; + link?: boolean | undefined; + action?: string | undefined; + }[]; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | 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; + filter?: { + field: string; + operator: "in" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "starts_with" | "ends_with" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + name?: string | undefined; + description?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + inlineEdit?: boolean | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | undefined; + borderColorField?: string | undefined; + lockField?: string | undefined; + objectField?: string | undefined; + summaryExtent?: "children" | "self" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + rowHeight?: "short" | "compact" | "medium" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "starts_with" | "ends_with" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + navigation?: { + mode: "split" | "none" | "drawer" | "modal" | "page" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + pageName?: undefined; + grouping?: { + fields: { + field: string; + order: "asc" | "desc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + rowActions?: string[] | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "update" | "delete"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "date" | "record" | "file" | "code" | "email" | "url" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + maxRecords?: number | undefined; + batchSize?: number | undefined; + }[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + exportOptions?: { + formats: ("json" | "csv" | "xlsx")[]; + } | { + formats?: ("json" | "csv" | "xlsx")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "kanban" | "gantt" | "timeline" | "gallery" | "calendar" | "chart")[] | undefined; + } | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "inline" | "modal"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + responsive?: undefined; + performance?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "create" | "update" | "delete" | "list" | "bulk")[] | undefined; + } | undefined; + sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("view" | "edit" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("log" | "api.read" | "api.write" | "api.transaction" | "crypto.uuid")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "email" | "url" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "flow" | "analytics" | "action" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "none" | "no-overlay" | "no-delete" | "full"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }>[1]): { + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _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; + managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "none" | "org" | "user" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "event" | "telemetry" | "transient"; + retention?: { + maxAge: string; + onlyWhen?: Record | undefined; + } | undefined; + ttl?: { + field: string; + expireAfter: string; + onlyWhen?: Record | undefined; + } | undefined; + storage?: { + strategy: "rotation"; + shards: number; + unit: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "modal" | "page" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | 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; + link?: boolean | undefined; + action?: string | undefined; + }[]; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | 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; + filter?: { + field: string; + operator: "in" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "starts_with" | "ends_with" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + name?: string | undefined; + description?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + inlineEdit?: boolean | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | undefined; + borderColorField?: string | undefined; + lockField?: string | undefined; + objectField?: string | undefined; + summaryExtent?: "children" | "self" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + rowHeight?: "short" | "compact" | "medium" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "starts_with" | "ends_with" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + navigation?: { + mode: "split" | "none" | "drawer" | "modal" | "page" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + pageName?: undefined; + grouping?: { + fields: { + field: string; + order: "asc" | "desc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + rowActions?: string[] | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "update" | "delete"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "date" | "record" | "file" | "code" | "email" | "url" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + maxRecords?: number | undefined; + batchSize?: number | undefined; + }[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + exportOptions?: { + formats: ("json" | "csv" | "xlsx")[]; + } | { + formats?: ("json" | "csv" | "xlsx")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "kanban" | "gantt" | "timeline" | "gallery" | "calendar" | "chart")[] | undefined; + } | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "inline" | "modal"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + responsive?: undefined; + performance?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "create" | "update" | "delete" | "list" | "bulk")[] | undefined; + } | undefined; + sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("view" | "edit" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("log" | "api.read" | "api.write" | "api.transaction" | "crypto.uuid")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "email" | "url" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "flow" | "analytics" | "action" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "none" | "no-overlay" | "no-delete" | "full"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }; + safeParse(data: unknown, params?: Parameters<(data: unknown, params?: z.core.ParseContext) => z.ZodSafeParseResult<{ + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _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; + managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "none" | "org" | "user" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "event" | "telemetry" | "transient"; + retention?: { + maxAge: string; + onlyWhen?: Record | undefined; + } | undefined; + ttl?: { + field: string; + expireAfter: string; + onlyWhen?: Record | undefined; + } | undefined; + storage?: { + strategy: "rotation"; + shards: number; + unit: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "modal" | "page" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | 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; + link?: boolean | undefined; + action?: string | undefined; + }[]; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | 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; + filter?: { + field: string; + operator: "in" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "starts_with" | "ends_with" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + name?: string | undefined; + description?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + inlineEdit?: boolean | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | undefined; + borderColorField?: string | undefined; + lockField?: string | undefined; + objectField?: string | undefined; + summaryExtent?: "children" | "self" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + rowHeight?: "short" | "compact" | "medium" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "starts_with" | "ends_with" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + navigation?: { + mode: "split" | "none" | "drawer" | "modal" | "page" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + pageName?: undefined; + grouping?: { + fields: { + field: string; + order: "asc" | "desc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + rowActions?: string[] | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "update" | "delete"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "date" | "record" | "file" | "code" | "email" | "url" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + maxRecords?: number | undefined; + batchSize?: number | undefined; + }[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + exportOptions?: { + formats: ("json" | "csv" | "xlsx")[]; + } | { + formats?: ("json" | "csv" | "xlsx")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "kanban" | "gantt" | "timeline" | "gallery" | "calendar" | "chart")[] | undefined; + } | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "inline" | "modal"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + responsive?: undefined; + performance?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "create" | "update" | "delete" | "list" | "bulk")[] | undefined; + } | undefined; + sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("view" | "edit" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("log" | "api.read" | "api.write" | "api.transaction" | "crypto.uuid")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "email" | "url" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "flow" | "analytics" | "action" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "none" | "no-overlay" | "no-delete" | "full"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }>>[1]): z.ZodSafeParseResult<{ + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _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; + managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "none" | "org" | "user" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "event" | "telemetry" | "transient"; + retention?: { + maxAge: string; + onlyWhen?: Record | undefined; + } | undefined; + ttl?: { + field: string; + expireAfter: string; + onlyWhen?: Record | undefined; + } | undefined; + storage?: { + strategy: "rotation"; + shards: number; + unit: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "modal" | "page" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | 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; + link?: boolean | undefined; + action?: string | undefined; + }[]; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | 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; + filter?: { + field: string; + operator: "in" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "starts_with" | "ends_with" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + name?: string | undefined; + description?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + inlineEdit?: boolean | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | undefined; + borderColorField?: string | undefined; + lockField?: string | undefined; + objectField?: string | undefined; + summaryExtent?: "children" | "self" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + rowHeight?: "short" | "compact" | "medium" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "starts_with" | "ends_with" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + navigation?: { + mode: "split" | "none" | "drawer" | "modal" | "page" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + pageName?: undefined; + grouping?: { + fields: { + field: string; + order: "asc" | "desc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + rowActions?: string[] | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "update" | "delete"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "date" | "record" | "file" | "code" | "email" | "url" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + maxRecords?: number | undefined; + batchSize?: number | undefined; + }[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + exportOptions?: { + formats: ("json" | "csv" | "xlsx")[]; + } | { + formats?: ("json" | "csv" | "xlsx")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "kanban" | "gantt" | "timeline" | "gallery" | "calendar" | "chart")[] | undefined; + } | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "inline" | "modal"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + responsive?: undefined; + performance?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "create" | "update" | "delete" | "list" | "bulk")[] | undefined; + } | undefined; + sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("view" | "edit" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("log" | "api.read" | "api.write" | "api.transaction" | "crypto.uuid")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "email" | "url" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "flow" | "analytics" | "action" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "none" | "no-overlay" | "no-delete" | "full"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }>; + create: >; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + pluralLabel: z.ZodOptional; + description: z.ZodOptional; + icon: z.ZodOptional; + isSystem: z.ZodDefault>; + managedBy: z.ZodOptional>; + ownership: z.ZodOptional>; + userActions: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + import: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + edit: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + delete: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + exportCsv: z.ZodOptional; + }, z.core.$strict>>; + systemFields: z.ZodOptional, z.ZodObject<{ + tenant: z.ZodOptional; + audit: z.ZodOptional; + }, z.core.$strict>]>>; + datasource: z.ZodDefault>; + external: z.ZodOptional; + remoteSchema: z.ZodOptional; + writable: z.ZodDefault; + columnMap: z.ZodOptional>; + introspectedAt: z.ZodOptional; + ignoreColumns: z.ZodOptional>; + }, z.core.$strict>>; + fields: z.ZodRecord>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + email: "email"; + url: "url"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + description: z.ZodOptional; + format: z.ZodOptional; + required: z.ZodDefault; + storage: z.ZodOptional; + }, z.core.$strict>>; + searchable: z.ZodDefault; + multiple: z.ZodDefault; + unique: z.ZodOptional, z.ZodLiteral<"organization">]>>; + defaultValue: z.ZodOptional; + maxLength: z.ZodOptional; + minLength: z.ZodOptional; + valueDomain: z.ZodOptional>; + rows: z.ZodOptional; + precision: z.ZodOptional; + scale: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + useGrouping: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + options: z.ZodOptional; + color: z.ZodOptional; + default: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + reference: z.ZodOptional; + referenceVia: z.ZodOptional; + deleteBehavior: z.ZodOptional>; + inlineEdit: z.ZodOptional]>>; + inlineTitle: z.ZodOptional; + inlineColumns: z.ZodOptional; + type: z.ZodOptional>; + width: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + prefix: z.ZodOptional; + step: z.ZodOptional; + reference: z.ZodOptional; + displayField: z.ZodOptional; + idField: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + defaultHidden: z.ZodOptional; + computed: z.ZodOptional; + expr: z.ZodOptional; + scale: z.ZodOptional; + autofill: z.ZodOptional; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + inlineAmountField: z.ZodOptional; + relatedList: z.ZodOptional]>>; + relatedListTitle: z.ZodOptional; + relatedListColumns: z.ZodOptional>; + relatedListFilter: z.ZodOptional>>; + displayField: z.ZodOptional; + descriptionField: z.ZodOptional; + lookupColumns: z.ZodOptional; + width: z.ZodOptional; + type: z.ZodOptional; + }, z.core.$strict>]>>>; + lookupPageSize: z.ZodOptional; + lookupFilters: z.ZodOptional; + value: z.ZodAny; + }, z.core.$strict>>>; + dependsOn: z.ZodOptional; + }, z.core.$strict>]>>>; + allowCreate: z.ZodOptional; + expression: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + returnType: z.ZodOptional>; + summaryOperations: z.ZodOptional; + relationshipField: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strict>>; + language: z.ZodOptional; + step: z.ZodOptional; + currencyConfig: z.ZodOptional; + currencyMode: z.ZodDefault>; + defaultCurrency: z.ZodDefault; + }, z.core.$strict>>; + dimensions: z.ZodOptional; + trackHistory: z.ZodOptional; + group: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + conditionalRequired: z.ZodOptional; + widget: z.ZodOptional; + hidden: z.ZodDefault; + internal: z.ZodOptional; + readonly: z.ZodDefault; + requiredPermissions: z.ZodOptional>; + maskingRule: z.ZodOptional, z.ZodObject<{ + keepHead: z.ZodNumber; + keepTail: z.ZodNumber; + }, z.core.$strict>]>>; + ackPlaintextMasking: z.ZodOptional; + system: z.ZodOptional; + sortable: z.ZodDefault>; + inlineHelpText: z.ZodOptional; + placeholder: z.ZodOptional; + autonumberFormat: z.ZodOptional; + externalId: z.ZodDefault; + }, z.core.$strict>>; + indexes: z.ZodOptional; + fields: z.ZodArray; + unique: z.ZodDefault, z.ZodLiteral<"organization">]>>>; + type: z.ZodOptional; + partial: z.ZodOptional; + }, z.core.$strict>>>; + fieldGroups: z.ZodOptional; + description: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + collapse: z.ZodDefault>>; + defaultExpanded: z.ZodOptional; + collapsible: z.ZodOptional; + collapsed: z.ZodOptional; + }, z.core.$strict>>>; + tenancy: z.ZodOptional; + organizationField: z.ZodOptional; + }, z.core.$strict>>; + access: z.ZodOptional>; + }, z.core.$strict>>; + requiredPermissions: z.ZodOptional, z.ZodObject<{ + read: z.ZodOptional>; + create: z.ZodOptional>; + update: z.ZodOptional>; + delete: z.ZodOptional>; + }, z.core.$strict>]>>; + lifecycle: z.ZodOptional; + retention: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + ttl: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + storage: z.ZodOptional; + shards: z.ZodNumber; + unit: z.ZodEnum<{ + month: "month"; + day: "day"; + week: "week"; + }>; + }, z.core.$strict>>; + archive: z.ZodOptional; + }, z.core.$strict>>; + reclaim: z.ZodOptional; + }, z.core.$strict>>; + fileAccessDelegate: z.ZodOptional; + validations: z.ZodOptional>>>; + activityMilestones: z.ZodOptional; + }, z.core.$strict>>>; + nameField: z.ZodOptional; + displayNameField: z.ZodOptional; + titleFormat: z.ZodOptional>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"template">; + }, z.core.$strip>]>>; + highlightFields: z.ZodOptional>; + stageField: z.ZodOptional]>>; + editMode: z.ZodOptional>; + listViews: z.ZodOptional; + }, z.core.$strict>>>; + map: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + name: z.ZodOptional; + type: z.ZodDefault>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + inlineEdit: z.ZodOptional; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + selection: z.ZodOptional>; + }, z.core.$strict>>; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + none: "none"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + resizable: z.ZodOptional; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + compactToolbar: z.ZodOptional; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + pageName: z.ZodOptional; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + rowActions: z.ZodOptional>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + update: "update"; + delete: "delete"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + email: "email"; + url: "url"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "csv" | "xlsx")[]; + }, ("json" | "csv" | "xlsx")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + performance: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + enable: z.ZodOptional; + searchable: z.ZodDefault; + apiEnabled: z.ZodDefault; + apiMethods: z.ZodOptional>>; + files: z.ZodDefault; + feeds: z.ZodDefault; + activities: z.ZodDefault; + clone: z.ZodDefault; + }, z.core.$strict>>; + sharingModel: z.ZodOptional>; + externalSharingModel: z.ZodOptional>; + publicSharing: z.ZodOptional; + allowedAudiences: z.ZodOptional>>; + allowedPermissions: z.ZodOptional>>; + maxExpiryDays: z.ZodOptional; + redactFields: z.ZodOptional>; + eligibility: z.ZodOptional; + }, z.core.$strict>>; + actions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + objectName: z.ZodOptional; + icon: z.ZodOptional; + locations: z.ZodOptional>>; + component: z.ZodOptional>; + type: z.ZodDefault>; + target: z.ZodOptional; + openIn: z.ZodOptional>; + body: z.ZodOptional; + source: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + language: z.ZodLiteral<"js">; + source: z.ZodString; + capabilities: z.ZodDefault>>; + timeoutMs: z.ZodOptional; + memoryMb: z.ZodOptional; + }, z.core.$strict>], "language">>; + operation: z.ZodOptional>; + patch: z.ZodOptional>; + execution: z.ZodOptional>; + execute: z.ZodOptional; + params: z.ZodOptional; + field: z.ZodOptional; + objectOverride: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + required: z.ZodDefault>; + options: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + value: z.ZodString; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + placeholder: z.ZodOptional; + helpText: z.ZodOptional; + defaultValue: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + reference: z.ZodOptional; + defaultFromRow: z.ZodOptional; + carryOver: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiresFeature: z.ZodOptional>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "email" | "url" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">, { + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "email" | "url" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }>>>>; + variant: z.ZodOptional>; + order: z.ZodOptional; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + successMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + errorMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + refreshAfter: z.ZodDefault; + undoable: z.ZodOptional; + resultDialog: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + acknowledge: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiresFeature: z.ZodOptional>; + disabled: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiredPermissions: z.ZodOptional>; + shortcut: z.ZodOptional; + bulkEnabled: z.ZodOptional; + ai: z.ZodOptional; + description: z.ZodOptional; + category: z.ZodOptional>; + paramHints: z.ZodOptional; + enum: z.ZodOptional>>; + examples: z.ZodOptional>; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional>; + requiresConfirmation: z.ZodOptional; + }, z.core.$strict>>; + recordIdParam: z.ZodOptional; + recordIdField: z.ZodOptional; + bodyShape: z.ZodOptional, z.ZodObject<{ + wrap: z.ZodString; + }, z.core.$strict>]>>; + method: z.ZodOptional>; + bodyExtra: z.ZodOptional>; + mode: z.ZodOptional>; + opensInNewTab: z.ZodOptional; + newTabUrl: z.ZodOptional; + onSuccess: z.ZodOptional>; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("log" | "api.read" | "api.write" | "api.transaction" | "crypto.uuid")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "email" | "url" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "flow" | "analytics" | "action" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">, { + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("log" | "api.read" | "api.write" | "api.transaction" | "crypto.uuid")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "email" | "url" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "flow" | "analytics" | "action" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>(config: T & Record, never> & (T extends { + actions: infer As extends readonly unknown[]; + } ? { + actions: { [I in keyof As]: As[I] extends infer T_1 ? T_1 extends As[I] ? T_1 extends { + params: infer Ps extends readonly unknown[]; + } ? T_1 & { + params: { [I_1 in keyof Ps]: Ps[I_1] & Record, never>; }; + } : T_1 : never : never; }; + } : unknown)) => Omit & Pick; + }; +}, z.core.$strip>; + +// ── ObjectSortability (type) ── +type ObjectSortability = z.input; + +// ── ObjectSortabilitySchema (const) ── +declare const ObjectSortabilitySchema: z.ZodObject<{ + fields: z.ZodRecord>; + caveat: z.ZodOptional>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── OpenApiGenerationConfig (type) ── +type OpenApiGenerationConfig = z.input; + +// ── OpenApiGenerationConfigParsed (type) ── +type OpenApiGenerationConfigParsed = z.infer; + +// ── OpenApiGenerationConfigSchema (const) ── +declare const OpenApiGenerationConfigSchema: z.ZodObject<{ + enabled: z.ZodDefault; + version: z.ZodDefault>; + title: z.ZodDefault; + description: z.ZodOptional; + apiVersion: z.ZodDefault; + outputPath: z.ZodDefault; + uiPath: z.ZodDefault; + uiFramework: z.ZodDefault>; + includeInternal: z.ZodDefault; + generateSchemas: z.ZodDefault; + includeExamples: z.ZodDefault; + servers: z.ZodOptional; + }, z.core.$strip>>>; + contact: z.ZodOptional; + url: z.ZodOptional; + email: z.ZodOptional; + }, z.core.$strip>>; + license: z.ZodOptional; + }, z.core.$strip>>; + securitySchemes: z.ZodOptional; + scheme: z.ZodOptional; + bearerFormat: z.ZodOptional; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── OpenApiSecurityScheme (type) ── +type OpenApiSecurityScheme = z.input; + +// ── OpenApiSecuritySchemeSchema (const) ── +declare const OpenApiSecuritySchemeSchema: z.ZodObject<{ + type: z.ZodEnum<{ + apiKey: "apiKey"; + http: "http"; + oauth2: "oauth2"; + openIdConnect: "openIdConnect"; + }>; + scheme: z.ZodOptional; + bearerFormat: z.ZodOptional; + name: z.ZodOptional; + in: z.ZodOptional>; + flows: z.ZodOptional; + password: z.ZodOptional; + clientCredentials: z.ZodOptional; + authorizationCode: z.ZodOptional; + }, z.core.$strip>>; + openIdConnectUrl: z.ZodOptional; + description: z.ZodOptional; +}, z.core.$strip>; + +// ── OpenApiServer (type) ── +type OpenApiServer = z.input; + +// ── OpenApiServerSchema (const) ── +declare const OpenApiServerSchema: z.ZodObject<{ + url: z.ZodString; + description: z.ZodOptional; + variables: z.ZodOptional; + enum: z.ZodOptional>; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── OpenApiSpec (const) ── +declare const OpenApiSpec: z.ZodObject<{ + openapi: z.ZodDefault; + info: z.ZodObject<{ + title: z.ZodString; + version: z.ZodString; + description: z.ZodOptional; + termsOfService: z.ZodOptional; + contact: z.ZodOptional; + url: z.ZodOptional; + email: z.ZodOptional; + }, z.core.$strip>>; + license: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + servers: z.ZodDefault; + variables: z.ZodOptional; + enum: z.ZodOptional>; + }, z.core.$strip>>>; + }, z.core.$strip>>>>; + paths: z.ZodRecord; + components: z.ZodOptional>; + responses: z.ZodOptional>; + parameters: z.ZodOptional>; + examples: z.ZodOptional>; + requestBodies: z.ZodOptional>; + headers: z.ZodOptional>; + securitySchemes: z.ZodOptional; + scheme: z.ZodOptional; + bearerFormat: z.ZodOptional; + name: z.ZodOptional; + in: z.ZodOptional>; + flows: z.ZodOptional; + password: z.ZodOptional; + clientCredentials: z.ZodOptional; + authorizationCode: z.ZodOptional; + }, z.core.$strip>>; + openIdConnectUrl: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strip>>>; + links: z.ZodOptional>; + callbacks: z.ZodOptional>; + }, z.core.$strip>>; + security: z.ZodOptional>>>; + tags: z.ZodOptional; + externalDocs: z.ZodOptional; + url: z.ZodString; + }, z.core.$strip>>; + }, z.core.$strip>>>; + externalDocs: z.ZodOptional; + url: z.ZodString; + }, z.core.$strip>>; +}, z.core.$strip> & { + create: >(config: T) => T; +}; + +// ── OpenApiSpec (type) ── +type OpenApiSpec = z.input; + +// ── OpenApiSpecParsed (type) ── +type OpenApiSpecParsed = z.infer; + +// ── OpenApiSpecSchema (const) ── +declare const OpenApiSpecSchema: z.ZodObject<{ + openapi: z.ZodDefault; + info: z.ZodObject<{ + title: z.ZodString; + version: z.ZodString; + description: z.ZodOptional; + termsOfService: z.ZodOptional; + contact: z.ZodOptional; + url: z.ZodOptional; + email: z.ZodOptional; + }, z.core.$strip>>; + license: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + servers: z.ZodDefault; + variables: z.ZodOptional; + enum: z.ZodOptional>; + }, z.core.$strip>>>; + }, z.core.$strip>>>>; + paths: z.ZodRecord; + components: z.ZodOptional>; + responses: z.ZodOptional>; + parameters: z.ZodOptional>; + examples: z.ZodOptional>; + requestBodies: z.ZodOptional>; + headers: z.ZodOptional>; + securitySchemes: z.ZodOptional; + scheme: z.ZodOptional; + bearerFormat: z.ZodOptional; + name: z.ZodOptional; + in: z.ZodOptional>; + flows: z.ZodOptional; + password: z.ZodOptional; + clientCredentials: z.ZodOptional; + authorizationCode: z.ZodOptional; + }, z.core.$strip>>; + openIdConnectUrl: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strip>>>; + links: z.ZodOptional>; + callbacks: z.ZodOptional>; + }, z.core.$strip>>; + security: z.ZodOptional>>>; + tags: z.ZodOptional; + externalDocs: z.ZodOptional; + url: z.ZodString; + }, z.core.$strip>>; + }, z.core.$strip>>>; + externalDocs: z.ZodOptional; + url: z.ZodString; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── OperatorMapping (type) ── +type OperatorMapping = z.input; + +// ── OperatorMappingSchema (const) ── +declare const OperatorMappingSchema: z.ZodObject<{ + operator: z.ZodString; + rest: z.ZodOptional; + odata: z.ZodOptional; +}, z.core.$strip>; + +// ── PROVENANCE_WAIVERS (const) ── +declare const PROVENANCE_WAIVERS: readonly ProvenanceWaiver[]; + +// ── PackageApiContracts (const) ── +declare const PackageApiContracts: { + listPackages: { + method: "GET"; + path: string; + input: z.ZodObject<{ + status: z.ZodOptional>; + enabled: z.ZodOptional; + limit: z.ZodDefault; + cursor: z.ZodOptional; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + packages: z.ZodArray; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>; + status: z.ZodDefault>; + enabled: z.ZodDefault; + installedAt: z.ZodOptional; + updatedAt: z.ZodOptional; + installedVersion: z.ZodOptional; + previousVersion: z.ZodOptional; + statusChangedAt: z.ZodOptional; + errorMessage: z.ZodOptional; + settings: z.ZodOptional>; + upgradeHistory: z.ZodOptional; + migrationLog: z.ZodOptional>; + }, z.core.$strip>>>; + registeredNamespaces: z.ZodOptional>; + }, z.core.$strip>, z.ZodObject<{ + status: z.ZodDefault>; + enabled: z.ZodDefault; + installedAt: z.ZodOptional; + updatedAt: z.ZodOptional; + installedVersion: z.ZodOptional; + previousVersion: z.ZodOptional; + statusChangedAt: z.ZodOptional; + errorMessage: z.ZodOptional; + settings: z.ZodOptional>; + upgradeHistory: z.ZodOptional; + migrationLog: z.ZodOptional>; + }, z.core.$strip>>>; + registeredNamespaces: z.ZodOptional>; + manifest: z.ZodObject<{ + readonly [x: string]: z.core.$ZodType>; + functions: z.ZodOptional; + hooks: z.ZodOptional; + }, z.core.$strip>; + }, z.core.$strip>]>>; + total: z.ZodOptional; + nextCursor: z.ZodOptional; + hasMore: z.ZodBoolean; + }, z.core.$strip>; + }, z.core.$strip>; + }; + getPackage: { + method: "GET"; + path: string; + input: z.ZodObject<{ + packageId: z.ZodString; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodUnion; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>; + status: z.ZodDefault>; + enabled: z.ZodDefault; + installedAt: z.ZodOptional; + updatedAt: z.ZodOptional; + installedVersion: z.ZodOptional; + previousVersion: z.ZodOptional; + statusChangedAt: z.ZodOptional; + errorMessage: z.ZodOptional; + settings: z.ZodOptional>; + upgradeHistory: z.ZodOptional; + migrationLog: z.ZodOptional>; + }, z.core.$strip>>>; + registeredNamespaces: z.ZodOptional>; + }, z.core.$strip>, z.ZodObject<{ + status: z.ZodDefault>; + enabled: z.ZodDefault; + installedAt: z.ZodOptional; + updatedAt: z.ZodOptional; + installedVersion: z.ZodOptional; + previousVersion: z.ZodOptional; + statusChangedAt: z.ZodOptional; + errorMessage: z.ZodOptional; + settings: z.ZodOptional>; + upgradeHistory: z.ZodOptional; + migrationLog: z.ZodOptional>; + }, z.core.$strip>>>; + registeredNamespaces: z.ZodOptional>; + manifest: z.ZodObject<{ + readonly [x: string]: z.core.$ZodType>; + functions: z.ZodOptional; + hooks: z.ZodOptional; + }, z.core.$strip>; + }, z.core.$strip>]>; + }, z.core.$strip>; + }; + installPackage: { + method: "POST"; + path: string; + input: z.ZodUnion; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>; + settings: z.ZodOptional>; + enableOnInstall: z.ZodDefault; + overwrite: z.ZodOptional; + platformVersion: z.ZodOptional; + artifactRef: z.ZodOptional>; + uploadedAt: z.ZodString; + }, z.core.$strip>>; + }, z.core.$strip>, z.ZodObject<{ + id: z.ZodString; + namespace: z.ZodOptional; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>]>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + package: z.ZodObject<{ + manifest: z.ZodObject<{ + id: z.ZodString; + namespace: z.ZodOptional; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>; + status: z.ZodDefault>; + enabled: z.ZodDefault; + installedAt: z.ZodOptional; + updatedAt: z.ZodOptional; + installedVersion: z.ZodOptional; + previousVersion: z.ZodOptional; + statusChangedAt: z.ZodOptional; + errorMessage: z.ZodOptional; + settings: z.ZodOptional>; + upgradeHistory: z.ZodOptional; + migrationLog: z.ZodOptional>; + }, z.core.$strip>>>; + registeredNamespaces: z.ZodOptional>; + }, z.core.$strip>; + dependencyResolution: z.ZodOptional; + installedVersion: z.ZodOptional; + status: z.ZodEnum<{ + conflict: "conflict"; + satisfied: "satisfied"; + needs_install: "needs_install"; + needs_upgrade: "needs_upgrade"; + }>; + conflictReason: z.ZodOptional; + }, z.core.$strip>>; + canProceed: z.ZodBoolean; + requiredActions: z.ZodArray; + packageId: z.ZodString; + description: z.ZodString; + }, z.core.$strip>>; + installOrder: z.ZodArray; + circularDependencies: z.ZodOptional>>; + }, z.core.$strip>>; + namespaceConflicts: z.ZodOptional; + requestedNamespace: z.ZodString; + conflictingPackageId: z.ZodString; + conflictingPackageName: z.ZodString; + suggestion: z.ZodOptional; + }, z.core.$strip>>>; + message: z.ZodOptional; + }, z.core.$strip>; + }, z.core.$strip>; + }; + upgradePackage: { + method: "POST"; + path: string; + input: z.ZodObject<{ + packageId: z.ZodString; + targetVersion: z.ZodOptional; + manifest: z.ZodOptional; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>>; + createSnapshot: z.ZodDefault; + mergeStrategy: z.ZodDefault>; + dryRun: z.ZodDefault; + skipValidation: z.ZodDefault; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + success: z.ZodBoolean; + phase: z.ZodString; + plan: z.ZodOptional; + changes: z.ZodArray; + hasConflict: z.ZodDefault; + summary: z.ZodOptional; + previousName: z.ZodOptional; + }, z.core.$strip>>; + affectedCustomizations: z.ZodDefault; + requiresMigration: z.ZodDefault; + migrationScripts: z.ZodOptional>; + dependencyUpgrades: z.ZodOptional>>; + estimatedDurationSeconds: z.ZodOptional; + estimatedDuration: z.ZodOptional; + summary: z.ZodOptional; + }, z.core.$strip>>; + snapshotId: z.ZodOptional; + conflicts: z.ZodOptional>>; + errorMessage: z.ZodOptional; + message: z.ZodOptional; + }, z.core.$strip>; + }, z.core.$strip>; + }; + resolveDependencies: { + method: "POST"; + path: string; + input: z.ZodObject<{ + manifest: z.ZodObject<{ + id: z.ZodString; + namespace: z.ZodOptional; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>; + platformVersion: z.ZodOptional; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + dependencies: z.ZodArray; + installedVersion: z.ZodOptional; + status: z.ZodEnum<{ + conflict: "conflict"; + satisfied: "satisfied"; + needs_install: "needs_install"; + needs_upgrade: "needs_upgrade"; + }>; + conflictReason: z.ZodOptional; + }, z.core.$strip>>; + canProceed: z.ZodBoolean; + requiredActions: z.ZodArray; + packageId: z.ZodString; + description: z.ZodString; + }, z.core.$strip>>; + installOrder: z.ZodArray; + circularDependencies: z.ZodOptional>>; + }, z.core.$strip>; + }, z.core.$strip>; + }; + uploadArtifact: { + method: "POST"; + path: string; + input: z.ZodObject<{ + artifact: z.ZodObject<{ + formatVersion: z.ZodDefault; + packageId: z.ZodString; + version: z.ZodString; + format: z.ZodDefault>; + size: z.ZodOptional; + builtAt: z.ZodString; + builtWith: z.ZodOptional; + files: z.ZodOptional>; + }, z.core.$strip>>>; + metadataCategories: z.ZodOptional>>; + checksums: z.ZodOptional>; + files: z.ZodRecord; + }, z.core.$strip>>; + signature: z.ZodOptional>; + publicKeyRef: z.ZodString; + signature: z.ZodString; + signedAt: z.ZodOptional; + signedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + sha256: z.ZodOptional; + token: z.ZodOptional; + releaseNotes: z.ZodOptional; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + success: z.ZodBoolean; + artifactRef: z.ZodOptional>; + uploadedAt: z.ZodString; + }, z.core.$strip>>; + submissionId: z.ZodOptional; + message: z.ZodOptional; + }, z.core.$strip>; + }, z.core.$strip>; + }; + uninstallPackage: { + method: "DELETE"; + path: string; + input: z.ZodObject<{ + packageId: z.ZodString; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + packageId: z.ZodString; + success: z.ZodBoolean; + message: z.ZodOptional; + }, z.core.$strip>; + }, z.core.$strip>; + }; +}; + +// ── PackageApiErrorCode (const) ── +declare const PackageApiErrorCode: z.ZodEnum<{ + namespace_conflict: "namespace_conflict"; + package_not_found: "package_not_found"; + package_already_installed: "package_already_installed"; + version_not_found: "version_not_found"; + dependency_conflict: "dependency_conflict"; + platform_incompatible: "platform_incompatible"; + artifact_invalid: "artifact_invalid"; + checksum_mismatch: "checksum_mismatch"; + signature_invalid: "signature_invalid"; + upgrade_failed: "upgrade_failed"; + rollback_failed: "rollback_failed"; + snapshot_not_found: "snapshot_not_found"; + upload_failed: "upload_failed"; +}>; + +// ── PackageApiErrorCode (type) ── +type PackageApiErrorCode = z.input; + +// ── PackageExportManifest (type) ── +type PackageExportManifest = z.input; + +// ── PackageExportManifestParsed (type) ── +type PackageExportManifestParsed = z.infer; + +// ── PackageExportManifestSchema (const) ── +declare const PackageExportManifestSchema: z.ZodObject<{ + id: z.ZodString; + name: z.ZodString; + version: z.ZodString; + label: z.ZodOptional; +}, z.core.$catchall>; + +// ── PackageInstallBody (type) ── +type PackageInstallBody = z.input; + +// ── PackageInstallBodyParsed (type) ── +type PackageInstallBodyParsed = z.infer; + +// ── PackageInstallBodySchema (const) ── +declare const PackageInstallBodySchema: z.ZodUnion; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>; + settings: z.ZodOptional>; + enableOnInstall: z.ZodDefault; + overwrite: z.ZodOptional; + platformVersion: z.ZodOptional; + artifactRef: z.ZodOptional>; + uploadedAt: z.ZodString; + }, z.core.$strip>>; +}, z.core.$strip>, z.ZodObject<{ + id: z.ZodString; + namespace: z.ZodOptional; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; +}, z.core.$strict>]>; + +// ── PackageInstallRequest (type) ── +type PackageInstallRequest = z.input; + +// ── PackageInstallRequestParsed (type) ── +type PackageInstallRequestParsed = z.infer; + +// ── PackageInstallRequestSchema (const) ── +declare const PackageInstallRequestSchema: z.ZodObject<{ + manifest: z.ZodObject<{ + id: z.ZodString; + namespace: z.ZodOptional; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>; + settings: z.ZodOptional>; + enableOnInstall: z.ZodDefault; + overwrite: z.ZodOptional; + platformVersion: z.ZodOptional; + artifactRef: z.ZodOptional>; + uploadedAt: z.ZodString; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── PackageInstallResponse (type) ── +type PackageInstallResponse = z.input; + +// ── PackageInstallResponseParsed (type) ── +type PackageInstallResponseParsed = z.infer; + +// ── PackageInstallResponseSchema (const) ── +declare const PackageInstallResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + package: z.ZodObject<{ + manifest: z.ZodObject<{ + id: z.ZodString; + namespace: z.ZodOptional; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>; + status: z.ZodDefault>; + enabled: z.ZodDefault; + installedAt: z.ZodOptional; + updatedAt: z.ZodOptional; + installedVersion: z.ZodOptional; + previousVersion: z.ZodOptional; + statusChangedAt: z.ZodOptional; + errorMessage: z.ZodOptional; + settings: z.ZodOptional>; + upgradeHistory: z.ZodOptional; + migrationLog: z.ZodOptional>; + }, z.core.$strip>>>; + registeredNamespaces: z.ZodOptional>; + }, z.core.$strip>; + dependencyResolution: z.ZodOptional; + installedVersion: z.ZodOptional; + status: z.ZodEnum<{ + conflict: "conflict"; + satisfied: "satisfied"; + needs_install: "needs_install"; + needs_upgrade: "needs_upgrade"; + }>; + conflictReason: z.ZodOptional; + }, z.core.$strip>>; + canProceed: z.ZodBoolean; + requiredActions: z.ZodArray; + packageId: z.ZodString; + description: z.ZodString; + }, z.core.$strip>>; + installOrder: z.ZodArray; + circularDependencies: z.ZodOptional>>; + }, z.core.$strip>>; + namespaceConflicts: z.ZodOptional; + requestedNamespace: z.ZodString; + conflictingPackageId: z.ZodString; + conflictingPackageName: z.ZodString; + suggestion: z.ZodOptional; + }, z.core.$strip>>>; + message: z.ZodOptional; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── PackagePathParams (type) ── +type PackagePathParams = z.input; + +// ── PackagePathParamsSchema (const) ── +declare const PackagePathParamsSchema: z.ZodObject<{ + packageId: z.ZodString; +}, z.core.$strip>; + +// ── PackageProtocol (interface) ── +interface PackageProtocol { + listPackages?(request: ListPackagesRequest): Promise; + getPackage?(request: GetPackageRequest): Promise; + installPackage?(request: InstallPackageRequest): Promise; + uninstallPackage?(request: UninstallPackageRequest): Promise; + enablePackage?(request: EnablePackageRequest): Promise; + disablePackage?(request: DisablePackageRequest): Promise; +} + +// ── PackagePublishResult (type) ── +type PackagePublishResult = z.input; + +// ── PackagePublishResultSchema (const) ── +declare const PackagePublishResultSchema: z.ZodObject<{ + success: z.ZodBoolean; + packageId: z.ZodString; + version: z.ZodNumber; + publishedAt: z.ZodString; + itemsPublished: z.ZodNumber; + validationErrors: z.ZodOptional>>; +}, z.core.$strip>; + +// ── PackageRollbackRequest (type) ── +type PackageRollbackRequest = z.input; + +// ── PackageRollbackRequestParsed (type) ── +type PackageRollbackRequestParsed = z.infer; + +// ── PackageRollbackRequestSchema (const) ── +declare const PackageRollbackRequestSchema: z.ZodObject<{ + packageId: z.ZodString; + snapshotId: z.ZodString; + rollbackCustomizations: z.ZodDefault; +}, z.core.$strip>; + +// ── PackageStatus (type) ── +type PackageStatus = z.input; + +// ── PackageUpgradeRequest (type) ── +type PackageUpgradeRequest = z.input; + +// ── PackageUpgradeRequestParsed (type) ── +type PackageUpgradeRequestParsed = z.infer; + +// ── PackageUpgradeRequestSchema (const) ── +declare const PackageUpgradeRequestSchema: z.ZodObject<{ + packageId: z.ZodString; + targetVersion: z.ZodOptional; + manifest: z.ZodOptional; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>>; + createSnapshot: z.ZodDefault; + mergeStrategy: z.ZodDefault>; + dryRun: z.ZodDefault; + skipValidation: z.ZodDefault; +}, z.core.$strip>; + +// ── PackageUpgradeResponse (type) ── +type PackageUpgradeResponse = z.input; + +// ── PackageUpgradeResponseParsed (type) ── +type PackageUpgradeResponseParsed = z.infer; + +// ── PackageUpgradeResponseSchema (const) ── +declare const PackageUpgradeResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + success: z.ZodBoolean; + phase: z.ZodString; + plan: z.ZodOptional; + changes: z.ZodArray; + hasConflict: z.ZodDefault; + summary: z.ZodOptional; + previousName: z.ZodOptional; + }, z.core.$strip>>; + affectedCustomizations: z.ZodDefault; + requiresMigration: z.ZodDefault; + migrationScripts: z.ZodOptional>; + dependencyUpgrades: z.ZodOptional>>; + estimatedDurationSeconds: z.ZodOptional; + estimatedDuration: z.ZodOptional; + summary: z.ZodOptional; + }, z.core.$strip>>; + snapshotId: z.ZodOptional; + conflicts: z.ZodOptional>>; + errorMessage: z.ZodOptional; + message: z.ZodOptional; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── PermissionProtocol (interface) ── +interface PermissionProtocol { + checkPermission?(request: CheckPermissionRequest): Promise; + getObjectPermissions?(request: GetObjectPermissionsRequest): Promise; + getEffectivePermissions?(request: GetEffectivePermissionsRequest): Promise; +} + +// ── PingMessage (type) ── +type PingMessage = z.input; + +// ── PingMessageSchema (const) ── +declare const PingMessageSchema: z.ZodObject<{ + messageId: z.ZodString; + timestamp: z.ZodString; + type: z.ZodLiteral<"ping">; +}, z.core.$strip>; + +// ── PongMessage (type) ── +type PongMessage = z.input; + +// ── PongMessageSchema (const) ── +declare const PongMessageSchema: z.ZodObject<{ + messageId: z.ZodString; + timestamp: z.ZodString; + type: z.ZodLiteral<"pong">; + pingMessageId: z.ZodOptional; +}, z.core.$strip>; + +// ── PresenceMessage (type) ── +type PresenceMessage = z.input; + +// ── PresenceMessageSchema (const) ── +declare const PresenceMessageSchema: z.ZodObject<{ + messageId: z.ZodString; + timestamp: z.ZodString; + type: z.ZodLiteral<"presence">; + presence: z.ZodObject<{ + userId: z.ZodString; + sessionId: z.ZodString; + status: z.ZodEnum<{ + online: "online"; + away: "away"; + busy: "busy"; + offline: "offline"; + }>; + lastSeen: z.ZodString; + currentLocation: z.ZodOptional; + device: z.ZodOptional>; + customStatus: z.ZodOptional; + metadata: z.ZodOptional>; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── PresenceState (type) ── +type PresenceState = z.input; + +// ── PresenceStateSchema (const) ── +declare const PresenceStateSchema: z.ZodObject<{ + userId: z.ZodString; + sessionId: z.ZodString; + status: z.ZodEnum<{ + online: "online"; + away: "away"; + busy: "busy"; + offline: "offline"; + }>; + lastSeen: z.ZodString; + currentLocation: z.ZodOptional; + device: z.ZodOptional>; + customStatus: z.ZodOptional; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── PresenceStatus (const) ── +declare const PresenceStatus: z.ZodEnum<{ + online: "online"; + away: "away"; + busy: "busy"; + offline: "offline"; +}>; + +// ── PresenceStatus (type) ── +type PresenceStatus = z.input; + +// ── PresenceUpdate (type) ── +type PresenceUpdate = z.input; + +// ── PresenceUpdateSchema (const) ── +declare const PresenceUpdateSchema: z.ZodObject<{ + status: z.ZodOptional>; + currentLocation: z.ZodOptional; + customStatus: z.ZodOptional; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── PresignedUrlResponse (type) ── +type PresignedUrlResponse = z.input; + +// ── PresignedUrlResponseParsed (type) ── +type PresignedUrlResponseParsed = z.infer; + +// ── PresignedUrlResponseSchema (const) ── +declare const PresignedUrlResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + uploadUrl: z.ZodString; + downloadUrl: z.ZodOptional; + fileId: z.ZodString; + method: z.ZodEnum<{ + POST: "POST"; + PUT: "PUT"; + }>; + headers: z.ZodOptional>; + expiresIn: z.ZodNumber; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── ProvenanceWaiver (type) ── +type ProvenanceWaiver = z.input; + +// ── ProvenanceWaiverSchema (const) ── +declare const ProvenanceWaiverSchema: z.ZodObject<{ + package: z.ZodString; + code: z.ZodString; + registeredUnder: z.ZodString; + reason: z.ZodString; +}, z.core.$strip>; + +// ── PublishMetaItemRequest (type) ── +type PublishMetaItemRequest = z.input; + +// ── PublishMetaItemRequestSchema (const) ── +declare const PublishMetaItemRequestSchema: z.ZodObject<{ + type: z.ZodString; + name: z.ZodString; + organizationId: z.ZodOptional; + actor: z.ZodOptional; + message: z.ZodOptional; + packageId: z.ZodOptional>; +}, z.core.$strip>; + +// ── PublishMetaItemResponse (type) ── +type PublishMetaItemResponse = z.input; + +// ── PublishMetaItemResponseSchema (const) ── +declare const PublishMetaItemResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + version: z.ZodString; + seq: z.ZodNumber; + seedApplied: z.ZodOptional; + errors: z.ZodOptional>; + }, z.core.$strip>>; + materializeApplied: z.ZodOptional; + }, z.core.$strip>>; + projectionApplied: z.ZodOptional; + }, z.core.$strip>>; + advisories: z.ZodOptional; + }, z.core.$strip>>>; + message: z.ZodOptional; +}, z.core.$strip>; + +// ── PublishPackageDraftsResponse (type) ── +type PublishPackageDraftsResponse = z.input; + +// ── PublishPackageDraftsResponseSchema (const) ── +declare const PublishPackageDraftsResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + outcome: z.ZodEnum<{ + published: "published"; + refused: "refused"; + nothing_to_publish: "nothing_to_publish"; + }>; + publishedCount: z.ZodNumber; + failedCount: z.ZodNumber; + published: z.ZodArray; + }, z.core.$strip>>>; + }, z.core.$strip>>; + failed: z.ZodArray; + issues: z.ZodOptional; + }, z.core.$strip>>>; + }, z.core.$strip>>; + seedApplied: z.ZodOptional; + updated: z.ZodOptional; + error: z.ZodOptional; + errors: z.ZodOptional>; + issues: z.ZodOptional; + }, z.core.$strip>>>; + }, z.core.$strip>>; + materializeApplied: z.ZodOptional>; + }, z.core.$strip>>; + probes: z.ZodOptional; + commitId: z.ZodOptional; + unhiddenApps: z.ZodOptional>; + unhideError: z.ZodOptional; + rebindError: z.ZodOptional; +}, z.core.$strip>; + +// ── QueryAdapterConfig (type) ── +type QueryAdapterConfig = z.input; + +// ── QueryAdapterConfigParsed (type) ── +type QueryAdapterConfigParsed = z.infer; + +// ── QueryAdapterConfigSchema (const) ── +declare const QueryAdapterConfigSchema: z.ZodObject<{ + operatorMappings: z.ZodOptional; + odata: z.ZodOptional; + }, z.core.$strip>>>; + rest: z.ZodOptional>; + pagination: z.ZodOptional; + offsetParam: z.ZodDefault; + cursorParam: z.ZodDefault; + pageParam: z.ZodDefault; + }, z.core.$strip>>; + sorting: z.ZodOptional; + format: z.ZodDefault>; + }, z.core.$strip>>; + fieldsParam: z.ZodDefault; + }, z.core.$strip>>; + odata: z.ZodOptional>; + usePrefix: z.ZodDefault; + stringFunctions: z.ZodOptional>>; + expand: z.ZodOptional; + maxDepth: z.ZodDefault; + }, z.core.$strip>>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── QueryAdapterTarget (type) ── +type QueryAdapterTarget = z.input; + +// ── QueryAdapterTargetSchema (const) ── +declare const QueryAdapterTargetSchema: z.ZodEnum<{ + rest: "rest"; + odata: "odata"; +}>; + +// ── QueryOptimizationConfig (type) ── +type QueryOptimizationConfig = z.input; + +// ── QueryOptimizationConfigParsed (type) ── +type QueryOptimizationConfigParsed = z.infer; + +// ── QueryOptimizationConfigSchema (const) ── +declare const QueryOptimizationConfigSchema: z.ZodObject<{ + preventNPlusOne: z.ZodBoolean; + dataLoader: z.ZodOptional; + batchScheduleFn: z.ZodDefault>; + cacheEnabled: z.ZodDefault; + cacheKeyFn: z.ZodOptional; + cacheTtlSeconds: z.ZodOptional; + cacheTtl: z.ZodOptional; + coalesceRequests: z.ZodDefault; + maxConcurrency: z.ZodOptional; + }, z.core.$strip>>; + batchStrategy: z.ZodOptional; + windowMs: z.ZodOptional; + prefetchDepth: z.ZodOptional; + associationLoading: z.ZodDefault>; + }, z.core.$strip>>; + maxQueryDepth: z.ZodNumber; + queryComplexityLimit: z.ZodOptional; + enableQueryPlan: z.ZodDefault; +}, z.core.$strip>; + +// ── REGISTERED_ERROR_CODES (const) ── +declare const REGISTERED_ERROR_CODES: readonly RegisteredErrorCode[]; + +// ── RawUploadResponse (type) ── +type RawUploadResponse = z.input; + +// ── RawUploadResponseParsed (type) ── +type RawUploadResponseParsed = z.infer; + +// ── RawUploadResponseSchema (const) ── +declare const RawUploadResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + key: z.ZodString; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── RealtimeConfig (type) ── +type RealtimeConfig = z.input; + +// ── RealtimeConfigParsed (type) ── +type RealtimeConfigParsed = z.infer; + +// ── RealtimeConfigSchema (const) ── +declare const RealtimeConfigSchema: z.ZodObject<{ + enabled: z.ZodDefault; + transport: z.ZodDefault>; + subscriptions: z.ZodOptional; + object: z.ZodOptional; + filters: z.ZodOptional; + }, z.core.$strip>>; + transport: z.ZodEnum<{ + websocket: "websocket"; + sse: "sse"; + polling: "polling"; + }>; + channel: z.ZodOptional; + }, z.core.$strip>>>; +}, z.core.$loose>; + +// ── RealtimeConnectRequest (type) ── +type RealtimeConnectRequest = z.input; + +// ── RealtimeConnectRequestSchema (const) ── +declare const RealtimeConnectRequestSchema: z.ZodObject<{ + transport: z.ZodOptional>; + channels: z.ZodOptional>; + token: z.ZodOptional; +}, z.core.$strip>; + +// ── RealtimeConnectResponse (type) ── +type RealtimeConnectResponse = z.input; + +// ── RealtimeConnectResponseSchema (const) ── +declare const RealtimeConnectResponseSchema: z.ZodObject<{ + connectionId: z.ZodString; + transport: z.ZodEnum<{ + websocket: "websocket"; + sse: "sse"; + polling: "polling"; + }>; + url: z.ZodOptional; +}, z.core.$strip>; + +// ── RealtimeDisconnectRequest (type) ── +type RealtimeDisconnectRequest = z.input; + +// ── RealtimeDisconnectRequestSchema (const) ── +declare const RealtimeDisconnectRequestSchema: z.ZodObject<{ + connectionId: z.ZodOptional; +}, z.core.$strip>; + +// ── RealtimeDisconnectResponse (type) ── +type RealtimeDisconnectResponse = z.input; + +// ── RealtimeDisconnectResponseSchema (const) ── +declare const RealtimeDisconnectResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; +}, z.core.$strip>; + +// ── RealtimeEvent (type) ── +type RealtimeEvent = z.input; + +// ── RealtimeEventSchema (const) ── +declare const RealtimeEventSchema: z.ZodObject<{ + id: z.ZodString; + type: z.ZodString; + object: z.ZodOptional; + action: z.ZodOptional>; + payload: z.ZodRecord; + timestamp: z.ZodString; + userId: z.ZodOptional; + sessionId: z.ZodOptional; +}, z.core.$strip>; + +// ── RealtimeEventType (const) ── +declare const RealtimeEventType: z.ZodEnum<{ + "record.created": "record.created"; + "record.updated": "record.updated"; + "record.deleted": "record.deleted"; + "field.changed": "field.changed"; +}>; + +// ── RealtimeEventType (type) ── +type RealtimeEventType = z.input; + +// ── RealtimePresence (type) ── +type RealtimePresence = z.input; + +// ── RealtimePresenceSchema (const) ── +declare const RealtimePresenceSchema: z.ZodObject<{ + userId: z.ZodString; + status: z.ZodEnum<{ + online: "online"; + away: "away"; + busy: "busy"; + offline: "offline"; + }>; + lastSeen: z.ZodString; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── RealtimeProtocol (interface) ── +interface RealtimeProtocol { + realtimeConnect?(request: RealtimeConnectRequest): Promise; + realtimeDisconnect?(request: RealtimeDisconnectRequest): Promise; + realtimeSubscribe?(request: RealtimeSubscribeRequest): Promise; + realtimeUnsubscribe?(request: RealtimeUnsubscribeRequest): Promise; + setPresence?(request: SetPresenceRequest): Promise; + getPresence?(request: GetPresenceRequest): Promise; +} + +// ── RealtimeRecordAction (const) ── +declare const RealtimeRecordAction: z.ZodEnum<{ + created: "created"; + updated: "updated"; + deleted: "deleted"; +}>; + +// ── RealtimeRecordAction (type) ── +type RealtimeRecordAction = z.input; + +// ── RealtimeSubscribeRequest (type) ── +type RealtimeSubscribeRequest = z.input; + +// ── RealtimeSubscribeRequestSchema (const) ── +declare const RealtimeSubscribeRequestSchema: z.ZodObject<{ + channel: z.ZodString; + events: z.ZodOptional>; + filter: z.ZodOptional>; +}, z.core.$strip>; + +// ── RealtimeSubscribeResponse (type) ── +type RealtimeSubscribeResponse = z.input; + +// ── RealtimeSubscribeResponseSchema (const) ── +declare const RealtimeSubscribeResponseSchema: z.ZodObject<{ + subscriptionId: z.ZodString; + channel: z.ZodString; +}, z.core.$strip>; + +// ── RealtimeUnsubscribeRequest (type) ── +type RealtimeUnsubscribeRequest = z.input; + +// ── RealtimeUnsubscribeRequestSchema (const) ── +declare const RealtimeUnsubscribeRequestSchema: z.ZodObject<{ + subscriptionId: z.ZodString; +}, z.core.$strip>; + +// ── RealtimeUnsubscribeResponse (type) ── +type RealtimeUnsubscribeResponse = z.input; + +// ── RealtimeUnsubscribeResponseSchema (const) ── +declare const RealtimeUnsubscribeResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; +}, z.core.$strip>; + +// ── ReassignOrphanedMetadataResponse (type) ── +type ReassignOrphanedMetadataResponse = z.input; + +// ── ReassignOrphanedMetadataResponseParsed (type) ── +type ReassignOrphanedMetadataResponseParsed = z.infer; + +// ── ReassignOrphanedMetadataResponseSchema (const) ── +declare const ReassignOrphanedMetadataResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + reassignedCount: z.ZodNumber; + reassigned: z.ZodArray>; + targetPackageId: z.ZodString; +}, z.core.$strip>; + +// ── RecordData (type) ── +type RecordData = z.input; + +// ── RecordDataSchema (const) ── +declare const RecordDataSchema: z.ZodRecord; + +// ── RefreshTokenRequest (type) ── +type RefreshTokenRequest = z.input; + +// ── RefreshTokenRequestSchema (const) ── +declare const RefreshTokenRequestSchema: z.ZodObject<{ + refreshToken: z.ZodString; +}, z.core.$strip>; + +// ── RegisterDeviceRequest (type) ── +type RegisterDeviceRequest = z.input; + +// ── RegisterDeviceRequestSchema (const) ── +declare const RegisterDeviceRequestSchema: z.ZodObject<{ + token: z.ZodString; + platform: z.ZodEnum<{ + ios: "ios"; + android: "android"; + web: "web"; + }>; + deviceId: z.ZodOptional; + name: z.ZodOptional; +}, z.core.$strip>; + +// ── RegisterDeviceResponse (type) ── +type RegisterDeviceResponse = z.input; + +// ── RegisterDeviceResponseSchema (const) ── +declare const RegisterDeviceResponseSchema: z.ZodObject<{ + deviceId: z.ZodString; + success: z.ZodBoolean; +}, z.core.$strip>; + +// ── RegisterRequest (type) ── +type RegisterRequest = z.input; + +// ── RegisterRequestSchema (const) ── +declare const RegisterRequestSchema: z.ZodObject<{ + email: z.ZodString; + password: z.ZodString; + name: z.ZodString; + image: z.ZodOptional; +}, z.core.$strip>; + +// ── RegisteredErrorCode (type) ── +type RegisteredErrorCode = (typeof ERROR_CODE_LEDGER)[keyof typeof ERROR_CODE_LEDGER][number]; + +// ── RejectAiPendingActionResponse (type) ── +type RejectAiPendingActionResponse = z.input; + +// ── RejectAiPendingActionResponseSchema (const) ── +declare const RejectAiPendingActionResponseSchema: z.ZodObject<{ + status: z.ZodLiteral<"rejected">; + id: z.ZodString; +}, z.core.$strip>; + +// ── RequestValidationConfig (type) ── +type RequestValidationConfig = z.input; + +// ── RequestValidationConfigParsed (type) ── +type RequestValidationConfigParsed = z.infer; + +// ── RequestValidationConfigSchema (const) ── +declare const RequestValidationConfigSchema: z.ZodObject<{ + enabled: z.ZodDefault; + mode: z.ZodDefault>; + validateBody: z.ZodDefault; + validateQuery: z.ZodDefault; + validateParams: z.ZodDefault; + validateHeaders: z.ZodDefault; + includeFieldErrors: z.ZodDefault; + errorPrefix: z.ZodOptional; + schemaRegistry: z.ZodOptional; +}, z.core.$strip>; + +// ── ResolveDependenciesRequest (type) ── +type ResolveDependenciesRequest = z.input; + +// ── ResolveDependenciesRequestParsed (type) ── +type ResolveDependenciesRequestParsed = z.infer; + +// ── ResolveDependenciesRequestSchema (const) ── +declare const ResolveDependenciesRequestSchema: z.ZodObject<{ + manifest: z.ZodObject<{ + id: z.ZodString; + namespace: z.ZodOptional; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>; + platformVersion: z.ZodOptional; +}, z.core.$strip>; + +// ── ResolveDependenciesResponse (type) ── +type ResolveDependenciesResponse = z.input; + +// ── ResolveDependenciesResponseParsed (type) ── +type ResolveDependenciesResponseParsed = z.infer; + +// ── ResolveDependenciesResponseSchema (const) ── +declare const ResolveDependenciesResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + dependencies: z.ZodArray; + installedVersion: z.ZodOptional; + status: z.ZodEnum<{ + conflict: "conflict"; + satisfied: "satisfied"; + needs_install: "needs_install"; + needs_upgrade: "needs_upgrade"; + }>; + conflictReason: z.ZodOptional; + }, z.core.$strip>>; + canProceed: z.ZodBoolean; + requiredActions: z.ZodArray; + packageId: z.ZodString; + description: z.ZodString; + }, z.core.$strip>>; + installOrder: z.ZodArray; + circularDependencies: z.ZodOptional>>; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── ResolvedBook (interface) ── +interface ResolvedBook { + name: string; + label?: string; + groups: ResolvedGroup[]; +} + +// ── ResolvedBookSchema (const) ── +declare const ResolvedBookSchema: z.ZodObject<{ + name: z.ZodString; + label: z.ZodOptional; + groups: z.ZodArray; + href: z.ZodOptional; + label: z.ZodOptional; + description: z.ZodOptional; + badge: z.ZodOptional; + icon: z.ZodOptional; + separator: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── ResolvedEntry (interface) ── +interface ResolvedEntry { + /** Doc name, or undefined for an external link / separator. */ + doc?: string; + href?: string; + label?: string; + description?: string; + badge?: string; + icon?: string; + /** True for a `---` separator node. */ + separator?: boolean; +} + +// ── ResolvedEntrySchema (const) ── +declare const ResolvedEntrySchema: z.ZodObject<{ + doc: z.ZodOptional; + href: z.ZodOptional; + label: z.ZodOptional; + description: z.ZodOptional; + badge: z.ZodOptional; + icon: z.ZodOptional; + separator: z.ZodOptional; +}, z.core.$strip>; + +// ── ResolvedGroup (interface) ── +interface ResolvedGroup { + key: string; + label: string; + entries: ResolvedEntry[]; +} + +// ── ResolvedGroupSchema (const) ── +declare const ResolvedGroupSchema: z.ZodObject<{ + key: z.ZodString; + label: z.ZodString; + entries: z.ZodArray; + href: z.ZodOptional; + label: z.ZodOptional; + description: z.ZodOptional; + badge: z.ZodOptional; + icon: z.ZodOptional; + separator: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── ResponseEnvelopeConfig (type) ── +type ResponseEnvelopeConfig = z.input; + +// ── ResponseEnvelopeConfigParsed (type) ── +type ResponseEnvelopeConfigParsed = z.infer; + +// ── ResponseEnvelopeConfigSchema (const) ── +declare const ResponseEnvelopeConfigSchema: z.ZodObject<{ + enabled: z.ZodDefault; + includeMetadata: z.ZodDefault; + includeTimestamp: z.ZodDefault; + includeRequestId: z.ZodDefault; + includeDuration: z.ZodDefault; + includeTraceId: z.ZodDefault; + customMetadata: z.ZodOptional>; + skipIfWrapped: z.ZodDefault; +}, z.core.$strip>; + +// ── RestApiConfig (const) ── +declare const RestApiConfig: z.ZodObject<{ + version: z.ZodDefault; + basePath: z.ZodDefault; + apiPath: z.ZodOptional; + enableCrud: z.ZodDefault; + enableMetadata: z.ZodDefault; + enableUi: z.ZodDefault; + enableBatch: z.ZodDefault; + enableDiscovery: z.ZodDefault; + enableOpenApi: z.ZodDefault; + enableSearch: z.ZodDefault; + enableProjectScoping: z.ZodDefault; + projectResolution: z.ZodDefault>; + requireAuth: z.ZodOptional; + documentation: z.ZodOptional; + title: z.ZodDefault; + description: z.ZodOptional; + version: z.ZodOptional; + termsOfService: z.ZodOptional; + contact: z.ZodOptional; + url: z.ZodOptional; + email: z.ZodOptional; + }, z.core.$strip>>; + license: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + responseFormat: z.ZodOptional; + includeMetadata: z.ZodDefault; + includePagination: z.ZodDefault; + }, z.core.$strip>>; +}, z.core.$strip> & { + create: >(config: T) => T; +}; + +// ── RestApiConfig (type) ── +type RestApiConfig = z.input; + +// ── RestApiConfigParsed (type) ── +type RestApiConfigParsed = z.infer; + +// ── RestApiConfigSchema (const) ── +declare const RestApiConfigSchema: z.ZodObject<{ + version: z.ZodDefault; + basePath: z.ZodDefault; + apiPath: z.ZodOptional; + enableCrud: z.ZodDefault; + enableMetadata: z.ZodDefault; + enableUi: z.ZodDefault; + enableBatch: z.ZodDefault; + enableDiscovery: z.ZodDefault; + enableOpenApi: z.ZodDefault; + enableSearch: z.ZodDefault; + enableProjectScoping: z.ZodDefault; + projectResolution: z.ZodDefault>; + requireAuth: z.ZodOptional; + documentation: z.ZodOptional; + title: z.ZodDefault; + description: z.ZodOptional; + version: z.ZodOptional; + termsOfService: z.ZodOptional; + contact: z.ZodOptional; + url: z.ZodOptional; + email: z.ZodOptional; + }, z.core.$strip>>; + license: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + responseFormat: z.ZodOptional; + includeMetadata: z.ZodDefault; + includePagination: z.ZodDefault; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── RestApiEndpoint (type) ── +type RestApiEndpoint = z.input; + +// ── RestApiEndpointParsed (type) ── +type RestApiEndpointParsed = z.infer; + +// ── RestApiEndpointSchema (const) ── +declare const RestApiEndpointSchema: z.ZodObject<{ + method: z.ZodEnum<{ + GET: "GET"; + POST: "POST"; + PUT: "PUT"; + DELETE: "DELETE"; + PATCH: "PATCH"; + HEAD: "HEAD"; + OPTIONS: "OPTIONS"; + }>; + path: z.ZodString; + handler: z.ZodString; + category: z.ZodEnum<{ + metadata: "metadata"; + data: "data"; + batch: "batch"; + realtime: "realtime"; + discovery: "discovery"; + ui: "ui"; + automation: "automation"; + analytics: "analytics"; + ai: "ai"; + i18n: "i18n"; + permission: "permission"; + notification: "notification"; + }>; + public: z.ZodDefault; + permissions: z.ZodOptional>; + summary: z.ZodOptional; + description: z.ZodOptional; + tags: z.ZodOptional>; + requestSchema: z.ZodOptional; + responseSchema: z.ZodOptional; + timeoutMs: z.ZodOptional; + rateLimit: z.ZodOptional; + cacheable: z.ZodDefault; + cacheTtlSeconds: z.ZodOptional; + timeout: z.ZodOptional; + cacheTtl: z.ZodOptional; + handlerStatus: z.ZodOptional; +}, z.core.$strip>; + +// ── RestApiPluginConfig (const) ── +declare const RestApiPluginConfig: z.ZodObject<{ + enabled: z.ZodDefault; + basePath: z.ZodDefault; + version: z.ZodDefault; + routes: z.ZodArray; + methods: z.ZodOptional>; + endpoints: z.ZodOptional; + path: z.ZodString; + handler: z.ZodString; + category: z.ZodEnum<{ + metadata: "metadata"; + data: "data"; + batch: "batch"; + realtime: "realtime"; + discovery: "discovery"; + ui: "ui"; + automation: "automation"; + analytics: "analytics"; + ai: "ai"; + i18n: "i18n"; + permission: "permission"; + notification: "notification"; + }>; + public: z.ZodDefault; + permissions: z.ZodOptional>; + summary: z.ZodOptional; + description: z.ZodOptional; + tags: z.ZodOptional>; + requestSchema: z.ZodOptional; + responseSchema: z.ZodOptional; + timeoutMs: z.ZodOptional; + rateLimit: z.ZodOptional; + cacheable: z.ZodDefault; + cacheTtlSeconds: z.ZodOptional; + timeout: z.ZodOptional; + cacheTtl: z.ZodOptional; + handlerStatus: z.ZodOptional; + }, z.core.$strip>>>; + middleware: z.ZodOptional; + enabled: z.ZodDefault; + order: z.ZodDefault; + config: z.ZodOptional>; + paths: z.ZodOptional>; + exclude: z.ZodOptional>; + }, z.core.$strip>>; + }, z.core.$strip>>>; + authRequired: z.ZodDefault; + documentation: z.ZodOptional; + description: z.ZodOptional; + tags: z.ZodOptional>; + }, z.core.$strip>>; + }, z.core.$strip>>; + validation: z.ZodOptional; + mode: z.ZodDefault>; + validateBody: z.ZodDefault; + validateQuery: z.ZodDefault; + validateParams: z.ZodDefault; + validateHeaders: z.ZodDefault; + includeFieldErrors: z.ZodDefault; + errorPrefix: z.ZodOptional; + schemaRegistry: z.ZodOptional; + }, z.core.$strip>>; + responseEnvelope: z.ZodOptional; + includeMetadata: z.ZodDefault; + includeTimestamp: z.ZodDefault; + includeRequestId: z.ZodDefault; + includeDuration: z.ZodDefault; + includeTraceId: z.ZodDefault; + customMetadata: z.ZodOptional>; + skipIfWrapped: z.ZodDefault; + }, z.core.$strip>>; + errorHandling: z.ZodOptional; + includeStackTrace: z.ZodDefault; + logErrors: z.ZodDefault; + exposeInternalErrors: z.ZodDefault; + includeRequestId: z.ZodDefault; + includeTimestamp: z.ZodDefault; + includeDocumentation: z.ZodDefault; + documentationBaseUrl: z.ZodOptional; + customErrorMessages: z.ZodOptional>; + redactFields: z.ZodOptional>; + }, z.core.$strip>>; + openApi: z.ZodOptional; + version: z.ZodDefault>; + title: z.ZodDefault; + description: z.ZodOptional; + apiVersion: z.ZodDefault; + outputPath: z.ZodDefault; + uiPath: z.ZodDefault; + uiFramework: z.ZodDefault>; + includeInternal: z.ZodDefault; + generateSchemas: z.ZodDefault; + includeExamples: z.ZodDefault; + servers: z.ZodOptional; + }, z.core.$strip>>>; + contact: z.ZodOptional; + url: z.ZodOptional; + email: z.ZodOptional; + }, z.core.$strip>>; + license: z.ZodOptional; + }, z.core.$strip>>; + securitySchemes: z.ZodOptional; + scheme: z.ZodOptional; + bearerFormat: z.ZodOptional; + }, z.core.$strip>>>; + }, z.core.$strip>>; + globalMiddleware: z.ZodOptional; + enabled: z.ZodDefault; + order: z.ZodDefault; + config: z.ZodOptional>; + paths: z.ZodOptional>; + exclude: z.ZodOptional>; + }, z.core.$strip>>; + }, z.core.$strip>>>; + cors: z.ZodOptional; + origins: z.ZodOptional>; + methods: z.ZodOptional>>; + credentials: z.ZodDefault; + }, z.core.$strip>>; + performance: z.ZodOptional; + enableETag: z.ZodDefault; + enableCaching: z.ZodDefault; + defaultCacheTtlSeconds: z.ZodDefault; + defaultCacheTtl: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip> & { + create: >(config: T) => T; +}; + +// ── RestApiPluginConfig (type) ── +type RestApiPluginConfig = z.input; + +// ── RestApiPluginConfigParsed (type) ── +type RestApiPluginConfigParsed = z.infer; + +// ── RestApiPluginConfigSchema (const) ── +declare const RestApiPluginConfigSchema: z.ZodObject<{ + enabled: z.ZodDefault; + basePath: z.ZodDefault; + version: z.ZodDefault; + routes: z.ZodArray; + methods: z.ZodOptional>; + endpoints: z.ZodOptional; + path: z.ZodString; + handler: z.ZodString; + category: z.ZodEnum<{ + metadata: "metadata"; + data: "data"; + batch: "batch"; + realtime: "realtime"; + discovery: "discovery"; + ui: "ui"; + automation: "automation"; + analytics: "analytics"; + ai: "ai"; + i18n: "i18n"; + permission: "permission"; + notification: "notification"; + }>; + public: z.ZodDefault; + permissions: z.ZodOptional>; + summary: z.ZodOptional; + description: z.ZodOptional; + tags: z.ZodOptional>; + requestSchema: z.ZodOptional; + responseSchema: z.ZodOptional; + timeoutMs: z.ZodOptional; + rateLimit: z.ZodOptional; + cacheable: z.ZodDefault; + cacheTtlSeconds: z.ZodOptional; + timeout: z.ZodOptional; + cacheTtl: z.ZodOptional; + handlerStatus: z.ZodOptional; + }, z.core.$strip>>>; + middleware: z.ZodOptional; + enabled: z.ZodDefault; + order: z.ZodDefault; + config: z.ZodOptional>; + paths: z.ZodOptional>; + exclude: z.ZodOptional>; + }, z.core.$strip>>; + }, z.core.$strip>>>; + authRequired: z.ZodDefault; + documentation: z.ZodOptional; + description: z.ZodOptional; + tags: z.ZodOptional>; + }, z.core.$strip>>; + }, z.core.$strip>>; + validation: z.ZodOptional; + mode: z.ZodDefault>; + validateBody: z.ZodDefault; + validateQuery: z.ZodDefault; + validateParams: z.ZodDefault; + validateHeaders: z.ZodDefault; + includeFieldErrors: z.ZodDefault; + errorPrefix: z.ZodOptional; + schemaRegistry: z.ZodOptional; + }, z.core.$strip>>; + responseEnvelope: z.ZodOptional; + includeMetadata: z.ZodDefault; + includeTimestamp: z.ZodDefault; + includeRequestId: z.ZodDefault; + includeDuration: z.ZodDefault; + includeTraceId: z.ZodDefault; + customMetadata: z.ZodOptional>; + skipIfWrapped: z.ZodDefault; + }, z.core.$strip>>; + errorHandling: z.ZodOptional; + includeStackTrace: z.ZodDefault; + logErrors: z.ZodDefault; + exposeInternalErrors: z.ZodDefault; + includeRequestId: z.ZodDefault; + includeTimestamp: z.ZodDefault; + includeDocumentation: z.ZodDefault; + documentationBaseUrl: z.ZodOptional; + customErrorMessages: z.ZodOptional>; + redactFields: z.ZodOptional>; + }, z.core.$strip>>; + openApi: z.ZodOptional; + version: z.ZodDefault>; + title: z.ZodDefault; + description: z.ZodOptional; + apiVersion: z.ZodDefault; + outputPath: z.ZodDefault; + uiPath: z.ZodDefault; + uiFramework: z.ZodDefault>; + includeInternal: z.ZodDefault; + generateSchemas: z.ZodDefault; + includeExamples: z.ZodDefault; + servers: z.ZodOptional; + }, z.core.$strip>>>; + contact: z.ZodOptional; + url: z.ZodOptional; + email: z.ZodOptional; + }, z.core.$strip>>; + license: z.ZodOptional; + }, z.core.$strip>>; + securitySchemes: z.ZodOptional; + scheme: z.ZodOptional; + bearerFormat: z.ZodOptional; + }, z.core.$strip>>>; + }, z.core.$strip>>; + globalMiddleware: z.ZodOptional; + enabled: z.ZodDefault; + order: z.ZodDefault; + config: z.ZodOptional>; + paths: z.ZodOptional>; + exclude: z.ZodOptional>; + }, z.core.$strip>>; + }, z.core.$strip>>>; + cors: z.ZodOptional; + origins: z.ZodOptional>; + methods: z.ZodOptional>>; + credentials: z.ZodDefault; + }, z.core.$strip>>; + performance: z.ZodOptional; + enableETag: z.ZodDefault; + enableCaching: z.ZodDefault; + defaultCacheTtlSeconds: z.ZodDefault; + defaultCacheTtl: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── RestApiRouteCategory (const) ── +declare const RestApiRouteCategory: z.ZodEnum<{ + metadata: "metadata"; + data: "data"; + batch: "batch"; + realtime: "realtime"; + discovery: "discovery"; + ui: "ui"; + automation: "automation"; + analytics: "analytics"; + ai: "ai"; + i18n: "i18n"; + permission: "permission"; + notification: "notification"; +}>; + +// ── RestApiRouteCategory (type) ── +type RestApiRouteCategory = z.input; + +// ── RestApiRouteRegistration (const) ── +declare const RestApiRouteRegistration: z.ZodObject<{ + prefix: z.ZodString; + service: z.ZodString; + category: z.ZodEnum<{ + metadata: "metadata"; + data: "data"; + batch: "batch"; + realtime: "realtime"; + discovery: "discovery"; + ui: "ui"; + automation: "automation"; + analytics: "analytics"; + ai: "ai"; + i18n: "i18n"; + permission: "permission"; + notification: "notification"; + }>; + methods: z.ZodOptional>; + endpoints: z.ZodOptional; + path: z.ZodString; + handler: z.ZodString; + category: z.ZodEnum<{ + metadata: "metadata"; + data: "data"; + batch: "batch"; + realtime: "realtime"; + discovery: "discovery"; + ui: "ui"; + automation: "automation"; + analytics: "analytics"; + ai: "ai"; + i18n: "i18n"; + permission: "permission"; + notification: "notification"; + }>; + public: z.ZodDefault; + permissions: z.ZodOptional>; + summary: z.ZodOptional; + description: z.ZodOptional; + tags: z.ZodOptional>; + requestSchema: z.ZodOptional; + responseSchema: z.ZodOptional; + timeoutMs: z.ZodOptional; + rateLimit: z.ZodOptional; + cacheable: z.ZodDefault; + cacheTtlSeconds: z.ZodOptional; + timeout: z.ZodOptional; + cacheTtl: z.ZodOptional; + handlerStatus: z.ZodOptional; + }, z.core.$strip>>>; + middleware: z.ZodOptional; + enabled: z.ZodDefault; + order: z.ZodDefault; + config: z.ZodOptional>; + paths: z.ZodOptional>; + exclude: z.ZodOptional>; + }, z.core.$strip>>; + }, z.core.$strip>>>; + authRequired: z.ZodDefault; + documentation: z.ZodOptional; + description: z.ZodOptional; + tags: z.ZodOptional>; + }, z.core.$strip>>; +}, z.core.$strip> & { + create: >(registration: T) => T; +}; + +// ── RestApiRouteRegistration (type) ── +type RestApiRouteRegistration = z.input; + +// ── RestApiRouteRegistrationParsed (type) ── +type RestApiRouteRegistrationParsed = z.infer; + +// ── RestApiRouteRegistrationSchema (const) ── +declare const RestApiRouteRegistrationSchema: z.ZodObject<{ + prefix: z.ZodString; + service: z.ZodString; + category: z.ZodEnum<{ + metadata: "metadata"; + data: "data"; + batch: "batch"; + realtime: "realtime"; + discovery: "discovery"; + ui: "ui"; + automation: "automation"; + analytics: "analytics"; + ai: "ai"; + i18n: "i18n"; + permission: "permission"; + notification: "notification"; + }>; + methods: z.ZodOptional>; + endpoints: z.ZodOptional; + path: z.ZodString; + handler: z.ZodString; + category: z.ZodEnum<{ + metadata: "metadata"; + data: "data"; + batch: "batch"; + realtime: "realtime"; + discovery: "discovery"; + ui: "ui"; + automation: "automation"; + analytics: "analytics"; + ai: "ai"; + i18n: "i18n"; + permission: "permission"; + notification: "notification"; + }>; + public: z.ZodDefault; + permissions: z.ZodOptional>; + summary: z.ZodOptional; + description: z.ZodOptional; + tags: z.ZodOptional>; + requestSchema: z.ZodOptional; + responseSchema: z.ZodOptional; + timeoutMs: z.ZodOptional; + rateLimit: z.ZodOptional; + cacheable: z.ZodDefault; + cacheTtlSeconds: z.ZodOptional; + timeout: z.ZodOptional; + cacheTtl: z.ZodOptional; + handlerStatus: z.ZodOptional; + }, z.core.$strip>>>; + middleware: z.ZodOptional; + enabled: z.ZodDefault; + order: z.ZodDefault; + config: z.ZodOptional>; + paths: z.ZodOptional>; + exclude: z.ZodOptional>; + }, z.core.$strip>>; + }, z.core.$strip>>>; + authRequired: z.ZodDefault; + documentation: z.ZodOptional; + description: z.ZodOptional; + tags: z.ZodOptional>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── RestQueryAdapter (type) ── +type RestQueryAdapter = z.input; + +// ── RestQueryAdapterParsed (type) ── +type RestQueryAdapterParsed = z.infer; + +// ── RestQueryAdapterSchema (const) ── +declare const RestQueryAdapterSchema: z.ZodObject<{ + filterStyle: z.ZodDefault>; + pagination: z.ZodOptional; + offsetParam: z.ZodDefault; + cursorParam: z.ZodDefault; + pageParam: z.ZodDefault; + }, z.core.$strip>>; + sorting: z.ZodOptional; + format: z.ZodDefault>; + }, z.core.$strip>>; + fieldsParam: z.ZodDefault; +}, z.core.$strip>; + +// ── RestServerConfig (const) ── +declare const RestServerConfig: z.ZodObject<{ + api: z.ZodOptional; + basePath: z.ZodDefault; + apiPath: z.ZodOptional; + enableCrud: z.ZodDefault; + enableMetadata: z.ZodDefault; + enableUi: z.ZodDefault; + enableBatch: z.ZodDefault; + enableDiscovery: z.ZodDefault; + enableOpenApi: z.ZodDefault; + enableSearch: z.ZodDefault; + enableProjectScoping: z.ZodDefault; + projectResolution: z.ZodDefault>; + requireAuth: z.ZodOptional; + documentation: z.ZodOptional; + title: z.ZodDefault; + description: z.ZodOptional; + version: z.ZodOptional; + termsOfService: z.ZodOptional; + contact: z.ZodOptional; + url: z.ZodOptional; + email: z.ZodOptional; + }, z.core.$strip>>; + license: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + responseFormat: z.ZodOptional; + includeMetadata: z.ZodDefault; + includePagination: z.ZodDefault; + }, z.core.$strip>>; + }, z.core.$strip>>; + crud: z.ZodOptional; + read: z.ZodDefault; + update: z.ZodDefault; + delete: z.ZodDefault; + list: z.ZodDefault; + }, z.core.$strip>>; + patterns: z.ZodOptional; + dataPrefix: z.ZodDefault; + objectParamStyle: z.ZodOptional; + }, z.core.$strip>>; + metadata: z.ZodOptional; + enableCache: z.ZodDefault; + cacheTtl: z.ZodOptional; + maskObjectFields: z.ZodDefault; + endpoints: z.ZodOptional; + items: z.ZodDefault; + item: z.ZodDefault; + maintenance: z.ZodDefault; + schema: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + batch: z.ZodOptional; + enableBatchEndpoint: z.ZodDefault; + operations: z.ZodOptional; + updateMany: z.ZodDefault; + deleteMany: z.ZodDefault; + upsertMany: z.ZodOptional; + }, z.core.$strip>>; + defaultAtomic: z.ZodOptional; + }, z.core.$strip>>; + routes: z.ZodOptional; + excludeObjects: z.ZodOptional; + nameTransform: z.ZodOptional; + overrides: z.ZodOptional; + }, z.core.$strip>>; + openApi31: z.ZodOptional; +}, z.core.$strip> & { + create: >(config: T) => T; +}; + +// ── RestServerConfig (type) ── +type RestServerConfig = z.input; + +// ── RestServerConfigParsed (type) ── +type RestServerConfigParsed = z.infer; + +// ── RestServerConfigSchema (const) ── +declare const RestServerConfigSchema: z.ZodObject<{ + api: z.ZodOptional; + basePath: z.ZodDefault; + apiPath: z.ZodOptional; + enableCrud: z.ZodDefault; + enableMetadata: z.ZodDefault; + enableUi: z.ZodDefault; + enableBatch: z.ZodDefault; + enableDiscovery: z.ZodDefault; + enableOpenApi: z.ZodDefault; + enableSearch: z.ZodDefault; + enableProjectScoping: z.ZodDefault; + projectResolution: z.ZodDefault>; + requireAuth: z.ZodOptional; + documentation: z.ZodOptional; + title: z.ZodDefault; + description: z.ZodOptional; + version: z.ZodOptional; + termsOfService: z.ZodOptional; + contact: z.ZodOptional; + url: z.ZodOptional; + email: z.ZodOptional; + }, z.core.$strip>>; + license: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + responseFormat: z.ZodOptional; + includeMetadata: z.ZodDefault; + includePagination: z.ZodDefault; + }, z.core.$strip>>; + }, z.core.$strip>>; + crud: z.ZodOptional; + read: z.ZodDefault; + update: z.ZodDefault; + delete: z.ZodDefault; + list: z.ZodDefault; + }, z.core.$strip>>; + patterns: z.ZodOptional; + dataPrefix: z.ZodDefault; + objectParamStyle: z.ZodOptional; + }, z.core.$strip>>; + metadata: z.ZodOptional; + enableCache: z.ZodDefault; + cacheTtl: z.ZodOptional; + maskObjectFields: z.ZodDefault; + endpoints: z.ZodOptional; + items: z.ZodDefault; + item: z.ZodDefault; + maintenance: z.ZodDefault; + schema: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + batch: z.ZodOptional; + enableBatchEndpoint: z.ZodDefault; + operations: z.ZodOptional; + updateMany: z.ZodDefault; + deleteMany: z.ZodDefault; + upsertMany: z.ZodOptional; + }, z.core.$strip>>; + defaultAtomic: z.ZodOptional; + }, z.core.$strip>>; + routes: z.ZodOptional; + excludeObjects: z.ZodOptional; + nameTransform: z.ZodOptional; + overrides: z.ZodOptional; + }, z.core.$strip>>; + openApi31: z.ZodOptional; +}, z.core.$strip>; + +// ── ResumeFailureDetails (type) ── +type ResumeFailureDetails = z.input; + +// ── ResumeFailureDetailsParsed (type) ── +type ResumeFailureDetailsParsed = z.infer; + +// ── ResumeFailureDetailsSchema (const) ── +declare const ResumeFailureDetailsSchema: z.ZodObject<{ + runId: z.ZodString; + status: z.ZodOptional>; + repairable: z.ZodBoolean; +}, z.core.$strip>; + +// ── RetryStrategy (const) ── +declare const RetryStrategy: z.ZodEnum<{ + no_retry: "no_retry"; + retry_immediate: "retry_immediate"; + retry_backoff: "retry_backoff"; + retry_after: "retry_after"; +}>; + +// ── RetryStrategy (type) ── +type RetryStrategy = z.input; + +// ── RevertPackageCommitResponse (type) ── +type RevertPackageCommitResponse = z.input; + +// ── RevertPackageCommitResponseParsed (type) ── +type RevertPackageCommitResponseParsed = z.infer; + +// ── RevertPackageCommitResponseSchema (const) ── +declare const RevertPackageCommitResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + revertedCount: z.ZodNumber; + failedCount: z.ZodNumber; + reverted: z.ZodArray; + }, z.core.$strip>>; + failed: z.ZodArray; + }, z.core.$strip>>; + revertCommitId: z.ZodOptional; +}, z.core.$strip>; + +// ── RollbackMetaItemResponse (type) ── +type RollbackMetaItemResponse = z.input; + +// ── RollbackMetaItemResponseParsed (type) ── +type RollbackMetaItemResponseParsed = z.infer; + +// ── RollbackMetaItemResponseSchema (const) ── +declare const RollbackMetaItemResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + version: z.ZodString; + seq: z.ZodNumber; + restoredFromVersion: z.ZodNumber; + message: z.ZodOptional; +}, z.core.$strip>; + +// ── RollbackToPackageCommitResponse (type) ── +type RollbackToPackageCommitResponse = z.input; + +// ── RollbackToPackageCommitResponseParsed (type) ── +type RollbackToPackageCommitResponseParsed = z.infer; + +// ── RollbackToPackageCommitResponseSchema (const) ── +declare const RollbackToPackageCommitResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + revertedCommits: z.ZodArray; + failed: z.ZodArray>; +}, z.core.$strip>; + +// ── RouteCategory (const) ── +declare const RouteCategory: z.ZodEnum<{ + system: "system"; + auth: "auth"; + api: "api"; + static: "static"; + webhook: "webhook"; + plugin: "plugin"; +}>; + +// ── RouteCategory (type) ── +type RouteCategory = z.input; + +// ── RouteDefinition (type) ── +type RouteDefinition = z.input; + +// ── RouteDefinitionParsed (type) ── +type RouteDefinitionParsed = z.infer; + +// ── RouteDefinitionSchema (const) ── +declare const RouteDefinitionSchema: z.ZodObject<{ + method: z.ZodEnum<{ + GET: "GET"; + POST: "POST"; + PUT: "PUT"; + DELETE: "DELETE"; + PATCH: "PATCH"; + HEAD: "HEAD"; + OPTIONS: "OPTIONS"; + }>; + path: z.ZodString; + category: z.ZodDefault>; + handler: z.ZodString; + summary: z.ZodOptional; + description: z.ZodOptional; + public: z.ZodDefault; + permissions: z.ZodOptional>; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + rateLimit: z.ZodOptional; +}, z.core.$strip>; + +// ── RouteGenerationConfig (type) ── +type RouteGenerationConfig = z.input; + +// ── RouteGenerationConfigParsed (type) ── +type RouteGenerationConfigParsed = z.infer; + +// ── RouteGenerationConfigSchema (const) ── +declare const RouteGenerationConfigSchema: z.ZodObject<{ + includeObjects: z.ZodOptional; + excludeObjects: z.ZodOptional; + nameTransform: z.ZodOptional; + overrides: z.ZodOptional; +}, z.core.$strip>; + +// ── RouteHealthEntry (type) ── +type RouteHealthEntry = z.input; + +// ── RouteHealthEntrySchema (const) ── +declare const RouteHealthEntrySchema: z.ZodObject<{ + route: z.ZodString; + method: z.ZodEnum<{ + GET: "GET"; + POST: "POST"; + PUT: "PUT"; + DELETE: "DELETE"; + PATCH: "PATCH"; + HEAD: "HEAD"; + OPTIONS: "OPTIONS"; + }>; + service: z.ZodString; + declared: z.ZodBoolean; + handlerRegistered: z.ZodBoolean; + healthStatus: z.ZodEnum<{ + missing: "missing"; + pass: "pass"; + fail: "fail"; + skip: "skip"; + }>; + message: z.ZodOptional; +}, z.core.$strip>; + +// ── RouteHealthReport (type) ── +type RouteHealthReport = z.input; + +// ── RouteHealthReportSchema (const) ── +declare const RouteHealthReportSchema: z.ZodObject<{ + timestamp: z.ZodString; + adapter: z.ZodString; + totalDeclared: z.ZodNumber; + totalRegistered: z.ZodNumber; + totalMissing: z.ZodNumber; + routes: z.ZodArray; + service: z.ZodString; + declared: z.ZodBoolean; + handlerRegistered: z.ZodBoolean; + healthStatus: z.ZodEnum<{ + missing: "missing"; + pass: "pass"; + fail: "fail"; + skip: "skip"; + }>; + message: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── RouterConfig (type) ── +type RouterConfig = z.input; + +// ── RouterConfigParsed (type) ── +type RouterConfigParsed = z.infer; + +// ── RouterConfigSchema (const) ── +declare const RouterConfigSchema: z.ZodObject<{ + basePath: z.ZodDefault; + mounts: z.ZodDefault; + metadata: z.ZodDefault; + auth: z.ZodDefault; + automation: z.ZodDefault; + storage: z.ZodDefault; + analytics: z.ZodDefault; + ui: z.ZodDefault; + realtime: z.ZodDefault; + notifications: z.ZodDefault; + ai: z.ZodDefault; + i18n: z.ZodDefault; + packages: z.ZodDefault; + }, z.core.$strip>>; + cors: z.ZodOptional; + origins: z.ZodDefault]>>; + methods: z.ZodOptional>>; + credentials: z.ZodDefault; + maxAge: z.ZodOptional; + }, z.core.$strip>>; + staticMounts: z.ZodOptional; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── RuntimeAuthoringIssue (type) ── +type RuntimeAuthoringIssue = z.input; + +// ── RuntimeAuthoringIssueSchema (const) ── +declare const RuntimeAuthoringIssueSchema: z.ZodObject<{ + rule: z.ZodString; + path: z.ZodString; + where: z.ZodString; + message: z.ZodString; + hint: z.ZodString; + severity: z.ZodEnum<{ + error: "error"; + warning: "warning"; + info: "info"; + }>; +}, z.core.$strip>; + +// ── SERVICE_SELF_INFO_KEY (const) ── +declare const SERVICE_SELF_INFO_KEY: "__serviceInfo"; + +// ── STANDARD_SYNONYM_WAIVERS (const) ── +declare const STANDARD_SYNONYM_WAIVERS: readonly StandardSynonymWaiver[]; + +// ── SaveMetaItemRequest (type) ── +type SaveMetaItemRequest = z.input; + +// ── SaveMetaItemRequestSchema (const) ── +declare const SaveMetaItemRequestSchema: z.ZodObject<{ + type: z.ZodString; + name: z.ZodString; + item: z.ZodUnknown; + organizationId: z.ZodOptional; + parentVersion: z.ZodOptional>; + actor: z.ZodOptional; + force: z.ZodOptional; + mode: z.ZodOptional>; + packageId: z.ZodOptional>; + writeFace: z.ZodOptional>; +}, z.core.$strip>; + +// ── SaveMetaItemResponse (type) ── +type SaveMetaItemResponse = z.input; + +// ── SaveMetaItemResponseSchema (const) ── +declare const SaveMetaItemResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + version: z.ZodString; + seq: z.ZodNumber; + state: z.ZodEnum<{ + active: "active"; + draft: "draft"; + }>; + projectionApplied: z.ZodOptional; + }, z.core.$strip>>; + advisories: z.ZodOptional; + }, z.core.$strip>>>; + message: z.ZodOptional; +}, z.core.$strip>; + +// ── ScheduleExportRequest (type) ── +type ScheduleExportRequest = z.input; + +// ── ScheduleExportRequestParsed (type) ── +type ScheduleExportRequestParsed = z.infer; + +// ── ScheduleExportRequestSchema (const) ── +declare const ScheduleExportRequestSchema: z.ZodObject<{ + name: z.ZodString; + label: z.ZodOptional; + object: z.ZodString; + format: z.ZodDefault>; + fields: z.ZodOptional>; + filter: z.ZodOptional>; + templateId: z.ZodOptional; + schedule: z.ZodObject<{ + timezone: z.ZodDefault; + }, z.core.$strip>; + delivery: z.ZodObject<{ + method: z.ZodEnum<{ + email: "email"; + storage: "storage"; + webhook: "webhook"; + }>; + recipients: z.ZodOptional>; + storagePath: z.ZodOptional; + webhookUrl: z.ZodOptional; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── ScheduleExportResponse (type) ── +type ScheduleExportResponse = z.input; + +// ── ScheduleExportResponseParsed (type) ── +type ScheduleExportResponseParsed = z.infer; + +// ── ScheduleExportResponseSchema (const) ── +declare const ScheduleExportResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + id: z.ZodString; + name: z.ZodString; + enabled: z.ZodBoolean; + nextRunAt: z.ZodOptional; + createdAt: z.ZodString; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── ScheduledExport (type) ── +type ScheduledExport = z.input; + +// ── ScheduledExportParsed (type) ── +type ScheduledExportParsed = z.infer; + +// ── ScheduledExportSchema (const) ── +declare const ScheduledExportSchema: z.ZodObject<{ + id: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + object: z.ZodString; + format: z.ZodDefault>; + fields: z.ZodOptional>; + filter: z.ZodOptional>; + templateId: z.ZodOptional; + schedule: z.ZodObject<{ + timezone: z.ZodDefault; + }, z.core.$strip>; + delivery: z.ZodObject<{ + method: z.ZodEnum<{ + email: "email"; + storage: "storage"; + webhook: "webhook"; + }>; + recipients: z.ZodOptional>; + storagePath: z.ZodOptional; + webhookUrl: z.ZodOptional; + }, z.core.$strip>; + enabled: z.ZodDefault; + lastRunAt: z.ZodOptional; + nextRunAt: z.ZodOptional; + createdAt: z.ZodOptional; + createdBy: z.ZodOptional; +}, z.core.$strip>; + +// ── SearchAllHit (type) ── +type SearchAllHit = z.input; + +// ── SearchAllHitSchema (const) ── +declare const SearchAllHitSchema: z.ZodObject<{ + object: z.ZodString; + id: z.ZodString; + title: z.ZodString; + snippet: z.ZodOptional; + record: z.ZodRecord; +}, z.core.$strip>; + +// ── SearchAllPageHit (type) ── +type SearchAllPageHit = z.input; + +// ── SearchAllPageHitSchema (const) ── +declare const SearchAllPageHitSchema: z.ZodObject<{ + kind: z.ZodLiteral<"page">; + name: z.ZodString; + title: z.ZodString; + snippet: z.ZodOptional; + pageType: z.ZodOptional; +}, z.core.$strip>; + +// ── SearchAllResponse (type) ── +type SearchAllResponse = z.input; + +// ── SearchAllResponseSchema (const) ── +declare const SearchAllResponseSchema: z.ZodObject<{ + query: z.ZodString; + hits: z.ZodArray; + record: z.ZodRecord; + }, z.core.$strip>>; + pages: z.ZodArray; + name: z.ZodString; + title: z.ZodString; + snippet: z.ZodOptional; + pageType: z.ZodOptional; + }, z.core.$strip>>; + totalObjects: z.ZodNumber; + totalHits: z.ZodNumber; + truncated: z.ZodBoolean; +}, z.core.$strip>; + +// ── ServiceInfo (type) ── +type ServiceInfo = z.input; + +// ── ServiceInfoSchema (const) ── +declare const ServiceInfoSchema: z.ZodObject<{ + enabled: z.ZodBoolean; + status: z.ZodEnum<{ + available: "available"; + registered: "registered"; + unavailable: "unavailable"; + degraded: "degraded"; + stub: "stub"; + }>; + handlerReady: z.ZodOptional; + route: z.ZodOptional; + provider: z.ZodOptional; + version: z.ZodOptional; + message: z.ZodOptional; + rateLimit: z.ZodOptional; + requestsPerHour: z.ZodOptional; + burstLimit: z.ZodOptional; + retryAfterMs: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── ServiceSelfInfo (type) ── +type ServiceSelfInfo = z.input; + +// ── ServiceSelfInfoSchema (const) ── +declare const ServiceSelfInfoSchema: z.ZodObject<{ + status: z.ZodEnum<{ + degraded: "degraded"; + stub: "stub"; + }>; + handlerReady: z.ZodOptional; + message: z.ZodOptional; +}, z.core.$strip>; + +// ── ServiceStatus (const) ── +declare const ServiceStatus: z.ZodEnum<{ + available: "available"; + registered: "registered"; + unavailable: "unavailable"; + degraded: "degraded"; + stub: "stub"; +}>; + +// ── ServiceStatus (type) ── +type ServiceStatus = z.input; + +// ── Session (type) ── +type Session = z.input; + +// ── SessionResponse (type) ── +type SessionResponse = z.input; + +// ── SessionResponseParsed (type) ── +type SessionResponseParsed = z.infer; + +// ── SessionResponseSchema (const) ── +declare const SessionResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + session: z.ZodObject<{ + id: z.ZodString; + expiresAt: z.ZodString; + token: z.ZodOptional; + ipAddress: z.ZodOptional; + userAgent: z.ZodOptional; + userId: z.ZodString; + }, z.core.$strip>; + user: z.ZodObject<{ + id: z.ZodString; + email: z.ZodString; + emailVerified: z.ZodDefault; + name: z.ZodString; + image: z.ZodOptional>; + username: z.ZodOptional; + roles: z.ZodDefault>>; + tenantId: z.ZodOptional; + language: z.ZodOptional; + timezone: z.ZodOptional; + createdAt: z.ZodOptional; + updatedAt: z.ZodOptional; + }, z.core.$strip>; + token: z.ZodOptional; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── SessionSchema (const) ── +declare const SessionSchema: z.ZodObject<{ + id: z.ZodString; + expiresAt: z.ZodString; + token: z.ZodOptional; + ipAddress: z.ZodOptional; + userAgent: z.ZodOptional; + userId: z.ZodString; +}, z.core.$strip>; + +// ── SessionUser (type) ── +type SessionUser = z.input; + +// ── SessionUserParsed (type) ── +type SessionUserParsed = z.infer; + +// ── SessionUserSchema (const) ── +declare const SessionUserSchema: z.ZodObject<{ + id: z.ZodString; + email: z.ZodString; + emailVerified: z.ZodDefault; + name: z.ZodString; + image: z.ZodOptional>; + username: z.ZodOptional; + roles: z.ZodDefault>>; + tenantId: z.ZodOptional; + language: z.ZodOptional; + timezone: z.ZodOptional; + createdAt: z.ZodOptional; + updatedAt: z.ZodOptional; +}, z.core.$strip>; + +// ── SetPresenceRequest (type) ── +type SetPresenceRequest = z.input; + +// ── SetPresenceRequestSchema (const) ── +declare const SetPresenceRequestSchema: z.ZodObject<{ + channel: z.ZodString; + state: z.ZodObject<{ + userId: z.ZodString; + status: z.ZodEnum<{ + online: "online"; + away: "away"; + busy: "busy"; + offline: "offline"; + }>; + lastSeen: z.ZodString; + metadata: z.ZodOptional>; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── SetPresenceResponse (type) ── +type SetPresenceResponse = z.input; + +// ── SetPresenceResponseSchema (const) ── +declare const SetPresenceResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; +}, z.core.$strip>; + +// ── SimpleCursorPosition (type) ── +type SimpleCursorPosition = z.input; + +// ── SimpleCursorPositionSchema (const) ── +declare const SimpleCursorPositionSchema: z.ZodObject<{ + userId: z.ZodString; + recordId: z.ZodString; + fieldName: z.ZodString; + position: z.ZodNumber; + selection: z.ZodOptional>; +}, z.core.$strip>; + +// ── SimplePresenceState (type) ── +type SimplePresenceState = z.input; + +// ── SimplePresenceStateSchema (const) ── +declare const SimplePresenceStateSchema: z.ZodObject<{ + userId: z.ZodString; + userName: z.ZodString; + status: z.ZodEnum<{ + online: "online"; + away: "away"; + offline: "offline"; + }>; + lastSeenAt: z.ZodNumber; + lastSeen: z.ZodOptional; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── SingleRecordResponse (type) ── +type SingleRecordResponse = z.input; + +// ── SingleRecordResponseParsed (type) ── +type SingleRecordResponseParsed = z.infer; + +// ── SingleRecordResponseSchema (const) ── +declare const SingleRecordResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodRecord; +}, z.core.$strip>; + +// ── StandardApiContracts (const) ── +declare const StandardApiContracts: { + create: { + input: z.ZodObject<{ + data: z.ZodRecord; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodRecord; + }, z.core.$strip>; + }; + delete: { + input: z.ZodObject<{ + id: z.ZodString; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + id: z.ZodString; + }, z.core.$strip>; + }; + get: { + input: z.ZodObject<{ + id: z.ZodString; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodRecord; + }, z.core.$strip>; + }; + update: { + input: z.ZodObject<{ + data: z.ZodRecord; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodRecord; + }, z.core.$strip>; + }; + list: { + input: z.ZodType>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodArray>; + pagination: z.ZodObject<{ + total: z.ZodOptional; + limit: z.ZodOptional; + offset: z.ZodOptional; + cursor: z.ZodOptional; + nextCursor: z.ZodOptional; + hasMore: z.ZodBoolean; + }, z.core.$strip>; + }, z.core.$strip>; + }; + bulkCreate: { + input: z.ZodObject<{ + records: z.ZodArray>; + allOrNone: z.ZodDefault; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodArray; + success: z.ZodBoolean; + errors: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>>; + index: z.ZodOptional; + data: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + }; + bulkUpdate: { + input: z.ZodObject<{ + records: z.ZodArray>; + allOrNone: z.ZodDefault; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodArray; + success: z.ZodBoolean; + errors: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>>; + index: z.ZodOptional; + data: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + }; + bulkUpsert: { + input: z.ZodObject<{ + records: z.ZodArray>; + allOrNone: z.ZodDefault; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodArray; + success: z.ZodBoolean; + errors: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>>; + index: z.ZodOptional; + data: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + }; + bulkDelete: { + input: z.ZodObject<{ + ids: z.ZodArray; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodArray; + success: z.ZodBoolean; + errors: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>>; + index: z.ZodOptional; + data: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + }; +}; + +// ── StandardErrorCode (const) ── +declare const StandardErrorCode: z.ZodEnum<{ + INVALID_FILTER: "INVALID_FILTER"; + VALIDATION_ERROR: "VALIDATION_ERROR"; + INVALID_FIELD: "INVALID_FIELD"; + MISSING_REQUIRED_FIELD: "MISSING_REQUIRED_FIELD"; + INVALID_FORMAT: "INVALID_FORMAT"; + VALUE_TOO_LONG: "VALUE_TOO_LONG"; + VALUE_TOO_SHORT: "VALUE_TOO_SHORT"; + VALUE_OUT_OF_RANGE: "VALUE_OUT_OF_RANGE"; + INVALID_REFERENCE: "INVALID_REFERENCE"; + DUPLICATE_VALUE: "DUPLICATE_VALUE"; + INVALID_QUERY: "INVALID_QUERY"; + INVALID_SORT: "INVALID_SORT"; + MAX_RECORDS_EXCEEDED: "MAX_RECORDS_EXCEEDED"; + UNAUTHENTICATED: "UNAUTHENTICATED"; + INVALID_CREDENTIALS: "INVALID_CREDENTIALS"; + EXPIRED_TOKEN: "EXPIRED_TOKEN"; + INVALID_TOKEN: "INVALID_TOKEN"; + SESSION_EXPIRED: "SESSION_EXPIRED"; + MFA_REQUIRED: "MFA_REQUIRED"; + EMAIL_NOT_VERIFIED: "EMAIL_NOT_VERIFIED"; + PERMISSION_DENIED: "PERMISSION_DENIED"; + INSUFFICIENT_PRIVILEGES: "INSUFFICIENT_PRIVILEGES"; + FIELD_NOT_ACCESSIBLE: "FIELD_NOT_ACCESSIBLE"; + RECORD_NOT_ACCESSIBLE: "RECORD_NOT_ACCESSIBLE"; + LICENSE_REQUIRED: "LICENSE_REQUIRED"; + IP_RESTRICTED: "IP_RESTRICTED"; + TIME_RESTRICTED: "TIME_RESTRICTED"; + RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND"; + OBJECT_NOT_FOUND: "OBJECT_NOT_FOUND"; + RECORD_NOT_FOUND: "RECORD_NOT_FOUND"; + FIELD_NOT_FOUND: "FIELD_NOT_FOUND"; + ENDPOINT_NOT_FOUND: "ENDPOINT_NOT_FOUND"; + RESOURCE_CONFLICT: "RESOURCE_CONFLICT"; + CONCURRENT_MODIFICATION: "CONCURRENT_MODIFICATION"; + DELETE_RESTRICTED: "DELETE_RESTRICTED"; + DUPLICATE_RECORD: "DUPLICATE_RECORD"; + LOCK_CONFLICT: "LOCK_CONFLICT"; + METHOD_NOT_ALLOWED: "METHOD_NOT_ALLOWED"; + PRECONDITION_REQUIRED: "PRECONDITION_REQUIRED"; + RATE_LIMIT_EXCEEDED: "RATE_LIMIT_EXCEEDED"; + QUOTA_EXCEEDED: "QUOTA_EXCEEDED"; + CONCURRENT_LIMIT_EXCEEDED: "CONCURRENT_LIMIT_EXCEEDED"; + INTERNAL_ERROR: "INTERNAL_ERROR"; + DATABASE_ERROR: "DATABASE_ERROR"; + TIMEOUT: "TIMEOUT"; + SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE"; + NOT_IMPLEMENTED: "NOT_IMPLEMENTED"; + EXTERNAL_SERVICE_ERROR: "EXTERNAL_SERVICE_ERROR"; + INTEGRATION_ERROR: "INTEGRATION_ERROR"; + WEBHOOK_DELIVERY_FAILED: "WEBHOOK_DELIVERY_FAILED"; +}>; + +// ── StandardErrorCode (type) ── +type StandardErrorCode = z.input; + +// ── StandardSynonymViolation (interface) ── +interface StandardSynonymViolation { + /** The ledger owner key registering the offending code. */ + package: string; + /** The registered code that re-spells a standard member's condition. */ + code: string; + /** The standard-catalog member the code is a synonym of. */ + shadows: StandardErrorCode; +} + +// ── StandardSynonymWaiver (type) ── +type StandardSynonymWaiver = z.input; + +// ── StandardSynonymWaiverSchema (const) ── +declare const StandardSynonymWaiverSchema: z.ZodObject<{ + code: z.ZodString; + shadows: z.ZodEnum<{ + INVALID_FILTER: "INVALID_FILTER"; + VALIDATION_ERROR: "VALIDATION_ERROR"; + INVALID_FIELD: "INVALID_FIELD"; + MISSING_REQUIRED_FIELD: "MISSING_REQUIRED_FIELD"; + INVALID_FORMAT: "INVALID_FORMAT"; + VALUE_TOO_LONG: "VALUE_TOO_LONG"; + VALUE_TOO_SHORT: "VALUE_TOO_SHORT"; + VALUE_OUT_OF_RANGE: "VALUE_OUT_OF_RANGE"; + INVALID_REFERENCE: "INVALID_REFERENCE"; + DUPLICATE_VALUE: "DUPLICATE_VALUE"; + INVALID_QUERY: "INVALID_QUERY"; + INVALID_SORT: "INVALID_SORT"; + MAX_RECORDS_EXCEEDED: "MAX_RECORDS_EXCEEDED"; + UNAUTHENTICATED: "UNAUTHENTICATED"; + INVALID_CREDENTIALS: "INVALID_CREDENTIALS"; + EXPIRED_TOKEN: "EXPIRED_TOKEN"; + INVALID_TOKEN: "INVALID_TOKEN"; + SESSION_EXPIRED: "SESSION_EXPIRED"; + MFA_REQUIRED: "MFA_REQUIRED"; + EMAIL_NOT_VERIFIED: "EMAIL_NOT_VERIFIED"; + PERMISSION_DENIED: "PERMISSION_DENIED"; + INSUFFICIENT_PRIVILEGES: "INSUFFICIENT_PRIVILEGES"; + FIELD_NOT_ACCESSIBLE: "FIELD_NOT_ACCESSIBLE"; + RECORD_NOT_ACCESSIBLE: "RECORD_NOT_ACCESSIBLE"; + LICENSE_REQUIRED: "LICENSE_REQUIRED"; + IP_RESTRICTED: "IP_RESTRICTED"; + TIME_RESTRICTED: "TIME_RESTRICTED"; + RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND"; + OBJECT_NOT_FOUND: "OBJECT_NOT_FOUND"; + RECORD_NOT_FOUND: "RECORD_NOT_FOUND"; + FIELD_NOT_FOUND: "FIELD_NOT_FOUND"; + ENDPOINT_NOT_FOUND: "ENDPOINT_NOT_FOUND"; + RESOURCE_CONFLICT: "RESOURCE_CONFLICT"; + CONCURRENT_MODIFICATION: "CONCURRENT_MODIFICATION"; + DELETE_RESTRICTED: "DELETE_RESTRICTED"; + DUPLICATE_RECORD: "DUPLICATE_RECORD"; + LOCK_CONFLICT: "LOCK_CONFLICT"; + METHOD_NOT_ALLOWED: "METHOD_NOT_ALLOWED"; + PRECONDITION_REQUIRED: "PRECONDITION_REQUIRED"; + RATE_LIMIT_EXCEEDED: "RATE_LIMIT_EXCEEDED"; + QUOTA_EXCEEDED: "QUOTA_EXCEEDED"; + CONCURRENT_LIMIT_EXCEEDED: "CONCURRENT_LIMIT_EXCEEDED"; + INTERNAL_ERROR: "INTERNAL_ERROR"; + DATABASE_ERROR: "DATABASE_ERROR"; + TIMEOUT: "TIMEOUT"; + SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE"; + NOT_IMPLEMENTED: "NOT_IMPLEMENTED"; + EXTERNAL_SERVICE_ERROR: "EXTERNAL_SERVICE_ERROR"; + INTEGRATION_ERROR: "INTEGRATION_ERROR"; + WEBHOOK_DELIVERY_FAILED: "WEBHOOK_DELIVERY_FAILED"; + }>; + reason: z.ZodString; +}, z.core.$strip>; + +// ── StorageApiContracts (const) ── +declare const StorageApiContracts: { + getPresignedUrl: { + method: "POST"; + path: string; + input: z.ZodObject<{ + filename: z.ZodString; + mimeType: z.ZodString; + size: z.ZodNumber; + scope: z.ZodDefault; + bucket: z.ZodOptional; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + uploadUrl: z.ZodString; + downloadUrl: z.ZodOptional; + fileId: z.ZodString; + method: z.ZodEnum<{ + POST: "POST"; + PUT: "PUT"; + }>; + headers: z.ZodOptional>; + expiresIn: z.ZodNumber; + }, z.core.$strip>; + }, z.core.$strip>; + }; + completeUpload: { + method: "POST"; + path: string; + input: z.ZodObject<{ + fileId: z.ZodString; + eTag: z.ZodOptional; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + path: z.ZodString; + name: z.ZodString; + size: z.ZodNumber; + mimeType: z.ZodString; + lastModified: z.ZodString; + created: z.ZodString; + etag: z.ZodOptional; + fileId: z.ZodOptional; + }, z.core.$strip>; + }, z.core.$strip>; + }; + initiateChunkedUpload: { + method: "POST"; + path: string; + input: z.ZodObject<{ + filename: z.ZodString; + mimeType: z.ZodString; + totalSize: z.ZodNumber; + chunkSize: z.ZodDefault; + scope: z.ZodDefault; + bucket: z.ZodOptional; + metadata: z.ZodOptional>; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + uploadId: z.ZodString; + resumeToken: z.ZodString; + fileId: z.ZodString; + totalChunks: z.ZodNumber; + chunkSize: z.ZodNumber; + expiresAt: z.ZodString; + }, z.core.$strip>; + }, z.core.$strip>; + }; + uploadChunk: { + method: "PUT"; + path: string; + input: z.ZodObject<{ + uploadId: z.ZodString; + chunkIndex: z.ZodNumber; + resumeToken: z.ZodString; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + chunkIndex: z.ZodNumber; + eTag: z.ZodString; + bytesReceived: z.ZodNumber; + }, z.core.$strip>; + }, z.core.$strip>; + }; + completeChunkedUpload: { + method: "POST"; + path: string; + input: z.ZodObject<{ + uploadId: z.ZodString; + parts: z.ZodArray>; + }, z.core.$strip>; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + fileId: z.ZodString; + key: z.ZodString; + size: z.ZodNumber; + mimeType: z.ZodString; + eTag: z.ZodOptional; + url: z.ZodOptional; + }, z.core.$strip>; + }, z.core.$strip>; + }; + getUploadProgress: { + method: "GET"; + path: string; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + uploadId: z.ZodString; + fileId: z.ZodString; + filename: z.ZodString; + totalSize: z.ZodNumber; + uploadedSize: z.ZodNumber; + totalChunks: z.ZodNumber; + uploadedChunks: z.ZodNumber; + percentComplete: z.ZodNumber; + status: z.ZodEnum<{ + expired: "expired"; + failed: "failed"; + in_progress: "in_progress"; + completing: "completing"; + completed: "completed"; + }>; + startedAt: z.ZodString; + expiresAt: z.ZodString; + }, z.core.$strip>; + }, z.core.$strip>; + }; + getDownloadUrl: { + method: "GET"; + path: string; + output: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + url: z.ZodString; + }, z.core.$strip>; + }, z.core.$strip>; + }; +}; + +// ── SubscribeMessage (type) ── +type SubscribeMessage = z.input; + +// ── SubscribeMessageSchema (const) ── +declare const SubscribeMessageSchema: z.ZodObject<{ + messageId: z.ZodString; + timestamp: z.ZodString; + type: z.ZodLiteral<"subscribe">; + subscription: z.ZodObject<{ + subscriptionId: z.ZodString; + events: z.ZodArray; + objects: z.ZodOptional>; + filters: z.ZodOptional; + channels: z.ZodOptional>; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── Subscription (type) ── +type Subscription = z.input; + +// ── SubscriptionEvent (type) ── +type SubscriptionEvent = z.input; + +// ── SubscriptionEventSchema (const) ── +declare const SubscriptionEventSchema: z.ZodObject<{ + type: z.ZodEnum<{ + "record.created": "record.created"; + "record.updated": "record.updated"; + "record.deleted": "record.deleted"; + "field.changed": "field.changed"; + }>; + object: z.ZodOptional; + filters: z.ZodOptional; +}, z.core.$strip>; + +// ── SubscriptionSchema (const) ── +declare const SubscriptionSchema: z.ZodObject<{ + id: z.ZodString; + events: z.ZodArray; + object: z.ZodOptional; + filters: z.ZodOptional; + }, z.core.$strip>>; + transport: z.ZodEnum<{ + websocket: "websocket"; + sse: "sse"; + polling: "polling"; + }>; + channel: z.ZodOptional; +}, z.core.$strip>; + +// ── ToggleFlowRequest (type) ── +type ToggleFlowRequest = z.input; + +// ── ToggleFlowRequestSchema (const) ── +declare const ToggleFlowRequestSchema: z.ZodObject<{ + name: z.ZodString; + enabled: z.ZodBoolean; +}, z.core.$strip>; + +// ── ToggleFlowResponse (type) ── +type ToggleFlowResponse = z.input; + +// ── ToggleFlowResponseParsed (type) ── +type ToggleFlowResponseParsed = z.infer; + +// ── ToggleFlowResponseSchema (const) ── +declare const ToggleFlowResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + name: z.ZodString; + enabled: z.ZodBoolean; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── TransportProtocol (const) ── +declare const TransportProtocol: z.ZodEnum<{ + websocket: "websocket"; + sse: "sse"; + polling: "polling"; +}>; + +// ── TransportProtocol (type) ── +type TransportProtocol = z.input; + +// ── TriggerFlowRequest (type) ── +type TriggerFlowRequest = z.input; + +// ── TriggerFlowRequestSchema (const) ── +declare const TriggerFlowRequestSchema: z.ZodObject<{ + name: z.ZodString; + record: z.ZodOptional>; + object: z.ZodOptional; + event: z.ZodOptional; + userId: z.ZodOptional; + params: z.ZodOptional>; +}, z.core.$strip>; + +// ── TriggerFlowResponse (type) ── +type TriggerFlowResponse = z.input; + +// ── TriggerFlowResponseParsed (type) ── +type TriggerFlowResponseParsed = z.infer; + +// ── TriggerFlowResponseSchema (const) ── +declare const TriggerFlowResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + success: z.ZodBoolean; + output: z.ZodOptional; + error: z.ZodOptional; + durationMs: z.ZodOptional; + code: z.ZodOptional>; + status: z.ZodOptional>; + runId: z.ZodOptional; + screen: z.ZodOptional; + description: z.ZodOptional; + fields: z.ZodArray; + type: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + defaultValue: z.ZodOptional; + placeholder: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + inlineHelpText: z.ZodOptional; + reference: z.ZodOptional; + visibleWhen: z.ZodOptional; + }, z.core.$strip>>; + kind: z.ZodOptional>; + objectName: z.ZodOptional; + mode: z.ZodOptional>; + recordId: z.ZodOptional; + defaults: z.ZodOptional>; + idVariable: z.ZodOptional; + }, z.core.$strip>>; + successMessage: z.ZodOptional; + errorMessage: z.ZodOptional; + refusalMessage: z.ZodOptional; + summary: z.ZodOptional; + failed: z.ZodOptional; + nodes: z.ZodArray; + status: z.ZodEnum<{ + success: "success"; + skipped: "skipped"; + failure: "failure"; + }>; + runs: z.ZodNumber; + failures: z.ZodNumber; + skipped: z.ZodNumber; + selected: z.ZodOptional; + acted: z.ZodOptional; + unmeasured: z.ZodOptional; + }, z.core.$strip>>; + gates: z.ZodArray; + label: z.ZodOptional; + skipped: z.ZodNumber; + }, z.core.$strip>>; + detailOmitted: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── UndoImportJobResponse (type) ── +type UndoImportJobResponse = z.input; + +// ── UndoImportJobResponseSchema (const) ── +declare const UndoImportJobResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + jobId: z.ZodString; + object: z.ZodString; + deleted: z.ZodNumber; + restored: z.ZodNumber; + failed: z.ZodNumber; +}, z.core.$strip>; + +// ── UninstallPackageApiRequest (type) ── +type UninstallPackageApiRequest = z.input; + +// ── UninstallPackageApiRequestSchema (const) ── +declare const UninstallPackageApiRequestSchema: z.ZodObject<{ + packageId: z.ZodString; +}, z.core.$strip>; + +// ── UninstallPackageApiResponse (type) ── +type UninstallPackageApiResponse = z.input; + +// ── UninstallPackageApiResponseParsed (type) ── +type UninstallPackageApiResponseParsed = z.infer; + +// ── UninstallPackageApiResponseSchema (const) ── +declare const UninstallPackageApiResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + packageId: z.ZodString; + success: z.ZodBoolean; + message: z.ZodOptional; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── UninstallPackageRequest (type) ── +type UninstallPackageRequest = z.input; + +// ── UninstallPackageRequestSchema (const) ── +declare const UninstallPackageRequestSchema: z.ZodObject<{ + id: z.ZodString; +}, z.core.$strip>; + +// ── UninstallPackageResponse (type) ── +type UninstallPackageResponse = z.input; + +// ── UninstallPackageResponseSchema (const) ── +declare const UninstallPackageResponseSchema: z.ZodObject<{ + id: z.ZodString; + success: z.ZodBoolean; + message: z.ZodOptional; +}, z.core.$strip>; + +// ── UnregisterDeviceRequest (type) ── +type UnregisterDeviceRequest = z.input; + +// ── UnregisterDeviceRequestSchema (const) ── +declare const UnregisterDeviceRequestSchema: z.ZodObject<{ + deviceId: z.ZodString; +}, z.core.$strip>; + +// ── UnregisterDeviceResponse (type) ── +type UnregisterDeviceResponse = z.input; + +// ── UnregisterDeviceResponseSchema (const) ── +declare const UnregisterDeviceResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; +}, z.core.$strip>; + +// ── UnsubscribeMessage (type) ── +type UnsubscribeMessage = z.input; + +// ── UnsubscribeMessageSchema (const) ── +declare const UnsubscribeMessageSchema: z.ZodObject<{ + messageId: z.ZodString; + timestamp: z.ZodString; + type: z.ZodLiteral<"unsubscribe">; + request: z.ZodObject<{ + subscriptionId: z.ZodString; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── UnsubscribeRequest (type) ── +type UnsubscribeRequest = z.input; + +// ── UnsubscribeRequestSchema (const) ── +declare const UnsubscribeRequestSchema: z.ZodObject<{ + subscriptionId: z.ZodString; +}, z.core.$strip>; + +// ── UpdateAiConversationRequest (type) ── +type UpdateAiConversationRequest = z.input; + +// ── UpdateAiConversationRequestSchema (const) ── +declare const UpdateAiConversationRequestSchema: z.ZodObject<{ + title: z.ZodOptional; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── UpdateDataRequest (type) ── +type UpdateDataRequest = z.input; + +// ── UpdateDataRequestSchema (const) ── +declare const UpdateDataRequestSchema: z.ZodObject<{ + object: z.ZodString; + id: z.ZodString; + data: z.ZodRecord; + expectedVersion: z.ZodOptional; +}, z.core.$strip>; + +// ── UpdateDataResponse (type) ── +type UpdateDataResponse = z.input; + +// ── UpdateDataResponseSchema (const) ── +declare const UpdateDataResponseSchema: z.ZodObject<{ + object: z.ZodString; + id: z.ZodString; + record: z.ZodRecord; + droppedFields: z.ZodOptional; + reason: z.ZodEnum<{ + readonly: "readonly"; + readonly_when: "readonly_when"; + primary_key: "primary_key"; + }>; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── UpdateFlowRequest (type) ── +type UpdateFlowRequest = z.input; + +// ── UpdateFlowRequestParsed (type) ── +type UpdateFlowRequestParsed = z.infer; + +// ── UpdateFlowRequestSchema (const) ── +declare const UpdateFlowRequestSchema: z.ZodObject<{ + name: z.ZodString; + definition: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + successMessage: z.ZodOptional; + errorMessage: z.ZodOptional; + version: z.ZodDefault; + status: z.ZodDefault>; + template: z.ZodOptional; + type: z.ZodEnum<{ + api: "api"; + screen: "screen"; + schedule: "schedule"; + autolaunched: "autolaunched"; + record_change: "record_change"; + }>; + variables: z.ZodOptional; + isOutput: z.ZodDefault; + defaultValue: z.ZodOptional; + }, z.core.$strict>>>; + nodes: z.ZodArray>; + connectorConfig: z.ZodOptional>; + }, z.core.$strict>>; + position: z.ZodOptional>; + timeoutMs: z.ZodOptional; + inputSchema: z.ZodOptional; + required: z.ZodDefault; + description: z.ZodOptional; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional; + waitEventConfig: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + timeoutMs: z.ZodOptional; + onTimeout: z.ZodOptional; + }, z.core.$strict>>; + boundaryConfig: z.ZodOptional; + interrupting: z.ZodDefault; + errorCode: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform<{ + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "manual" | "webhook" | "timer" | "signal"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "cancel" | "timer" | "signal"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }, { + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "manual" | "webhook" | "timer" | "signal"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "cancel" | "timer" | "signal"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }>>>; + edges: z.ZodArray>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + source: z.ZodString; + }, z.core.$strip>]>>; + type: z.ZodDefault>; + label: z.ZodOptional; + isDefault: z.ZodDefault; + }, z.core.$strict>>; + active: z.ZodOptional; + runAs: z.ZodDefault>; + errorHandling: z.ZodOptional; + fallbackNodeId: z.ZodOptional; + backoffMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; + maxRetryDelayMs: z.ZodDefault; + jitter: z.ZodDefault; + retryDelayMs: z.ZodOptional; + strategy: z.ZodDefault>; + }, z.core.$strict>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; +}, z.core.$strip>; + +// ── UpdateFlowResponse (type) ── +type UpdateFlowResponse = z.input; + +// ── UpdateFlowResponseParsed (type) ── +type UpdateFlowResponseParsed = z.infer; + +// ── UpdateFlowResponseSchema (const) ── +declare const UpdateFlowResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + successMessage: z.ZodOptional; + errorMessage: z.ZodOptional; + version: z.ZodDefault; + status: z.ZodDefault>; + template: z.ZodOptional; + type: z.ZodEnum<{ + api: "api"; + screen: "screen"; + schedule: "schedule"; + autolaunched: "autolaunched"; + record_change: "record_change"; + }>; + variables: z.ZodOptional; + isOutput: z.ZodDefault; + defaultValue: z.ZodOptional; + }, z.core.$strict>>>; + nodes: z.ZodArray>; + connectorConfig: z.ZodOptional>; + }, z.core.$strict>>; + position: z.ZodOptional>; + timeoutMs: z.ZodOptional; + inputSchema: z.ZodOptional; + required: z.ZodDefault; + description: z.ZodOptional; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional; + waitEventConfig: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + timeoutMs: z.ZodOptional; + onTimeout: z.ZodOptional; + }, z.core.$strict>>; + boundaryConfig: z.ZodOptional; + interrupting: z.ZodDefault; + errorCode: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform<{ + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "manual" | "webhook" | "timer" | "signal"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "cancel" | "timer" | "signal"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }, { + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "manual" | "webhook" | "timer" | "signal"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "cancel" | "timer" | "signal"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }>>>; + edges: z.ZodArray>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + source: z.ZodString; + }, z.core.$strip>]>>; + type: z.ZodDefault>; + label: z.ZodOptional; + isDefault: z.ZodDefault; + }, z.core.$strict>>; + active: z.ZodOptional; + runAs: z.ZodDefault>; + errorHandling: z.ZodOptional; + fallbackNodeId: z.ZodOptional; + backoffMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; + maxRetryDelayMs: z.ZodDefault; + jitter: z.ZodDefault; + retryDelayMs: z.ZodOptional; + strategy: z.ZodDefault>; + }, z.core.$strict>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; +}, z.core.$strip>; + +// ── UpdateManyDataRequest (type) ── +type UpdateManyDataRequest = z.input; + +// ── UpdateManyDataRequestParsed (type) ── +type UpdateManyDataRequestParsed = z.infer; + +// ── UpdateManyDataRequestSchema (const) ── +declare const UpdateManyDataRequestSchema: z.ZodObject<{ + records: z.ZodArray; + }, z.core.$strip>>; + options: z.ZodOptional>; + returnRecords: z.ZodDefault>; + continueOnError: z.ZodDefault>; + validateOnly: z.ZodOptional; + }, z.core.$strip>>; + object: z.ZodString; +}, z.core.$strip>; + +// ── UpdateManyDataResponse (type) ── +type UpdateManyDataResponse = z.input; + +// ── UpdateManyDataResponseParsed (type) ── +type UpdateManyDataResponseParsed = z.infer; + +// ── UpdateManyDataResponseSchema (const) ── +declare const UpdateManyDataResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + operation: z.ZodOptional>; + total: z.ZodNumber; + succeeded: z.ZodNumber; + failed: z.ZodNumber; + results: z.ZodArray; + success: z.ZodBoolean; + errors: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>>; + data: z.ZodOptional>; + index: z.ZodOptional; + droppedFields: z.ZodOptional; + reason: z.ZodEnum<{ + readonly: "readonly"; + readonly_when: "readonly_when"; + primary_key: "primary_key"; + }>; + }, z.core.$strip>>>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── UpdateManyRecord (type) ── +type UpdateManyRecord = z.input; + +// ── UpdateManyRecordSchema (const) ── +declare const UpdateManyRecordSchema: z.ZodObject<{ + id: z.ZodString; + data: z.ZodRecord; +}, z.core.$strip>; + +// ── UpdateManyRequest (type) ── +type UpdateManyRequest = z.input; + +// ── UpdateManyRequestParsed (type) ── +type UpdateManyRequestParsed = z.infer; + +// ── UpdateManyRequestSchema (const) ── +declare const UpdateManyRequestSchema: z.ZodObject<{ + records: z.ZodArray; + }, z.core.$strip>>; + options: z.ZodOptional>; + returnRecords: z.ZodDefault>; + continueOnError: z.ZodDefault>; + validateOnly: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── UpdateNotificationPreferencesRequest (type) ── +type UpdateNotificationPreferencesRequest = z.input; + +// ── UpdateNotificationPreferencesRequestParsed (type) ── +type UpdateNotificationPreferencesRequestParsed = z.infer; + +// ── UpdateNotificationPreferencesRequestSchema (const) ── +declare const UpdateNotificationPreferencesRequestSchema: z.ZodObject<{ + preferences: z.ZodObject<{ + email: z.ZodOptional>; + push: z.ZodOptional>; + inApp: z.ZodOptional>; + digest: z.ZodOptional>>; + channels: z.ZodOptional; + email: z.ZodOptional; + push: z.ZodOptional; + }, z.core.$strip>>>>; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── UpdateNotificationPreferencesResponse (type) ── +type UpdateNotificationPreferencesResponse = z.input; + +// ── UpdateNotificationPreferencesResponseParsed (type) ── +type UpdateNotificationPreferencesResponseParsed = z.infer; + +// ── UpdateNotificationPreferencesResponseSchema (const) ── +declare const UpdateNotificationPreferencesResponseSchema: z.ZodObject<{ + preferences: z.ZodObject<{ + email: z.ZodDefault; + push: z.ZodDefault; + inApp: z.ZodDefault; + digest: z.ZodDefault>; + channels: z.ZodOptional; + email: z.ZodOptional; + push: z.ZodOptional; + }, z.core.$strip>>>; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── UpdateRequest (type) ── +type UpdateRequest = z.input; + +// ── UpdateRequestSchema (const) ── +declare const UpdateRequestSchema: z.ZodObject<{ + data: z.ZodRecord; +}, z.core.$strip>; + +// ── UploadArtifactRequest (type) ── +type UploadArtifactRequest = z.input; + +// ── UploadArtifactRequestParsed (type) ── +type UploadArtifactRequestParsed = z.infer; + +// ── UploadArtifactRequestSchema (const) ── +declare const UploadArtifactRequestSchema: z.ZodObject<{ + artifact: z.ZodObject<{ + formatVersion: z.ZodDefault; + packageId: z.ZodString; + version: z.ZodString; + format: z.ZodDefault>; + size: z.ZodOptional; + builtAt: z.ZodString; + builtWith: z.ZodOptional; + files: z.ZodOptional>; + }, z.core.$strip>>>; + metadataCategories: z.ZodOptional>>; + checksums: z.ZodOptional>; + files: z.ZodRecord; + }, z.core.$strip>>; + signature: z.ZodOptional>; + publicKeyRef: z.ZodString; + signature: z.ZodString; + signedAt: z.ZodOptional; + signedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + sha256: z.ZodOptional; + token: z.ZodOptional; + releaseNotes: z.ZodOptional; +}, z.core.$strip>; + +// ── UploadArtifactResponse (type) ── +type UploadArtifactResponse = z.input; + +// ── UploadArtifactResponseParsed (type) ── +type UploadArtifactResponseParsed = z.infer; + +// ── UploadArtifactResponseSchema (const) ── +declare const UploadArtifactResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + success: z.ZodBoolean; + artifactRef: z.ZodOptional>; + uploadedAt: z.ZodString; + }, z.core.$strip>>; + submissionId: z.ZodOptional; + message: z.ZodOptional; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── UploadChunkRequest (type) ── +type UploadChunkRequest = z.input; + +// ── UploadChunkRequestSchema (const) ── +declare const UploadChunkRequestSchema: z.ZodObject<{ + uploadId: z.ZodString; + chunkIndex: z.ZodNumber; + resumeToken: z.ZodString; +}, z.core.$strip>; + +// ── UploadChunkResponse (type) ── +type UploadChunkResponse = z.input; + +// ── UploadChunkResponseParsed (type) ── +type UploadChunkResponseParsed = z.infer; + +// ── UploadChunkResponseSchema (const) ── +declare const UploadChunkResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + chunkIndex: z.ZodNumber; + eTag: z.ZodString; + bytesReceived: z.ZodNumber; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── UploadProgress (type) ── +type UploadProgress = z.input; + +// ── UploadProgressParsed (type) ── +type UploadProgressParsed = z.infer; + +// ── UploadProgressSchema (const) ── +declare const UploadProgressSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + uploadId: z.ZodString; + fileId: z.ZodString; + filename: z.ZodString; + totalSize: z.ZodNumber; + uploadedSize: z.ZodNumber; + totalChunks: z.ZodNumber; + uploadedChunks: z.ZodNumber; + percentComplete: z.ZodNumber; + status: z.ZodEnum<{ + expired: "expired"; + failed: "failed"; + in_progress: "in_progress"; + completing: "completing"; + completed: "completed"; + }>; + startedAt: z.ZodString; + expiresAt: z.ZodString; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── UserProfileResponse (type) ── +type UserProfileResponse = z.input; + +// ── UserProfileResponseParsed (type) ── +type UserProfileResponseParsed = z.infer; + +// ── UserProfileResponseSchema (const) ── +declare const UserProfileResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + error: z.ZodOptional>; + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + }, z.core.$strip>>; + meta: z.ZodOptional; + requestId: z.ZodOptional; + traceId: z.ZodOptional; + }, z.core.$strip>>; + data: z.ZodObject<{ + id: z.ZodString; + email: z.ZodString; + emailVerified: z.ZodDefault; + name: z.ZodString; + image: z.ZodOptional>; + username: z.ZodOptional; + roles: z.ZodDefault>>; + tenantId: z.ZodOptional; + language: z.ZodOptional; + timezone: z.ZodOptional; + createdAt: z.ZodOptional; + updatedAt: z.ZodOptional; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── ValidateDataIssue (type) ── +type ValidateDataIssue = z.input; + +// ── ValidateDataIssueSchema (const) ── +declare const ValidateDataIssueSchema: z.ZodObject<{ + field: z.ZodString; + code: z.ZodString; + message: z.ZodString; +}, z.core.$strip>; + +// ── ValidateDataRequest (type) ── +type ValidateDataRequest = z.input; + +// ── ValidateDataRequestSchema (const) ── +declare const ValidateDataRequestSchema: z.ZodObject<{ + object: z.ZodString; + data: z.ZodUnion, z.ZodArray>]>; + mode: z.ZodOptional>; +}, z.core.$strip>; + +// ── ValidateDataResponse (type) ── +type ValidateDataResponse = z.input; + +// ── ValidateDataResponseSchema (const) ── +declare const ValidateDataResponseSchema: z.ZodObject<{ + object: z.ZodString; + mode: z.ZodEnum<{ + update: "update"; + insert: "insert"; + }>; + valid: z.ZodBoolean; + results: z.ZodArray>; + warnings: z.ZodArray>; + }, z.core.$strip>>; + posture: z.ZodObject<{ + valueShapeStrict: z.ZodBoolean; + mediaValueShapeStrict: z.ZodBoolean; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── ValidationMode (const) ── +declare const ValidationMode: z.ZodEnum<{ + strict: "strict"; + strip: "strip"; + permissive: "permissive"; +}>; + +// ── ValidationMode (type) ── +type ValidationMode = z.input; + +// ── VersionDefinition (type) ── +type VersionDefinition = z.input; + +// ── VersionDefinitionSchema (const) ── +declare const VersionDefinitionSchema: z.ZodObject<{ + version: z.ZodString; + status: z.ZodEnum<{ + deprecated: "deprecated"; + preview: "preview"; + supported: "supported"; + current: "current"; + retired: "retired"; + }>; + releasedAt: z.ZodString; + deprecatedAt: z.ZodOptional; + sunsetAt: z.ZodOptional; + migrationGuide: z.ZodOptional; + description: z.ZodOptional; + breakingChanges: z.ZodOptional>; +}, z.core.$strip>; + +// ── VersionNegotiationResponse (type) ── +type VersionNegotiationResponse = z.input; + +// ── VersionNegotiationResponseSchema (const) ── +declare const VersionNegotiationResponseSchema: z.ZodObject<{ + current: z.ZodString; + requested: z.ZodOptional; + resolved: z.ZodString; + supported: z.ZodArray; + deprecated: z.ZodOptional>; + versions: z.ZodOptional; + releasedAt: z.ZodString; + deprecatedAt: z.ZodOptional; + sunsetAt: z.ZodOptional; + migrationGuide: z.ZodOptional; + description: z.ZodOptional; + breakingChanges: z.ZodOptional>; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── VersionStatus (const) ── +declare const VersionStatus: z.ZodEnum<{ + deprecated: "deprecated"; + preview: "preview"; + supported: "supported"; + current: "current"; + retired: "retired"; +}>; + +// ── VersionStatus (type) ── +type VersionStatus = z.input; + +// ── VersioningConfig (type) ── +type VersioningConfig = z.input; + +// ── VersioningConfigParsed (type) ── +type VersioningConfigParsed = z.infer; + +// ── VersioningConfigSchema (const) ── +declare const VersioningConfigSchema: z.ZodObject<{ + strategy: z.ZodDefault>; + current: z.ZodString; + default: z.ZodString; + versions: z.ZodArray; + releasedAt: z.ZodString; + deprecatedAt: z.ZodOptional; + sunsetAt: z.ZodOptional; + migrationGuide: z.ZodOptional; + description: z.ZodOptional; + breakingChanges: z.ZodOptional>; + }, z.core.$strip>>; + headerName: z.ZodDefault; + queryParamName: z.ZodDefault; + urlPrefix: z.ZodDefault; + deprecation: z.ZodOptional; + sunsetHeader: z.ZodDefault; + linkHeader: z.ZodDefault; + rejectRetired: z.ZodDefault; + warningMessage: z.ZodOptional; + }, z.core.$strip>>; + includeInDiscovery: z.ZodDefault; +}, z.core.$strip>; + +// ── VersioningStrategy (const) ── +declare const VersioningStrategy: z.ZodEnum<{ + header: "header"; + urlPath: "urlPath"; + queryParam: "queryParam"; + dateBased: "dateBased"; +}>; + +// ── VersioningStrategy (type) ── +type VersioningStrategy = z.input; + +// ── WELL_KNOWN_CAPABILITY_KEYS (const) ── +declare const WELL_KNOWN_CAPABILITY_KEYS: readonly ("search" | "cron" | "automation" | "analytics" | "notifications" | "ai" | "i18n" | "comments" | "export" | "chunkedUpload" | "transactionalBatch" | "websockets" | "files")[]; + +// ── WebSocketConfig (type) ── +type WebSocketConfig = z.input; + +// ── WebSocketConfigParsed (type) ── +type WebSocketConfigParsed = z.infer; + +// ── WebSocketConfigSchema (const) ── +declare const WebSocketConfigSchema: z.ZodObject<{ + url: z.ZodString; + protocols: z.ZodOptional>; + reconnect: z.ZodDefault>; + reconnectIntervalMs: z.ZodDefault>; + maxReconnectAttempts: z.ZodDefault>; + pingIntervalMs: z.ZodDefault>; + timeoutMs: z.ZodDefault>; + reconnectInterval: z.ZodOptional; + pingInterval: z.ZodOptional; + timeout: z.ZodOptional; + headers: z.ZodOptional>; +}, z.core.$strip>; + +// ── WebSocketEvent (type) ── +type WebSocketEvent = z.input; + +// ── WebSocketEventSchema (const) ── +declare const WebSocketEventSchema: z.ZodObject<{ + type: z.ZodEnum<{ + error: "error"; + subscribe: "subscribe"; + unsubscribe: "unsubscribe"; + "data-change": "data-change"; + "presence-update": "presence-update"; + "cursor-update": "cursor-update"; + }>; + channel: z.ZodString; + payload: z.ZodUnknown; + occurredAt: z.ZodNumber; + timestamp: z.ZodOptional; +}, z.core.$strip>; + +// ── WebSocketMessage (type) ── +type WebSocketMessage = z.input; + +// ── WebSocketMessageSchema (const) ── +declare const WebSocketMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ + messageId: z.ZodString; + timestamp: z.ZodString; + type: z.ZodLiteral<"subscribe">; + subscription: z.ZodObject<{ + subscriptionId: z.ZodString; + events: z.ZodArray; + objects: z.ZodOptional>; + filters: z.ZodOptional; + channels: z.ZodOptional>; + }, z.core.$strip>; +}, z.core.$strip>, z.ZodObject<{ + messageId: z.ZodString; + timestamp: z.ZodString; + type: z.ZodLiteral<"unsubscribe">; + request: z.ZodObject<{ + subscriptionId: z.ZodString; + }, z.core.$strip>; +}, z.core.$strip>, z.ZodObject<{ + messageId: z.ZodString; + timestamp: z.ZodString; + type: z.ZodLiteral<"event">; + subscriptionId: z.ZodString; + eventName: z.ZodString; + object: z.ZodOptional; + payload: z.ZodUnknown; + userId: z.ZodOptional; +}, z.core.$strip>, z.ZodObject<{ + messageId: z.ZodString; + timestamp: z.ZodString; + type: z.ZodLiteral<"presence">; + presence: z.ZodObject<{ + userId: z.ZodString; + sessionId: z.ZodString; + status: z.ZodEnum<{ + online: "online"; + away: "away"; + busy: "busy"; + offline: "offline"; + }>; + lastSeen: z.ZodString; + currentLocation: z.ZodOptional; + device: z.ZodOptional>; + customStatus: z.ZodOptional; + metadata: z.ZodOptional>; + }, z.core.$strip>; +}, z.core.$strip>, z.ZodObject<{ + messageId: z.ZodString; + timestamp: z.ZodString; + type: z.ZodLiteral<"cursor">; + cursor: z.ZodObject<{ + userId: z.ZodString; + sessionId: z.ZodString; + documentId: z.ZodString; + position: z.ZodOptional>; + selection: z.ZodOptional; + end: z.ZodObject<{ + line: z.ZodNumber; + column: z.ZodNumber; + }, z.core.$strip>; + }, z.core.$strip>>; + color: z.ZodOptional; + userName: z.ZodOptional; + lastUpdate: z.ZodString; + }, z.core.$strip>; +}, z.core.$strip>, z.ZodObject<{ + messageId: z.ZodString; + timestamp: z.ZodString; + type: z.ZodLiteral<"edit">; + operation: z.ZodObject<{ + operationId: z.ZodString; + documentId: z.ZodString; + userId: z.ZodString; + sessionId: z.ZodString; + type: z.ZodEnum<{ + replace: "replace"; + delete: "delete"; + insert: "insert"; + }>; + position: z.ZodObject<{ + line: z.ZodNumber; + column: z.ZodNumber; + }, z.core.$strip>; + endPosition: z.ZodOptional>; + content: z.ZodOptional; + version: z.ZodNumber; + timestamp: z.ZodString; + baseOperationId: z.ZodOptional; + }, z.core.$strip>; +}, z.core.$strip>, z.ZodObject<{ + messageId: z.ZodString; + timestamp: z.ZodString; + type: z.ZodLiteral<"ack">; + ackMessageId: z.ZodString; + success: z.ZodBoolean; + error: z.ZodOptional; +}, z.core.$strip>, z.ZodObject<{ + messageId: z.ZodString; + timestamp: z.ZodString; + type: z.ZodLiteral<"error">; + code: z.ZodString; + message: z.ZodString; + details: z.ZodOptional; +}, z.core.$strip>, z.ZodObject<{ + messageId: z.ZodString; + timestamp: z.ZodString; + type: z.ZodLiteral<"ping">; +}, z.core.$strip>, z.ZodObject<{ + messageId: z.ZodString; + timestamp: z.ZodString; + type: z.ZodLiteral<"pong">; + pingMessageId: z.ZodOptional; +}, z.core.$strip>], "type">; + +// ── WebSocketMessageType (const) ── +declare const WebSocketMessageType: z.ZodEnum<{ + error: "error"; + cursor: "cursor"; + subscribe: "subscribe"; + unsubscribe: "unsubscribe"; + event: "event"; + ping: "ping"; + pong: "pong"; + ack: "ack"; + presence: "presence"; + edit: "edit"; +}>; + +// ── WebSocketMessageType (type) ── +type WebSocketMessageType = z.input; + +// ── WebSocketPresenceStatus (const) ── +declare const WebSocketPresenceStatus: z.ZodEnum<{ + online: "online"; + away: "away"; + busy: "busy"; + offline: "offline"; +}>; + +// ── WebSocketPresenceStatus (type) ── +type WebSocketPresenceStatus = z.input; + +// ── WebSocketServerConfig (type) ── +type WebSocketServerConfig = z.input; + +// ── WebSocketServerConfigParsed (type) ── +type WebSocketServerConfigParsed = z.infer; + +// ── WebSocketServerConfigSchema (const) ── +declare const WebSocketServerConfigSchema: z.ZodObject<{ + enabled: z.ZodDefault; + path: z.ZodDefault; + heartbeatIntervalMs: z.ZodDefault; + reconnectAttempts: z.ZodDefault; + presence: z.ZodDefault; + cursorSharing: z.ZodDefault; + heartbeatInterval: z.ZodOptional; +}, z.core.$strip>; + +// ── WellKnownCapabilities (type) ── +type WellKnownCapabilities = z.input; + +// ── WellKnownCapabilitiesSchema (const) ── +declare const WellKnownCapabilitiesSchema: z.ZodObject<{ + comments: z.ZodBoolean; + automation: z.ZodBoolean; + cron: z.ZodBoolean; + search: z.ZodBoolean; + export: z.ZodBoolean; + chunkedUpload: z.ZodBoolean; + transactionalBatch: z.ZodBoolean; + websockets: z.ZodBoolean; + files: z.ZodBoolean; + analytics: z.ZodBoolean; + ai: z.ZodBoolean; + notifications: z.ZodBoolean; + i18n: z.ZodBoolean; +}, z.core.$strip>; + +// ── envelopeViolations (function) ── +declare function envelopeViolations(body: unknown): string[]; + +// ── getAuthEndpointUrl (function) ── +declare function getAuthEndpointUrl(basePath: string, endpoint: keyof typeof AuthEndpointPaths): string; + +// ── getDefaultRouteRegistrations (function) ── +declare function getDefaultRouteRegistrations(): RestApiRouteRegistration[]; + +// ── identityFreeEndpointGateFailure (function) ── +declare function identityFreeEndpointGateFailure(endpoint: ApiEndpoint): EndpointGateIssue | undefined; + +// ── isSubscribableChannel (function) ── +declare function isSubscribableChannel(info?: { + handlerReady?: boolean; + route?: string; +} | null): boolean; + +// ── makeApiErrorSchema (function) ── +declare function makeApiErrorSchema(extraCodes: TExtra): z.ZodObject<{ + declaredCode: z.ZodOptional; + message: z.ZodString; + userMessage: z.ZodOptional; + refusal: z.ZodOptional>; + category: z.ZodOptional; + httpStatus: z.ZodOptional; + details: z.ZodOptional; + requestId: z.ZodOptional; + code: z.ZodType<"INVALID_FILTER" | "VALIDATION_ERROR" | "INVALID_FIELD" | "MISSING_REQUIRED_FIELD" | "INVALID_FORMAT" | "VALUE_TOO_LONG" | "VALUE_TOO_SHORT" | "VALUE_OUT_OF_RANGE" | "INVALID_REFERENCE" | "DUPLICATE_VALUE" | "INVALID_QUERY" | "INVALID_SORT" | "MAX_RECORDS_EXCEEDED" | "UNAUTHENTICATED" | "INVALID_CREDENTIALS" | "EXPIRED_TOKEN" | "INVALID_TOKEN" | "SESSION_EXPIRED" | "MFA_REQUIRED" | "EMAIL_NOT_VERIFIED" | "PERMISSION_DENIED" | "INSUFFICIENT_PRIVILEGES" | "FIELD_NOT_ACCESSIBLE" | "RECORD_NOT_ACCESSIBLE" | "LICENSE_REQUIRED" | "IP_RESTRICTED" | "TIME_RESTRICTED" | "RESOURCE_NOT_FOUND" | "OBJECT_NOT_FOUND" | "RECORD_NOT_FOUND" | "FIELD_NOT_FOUND" | "ENDPOINT_NOT_FOUND" | "RESOURCE_CONFLICT" | "CONCURRENT_MODIFICATION" | "DELETE_RESTRICTED" | "DUPLICATE_RECORD" | "LOCK_CONFLICT" | "METHOD_NOT_ALLOWED" | "PRECONDITION_REQUIRED" | "RATE_LIMIT_EXCEEDED" | "QUOTA_EXCEEDED" | "CONCURRENT_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "DATABASE_ERROR" | "TIMEOUT" | "SERVICE_UNAVAILABLE" | "NOT_IMPLEMENTED" | "EXTERNAL_SERVICE_ERROR" | "INTEGRATION_ERROR" | "WEBHOOK_DELIVERY_FAILED" | TExtra[number], unknown, z.core.$ZodTypeInternals<"INVALID_FILTER" | "VALIDATION_ERROR" | "INVALID_FIELD" | "MISSING_REQUIRED_FIELD" | "INVALID_FORMAT" | "VALUE_TOO_LONG" | "VALUE_TOO_SHORT" | "VALUE_OUT_OF_RANGE" | "INVALID_REFERENCE" | "DUPLICATE_VALUE" | "INVALID_QUERY" | "INVALID_SORT" | "MAX_RECORDS_EXCEEDED" | "UNAUTHENTICATED" | "INVALID_CREDENTIALS" | "EXPIRED_TOKEN" | "INVALID_TOKEN" | "SESSION_EXPIRED" | "MFA_REQUIRED" | "EMAIL_NOT_VERIFIED" | "PERMISSION_DENIED" | "INSUFFICIENT_PRIVILEGES" | "FIELD_NOT_ACCESSIBLE" | "RECORD_NOT_ACCESSIBLE" | "LICENSE_REQUIRED" | "IP_RESTRICTED" | "TIME_RESTRICTED" | "RESOURCE_NOT_FOUND" | "OBJECT_NOT_FOUND" | "RECORD_NOT_FOUND" | "FIELD_NOT_FOUND" | "ENDPOINT_NOT_FOUND" | "RESOURCE_CONFLICT" | "CONCURRENT_MODIFICATION" | "DELETE_RESTRICTED" | "DUPLICATE_RECORD" | "LOCK_CONFLICT" | "METHOD_NOT_ALLOWED" | "PRECONDITION_REQUIRED" | "RATE_LIMIT_EXCEEDED" | "QUOTA_EXCEEDED" | "CONCURRENT_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "DATABASE_ERROR" | "TIMEOUT" | "SERVICE_UNAVAILABLE" | "NOT_IMPLEMENTED" | "EXTERNAL_SERVICE_ERROR" | "INTEGRATION_ERROR" | "WEBHOOK_DELIVERY_FAILED" | TExtra[number], unknown>>; +}, z.core.$strip>; + +// ── normalizeEndpointPath (function) ── +declare function normalizeEndpointPath(path: string): string; + +// ── readChannelRoute (function) ── +declare function readChannelRoute(svc: unknown): string | undefined; + +// ── readServiceSelfInfo (function) ── +declare function readServiceSelfInfo(svc: unknown): ServiceSelfInfo | undefined; + +// ── resolveDiscoveryEnvironment (function) ── +declare function resolveDiscoveryEnvironment(raw?: string | null): DiscoveryEnvironment; + +// ── resolveObjectSortability (function) ── +declare function resolveObjectSortability(doc: unknown): ObjectSortability; + +// ── standardErrorCodeForHttpStatus (function) ── +declare function standardErrorCodeForHttpStatus(status: number): StandardErrorCode; + +// ── standardSynonymOf (function) ── +declare function standardSynonymOf(code: string): StandardErrorCode | undefined; + +// ── standardSynonymViolations (function) ── +declare function standardSynonymViolations(ledger?: Record, waivers?: readonly StandardSynonymWaiver[]): StandardSynonymViolation[]; + +// ── validateApiEndpointDeclarations (function) ── +declare function validateApiEndpointDeclarations(endpoints: readonly ApiEndpoint[] | undefined, identity: EndpointGateIdentity): EndpointGateIssue[]; + +// ── zodIssuesToFields (function) ── +declare function zodIssuesToFields(issues: unknown, ...input: [] | [unknown]): Array<{ + field: string; + code: FieldErrorCode; + message: string; +}>; diff --git a/packages/spec/api-surface-declarations/automation.txt b/packages/spec/api-surface-declarations/automation.txt new file mode 100644 index 00000000000..23d9c94895b --- /dev/null +++ b/packages/spec/api-surface-declarations/automation.txt @@ -0,0 +1,3937 @@ +# @objectstack/spec — the .d.ts DECLARATION TEXT of every export of `./automation`. +# +# The SHAPE half of the ADR-0059 public-API pin, and the readable counterpart of +# api-surface/automation.json's breadth half. That file pins each export by +# `name (kind)`, which a signature change, a renamed interface field and a dropped +# union member all leave untouched. This file pins the declaration text, so each of +# those moves a line here. Text and NOT a hash, deliberately: a diff a reviewer can +# read is what makes contract review a guard rather than a rubber stamp. +# +# Verbatim from the PACKED `.d.ts` reached through this package's `exports` map — the +# declarations a consumer installs, never `src/`. A declaration's leading TSDoc is +# excluded: documentation drift is `check:docs`'s axis, not this one. +# +# entry: ./automation +# exported names: 273 +# declarations: 279 +# +# GENERATED — ⛔ never hand-edited. Regenerate after a real build: +# pnpm --filter @objectstack/spec build && pnpm --filter @objectstack/spec gen:api-surface-declarations +# Gated by `check:api-surface-declarations`; a hand edit is a red gate, not a change. + +// ── APPROVAL_BRANCH_LABELS (const) ── +declare const APPROVAL_BRANCH_LABELS: { + readonly approve: "approve"; + readonly reject: "reject"; + /** + * ADR-0044 send-back-for-revision: the request finalizes `returned` and the + * flow walks this edge to the revise window — an + * {@link APPROVAL_REVISE_NODE_TYPE} node — where the submitter reworks the + * record; a later resubmit re-enters the approval node via a declared + * back-edge (round N+1). + * + * The edge's target must be that node type (amended ADR-0044, #3823): a + * generic `wait` there is a service-owned pause anyone could resume. + */ + readonly revise: "revise"; + /** + * ADR-0044: informational label a resubmit resume passes so the revise + * window's out-edge selection is explicit when authors label the back-edge. + */ + readonly resubmit: "resubmit"; +}; + +// ── APPROVAL_NODE_TYPE (const) ── +declare const APPROVAL_NODE_TYPE: "approval"; + +// ── APPROVAL_REVISE_NODE_TYPE (const) ── +declare const APPROVAL_REVISE_NODE_TYPE: "approval_revise"; + +// ── APPROVER_EXPRESSION_ROOTS (const) ── +declare const APPROVER_EXPRESSION_ROOTS: readonly ["current", "trigger", "vars"]; + +// ── APPROVER_ORG_SCOPED (const) ── +declare const APPROVER_ORG_SCOPED: { + readonly user: false; + readonly org_membership_level: true; + readonly role: true; + readonly position: true; + readonly team: false; + readonly department: true; + readonly manager: false; + readonly field: false; + readonly queue: false; + readonly expression: true; +}; + +// ── APPROVER_ORG_SYMBOLS (const) ── +declare const APPROVER_ORG_SYMBOLS: readonly ["$root", "$parent"]; + +// ── APPROVER_VALUE_BINDINGS (const) ── +declare const APPROVER_VALUE_BINDINGS: { + readonly user: { + readonly source: "record"; + readonly object: "sys_user"; + readonly valueField: "id"; + }; + readonly org_membership_level: { + readonly source: "enum"; + readonly values: readonly ["owner", "admin", "delegated_admin", "member"]; + }; + readonly role: { + readonly source: "enum"; + readonly values: readonly ["owner", "admin", "delegated_admin", "member"]; + }; + readonly position: { + readonly source: "record"; + readonly object: "sys_position"; + readonly valueField: "name"; + }; + readonly team: { + readonly source: "record"; + readonly object: "sys_team"; + readonly valueField: "id"; + }; + readonly department: { + readonly source: "record"; + readonly object: "sys_business_unit"; + readonly valueField: "id"; + }; + readonly manager: { + readonly source: "auto"; + }; + readonly field: { + readonly source: "trigger-field"; + }; + readonly queue: { + readonly source: "unsupported"; + }; + readonly expression: { + readonly source: "expression"; + readonly roots: readonly ["current", "trigger", "vars"]; + }; +}; + +// ── APPROVER_VALUE_SOURCES (const) ── +declare const APPROVER_VALUE_SOURCES: Record, { + source: "data"; + object: string; + valueField: string; +} | { + source: "enum"; + values: string[]; +} | { + source: "auto" | "trigger-field" | "expression" | "unsupported"; +}>; + +// ── ASSIGNMENT_ARRAY_FORM_PRESCRIPTION (const) ── +declare const ASSIGNMENT_ARRAY_FORM_PRESCRIPTION: string; + +// ── ASSIGNMENT_VALUE_ENVELOPE_REFUSAL (const) ── +declare const ASSIGNMENT_VALUE_ENVELOPE_REFUSAL: string; + +// ── ActionCategory (type) ── +type ActionCategory = z.input; + +// ── ActionCategorySchema (const) ── +declare const ActionCategorySchema: z.ZodEnum<{ + custom: "custom"; + io: "io"; + control: "control"; + data: "data"; + human: "human"; + logic: "logic"; +}>; + +// ── ActionDescriptor (type) ── +type ActionDescriptor = z.input; + +// ── ActionDescriptorParsed (type) ── +type ActionDescriptorParsed = z.infer; + +// ── ActionDescriptorSchema (const) ── +declare const ActionDescriptorSchema: z.ZodObject<{ + type: z.ZodString; + version: z.ZodString; + name: z.ZodString; + description: z.ZodOptional; + icon: z.ZodOptional; + category: z.ZodDefault>; + paradigms: z.ZodDefault>>; + configSchema: z.ZodOptional; + supportsPause: z.ZodDefault; + supportsCancellation: z.ZodDefault; + supportsRetry: z.ZodDefault; + needsOutbox: z.ZodDefault; + isAsync: z.ZodOptional; + handlerContract: z.ZodDefault>; + resumeAuthority: z.ZodOptional>; + maturity: z.ZodDefault>; + source: z.ZodDefault>; + deprecated: z.ZodDefault; + aliasOf: z.ZodOptional; +}, z.core.$strip>; + +// ── ActionParadigm (type) ── +type ActionParadigm = z.input; + +// ── ActionParadigmSchema (const) ── +declare const ActionParadigmSchema: z.ZodEnum<{ + flow: "flow"; + approval: "approval"; +}>; + +// ── ActionRef (type) ── +type ActionRef = z.input; + +// ── ActionRefSchema (const) ── +declare const ActionRefSchema: z.ZodUnion>; +}, z.core.$strict>]>; + +// ── ApprovalDecision (const) ── +declare const ApprovalDecision: z.ZodEnum<{ + reject: "reject"; + approve: "approve"; +}>; + +// ── ApprovalDecision (type) ── +type ApprovalDecision = z.input; + +// ── ApprovalEscalation (type) ── +type ApprovalEscalation = z.input; + +// ── ApprovalEscalationParsed (type) ── +type ApprovalEscalationParsed = z.infer; + +// ── ApprovalEscalationSchema (const) ── +declare const ApprovalEscalationSchema: z.ZodObject<{ + enabled: z.ZodDefault; + timeoutHours: z.ZodNumber; + action: z.ZodDefault>; + escalateTo: z.ZodOptional; + notifySubmitter: z.ZodDefault; +}, z.core.$strict>; + +// ── ApprovalNodeApprover (type) ── +type ApprovalNodeApprover = z.input; + +// ── ApprovalNodeApproverSchema (const) ── +declare const ApprovalNodeApproverSchema: z.ZodObject<{ + type: z.ZodEnum<{ + position: "position"; + field: "field"; + expression: "expression"; + user: "user"; + role: "role"; + queue: "queue"; + manager: "manager"; + department: "department"; + team: "team"; + org_membership_level: "org_membership_level"; + }>; + value: z.ZodOptional; + resolveAs: z.ZodOptional>; + group: z.ZodOptional; + organization: z.ZodOptional; +}, z.core.$strict>; + +// ── ApprovalNodeConfig (type) ── +type ApprovalNodeConfig = z.input; + +// ── ApprovalNodeConfigParsed (type) ── +type ApprovalNodeConfigParsed = z.infer; + +// ── ApprovalNodeConfigSchema (const) ── +declare const ApprovalNodeConfigSchema: z.ZodObject<{ + approvers: z.ZodArray; + value: z.ZodOptional; + resolveAs: z.ZodOptional>; + group: z.ZodOptional; + organization: z.ZodOptional; + }, z.core.$strict>>; + behavior: z.ZodDefault>; + minApprovals: z.ZodOptional; + lockRecord: z.ZodDefault; + approvalStatusField: z.ZodOptional; + onEmptyApprovers: z.ZodDefault>; + fallbackApprovers: z.ZodOptional; + value: z.ZodOptional; + resolveAs: z.ZodOptional>; + group: z.ZodOptional; + organization: z.ZodOptional; + }, z.core.$strict>>>; + decisionOutputs: z.ZodOptional; + type: z.ZodOptional>; + multiple: z.ZodOptional; + required: z.ZodOptional; + }, z.core.$strict>]>>>; + escalation: z.ZodOptional; + timeoutHours: z.ZodNumber; + action: z.ZodDefault>; + escalateTo: z.ZodOptional; + notifySubmitter: z.ZodDefault; + }, z.core.$strict>>; + maxRevisions: z.ZodDefault; +}, z.core.$strict>; + +// ── ApproverOrgSymbol (type) ── +type ApproverOrgSymbol = (typeof APPROVER_ORG_SYMBOLS)[number]; + +// ── ApproverType (const) ── +declare const ApproverType: z.ZodEnum<{ + position: "position"; + field: "field"; + expression: "expression"; + user: "user"; + role: "role"; + queue: "queue"; + manager: "manager"; + department: "department"; + team: "team"; + org_membership_level: "org_membership_level"; +}>; + +// ── ApproverType (type) ── +type ApproverType = z.input; + +// ── ApproverValueBinding (type) ── +type ApproverValueBinding = +/** + * `value` identifies a row of `object`; the designer stores the row's + * `valueField`. Note `position` routes by machine **name** (the engine + * filters `sys_user_position.position` by name — deliberate, names are + * portable across environments the way ids are not), and `department` + * resolves against `sys_business_unit`, not a `sys_department`. + */ +{ + source: 'record'; + object: string; + valueField: 'id' | 'name'; +} +/** Closed value set — render a strict select, never free text. */ + | { + source: 'enum'; + values: readonly string[]; +} +/** + * Resolved by the engine at runtime (submitter's manager via + * `sys_user.manager_id`); `value` is optional (an advanced override naming + * the record field that holds the subject user) and normally stays empty. + */ + | { + source: 'auto'; +} +/** `value` names a field on the flow's trigger object. */ + | { + source: 'trigger-field'; +} +/** + * `value` is a CEL expression evaluated at node entry (#3447 P2) over the + * closed root set in `roots` — an expression editor, not a picker. + */ + | { + source: 'expression'; + roots: readonly string[]; +} +/** Declared-but-unenforced — do not offer for authoring (#3508). */ + | { + source: 'unsupported'; +}; + +// ── AssignmentConfig (type) ── +type AssignmentConfig = z.input; + +// ── AssignmentConfigParsed (type) ── +type AssignmentConfigParsed = z.infer; + +// ── AssignmentConfigSchema (const) ── +declare const AssignmentConfigSchema: z.ZodObject<{ + assignments: z.ZodOptional>; +}, z.core.$catchall>; + +// ── AssignmentExpressionValue (type) ── +type AssignmentExpressionValue = z.input; + +// ── AssignmentExpressionValueParsed (type) ── +type AssignmentExpressionValueParsed = z.infer; + +// ── AssignmentExpressionValueSchema (const) ── +declare const AssignmentExpressionValueSchema: z.ZodObject<{ + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + source: z.ZodString; + dialect: z.ZodLiteral<"cel">; +}, z.core.$strip>; + +// ── AssignmentValue (type) ── +type AssignmentValue = z.input; + +// ── AssignmentValueParsed (type) ── +type AssignmentValueParsed = z.infer; + +// ── AssignmentValueSchema (const) ── +declare const AssignmentValueSchema: z.ZodUnknown; + +// ── BPMN_BOUNDARY_EVENT (const) ── +declare const BPMN_BOUNDARY_EVENT: "boundary_event"; + +// ── BPMN_JOIN_GATEWAY (const) ── +declare const BPMN_JOIN_GATEWAY: "join_gateway"; + +// ── BPMN_PARALLEL_GATEWAY (const) ── +declare const BPMN_PARALLEL_GATEWAY: "parallel_gateway"; + +// ── BUILT_IN_BPMN_MAPPINGS (const) ── +declare const BUILT_IN_BPMN_MAPPINGS: BpmnElementMapping[]; + +// ── BpmnDiagnostic (type) ── +type BpmnDiagnostic = z.input; + +// ── BpmnDiagnosticSchema (const) ── +declare const BpmnDiagnosticSchema: z.ZodObject<{ + severity: z.ZodEnum<{ + error: "error"; + info: "info"; + warning: "warning"; + }>; + message: z.ZodString; + bpmnElementId: z.ZodOptional; + nodeId: z.ZodOptional; +}, z.core.$strip>; + +// ── BpmnElementMapping (type) ── +type BpmnElementMapping = z.input; + +// ── BpmnElementMappingParsed (type) ── +type BpmnElementMappingParsed = z.infer; + +// ── BpmnElementMappingSchema (const) ── +declare const BpmnElementMappingSchema: z.ZodObject<{ + bpmnType: z.ZodString; + flowNodeAction: z.ZodString; + bidirectional: z.ZodDefault; + notes: z.ZodOptional; +}, z.core.$strip>; + +// ── BpmnExportOptions (type) ── +type BpmnExportOptions = z.input; + +// ── BpmnExportOptionsParsed (type) ── +type BpmnExportOptionsParsed = z.infer; + +// ── BpmnExportOptionsSchema (const) ── +declare const BpmnExportOptionsSchema: z.ZodObject<{ + version: z.ZodDefault>; + includeLayout: z.ZodDefault; + includeExtensions: z.ZodDefault; + customMappings: z.ZodOptional; + notes: z.ZodOptional; + }, z.core.$strip>>>; + prettyPrint: z.ZodDefault; + namespacePrefix: z.ZodDefault; +}, z.core.$strip>; + +// ── BpmnImportOptions (type) ── +type BpmnImportOptions = z.input; + +// ── BpmnImportOptionsParsed (type) ── +type BpmnImportOptionsParsed = z.infer; + +// ── BpmnImportOptionsSchema (const) ── +declare const BpmnImportOptionsSchema: z.ZodObject<{ + unmappedStrategy: z.ZodDefault>; + customMappings: z.ZodOptional; + notes: z.ZodOptional; + }, z.core.$strip>>>; + importLayout: z.ZodDefault; + importDocumentation: z.ZodDefault; + flowName: z.ZodOptional; + validateAfterImport: z.ZodDefault; +}, z.core.$strip>; + +// ── BpmnInteropResult (type) ── +type BpmnInteropResult = z.input; + +// ── BpmnInteropResultParsed (type) ── +type BpmnInteropResultParsed = z.infer; + +// ── BpmnInteropResultSchema (const) ── +declare const BpmnInteropResultSchema: z.ZodObject<{ + success: z.ZodBoolean; + diagnostics: z.ZodDefault; + message: z.ZodString; + bpmnElementId: z.ZodOptional; + nodeId: z.ZodOptional; + }, z.core.$strip>>>; + mappedCount: z.ZodDefault; + unmappedCount: z.ZodDefault; +}, z.core.$strip>; + +// ── BpmnMappingDiagnostic (interface) ── +interface BpmnMappingDiagnostic { + severity: 'info' | 'warning' | 'error'; + message: string; + nodeId?: string; +} + +// ── BpmnMappingResult (interface) ── +interface BpmnMappingResult { + flow: MappableFlow; + diagnostics: BpmnMappingDiagnostic[]; + /** Number of constructs/elements successfully mapped. */ + mappedCount: number; + /** Number of elements left unmapped (surfaced as warnings). */ + unmappedCount: number; +} + +// ── BpmnUnmappedStrategy (type) ── +type BpmnUnmappedStrategy = z.input; + +// ── BpmnUnmappedStrategySchema (const) ── +declare const BpmnUnmappedStrategySchema: z.ZodEnum<{ + error: "error"; + skip: "skip"; + warn: "warn"; + comment: "comment"; +}>; + +// ── BpmnVersion (type) ── +type BpmnVersion = z.input; + +// ── BpmnVersionSchema (const) ── +declare const BpmnVersionSchema: z.ZodEnum<{ + "2.0": "2.0"; + "2.0.2": "2.0.2"; +}>; + +// ── Checkpoint (type) ── +type Checkpoint = z.input; + +// ── CheckpointParsed (type) ── +type CheckpointParsed = z.infer; + +// ── CheckpointSchema (const) ── +declare const CheckpointSchema: z.ZodObject<{ + id: z.ZodString; + executionId: z.ZodString; + flowName: z.ZodString; + currentNodeId: z.ZodString; + variables: z.ZodRecord; + completedNodeIds: z.ZodArray; + createdAt: z.ZodString; + expiresAt: z.ZodOptional; + reason: z.ZodEnum<{ + error: "error"; + approval: "approval"; + wait: "wait"; + boundary_event: "boundary_event"; + screen_input: "screen_input"; + manual_pause: "manual_pause"; + parallel_join: "parallel_join"; + }>; +}, z.core.$strip>; + +// ── ConcurrencyPolicy (type) ── +type ConcurrencyPolicy = z.input; + +// ── ConcurrencyPolicyParsed (type) ── +type ConcurrencyPolicyParsed = z.infer; + +// ── ConcurrencyPolicySchema (const) ── +declare const ConcurrencyPolicySchema: z.ZodObject<{ + maxConcurrent: z.ZodDefault; + onConflict: z.ZodDefault>; + lockScope: z.ZodDefault>; + queueTimeoutMs: z.ZodOptional; +}, z.core.$strip>; + +// ── CreateRecordConfig (type) ── +type CreateRecordConfig = z.input; + +// ── CreateRecordConfigParsed (type) ── +type CreateRecordConfigParsed = z.infer; + +// ── CreateRecordConfigSchema (const) ── +declare const CreateRecordConfigSchema: z.ZodObject<{ + objectName: z.ZodString; + fields: z.ZodOptional>; + outputVariable: z.ZodOptional; +}, z.core.$strict>; + +// ── DEFAULT_FLOW_FUNCTION_EFFECT (const) ── +declare const DEFAULT_FLOW_FUNCTION_EFFECT: FlowFunctionEffect; + +// ── DEPRECATED_APPROVER_TYPES (const) ── +declare const DEPRECATED_APPROVER_TYPES: { + readonly role: "org_membership_level"; +}; + +// ── DecisionCondition (type) ── +type DecisionCondition = z.input; + +// ── DecisionConditionSchema (const) ── +declare const DecisionConditionSchema: z.ZodObject<{ + label: z.ZodString; + expression: z.ZodString; +}, z.core.$strict>; + +// ── DecisionConfig (type) ── +type DecisionConfig = z.input; + +// ── DecisionConfigParsed (type) ── +type DecisionConfigParsed = z.infer; + +// ── DecisionConfigSchema (const) ── +declare const DecisionConfigSchema: z.ZodObject<{ + conditions: z.ZodOptional>>; +}, z.core.$strict>; + +// ── DecisionOutputDef (type) ── +type DecisionOutputDef = z.input; + +// ── DecisionOutputDefSchema (const) ── +declare const DecisionOutputDefSchema: z.ZodObject<{ + key: z.ZodString; + label: z.ZodOptional; + type: z.ZodOptional>; + multiple: z.ZodOptional; + required: z.ZodOptional; +}, z.core.$strict>; + +// ── DeleteRecordConfig (type) ── +type DeleteRecordConfig = z.input; + +// ── DeleteRecordConfigParsed (type) ── +type DeleteRecordConfigParsed = z.infer; + +// ── DeleteRecordConfigSchema (const) ── +declare const DeleteRecordConfigSchema: z.ZodObject<{ + objectName: z.ZodString; + filter: z.ZodOptional>; + multi: z.ZodOptional; +}, z.core.$strict>; + +// ── EndConfig (type) ── +type EndConfig = z.input; + +// ── EndConfigParsed (type) ── +type EndConfigParsed = z.infer; + +// ── EndConfigSchema (const) ── +declare const EndConfigSchema: z.ZodObject<{ + outcome: z.ZodDefault>; + message: z.ZodOptional; +}, z.core.$strict>; + +// ── ExecutionError (type) ── +type ExecutionError = z.input; + +// ── ExecutionErrorParsed (type) ── +type ExecutionErrorParsed = z.infer; + +// ── ExecutionErrorSchema (const) ── +declare const ExecutionErrorSchema: z.ZodObject<{ + id: z.ZodString; + executionId: z.ZodString; + nodeId: z.ZodOptional; + severity: z.ZodEnum<{ + error: "error"; + warning: "warning"; + critical: "critical"; + }>; + code: z.ZodString; + message: z.ZodString; + stack: z.ZodOptional; + context: z.ZodOptional>; + timestamp: z.ZodString; + retryable: z.ZodDefault; + resolvedAt: z.ZodOptional; +}, z.core.$strip>; + +// ── ExecutionErrorSeverity (const) ── +declare const ExecutionErrorSeverity: z.ZodEnum<{ + error: "error"; + warning: "warning"; + critical: "critical"; +}>; + +// ── ExecutionErrorSeverity (type) ── +type ExecutionErrorSeverity = z.input; + +// ── ExecutionLog (type) ── +type ExecutionLog = z.input; + +// ── ExecutionLogParsed (type) ── +type ExecutionLogParsed = z.infer; + +// ── ExecutionLogSchema (const) ── +declare const ExecutionLogSchema: z.ZodObject<{ + id: z.ZodString; + flowName: z.ZodString; + flowVersion: z.ZodOptional; + status: z.ZodEnum<{ + failed: "failed"; + refused: "refused"; + pending: "pending"; + completed: "completed"; + running: "running"; + cancelled: "cancelled"; + paused: "paused"; + timed_out: "timed_out"; + retrying: "retrying"; + }>; + refusalMessage: z.ZodOptional; + trigger: z.ZodObject<{ + type: z.ZodString; + recordId: z.ZodOptional; + object: z.ZodOptional; + userId: z.ZodOptional; + metadata: z.ZodOptional>; + }, z.core.$strip>; + steps: z.ZodArray; + status: z.ZodEnum<{ + success: "success"; + skipped: "skipped"; + failure: "failure"; + }>; + startedAt: z.ZodString; + completedAt: z.ZodOptional; + durationMs: z.ZodOptional; + input: z.ZodOptional>; + output: z.ZodOptional>; + error: z.ZodOptional; + }, z.core.$strip>>; + retryAttempt: z.ZodOptional; + parentNodeId: z.ZodOptional; + iteration: z.ZodOptional; + branch: z.ZodOptional; + regionKind: z.ZodOptional; + metrics: z.ZodOptional; + acted: z.ZodOptional; + unmeasuredEffect: z.ZodOptional; + failures: z.ZodOptional; + }, z.core.$strip>>; + skippedBy: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + summary: z.ZodOptional; + failed: z.ZodOptional; + nodes: z.ZodArray; + status: z.ZodEnum<{ + success: "success"; + skipped: "skipped"; + failure: "failure"; + }>; + runs: z.ZodNumber; + failures: z.ZodNumber; + skipped: z.ZodNumber; + selected: z.ZodOptional; + acted: z.ZodOptional; + unmeasured: z.ZodOptional; + }, z.core.$strip>>; + gates: z.ZodArray; + label: z.ZodOptional; + skipped: z.ZodNumber; + }, z.core.$strip>>; + detailOmitted: z.ZodOptional; + }, z.core.$strip>>; + variables: z.ZodOptional>; + startedAt: z.ZodString; + completedAt: z.ZodOptional; + durationMs: z.ZodOptional; + runAs: z.ZodOptional>; + tenantId: z.ZodOptional; +}, z.core.$strip>; + +// ── ExecutionStatus (const) ── +declare const ExecutionStatus: z.ZodEnum<{ + failed: "failed"; + refused: "refused"; + pending: "pending"; + completed: "completed"; + running: "running"; + cancelled: "cancelled"; + paused: "paused"; + timed_out: "timed_out"; + retrying: "retrying"; +}>; + +// ── ExecutionStatus (type) ── +type ExecutionStatus = z.input; + +// ── ExecutionStepLog (type) ── +type ExecutionStepLog = z.input; + +// ── ExecutionStepLogParsed (type) ── +type ExecutionStepLogParsed = z.infer; + +// ── ExecutionStepLogSchema (const) ── +declare const ExecutionStepLogSchema: z.ZodObject<{ + nodeId: z.ZodString; + nodeType: z.ZodString; + nodeLabel: z.ZodOptional; + status: z.ZodEnum<{ + success: "success"; + skipped: "skipped"; + failure: "failure"; + }>; + startedAt: z.ZodString; + completedAt: z.ZodOptional; + durationMs: z.ZodOptional; + input: z.ZodOptional>; + output: z.ZodOptional>; + error: z.ZodOptional; + }, z.core.$strip>>; + retryAttempt: z.ZodOptional; + parentNodeId: z.ZodOptional; + iteration: z.ZodOptional; + branch: z.ZodOptional; + regionKind: z.ZodOptional; + metrics: z.ZodOptional; + acted: z.ZodOptional; + unmeasuredEffect: z.ZodOptional; + failures: z.ZodOptional; + }, z.core.$strip>>; + skippedBy: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── ExecutionStepMetrics (type) ── +type ExecutionStepMetrics = z.input; + +// ── ExecutionStepMetricsSchema (const) ── +declare const ExecutionStepMetricsSchema: z.ZodObject<{ + selected: z.ZodOptional; + acted: z.ZodOptional; + unmeasuredEffect: z.ZodOptional; + failures: z.ZodOptional; +}, z.core.$strip>; + +// ── ExecutionStepSkipReason (type) ── +type ExecutionStepSkipReason = z.input; + +// ── ExecutionStepSkipReasonSchema (const) ── +declare const ExecutionStepSkipReasonSchema: z.ZodObject<{ + nodeId: z.ZodString; + edgeId: z.ZodOptional; + label: z.ZodOptional; +}, z.core.$strip>; + +// ── FLOW_BUILTIN_NODE_TYPES (const) ── +declare const FLOW_BUILTIN_NODE_TYPES: readonly string[]; + +// ── FLOW_NODE_EXPRESSION_PATHS (const) ── +declare const FLOW_NODE_EXPRESSION_PATHS: readonly FlowNodeExpressionPath[]; + +// ── FLOW_REGION_CONFIG_KEYS (const) ── +declare const FLOW_REGION_CONFIG_KEYS: ReadonlySet; + +// ── FLOW_REGION_SLOTS (const) ── +declare const FLOW_REGION_SLOTS: readonly FlowRegionSlotDecl[]; + +// ── FLOW_REGION_SLOTS_BY_TYPE (const) ── +declare const FLOW_REGION_SLOTS_BY_TYPE: ReadonlyMap; + +// ── FLOW_STRUCTURAL_NODE_TYPES (const) ── +declare const FLOW_STRUCTURAL_NODE_TYPES: readonly string[]; + +// ── FLOW_TRIGGER_KINDS (const) ── +declare const FLOW_TRIGGER_KINDS: readonly FlowTriggerKind[]; + +// ── Flow (type) ── +type Flow = z.input; + +// ── FlowEdge (type) ── +type FlowEdge = z.input; + +// ── FlowEdgeParsed (type) ── +type FlowEdgeParsed = z.infer; + +// ── FlowEdgeSchema (const) ── +declare const FlowEdgeSchema: z.ZodObject<{ + id: z.ZodString; + source: z.ZodString; + target: z.ZodString; + condition: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + source: z.ZodString; + }, z.core.$strip>]>>; + type: z.ZodDefault>; + label: z.ZodOptional; + isDefault: z.ZodDefault; +}, z.core.$strict>; + +// ── FlowFunctionCallable (type) ── +type FlowFunctionCallable = (...args: never[]) => unknown; + +// ── FlowFunctionDeclaration (type) ── +type FlowFunctionDeclaration = z.input; + +// ── FlowFunctionDeclarationParsed (type) ── +type FlowFunctionDeclarationParsed = z.infer; + +// ── FlowFunctionDeclarationSchema (const) ── +declare const FlowFunctionDeclarationSchema: z.ZodObject<{ + handler: z.ZodFunction; + effect: z.ZodDefault>; +}, z.core.$strict>; + +// ── FlowFunctionEffect (type) ── +type FlowFunctionEffect = z.input; + +// ── FlowFunctionEffectSchema (const) ── +declare const FlowFunctionEffectSchema: z.ZodEnum<{ + pure: "pure"; + writes: "writes"; +}>; + +// ── FlowFunctionEntry (type) ── +type FlowFunctionEntry = z.input; + +// ── FlowFunctionEntryParsed (type) ── +type FlowFunctionEntryParsed = z.infer; + +// ── FlowFunctionEntrySchema (const) ── +declare const FlowFunctionEntrySchema: z.ZodUnion, z.ZodObject<{ + handler: z.ZodFunction; + effect: z.ZodDefault>; +}, z.core.$strict>, z.ZodString, z.ZodObject<{ + effect: z.ZodDefault>; + handler: z.ZodString; +}, z.core.$strict>]>; + +// ── FlowGraph (interface) ── +interface FlowGraph { + /** + * Where this graph sits. Empty string for the flow's own `nodes`/`edges`; + * otherwise the region path, e.g. `loop 'sweep' body` or + * `loop 'sweep' body → try_catch 'guard' catch`. + */ + readonly scope: string; + /** + * The same location as {@link scope}, as the key path from the flow root to + * the object holding this graph's `nodes` / `edges`: `[]` for the flow + * itself, `['nodes', 1, 'config', 'body']` for a loop body, + * `['nodes', 1, 'config', 'branches', 0]` for a parallel branch. A Zod issue + * about a region node is anchored where the author wrote it — + * `[...path, 'nodes', i, 'id']` — rather than described in prose (#16134). + */ + readonly path: readonly (string | number)[]; + /** + * Every member is a record. A node list read out of a container's open + * `z.record` config can hold whatever the author typed — an empty YAML list + * item deserialises to `null` — and a region its own schema refused is left + * RAW for {@link validateControlFlow} to name. The walk therefore drops a + * non-record member rather than hand out an array that does not match this + * declared type (#16752). Only the two handed-out arrays are narrowed: the + * schema refusal that owns the malformed region still fires, and + * {@link path} still indexes the RAW list, so a finding stays anchored where + * the author wrote it. + */ + readonly nodes: readonly FlowNodeParsed[]; + /** + * Every member is a record, for the reason {@link FlowGraph.nodes} states and + * by the same drop in the same walk. A nested region's edge list is admitted + * on `Array.isArray` alone, and `Array.isArray` proves the LIST, never its + * MEMBERS: an empty YAML `edges:` item deserialises to `null`, and a region + * its own schema refused is left RAW for {@link validateControlFlow} to name. + * So this array was forwarded with the producer's word about its members + * rather than a check, while its declared element type said it could not hold + * one. The walk drops a non-record member here too. Only the handed-out array + * is narrowed: the schema refusal that owns the malformed region still fires, + * and no consumer indexes this list positionally — a dropped member changes + * the index, never whether an edge was judged. + */ + readonly edges: readonly FlowEdgeParsed[]; +} + +// ── FlowNode (type) ── +type FlowNode = z.input; + +// ── FlowNodeAction (const) ── +declare const FlowNodeAction: z.ZodEnum<{ + map: "map"; + start: "start"; + end: "end"; + screen: "screen"; + loop: "loop"; + http: "http"; + delete_record: "delete_record"; + script: "script"; + get_record: "get_record"; + create_record: "create_record"; + update_record: "update_record"; + notify: "notify"; + wait: "wait"; + subflow: "subflow"; + connector_action: "connector_action"; + decision: "decision"; + assignment: "assignment"; + parallel_gateway: "parallel_gateway"; + join_gateway: "join_gateway"; + boundary_event: "boundary_event"; +}>; + +// ── FlowNodeAction (type) ── +type FlowNodeAction = z.input; + +// ── FlowNodeExpressionPath (interface) ── +interface FlowNodeExpressionPath { + /** Registry node type the path belongs to (`node.type`). */ + readonly nodeType: string; + /** + * Dot path into `node.config`, using `[]` for "every element of this array" + * and a `*` segment for "every key of this object" (#14149). + * `'fields[].visibleWhen'` reads `config.fields[i].visibleWhen` for each `i`; + * `'assignments.*'` reads `config.assignments[k]` for each authored key `k` + * — the spelling for a map whose keys are the author's own names (variable + * names, field names) and so cannot be enumerated by the ledger. + */ + readonly path: string; + /** Which dialect this slot takes — decides what counts as malformed. */ + readonly role: FlowNodeExpressionRole; + /** Author-facing label for diagnostics, e.g. `screen field visibleWhen`. */ + readonly label: string; +} + +// ── FlowNodeExpressionRole (type) ── +type FlowNodeExpressionRole = +/** + * Bare CEL — a boolean predicate. `{…}` braces are the #1491 brace-trap. + * Validated by `validateExpression('predicate', …)` at both registration and + * `objectstack validate`. + */ +'predicate' +/** + * Single-brace `{var}` flow interpolation, resolved by `interpolate()` against + * the flow's live variables. + * + * **Declared but not validated.** No validator implements this dialect: the + * `'template'` role of `validateExpression` enforces the ADR-0032 §3 + * *double-brace* text template and rejects a single `{x}` as a legacy hole, so + * routing these slots through it would fail every correct `loop.collection` in + * every existing flow. Recorded here so the reconciliation ratchet still sees + * the marker and a future validator has one place to hook into. + */ + | 'flow-template' +/** + * A CEL **value** expression — evaluated by the expression engine to the + * value the variable takes (`validateExpression`'s `'value'` role: parses as + * CEL, any result type). Not a predicate (no boolean expected) and not a + * template (no `{token}` holes): the slot's *shape* decides which dialect it + * is in. A `value` slot is a config position whose authored value is EITHER + * the `{token}` flow interpolation every node string already gets (a plain + * string — the `flow-template` dialect above, still unvalidated here) OR an + * `{ dialect: 'cel', source }` expression envelope (`ExpressionSchema` in + * `shared/expression.zod.ts`) evaluated to a value. Only the envelope form is + * an expression to check, so {@link resolveFlowNodeExpressions} emits + * envelope-shaped objects — never strings — for this role (#14149). + * + * Declared for the `assignment` node's `assignments` map (maintainer ruling + * 2026-09-02, #14149): that is the one slot whose whole job is to compute a + * value into a variable, and until then CEL was reachable only where the + * answer had to be a boolean — so the declared stdlib (`joinNonEmpty` and the + * rest of `CEL_STDLIB_FUNCTIONS`) was unreachable from metadata. Validated at + * `registerFlow` and `objectstack validate` by the executor-side half + * (`service-automation` / `lint` consumers call + * `validateExpression('value', …)` on what this ledger resolves, after + * `AssignmentValueSchema` has judged the envelope's shape); the same half + * evaluates the envelope at run time. That half LANDED in #15137: the + * built-in `assignment` executor evaluates a declared envelope and assigns + * the result. Comment-only correction — before #15137 this paragraph closed + * by saying the executor still wrote the envelope object into the variable + * verbatim, which the landing made false. + */ + | 'value'; + +// ── FlowNodeParsed (type) ── +type FlowNodeParsed = z.infer; + +// ── FlowNodeSchema (const) ── +declare const FlowNodeSchema: z.ZodPipe>; + connectorConfig: z.ZodOptional>; + }, z.core.$strict>>; + position: z.ZodOptional>; + timeoutMs: z.ZodOptional; + inputSchema: z.ZodOptional; + required: z.ZodDefault; + description: z.ZodOptional; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional; + waitEventConfig: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + timeoutMs: z.ZodOptional; + onTimeout: z.ZodOptional; + }, z.core.$strict>>; + boundaryConfig: z.ZodOptional; + interrupting: z.ZodDefault; + errorCode: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>, z.ZodTransform<{ + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "webhook" | "signal" | "timer" | "manual"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "signal" | "timer" | "cancel"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; +}, { + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "webhook" | "signal" | "timer" | "manual"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "signal" | "timer" | "cancel"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; +}>>; + +// ── FlowParsed (type) ── +type FlowParsed = z.infer; + +// ── FlowRegion (type) ── +type FlowRegion = z.input; + +// ── FlowRegionArity (type) ── +type FlowRegionArity = +/** The slot's value IS a region (`loop.config.body`). */ +'one' +/** The slot's value is an ARRAY of regions (`parallel.config.branches`). */ + | 'many'; + +// ── FlowRegionParsed (type) ── +type FlowRegionParsed = z.infer; + +// ── FlowRegionSchema (const) ── +declare const FlowRegionSchema: z.ZodObject<{ + nodes: z.ZodArray>; + connectorConfig: z.ZodOptional>; + }, z.core.$strict>>; + position: z.ZodOptional>; + timeoutMs: z.ZodOptional; + inputSchema: z.ZodOptional; + required: z.ZodDefault; + description: z.ZodOptional; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional; + waitEventConfig: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + timeoutMs: z.ZodOptional; + onTimeout: z.ZodOptional; + }, z.core.$strict>>; + boundaryConfig: z.ZodOptional; + interrupting: z.ZodDefault; + errorCode: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform<{ + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "webhook" | "signal" | "timer" | "manual"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "signal" | "timer" | "cancel"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }, { + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "webhook" | "signal" | "timer" | "manual"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "signal" | "timer" | "cancel"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }>>>>; + edges: z.ZodDefault>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + source: z.ZodString; + }, z.core.$strip>]>>; + type: z.ZodDefault>; + label: z.ZodOptional; + isDefault: z.ZodDefault; + }, z.core.$strict>>>>; +}, z.core.$strict>; + +// ── FlowRegionSlotDecl (interface) ── +interface FlowRegionSlotDecl { + /** The container's `node.type`. */ + readonly nodeType: string; + /** The `config` key holding the region(s). */ + readonly key: string; + readonly arity: FlowRegionArity; +} + +// ── FlowRunGateSummary (type) ── +type FlowRunGateSummary = z.input; + +// ── FlowRunGateSummarySchema (const) ── +declare const FlowRunGateSummarySchema: z.ZodObject<{ + nodeId: z.ZodString; + targetNodeId: z.ZodString; + edgeId: z.ZodOptional; + label: z.ZodOptional; + skipped: z.ZodNumber; +}, z.core.$strip>; + +// ── FlowRunNodeSummary (type) ── +type FlowRunNodeSummary = z.input; + +// ── FlowRunNodeSummarySchema (const) ── +declare const FlowRunNodeSummarySchema: z.ZodObject<{ + nodeId: z.ZodString; + nodeType: z.ZodString; + nodeLabel: z.ZodOptional; + status: z.ZodEnum<{ + success: "success"; + skipped: "skipped"; + failure: "failure"; + }>; + runs: z.ZodNumber; + failures: z.ZodNumber; + skipped: z.ZodNumber; + selected: z.ZodOptional; + acted: z.ZodOptional; + unmeasured: z.ZodOptional; +}, z.core.$strip>; + +// ── FlowRunSummary (type) ── +type FlowRunSummary = z.input; + +// ── FlowRunSummaryParsed (type) ── +type FlowRunSummaryParsed = z.infer; + +// ── FlowRunSummarySchema (const) ── +declare const FlowRunSummarySchema: z.ZodObject<{ + selected: z.ZodNumber; + acted: z.ZodNumber; + skipped: z.ZodNumber; + unmeasured: z.ZodOptional; + failed: z.ZodOptional; + nodes: z.ZodArray; + status: z.ZodEnum<{ + success: "success"; + skipped: "skipped"; + failure: "failure"; + }>; + runs: z.ZodNumber; + failures: z.ZodNumber; + skipped: z.ZodNumber; + selected: z.ZodOptional; + acted: z.ZodOptional; + unmeasured: z.ZodOptional; + }, z.core.$strip>>; + gates: z.ZodArray; + label: z.ZodOptional; + skipped: z.ZodNumber; + }, z.core.$strip>>; + detailOmitted: z.ZodOptional; +}, z.core.$strip>; + +// ── FlowSchema (const) ── +declare const FlowSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + successMessage: z.ZodOptional; + errorMessage: z.ZodOptional; + version: z.ZodDefault; + status: z.ZodDefault>; + template: z.ZodOptional; + type: z.ZodEnum<{ + screen: "screen"; + autolaunched: "autolaunched"; + api: "api"; + record_change: "record_change"; + schedule: "schedule"; + }>; + variables: z.ZodOptional; + isOutput: z.ZodDefault; + defaultValue: z.ZodOptional; + }, z.core.$strict>>>; + nodes: z.ZodArray>; + connectorConfig: z.ZodOptional>; + }, z.core.$strict>>; + position: z.ZodOptional>; + timeoutMs: z.ZodOptional; + inputSchema: z.ZodOptional; + required: z.ZodDefault; + description: z.ZodOptional; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional; + waitEventConfig: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + timeoutMs: z.ZodOptional; + onTimeout: z.ZodOptional; + }, z.core.$strict>>; + boundaryConfig: z.ZodOptional; + interrupting: z.ZodDefault; + errorCode: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform<{ + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "webhook" | "signal" | "timer" | "manual"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "signal" | "timer" | "cancel"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }, { + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "webhook" | "signal" | "timer" | "manual"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "signal" | "timer" | "cancel"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }>>>; + edges: z.ZodArray>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + source: z.ZodString; + }, z.core.$strip>]>>; + type: z.ZodDefault>; + label: z.ZodOptional; + isDefault: z.ZodDefault; + }, z.core.$strict>>; + active: z.ZodOptional; + runAs: z.ZodDefault>; + errorHandling: z.ZodOptional; + fallbackNodeId: z.ZodOptional; + backoffMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; + maxRetryDelayMs: z.ZodDefault; + jitter: z.ZodDefault; + retryDelayMs: z.ZodOptional; + strategy: z.ZodDefault>; + }, z.core.$strict>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── FlowTriggerKind (type) ── +type FlowTriggerKind = 'record_change' | 'time_relative' | 'schedule' | 'api'; + +// ── FlowVariableSchema (const) ── +declare const FlowVariableSchema: z.ZodObject<{ + name: z.ZodString; + type: z.ZodString; + isInput: z.ZodDefault; + isOutput: z.ZodDefault; + defaultValue: z.ZodOptional; +}, z.core.$strict>; + +// ── FlowVersionHistory (type) ── +type FlowVersionHistory = z.input; + +// ── FlowVersionHistoryParsed (type) ── +type FlowVersionHistoryParsed = z.infer; + +// ── FlowVersionHistorySchema (const) ── +declare const FlowVersionHistorySchema: z.ZodObject<{ + flowName: z.ZodString; + version: z.ZodNumber; + definition: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + successMessage: z.ZodOptional; + errorMessage: z.ZodOptional; + version: z.ZodDefault; + status: z.ZodDefault>; + template: z.ZodOptional; + type: z.ZodEnum<{ + screen: "screen"; + autolaunched: "autolaunched"; + api: "api"; + record_change: "record_change"; + schedule: "schedule"; + }>; + variables: z.ZodOptional; + isOutput: z.ZodDefault; + defaultValue: z.ZodOptional; + }, z.core.$strict>>>; + nodes: z.ZodArray>; + connectorConfig: z.ZodOptional>; + }, z.core.$strict>>; + position: z.ZodOptional>; + timeoutMs: z.ZodOptional; + inputSchema: z.ZodOptional; + required: z.ZodDefault; + description: z.ZodOptional; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional; + waitEventConfig: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + timeoutMs: z.ZodOptional; + onTimeout: z.ZodOptional; + }, z.core.$strict>>; + boundaryConfig: z.ZodOptional; + interrupting: z.ZodDefault; + errorCode: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform<{ + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "webhook" | "signal" | "timer" | "manual"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "signal" | "timer" | "cancel"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }, { + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "webhook" | "signal" | "timer" | "manual"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "signal" | "timer" | "cancel"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }>>>; + edges: z.ZodArray>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + source: z.ZodString; + }, z.core.$strip>]>>; + type: z.ZodDefault>; + label: z.ZodOptional; + isDefault: z.ZodDefault; + }, z.core.$strict>>; + active: z.ZodOptional; + runAs: z.ZodDefault>; + errorHandling: z.ZodOptional; + fallbackNodeId: z.ZodOptional; + backoffMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; + maxRetryDelayMs: z.ZodDefault; + jitter: z.ZodDefault; + retryDelayMs: z.ZodOptional; + strategy: z.ZodDefault>; + }, z.core.$strict>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; + createdAt: z.ZodString; + createdBy: z.ZodOptional; + changeNote: z.ZodOptional; +}, z.core.$strip>; + +// ── GetRecordConfig (type) ── +type GetRecordConfig = z.input; + +// ── GetRecordConfigParsed (type) ── +type GetRecordConfigParsed = z.infer; + +// ── GetRecordConfigSchema (const) ── +declare const GetRecordConfigSchema: z.ZodObject<{ + objectName: z.ZodString; + filter: z.ZodOptional>; + fields: z.ZodOptional>; + limit: z.ZodOptional; + outputVariable: z.ZodOptional; +}, z.core.$strict>; + +// ── GuardRef (type) ── +type GuardRef = z.input; + +// ── GuardRefSchema (const) ── +declare const GuardRefSchema: z.ZodUnion>; +}, z.core.$strict>]>; + +// ── HttpConfig (type) ── +type HttpConfig = z.input; + +// ── HttpConfigParsed (type) ── +type HttpConfigParsed = z.infer; + +// ── HttpConfigSchema (const) ── +declare const HttpConfigSchema: z.ZodObject<{ + url: z.ZodString; + method: z.ZodOptional; + headers: z.ZodOptional>; + body: z.ZodOptional; + durable: z.ZodOptional; + timeoutMs: z.ZodOptional; + signingSecret: z.ZodOptional; +}, z.core.$strict>; + +// ── LEDGER_DECLARED_NODE_CONFIG_SCHEMAS (const) ── +declare const LEDGER_DECLARED_NODE_CONFIG_SCHEMAS: { + readonly assignment: z.ZodObject<{ + assignments: z.ZodOptional>; + }, z.core.$catchall>; +}; + +// ── LOOP_MAX_ITERATIONS_CEILING (const) ── +declare const LOOP_MAX_ITERATIONS_CEILING = 100000; + +// ── LOOP_NODE_TYPE (const) ── +declare const LOOP_NODE_TYPE: "loop"; + +// ── LedgerDeclaredNodeType (type) ── +type LedgerDeclaredNodeType = keyof typeof LEDGER_DECLARED_NODE_CONFIG_SCHEMAS; + +// ── LoopConfig (type) ── +type LoopConfig = z.input; + +// ── LoopConfigParsed (type) ── +type LoopConfigParsed = z.infer; + +// ── LoopConfigSchema (const) ── +declare const LoopConfigSchema: z.ZodObject<{ + collection: z.ZodUnion]>; + iteratorVariable: z.ZodDefault; + indexVariable: z.ZodOptional; + maxIterations: z.ZodOptional; + body: z.ZodOptional>; + connectorConfig: z.ZodOptional>; + }, z.core.$strict>>; + position: z.ZodOptional>; + timeoutMs: z.ZodOptional; + inputSchema: z.ZodOptional; + required: z.ZodDefault; + description: z.ZodOptional; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional; + waitEventConfig: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + timeoutMs: z.ZodOptional; + onTimeout: z.ZodOptional; + }, z.core.$strict>>; + boundaryConfig: z.ZodOptional; + interrupting: z.ZodDefault; + errorCode: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform<{ + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "webhook" | "signal" | "timer" | "manual"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "signal" | "timer" | "cancel"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }, { + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "webhook" | "signal" | "timer" | "manual"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "signal" | "timer" | "cancel"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }>>>>; + edges: z.ZodDefault>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + source: z.ZodString; + }, z.core.$strip>]>>; + type: z.ZodDefault>; + label: z.ZodOptional; + isDefault: z.ZodDefault; + }, z.core.$strict>>>>; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── MapConfig (type) ── +type MapConfig = z.input; + +// ── MapConfigParsed (type) ── +type MapConfigParsed = z.infer; + +// ── MapConfigSchema (const) ── +declare const MapConfigSchema: z.ZodObject<{ + collection: z.ZodUnion]>; + flowName: z.ZodString; + iteratorVariable: z.ZodDefault; + indexVariable: z.ZodOptional; + itemObject: z.ZodOptional; + input: z.ZodOptional>; + outputVariable: z.ZodOptional; +}, z.core.$strict>; + +// ── MappableFlow (interface) ── +interface MappableFlow { + nodes: FlowNode[]; + edges: FlowEdge[]; +} + +// ── NON_AUTHORABLE_APPROVER_TYPES (const) ── +declare const NON_AUTHORABLE_APPROVER_TYPES: readonly string[]; + +// ── NodeExecutorDescriptor (type) ── +type NodeExecutorDescriptor = z.input; + +// ── NodeExecutorDescriptorParsed (type) ── +type NodeExecutorDescriptorParsed = z.infer; + +// ── NodeExecutorDescriptorSchema (const) ── +declare const NodeExecutorDescriptorSchema: z.ZodObject<{ + id: z.ZodString; + name: z.ZodString; + nodeTypes: z.ZodArray; + version: z.ZodString; + description: z.ZodOptional; + supportsPause: z.ZodDefault; + supportsCancellation: z.ZodDefault; + supportsRetry: z.ZodDefault; + configSchemaRef: z.ZodOptional; +}, z.core.$strip>; + +// ── NormalizedFlowFunction (interface) ── +interface NormalizedFlowFunction { + readonly handler: FlowFunctionCallable; + readonly effect: FlowFunctionEffect; + /** + * Set to the raw value when `effect` was present but not a member of + * {@link FlowFunctionEffectSchema} — a typo (`'write'`) on a path that + * skipped `defineStack`'s parse. `effect` then reads `'writes'`, because a + * declaration the platform cannot read means "cannot say this ran clean", + * never "it wrote nothing"; the caller surfaces the raw value so the typo is + * fixable rather than permanently costing the run its measurement. + */ + readonly unrecognizedEffect?: unknown; +} + +// ── NotifyConfig (type) ── +type NotifyConfig = z.input; + +// ── NotifyConfigParsed (type) ── +type NotifyConfigParsed = z.infer; + +// ── NotifyConfigSchema (const) ── +declare const NotifyConfigSchema: z.ZodObject<{ + recipients: z.ZodUnion]>; + title: z.ZodOptional; + message: z.ZodOptional; + template: z.ZodOptional; + templateData: z.ZodOptional>; + channels: z.ZodOptional]>>; + topic: z.ZodOptional; + severity: z.ZodOptional>; + sourceObject: z.ZodOptional; + sourceId: z.ZodOptional; + actorId: z.ZodOptional; + actionUrl: z.ZodOptional; + payload: z.ZodOptional>; +}, z.core.$strict>; + +// ── ORG_MEMBERSHIP_LEVELS (const) ── +declare const ORG_MEMBERSHIP_LEVELS: readonly ["owner", "admin", "delegated_admin", "member"]; + +// ── OS_CONSTRUCT_EXT (const) ── +declare const OS_CONSTRUCT_EXT: "osConstruct"; + +// ── PARALLEL_NODE_TYPE (const) ── +declare const PARALLEL_NODE_TYPE: "parallel"; + +// ── PREDICATE_SLOT_STRING_REFUSAL (const) ── +declare const PREDICATE_SLOT_STRING_REFUSAL: string; + +// ── ParallelBranch (type) ── +type ParallelBranch = z.input; + +// ── ParallelBranchParsed (type) ── +type ParallelBranchParsed = z.infer; + +// ── ParallelBranchSchema (const) ── +declare const ParallelBranchSchema: z.ZodObject<{ + name: z.ZodOptional; + nodes: z.ZodArray>; + connectorConfig: z.ZodOptional>; + }, z.core.$strict>>; + position: z.ZodOptional>; + timeoutMs: z.ZodOptional; + inputSchema: z.ZodOptional; + required: z.ZodDefault; + description: z.ZodOptional; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional; + waitEventConfig: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + timeoutMs: z.ZodOptional; + onTimeout: z.ZodOptional; + }, z.core.$strict>>; + boundaryConfig: z.ZodOptional; + interrupting: z.ZodDefault; + errorCode: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform<{ + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "webhook" | "signal" | "timer" | "manual"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "signal" | "timer" | "cancel"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }, { + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "webhook" | "signal" | "timer" | "manual"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "signal" | "timer" | "cancel"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }>>>>; + edges: z.ZodDefault>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + source: z.ZodString; + }, z.core.$strip>]>>; + type: z.ZodDefault>; + label: z.ZodOptional; + isDefault: z.ZodDefault; + }, z.core.$strict>>>>; +}, z.core.$strict>; + +// ── ParallelConfig (type) ── +type ParallelConfig = z.input; + +// ── ParallelConfigParsed (type) ── +type ParallelConfigParsed = z.infer; + +// ── ParallelConfigSchema (const) ── +declare const ParallelConfigSchema: z.ZodObject<{ + branches: z.ZodArray; + nodes: z.ZodArray>; + connectorConfig: z.ZodOptional>; + }, z.core.$strict>>; + position: z.ZodOptional>; + timeoutMs: z.ZodOptional; + inputSchema: z.ZodOptional; + required: z.ZodDefault; + description: z.ZodOptional; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional; + waitEventConfig: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + timeoutMs: z.ZodOptional; + onTimeout: z.ZodOptional; + }, z.core.$strict>>; + boundaryConfig: z.ZodOptional; + interrupting: z.ZodDefault; + errorCode: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform<{ + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "webhook" | "signal" | "timer" | "manual"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "signal" | "timer" | "cancel"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }, { + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "webhook" | "signal" | "timer" | "manual"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "signal" | "timer" | "cancel"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }>>>>; + edges: z.ZodDefault>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + source: z.ZodString; + }, z.core.$strip>]>>; + type: z.ZodDefault>; + label: z.ZodOptional; + isDefault: z.ZodDefault; + }, z.core.$strict>>>>; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── ReconciledNodeConfigType (type) ── +type ReconciledNodeConfigType = SchemalessNodeType | LedgerDeclaredNodeType; + +// ── RegionAnalysis (interface) ── +interface RegionAnalysis { + /** The single entry node id (node with no in-edges), if well-formed. */ + entryId?: string; + /** The single exit node id (node with no out-edges), if well-formed. */ + exitId?: string; + /** Well-formedness problems; empty when the region is valid. */ + errors: string[]; +} + +// ── ResolvedFlowNodeExpression (interface) ── +interface ResolvedFlowNodeExpression { + /** The ledger entry that matched. */ + readonly entry: FlowNodeExpressionPath; + /** Concrete location, with array indices filled in (`fields[1].visibleWhen`). */ + readonly path: string; + /** The authored value sitting at that location. */ + readonly value: unknown; +} + +// ── RetryPolicy (type) ── +type RetryPolicy = z.input; + +// ── RetryPolicyParsed (type) ── +type RetryPolicyParsed = z.infer; + +// ── RetryPolicySchema (const) ── +declare const RetryPolicySchema: z.ZodObject<{ + maxRetries: z.ZodDefault; + backoffMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; + maxRetryDelayMs: z.ZodDefault; + jitter: z.ZodDefault; + retryDelayMs: z.ZodOptional; +}, z.core.$strip>; + +// ── SCHEDULE_ORGANIZATION_KEY (const) ── +declare const SCHEDULE_ORGANIZATION_KEY = "organization"; + +// ── SCHEMALESS_NODE_CONFIG_SCHEMAS (const) ── +declare const SCHEMALESS_NODE_CONFIG_SCHEMAS: { + readonly script: z.ZodObject<{ + function: z.ZodString; + inputs: z.ZodOptional>; + outputVariable: z.ZodOptional; + actionType: z.ZodOptional; + template: z.ZodOptional; + recipients: z.ZodOptional; + variables: z.ZodOptional; + script: z.ZodOptional; + }, z.core.$strict>; + readonly subflow: z.ZodObject<{ + flowName: z.ZodString; + input: z.ZodOptional>; + outputVariable: z.ZodOptional; + }, z.core.$strict>; + readonly decision: z.ZodObject<{ + conditions: z.ZodOptional>>; + }, z.core.$strict>; +}; + +// ── SCREEN_FIELD_LOOKUP_REFERENCE_REQUIRED (const) ── +declare const SCREEN_FIELD_LOOKUP_REFERENCE_REQUIRED: string; + +// ── STRUCTURAL_CONDITION_SHAPE_REFUSAL (const) ── +declare const STRUCTURAL_CONDITION_SHAPE_REFUSAL: string; + +// ── ScheduleOrganization (type) ── +type ScheduleOrganization = z.input; + +// ── ScheduleOrganizationSchema (const) ── +declare const ScheduleOrganizationSchema: z.ZodString; + +// ── ScheduleState (type) ── +type ScheduleState = z.input; + +// ── ScheduleStateParsed (type) ── +type ScheduleStateParsed = z.infer; + +// ── ScheduleStateSchema (const) ── +declare const ScheduleStateSchema: z.ZodObject<{ + id: z.ZodString; + flowName: z.ZodString; + timezone: z.ZodDefault; + status: z.ZodDefault>; + nextRunAt: z.ZodOptional; + lastRunAt: z.ZodOptional; + lastExecutionId: z.ZodOptional; + lastRunStatus: z.ZodOptional>; + totalRuns: z.ZodDefault; + consecutiveFailures: z.ZodDefault; + startDate: z.ZodOptional; + endDate: z.ZodOptional; + maxRuns: z.ZodOptional; + createdAt: z.ZodString; + updatedAt: z.ZodOptional; + createdBy: z.ZodOptional; +}, z.core.$strip>; + +// ── SchemalessNodeType (type) ── +type SchemalessNodeType = keyof typeof SCHEMALESS_NODE_CONFIG_SCHEMAS; + +// ── ScreenConfig (type) ── +type ScreenConfig = z.input; + +// ── ScreenConfigParsed (type) ── +type ScreenConfigParsed = z.infer; + +// ── ScreenConfigSchema (const) ── +declare const ScreenConfigSchema: z.ZodObject<{ + title: z.ZodOptional; + description: z.ZodOptional; + fields: z.ZodOptional; + type: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + defaultValue: z.ZodOptional; + placeholder: z.ZodOptional; + visibleWhen: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + inlineHelpText: z.ZodOptional; + reference: z.ZodOptional; + }, z.core.$strict>>>; + waitForInput: z.ZodOptional; + objectName: z.ZodOptional; + idVariable: z.ZodOptional; + mode: z.ZodDefault>; + recordId: z.ZodOptional; + defaults: z.ZodOptional>; +}, z.core.$strict>; + +// ── ScreenFieldConfig (type) ── +type ScreenFieldConfig = z.input; + +// ── ScreenFieldConfigSchema (const) ── +declare const ScreenFieldConfigSchema: z.ZodObject<{ + name: z.ZodString; + label: z.ZodOptional; + type: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + defaultValue: z.ZodOptional; + placeholder: z.ZodOptional; + visibleWhen: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + inlineHelpText: z.ZodOptional; + reference: z.ZodOptional; +}, z.core.$strict>; + +// ── ScriptConfig (type) ── +type ScriptConfig = z.input; + +// ── ScriptConfigParsed (type) ── +type ScriptConfigParsed = z.infer; + +// ── ScriptConfigSchema (const) ── +declare const ScriptConfigSchema: z.ZodObject<{ + function: z.ZodString; + inputs: z.ZodOptional>; + outputVariable: z.ZodOptional; + actionType: z.ZodOptional; + template: z.ZodOptional; + recipients: z.ZodOptional; + variables: z.ZodOptional; + script: z.ZodOptional; +}, z.core.$strict>; + +// ── StateMachineConfig (type) ── +type StateMachineConfig = z.input; + +// ── StateMachineSchema (const) ── +declare const StateMachineSchema: z.ZodObject<{ + id: z.ZodString; + description: z.ZodOptional; + contextSchema: z.ZodOptional>; + initial: z.ZodString; + states: z.ZodRecord>>; + on: z.ZodOptional; + cond: z.ZodOptional>; + }, z.core.$strict>]>>; + actions: z.ZodOptional>; + }, z.core.$strict>]>>>; + description: z.ZodOptional; + }, z.core.$strict>, z.ZodArray; + cond: z.ZodOptional>; + }, z.core.$strict>]>>; + actions: z.ZodOptional>; + }, z.core.$strict>]>>>; + description: z.ZodOptional; + }, z.core.$strict>>]>>>; +}, z.core.$strict>; + +// ── StateNode (type) ── +type StateNode = z.input; + +// ── StateNodeConfig (type) ── +type StateNodeConfig = { + type?: 'atomic' | 'compound' | 'parallel' | 'final' | 'history'; + entry?: ActionRef[]; + exit?: ActionRef[]; + on?: Record; + always?: Transition[]; + initial?: string; + states?: Record; + meta?: { + label?: string; + description?: string; + color?: string; + aiInstructions?: string; + }; +}; + +// ── StateNodeSchema (const) ── +declare const StateNodeSchema: z.ZodType; + +// ── SubflowConfig (type) ── +type SubflowConfig = z.input; + +// ── SubflowConfigParsed (type) ── +type SubflowConfigParsed = z.infer; + +// ── SubflowConfigSchema (const) ── +declare const SubflowConfigSchema: z.ZodObject<{ + flowName: z.ZodString; + input: z.ZodOptional>; + outputVariable: z.ZodOptional; +}, z.core.$strict>; + +// ── TIME_RELATIVE_DEFAULT_CRON (const) ── +declare const TIME_RELATIVE_DEFAULT_CRON = "0 8 * * *"; + +// ── TIME_RELATIVE_DEFAULT_MAX_RECORDS (const) ── +declare const TIME_RELATIVE_DEFAULT_MAX_RECORDS = 1000; + +// ── TRY_CATCH_NODE_TYPE (const) ── +declare const TRY_CATCH_NODE_TYPE: "try_catch"; + +// ── TimeRelativeTrigger (type) ── +type TimeRelativeTrigger = z.input; + +// ── TimeRelativeTriggerSchema (const) ── +declare const TimeRelativeTriggerSchema: z.ZodObject<{ + object: z.ZodString; + dateField: z.ZodString; + withinDays: z.ZodOptional; + offsetDays: z.ZodOptional>; + filter: z.ZodOptional>; + maxRecords: z.ZodOptional; +}, z.core.$strict>; + +// ── Transition (type) ── +type Transition = z.input; + +// ── TransitionSchema (const) ── +declare const TransitionSchema: z.ZodObject<{ + target: z.ZodOptional; + cond: z.ZodOptional>; + }, z.core.$strict>]>>; + actions: z.ZodOptional>; + }, z.core.$strict>]>>>; + description: z.ZodOptional; +}, z.core.$strict>; + +// ── TryCatchConfig (type) ── +type TryCatchConfig = z.input; + +// ── TryCatchConfigParsed (type) ── +type TryCatchConfigParsed = z.infer; + +// ── TryCatchConfigSchema (const) ── +declare const TryCatchConfigSchema: z.ZodObject<{ + try: z.ZodObject<{ + nodes: z.ZodArray>; + connectorConfig: z.ZodOptional>; + }, z.core.$strict>>; + position: z.ZodOptional>; + timeoutMs: z.ZodOptional; + inputSchema: z.ZodOptional; + required: z.ZodDefault; + description: z.ZodOptional; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional; + waitEventConfig: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + timeoutMs: z.ZodOptional; + onTimeout: z.ZodOptional; + }, z.core.$strict>>; + boundaryConfig: z.ZodOptional; + interrupting: z.ZodDefault; + errorCode: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform<{ + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "webhook" | "signal" | "timer" | "manual"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "signal" | "timer" | "cancel"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }, { + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "webhook" | "signal" | "timer" | "manual"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "signal" | "timer" | "cancel"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }>>>>; + edges: z.ZodDefault>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + source: z.ZodString; + }, z.core.$strip>]>>; + type: z.ZodDefault>; + label: z.ZodOptional; + isDefault: z.ZodDefault; + }, z.core.$strict>>>>; + }, z.core.$strict>; + catch: z.ZodOptional>; + connectorConfig: z.ZodOptional>; + }, z.core.$strict>>; + position: z.ZodOptional>; + timeoutMs: z.ZodOptional; + inputSchema: z.ZodOptional; + required: z.ZodDefault; + description: z.ZodOptional; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional; + waitEventConfig: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + timeoutMs: z.ZodOptional; + onTimeout: z.ZodOptional; + }, z.core.$strict>>; + boundaryConfig: z.ZodOptional; + interrupting: z.ZodDefault; + errorCode: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform<{ + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "webhook" | "signal" | "timer" | "manual"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "signal" | "timer" | "cancel"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }, { + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "webhook" | "signal" | "timer" | "manual"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "signal" | "timer" | "cancel"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }>>>>; + edges: z.ZodDefault>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + source: z.ZodString; + }, z.core.$strip>]>>; + type: z.ZodDefault>; + label: z.ZodOptional; + isDefault: z.ZodDefault; + }, z.core.$strict>>>>; + }, z.core.$strict>>; + errorVariable: z.ZodDefault; + retry: z.ZodOptional; + backoffMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; + maxRetryDelayMs: z.ZodDefault; + jitter: z.ZodDefault; + retryDelayMs: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strict>; + +// ── TryCatchErrorValue (type) ── +type TryCatchErrorValue = z.input; + +// ── TryCatchErrorValueParsed (type) ── +type TryCatchErrorValueParsed = z.infer; + +// ── TryCatchErrorValueSchema (const) ── +declare const TryCatchErrorValueSchema: z.ZodObject<{ + nodeId: z.ZodString; + message: z.ZodString; + code: z.ZodOptional; + iteration: z.ZodOptional; + item: z.ZodOptional; +}, z.core.$strip>; + +// ── UpdateRecordConfig (type) ── +type UpdateRecordConfig = z.input; + +// ── UpdateRecordConfigParsed (type) ── +type UpdateRecordConfigParsed = z.infer; + +// ── UpdateRecordConfigSchema (const) ── +declare const UpdateRecordConfigSchema: z.ZodObject<{ + objectName: z.ZodString; + filter: z.ZodOptional>; + fields: z.ZodOptional>; + multi: z.ZodOptional; +}, z.core.$strict>; + +// ── WAIT_EXECUTOR_DESCRIPTOR (const) ── +declare const WAIT_EXECUTOR_DESCRIPTOR: NodeExecutorDescriptor; + +// ── WaitEventType (type) ── +type WaitEventType = z.input; + +// ── WaitEventTypeSchema (const) ── +declare const WaitEventTypeSchema: z.ZodEnum<{ + condition: "condition"; + manual: "manual"; + webhook: "webhook"; + timer: "timer"; + signal: "signal"; +}>; + +// ── WaitExecutorConfig (type) ── +type WaitExecutorConfig = z.input; + +// ── WaitExecutorConfigParsed (type) ── +type WaitExecutorConfigParsed = z.infer; + +// ── WaitExecutorConfigSchema (const) ── +declare const WaitExecutorConfigSchema: z.ZodObject<{ + defaultTimeoutMs: z.ZodDefault; + defaultTimeoutBehavior: z.ZodDefault>; + conditionPollIntervalMs: z.ZodDefault; + conditionMaxPolls: z.ZodDefault; + webhookUrlPattern: z.ZodDefault; + persistCheckpoints: z.ZodDefault; + maxPausedExecutions: z.ZodDefault; +}, z.core.$strip>; + +// ── WaitResumePayload (type) ── +type WaitResumePayload = z.input; + +// ── WaitResumePayloadSchema (const) ── +declare const WaitResumePayloadSchema: z.ZodObject<{ + executionId: z.ZodString; + checkpointId: z.ZodString; + nodeId: z.ZodString; + eventType: z.ZodEnum<{ + condition: "condition"; + manual: "manual"; + webhook: "webhook"; + timer: "timer"; + signal: "signal"; + }>; + signalName: z.ZodOptional; + webhookPayload: z.ZodOptional>; + resumedBy: z.ZodOptional; + resumedAt: z.ZodString; + variables: z.ZodOptional>; +}, z.core.$strip>; + +// ── WaitTimeoutBehavior (type) ── +type WaitTimeoutBehavior = z.input; + +// ── WaitTimeoutBehaviorSchema (const) ── +declare const WaitTimeoutBehaviorSchema: z.ZodEnum<{ + continue: "continue"; + fail: "fail"; + fallback: "fallback"; +}>; + +// ── Webhook (type) ── +type Webhook = z.input; + +// ── WebhookParsed (type) ── +type WebhookParsed = z.infer; + +// ── WebhookSchema (const) ── +declare const WebhookSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + object: z.ZodOptional; + triggers: z.ZodOptional>>; + url: z.ZodString; + method: z.ZodDefault>; + headers: z.ZodOptional>; + timeoutMs: z.ZodDefault; + secret: z.ZodOptional; + isActive: z.ZodDefault; + description: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── WebhookTriggerType (const) ── +declare const WebhookTriggerType: z.ZodEnum<{ + delete: "delete"; + update: "update"; + create: "create"; + bulk_update: "bulk_update"; + bulk_delete: "bulk_delete"; +}>; + +// ── WebhookTriggerType (type) ── +type WebhookTriggerType = z.input; + +// ── analyzeRegion (function) ── +declare function analyzeRegion(region: { + nodes: FlowNodeParsed[]; + edges?: FlowEdgeParsed[]; +}): RegionAnalysis; + +// ── approverTypeIsOrgScoped (function) ── +declare function approverTypeIsOrgScoped(type: string): boolean; + +// ── canonicalApproverType (function) ── +declare function canonicalApproverType(type: string): string; + +// ── collectFlowGraphs (function) ── +declare function collectFlowGraphs(flow: { + nodes?: readonly FlowNodeParsed[]; + edges?: readonly FlowEdgeParsed[]; +}): FlowGraph[]; + +// ── defineActionDescriptor (function) ── +declare function defineActionDescriptor(input: ActionDescriptor): ActionDescriptorParsed; + +// ── defineFlow (function) ── +declare function defineFlow(config: z.input): FlowParsed; + +// ── defineWebhook (function) ── +declare function defineWebhook(config: z.input): WebhookParsed; + +// ── describeMissingScheduleOrganization (function) ── +declare function describeMissingScheduleOrganization(flowName: string, options?: { + readonly kind?: string; + readonly config?: unknown; +}): string; + +// ── exportConstructsToBpmn (function) ── +declare function exportConstructsToBpmn(flow: MappableFlow): BpmnMappingResult; + +// ── findRegionEntry (function) ── +declare function findRegionEntry(region: { + nodes: FlowNodeParsed[]; + edges?: FlowEdgeParsed[]; +}): string; + +// ── flowForm (const) ── +declare const flowForm: { + type: "split" | "drawer" | "modal" | "simple" | "tabbed" | "wizard"; + layout?: "grid" | "inline" | "vertical" | "horizontal" | undefined; + columns?: number | undefined; + title?: string | undefined; + description?: string | undefined; + defaultTab?: string | undefined; + tabPosition?: "left" | "right" | "top" | "bottom" | undefined; + allowSkip?: boolean | undefined; + showStepIndicator?: boolean | undefined; + splitDirection?: "vertical" | "horizontal" | undefined; + splitSize?: number | undefined; + splitResizable?: boolean | undefined; + drawerSide?: "left" | "right" | "top" | "bottom" | undefined; + drawerWidth?: string | undefined; + modalSize?: "full" | "default" | "sm" | "lg" | "xl" | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + sections?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 4 | 3 | 1 | 2; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + groups?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 4 | 3 | 1 | 2; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + subforms?: { + childObject: string; + relationshipField?: string | undefined; + columns?: any[] | undefined; + amountField?: string | undefined; + totalField?: string | undefined; + title?: string | undefined; + addLabel?: string | undefined; + minRows?: number | undefined; + maxRows?: number | undefined; + }[] | undefined; + defaultSort?: undefined; + sharing?: { + enabled: boolean; + allowAnonymous: boolean; + publicLink?: string | undefined; + password?: string | undefined; + allowedDomains?: string[] | undefined; + expiresAt?: string | undefined; + } | undefined; + submitBehavior?: { + kind: "thank-you"; + title?: string | undefined; + message?: string | undefined; + } | { + kind: "redirect"; + url: string; + delayMs?: number | undefined; + } | { + kind: "continue"; + } | { + kind: "next-record"; + } | undefined; + buttons?: { + submit?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + cancel?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + reset?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + } | undefined; + defaults?: Record | undefined; + aria?: undefined; +}; + +// ── getApprovalNodeConfigJsonSchema (function) ── +declare function getApprovalNodeConfigJsonSchema(): unknown; + +// ── getSchemalessNodeConfigJsonSchemas (function) ── +declare function getSchemalessNodeConfigJsonSchemas(): Readonly>; + +// ── importBpmnToConstructs (function) ── +declare function importBpmnToConstructs(flow: MappableFlow): BpmnMappingResult; + +// ── isExpressionEnvelopeShaped (function) ── +declare function isExpressionEnvelopeShaped(value: unknown): value is { + dialect: string; +}; + +// ── isFlowFunctionEffect (function) ── +declare function isFlowFunctionEffect(value: unknown): value is FlowFunctionEffect; + +// ── normalizeDecisionOutputs (function) ── +declare function normalizeDecisionOutputs(declared: unknown): DecisionOutputDef[]; + +// ── normalizeFlowFunctionEntry (function) ── +declare function normalizeFlowFunctionEntry(entry: unknown): NormalizedFlowFunction | undefined; + +// ── parseFlowNodeRegions (function) ── +declare function parseFlowNodeRegions(node: T): T; + +// ── predicateSlotRefusal (function) ── +declare function predicateSlotRefusal(value: unknown): { + message: string; + source: string; +} | undefined; + +// ── resolveFlowNodeExpressions (function) ── +declare function resolveFlowNodeExpressions(nodeType: string, config: unknown): ResolvedFlowNodeExpression[]; + +// ── resolveFlowTriggerKind (function) ── +declare function resolveFlowTriggerKind(flow: unknown): FlowTriggerKind | undefined; + +// ── resolveScheduleOrganization (function) ── +declare function resolveScheduleOrganization(flow: unknown): string | undefined; + +// ── structuralConditionRefusal (function) ── +declare function structuralConditionRefusal(value: unknown): { + message: string; + source: string; +} | undefined; + +// ── validateControlFlow (function) ── +declare function validateControlFlow(flow: { + nodes: FlowNodeParsed[]; +}): void; diff --git a/packages/spec/api-surface-declarations/contracts.txt b/packages/spec/api-surface-declarations/contracts.txt new file mode 100644 index 00000000000..5362717e751 --- /dev/null +++ b/packages/spec/api-surface-declarations/contracts.txt @@ -0,0 +1,9763 @@ +# @objectstack/spec — the .d.ts DECLARATION TEXT of every export of `./contracts`. +# +# The SHAPE half of the ADR-0059 public-API pin, and the readable counterpart of +# api-surface/contracts.json's breadth half. That file pins each export by +# `name (kind)`, which a signature change, a renamed interface field and a dropped +# union member all leave untouched. This file pins the declaration text, so each of +# those moves a line here. Text and NOT a hash, deliberately: a diff a reviewer can +# read is what makes contract review a guard rather than a rubber stamp. +# +# Verbatim from the PACKED `.d.ts` reached through this package's `exports` map — the +# declarations a consumer installs, never `src/`. A declaration's leading TSDoc is +# excluded: documentation drift is `check:docs`'s axis, not this one. +# +# entry: ./contracts +# exported names: 310 +# declarations: 310 +# +# GENERATED — ⛔ never hand-edited. Regenerate after a real build: +# pnpm --filter @objectstack/spec build && pnpm --filter @objectstack/spec gen:api-surface-declarations +# Gated by `check:api-surface-declarations`; a hand edit is a red gate, not a change. + +// ── AIActionConfirmation (interface) ── +interface AIActionConfirmation { + /** + * `true` when the human in the loop has approved this call. Only the + * boolean `true` is an attestation; see the interface doc. + */ + confirm?: boolean; +} + +// ── AIConversation (interface) ── +interface AIConversation { + /** Conversation ID */ + id: string; + /** Title / summary */ + title?: string; + /** Associated agent ID */ + agentId?: string; + /** User who owns the conversation */ + userId?: string; + /** Messages in the conversation */ + messages: ModelMessage[]; + /** Creation timestamp (ISO 8601) */ + createdAt: string; + /** Last update timestamp (ISO 8601) */ + updatedAt: string; + /** Conversation metadata */ + metadata?: Record; +} + +// ── AIMessage (type) ── +type AIMessage = ModelMessage; + +// ── AIMessageWithTools (type) ── +type AIMessageWithTools = ModelMessage; + +// ── AIObjectResult (interface) ── +interface AIObjectResult { + /** The validated, strongly-typed object. */ + object: T; + /** Model used for generation. */ + model?: string; + /** Token usage statistics. */ + usage?: { + promptTokens: number; + completionTokens: number; + totalTokens: number; + }; +} + +// ── AIRequestOptions (interface) ── +interface AIRequestOptions { + /** Model identifier to use */ + model?: string; + /** Sampling temperature (0-2) */ + temperature?: number; + /** Maximum tokens to generate */ + maxTokens?: number; + /** Stop sequences */ + stop?: string[]; + /** Tool definitions available to the model */ + tools?: AIToolDefinition[]; + /** How the model should use tools: 'auto', 'none', or a specific tool name */ + toolChoice?: 'auto' | 'none' | string; +} + +// ── AIRequestOptionsWithTools (type) ── +type AIRequestOptionsWithTools = AIRequestOptions; + +// ── AIResult (interface) ── +interface AIResult { + /** Generated text content */ + content: string; + /** Model used for generation */ + model?: string; + /** Tool calls requested by the model (present when the model invokes tools) */ + toolCalls?: ToolCallPart[]; + /** Token usage statistics */ + usage?: { + promptTokens: number; + completionTokens: number; + totalTokens: number; + }; + /** + * Conversation id used for persistence. Echoed back when + * `chatWithTools` auto-creates a conversation (caller omitted + * `toolExecutionContext.conversationId` but supplied an actor). + * Callers can use this to continue the same thread on subsequent + * turns. + */ + conversationId?: string; +} + +// ── AIStreamEvent (type) ── +type AIStreamEvent = TextStreamPart; + +// ── AIToolCall (type) ── +type AIToolCall = ToolCallPart; + +// ── AIToolDefinition (interface) ── +interface AIToolDefinition { + /** Tool name (snake_case identifier) */ + name: string; + /** + * Human-readable display name. Optional for the LLM function-calling + * path (which only needs name/description/parameters), but required + * when the tool is registered as `tool` metadata for Studio — see + * `ToolSchema`. Registration paths must supply a label (falling back + * to a name-derived one) so persisted tool metadata passes validation. + */ + label?: string; + /** Human-readable description */ + description: string; + /** JSON Schema describing the tool parameters */ + parameters: Record; + /** + * Optional tool category. Carried by action-backed tools from + * `action.ai.category` — the live source; the metadata `ToolSchema.category` + * was removed in the #3896 close-out. Surfaced by tool-listing routes. + * Not sent to the model. + */ + category?: string; + /** + * Optional JSON Schema for the tool's return value. Action-backed tools + * derive this from `action.ai.outputSchema` to enable downstream chaining. + */ + outputSchema?: Record; + /** Object this tool operates on, when the tool is action-backed. */ + objectName?: string; + /** + * Whether invoking this tool requires human-in-the-loop confirmation. + * Action-backed tools set this from the action's confirmation policy + * (`action.ai.requiresConfirmation`, or the destructive-action default). + */ + requiresConfirmation?: boolean; +} + +// ── AIToolResult (type) ── +type AIToolResult = ToolResultPart; + +// ── AI_ACTION_CONFIRMATION_MEMBER (const) ── +declare const AI_ACTION_CONFIRMATION_MEMBER = "confirm"; + +// ── APPROVAL_ACTION_KINDS (const) ── +declare const APPROVAL_ACTION_KINDS: readonly ["submit", "approve", "reject", "recall", "escalate", "reassign", "remind", "request_info", "comment", "revise", "resubmit", "ooo_substitute", "cancel"]; + +// ── APPROVAL_ACTION_KIND_LABELS (const) ── +declare const APPROVAL_ACTION_KIND_LABELS: { + readonly submit: "Submit"; + readonly approve: "Approve"; + readonly reject: "Reject"; + readonly recall: "Recall"; + readonly escalate: "Escalate"; + readonly reassign: "Reassign"; + readonly remind: "Remind"; + readonly request_info: "Request Info"; + readonly comment: "Comment"; + readonly revise: "Revise"; + readonly resubmit: "Resubmit"; + readonly ooo_substitute: "Out-of-Office Substitution"; + readonly cancel: "Cancel"; +}; + +// ── APPROVAL_CANCEL_REASONS (const) ── +declare const APPROVAL_CANCEL_REASONS: readonly ["record_deleted"]; + +// ── APPROVAL_CANCEL_REASON_LABELS (const) ── +declare const APPROVAL_CANCEL_REASON_LABELS: { + readonly record_deleted: "Related record deleted"; +}; + +// ── APPROVAL_STATUSES (const) ── +declare const APPROVAL_STATUSES: readonly ["pending", "approved", "rejected", "recalled", "returned", "cancelled"]; + +// ── APPROVAL_STATUS_LABELS (const) ── +declare const APPROVAL_STATUS_LABELS: { + readonly pending: "Pending"; + readonly approved: "Approved"; + readonly rejected: "Rejected"; + readonly recalled: "Recalled"; + readonly returned: "Returned"; + readonly cancelled: "Cancelled"; +}; + +// ── ActionConfirmationRequiredDetails (interface) ── +interface ActionConfirmationRequiredDetails { + /** The declarative action name the refused call addressed. */ + actionName: string; + /** The object the action operates on; omitted for object-less actions. */ + objectName?: string; + /** + * The request member the caller must set to `true` and retry — always the + * value of {@link AI_ACTION_CONFIRMATION_MEMBER}, echoed so the caller + * reads it off the refusal instead of restating it. + */ + confirmationMember: typeof AI_ACTION_CONFIRMATION_MEMBER; +} + +// ── AdapterContext (interface) ── +interface AdapterContext { + /** The source these documents belong to. */ + source: KnowledgeSource; + /** Trace id for correlation across logs / metrics. */ + traceId?: string; + /** Caller-supplied free-form diagnostics tag. */ + reason?: 'event-sync' | 'reindex' | 'manual' | 'tool-call' | (string & {}); +} + +// ── AdapterSearchOptions (interface) ── +interface AdapterSearchOptions { + /** The source the search is scoped to. */ + source: KnowledgeSource; + /** Max hits to return. */ + topK: number; + /** Adapter-specific filter (e.g. `{ status: 'active' }`). */ + filter?: Record; + /** Trace id for correlation. */ + traceId?: string; +} + +// ── AnalyticsDriverCapabilities (interface) ── +interface AnalyticsDriverCapabilities { + /** Driver supports native SQL execution (e.g. Postgres, MySQL, SQLite). */ + nativeSql: boolean; + /** Driver supports ObjectQL aggregate() operations. */ + objectqlAggregate: boolean; + /** Driver is an in-memory implementation (dev/test only). */ + inMemory: boolean; +} + +// ── AnalyticsQuery (type) ── +type AnalyticsQuery = z.input; + +// ── AnalyticsResult (interface) ── +interface AnalyticsResult { + /** Result rows */ + rows: Record[]; + /** Column metadata */ + fields: Array<{ + name: string; + /** + * The column's data type, in the `DimensionType` vocabulary + * (`string` / `number` / `boolean` / `time` / `geo`) — one wire + * position, one vocabulary. + * + * A DIMENSION column carries its cube dimension's type, so a date axis + * has always said `time`. A MEASURE column says `number`, with ONE + * correction: `min`/`max` over a `date` / `datetime` / `time` field + * says `time` (#15768). Those two aggregates return a value OF THE + * AGGREGATED FIELD'S OWN TYPE, so the value beside the descriptor is an + * instant, a calendar day or a clock time — describing it as a number + * left a formatter that branches on this key unable to reach its + * temporal branch at all. + * + * Everything else in the closed `AggregationFunction` vocabulary is + * numeric whatever it reads and is unchanged: `count` / + * `count_distinct` count rows and values, `sum` / `avg` over a temporal + * column are refused by no layer and answered by the backend (an epoch + * mean on SQLite, an error on Postgres), so there is no one value for a + * type to describe. A derived measure is numeric by construction — + * `computeDerived` coerces its operands with `Number()`. + * + * The correction is tiered "cannot answer, do not block": a host with + * no source-field metadata, and a measure over a relationship PATH, + * both leave the column exactly as the query layer produced it. + */ + type: string; + /** Human display label (e.g. measure `label`) — for legends/KPIs. */ + label?: string; + /** Display format hint (e.g. measure `format` like "$0,0", "0.0%"). */ + format?: string; + /** + * ADR-0053 currency chain — the resolved ISO 4217 code for a MONETARY + * measure (explicit measure `currency` → source-field default → tenant + * default). Absent on non-monetary columns, which must never render a + * symbol. + */ + currency?: string; + /** + * The column's percent SCALE, when it is a percentage: `fraction` for a + * 0–1 ratio (`1` ⇒ "100%"), `whole` for percentage points (`1` ⇒ "1%"). + * Resolved from metadata — a `derived: { op: 'ratio' }` measure is a + * fraction by definition, and a measure over a `percent` field inherits + * that field's scale (see `percentScaleOf` in `spec/data`). Absent when + * the column is not a percentage; renderers that receive it must scale + * by it instead of guessing from the value (objectui#3136). + */ + percentScale?: PercentScale; + /** + * #14492 — the closed aggregate discriminator for a measure column whose + * display name is the SERVER's built-in default rather than an author's + * text. Present exactly when the dataset measure behind the column + * declares an `aggregate` and NO `label`: the producer then has nothing + * but the aggregate to name the column by, so it says which aggregate + * that is (`count` for the seeded / auto-derived `count` measure) and a + * renderer may substitute its own localized name for it — objectui keys + * a locale lookup on this value (its `report.aggregate.*` family) and + * falls back to `label`, then `name`. Absent whenever the author declared + * a label (a plain string OR an inline locale map, even one with no entry + * for the request locale — an author's text is never re-labelled by a + * consumer), and absent on dimension columns and derived measures. + * Reuses `AggregationFunction` (data/query.zod.ts), the one closed + * aggregate vocabulary; no second spelling. + */ + builtinAggregate?: AggregationFunction; + }>; + /** Generated SQL (if available) */ + sql?: string; + /** + * Marginal aggregates — one entry per `DatasetSelection.totals` grouping, + * in request order. Each entry's rows carry the grouping's dimension + * columns plus the same measure columns as `rows`, computed with the + * measure's true aggregate over the underlying data (never re-derived + * from bucketed values). The grand-total grouping (`[]`) yields a single + * dimensionless row. + */ + totals?: Array<{ + /** The dimension subset this marginal was grouped by ([] = grand total). */ + dimensions: string[]; + rows: Record[]; + }>; +} + +// ── AnalyticsStrategy (interface) ── +interface AnalyticsStrategy { + /** Human-readable strategy name (e.g. 'NativeSQLStrategy'). */ + readonly name: string; + /** Priority (lower = higher priority). P1=10, P2=20, P3=30. */ + readonly priority: number; + /** + * Return `true` if this strategy can handle the given query in the + * current runtime context (driver capabilities, cube availability, etc.). + */ + canHandle(query: AnalyticsQuery, ctx: StrategyContext): boolean; + /** + * Execute the analytical query. + * Called only when `canHandle` returned `true`. + */ + execute(query: AnalyticsQuery, ctx: StrategyContext): Promise; + /** + * Generate a SQL representation without executing. + * Called only when `canHandle` returned `true`. + */ + generateSql(query: AnalyticsQuery, ctx: StrategyContext): Promise<{ + sql: string; + params: unknown[]; + }>; +} + +// ── ApiEndpointMatch (interface) ── +interface ApiEndpointMatch { + /** + * The matched endpoint as `ApiEndpointSchema.parse` returns it — i.e. with + * every schema default MATERIALIZED, not the raw stored JSON. In particular + * `authRequired` is a boolean here even when the author omitted it (the + * schema defaults it to `true`), so a consumer never has to reason about + * "absent" and cannot accidentally read a missing security default as + * permissive. Implementations MUST parse before returning, and MUST skip + * (loudly) any stored item that fails to parse rather than returning a + * half-valid shape. + */ + endpoint: ApiEndpoint; + /** + * Path parameters extracted from the request path. + * + * **Always `{}` in 17.x.** `ApiEndpointSchema.path` is a frozen vocabulary + * (ADR-0121) that defines NO template syntax — neither `:param` nor + * `{param}` — and this contract deliberately does not invent one: a syntax + * that exists only inside an implementation is a hidden dialect, which is + * exactly the failure mode Prime Directive #12 forbids. The member is + * declared now so that adding path templates later is an additive change to + * the vocabulary rather than a breaking change to this contract. + */ + params: Record; +} + +// ── ApprovalActionAttachment (interface) ── +interface ApprovalActionAttachment { + /** The `sys_file` id — pass to `GET /storage/files/:id/url` for a signed URL. */ + id: string; + /** Original filename, for the chip label. */ + name?: string; + /** Stable download URL (`/api/v1/storage/files/:id`); may be relative. */ + url?: string; + mimeType?: string; + size?: number; +} + +// ── ApprovalActionKind (type) ── +type ApprovalActionKind = (typeof APPROVAL_ACTION_KINDS)[number]; + +// ── ApprovalActionRow (interface) ── +interface ApprovalActionRow { + id: string; + request_id: string; + /** + * Tenancy placement stamp (#10331), same semantics as + * {@link ApprovalRequestRow.organization_id}: every `sys_approval_action` + * insert site in `plugin-approvals` stamps the owning request's org (or + * `null` when none resolved), so the persisted row always carries it. + * + * Read-path caveat, measured at declaration time: the service's + * `rowFromAction` mapping does not surface it, so rows returned by + * `listActions` currently omit the field — it is populated when a persisted + * row is read directly off the engine (the pattern org-placement tests + * use). Declared optional-nullable for that gap as well as for pre-stamp + * rows. + */ + organization_id?: string | null; + step_name?: string; + step_index?: number; + action: ApprovalActionKind; + actor_id?: string; + comment?: string; + /** Files attached to this action (decision attachments, #3266). */ + attachments?: ApprovalActionAttachment[]; + created_at?: string; + /** Display name of the actor (`sys_user.name`), when resolvable. */ + actor_name?: string; + /** + * Structured hand-off parties on a `reassign` action (#4365): the user whose + * pending-approver slot was moved, and the user who received it. Previously + * the pair existed only inside a default free-text `comment` + * (`""`), which clients could neither parse nor render + * readably. `comment` is now pure user input; consumers render the hand-off + * from these fields (via the resolved `*_name` companions below). + */ + reassign_from?: string; + /** See {@link ApprovalActionRow.reassign_from}. */ + reassign_to?: string; + /** Display name of `reassign_from` (`sys_user.name`), when resolvable. */ + reassign_from_name?: string; + /** Display name of `reassign_to` (`sys_user.name`), when resolvable. */ + reassign_to_name?: string; + /** + * Whether the actor was admitted to this action ONLY by the privileged + * admin-override path (#3424) — they held no slot in the request's + * pending-approver slate (#4466). + * + * Before this the two were indistinguishable in the audit trail: an admin + * overriding a properly-staffed slate wrote byte-for-byte the same row as the + * designated approver approving normally, and the bypassed approver's later + * `409 INVALID_STATE` was the only trace — existing only if they happened to + * try. The platform knows at decision time (it took the override branch to + * admit the call), so this was dropped information, not unavailable + * information. Consumers render the distinction; the whole point of an + * approval record is to answer "who authorized this, and were they entitled + * to?". + * + * `false` means checked and NOT an override. `undefined` means the row + * predates the column — "not recorded", which is not the same claim. + */ + via_override?: boolean; +} + +// ── ApprovalCancelReason (type) ── +type ApprovalCancelReason = (typeof APPROVAL_CANCEL_REASONS)[number]; + +// ── ApprovalDecisionInput (interface) ── +interface ApprovalDecisionInput { + decision: 'approve' | 'reject'; + actorId: string; + comment?: string; + /** + * File references (already stored via the storage service) to attach to this + * decision — e.g. a signed contract or an evidence PDF (#3266). Recorded on + * the `sys_approval_action` audit row's `attachments` field. + */ + attachments?: string[]; + /** + * #3447 P2: structured outputs the approver hands to the flow with their + * decision. Keys MUST be declared on the node's `decisionOutputs` config — + * the author declares keys, approvers only fill values (a `screen` node's + * trust model); a decision carrying undeclared keys is rejected, and + * `decision` / `requestId` are reserved. Accepted outputs resume the run as + * `.` flow variables, where a later approval node's + * `expression` approver can read them (`vars..picked_departments`). + * + * An output declared `required` must carry a non-blank value on an APPROVE + * (objectui#2955); the decision is rejected before any write otherwise. A + * reject never requires them. + */ + outputs?: Record; +} + +// ── ApprovalDecisionResult (interface) ── +interface ApprovalDecisionResult { + request: ApprovalRequestRow; + /** True when this call moved the request to a terminal state. */ + finalized: boolean; + decision: 'approve' | 'reject'; + /** The suspended flow run that was (or will be) resumed, if any. */ + runId?: string | null; + /** + * True when the owning flow run was resumed as a result of this decision. + * + * A decision that finalises a flow-bound request and CANNOT resume its OWN + * run throws rather than returning `resumed: false` — a recorded decision + * whose flow never advances is the zombie half-state of #4420. `false` here + * means either there was nothing to resume (no run, not finalised, no + * automation attached) or a benign duplicate, in which case see + * {@link resumeError} and {@link resumeFailure}. + * + * `true` says this door's own resume completed. It does not say every run + * behind it advanced: a decision inside a subflow whose child resumed and + * whose parent then stranded (#15556) still answers `true`, and the + * parent's strand is told on {@link resumeFailure} — carried on the + * success answer per the #16472 ruling, never thrown. + * + * What that throw carries is published, not prose only (#13807, maintainer + * ruling 2026-09-04, decision batch #37). The status code does not move — a + * durable decision over a run that will not advance is still a failure — + * but the 500-class `RESUME_FAILED` it raises names, on its ERROR body, the + * four facts a caller needs: `finalized` (the decision stands), `decision`, + * `runId`, and `repairable` — the engine's own `'stranded'` discriminator + * carried through, never inferred from the message text. That envelope is + * `StrandedDecisionDetails` (`@objectstack/types`), attached by + * `strandedDecisionFailure` and read back by `strandedDecisionDetails`; the + * REST approvals door merges it into the `RESUME_FAILED` response body. + * Those four facts are the published way to read the posture this member + * declares — a caller holding only the status code reads a bare 500 as "the + * decision did not happen", and the row IS terminal. + * + * ⛔ They are not members of this result and must never be added to it: + * they ride the ERROR, so declaring them here would declare a success shape + * that never carries them. ⛔ Nor are they {@link resumeFailure}, which + * reports the other event of the #16472 ruling — a resume failure behind an + * answer that still succeeded. + */ + resumed?: boolean; + /** + * Why a run was not resumed, in prose — the human-readable half. + * + * Before the #16472 ruling this was set on exactly one path, the tolerated + * concurrent duplicate (`RESUME_IN_PROGRESS` — the other caller is already + * advancing the run, so this decision is complete and correct), and only + * beside `resumed: false`. ⛔ Not gated on `resumed` being false any more: + * a failure behind a `resumed: true` answer is told here too, so presence + * is decided by whether a failure was TOLD, never by `resumed`. The + * machine-readable half of the same telling is {@link resumeFailure}; a + * caller branches on that, never on this text. + */ + resumeError?: string; + /** + * The machine-readable half of a resume failure told on this success + * answer (#15556; the #16472 ruling): the registered code, the `runId` of + * the run that is actually stranded — the PARENT's when the strand is a + * subflow's bubble-up, never the healthy child's that {@link runId} names — + * and whether the engine says it is repairable. + * + * Optional and ADDITIVE. ⚠️ An absent member means no report was made, + * never that no run is stranded: a producer that predates this field + * answers exactly what it always did, so absence is not a reading of + * health. Presence is the signal; absence is not its negation. + */ + resumeFailure?: ResumeFailureReport; +} + +// ── ApprovalRecallInput (interface) ── +interface ApprovalRecallInput { + /** + * The actor the recall is recorded against. On a `pending` request: the + * submitter, a system context, or a #3424 override actor. On a `returned` + * request the submitter alone — see {@link IApprovalService.recall} for why + * the two sets differ. + */ + actorId: string; + comment?: string; +} + +// ── ApprovalRecallResult (interface) ── +interface ApprovalRecallResult { + request: ApprovalRequestRow; + /** The suspended flow run this request gated, if any. */ + runId?: string | null; + /** + * True when the owning flow run was resumed (down the `reject` branch with + * `output.decision = 'recall'`) so it doesn't stay suspended forever. The + * engine has no run-cancel primitive yet; the reject edge is the closest + * "did not pass" semantics. + * + * `true` says THIS door's own resume completed. It does not say every run + * behind it advanced: a resume that completed and then stranded a run + * further up (a subflow's parent, #15556) still answers `true`, with the + * strand told on {@link resumeFailure}. + */ + resumed?: boolean; + /** + * Why a run was not resumed, in prose — the human-readable half. A recall + * abandons the request, so a lost run does not fail the call — but it must + * not read as a clean resume either (#4420). + * + * ⛔ Not gated on `resumed` being false. Since the #16472 ruling a resume + * failure can ride a `resumed: true` answer (the run this door resumed + * advanced; one behind it did not), so presence is decided by whether a + * failure was TOLD, never by `resumed`. The machine-readable half of the + * same telling is {@link resumeFailure}; a caller branches on that, never + * on this text. + */ + resumeError?: string; + /** + * The machine-readable half of a resume failure this recall tolerated + * (#15970; the #16472 ruling): the registered code, the `runId` of the run + * that is actually stranded — which need not be {@link runId}, the run this + * request gated — and whether the engine says it is repairable. + * + * Optional and ADDITIVE. ⚠️ An absent member means no report was made, + * never that no run is stranded: a producer that predates this field + * answers exactly what it always did, so absence is not a reading of + * health. Presence is the signal; absence is not its negation. + */ + resumeFailure?: ResumeFailureReport; +} + +// ── ApprovalRequestRow (interface) ── +interface ApprovalRequestRow { + id: string; + /** + * Tenancy placement stamp (#10331): the organization the request belongs + * to. `plugin-approvals` writes it on the inserted `sys_approval_request` + * row at submit time — resolved as + * `context.organizationId ?? context.tenantId ?? input.organizationId ?? null` + * — and its read mapping (`rowFromRequest`) returns it on every service + * read. The field was always on the wire; this declaration types it so + * consumers (and tests pinning org placement) read it without casting past + * the contract. + * + * Optional-nullable: rows written before the stamp existed carry no value, + * and a submit whose context resolves no org stamps `null` — "owned by no + * organization", which org-scoped reads treat as globally visible rather + * than tenant-owned. + */ + organization_id?: string | null; + /** Origin of the request — `flow:` for node-driven approvals. */ + process_name: string; + object_name: string; + record_id: string; + submitter_id?: string; + submitter_comment?: string; + status: ApprovalStatus; + /** + * Why the request was cancelled (#13568) — present only on rows whose + * {@link ApprovalRequestRow.status} is `cancelled`, absent everywhere else. + * + * Optional-nullable rather than required-on-cancelled because a TypeScript + * optional cannot be conditioned on a sibling's value, and because a row + * written before this column existed carries no value: absent reads as "not + * recorded", never as "cancelled for no reason". + */ + cancel_reason?: ApprovalCancelReason | null; + /** The flow node id that opened the request (mirrors `flow_node_id`). */ + current_step?: string; + current_step_index?: number; + pending_approvers?: string[]; + payload?: unknown; + /** ADR-0019 correlation: the suspended flow run this request belongs to. */ + flow_run_id?: string; + flow_node_id?: string; + /** + * #3447 P2: the node's author-declared decision-output keys + * (`config.decisionOutputs`), surfaced from the config snapshot so a + * decision UI can render one input per key and POST `outputs` with the + * decision. Absent when the node declares none. Kept as the bare KEY list + * for version skew — an older console renders these as text inputs. + */ + decision_outputs?: string[]; + /** + * #3447 P2 follow-up: the normalized TYPED declarations behind + * `decision_outputs` — `{ key, label?, type?, multiple? }` — so a + * picker-aware decision UI renders a sys_user / department / position / + * team record picker (id values; `multiple` → id array) instead of free + * text. Always parallel to `decision_outputs`; consumers prefer this and + * fall back to the key list. + */ + decision_output_defs?: Array<{ + key: string; + label?: string; + type?: 'text' | 'user' | 'department' | 'position' | 'team'; + multiple?: boolean; + /** + * The approver must supply this one to APPROVE (objectui#2955) — enforced + * by `decide()`, so a decision UI should block the approve action on a + * blank value rather than letting the server reject the round trip. + * Never enforced on reject. + */ + required?: boolean; + }>; + completed_at?: string; + created_at?: string; + updated_at?: string; + /** + * When the request was opened. Alias of `created_at` — the row is created + * at submission time. Kept as its own field so inbox clients have a stable + * name that survives any future split between row-creation and submission. + */ + submitted_at?: string; + /** Human label of the originating flow (e.g. "Project Budget Approval"). */ + process_label?: string; + /** Human label of the approval step / node (e.g. "Manager Review"). */ + step_label?: string; + /** Display name of the target record (its name/title field), when resolvable. */ + record_title?: string; + /** Display name of the submitter (`sys_user.name`), when resolvable. */ + submitter_name?: string; + /** Schema label of the target object (e.g. "Project" for `showcase_project`). */ + object_label?: string; + /** + * Display names for user-id entries in `pending_approvers` + * (id → `sys_user.name`). Emails and `role:` entries are not mapped — + * they are already human-readable. + */ + pending_approver_names?: Record; + /** + * Group membership of each STILL-PENDING approver, for `per_group` (会签) + * requests only (objectui#2807). Maps an approver id in `pending_approvers` + * to the group key(s) it fills — e.g. `{ "u_devadmin": ["finance", "legal"] }` + * — so a client can label each "waiting on" chip with the group it represents + * instead of showing duplicate, context-free names. Resolved from the same + * open-time `__approverGroups` snapshot the `decision_progress` groups use, so + * the two never disagree. Absent for non-`per_group` behaviors and for slots + * whose group was synthetic (unnamed). Display-only. + */ + pending_approver_groups?: Record; + /** + * Display values for lookup fields in `payload` (field key → referenced + * record's display name), so inbox summaries never show foreign-key ids. + */ + payload_display?: Record; + /** + * Display labels for `payload` fields (field key → target object's field + * label), so inbox summaries show the human field name (e.g. "考核状态") + * instead of a title-cased machine key ("Assessment Status"). Resolved from + * the target object's schema — for a single-locale project the schema label + * IS the localized string; symmetric with `payload_display` (which resolves + * the values). Absent keys fall back to the client's prettified key. + */ + payload_labels?: Record; + /** + * SLA deadline, when the node config carries `escalation.timeoutHours`: + * `created_at + timeoutHours`. Display-only for now — automatic escalation + * needs a scheduler pass and is not yet wired. + */ + sla_due_at?: string; + /** + * The owning flow's approval steps in graph order, for progress display + * (resolved on single-request reads when the automation engine is + * attached). `state` is relative to this request's node. + */ + flow_steps?: Array<{ + id: string; + label: string; + state: 'done' | 'current' | 'upcoming'; + }>; + /** + * ADR-0044 revision round of this request on its (run, node): 1 (or absent) + * for the first round, 2 after one send-back-and-resubmit, … Carried in the + * `node_config_json` snapshot (`__round`), so no schema migration. + */ + round?: number; + /** + * Whether THIS node's pending request locks the target record from edits + * (objectui#2902). Mirrors the `lockRecord` policy the record-lock + * `beforeUpdate` hook enforces, read from the same `node_config_json` + * snapshot the hook reads — so a client never has to guess, and never + * disagrees with the server. + * + * `lockRecord` defaults to `true` (see `ApprovalNodeConfigSchema`), so this + * is `false` only when the node explicitly opted out. Always present on a + * service read; a client that gets `undefined` is talking to a pre-#3814 + * backend and should fail closed (assume locked) rather than offer an edit + * the server will reject with `RECORD_LOCKED`. + * + * Node-scoped, not request-scoped in spirit: a flow chaining several + * approval nodes with different policies produces one request per node, and + * each carries its own value. + */ + lock_record?: boolean; + /** + * Server-computed decision aggregation progress (#3266, single-request reads + * of PENDING requests only). Present when the node's behavior aggregates + * multiple approvals: `unanimous` (got/need = approvals of total), + * `quorum` (got/need = approvals of the M threshold), `per_group` + * (got/need = satisfied groups of total groups, plus per-group detail). + * Absent for `first_response`. Display-only — the engine's finalization + * tally in decideNode stays authoritative. + */ + decision_progress?: { + behavior: 'unanimous' | 'quorum' | 'per_group'; + got: number; + need: number; + groups?: Array<{ + group: string; + got: number; + need: number; + satisfied: boolean; + }>; + }; + /** + * Server-computed capability for THE CURRENT VIEWER (#3310), attached by + * `getRequest` / `listRequests` from the caller's context. Lets a client gate + * decision actions precisely without re-deriving identity resolution: + * declared approver actions use `record.viewer.can_act`, submitter actions use + * `record.viewer.is_submitter`. + * + * - `can_act` — the caller is a *current pending approver* (their user id is in + * the request's resolved `pending_approvers` while it is still `pending`). + * This mirrors the exact check the service uses to authorize a decision, so + * it is strictly more accurate than a client-side identity guess (it already + * reflects position/team/manager resolution baked into `pending_approvers`). + * - `is_submitter` — the caller submitted the request. + * - `can_override` (#3424) — the caller is a platform/tenant admin who may act + * on a *pending* request (approve / reject / reassign / recall it) despite + * holding no approver slot. The in-product recovery path for an approval + * routed to an unstaffed position, or whose approvers have all since left, + * which would otherwise leave the request undecidable and the record locked + * forever. Clients OR it into the decision actions' `visible` gate; the + * service re-checks the same privilege before applying any override. + * + * Absent when the row is surfaced outside a service read with a user context + * (e.g. a raw data-API grid); a `record.viewer.*` predicate then fails closed. + */ + viewer?: { + can_act: boolean; + is_submitter: boolean; + can_override: boolean; + }; +} + +// ── ApprovalResubmitInput (interface) ── +interface ApprovalResubmitInput { + /** Must be the request's submitter (or a system context). */ + actorId: string; + comment?: string; +} + +// ── ApprovalResubmitResult (interface) ── +interface ApprovalResubmitResult { + /** The round-N request the resubmit was recorded on (stays `returned`). */ + request: ApprovalRequestRow; + runId?: string | null; + /** True when the owning flow run was resumed (it re-enters the approval node and opens round N+1). */ + resumed?: boolean; + /** + * Why the run was not resumed, on the paths that tolerate it (a concurrent + * duplicate resume). A resume failure that strands the run throws instead — + * see `RESUME_TARGET_LOST` / `RESUME_FAILED` (#4420). + */ + resumeError?: string; +} + +// ── ApprovalSendBackInput (interface) ── +interface ApprovalSendBackInput { + /** Must be a pending approver on the request (or a system context). */ + actorId: string; + /** Why the material needs rework — shown to the submitter. */ + comment?: string; +} + +// ── ApprovalSendBackResult (interface) ── +interface ApprovalSendBackResult { + request: ApprovalRequestRow; + /** The suspended flow run this request gated, if any. */ + runId?: string | null; + /** True when the owning flow run was resumed (down `revise`, or `reject` on auto-reject). */ + resumed?: boolean; + /** + * Why the run was not resumed, on the paths that tolerate it (a concurrent + * duplicate resume). A resume failure that strands the run throws instead — + * see `RESUME_TARGET_LOST` / `RESUME_FAILED` (#4420). + */ + resumeError?: string; + /** + * True when the send-back exceeded the node's `maxRevisions` budget and the + * request was auto-rejected instead (resumed down `reject` with + * `output.autoRejected = true`). + */ + autoRejected?: boolean; +} + +// ── ApprovalStatus (type) ── +type ApprovalStatus = (typeof APPROVAL_STATUSES)[number]; + +// ── AssistantModelMessage (type) ── +type AssistantModelMessage = { + role: 'assistant'; + content: AssistantContent; + /** + * Additional provider-specific metadata. They are passed through + * to the provider from the AI SDK and enable provider-specific + * functionality that can be fully encapsulated in the provider. + */ + providerOptions?: ProviderOptions; +}; + +// ── AudienceBindingSuggestion (type) ── +type AudienceBindingSuggestion = Record; + +// ── AudienceBindingSuggestionFilter (interface) ── +interface AudienceBindingSuggestionFilter { + status?: 'pending' | 'confirmed' | 'dismissed'; + packageId?: string; +} + +// ── AudienceBindingSuggestionSync (interface) ── +interface AudienceBindingSuggestionSync { + created: number; + confirmedObserved: number; + pruned: number; +} + +// ── AuthResult (interface) ── +interface AuthResult { + /** Whether authentication succeeded */ + success: boolean; + /** Authenticated user (if success) */ + user?: AuthUser; + /** Active session (if success) */ + session?: AuthSession; + /** Error message (if failure) */ + error?: string; +} + +// ── AuthSession (interface) ── +interface AuthSession { + /** Session identifier */ + id: string; + /** Associated user identifier */ + userId: string; + /** Session expiry (ISO 8601) */ + expiresAt: string; + /** Bearer token (if not using cookies) */ + token?: string; +} + +// ── AuthSessionApi (interface) ── +interface AuthSessionApi { + getSession?(input: { + headers: unknown; + }): Promise<{ + user?: { + id?: string; + }; + session?: { + userId?: string; + activeOrganizationId?: string; + }; + } | undefined>; +} + +// ── AuthUser (interface) ── +interface AuthUser { + /** User identifier */ + id: string; + /** Email address */ + email: string; + /** Display name */ + name: string; + /** Assigned position identifiers */ + positions?: string[]; + /** Current tenant identifier (multi-tenant) */ + tenantId?: string; +} + +// ── AuthoredRowWriteOperation (type) ── +type AuthoredRowWriteOperation = 'update' | 'delete'; + +// ── AuthoredRowWriteVerdict (type) ── +type AuthoredRowWriteVerdict = 'admit' | 'abstain'; + +// ── AutomationContext (interface) ── +interface AutomationContext { + /** Record that triggered the automation (if applicable) */ + record?: Record; + /** + * `true` exactly when the dispatcher's caller-scope load of the subject row + * did NOT deliver it — so {@link record} is the stamped `{ id }` stub the + * dispatcher puts in place of the row, not the row (#14244; the flow face of + * #14143's handler-face signal, `ctx.recordLoadDenied`). Absent — never + * `false` — otherwise, including for a record-less start that attempted no + * load, so a consumer reads `recordLoadDenied === true`. + * + * Who sets it: the runtime's action dispatch, both doors — REST + * `POST /api/v1/actions/...` and the MCP `run_action` bridge — through ONE + * producer, `loadActionSubjectRecord` in `@objectstack/runtime`'s + * `action-execution.ts`, whose `actionRecordLoadSignal(load)` returns + * exactly `{ recordLoadDenied?: true }` (line 1278 on `2cc46103`). This key + * IS that producer's spelling, mirrored — not a second one. + * + * What a flow guards on: a `type: 'flow'` action's dispatcher stamps the + * requested `recordId` onto `record.id` whether or not the caller could + * read the row (new-record / record-less actions depend on the stamp), so + * `record.id` is present either way and a node branching on it never + * refuses. A `runAs: 'user'` flow re-derives the caller's scope on its own + * reads and the stub resolves to nothing; a `runAs: 'system'` flow runs + * elevated AND receives the stub — this key is what such a flow guards on + * before acting on a row its invoker has not demonstrated read access to. + * It reports "the row did not resolve for this caller", not "an + * authorization error was caught": an RLS-hidden row and an id that names + * nothing both arrive as `RECORD_NOT_FOUND`, deliberately, and the key does + * not pretend to separate them. + * + * Populated on the flow face since #15168: `dispatchFlowAction` takes the + * producer's load outcome and spreads the signal into the context it hands + * `automation.execute`, on both doors, so a flow run receives this key + * exactly when a handler would. Additive — no existing key changes value. + * Callers other than the action dispatcher do NOT set this. + */ + recordLoadDenied?: true; + /** + * Prior state of the record for update triggers (the "old" row). Lets + * record-change-triggered flows gate on transitions (e.g. + * `status == "done" && previous.status != "done"`). Absent for + * create/delete events. + */ + previous?: Record; + /** Object name the record belongs to */ + object?: string; + /** Trigger event type (e.g. 'on_create', 'on_update') */ + event?: string; + /** User who triggered the automation */ + userId?: string; + /** + * Position names of the triggering identity (ADR-0090 D3; formerly + * `roles`). Forwarded by the trigger surface (REST route / record-change + * hook) so a `runAs:'user'` run enforces RLS exactly as that user — not a + * member fallback. ADR-0049 / #1888. + */ + positions?: string[]; + /** + * Explicit permission-set names of the triggering identity (parity with a + * direct REST request). Forwarded alongside {@link positions}. ADR-0049 / #1888. + */ + permissions?: string[]; + /** + * Tenant/org id of the triggering identity, carried so a `runAs:'user'` run + * stays tenant-scoped. ADR-0049 / #1888. + */ + tenantId?: string; + /** + * Effective execution identity for the run's DATA operations, established by + * the engine from {@link FlowParsed.runAs} at run setup (ADR-0049 / #1888): + * - `'system'` runs elevated — a full-access, RLS-bypassing system principal; + * - `'user'` (default) runs as {@link userId}, so CRUD nodes' ObjectQL + * reads/writes respect that user's row-level security. + * Node executors translate this into the ObjectQL `context` they pass to the + * data engine (see `resolveRunDataContext` in @objectstack/service-automation). + * Callers do NOT set this — the engine derives it from the flow definition. + */ + runAs?: 'system' | 'user'; + /** + * Machine name of the flow this run executes, stamped by the engine at run + * setup alongside {@link runAs} / {@link flowRunId} (same single + * construction point, same lifetime). Provenance, not authorization — no + * security middleware keys on it. + * + * Its consumer is audit attribution: `resolveRunDataContext` labels a + * `runAs:'system'` run's data operations `svc:flow:` on + * `ExecutionContext.actor` (ADR-0014 D2), naming WHICH automation performed + * the write. The label is a FALLBACK, not a replacement — the audit writer + * records `session.userId ?? session.actor` on `sys_audit_log.actor` — and + * elevation never costs the run its operator: a `runAs:'system'` run + * carries the triggering user through UNCHANGED whenever the trigger + * resolved one (#5494), so its writes still stamp `created_by` / + * `updated_by` and `sys_audit_log.user_id` with that human, exactly as the + * same trigger would under `runAs:'user'`. `runAs` declares the run's + * AUTHORIZATION posture and leaves ATTRIBUTION alone (ADR-0073 D2). + * + * The `svc:flow:` label is therefore what a genuinely USER-LESS run falls + * back to — a schedule, or a `runAs:'system'` flow fired by a write that + * itself carried no user — instead of leaving the audit row unattributed + * (#4366). There the user column stays null: ADR-0118 D1 forbids inventing + * a sentinel or pseudo-user in its place. + * + * Callers do NOT set this — the engine derives it, exactly like {@link runAs}. + */ + flowName?: string; + /** + * Id of the run this context belongs to, stamped by the engine at run setup + * alongside {@link runAs} and carried into every data node's ObjectQL + * `context` (see `resolveRunDataContext` in @objectstack/service-automation). + * It is persisted with a suspended run, so it survives a pause/resume round + * trip — including a cold resume after a process restart. + * + * Provenance, not authorization: it grants nothing and no security + * middleware keys on it. A hook uses it to recognize writes made BY a given + * run — the approvals record lock (#3456) lets the run that opened a pending + * approval write its own target record, which it otherwise cannot tell apart + * from an unrelated user's edit. A run with no resolvable principal (a + * schedule) carries this and nothing else into the data engine, so it is + * attributable without presenting an identity it does not have (#3712). + * + * Callers do NOT set this — the engine derives it, exactly like {@link runAs}. + */ + flowRunId?: string; + /** Additional contextual data */ + params?: Record; +} + +// ── AutomationResult (interface) ── +interface AutomationResult { + /** Whether the automation completed successfully */ + success: boolean; + /** Output data from the automation */ + output?: unknown; + /** Error message if execution failed */ + error?: string; + /** Execution duration in milliseconds */ + durationMs?: number; + /** + * Machine-readable failure classification, set alongside `error` when the + * caller must distinguish *why* it failed rather than just report it — + * without it a refusal is indistinguishable from "no such run". + * + * Two disjoint families share this field, and the distinction is + * load-bearing rather than editorial — see the trigger-time group at the + * bottom. + * + * **Resume refusals** — {@link IAutomationService.resume} declined to + * continue a parked run: + * + * - `'PERMISSION_DENIED'` — {@link IAutomationService.resume} refused + * because the run is parked on a node whose descriptor declares + * `resumeAuthority: 'service'` — or declares no `resumeAuthority` at all, + * which resolves the same way (#3801, #5561). A transport maps it to + * **403**. + * - `'INVALID_SIGNAL'` — the resume signal tried to write variables the + * flow engine reserves for itself (a `$…` name, or one carrying a `.$` + * segment: `$runId`, `.$mapItemDone`, …). A transport maps it to + * **400**. + * - `'RUN_NOT_FOUND'` — no suspension exists for the run id, in the hot + * cache or the durable store. The run is unresumable *for good*: it + * already resumed, was cancelled, or paused in a process whose state was + * never persisted (#4420). A transport maps it to **404**. Callers that + * persist a decision before resuming (approvals) must treat this as a + * hard failure, not a no-op. + * - `'STORE_UNAVAILABLE'` — the durable store could not be read, so + * whether a suspension exists is UNKNOWN. Distinct from + * `'RUN_NOT_FOUND'` on purpose: a transient store outage must not be + * mistaken for a dead run. A transport maps it to **503**; the same + * resume is expected to succeed once the store recovers. + * - `'RESUME_IN_PROGRESS'` — a concurrent resume of this run is already + * running; this duplicate was refused so side effects cannot run twice. + * A transport maps it to **409**. The other resume is doing the work, + * so callers should treat it as benign. + * - `'INVALID_SCREEN_INPUT'` — the run is parked on a `screen` node and + * the submitted bag violates that screen's declared field contract: a + * `required` field the caller WAS asked for is missing, or a key the + * screen never declared was sent (#4477). A transport maps it to + * **400**. Distinct from `'INVALID_SIGNAL'`, which is about the + * engine's own `$` variable namespace rather than the author's field + * declarations. `visibleWhen` is evaluated against the submitted values + * first, so a HIDDEN field's `required` never fires — enforcing it would + * dead-end the run at a field the user was never shown (#3528). + * + * All of the above refuse before consuming the suspension: the run stays + * parked and the legitimate continuation still lands. + * + * **Trigger-time refusals** — {@link IAutomationService.execute} declined + * to start a run at all. Both are classified by the engine **before + * dispatch**, so no node ever executed, nothing was written, and there is + * no run to inspect: they carry no `status`, which is exactly what + * separates them from a run that dispatched and was rejected + * (`status: 'failed'`, #9378). A transport reads the classification; it + * must never infer one from `summary` / `durationMs` / the message text. + * + * - `'FLOW_DISABLED'` — the flow exists but is switched off + * (`toggleFlow(name, false)`), so this dispatch was refused by policy. + * A transport maps it to **409**: the request is well-formed and the + * flow is well-defined; only the flow's current *state* conflicts with + * running it, and enabling the flow makes the identical request + * succeed. + * - `'FLOW_NO_START_NODE'` — the flow's definition holds no `start` node, + * so there is nothing to dispatch. A transport maps it to **422**: the + * request was understood and the flow exists, but the stored definition + * cannot be executed — an authoring defect the caller cannot fix by + * retrying. Distinct from `'FLOW_DISABLED'` on purpose: one is a + * reversible operational state, the other a malformed definition, and + * collapsing them tells an operator to flip a switch that will not help. + * - `'FLOW_INPUT_SCHEMA_INVALID'` — a node's static `config` violates the + * `inputSchema` its own flow definition declares, so the + * definition-level guard refused to dispatch. The verdict is a pure + * function of the flow definition — re-running the guard cannot produce + * a different answer — so the refusal is NON-RETRYABLE (#10025, + * maintainer ruling 2026-08-20: Option B taken whole): the engine + * refuses once instead of burning the whole retry budget re-deriving a + * certainty into 1 + maxRetries identical failed rows. A transport maps + * it to **422**, exactly as `'FLOW_NO_START_NODE'`: the stored + * definition cannot be executed, an authoring defect retrying cannot + * fix. Distinct from it on purpose: that one says the definition has + * nothing to dispatch, this one says a node's config contradicts the + * schema the definition itself declares. This member is the ruling's + * contract half; the engine begins stamping it when #10025's services + * half (the `execute()` catch short-circuit) lands. + * + * `'FLOW_DISABLED'` / `'FLOW_NO_START_NODE'` are the remaining two rows of + * the #9378 trigger-status ruling; `'FLOW_INPUT_SCHEMA_INVALID'` joined + * the never-dispatched class under the #10025 ruling. The union stays + * closed (the #9384 ruling), so each member was added deliberately, from + * measured need — and by the spec seat — rather than minted at a call + * site. + */ + code?: 'PERMISSION_DENIED' | 'INVALID_SIGNAL' | 'RUN_NOT_FOUND' | 'STORE_UNAVAILABLE' | 'RESUME_IN_PROGRESS' | 'INVALID_SCREEN_INPUT' | 'FLOW_DISABLED' | 'FLOW_NO_START_NODE' | 'FLOW_INPUT_SCHEMA_INVALID'; + /** + * Lifecycle status. `'paused'` means the run suspended at a node (e.g. + * an Approval node awaiting a human decision, ADR-0019) and can be + * continued later with {@link IAutomationService.resume}. Absent or + * `'completed'`/`'failed'`/`'stranded'` ⇒ the run reached a terminal + * state. + * + * `'stranded'` names the terminally-failed-but-repairable run (#13909; + * the #13937 shape-4 ruling, maintainer 2026-09-01): a resume CONSUMED the + * suspension, a downstream node threw, and the run is recorded as failed — + * terminal exactly like `'failed'`, except that the pause a durable + * decision (an approval, a screen submission) was waiting on is gone with + * it, so the run can be re-armed only by an explicit operator verb — never + * by {@link IAutomationService.resume} (which answers `'RUN_NOT_FOUND'`: + * there is no suspension left) and never automatically. Distinct from + * `'failed'` on purpose: that one says the run ran and was rejected; this + * one says a recorded continuation stopped mid-flight and an operator has + * something to repair. This member is the ruling's contract half; the + * engine begins stamping it when #13937's services half (the re-arm verb + * and the catch-arm stamp in `resumeInternal`) lands. plugin-approvals' + * `StrandedRunState` is a report-only label over a request's run and is + * deliberately NOT promoted to this status (same ruling): it classifies + * WHY a request's run is unrecoverable, this names the run's own lifecycle + * verdict. ⛔ Its members are deliberately NOT restated here: the union is + * plugin-local — declared, and documented member by member, on the type + * itself in `plugins/plugin-approvals/src/approval-service.ts` — and + * `automation-result-status.pin.test.ts` excludes it from its pins on + * purpose, so a member list copied into this file is unpinned prose that + * goes stale the next time the plugin splits an arm. + * + * `'refused'` names the run that reached an `end` node declaring + * `outcome: 'refused'` (#14945; maintainer ruling 2026-09-05, option 2′): + * a successful evaluation that said no. Terminal exactly like + * `'completed'`, and DISTINCT from `'failed'` on purpose — nothing threw, + * the flow refused deliberately, and the authored reason is rendered + * per-record into {@link refusalMessage}. `success` stays `true` (the + * evaluation succeeded), `successMessage` is NOT set (there is nothing to + * toast), and the run is never resumed. A runner renders `refusalMessage` + * with Close only — no Submit, no completion toast. This member is the + * ruling's contract half; the engine begins stamping it when the + * services half (the `end` handling in `service-automation`) lands. + */ + status?: 'completed' | 'paused' | 'failed' | 'stranded' | 'refused'; + /** Run id — set when `status` is `'paused'`, so callers can resume it. */ + runId?: string; + /** + * The screen to render — set when the run paused at a `screen` node awaiting + * user input (screen-flow runtime). The client collects values for + * `screen.fields` and calls {@link IAutomationService.resume} with them as + * `signal.variables`. + */ + screen?: ScreenSpec; + /** + * Friendly terminal messages copied from the flow definition + * (`flow.successMessage` / `flow.errorMessage`) so a screen-flow runner can + * show a meaningful toast instead of a generic "Done" / the raw error. + * `successMessage` is set on terminal success, `errorMessage` on failure. + */ + successMessage?: string; + errorMessage?: string; + /** + * #14945: the rendered refusal, set when `status` is `'refused'` — the + * `end` node's `message` template interpolated against the run's + * variables, so it names the record (`Refused: Acme Corp is a confirmed + * duplicate`). Authored per-record text, not a copy of a flow-level + * string like the two above; absent on every other status. The runner + * shows it with Close only. + */ + refusalMessage?: string; + /** + * #4354: what the run did — records selected / acted on, gate skips, + * per-node status. Set on a TERMINAL result (a paused run has not finished + * doing it yet). + * + * On the result rather than only in the run log because a caller that + * invokes a flow synchronously — the `subflow` node rolling a child run up + * into its parent, a test asserting a sweep wrote something — needs the + * answer without a second round-trip through `getRun`. + */ + summary?: FlowRunSummary; +} + +// ── CacheStats (interface) ── +interface CacheStats { + /** Total number of cache hits */ + hits: number; + /** Total number of cache misses */ + misses: number; + /** Number of keys currently stored */ + keyCount: number; + /** Memory usage in bytes (if available) */ + memoryUsage?: number; +} + +// ── ChatWithToolsOptions (interface) ── +interface ChatWithToolsOptions extends AIRequestOptions { + /** Maximum number of tool call loop iterations (default: 10) */ + maxIterations?: number; + /** + * Optional callback invoked when a tool execution fails. + * + * Receives the tool call that failed and the error message. + * Return `'continue'` (default) to feed the error back to the model, + * or `'abort'` to immediately stop the tool call loop. + */ + onToolError?: (toolCall: ToolCallPart, error: string) => 'continue' | 'abort'; + /** + * Per-call execution context threaded into every tool handler the + * loop dispatches. The HTTP route MUST populate this from + * `req.user` (and any conversation/environment headers) so that + * built-in data tools forward the actor into ObjectQL's + * `ExecutionContext` and row-level security automatically scopes + * what the LLM can see or change. + * + * Optional at the type level only — a missing context is NOT a + * grant of authority (#2991). When omitted, executors MUST run + * data-touching tools as an unauthenticated (RLS-on, sees-nothing) + * principal, exactly as if an empty context had been passed; they + * MUST NOT fall back to system-level behaviour. Trusted internal + * callers (cron, migrations, server jobs) that genuinely need full + * authority opt in explicitly via + * {@link ToolExecutionContext.isSystem}. + */ + toolExecutionContext?: ToolExecutionContext; +} + +// ── CheckNamespaceInput (interface) ── +interface CheckNamespaceInput { + /** Namespace prefixes to check */ + namespaces: string[]; + /** Package ID requesting the namespaces */ + packageId: string; +} + +// ── CheckNamespaceResult (interface) ── +interface CheckNamespaceResult { + /** Whether all namespaces are available */ + available: boolean; + /** Conflicts found (if any) */ + conflicts: NamespaceConflictError[]; +} + +// ── ClusterCallContext (interface) ── +interface ClusterCallContext { + /** Tenant or org channel-prefix; injected by the kernel, may be undefined for system primitives. */ + tenant?: string; + /** Free-form trace id for correlation with logs. */ + traceId?: string; +} + +// ── CoreServiceContract (type) ── +type CoreServiceContract = K extends keyof CoreServiceContracts ? CoreServiceContracts[K] : unknown; + +// ── CoreServiceContracts (interface) ── +interface CoreServiceContracts { + /** `packages/metadata` registers the object/field definition manager. */ + metadata: IMetadataService; + /** `packages/objectql` registers ObjectQL — "ObjectQL implements IDataEngine". */ + data: IDataEngine; + /** `plugin-auth` registers its auth manager. */ + auth: IAuthService; + /** `service-storage` registers the storage driver; the slot #4087 was about. */ + storage: IStorageService; + /** + * **Deprecated alias** of {@link CoreServiceContracts.storage} — the same + * instance under the old compound spelling (maintainer ruling 2026-08-18, + * issue #9683: 「9683 file-storage 可以叫 storage」). `service-storage` + * registers both names, exactly the `http.server` / `http-server` pattern + * below. New code resolves `storage`; the alias is retired through the + * standard retirement flow at the next major. + */ + 'file-storage': IStorageService; + search: ISearchService; + /** `service-cache`'s own error text names `ICacheService` as the slot's contract. */ + cache: ICacheService; + queue: IQueueService; + /** `service-automation` registers the flow engine (#4143, #4150). */ + automation: IAutomationService; + /** `service-analytics` registers the semantic layer. */ + analytics: IAnalyticsService; + realtime: IRealtimeService; + job: IJobService; + /** `service-messaging` registers the notification slot (#4143). */ + notification: INotificationService; + ai: IAIService; + /** `service-i18n`, or the `app-plugin` in-memory fallback (#4143). */ + i18n: II18nService; +} + +// ── CounterIncrOptions (interface) ── +interface CounterIncrOptions { + /** Delta to add. Default 1. May be negative. */ + by?: number; + ctx?: ClusterCallContext; +} + +// ── CreateExportJobInput (interface) ── +interface CreateExportJobInput { + /** Object name to export */ + object: string; + /** Export file format */ + format?: ExportFormat; + /** Specific fields to include (omit for all fields) */ + fields?: string[]; + /** Filter criteria for records to export */ + filter?: Record; + /** Sort order for exported records */ + sort?: Array<{ + field: string; + direction?: 'asc' | 'desc'; + }>; + /** Maximum number of records to export */ + limit?: number; + /** Include header row (CSV/XLSX) */ + includeHeaders?: boolean; + /** Character encoding */ + encoding?: string; + /** Export template ID for predefined field mappings */ + templateId?: string; +} + +// ── CreateExportJobResult (interface) ── +interface CreateExportJobResult { + /** Export job ID */ + jobId: string; + /** Initial job status */ + status: ExportJobStatus; + /** Estimated total records */ + estimatedRecords?: number; + /** Job creation timestamp (ISO 8601) */ + createdAt: string; +} + +// ── CreateShareLinkInput (interface) ── +interface CreateShareLinkInput { + object: string; + recordId: string; + permission?: ShareLinkPermission; + audience?: ShareLinkAudience; + /** ISO timestamp or relative duration string ("7d", "24h") — service normalises. */ + expiresAt?: string | null; + emailAllowlist?: string[]; + /** Plain-text password; service hashes before persisting. */ + password?: string; + /** Per-link redactions in addition to the object default. */ + redactFields?: string[]; + label?: string; +} + +// ── CryptoContext (interface) ── +interface CryptoContext { + /** + * Producer-scoped namespace: a settings namespace, an **object name** + * (secret fields), or a caller-supplied datasource namespace (default + * `'datasource'`). Not a settings namespace in general. + */ + namespace: string; + /** + * Producer-scoped key within {@link CryptoContext.namespace}: a settings + * specifier key, a **field name** (secret fields), or a datasource name. + */ + key: string; + /** Optional tenant id for multi-tenant key segregation. */ + tenantId?: string; +} + +// ── CryptoHandle (interface) ── +interface CryptoHandle { + /** + * Stable opaque id — the key of the `sys_secret` row, recorded by the + * producer wherever that producer keeps its reference (`sys_setting + * .value_enc`, a `secret:` ref on a business row, or a `sys_secret:` + * credentialsRef). Not a settings-only coordinate. + */ + readonly id: string; + /** Identifier of the KMS key that wrapped the cipher. */ + readonly kmsKeyId: string; + /** AEAD / cipher tag (e.g. `'aes-256-gcm'`). */ + readonly alg: string; + /** Monotonic version bumped on every rotation. */ + readonly version: number; + /** + * Provider-encoded ciphertext blob. The caller is expected to persist + * this verbatim under `sys_secret.ciphertext`. Round-tripped to the + * provider on `decrypt` and `rotateKey`. + */ + readonly ciphertext: string; +} + +// ── CubeMeta (interface) ── +interface CubeMeta { + /** Cube name */ + name: string; + /** Human-readable title */ + title?: string; + /** Available measures */ + measures: Array<{ + name: string; + type: string; + title?: string; + }>; + /** Available dimensions */ + dimensions: Array<{ + name: string; + type: string; + title?: string; + }>; +} + +// ── DEFAULT_STORAGE_LIST_LIMIT (const) ── +declare const DEFAULT_STORAGE_LIST_LIMIT = 1000; + +// ── DatasetCompareTo (interface) ── +interface DatasetCompareTo { + /** previousPeriod = equal-length window immediately before; previousYear = same window −1y. */ + kind: 'previousPeriod' | 'previousYear'; + /** + * The time dimension (by name) whose `dateRange` is shifted. + * + * **Optional since #5011, resolved by the EXECUTOR — not by any consumer.** + * When omitted the executor takes the selection's shiftable time dimensions + * (its own long-standing criterion: a `timeDimensions` entry carrying a + * `dateRange`) and: + * + * - exactly one candidate → that one is shifted; + * - zero candidates → throws, saying a comparison needs a dated window; + * - two or more → throws, listing the candidates by name so the author can + * pick one. + * + * The ambiguous and empty cases are LOUD by design. A consumer must never + * paper over them by guessing a dimension (PD #12): the resolution rule + * lives at the producer of the comparison — the executor — precisely so + * every caller gets the same answer or the same error. + */ + dimension?: string; +} + +// ── DatasetSelection (interface) ── +interface DatasetSelection { + /** Dimension names from the dataset. */ + dimensions?: string[]; + /** Measure names from the dataset (may include derived measures). */ + measures: string[]; + /** Presentation-scope filter, ANDed with the dataset's intrinsic filter at render. */ + runtimeFilter?: FilterCondition; + /** Optional time-dimension windows passed through to the runtime. */ + timeDimensions?: AnalyticsQuery['timeDimensions']; + /** + * Presentation-scope date bucketing (framework#3588). Applies to every + * selected dimension the dataset declares as a `date` dimension, so a + * widget can bucket a trend by month without the dataset having to declare + * that granularity for every consumer. + * + * Precedence, per dimension: an explicit `timeDimensions` entry for that + * dimension wins, then this selection-level granularity, then the dataset + * dimension's own `dateGranularity` default. Unset leaves each dimension on + * its dataset default (which may be no bucketing at all — grouping by the + * raw column). + */ + dateGranularity?: 'day' | 'week' | 'month' | 'quarter' | 'year'; + /** + * Result ordering, applied by key in insertion order (`{ revenue: 'desc' }`). + * + * Every key must be a selected dimension, a selected measure, or a + * `__compare` column; anything else is rejected rather than + * silently ignored. Ordering is applied AFTER measure-scoped filters are + * merged, `compareTo` columns are attached, and derived measures are + * evaluated — so a derived measure (e.g. a win-rate ratio) is a valid sort + * key even though no single SQL statement computes it. + */ + order?: Record; + /** + * Max rows to return, applied after `order`. When `limit` is set without + * `order`, rows are ordered by the selected dimensions ascending first, so + * the truncated window is deterministic rather than an arbitrary subset. + */ + limit?: number; + offset?: number; + /** Compare-to directive — runs a shifted query and attaches `__compare`. */ + compareTo?: DatasetCompareTo; + /** + * Server-side totals (matrix subtotals + grand total). Each grouping is a + * subset of `dimensions` to additionally aggregate by; the selection is + * re-run grouped only by those dimensions, so every total is the measure's + * TRUE aggregate over the underlying rows — an `avg` total is the average + * over all rows, not an average of bucket averages (the ADR-0021 + * governance line that forbids client-side re-aggregation). `[]` requests + * the grand total. A matrix report asks for + * `{ groupings: [rowDims, columnDims, []] }`. Results arrive on + * `AnalyticsResult.totals` in request order. `order`/`limit`/`offset` do + * not apply to totals queries — totals always cover the full selection. + */ + totals?: { + groupings: string[][]; + }; + timezone?: string; +} + +// ── DefineSharingRuleInput (interface) ── +interface DefineSharingRuleInput { + name: string; + label: string; + description?: string; + object: string; + criteria?: unknown; + recipientType: SharingRuleRecipientType; + recipientId: string; + accessLevel?: ShareAccessLevel; + active?: boolean; + /** + * [#2909 P0] Provenance to stamp on the row. Passing `package` or + * `platform` puts defineRule in SEED mode: existing rows that an admin + * authored (managed_by `admin`) or customized are left untouched; + * pristine seeded rows keep receiving declared updates. Omitted / + * `admin` = programmatic/tenant authoring (existing clobber semantics). + */ + managedBy?: 'platform' | 'package' | 'admin'; +} + +// ── DelegableAdminScope (interface) ── +interface DelegableAdminScope { + /** Permission set carrying the scope (for attribution in a UI). */ + setName: string; + /** `sys_business_unit.name` of the delegation root. */ + businessUnit: string; + includeSubtree: boolean; + manageAssignments: boolean; + manageBindings: boolean; + authorEnvironmentSets: boolean; + /** Permission-set names the delegate may hand out. */ + assignablePermissionSets: string[]; + /** Resolved subtree — root plus descendants when `includeSubtree`. */ + businessUnitIds: string[]; +} + +// ── DelegableScope (interface) ── +interface DelegableScope { + /** + * ADR-0066 superuser wildcard: the caller is unconstrained. The lists below + * then enumerate everything, so a consumer renders ONE uniform picker + * instead of special-casing tenant admins. + */ + isTenantAdmin: boolean; + /** Every held `adminScope`, resolved. Empty for a tenant admin (nothing narrows them). */ + scopes: DelegableAdminScope[]; + /** Union of subtrees where the caller may PLACE people (`manageAssignments`). */ + placeableBusinessUnitIds: string[]; + /** Positions the caller may assign — every set they distribute is allowlisted. */ + assignablePositions: string[]; +} + +// ── DelegationNarrowing (type) ── +type DelegationNarrowing = { + /** No narrowing to describe. Carries nothing: there is nothing to say. */ + narrowed: false; +} | { + /** The delegated principal's own ceiling narrowed the readable depth. */ + narrowed: true; + /** + * The sentence to surface. Written for an AI consumer: it states that the + * result is a SUBSET and that the count is not a fact about the object. + */ + statement: string; + /** The depth actually enforced for the delegated read. */ + effectiveScope: ObjectAccessScope; + /** The depth the delegator reaches alone. */ + delegatorScope: ObjectAccessScope; +}; + +// ── DeployExecutionResult (interface) ── +interface DeployExecutionResult { + /** Unique deployment identifier */ + deploymentId: string; + /** Final deployment status */ + status: DeployStatus; + /** Total execution duration in milliseconds */ + durationMs: number; + /** Number of DDL statements executed */ + statementsExecuted: number; + /** Error message if deployment failed */ + error?: string; + /** Timestamp of deployment completion (ISO 8601) */ + completedAt: string; +} + +// ── DriverQuery (type) ── +type DriverQuery = Omit; + +// ── EMBEDDER_SERVICE (const) ── +declare const EMBEDDER_SERVICE: "embedder"; + +// ── EmailAddress (type) ── +type EmailAddress = string | { + name?: string; + address: string; +}; + +// ── EmailAttachment (interface) ── +interface EmailAttachment { + filename: string; + content: string | Buffer; + contentType?: string; + /** Optional Content-ID for inline HTML referencing (`cid:`). */ + cid?: string; +} + +// ── EmailDeliveryStatus (type) ── +type EmailDeliveryStatus = 'queued' | 'sent' | 'failed'; + +// ── EngineDatasourceDef (interface) ── +interface EngineDatasourceDef { + name: string; + schemaMode?: string; + external?: { + /** Datasource-wide write gate — ADR-0015 §5.3 Gate 3. */ + allowWrites?: boolean; + /** + * Reference into the secrets store, never an inline credential + * (`credentialsRef` on `ExternalDatasourceSettingsSchema`). Valid in + * EVERY `schemaMode` — it is the one `external` key a managed datasource + * may carry (#8153) — so a reader sweeping for handles must not filter + * by schema mode. [#12805] The engine has accepted and retained this key + * since #12758; this contract is the catch-up, not a widening beyond + * engine reality. + */ + credentialsRef?: string; + }; +} + +// ── EngineSchemaRegistryView (interface) ── +interface EngineSchemaRegistryView { + /** + * The registered object schema, or `undefined`. + * + * [#12248] Returns the spec's own registered-object type (the #11833 + * ruling's fork 3, "anything but leave as is"): `SchemaRegistry.getObject` + * has always answered `ServiceObject | undefined`, and while this view + * said `unknown`, registry-view consumers (`plugin-pinyin-search`'s + * companion projection, `plugin-sharing`'s share cascade) re-narrowed + * through `any`. Authored state (`z.input`, ADR-0122) deliberately: the + * registry stores what was registered. + */ + getObject(name: string): ServiceObject | undefined; + /** Every registered object schema, optionally scoped to one package. */ + getAllObjects(packageId?: string): unknown[]; + /** Every registered app, nav contributions merged — the `/me/apps` authority. */ + getAllApps(): unknown[]; + /** A registered metadata item by type + name (package-scoped resolution). */ + getItem(type: string, name: string, currentPackageId?: string): T | undefined; + /** Every registered metadata item of a type, optionally scoped to one package. */ + listItems(type: string, packageId?: string): T[]; + /** Every installed package manifest. */ + getAllPackages(): unknown[]; + /** Remove one registered metadata item (plugin-security's projection cleanup). */ + unregisterItem(type: string, name: string): void; + /** Seed the persisted disabled-package set before artifact load (AppPlugin boot). */ + setInitialDisabledPackageIds(ids: Iterable): void; + /** One installed package by id, or `undefined` — the duplicate-install guard's reader. */ + getPackage(id: string): unknown; + /** Register a package manifest in the in-memory registry. */ + installPackage(manifest: unknown, settings?: Record): unknown; + /** Drop a package from the registry; `false` when no package had that id. */ + uninstallPackage(id: string): boolean; + /** Flip a package to enabled; `undefined` when no package had that id. */ + enablePackage(id: string): unknown; + /** Flip a package to disabled; `undefined` when no package had that id. */ + disablePackage(id: string): unknown; + /** Merge the human-editable manifest fields (name / description / version) — a metadata edit, not a reinstall. */ + updatePackageManifest(id: string, patch: { + name?: string; + description?: string; + version?: string; + }): unknown; +} + +// ── EngineTransactionInfo (interface) ── +interface EngineTransactionInfo { + /** + * `true` when THIS call opened the transaction and therefore owns its + * commit/rollback; `false` when it JOINED an already-open ambient one + * (ADR-0067 D2) and some outer caller owns the outcome. + * + * The join is correct and stays — a nested `begin` would take a second + * connection (deadlocking a single-connection SQLite pool) and would not be + * covered by the outer rollback. What was missing is that the callback + * could not TELL: a joined callback's `throw` unwinds work the outer owner + * may still commit or roll back on its own terms, and guarantees phrased + * as "this whole unit rolls back together" (`batchData`'s rollback + * response, ADR-0119 D4) hold only for the owner. A callback that must not + * promise what it does not control reads `owned` and says so. + */ + owned: boolean; +} + +// ── EngineTransactionOptions (interface) ── +interface EngineTransactionOptions { + /** + * Fail CLOSED when the datasource cannot give a real transaction. + * + * Default (`undefined` / `false`) keeps ADR-0119 D1's declared degrade: a + * driver without `beginTransaction` runs the callback with no transaction + * and no rollback, warning once. That degrade is right for callers who can + * live without atomicity (test doubles, in-memory drivers) and wrong for + * callers whose whole reason to open a transaction is the rollback. + * + * With `require: true` the engine THROWS instead of degrading, before the + * callback runs — so a caller that cannot tolerate losing atomicity states + * it once, at the call site, instead of re-deriving `batchData`'s probe. + * That probe is the precedent being generalized here (ADR-0119 D4, cited in + * older text as ADR-0118 D4 — see that ADR's renumbering note): an `atomic` + * request refuses rather than silently running best-effort. + */ + require?: boolean; +} + +// ── ExecuteUpgradeInput (interface) ── +interface ExecuteUpgradeInput { + /** Package ID to upgrade */ + packageId: string; + /** Target version */ + targetVersion?: string; + /** New manifest */ + manifest?: ObjectStackManifest; + /** Whether to create a pre-upgrade snapshot */ + createSnapshot?: boolean; + /** Merge strategy for customizations */ + mergeStrategy?: 'keep-custom' | 'accept-incoming' | 'three-way-merge'; + /** Whether to run in dry-run mode */ + dryRun?: boolean; +} + +// ── ExplainAccessRequest (interface) ── +interface ExplainAccessRequest { + /** Object API name to explain access for. */ + object: string; + /** Operation being explained (`read`, `create`, `update`, `delete`, …). */ + operation: ExplainOperation | string; + /** + * Explain access for ANOTHER user. Omit to explain the caller's own access; + * naming a different user is an administrative action and implementations are + * expected to gate it (the reference implementation requires `manage_users`). + */ + userId?: string; + /** Narrow the explanation to a single record (adds record-level layers). */ + recordId?: string; +} + +// ── ExportJobDownload (interface) ── +interface ExportJobDownload { + /** Export job ID */ + jobId: string; + /** Presigned download URL */ + downloadUrl: string; + /** Suggested file name */ + fileName: string; + /** File size in bytes */ + fileSize: number; + /** Export file format */ + format: ExportFormat; + /** Download URL expiration timestamp (ISO 8601) */ + expiresAt: string; + /** File checksum (SHA-256) */ + checksum?: string; +} + +// ── ExportJobListResult (interface) ── +interface ExportJobListResult { + /** Export job summaries */ + jobs: ExportJobSummary[]; + /** Cursor for the next page */ + nextCursor?: string; + /** Whether more jobs are available */ + hasMore: boolean; +} + +// ── FinishReason (type) ── +type FinishReason = 'stop' | 'length' | 'content-filter' | 'tool-calls' | 'error' | 'other'; + +// ── FlowRuntimeState (interface) ── +interface FlowRuntimeState { + /** Flow name (snake_case) — the key {@link IAutomationService.execute} takes. */ + name: string; + /** Whether the flow is enabled; a disabled flow stays registered and never runs. */ + enabled: boolean; + /** + * Whether a trigger is actually wired to this flow. `false` for a flow with + * no declared trigger (manual / screen flows) AND for one whose declared + * trigger type has no registered trigger — `triggerType` distinguishes the + * two. + */ + bound: boolean; + /** Persisted deployment status, when the flow carries one. */ + status?: string; + /** Declared trigger type, when the flow declares one. */ + triggerType?: string; + /** Object the trigger binds to, for object-bound trigger types. */ + object?: string; + /** + * WHY this flow is not armed, in one sentence — present only on a row that + * is `enabled`, `bound: false` and declares a trigger, absent on every + * other row. `bound: false` alone cannot be read as a defect: the states + * behind it have different owners and different remedies, and this is the + * field that tells them apart on the wire. + * + * [#17396 ruling G item 6] A flow left unarmed because package-authored + * scheduled work is switched OFF on this deployment carries a DISTINCT + * sentence — `SCHEDULED_WORK_DISABLED_REASON` (`@objectstack/types`), + * which names the switch and its remedy — and ⛔ never reads as "binding + * failed": a binding failure is a defect with an engineering remedy, while + * this is a deployment policy with an operator one, and the two send the + * reader to different places. Before this field existed the two reached + * Studio as the same `enabled: true, bound: false` row (#18235). + * + * ⛔ Not a new vocabulary: the producer answers the same sentence the + * engine's `getTriggerBindingAudit()` reports for the same flow — one + * computation, two doors — so the status door and the boot-time audit + * cannot drift. The policy sentence is read from the RECORDED refusal, ⛔ + * never re-derived from a live environment read: the status door is called + * long after the bind, so an environment that moved in between would + * otherwise report a binding failure for a trigger that was never called. + * + * A free-form sentence, deliberately — the shape the two surfaces that + * already carry this reason use. Consumers RENDER it; ⛔ do not parse it. + */ + reason?: string; +} + +// ── GenerateDraftOpts (interface) ── +interface GenerateDraftOpts { + /** Restrict to a single remote schema. */ + remoteSchema?: string; + /** Remote column → local field name overrides. */ + rename?: Record; + /** Override primary-key detection. */ + primaryKey?: string[]; + /** Only include these remote columns. */ + includeColumns?: string[]; + /** Exclude these remote columns. */ + excludeColumns?: string[]; +} + +// ── GenerateObjectOptions (interface) ── +interface GenerateObjectOptions extends AIRequestOptions { + /** Optional schema name to send to the provider (improves prompt clarity). */ + schemaName?: string; + /** Optional schema description (sent to the provider). */ + schemaDescription?: string; +} + +// ── GrantShareInput (interface) ── +interface GrantShareInput { + object: string; + recordId: string; + recipientType?: RecordShareRecipientType; + recipientId: string; + accessLevel?: ShareAccessLevel; + source?: ShareSource; + sourceId?: string; + reason?: string; +} + +// ── HierarchyScope (type) ── +type HierarchyScope = 'unit' | 'unit_and_below' | 'own_and_reports'; + +// ── HierarchyScopeContext (interface) ── +interface HierarchyScopeContext { + userId: string; + /** + * AUTHORITATIVE. Active organization ID of the caller (`null` = + * platform/unscoped) — same meaning as `EvalUser.organizationId`. A resolver + * MUST scope its owner set by this field; see + * {@link IHierarchyScopeResolver.resolveOwnerIds} for the `null` obligation. + */ + organizationId: string | null; + /** + * REQUIRED. The deployment's tenancy posture (ADR-0105 D1) — the fact that + * says what a `null` {@link HierarchyScopeContext.organizationId} MEANS. + * + * Without it the two `null`s are indistinguishable, and they demand opposite + * answers (#6139): + * + * - `single` — there is no organization dimension at all, so `null` is the + * ONE implicit tenant, not an absent constraint. A resolver MUST proceed + * and resolve DEPTH normally; refusing here retires hierarchy scoping for + * every org-less deployment, which the ADR-0057 D1 proofs boot on purpose. + * - `group` / `isolated` — a wall is in force, so `null` is a MISSING + * constraint. The fail-closed obligation applies in full force; that is + * the half which closed the #5852 cross-organization leak, and nothing on + * this interface relaxes it. + * + * Required — never optional, never omitted — for the same reason + * {@link HierarchyScopeContext.organizationId} is: a producer that forgets it + * must fail to COMPILE rather than hand every resolver an `undefined` to + * guess about, when either guess is a defect (one leaks across + * organizations, the other silently kills enterprise DEPTH). Producers + * already hold the value — the open sharing layer resolves the posture to + * decide whether to consult a resolver at all — so supplying it is a + * pass-through, not new plumbing. + * + * A producer that cannot resolve the posture MUST report the strictest + * WALLED posture rather than `single`: 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. + */ + posture: TenancyPosture; + /** + * Generic driver-layer tenancy knob, carried through for kernels that key + * isolation off something other than the organization (database-per-tenant + * deployments legitimately put an *environment* id here). + * + * @deprecated Not the authority for hierarchy scoping — a resolver MUST NOT + * depend on it alone, and MUST NOT treat it as a substitute for a `null` + * {@link HierarchyScopeContext.organizationId}. Read `organizationId`. + * Retained for compatibility only; removal goes through the retirement flow. + */ + tenantId?: string | null; +} + +// ── HttpResponseObservation (interface) ── +interface HttpResponseObservation { + /** HTTP method of the request, uppercase (`GET`, `POST`, …). */ + method: string; + /** + * The registered route pattern that answered (`/api/v1/data/:id`, + * `/api/v1/auth/*`) — NEVER the concrete path (`/api/v1/data/rec_42`), + * which would mint one metric series per record id. A request no + * registered route matched carries {@link UNMATCHED_ROUTE_PATTERN}. + */ + routePattern: string; + /** Numeric HTTP status of the response as sent (`200`, `429`, `500`, …). */ + status: number; + /** + * Wall-clock milliseconds from the transport first seeing the request to + * the response existing. Precision is adapter-defined — consumers must + * not assume sub-millisecond fidelity. + */ + elapsedMs: number; +} + +// ── HttpResponseObserver (type) ── +type HttpResponseObserver = (observation: HttpResponseObservation) => void; + +// ── IAIConversationService (interface) ── +interface IAIConversationService { + /** + * Create a new conversation + * @param options - Initial conversation properties + * @returns The created conversation + */ + create(options?: { + title?: string; + agentId?: string; + userId?: string; + metadata?: Record; + }): Promise; + /** + * Get a conversation by ID, including its full message history. + * + * For paginated or filtered reads of `ai_messages`, use the generic + * ObjectQL data endpoint directly — that's the canonical query layer. + * + * @param conversationId - Conversation identifier + * @returns The conversation, or null if not found + */ + get(conversationId: string): Promise; + /** + * List conversations with optional filters + * @param options - Filter and pagination options + * @returns Array of matching conversations + */ + list(options?: { + userId?: string; + agentId?: string; + limit?: number; + cursor?: string; + }): Promise; + /** + * Add a message to a conversation + * @param conversationId - Target conversation ID + * @param message - Message to append (Vercel `ModelMessage`) + * @param extras - Optional per-message observability metadata. When + * supplied, the conversation service persists token + * usage, latency, and model id alongside the message + * so each `ai_messages` row can be analysed without + * joining `ai_traces` by timestamp. + * @param turnId - Optional stable per-user-turn idempotency key + * (ADR-0013 D1). Persisted as `turn_id` so the turn's + * messages can be deduped and reconciled on Retry. + * @returns The updated conversation + */ + addMessage(conversationId: string, message: ModelMessage, extras?: MessageObservability, turnId?: string): Promise; + /** + * Reconcile the state of a single user turn (ADR-0013 D1). + * + * Lets the tool loop make a turn idempotent: dedup the inbound user + * message and short-circuit a turn that already completed instead of + * re-running tools / re-planning. + * + * @param conversationId - Conversation the turn belongs to + * @param turnId - The turn's stable idempotency key + * @returns `userExists` — whether a `user` message was already recorded + * for this turn; `reply` — the turn's final assistant text reply + * (an assistant message with no pending tool calls), or null if + * the turn never completed. + */ + getTurnState(conversationId: string, turnId: string): Promise<{ + userExists: boolean; + reply: AIResult | null; + }>; + /** + * Update mutable conversation fields (title, metadata). + * @param conversationId - Conversation to update + * @param patch - Fields to change. Only provided keys are written. + * @returns The updated conversation + */ + update(conversationId: string, patch: { + title?: string; + metadata?: Record; + }): Promise; + /** + * Delete a conversation + * @param conversationId - Conversation to delete + */ + delete(conversationId: string): Promise; +} + +// ── IAIService (interface) ── +interface IAIService { + /** + * Generate a chat completion from a conversation. + * + * Accepts Vercel AI SDK `ModelMessage[]` for full ecosystem alignment. + * + * @param messages - Array of conversation messages (Vercel `ModelMessage`) + * @param options - Optional request configuration + * @returns AI-generated response + */ + chat(messages: ModelMessage[], options?: AIRequestOptions): Promise; + /** + * Generate a text completion from a prompt + * @param prompt - Input prompt string + * @param options - Optional request configuration + * @returns AI-generated response + */ + complete(prompt: string, options?: AIRequestOptions): Promise; + /** + * Generate embeddings for a text input + * @param input - Text or array of texts to embed + * @param model - Optional embedding model identifier + * @returns Array of embedding vectors + */ + embed?(input: string | string[], model?: string): Promise; + /** + * List available models + * @returns Array of model identifiers + */ + listModels?(): Promise; + /** + * Stream a chat completion as an async iterable of Vercel AI SDK stream parts. + * + * @param messages - Array of conversation messages (Vercel `ModelMessage`) + * @param options - Optional request configuration (supports tool definitions) + * @returns Async iterable of `TextStreamPart` events + */ + streamChat?(messages: ModelMessage[], options?: AIRequestOptions): AsyncIterable>; + /** + * Generate a strongly-typed object that conforms to a Zod schema. + * + * Implementations should leverage native structured-output features + * (OpenAI JSON mode / Responses API, Anthropic tool use, Gemini schema) + * when available. The result `object` is guaranteed to validate against + * the schema. + * + * Optional — adapters that do not support structured output should + * either throw or omit this method. + * + * @example + * ```ts + * const Schema = z.object({ name: z.string(), priority: z.number().int() }); + * const { object } = await ai.generateObject(messages, Schema); + * // object is typed as { name: string; priority: number } + * ``` + */ + generateObject?(messages: ModelMessage[], schema: z.ZodType, options?: GenerateObjectOptions): Promise>; + /** + * Chat with automatic tool call resolution. + * + * Sends messages to the LLM with tool definitions, automatically + * executes any returned tool calls, feeds the results back, and + * repeats until the model returns a final text response or the + * maximum number of iterations is reached. + * + * @param messages - Conversation messages (Vercel `ModelMessage`) + * @param options - Request options (tools are auto-injected from the registry) + * @returns Final AI result after all tool calls have been resolved + */ + chatWithTools?(messages: ModelMessage[], options?: ChatWithToolsOptions): Promise; + /** + * Persist a proposed AI-initiated action that requires human approval + * before execution. Used by the actions-as-tools runtime when the + * picked action is dangerous (delete / danger variant / has + * `confirmText`) and `enableActionApproval` is on. + * + * Implementations write a row to `ai_pending_actions` and return + * its id. The caller (the tool handler) immediately returns a + * `{ status: 'pending_approval' }` envelope to the LLM. + */ + proposePendingAction?(input: ProposePendingActionInput): Promise<{ + id: string; + }>; + /** + * Approve a previously-proposed pending action and re-dispatch it + * via the same handler that would have run had approval not been + * required. Updates the row to `executed` (or `failed`) and returns + * the outcome. + */ + approvePendingAction?(id: string, actorId: string): Promise<{ + status: 'executed' | 'failed'; + result?: unknown; + error?: string; + }>; + /** + * Reject a pending action. The row transitions to `rejected` and the + * optional `reason` is stored so the next LLM turn can surface it. + */ + rejectPendingAction?(id: string, actorId: string, reason?: string): Promise; + /** + * Inbox query: list pending (or filtered) action proposals. Used by + * Studio's pending-actions view. + */ + listPendingActions?(filter?: { + status?: PendingActionStatus | PendingActionStatus[]; + conversationId?: string; + objectName?: string; + limit?: number; + }): Promise; +} + +// ── IAdvancedServiceRegistry (interface) ── +interface IAdvancedServiceRegistry extends IServiceRegistry { + /** + * Register a factory function that creates services on-demand + * @param name - Service identifier + * @param factory - Factory function that creates the service + * @param singleton - If true, factory is called once and result is cached + */ + registerFactory?(name: string, factory: () => T | Promise, singleton?: boolean): void; + /** + * Register a scoped service (per-request, per-session, etc.) + * @param name - Service identifier + * @param factory - Factory function that creates the service + * @param scopeType - Type of scope ('request', 'session', 'transaction', etc.) + */ + registerScoped?(name: string, factory: (scopeId: string) => T | Promise, scopeType: string): void; + /** + * Create a new scope for scoped services + * @param scopeType - Type of scope + * @returns Scope identifier + */ + createScope?(scopeType: string): string; + /** + * Dispose a scope and cleanup scoped services + * @param scopeId - Scope identifier + */ + disposeScope?(scopeId: string): Promise; +} + +// ── IAnalyticsService (interface) ── +interface IAnalyticsService { + /** + * Execute an analytical query + * @param query - The analytics query definition + * @param context - The caller's ExecutionContext (tenant, user, roles). Used + * to compute the per-request tenant/RLS read scope for the raw-SQL path + * (ADR-0021 D-C). Optional for backward-compat and in-memory/dev use, but + * REQUIRED for multi-tenant isolation on cross-object queries. + * @returns Query results with rows and field metadata + */ + query(query: AnalyticsQuery, context?: ExecutionContext): Promise; + /** + * Get available cube metadata for discovery + * @param cubeName - Optional cube name to filter (returns all if omitted) + * @returns Array of cube metadata definitions + */ + getMeta(cubeName?: string): Promise; + /** + * Generate SQL for a query without executing it (dry-run) + * @param query - The analytics query definition + * @param context - The caller's ExecutionContext (see {@link query}). + * @returns Generated SQL string and parameters + */ + generateSql?(query: AnalyticsQuery, context?: ExecutionContext): Promise<{ + sql: string; + params: unknown[]; + }>; + /** + * Execute a semantic-layer `dataset` (ADR-0021): compile it to the Cube + * runtime, then run the presentation's `selection` (dimensions/measures by + * name, runtime filter, compareTo) — returning chart-ready rows. The + * `dataset` may be a saved definition or an inline draft (Studio preview). + * + * Optional: implementations that only support raw cube queries may omit it; + * callers should feature-detect (`typeof svc.queryDataset === 'function'`). + * + * @param dataset - The dataset definition (saved or inline draft). + * @param selection - Dimensions/measures to project + runtime directives. + * @param context - The request's ExecutionContext (tenant/RLS, see {@link query}). + * @param options - ADR-0037 P3: `previewDrafts` evaluates the selection over + * the base object's PENDING seed-draft rows (when one exists) so a draft + * preview charts real numbers before publish. Same principal, reads only; + * implementations without draft support ignore it. + */ + queryDataset?(dataset: Dataset, selection: DatasetSelection, context?: ExecutionContext, options?: { + previewDrafts?: boolean; + }): Promise; +} + +// ── IAppLifecycleService (interface) ── +interface IAppLifecycleService { + /** + * Check whether an app is compatible with a tenant's environment. + * Validates kernel version, existing objects, dependencies, and quotas. + * + * @param tenantId - Target tenant + * @param manifest - App manifest to check + * @returns Compatibility check result + */ + checkCompatibility(tenantId: string, manifest: AppManifest): Promise; + /** + * Install an app into a tenant's database. + * Applies schema changes, seeds data, and registers metadata. + * + * @param tenantId - Target tenant + * @param manifest - App manifest + * @param config - Optional configuration overrides + * @returns Installation result + */ + installApp(tenantId: string, manifest: AppManifest, config?: Record): Promise; + /** + * Uninstall an app from a tenant's database. + * Removes metadata registrations. Optionally drops tables. + * + * @param tenantId - Target tenant + * @param appId - App to uninstall + * @param dropTables - Whether to drop database tables (default: false) + * @returns Whether the uninstallation succeeded + */ + uninstallApp(tenantId: string, appId: string, dropTables?: boolean): Promise<{ + success: boolean; + }>; + /** + * Upgrade an installed app to a new version. + * Applies schema migrations and updates metadata. + * + * @param tenantId - Target tenant + * @param manifest - New version app manifest + * @returns Installation result for the upgrade + */ + upgradeApp(tenantId: string, manifest: AppManifest): Promise; +} + +// ── IApprovalService (interface) ── +interface IApprovalService { + /** + * "My approvals" inbox. Supports filtering by status, target object, + * record id, or by the user expected to act next. + */ + listRequests(filter: { + object?: string; + recordId?: string; + status?: ApprovalStatus | ApprovalStatus[]; + /** + * Match requests where ANY of these identities is a pending approver. + * Accepts a single id or a list (a user typically has several + * identities: their user id, email, and `role:` entries). Passing + * the list lets a caller resolve "my pending approvals" in ONE request + * instead of one request per identity. + */ + approverId?: string | string[]; + submitterId?: string; + /** + * Free-text search, pushed into the engine query: matches the source + * name, object, record id, submitter, and the payload snapshot (which + * carries record titles), case behavior per the underlying driver. + */ + q?: string; + /** + * Page window. Honoured as an engine-level window when the filter is + * fully pushable; an `approverId` / status-array filter still + * post-filters in memory (bounded personal queues), where the window + * is applied after filtering. + */ + limit?: number; + offset?: number; + } | undefined, context: ExecutionContext): Promise; + /** + * Total rows matching a {@link listRequests} filter (ignoring + * `limit`/`offset`) — the pagination companion. + */ + countRequests(filter: Parameters[0], context: ExecutionContext): Promise; + getRequest(requestId: string, context: ExecutionContext): Promise; + /** + * Record a decision on a node-driven request. Honours the node's + * `unanimous` behaviour, finalises the request when satisfied, and resumes + * the owning flow run down the matching `approve` / `reject` edge. + */ + decide(requestId: string, input: ApprovalDecisionInput, context: ExecutionContext): Promise; + /** + * Withdraw a request that has not been decided. Finalises it as `recalled` + * and resumes the owning flow run down the `reject` branch with + * `output.decision = 'recall'`. + * + * Who may recall is scoped BY STATUS, and the two sets are not the same — + * the ADR-0044 widening below is the submitter's alone, never a widening of + * who may act: + * + * - `pending` — the submitter, a system context, or a #3424 override actor + * (the stuck-request recovery path: the same privilege carried by + * {@link ApprovalRequestRow}'s `viewer.can_override`, and scoped to + * `pending` for the same reason). + * - `returned` (ADR-0044) — the submitter ALONE, and only on the LATEST + * `returned` request of its (run, node): they abandon the revision window + * instead of resubmitting, the request flips `returned → recalled`, and + * the run resumes down `reject` the same way. Neither the override nor the + * system arm reaches a `returned` request (#12775); an override actor is + * refused there exactly as any other non-submitter. + */ + recall(requestId: string, input: ApprovalRecallInput, context: ExecutionContext): Promise; + /** + * ADR-0044 send back for revision. Finalises the pending request as + * `returned` and resumes the owning flow run down its `revise` edge to a + * wait point (record unlocks; the submitter reworks the data and + * {@link resubmit}s). Requires the approval node to declare a `revise` + * out-edge; past the node's `maxRevisions` budget the request auto-rejects + * instead. Audited as `revise`. + */ + sendBack(requestId: string, input: ApprovalSendBackInput, context: ExecutionContext): Promise; + /** + * ADR-0044 resubmit after rework. Valid on the LATEST `returned` request of + * its (run, node), submitter-only. Resumes the suspended run from the wait + * point; traversal re-enters the approval node via the declared back-edge + * and opens the next round's request (fresh approver slate, record + * re-locks). Audited as `resubmit` on the returned request. + */ + resubmit(requestId: string, input: ApprovalResubmitInput, context: ExecutionContext): Promise; + /** + * Hand a pending-approver slot to someone else. The actor must currently + * be a pending approver (or system); `from` defaults to the actor's own + * matching identity. Audits a `reassign` action and notifies the new + * approver when a messaging service is attached. + */ + reassign(requestId: string, input: { + actorId: string; + to: string; + from?: string; + comment?: string; + }, context: ExecutionContext): Promise<{ + request: ApprovalRequestRow; + }>; + /** + * Submitter nudge: notify every pending approver. Throttled — repeat + * reminders inside the cool-down window are rejected (`THROTTLED`). + * Audits a `remind` action. + */ + remind(requestId: string, input: { + actorId: string; + comment?: string; + }, context: ExecutionContext): Promise<{ + request: ApprovalRequestRow; + notified: number; + }>; + /** + * Approver asks the submitter for more information. The request STAYS + * pending (no flow movement) — this is a thread interaction, audited as + * `request_info`, with the submitter notified when messaging is attached. + */ + requestInfo(requestId: string, input: { + actorId: string; + comment: string; + }, context: ExecutionContext): Promise<{ + request: ApprovalRequestRow; + }>; + /** + * Free-form reply on the request thread (submitter or any pending + * approver). Audited as `comment`. + */ + comment(requestId: string, input: { + actorId: string; + comment: string; + }, context: ExecutionContext): Promise<{ + request: ApprovalRequestRow; + }>; + /** Audit trail for a request. */ + listActions(requestId: string, context: ExecutionContext): Promise; + /** + * **Operator verb — re-issue the continuation for a run an operator has + * re-armed** (#15389; the maintainer ruling of 2026-09-09, decision batch + * #106 item 3, declared here exactly as #16495 declared + * `IAutomationService.cancelRun` / `restoreConsumedSuspension`). + * + * The missing half of `IAutomationService.restoreConsumedSuspension`, for + * approvals. That verb re-arms the pause a failed resume consumed and, by + * its own contract, deliberately does NOT replay the resume signal — the + * continuation must be re-issued. For an `approval` suspension there was + * then nobody who could: {@link decide}, {@link recall}, {@link sendBack} + * and {@link resubmit} each guard on a LIVE request — `pending` for + * {@link decide} and {@link sendBack}, `returned` for {@link resubmit}, + * and `pending` or the revise window for {@link recall} — and the stranding + * call left the row where none of them can issue the continuation it owes. + * ⚠️ Not because the row is never `returned`: a stranded send-back leaves + * it exactly there, and {@link resubmit} is still no way back — it is + * submitter-only, and it owes the `resubmit` edge where the stranded + * continuation was the `revise` one. Meanwhile a generic engine resume is + * refused at a node declaring `resumeAuthority: 'service'`. The only verb + * left was cancel, which discards the branch's downstream work. This is the + * issuer that exits that dead end. + * + * What it does, exactly, and what it does not: + * - it replays the outcome the request ALREADY recorded onto the pause that + * was put back, and replays nothing else; + * - ⛔ it does not re-open, re-decide or rewrite the request row — no + * status, no mirror field and no audit row is written, and a decided + * request still cannot be decided again through the front door; + * - ⛔ it does not relax the node's `resumeAuthority: 'service'`: the resume + * is the implementation's own, through the same single call site that + * stamps that marker; + * - it never answers a silent `false` — a resume that fails again throws + * the same `RESUME_FAILED` envelope the original decision did, + * `repairable` and all, so a second restore-and-continue is possible. + * + * **Why it takes no {@link ExecutionContext}** — deliberately shaped like + * the engine verb it completes. The decision it replays was authorized and + * recorded when it was made; re-authorizing it here against a present-day + * actor would be a different and wrong question, because the original + * approver may be long gone. `requestedBy` / `reason` ride the + * implementation's log for the reason they do on the restore: an operator + * repair records who asked, and why. + * + * **No door is declared here, and none is ruled** — the 2026-09-09 ruling + * refused a REST/CLI route for this verb. It is an in-process operator + * repair, reachable from a host or a console script; a route for it is a new + * card, never a widening at a call site. + * + * **Optional, deliberately** — for the reason `cancelRun` and + * `restoreConsumedSuspension` are. Re-issuing a consumed continuation is a + * capability of an approvals implementation that can identify the pause it + * was refused on; a service that does not declare this member has NO + * operator door for it, and a door MUST probe for presence and refuse + * fail-closed when it is absent — never answer success for a verb it could + * not dispatch, because promising a repair verb that will refuse is worse + * than promising nothing. + * + * @param requestId - The terminal request whose recorded outcome is to be + * re-issued; the run is the one that request has always named + * @param options.requestedBy - Who asked; logged + * @param options.reason - Why; logged the same way + * @returns what was replayed, and whether the run moved + */ + continueRestoredRun?(requestId: string, options?: { + requestedBy?: string; + reason?: string; + }): Promise<{ + /** True when the restored pause was consumed and the flow moved on. */ + resumed: boolean; + /** The run this continued — the one the request has always named. */ + runId: string; + /** + * The outcome that was replayed, exactly as it was first recorded. + * Free-form by design, as it is on `StrandedDecisionDetails`: the + * vocabulary belongs to the producing service, not to this contract. + */ + decision: string; + /** The edge it walked, when the replayed signal names one. */ + branchLabel?: string; + /** + * Whether the replayed signal was the literal one the failing door sent + * (`journal`), or was rebuilt from the row's recorded outcome + * (`reconstructed`) — so a caller can tell an EXACT replay from an + * inferred one before it trusts what moved. + * + * ⚠️ Enumerated here, unlike `restoreConsumedSuspension`'s `refusal` + * (#16495 route (i)), and the difference is the point: that one is the + * implementation's own open refusal vocabulary, which this contract would + * have to keep in step with; this is a closed, binary property of the + * replay itself and the caller's branch point. A third provenance is a + * spec card, never a widening at a call site. + */ + source: 'journal' | 'reconstructed'; + /** Set only on the tolerated non-failure: a concurrent resume already had it. */ + resumeError?: string; + }>; +} + +// ── IAuthService (interface) ── +interface IAuthService { + /** + * Handle an incoming HTTP authentication request + * @param request - Standard Request object + * @returns Standard Response object + */ + handleRequest(request: Request): Promise; + /** + * Verify a session token or cookie and return the user + * @param token - Bearer token or session identifier + * @returns Auth result with user and session if valid + */ + verify(token: string): Promise; + /** + * Invalidate a session (logout) + * @param sessionId - Session identifier to invalidate + */ + logout?(sessionId: string): Promise; + /** + * Get the current user from a request + * @param request - Standard Request object + * @returns Authenticated user or undefined + */ + getCurrentUser?(request: Request): Promise; + /** + * The MCP resource identifier (RFC 8707 `resource` / token `aud`) — + * `/mcp`. + * + * [#4127] Declared because `/mcp` already called it. The dispatcher's skill + * route needs the canonical value the auth service derives from its own + * `basePath`, precisely so the two cannot disagree about the API prefix; + * its own comment says "the auth service owns the canonical value". It was + * reached through `const authService: any` + `?.()`, which made the call + * invisible to the type system AND accidentally safe — an absent method + * returned `undefined` and the route silently fell back to deriving a URL + * from the request host, so a real disagreement would have looked like + * normal operation. + * + * @returns The absolute MCP resource URL + */ + getMcpResourceUrl?(): string; + /** + * Absolute URL of the RFC 9728 protected-resource metadata document, + * advertised in `WWW-Authenticate` on 401s from the MCP endpoint so clients + * can bootstrap the OAuth flow. `null` when the OAuth track is off for this + * deployment (the embedded AS disabled, or the origin fails the OAuth 2.1 + * transport rule) — API keys remain and nothing is advertised, fail-closed. + * + * [#4127] Same story as {@link getMcpResourceUrl}: called by `/mcp`, + * implemented by the auth manager, declared by nobody. + * + * @returns The metadata URL, or `null` when the OAuth track is off + */ + getMcpResourceMetadataUrl?(): string | null; + /** + * The underlying session API, when the provider mounts it DIRECTLY on + * itself (the legacy shape). Prefer {@link getApi} — the shipped + * `plugin-auth` registers an `AuthManager`, which has no `api` member at + * all, so a caller that reads only this one gets `undefined` on every + * current deployment. + * + * [#4127 batch 4] Declared because reading it without the `getApi()` + * fallback silently disabled the project-membership gate: the read yielded + * `undefined`, the caller treated that as "anonymous", and + * `sys_environment_member` was never queried. Both shapes are on the + * contract now so the two-step read is a checked expression rather than a + * pair of guesses. + */ + api?: AuthSessionApi; + /** + * Resolve the session API, creating the underlying auth instance on first + * use (the lazy-plugin shape `AuthManager` implements). This is the + * accessor callers should reach for; {@link api} is its legacy twin. + */ + getApi?(): Promise; + /** + * Whether the deployment's auth gate is live, i.e. whether unauthenticated + * requests should be challenged at all. Synchronous and cheap by contract — + * the implementation keeps a TTL-refreshed snapshot precisely so every + * request can ask. + * + * [#4127 batch 4] Implemented by `AuthManager` and probed identically by + * the dispatcher and `packages/rest` — two independent callers agreeing on + * a member the contract never mentioned. + */ + isAuthGateActive?(): boolean; + /** + * Verify an OAuth 2.1 access token issued by this deployment's embedded + * authorization server, for the MCP surface (#2698). Resolves to the + * token's principal, or a falsy value when the token is + * unknown/expired/revoked or carries the wrong audience — callers fail + * CLOSED on anything but a verified result. + * + * [#4127 batch 4] Implemented by `AuthManager`; the execution-context + * resolver has always called it through `any`. + */ + verifyMcpAccessToken?(token: string): Promise<{ + userId: string; + scopes: string[]; + clientId?: string; + } | undefined>; +} + +// ── IAutomationService (interface) ── +interface IAutomationService { + /** + * Execute a named flow or script + * @param flowName - Flow/script identifier (snake_case) + * @param context - Execution context with trigger data + * @returns Automation result + */ + execute(flowName: string, context?: AutomationContext): Promise; + /** + * List all registered automation flows + * @returns Array of flow names + */ + listFlows(): Promise; + /** + * Register a flow definition. + * + * Returns the canonicalized, PARSED flow it stored — `FlowSchema.parse` + * output with schema defaults materialized, the same object a subsequent + * {@link getFlow} answers. This is what the `/automation` write doors + * relay to the caller (#12206, Option A): the caller learns what the + * engine actually stored, not an echo of its own request bytes. + * + * @param name - Flow name (snake_case) + * @param definition - Flow definition object (raw, pre-parse) + * @returns The canonicalized parsed flow as stored + */ + registerFlow?(name: string, definition: unknown): FlowParsed; + /** + * Canonicalize a flow definition WITHOUT registering it (#4454). + * + * The same ADR-0087 conversion policy {@link registerFlow} applies, exposed + * for a caller that needs a flow's canonical shape but must not arm it — + * `os migrate meta --stored` rewriting stored `sys_metadata` rows is the + * reason this is on the contract rather than only on the implementation. + * + * Only an implementation holding the live executor registry can offer this: + * flow-node conversions carry ADR-0078's open-namespace conflict guard, and + * deciding a rename from a clobber requires knowing which node types are + * actually owned here. Hence optional — a caller falls back to leaving flow + * rows alone rather than guessing. + * + * @param name - Flow name (snake_case), used for diagnostics + * @param definition - The stored/authored flow body + * @returns `parsed` (execution shape — schema defaults materialized) and + * `storable` (persistence shape — conversions plus the schema's + * `condition` envelopes, deliberately WITHOUT schema defaults, so a + * written-back row is not frozen on today's default values), plus the + * conversions applied and any rewrite the guard refused. + * @throws when the definition cannot be canonicalized at all (a strict-schema + * violation, a malformed control-flow region) — such a flow cannot be + * registered either, so a caller reports it rather than persisting a guess. + */ + canonicalizeStoredFlow?(name: string, definition: unknown): { + parsed: FlowParsed; + storable: unknown; + notices: ConversionNotice[]; + conflicts: ConversionConflictNotice[]; + }; + /** + * Unregister a flow by name + * @param name - Flow name (snake_case) + */ + unregisterFlow?(name: string): void; + /** + * Get a flow definition by name + * @param name - Flow name (snake_case) + * @returns Flow definition or null if not found + */ + getFlow?(name: string): Promise; + /** + * Enable or disable a flow + * @param name - Flow name (snake_case) + * @param enabled - Whether to enable (true) or disable (false) + */ + toggleFlow?(name: string, enabled: boolean): Promise; + /** + * List execution runs for a flow + * + * `status` is the wire's declared filter (`ListRunsRequestSchema`) reaching + * the implementation at last: it was declared on `GET /:name/runs`, had no + * slot here, and was therefore dropped at the HTTP boundary — so + * `?status=failed` answered 200 with EVERY run of the flow (#7359). An + * implementation that accepts the option must narrow by it across every + * store it merges; a filter that sees only half the rows is the same class + * of confident wrong answer as not filtering at all. + * + * @param flowName - Flow name (snake_case) + * @param options - Filter and pagination options + * @returns Array of execution logs + */ + listRuns?(flowName: string, options?: { + limit?: number; + cursor?: string; + status?: ExecutionStatus; + }): Promise; + /** + * Get a single execution run by ID + * @param runId - Execution run ID + * @returns Execution log or null if not found + */ + getRun?(runId: string): Promise; + /** + * Get the action descriptors published by registered node executors + * (ADR-0018). Backs flow validation and the designer palette. Plugins + * that register an executor with a descriptor extend this set, so the + * automation engine's node/action vocabulary is open and marketplace- + * extensible rather than a closed enum. + * @returns Array of registered action descriptors + */ + getActionDescriptors?(): ActionDescriptor[]; + /** + * The connector registry, as designer-facing descriptors (ADR-0022). + * + * [#4127] Declared because `GET /automation/connectors` already called it — + * the sibling of {@link getActionDescriptors}, which the contract HAS + * declared since ADR-0018, serving the same designer with the other half of + * the `connector_action` node's pickers (node type ← actions, connector / + * action / input ← this). Undeclared, the route had to probe for the method + * and then re-type its own result as `any` to filter on `type`. + * + * Optional for the same reason `getActionDescriptors` is: a connector + * registry is a capability of the flow-engine implementation, not of every + * automation slot — a script-runner implementation of this contract has no + * connectors to describe, and answers an empty registry rather than 404. + * + * @returns One entry per registered connector; empty when none are registered + */ + getConnectorDescriptors?(): ConnectorDescriptor[]; + /** + * Per-flow deployment + binding state, for operator surfaces. + * + * [#4127] Declared because the dispatcher's `GET /automation/_status` + * already called it (as did the CLI boot summary and the + * `kernel:bootstrapped` audit), while the contract stopped at + * {@link listFlows} — a bare `string[]` that cannot say whether a flow is + * enabled, or bound to a trigger, or why it is not. + * + * `bound: false` is the answer the operator surfaces exist for: a flow with + * no trigger (manually-invoked / screen flows) or whose declared trigger + * type has no registered trigger. `triggerType` / `object` expose the + * declared binding so the caller can say WHY, rather than only that. + * + * @returns One entry per registered flow + */ + getFlowRuntimeStates?(): FlowRuntimeState[]; + /** + * Resume a run that suspended at a pausing node (ADR-0019). The run must + * have previously returned `{ status: 'paused', runId }` from + * {@link execute} (or a prior `resume`). Continues traversal from the + * suspended node's out-edges, applying `signal.output` / `signal.branchLabel`. + * + * **Gated by the suspended node (#3801).** When the run is parked on a node + * whose descriptor declares `resumeAuthority: 'service'`, only that node's + * owning service may continue it — the call is refused with + * `{ success: false, code: 'PERMISSION_DENIED' }` unless `signal` carries + * {@link RESUME_AUTHORITY_SERVICE}. The gate follows a subflow pause down + * to the child the signal would actually land on, so a parent parked on a + * `subflow` node is no way around it. + * + * **A node type that declares NO `resumeAuthority` is gated identically** + * (#5561): the generic route is an opt-in a descriptor declares with + * `'any'`, not a default it inherits. The refusal names the omission and + * the one-line declaration that lifts it, so this is recoverable by the + * plugin author rather than only by the platform. + * + * @param runId - The paused run's id + * @param signal - Optional output to merge and/or branch label to follow + * @returns The result of continuing the run (may itself be `'paused'` again) + */ + resume?(runId: string, signal?: ResumeSignal): Promise; + /** + * List the currently suspended (paused) runs awaiting a resume — id, the + * flow, the node they paused at, and any correlation key the pausing node + * attached. Backs operability (e.g. a "pending approvals" view). + */ + listSuspendedRuns?(): Array<{ + runId: string; + flowName: string; + nodeId: string; + correlation?: string; + }>; + /** + * The screen a paused run is currently awaiting (screen-flow runtime), or + * `null` if the run isn't suspended at a `screen` node. Lets a UI flow-runner + * re-fetch the form (e.g. after a page refresh, or on another device). + * + * **Durable, like {@link resume} (#4515).** The answer covers any run that + * is genuinely suspended, not just the ones this process paused: the + * in-memory hot cache is the fast path, and a miss falls back to the + * suspended-run store the same way `resume` rehydrates. So a screen run + * that survives a restart re-fetches its screen exactly as it resumes — + * the rendering half of ADR-0019's durable-suspend promise. Async for that + * reason; a synchronous reading of this method can only ever answer for the + * current process lifetime. + * + * A run that does not exist, is no longer suspended, or paused at a + * non-screen node still resolves to `null`. + */ + getSuspendedScreen?(runId: string): Promise; + /** + * **Operator verb — end a suspended run** (ADR-0044's run-cancel + * primitive; the #13953 ruling A, contract half, #16495). + * + * Consumes the run's continuation and records a terminal `cancelled` run + * log, so it stops surfacing as resumable; `reason` lands on that terminal + * record's `error`. Answers `true` when it cancelled a suspended run, and + * `false` when no suspended run exists under the id — it is already + * terminal, or unknown — which callers treat as idempotent success. `true` + * is NOT exclusive to this call — this contract carries no cancel-side + * exclusivity guarantee, so two cancels of one run overlapping in time can + * each answer `true` (and each record the terminal log): a caller may not + * read `true` as sole authorship, nor use it as an idempotency token for a + * once-only side effect. ⚠️ A durable store the implementation could not + * READ also answers `false`: the two are indistinguishable to the caller + * and the run may still be parked, which is why an implementation reports + * that path at `error` — nothing above it can tell the difference. + * + * **The persistent face (the #13953 ruling, maintainer 2026-09-05):** + * "listing and acting go through `sys_automation_run` (the persistent + * face), never engine memory". The run this verb acts on is the one the + * durable `sys_automation_run` row knows under `runId`: an implementation + * reads the store-authoritative suspended row, not a per-process snapshot, + * so the verb answers the same way on every replica — and a door lists + * the candidates it offers an operator from `sys_automation_run` rows, + * never from one process's in-memory journal (a confident zero from the + * wrong process is exactly the failure #13909 exists to name). + * + * **Who may call it (same ruling):** a platform-operator verb "gated on + * the existing `platform_admin` position (no new permission type, no + * per-run ownership — a run belongs to the environment, not a user)". + * That gate is the door's (the REST route of #13953's services half), not + * this method's: an in-process owner — plugin-approvals' revise-window + * recall (ADR-0044) — cancels on behalf of a decision it already + * authorized and recorded. + * + * **Optional, deliberately.** Cancelling a suspension is a capability of + * the flow-engine implementation, exactly like {@link resume} and + * {@link listSuspendedRuns}; a script-runner slot never suspends and has + * nothing to cancel. A service that does not declare this member has NO + * operator door for it: a door MUST probe for presence and refuse + * fail-closed when it is absent — never answer success for a verb it + * could not dispatch (#13909's posture: no door that returns success to + * hide the condition). + * + * @param runId - The suspended run's id (its `sys_automation_run` row) + * @param reason - Why, in the operator's words; recorded on the terminal + * `cancelled` log as its `error`. The signature follows the engine, not + * the ruling's `cancelRun(runId)` shorthand: a door calling through + * this contract must be able to say why. + * @returns `true` when this call cancelled a suspended run; `false` when + * none exists under the id (idempotent) — or when the store could not + * be read, see above + */ + cancelRun?(runId: string, reason?: string): Promise; + /** + * **Operator verb — the exit from a run a resume left terminally + * unresumable** (#13909; the #13953 ruling A, contract half, #16495). + * Puts back the suspension a failed resume consumed, so the run is + * resumable again. + * + * The state it exits from is `AutomationResult.status: 'stranded'` + * (#13937 shape 4): a resume CONSUMED the suspension, a downstream node + * threw, and the run is recorded as failed — {@link resume} answers + * `RUN_NOT_FOUND` on it, {@link cancelRun} is a no-op on it, and nothing + * moves it automatically. This is the explicit operator verb that + * `'stranded'` names. There is no retry, no sweeper, no self-healing arm: + * an operator (or an admin door standing in for one) asks for THIS run, + * by id, on purpose. + * + * What it does, exactly, and what it does not: + * - the pause goes back VERBATIM — its own variables, step log, node, + * screen — and nothing else; ⚠️ the resume signal is NOT replayed (the + * continuation must be re-issued through {@link resume}, through the + * same authority gate as any other), and ⚠️ the failed attempt is NOT + * undone — this re-arms a pause, it does not roll a transaction back; + * - it does not resume: it re-arms the pause and stops; + * - it is idempotent by construction: a suspension is keyed by run id, + * so a second restore finds one live and is refused (`RUN_SUSPENDED`), + * across processes and across a restart; + * - it never throws: every outcome, an unreadable store included, is the + * result below naming what was observed. + * + * **The persistent face (the #13953 ruling, maintainer 2026-09-05):** + * "listing and acting go through `sys_automation_run` (the persistent + * face), never engine memory". The consumed suspension this verb puts + * back is the snapshot the run's terminal `sys_automation_run` row carries + * (#13937 reads that row and a process's hot copy as two witnesses of one + * strand: the row is the record every replica can read, and a hot copy is + * honoured only for the same pause the row describes, or where there is + * no row to ask). And the list of runs an operator may repair is a QUERY + * over `sys_automation_run` terminal rows carrying a restorable snapshot, + * never a read of engine memory — a lister backed by one process's + * journal answers ZERO in every process that did not itself strand the + * run, and a confident zero is the failure this whole class is about. + * ⛔ This contract declares no lister; #13953's services half owns the + * door. + * + * **Who may call it (same ruling):** a platform-operator verb "gated on + * the existing `platform_admin` position (no new permission type, no + * per-run ownership — a run belongs to the environment, not a user)". + * That gate is the door's, not this method's. Re-arming a run the + * platform recorded as terminally failed is a real decision, which is why + * "who asked, and why" is part of the signature rather than the ruling's + * `restoreConsumedSuspension(runId)` shorthand: the implementation's + * trace records both, and writes `not recorded` when `requestedBy` is + * absent — itself something an operator can find later. + * + * **Optional, deliberately** — for the reason {@link cancelRun} is: a + * service that does not declare this member has NO operator door for it, + * and a door MUST probe for presence and refuse fail-closed when it is + * absent, never answer a restore it could not dispatch. + * + * **The result is deliberately NARROWER than the implementation's.** The + * engine answers its own wider `SuspensionRestoreResult` — a closed + * eight-member refusal vocabulary plus the restored run's flow, node and + * consumption time. That type lives with the engine and is not moved + * here (#16495, route (i)): `refusal` is typed as the string the + * implementation answers, not as an enumeration this contract would have + * to keep in step, and the wider type satisfies this one under + * `implements`. What a door needs is here — `restored`, the `runId` + * echoed, the refusal code and its one-sentence `reason`. A second + * consumer that needs the vocabulary itself is a spec card, never a + * widening at a call site. + * + * @param runId - The run to re-arm (its `sys_automation_run` row) + * @param options.requestedBy - Who asked; logged, `not recorded` when + * absent + * @param options.reason - Why; logged the same way + * @returns `restored: true` only when a suspension was actually put back + * by THIS call, and then `refusal` is absent; otherwise + * `restored: false` with `refusal` naming the code the implementation + * observed. `reason` is always present, both ways — one sentence naming + * what was observed, so an operator whose repair is refused can tell + * "this run is fine" from "this run is beyond this verb" from "I could + * not read the store". + */ + restoreConsumedSuspension?(runId: string, options?: { + requestedBy?: string; + reason?: string; + }): Promise<{ + /** `true` only when a suspension was actually put back by THIS call. */ + restored: boolean; + /** The run id, echoed. */ + runId: string; + /** + * The refusal code the implementation observed (its own closed + * vocabulary — see above); absent exactly when `restored` is `true`. + */ + refusal?: string; + /** One sentence naming what was observed — always present, both ways. */ + reason: string; + }>; + /** + * **The READ-ONLY half of the operator exit** (#15358; ruled B′, + * 2026-09-07): would {@link restoreConsumedSuspension} have a consumed + * suspension to put back for this run? It re-arms nothing, moves nothing + * and records nothing — asking is free, and asking twice answers twice. + * + * It is read from the SAME witnesses the restore verb reads, which is the + * whole reason a door may act on it: what this member calls repairable IS + * what that verb restores. ⚠️ It judges what SURVIVES, never whether + * re-arming would be safe at this instant — the restore verb keeps its own + * pre-flight. + * + * **Why a door needs it, and no status stamp will do.** The resume door's + * `400 FLOW_FAILED` details carry `repairable` + * (`ResumeFailureDetailsSchema`, `api/automation-api.zod.ts`). On the exit + * that consumed its OWN pause and then threw, `AutomationResult.status` is + * `'stranded'` and that word answers the question by itself. On the subflow + * DELEGATION exit it cannot: a caller resumes the PARENT, the signal is + * forwarded down, the child strands, and the parent frame answers with no + * `status` at all — deliberately, because nothing re-arms an ancestor by + * resuming it and stamping `'stranded'` there would send an operator to + * retry a recovery that cannot succeed. Since #15222 that parent's consumed + * pause IS journalled and the restore verb re-arms the whole chain as one + * unit, so the run is repairable while carrying no word that says so. The + * door asks THIS member for those exits instead of inferring an answer + * from the absence of a stamp. + * + * ⛔ **Asked per run; never inferred from a run's position in a subflow + * tree.** A cascade-failed ancestor is journalled exactly when the + * descendant whose failure consumed its pause is itself repairable, so + * "is an ancestor" predicts nothing. + * + * **The result is deliberately NARROWER than the implementation's**, for + * the reason {@link restoreConsumedSuspension}'s is (#16495, route (i)): + * the engine answers its own wider type — the pause a restore would + * re-arm, which of the two witnesses answered, when the suspension was + * consumed, and a closed refusal vocabulary whose members a consumer that + * branches on `repairable` alone reads wrong in both directions. That type + * lives with the engine and is not moved here; `reason` is typed as the + * string the implementation answers, not as an enumeration this contract + * would have to keep in step, and the wider type satisfies this one under + * `implements`. A consumer that needs the vocabulary itself is a spec + * card, never a widening at a call site. + * + * **Optional, deliberately**, and its absence is FAIL-CLOSED for a door: + * a service that does not declare this member cannot be asked, and a door + * that cannot ask answers `repairable: false` — ⛔ never `true`, because + * promising a repair verb that will refuse is worse than promising + * nothing, and ⛔ never by dropping the member, which would be + * indistinguishable from a server that predates the field. Absence of the + * discriminator is not evidence of anything. + * + * @param runId - The run to ask about (its `sys_automation_run` row) + * @returns `repairable: true` when a consumed-suspension snapshot is held + * for the run and the restore verb would put it back; otherwise + * `repairable: false` with `reason` naming what the implementation + * observed. `runId` is echoed both ways. + * @throws when a store cannot be read. An unreadable store is UNKNOWN, + * ⛔ not "nothing to restore" — a verdict that turned an outage into an + * absence would send an operator to give up on a run that is repairable. + * A door that must still answer treats the rejection the way it treats + * absence, fail-closed, and says so where it does it. + */ + inspectConsumedSuspension?(runId: string): Promise<{ + /** + * `true` exactly when a consumed suspension survives for this run and + * {@link restoreConsumedSuspension} would put it back. + */ + repairable: boolean; + /** The run id, echoed. */ + runId: string; + /** + * What the implementation observed when it answers `false` (its own + * closed vocabulary — see above); absent on the `true` arm. + */ + reason?: string; + }>; +} + +// ── IBasicServiceRegistry (interface) ── +interface IBasicServiceRegistry extends IServiceRegistry { +} + +// ── IBusinessUnitGraphService (interface) ── +interface IBusinessUnitGraphService { + /** Return all descendant business unit ids (BFS, includes the seed). */ + descendants(businessUnitId: string): Promise; + /** Return all user ids in `businessUnitId` or any descendant business unit. */ + expandUsers(businessUnitId: string): Promise; + /** Return the department head (manager_user_id) — best-effort, null when none. */ + headOf(businessUnitId: string): Promise; + /** Return the manager id for a user — proxy to {@link ITeamGraphService.managerOf}. */ + managerOf(userId: string, organizationId?: string): Promise; +} + +// ── ICacheService (interface) ── +interface ICacheService { + /** + * Get a cached value by key + * @param key - Cache key + * @returns The cached value, or undefined if not found + */ + get(key: string): Promise; + /** + * Set a value in the cache + * @param key - Cache key + * @param value - Value to cache + * @param ttl - Optional time-to-live in seconds + */ + set(key: string, value: T, ttl?: number): Promise; + /** + * Delete a cached value by key + * @param key - Cache key + * @returns True if the key was deleted, false if it did not exist + */ + delete(key: string): Promise; + /** + * Check if a key exists in the cache + * @param key - Cache key + * @returns True if the key exists + */ + has(key: string): Promise; + /** + * Clear all entries from the cache + */ + clear(): Promise; + /** + * Get cache statistics + * @returns Cache stats including hits, misses, and key count + */ + stats(): Promise; +} + +// ── IClusterService (interface) ── +interface IClusterService { + /** Stable identifier of this node within the cluster. */ + readonly nodeId: string; + /** Driver name in use ('memory' | 'redis' | 'custom', or a runtime-registered driver name). */ + readonly driver: string; + readonly pubsub: IPubSub; + readonly lock: ILock; + readonly kv: IKV; + readonly counter: ICounter; + /** + * Tear down every primitive in reverse order of construction. + * Safe to call multiple times. + */ + close(): Promise; +} + +// ── ICounter (interface) ── +interface ICounter { + /** Increment and return the new value. */ + incr(key: string, opts?: CounterIncrOptions): Promise; + /** Read without mutating; returns 0n if the key has never been incremented. */ + peek(key: string): Promise; + /** Reset to a given value. Use sparingly — breaks monotonicity guarantees. */ + reset(key: string, value?: bigint): Promise; + close(): Promise; +} + +// ── ICryptoProvider (interface) ── +interface ICryptoProvider { + /** + * Encrypt plaintext and return a handle. The caller persists it as a + * `sys_secret` row and references it from wherever its producer keeps + * the reference (see "Producers" on {@link ICryptoProvider}). + */ + encrypt(plain: string, ctx: CryptoContext): Promise; + /** + * Decrypt a handle previously returned by `encrypt`. Throws when the + * ciphertext is invalid for the given context (AAD mismatch, missing + * KMS key, expired version, etc.). + */ + decrypt(handle: CryptoHandle, ctx: CryptoContext): Promise; + /** + * Re-wrap the plaintext under the provider's current KMS key. + * The returned handle replaces the input handle in `sys_secret`. + * Implementations SHOULD bump `version` and update `kmsKeyId` while + * leaving `id` stable, so no producer's stored reference to the handle + * has to be rewritten. + */ + rotateKey(handle: CryptoHandle, ctx: CryptoContext): Promise; + /** + * Stable hex digest of `plain` used for audit logging. SHOULD NOT + * reveal the plaintext (use HMAC or SHA-256 of canonical JSON). + * Same hash for same input enables operators to detect duplicate + * writes without exposing secrets. + */ + digest(plain: string): string; +} + +// ── IDataDriver (interface) ── +interface IDataDriver { + /** Driver unique name (e.g., 'postgresql', 'mongodb', 'rest_api') */ + readonly name: string; + /** Driver version */ + readonly version: string; + /** Capabilities descriptor */ + readonly supports: DriverCapabilities; + /** Initialize connection pool or authenticate */ + connect(): Promise; + /** Close connections and cleanup resources */ + disconnect(): Promise; + /** Check connection health */ + checkHealth(): Promise; + /** Get connection pool statistics (optional) */ + getPoolStats?(): { + total: number; + idle: number; + active: number; + waiting: number; + } | undefined; + /** + * Execute a raw command/query native to the driver. + * + * @param command - Raw command (SQL string, shell command, or API payload) + * @param parameters - Bound parameters for safe execution + * @param options - Driver options (transaction context, timeout) + * @returns Raw result from the driver + */ + execute(command: unknown, parameters?: unknown[], options?: DriverOptions): Promise; + /** + * Find multiple records matching the structured query. + * MUST return `id` as string. MUST NOT return implementation details like `_id`. + * + * **Paged reads MUST be deterministic.** Whenever `limit`/`offset` are used + * to walk the result set, the driver MUST produce a total order — reading + * page after page visits every matching row exactly once. The obligation + * covers a paged read whatever its `orderBy`, including none at all, and it + * holds across the whole walk rather than within one response. + * + * Two shapes break it, and they are the same defect at different strengths: + * + * - **A sort key that does not identify a row** (`orderBy: status`). No + * backend promises rows with equal keys keep the same relative arrangement + * between two queries — on MongoDB, `sort` + `skip`/`limit` on a non-unique + * key may return one document twice and never return another. + * - **No `orderBy` at all**, which is the degenerate case of the first: every + * row ties with every other, so the *entire* page boundary is arbitrary. + * SQL leaves row order to the plan, and MongoDB's natural order moves when + * a document does. + * + * Drivers close both by ordering on a unique column of their own — appended + * to a requested `orderBy`, or standing alone when there is none. Which + * column, and whether the table has one at all, is the driver's knowledge, + * which is why the obligation sits here and not in the query engine. A driver + * that cannot name one is not free to reshuffle: it must return rows in an + * order its own storage holds steady between reads (`driver-memory`), or the + * guarantee is simply unavailable on that table and the driver says so. + * + * The failure this rules out is invisible in any single response: every page + * is full, every row is real and belongs, and the duplicate sits several + * screens away from the omission. Checked by the shared `PAGINATION_CASES` + * and `PAGINATION_UNORDERED_CASES` fixtures + * (`data/pagination-conformance.ts`) — a driver ships with those cases + * running against it. + * + * Deliberately NOT covered: an **unpaged** read with no `orderBy`. Nothing is + * being sliced, so no caller can be shown a partial view of the set, and + * imposing an order there would change plan selection for the majority of + * reads to buy nothing (objectstack#4363). + */ + find(object: string, query: DriverQuery, options?: DriverOptions): Promise[]>; + /** + * Find a single record by query. + * MUST return `id` as string. MUST NOT return implementation details like `_id`. + * + * The paged-read guarantee on {@link find} does **not** extend here, and the + * distinction is deliberate rather than an oversight. This method promises + * *a* matching record, never a position in a sequence, so there is no + * partition for a second call to be inconsistent with. Engines reach a driver + * with `limit: 1`, which is shaped exactly like page one of a walk — and a + * driver that read it that way would impose an ORDER BY on the single hottest + * read in the system, for which `ORDER BY LIMIT 1` is the classic shape + * that makes a planner abandon the predicate's own index. A driver that wants + * a deterministic single-row read should be handed an `orderBy`, which is a + * thing the caller can express (objectstack#4363). + */ + findOne(object: string, query: DriverQuery, options?: DriverOptions): Promise | null>; + /** + * Create a new record. + * MUST return `id` as string. MUST NOT return implementation details like `_id`. + */ + create(object: string, data: Record, options?: DriverOptions): Promise>; + /** + * Update an existing record by ID. + * MUST return `id` as string. MUST NOT return implementation details like `_id`. + * @returns The updated record, or `null` if no record with that id exists — + * the same "addressed one row, which may not exist" shape as {@link findOne}, + * and the not-found vocabulary {@link delete} already carries (`false`). A + * driver configured to throw on missing records (`strictMode`) throws + * instead of returning `null`. + */ + update(object: string, id: string | number, data: Record, options?: DriverOptions): Promise | null>; + /** + * Upsert (Update or Insert) a record. + */ + upsert(object: string, data: Record, conflictKeys?: string[], options?: DriverOptions): Promise>; + /** + * Delete a record by ID. + * @returns True if deleted, false if not found. + */ + delete(object: string, id: string | number, options?: DriverOptions): Promise; + /** + * Count records matching a query. + */ + count(object: string, query?: DriverQuery, options?: DriverOptions): Promise; + /** + * Native aggregation pushdown: execute `query.groupBy` / `query.aggregations` + * inside the store and return the ALREADY-GROUPED rows. + * + * What the engine passes (objectql `engine.ts`, `ObjectQL.aggregate`): the + * object name; the full query AST it built for the read (`where`, `groupBy`, + * `aggregations`, `orderBy`, `limit`, ...) — the same {@link DriverQuery} + * `find()` receives, so a value that satisfies `find` satisfies this; and the + * per-call {@link DriverOptions}. Presence IS the capability test: the engine + * dispatches on `typeof driver.aggregate === 'function'` — the rule + * `data/driver.zod.ts` states for `DriverCapabilities`, and why there is + * deliberately no `queryAggregations` bit — and otherwise falls back to + * `find()` plus in-memory grouping. Two things the engine keeps for itself + * even when it dispatches here: `having` is applied AFTER this call, over the + * returned rows (#4286); and `aggregations[].filter` (#10576) or a non-UTC + * `timezone` with date bucketing (ADR-0053) force the in-memory path, so a + * driver never sees either on this road today. + * + * What a driver returns: one row per group, keyed by the `groupBy` field + * names and by each aggregation's `alias`, with the per-function value + * semantics `data/aggregation-conformance.ts` pins for every face that + * lowers this vocabulary. The engine's `having` filter reads exactly those + * keys, so a mis-keyed row does not error — it silently fails to match. + * + * Declared for the reason `introspectSchema` gives below: the engine reached + * this verb by duck-typing with no signature to mis-match against, so + * `aggregate(query, object)` with the arguments swapped, or a non-row + * result, compiled clean and surfaced only downstream of `having`. Optional, + * matching the presence test — a driver without native aggregation + * (driver-rest today) omits the member and stays conformant, served by the + * fallback. A wider parameter union (driver-memory also accepts a raw + * pipeline) or a looser return type stays assignable; what is refused is a + * wrong argument order or a non-array result. + */ + aggregate?(object: string, query: DriverQuery, options?: DriverOptions): Promise[]>; + /** Create multiple records in a single batch */ + bulkCreate(object: string, dataArray: Record[], options?: DriverOptions): Promise[]>; + /** Update multiple records in a single batch */ + bulkUpdate(object: string, updates: Array<{ + id: string | number; + data: Record; + }>, options?: DriverOptions): Promise[]>; + /** Delete multiple records in a single batch */ + bulkDelete(object: string, ids: Array, options?: DriverOptions): Promise; + /** Update multiple records matching a query (optional) */ + updateMany?(object: string, query: DriverQuery, data: Record, options?: DriverOptions): Promise; + /** Delete multiple records matching a query (optional) */ + deleteMany?(object: string, query: DriverQuery, options?: DriverOptions): Promise; + /** + * Coerce a filter comparand to the on-disk storage form of `field` on + * `objectName` — e.g. an ISO instant for a canonical-text datetime column, + * `YYYY-MM-DD` text for a `Field.date`, canonical `HH:MM:SS[.fff]` text + * for a `Field.time` (#3994), a dialect-spelled datetime literal + * where the dialect cannot parse ISO-8601. Non-temporal fields and + * uninterpretable values are returned unchanged. + */ + temporalFilterValue?(objectName: string, field: string, value: unknown): unknown; + /** + * The companion for the LEFT side of the same comparison: given the SQL the + * caller was going to emit for the column (an already-quoted, possibly + * qualified reference), return the SQL it must emit instead so the column + * reads in the same storage form {@link temporalFilterValue} coerces the + * comparand into. Returns `columnSql` verbatim for every column that needs + * no normalisation — which is every column on a fully-converged database. + */ + temporalFilterColumnSql?(objectName: string, field: string, columnSql: string): string; + /** + * Begin a new database transaction. + * @returns A transaction handle to pass via `options.transaction`. + */ + beginTransaction(options?: { + isolationLevel?: string; + }): Promise; + /** Commit the transaction */ + commit(transaction: unknown): Promise; + /** Rollback the transaction */ + rollback(transaction: unknown): Promise; + /** + * Synchronize the database schema with the Object definition. + * Idempotent: creates tables if missing, adds columns, updates indexes. + */ + syncSchema(object: string, schema: unknown, options?: DriverOptions): Promise; + /** + * Batch-synchronize multiple object schemas with fewer round-trips. + * + * Drivers that set `supports.batchSchemaSync = true` MUST implement this. + * The engine calls it once with all `{ object, schema }` pairs instead + * of calling `syncSchema()` N times, reducing network overhead for + * remote drivers. + */ + syncSchemasBatch?(schemas: Array<{ + object: string; + schema: unknown; + }>, options?: DriverOptions): Promise; + /** + * Register a federated (external) object's read metadata WITHOUT running DDL + * (ADR-0015). For datasources with `schemaMode !== 'managed'`, the schema is + * owned by the remote database, so `syncSchema()`/`initObjects()` (which run + * DDL) are forbidden. Drivers that support federation implement this to record + * the physical remote table (`external.remoteName` / `remoteSchema`) and the + * per-object read-coercion metadata so queries resolve to the remote table. + * Optional: drivers that don't support federation simply omit it (the engine + * skips external objects for them). + */ + registerExternalObject?(schema: unknown): void | Promise; + /** + * Register MANAGED objects' read/write metadata WITHOUT running DDL — the + * managed sibling of {@link registerExternalObject}. + * + * A driver that encodes values from an object's DECLARED field types (the SQL + * driver's JSON / boolean / numeric / date / datetime / time coercion + * registries, its auto_number descriptors and its tenant-isolation column) + * normally learns them as a side effect of `syncSchema()`. A deployment that + * manages DDL out-of-band (`skipSchemaSync` / `OS_SKIP_SCHEMA_SYNC=1`) never + * calls that — so without this entry point the driver serves writes while + * knowing nothing about the objects, and every value is encoded by whatever + * the underlying database client does with a bare JS value. On Postgres that + * rejects an array on a JSON field outright and silently stores `[]` as `{}`. + * + * Implementations MUST NOT issue DDL, probe for existence, or otherwise touch + * the database here: the flag this serves exists to protect a cold-start + * budget, so registration has to be pure in-memory bookkeeping. Idempotent — + * the engine re-drives it after every metadata reload. + * + * Optional: drivers whose encoding does not depend on declared field types + * (memory, mongodb) simply omit it, and the engine skips them. + */ + registerObjectMetadata?(schemas: unknown[]): void | Promise; + /** + * What this driver's schema synchronisation has DONE since `connect()`: + * how many tables it created, and how many it found already present. + * + * The pair answers a question no other surface can: **was this datastore + * empty when the process reached it?** `existing === 0 && created > 0` means + * every table here was made by this boot — nothing preceded it, so no row + * written by an earlier version can exist. That is an observation of + * creating a store, not an inference from finding one that looks empty, and + * it is what lets a fresh deployment attest data migrations it can never + * need (ADR-0104's 2026-07-30 addendum, #3438). + * + * Counts tables the driver actually inspected: deferred DDL (`os migrate + * plan`) and skipped sync leave both at zero, which reads as "cannot say" + * and keeps the conservative posture. A table that existed and was rebuilt + * counts as `existing` — it was here before us. + * + * Optional and purely observational; drivers that omit it simply cannot + * vouch for a store's newness. + */ + getSchemaSyncStats?(): { + created: number; + existing: number; + }; + /** + * Introspect the live physical schema this driver is connected to + * (ADR-0015): table names, columns, and primary-key membership, as the + * spec's ONE introspection shape — {@link IntrospectedSchema}. + * + * The return type is CONTRACTUAL, and it is declared here for the same + * reason `DatasourceDriverHandle.introspectSchema` was typed by #11381 + * (option C of the #11123 ruling): a custom driver has TWO documented roads + * into the same runtime read — the host-factory handle, and direct + * `IDataEngine.registerDriver()` — and until #11493 only the first was + * reachable by a compiler. A driver author implementing THIS interface had + * no signature to mis-match against, so a column flag spelled `isPrimary`, + * or a bare `{ tables }` with no `dialect`/`introspectedAt`, compiled clean + * and surfaced only as a federated table whose records silently could not + * be located or updated (absorbed by the PR #11001 runtime shim). Declared + * here, `tsc` refuses the mis-shape at the offending field on either road. + * + * Extra facts a richer driver carries stay legal — driver-sql's table-level + * `primaryKeys` / `foreignKeys`, per-column `isUnique` / `maxLength` ride + * on declared types that EXTEND the spec contract, and assignability + * admits them. What is refused is a WRONG spelling of a declared key, + * which is the defect class this seam has actually shipped. + * + * Optional: introspection is a capability, not an obligation — drivers + * without it (memory, mongodb today) simply omit the member and stay + * conformant. The engine's `introspectDatasource()` answers their absence + * with a named error rather than a guess. + */ + introspectSchema?(): Promise; + /** Drop the underlying table or collection (destructive) */ + dropTable(object: string, options?: DriverOptions): Promise; + /** + * Reclaim free space after bulk deletions (ADR-0057 §3.4). SQLite issues + * `PRAGMA incremental_vacuum` (pairs with the `auto_vacuum=INCREMENTAL` + * connect-time default); engines with their own background reclamation + * (Postgres autovacuum) may no-op. Optional — the LifecycleService calls + * it best-effort after every sweep that deleted rows. + */ + reclaimSpace?(options?: DriverOptions): Promise; + /** + * Analyze query performance. + * Returns execution plan without executing the query (optional). + */ + explain?(object: string, query: DriverQuery, options?: DriverOptions): Promise; +} + +// ── IDataEngine (interface) ── +interface IDataEngine { + /** + * Read methods take the execution context in a TRAILING options argument, + * the same position the write methods take theirs. + * + * [#4251] Declared because the implementation and its callers were already + * there: ObjectQL's `find`/`findOne`/`count`/`aggregate` have taken this + * argument since the read/write split was unified, and its own doc explains + * why — the same `{ context }` object was correct as the 3rd arg to `insert` + * but SILENTLY DROPPED as the 3rd arg to `find`, so an intended `isSystem` + * bypass just vanished (control-plane reads coming back empty once + * org-scoping hooks landed). The contract kept only `query.context`, so + * every caller passing the trailing one — the current-user endpoints' + * permission-set loader among them — had to reach it through `any`, which is + * exactly the erasure this issue is sweeping. `query.context` remains + * supported; when both are given, `options.context` wins. + * + * [#6300] `query` is the AUTHOR state (`z.input`, ADR-0122): a key with a + * declared `.default()` — `orderBy[].order` — is optional to write, exactly + * as on `count`'s `EngineCountOptions`. #6083 had pinned these two methods + * back to the parsed state because the engine built its `QueryAST` by spread + * without filling any default; the engine now runs each defaulting node + * through its own schema before the AST is built (ObjectQL's + * `fillQueryAstDefaults`), so `find(obj, { orderBy: [{ field: 'updated_at' }] })` + * compiles and sorts ascending — the schema's declared default, and the same + * value every driver already coalesced a missing `order` to. + */ + find(objectName: string, query?: EngineQueryOptions, options?: BaseEngineOptions): Promise; + /** + * Read the ONE record the query selects, or `null`. + * + * The query MUST say which record it wants: a `where` (or a `search` that + * expands to one), or an `orderBy` meaning "the FIRST record in this order". + * A query with neither is REJECTED (#4419) — `findOne` reads a single row, so + * an empty predicate does not return nothing, it returns the object's first + * row: a real, plausible-looking record unrelated to the request, which no + * caller's `if (!row)` can catch. When any row genuinely will do, that is + * `find(objectName, { limit: 1 })`, which says so at the call site. + * + * No ordering is imposed when the caller supplies none: `findOne` promises + * *a* matching record, never a position in a sequence (#4363). + * + * [#6300] `query` is the author state (`z.input`), same as `find` above. + */ + findOne(objectName: string, query?: EngineQueryOptions, options?: BaseEngineOptions): Promise | null>; + insert(objectName: string, data: any | any[], options?: DataEngineInsertOptions & WriteObservabilityOptions): Promise; + update(objectName: string, data: any, options?: EngineUpdateOptions & WriteObservabilityOptions): Promise | number | null>; + delete(objectName: string, options?: EngineDeleteOptions): Promise; + count(objectName: string, query?: EngineCountOptions, options?: BaseEngineOptions): Promise; + aggregate(objectName: string, query: EngineAggregateOptions, options?: BaseEngineOptions): Promise; + /** + * Vector Search (AI/RAG) + */ + vectorFind?(objectName: string, vector: number[], options?: { + where?: any; + limit?: number; + fields?: string[]; + threshold?: number; + }): Promise; + /** + * Execute raw command (Escape hatch) + */ + execute?(command: any, options?: Record): Promise; + /** + * Driver registry — optional: only engines that own a named-driver registry. + * + * [#4251] Declared because the binding is evidenced, not to fill the table: + * ObjectQL implements both (`packages/objectql/src/engine.ts`, the `drivers` + * map), and DefaultDatasourcePlugin reads them to re-register the default + * driver as a `driver.` kernel service — the surface `os migrate` + * (SQL_DRIVER_SERVICES) and serve's storage detection locate drivers + * through. Optional because `IDataEngine` is also satisfied by engines with + * no such registry (test fakes, remote/virtual engines); callers probe with + * `?.`, which is what the runtime caller already did while typed `any`. + */ + getDefaultDriverName?(): string | undefined; + getDriverByName?(name: string): IDataDriver | undefined; + /** + * Introspect a datasource's live remote schema (ADR-0015): resolve the + * driver registered under `datasource` and delegate to its + * `introspectSchema()` capability. Implementations throw when the + * datasource has no registered driver, or its driver does not offer + * introspection — absence is answered with a named error, never a guess. + * + * Optional for the same reason as the registry pair above: only an engine + * that owns a named-driver registry can resolve a datasource to a driver; + * test fakes and remote/virtual engines simply omit it. + * + * [#11493] Declared because the binding is evidenced, exactly as [#4251] + * asks: ObjectQL has implemented this method since ADR-0015, and the + * external-datasource service reads it off the `'data'` service — while + * this contract stayed silent, that consumer had to re-declare a private + * structural engine type to recover the spec return type from the + * implementation's untyped `Promise`. The return type is the spec's ONE + * introspection shape ({@link IntrospectedSchema}), the same contract + * #11381 put on `DatasourceDriverHandle.introspectSchema` — this member + * extends that ruling (#11123's population/channel argument) to the + * engine-registration seam, so both roads into the runtime read now meet + * a compiler. + */ + introspectDatasource?(datasource: string): Promise; + /** + * Which datasource is `objectName` BOUND to — the EFFECTIVE one, resolved + * through the same five steps the engine's own query routing walks + * (explicit `object.datasource` → `datasourceMapping` rules → the ADR-0057 + * §3.6 lifecycle split → the owning package's `defaultDatasource` → the + * deployment default), computed as a NAME and without taking a driver. + * + * `undefined` means nothing binds the object anywhere and it rides the + * deployment's default driver — deliberately NOT the string `'default'`, + * because `ObjectSchema.datasource` carries `.default('default')` and in + * the engine that value means "no explicit binding, keep looking", never + * "the primary DB" (#5288: a diagnostic built on the declared value named + * a database the rows were not in). Callers that need the default driver's + * name have {@link getDefaultDriverName}. Implementations never throw here: + * a binding whose datasource has no registered driver is still this + * object's datasource, and a naming probe must be able to report the name + * that is broken. + * + * Optional for the same reason as the registry pair above: only an engine + * that owns datasource routing can answer; test fakes and remote/virtual + * engines simply omit it, and callers probe with `?.`. + * + * [#12248] Declared under the [#4251]/[#11493] evidence bar, per the + * 2026-08-25 maintainer ruling on #11833 (fork 1, option A): ObjectQL has + * implemented this method since #5288, and `service-analytics` reads it + * off the data engine for datasource-capability tiering — while this + * contract stayed silent, that consumer had to carry a private structural + * `DataEngineLike` re-declaration to name the member at all. + */ + resolveEffectiveDatasource?(objectName: string): string | undefined; + /** + * Resolve the storage driver backing `objectName` — the public face of the + * engine's internal per-operation driver routing, answering `undefined` + * (instead of throwing) when no driver is available. + * + * Optional exactly like {@link getDriverByName}: only an engine that owns a + * named-driver registry can resolve an object to a driver. + * + * [#12248] Declared under the same evidence bar, per the same #11833 + * ruling (fork 1, option A): ObjectQL implements it, and three packages + * already consume it cross-package through structural re-declarations or + * `any` — `service-analytics` (ADR-0053 temporal storage-form coercion, + * via a local `getDriverForObject?` returning a picked temporal surface), + * `metadata-protocol` (the partial-index probe's driver-ownership read), + * and `plugin-audit` (schema-sync driver probe). Consumers that need only + * a slice of the driver keep narrowing the RETURN at the call site + * (`Pick` admits the full contract value); what this + * member ends is each of them re-inventing the MEMBER. + */ + getDriverForObject?(objectName: string): IDataDriver | undefined; + /** + * Datasource lifecycle writes — optional: only engines that own a + * datasource registry (the same population as the driver-registry pair + * above). All three are consumed today by `service-datasource`'s + * `DatasourceConnectionService`, which drives the engine through the + * `'data'` slot and, until [#12248], could name these members only through + * its consumer-local structural `ConnectionEngineLike` re-declaration — + * the third such type the #11833 sweep measured (#12010), adjudicated onto + * the contract by the 2026-08-25 ruling's item 4. + * + * Register a datasource *definition* (ADR-0015) — the declarative + * {@link EngineDatasourceDef}: `schemaMode` + `external.allowWrites` so the + * engine's write gate can enforce external-datasource ownership, and + * `external.credentialsRef` so {@link listDatasourceDefs} can hand a + * credentials sweep the handle a code-declared datasource holds ([#12805] + * — the engine accepts and retains the reference since #12758; before + * this catch-up a caller typed against THIS contract was refused with + * TS2353 for a value the runtime keeps). Distinct from registering a live + * driver connection. Safe to call repeatedly; last write wins. + */ + registerDatasourceDef?(def: EngineDatasourceDef): void; + /** + * Every datasource DEFINITION this engine holds — from BOTH entry routes, + * {@link registerDatasourceDef} and the engine's package-manifest install + * path. The read-back of the same registry the member above writes, so it + * shares that member's population ("only engines that own a datasource + * registry answer") and its optionality — the fourth member of the + * lifecycle family the 2026-08-25 ruling's item 4 adjudicated onto this + * contract, declared under the same [#4251]/[#11493] evidence bar + * ([#12805]: implemented on `ObjectQL` since #12758, and the #12804 + * `sys_secret` reference sweep is the consumer that otherwise must name + * the engine class concretely or re-declare the member structurally). + * + * Exists because a datasource declared IN CODE never reaches the metadata + * store, so a `sys_secret` reference sweep reading `sys_metadata` alone + * cannot see the handle such a datasource holds at + * `external.credentialsRef` and must be handed the list by the engine. + * Implementations answer UNFILTERED (every definition, whatever its + * `schemaMode`, with or without a reference — `credentialsRef` is valid on + * a managed datasource too, #8153) and answer FRESH copies: a reader must + * not be able to reach through this accessor and mutate the write gate's + * own input. + */ + listDatasourceDefs?(): EngineDatasourceDef[]; + /** + * Record that a **declared** datasource has no live driver, and why + * (framework#3828): `'blocked'` — the host's connect policy refused it; + * `'failed'` — the connect failed while the operator opted into a degraded + * boot. Without this record the engine cannot distinguish either case from + * a misspelled datasource name, and answers all three with the same bare + * "is not registered". `publicDetail` is the only part safe to echo to an + * end user; the operator-facing cause stays in logs and the admin surface. + */ + markDatasourceUnavailable?(info: { + name: string; + kind: 'blocked' | 'failed'; + publicDetail?: string; + }): void; + /** + * Drop a previous {@link markDatasourceUnavailable} record (successful + * (re)connect, or pool removal). + */ + clearDatasourceUnavailable?(name: string): void; + /** + * Sync ONE object's physical storage on demand — create/alter its + * table, or for a federated (external) object register its DDL-free read + * metadata (ADR-0015 §18) so remote-table/column mapping and coercion + * exist for queries. Boot-time schema sync runs once at startup, so an + * object that becomes live later — a published draft, or an object bound + * to a datasource whose driver connects after boot — has a registry entry + * but no physical mapping until this is called. Idempotent: implementations + * only create what is absent (and alter to add new columns). + * + * Optional for the same reason as the lifecycle trio above: only an + * engine that owns drivers and DDL can answer; test doubles and + * remote/virtual engines omit it, and callers probe + * (`engine.syncObjectSchema?.(name)` / `typeof === 'function'`). + * + * [#12482] Declared under the [#4251]/[#11493] evidence bar, per the + * 2026-08-25 #11833 ruling's item-4 precedent as executed by #12248 — + * the member #12010's inventory left "not verified", verified now: + * ObjectQL has implemented it since the ADR-0015 federation work, and + * two service packages already consume it cross-package, each through + * consumer-local structural recovery. `service-datasource`'s + * `DatasourceConnectionService` declares it on its `ConnectionEngineLike` + * re-declaration and calls it per bound external object after connect; + * `service-messaging`'s system-table provisioning reached it through an + * `as unknown as` cast whose own comment recorded that the member "lives + * on the concrete ObjectQL engine, not the contract" — the #4251 shape + * exactly: producer meets no compiler, drift lands silently in two + * consumers. + */ + syncObjectSchema?(objectName: string): Promise; +} + +// ── IDeployPipelineService (interface) ── +interface IDeployPipelineService { + /** + * Validate a deploy bundle against Zod schemas. + * Checks object definitions, view configs, flow definitions, and permissions. + * + * @param bundle - Deploy bundle to validate + * @returns Validation result with issues list + */ + validateBundle(bundle: DeployBundle): DeployValidationResult; + /** + * Plan a deployment by introspecting the current schema and generating + * a migration plan for the diff. + * + * @param tenantId - Target tenant + * @param bundle - Deploy bundle to plan for + * @returns Migration plan with ordered DDL statements + */ + planDeployment(tenantId: string, bundle: DeployBundle): Promise; + /** + * Execute a deployment plan against a tenant's database. + * Applies DDL statements and registers metadata changes. + * + * @param tenantId - Target tenant + * @param plan - Migration plan to execute + * @returns Execution result with deployment ID and status + */ + executeDeployment(tenantId: string, plan: MigrationPlan): Promise; + /** + * Rollback a previous deployment. + * Executes reverse DDL statements and restores previous metadata state. + * + * @param tenantId - Target tenant + * @param deploymentId - Deployment to rollback + */ + rollbackDeployment(tenantId: string, deploymentId: string): Promise; +} + +// ── IEmailService (interface) ── +interface IEmailService { + /** + * Send (or attempt to send) an email through the configured transport. + * Implementations SHOULD persist a sys_email row when an ObjectQL + * engine is wired, but MUST NOT throw if persistence fails — delivery + * outcome takes precedence. + */ + send(input: SendEmailInput): Promise; + /** + * Resolve a named template from `sys_email_template`, render its + * subject/body against `input.data`, then deliver via `send()`. + * + * Locale resolution is the ladder on {@link SendTemplateInput.locale}. + * + * Errors: + * - `TEMPLATE_NOT_FOUND` — no row matches `(name, locale|en-US)`, and (for a + * call that named no locale) the name carries no rows at all. + * - `TEMPLATE_INACTIVE` — row exists but `active=false`. + * - `MISSING_VARIABLES` — declared `required` variables absent from `data`. + */ + sendTemplate(input: SendTemplateInput): Promise; + /** + * Resolve a named template from `sys_email_template` and render its + * subject/body against `input.data` — WITHOUT sending anything. Strictly + * render-only: no delivery, no queueing, no `sys_email` row. One resolver, + * many channels (#9225): the same locale ladder + `{{var}}` renderer + * (ADR-0053 format filters included) that `sendTemplate` delivers through, + * exposed so non-email consumers (e.g. the messaging inbox channel) render + * localized template content instead of duplicating the resolver. + * + * Locale resolution is the ladder on {@link SendTemplateInput.locale}. + * + * Errors (same vocabulary as `sendTemplate`, since resolution is shared): + * - `TEMPLATE_NOT_FOUND` — no row matches `(name, locale|en-US)`, and (for a + * call that named no locale) the name carries no rows at all. + * - `TEMPLATE_INACTIVE` — row exists but `active=false`. + * - `MISSING_VARIABLES` — declared `required` variables absent from `data`. + */ + renderTemplate(input: RenderTemplateInput): Promise; +} + +// ── IEmailTransport (interface) ── +interface IEmailTransport { + send(message: NormalizedEmailMessage): Promise; +} + +// ── IEmbedder (interface) ── +interface IEmbedder { + /** Stable id for logs and diagnostics (e.g. `'openai'`, `'ollama'`). */ + readonly id: string; + /** + * Output vector dimensionality. Knowledge adapters use this to size + * their fixed-width vector columns / index parameters. + */ + readonly dimensions: number; + /** + * Embed a batch of strings. Output order matches input order. + * Implementations SHOULD handle empty input by returning `[]`. + */ + embed(texts: string[]): Promise; +} + +// ── IExportService (interface) ── +interface IExportService { + /** + * Create a new export job. + * @param input - Export job configuration + * @returns The created export job with tracking info + */ + createExportJob(input: CreateExportJobInput): Promise; + /** + * Get the progress/status of an export job. + * @param jobId - Export job ID + * @returns Export job progress, or null if not found + */ + getExportJobProgress(jobId: string): Promise; + /** + * Get the download link for a completed export job. + * @param jobId - Export job ID + * @returns Download link info, or null if not available + */ + getExportJobDownload(jobId: string): Promise; + /** + * Cancel an in-progress export job. + * @param jobId - Export job ID + * @returns Whether the job was successfully cancelled + */ + cancelExportJob(jobId: string): Promise; + /** + * List export jobs with optional filtering and pagination. + * @param options - Filter and pagination options + * @returns Paginated list of export jobs + */ + listExportJobs(options?: ListExportJobsOptions): Promise; + /** + * Create a scheduled recurring export. + * @param input - Schedule configuration + * @returns The created scheduled export + */ + scheduleExport(input: ScheduleExportInput): Promise; + /** + * Get an export/import template by ID. + * @param templateId - Template ID + * @returns The template, or null if not found + */ + getTemplate?(templateId: string): Promise; + /** + * List available export/import templates. + * @param object - Optional object filter + * @returns Array of templates + */ + listTemplates?(object?: string): Promise; +} + +// ── IExternalDatasourceService (interface) ── +interface IExternalDatasourceService { + /** + * List remote tables on a federated datasource, filtered by + * `external.allowedSchemas`. + */ + listRemoteTables(datasource: string, opts?: { + schema?: string; + }): Promise; + /** + * Generate an `Object` draft (structured + `*.object.ts` source) from a + * remote table, using the type-compat matrix to map columns to field types. + */ + generateObjectDraft(datasource: string, remoteName: string, opts?: GenerateDraftOpts): Promise; + /** + * Persist a remote table as a live, runtime-origin federated `Object` so it + * is immediately queryable — the backend of the Studio "Import as Object" + * action (ADR-0015 §6.4, Addendum runtime persona). Builds the draft via + * {@link generateObjectDraft}, applies the import overrides, and writes it + * through the metadata store. Requires a writable metadata store: throws when + * none is wired (e.g. a GitOps-only / read-only deployment). + */ + importObject(datasource: string, remoteName: string, opts?: ImportObjectOpts): Promise; + /** + * Refresh and persist the cached remote schema snapshot as an + * `external_catalog` metadata record (conventionally `_catalog`). + * Returns the snapshot. Persistence is best-effort: when no catalog store is + * wired the snapshot is still returned, just not cached. + */ + refreshCatalog(datasource: string): Promise; + /** Validate one federated object against the live remote table. */ + validateObject(objectName: string): Promise; + /** Validate every federated object in parallel; each datasource's live schema is read once per call. */ + validateAll(): Promise; +} + +// ── IFileAccessDelegate (interface) ── +interface IFileAccessDelegate { + /** + * May this caller download a file owned by `recordId` on the delegating + * object? Return `false` (never throw) to deny; a throw is treated as a + * denial too, since authorization must fail closed. + */ + authorizeFileRead(recordId: string, context: unknown): Promise; +} + +// ── IHierarchyScopeResolver (interface) ── +interface IHierarchyScopeResolver { + /** + * Owner ids whose records the caller may see under `scope` (must include the + * caller). Empty/throw → caller falls back to owner-only. + * + * **Fail CLOSED on a missing organization — under a WALLED posture.** When + * {@link HierarchyScopeContext.posture} is `group` or `isolated` and the + * authoritative {@link HierarchyScopeContext.organizationId} is `null`, an + * implementation MUST NOT build the owner set as though no tenancy + * constraint applied — "no org" is not "every org". Return owner-only (or + * throw, which the sharing layer treats the same way); never widen. Falling + * back to {@link HierarchyScopeContext.tenantId} instead is not fail-closed + * either. This obligation is STRICT and unconditional within those two + * postures: it is the half that closed #5852. + * + * **Under `single`, a `null` organization is NOT missing information** and + * MUST NOT be refused (#6139). That posture has no organization dimension at + * all, so `null` names the one implicit tenant; the resolver resolves DEPTH + * normally, exactly as it would for a non-null org elsewhere. Refusing here + * is not a conservative choice — it retires hierarchy scoping for every + * org-less deployment, including the single-posture enterprise installs + * ADR-0057 D1's proofs boot deliberately. + * + * Read the two fields TOGETHER; neither alone carries the verdict. `null` + + * `single` is legitimate and widens; `null` + `group`/`isolated` fails + * closed. An implementation that keys only on `organizationId` is not + * conformant — it is the shape this contract used to require, and it kills + * single-posture DEPTH. + */ + resolveOwnerIds(context: HierarchyScopeContext, scope: HierarchyScope): Promise; +} + +// ── IHttpRequest (interface) ── +interface IHttpRequest { + /** Request path parameters */ + params: Record; + /** Request query parameters */ + query: Record; + /** Request body (parsed — JSON or form data when applicable) */ + body?: any; + /** Request headers */ + headers: Record; + /** HTTP method */ + method: string; + /** Request path */ + path: string; + /** + * Raw body accessor for binary uploads (file streams, multipart parts). + * Implementations should consume the underlying request stream lazily so + * handlers that only need `body` do not pay the parsing cost. May be + * undefined when the underlying framework cannot expose the raw stream. + */ + rawBody?: () => Promise; + /** + * The TRANSPORT's own peer address for this request — the socket's remote + * address, never a header. + * + * CONTRACT (#4910): this member is the unforgeable half of caller + * identification. `X-Forwarded-For` and friends live in {@link headers} and + * are believable only when the deployment declares `server.trustProxy`; + * this one a client cannot influence, which is why the inbound rate limiter + * keys anonymous traffic off it by default. + * + * Optional because not every runtime exposes it (an edge/Workers host may + * have no socket at all). Consumers MUST degrade deliberately when it is + * absent — never substitute a header for it silently, and never fall open. + */ + remoteAddress?: string; +} + +// ── IHttpResponse (interface) ── +interface IHttpResponse { + /** + * Send a JSON response + * @param data - Data to send + */ + json(data: any): void | Promise; + /** + * Send a text/html response + * @param data - Data to send + */ + send(data: string | Uint8Array | ArrayBuffer): void | Promise; + /** + * Set HTTP status code + * @param code - HTTP status code + */ + status(code: number): IHttpResponse; + /** + * Set response header + * @param name - Header name + * @param value - Header value (string or array of strings for multi-value headers) + */ + header(name: string, value: string | string[]): IHttpResponse; + /** + * Stream a chunk to the client without ending the response (SSE / chunked + * transfer). CONTRACT (#3607, ADR-0076 OQ#10): consumers that emit + * streaming results (the dispatcher's `type: 'stream'` result for AI + * routes, SSE endpoints) feature-detect this member and fall back to + * buffered `send()` when absent. Implementations that provide `write` + * MUST also provide `end`, MUST flush headers on first write, and MUST + * NOT buffer chunks until `end`. Cross-adapter behavior is locked by + * `@objectstack/http-conformance` (SSE assertions). + */ + write?(chunk: string | Uint8Array): void | Promise; + /** + * End a streaming response started with {@link write}. Required whenever + * `write` is provided — see the streaming contract on `write`. + */ + end?(): void | Promise; +} + +// ── IHttpServer (interface) ── +interface IHttpServer { + /** + * Register a GET route handler + * @param path - Route path (e.g., '/api/users/:id') + * @param handler - Route handler function + */ + get(path: string, handler: RouteHandler): void; + /** + * Register a POST route handler + * @param path - Route path + * @param handler - Route handler function + */ + post(path: string, handler: RouteHandler): void; + /** + * Register a PUT route handler + * @param path - Route path + * @param handler - Route handler function + */ + put(path: string, handler: RouteHandler): void; + /** + * Register a DELETE route handler + * @param path - Route path + * @param handler - Route handler function + */ + delete(path: string, handler: RouteHandler): void; + /** + * Register a PATCH route handler + * @param path - Route path + * @param handler - Route handler function + */ + patch(path: string, handler: RouteHandler): void; + /** + * Register middleware + * @param path - Optional path to apply middleware to (if omitted, applies globally) + * @param handler - Middleware function + */ + use(path: string | Middleware, handler?: Middleware): void; + /** + * Start the HTTP server + * @param port - Port number to listen on + * @returns Promise that resolves when server is ready + */ + listen(port: number): Promise; + /** + * Stop the HTTP server + * @returns Promise that resolves when server is stopped + */ + close?(): Promise; + /** + * The port the server is actually bound to. CONTRACT (#3607, ADR-0076 + * OQ#10): after `listen()` resolves, implementations that provide this + * member MUST return the real bound port — in particular when `listen(0)` + * requested an ephemeral port (test harnesses and the conformance suite + * depend on this to address the server). Before `listen()` the return + * value is unspecified. + */ + getPort?(): number; + /** + * The LIVE mount table: every `(method, pattern)` pair registered on THIS + * server, in registration order. + * + * ## Why this is on the contract (#7526) + * + * Four route ledgers in this repo DECLARE what each surface serves, and + * every guard built on them (#3563 / #3587 / #3636 / #3642) reads the union + * of those declarations as if it were an OBSERVATION of what is mounted. + * It is not. `GET /meta/objects/:name/state/:field` sat in + * `route-ledger.ts` while no registrar mounted it, so the SDK guard passed + * it and the route 404'd at runtime — and the same build shipped two more + * of the same defect. A declaration cannot audit itself; something has to + * report what the server really did. That is this member. + * + * ## Contract + * + * - Every pattern a consumer registered through {@link get} / {@link post} + * / {@link put} / {@link delete} / {@link patch} appears, spelled exactly + * as it was passed (adapters must not normalize it into a private + * dialect) — a caller compares these strings against its own route table. + * - The order is REGISTRATION order, which for first-match routers is also + * priority order. Do not sort it. + * - Routes an adapter mounts on its framework-native handle behind + * {@link getRawApp} are outside this table by construction, and so are + * {@link use} middleware and the {@link setFallbackHandler} seam: this + * answers "what routes did I register", not "what paths might respond". + * - The returned array is the caller's; mutating it must not affect the + * server. + * + * Optional and feature-detected, like {@link getRawApp} — an adapter that + * keeps no record simply omits it. A consumer that needs the answer for + * correctness must FAIL when it is absent, never skip: a parity gate that + * quietly passes because it could not look is the failure it exists to + * catch. + */ + getMountedRoutes?(): ReadonlyArray<{ + method: string; + pattern: string; + }>; + /** + * Which registered route actually ANSWERS a concrete request — the + * router's own verdict, not a re-implementation of its matching. + * + * ## Why registration is not reachability (#7526) + * + * On a first-match router, a literal route registered AFTER a catch-all + * sibling that also matches its path is mounted and unreachable. Measured + * against Hono: with `GET /api/v1/meta/:type` registered first, a later + * `GET /api/v1/meta/types` never runs — `/meta/types` answers from + * `:type`, with a plausible 200 that no client can tell from an empty + * result. So {@link getMountedRoutes} containing a pattern is NECESSARY + * and not SUFFICIENT evidence that the pattern serves; a consumer probes a + * concrete path through this member and checks it gets back the pattern it + * expected. + * + * ## Contract + * + * - `path` is a concrete request path (`/api/v1/meta/types`), not a + * pattern. The return value IS a pattern — one of the entries + * {@link getMountedRoutes} reports, `===`-comparable to it. + * - The verdict must come from the same routing machinery that serves + * traffic. An adapter that answers from a private copy of the rules can + * drift from itself, which is this member's whole subject. + * - `undefined` means no registered route matches, i.e. the request would + * reach the adapter's unmatched-request answer (404/405). It does NOT + * mean "unknown": an adapter that cannot ask its router omits the member + * rather than returning `undefined`. + * - Read-only. Resolving a route must not run its handler or any + * middleware. + * + * Optional and feature-detected, with the same fail-don't-skip rule as + * {@link getMountedRoutes}. + */ + resolveMountedRoute?(method: string, path: string): { + method: string; + pattern: string; + } | undefined; + /** + * The underlying framework's own app object (Hono's `Hono`, Express's + * `Express`, …) — THE deliberate framework-specific escape hatch on this + * otherwise framework-agnostic contract. + * + * [#4251] Declared here because four independent consumers were each + * declaring it locally (`IHttpServer & { getRawApp?(): any }` in + * cloud-connection ×2, metadata's HMR routes, and cloud's serverless + * node-server) — four copies of one truth, which is the failure mode that + * produced the false `http.server` lint exemption. The return type is + * `any` ON PURPOSE and only here: the handle's real type belongs to the + * framework, and naming it would give this contract a framework + * dependency. Consumers that mount framework-native routes feature-detect + * this member and degrade when it is absent — an adapter is NOT required + * to expose its internals. + */ + getRawApp?(): any; + /** + * Install the LAST-RESORT handler: the one invoked for a request that + * matched none of the explicitly registered routes. + * + * ## Contract (#5040 §1-C) + * + * Two guarantees, and they are the whole reason this seam exists rather + * than a wildcard route: + * + * 1. **It runs only after every explicitly registered route has missed.** + * Not "usually last", not "last if you register it late" — a fallback + * is structurally incapable of shadowing a registered route, so this + * member carries ZERO registration-order dependency. That matters + * because the alternative (mounting `${prefix}/*` wildcards) is + * decided by first-registration-wins across plugin `start()` order, + * the exact ADR-0076 D11 hazard "one route, one owner" exists to + * prevent. Implementations map this onto their framework's own + * not-found hook (Hono's `app.notFound`), never onto a route. + * 2. **`req.body` IS readable here.** The handler receives a fully + * populated {@link IHttpRequest}, body included — unlike the + * {@link Middleware} seam installed by {@link use}, whose contract + * explicitly does NOT populate `body` (parsing it there would consume + * the request stream before the route handler that owns it). This is + * the difference that makes `use()` unusable for the dynamic-endpoint + * case and this member necessary: a declared endpoint backed by a flow + * or a `create` operation must read the request body. + * + * Calling this more than once REPLACES the previous handler — there is one + * fallback, not a chain; a host that needs to compose behaviours composes + * them inside its own handler. A handler that writes no response leaves the + * adapter's standard unmatched-request answer in place (the 404/405 + * semantics documented on this interface). + * + * Optional, and feature-detected by consumers with + * `typeof server.setFallbackHandler === 'function'` — an adapter that + * cannot express a not-found hook simply omits it, and the consumer + * degrades to the adapter's own unmatched-request answer. + * + * @param handler - The handler to invoke for otherwise-unmatched requests + */ + setFallbackHandler?(handler: RouteHandler): void; + /** + * Register a RESPONSE OBSERVER: a callback the transport invokes once per + * inbound request, AFTER the response exists. + * + * ## Why this member exists (#9835; ruled 2026-08-18 on #9650) + * + * The {@link use} middleware chain deliberately runs BEFORE dispatch: the + * adapter runs the whole chain and only then continues into routing, so a + * middleware there sees method, path, query and headers and has NO + * response — it cannot carry the `status` label the operator guidance + * (5xx rate) is keyed on (measured in `packages/runtime/src/ + * http-metrics-inbound-coverage.hono.integration.test.ts`). This member + * is the observation point that contract cannot express: it runs after + * the response exists, status known, elapsed time measurable — which is + * what makes HTTP metrics transport-agnostic instead of Hono-only. + * + * ## Observation contract + * + * - Each registered observer is invoked EXACTLY ONCE per request the + * transport answers, after the response status is known. A connection + * that dies before any response is written may go unobserved. + * - **`routePattern` MUST be the registered route PATTERN that answered + * (`/api/v1/data/:id`, `/api/v1/auth/*`) — NEVER the concrete request + * path.** A hard requirement, stated here precisely so no adapter + * re-decides cardinality: labelling by concrete path mints one metric + * series per record id and silently breaks the alerting the counter + * exists for. A request no registered route matched is reported with + * the reserved {@link UNMATCHED_ROUTE_PATTERN}. + * - **Reach**: implementations MUST deliver an observation for every + * inbound request the transport serves — including routes mounted on + * the framework-native handle behind {@link getRawApp} and requests a + * {@link use} middleware short-circuits (a rate limiter's 429). A + * transport built-in that answers before the observation point (e.g. a + * CORS preflight) may fall outside it; each adapter documents its own + * boundary. + * - Registration APPENDS — several observers may coexist (metrics, + * access log), invoked in registration order; there is no unregister + * (an observer lives as long as the server). Unlike + * {@link setFallbackHandler}, registering again never replaces. + * - An observer that throws MUST NOT affect the response or sibling + * observers — implementations swallow observer failures (the same + * discipline a metrics backend is held to). + * + * ## Optionality is visible — and MUST stay runtime-real + * + * Optional and feature-detected with + * `typeof server.afterResponse === 'function'`, like {@link getRawApp}. + * Detection must be runtime-real, not type-only: a wrapper or Proxy over + * an `IHttpServer` that forwards only required members erases this one + * and makes detection read false against an adapter that implements it — + * the optional-member-erasure shape #5122 records. A wrapper MUST forward + * it conditionally: present iff the wrapped server provides it. + * + * ## Who owns `http_requests_total` emission (de-duplication; #9833) + * + * The 2026-08-18 ruling on #9650 puts the counter at the TRANSPORT: it is + * emitted by exactly ONE counter-emitting observer per server, registered + * through this hook by the transport's own composition layer (its hosting + * plugin) when a metrics backend is wired. A downstream consumer that + * holds both this server and a metrics registry (the runtime dispatcher's + * `instrumentRouteHandler` wrapper) MUST NOT add a second per-request + * counter while this member is implemented: it feature-detects the hook + * and suppresses its own counter — keeping its non-duplicated signals + * (request-id echo, duration histogram, error counter/reporter). A + * request must never be double-counted between the transport seam and a + * consumer-side wrapper. + * + * ## A transport that does not implement this seam reports NO HTTP metrics + * + * Stated plainly, per the ruling, rather than letting absence read as + * coverage: on such a transport `http_requests_total` never increments — + * **zero means "not instrumented", never "no traffic"**. A consumer that + * needs the distinction must ASK (feature-detect this member) and surface + * the answer; it must never infer "no traffic" from an empty counter it + * never confirmed was armed. + * + * @param observer - Invoked once per answered request with the + * {@link HttpResponseObservation} + */ + afterResponse?(observer: HttpResponseObserver): void; +} + +// ── II18nService (interface) ── +interface II18nService { + /** + * Translate a message key for a given locale + * @param key - Translation key (e.g. 'o.account.label') + * @param locale - BCP-47 locale code (e.g. 'en-US', 'zh-CN') + * @param params - Optional interpolation parameters + * @returns Translated string, or the key itself if not found + */ + t(key: string, locale: string, params?: Record): string; + /** + * Get all translations for a locale + * @param locale - BCP-47 locale code + * @returns Translation data map + */ + getTranslations(locale: string): Record; + /** + * Load translations for a locale + * @param locale - BCP-47 locale code + * @param translations - Translation key-value data + */ + loadTranslations(locale: string, translations: Record): void; + /** + * List available locales + * @returns Array of BCP-47 locale codes + */ + getLocales(): string[]; + /** + * Get the current default locale + * + * [#15711] Also the language the deployment's metadata labels are + * authored in: the serving layer threads it into the document + * translators' `ResolveOptions.defaultLocale` (`@objectstack/spec/system`), + * so a request for the default locale answers with the authored label + * instead of walking the declared fallback chain — the authored label IS + * the default locale's text. Absent, no request is treated as the default. + * @returns BCP-47 locale code + */ + getDefaultLocale?(): string; + /** + * Set the default locale + * @param locale - BCP-47 locale code + */ + setDefaultLocale?(locale: string): void; + /** + * The locale `t()` consults after the requested one — the deployment's + * DECLARED fallback (`i18n.fallbackLocale`, else `defaultLocale`, the + * collapse both boot paths perform before constructing the service: + * `os serve` and the dev plugin hand `I18nServicePlugin` + * `fallbackLocale || defaultLocale || 'en'`). + * + * [#14882] Declared so the serving layer can thread it into the + * metadata-document translators (`@objectstack/spec/system`'s + * `ResolveOptions.fallbackChain`). Those resolvers walk + * `requested locale → fallback chain → authored label`, and without this + * accessor no caller could tell them what the deployment declared, so the + * chain fell to the resolver's literal `['en']`: a `zh-CN` workspace that + * shipped a courtesy `en` bundle served ENGLISH bundle text to a `zh-CN` + * request, ahead of its own authored Chinese labels, because `en` was + * consulted before the authored label was ever reached. + * + * Contract for the value: it is the locale this service's own `t()` falls + * back to, so a label resolved from a bundle by the document translators + * and a message resolved by `t()` agree on which locale is consulted + * second. `undefined` means NOTHING was declared — a provider that has no + * fallback of its own omits the method or answers `undefined`, and the + * serving layer then leaves the resolver's own default in place rather + * than inventing a chain. [#15711] That default is `[]` (requested + * locale, then the authored label), and a request for + * {@link getDefaultLocale} never walks this chain at all. + * + * @returns BCP-47 locale code, or `undefined` when no fallback is declared + */ + getFallbackLocale?(): string | undefined; + /** + * Set the locale `t()` consults after the requested one — the app's + * DECLARED `i18n.fallbackLocale`. + * + * [#15694] The INJECTION counterpart of {@link getFallbackLocale}, and the + * same threading `setDefaultLocale` and `setSupportedLocales` already get + * from `AppPlugin.loadTranslations`: the declaration lives on the stack + * artifact, which only the runtime app-plugin layer can see, so a provider + * built without it (the kernel's in-memory fallback, auto-registered when + * no i18n plugin is installed) has no other way to learn it. A provider + * constructed WITH it — `FileI18nAdapter`, which both boot paths build + * with `fallbackLocale || defaultLocale || 'en'` — omits this method and + * keeps the value it was built with. It does implement `setDefaultLocale` + * and `setSupportedLocales`; omitting a setter is per-value, not + * per-provider. + * + * Why it exists: `i18n.fallbackLocale` is authorable + * (`TranslationConfigSchema`), and until this was threaded it was INERT on + * the in-memory provider. A stack declaring `defaultLocale: 'zh-CN'` with + * `fallbackLocale: 'en'` answered a missing `zh-CN` key from `en` under + * `I18nServicePlugin` and from `zh-CN` — i.e. not at all — under the + * fallback. One declaration, two providers, two answers. + * + * Semantics implementations must honour: + * - The value is the SECOND locale `t()` consults, per KEY, after the + * requested one — the same shape `FileI18nAdapter.t()` has. Not a + * whole-bundle swap: a requested locale that HAS a bundle but is missing + * the key must still reach the fallback. + * - Never called means no declaration, which must keep the provider's + * existing behaviour exactly. An app that declares no `i18n.fallbackLocale` + * is not opting into a new chain. + * + * ⛔ Implementing this does NOT oblige implementing {@link getFallbackLocale}. + * They answer different questions — what the provider was TOLD versus what + * the serving layer may ASK it — and a provider whose accessor would have + * to invent a value it was never given must keep omitting the accessor, so + * the document translators fall to their own default rather than to a + * derived one (#14882). + * + * @param locale - BCP-47 locale code + */ + setFallbackLocale?(locale: string): void; + /** + * Narrow what `getLocales()` reports to the locales the APP declared + * (`i18n.supportedLocales` on the stack artifact). + * + * [#7679] `getLocales()` on its own can only report what is LOADED, and + * what is loaded is not the app's decision: every platform plugin pushes + * its own `en/zh-CN/ja-JP/es-ES` bundle at `kernel:ready`, so a showcase + * declaring `['en','zh-CN']` advertised four locales on + * `GET /i18n/locales`. A picker built from that route then offers locales + * in which only `sys_*` metadata is translated — a guaranteed + * mixed-language session for everything the app owns. + * + * The declared set is only visible at the runtime app-plugin layer, which + * is why it arrives here by injection rather than being read: this is the + * same threading `setDefaultLocale` already gets from + * `AppPlugin.loadTranslations`. + * + * Implementations MUST apply this as a filter at READ time, not as a prune + * of what is stored. Bundles keep arriving after the app plugin has run + * (the platform plugins' `kernel:ready` push), so a one-shot prune would + * narrow only whatever happened to be loaded first. Narrowing is about + * what is REPORTED; the extra bundles stay loaded and stay servable. + * + * Semantics implementations must honour, both covered by tests: + * - Absent, empty, or a non-array → NO narrowing. An app that declares + * nothing keeps today's behaviour (report every loaded locale); + * narrowing it to zero or to the default alone would silently regress + * every app that never opted in. + * - A declared locale with no loaded bundle is still REPORTED + * (declared-but-unserved), not silently intersected away. The + * declaration is the app's statement of intent, and a client that is + * handed a quietly shortened list has no way to see the gap. It also + * keeps the answer independent of plugin load order, which an + * intersection cannot be. + * + * @param locales - Declared BCP-47 locale codes, or `undefined` to clear + */ + setSupportedLocales?(locales: readonly string[] | undefined): void; + /** + * Field labels for one object in one locale, keyed by field name. + * + * [#4127] A provider-supplied SHORTCUT, not the source of truth. Both + * serving surfaces — the dispatcher's `/i18n/labels/:object/:locale` and + * service-i18n's own mount — probe for it and, finding nothing, derive the + * labels from the locale's loaded bundle (`resolveObjectFieldLabels`). + * That derivation is the path every provider in this repo takes. + * + * It is declared anyway because both probes already existed and both call + * sites documented it as "optional on `II18nService`" — which was simply + * not true until now. An undeclared method probed in two places is how a + * second, unwritten contract starts (#4087 is what that costs). A provider + * that keeps labels somewhere the bundle cannot express — a translation + * memory, a per-tenant override table — implements this and skips the + * derivation; everyone else omits it and loses nothing. + * + * @param objectName - Object whose fields to label + * @param locale - BCP-47 locale code + * @returns Field name → label, for the fields this provider knows + */ + getFieldLabels?(objectName: string, locale: string): Record; + /** + * Get translation coverage for a locale, optionally scoped to a single object. + * + * Compares the supplied (or currently loaded) translation bundle against + * the source metadata to detect missing, redundant, and stale entries. + * + * @param locale - BCP-47 locale code + * @param objectName - Optional object name to scope the check + * @returns Coverage result with per-key diff items + */ + getCoverage?(locale: string, objectName?: string): TranslationCoverageResult; + /** + * Request AI-powered translation suggestions for missing or stale keys. + * + * Implementations may call an internal AI agent, external TMS, or + * third-party translation API. Each returned diff item should have + * `aiSuggested` and `aiConfidence` populated. + * + * @param locale - Target BCP-47 locale code + * @param items - Diff items to generate suggestions for + * @returns Diff items enriched with `aiSuggested` and `aiConfidence` + */ + suggestTranslations?(locale: string, items: TranslationDiffItem[]): Promise; +} + +// ── IJobService (interface) ── +interface IJobService { + /** + * Schedule a recurring or one-time job + * @param name - Job name (snake_case) + * @param schedule - Schedule configuration + * @param handler - Job handler function + * @param options - Optional per-job retry policy / per-attempt time limit (`timeoutMs`) + */ + schedule(name: string, schedule: JobSchedule, handler: JobHandler, options?: JobScheduleOptions): Promise; + /** + * Cancel a scheduled job + * @param name - Job name + */ + cancel(name: string): Promise; + /** + * Trigger a job to run immediately (outside its normal schedule) + * @param name - Job name + * @param data - Optional data to pass to the handler + */ + trigger(name: string, data?: unknown): Promise; + /** + * Get the status of recent job executions + * @param name - Job name + * @param limit - Maximum number of executions to return + * @returns Array of job execution records + */ + getExecutions?(name: string, limit?: number): Promise; + /** + * List all registered job names + * @returns Array of job names + */ + listJobs?(): Promise; + /** + * Replay the most recent execution of a job — useful from admin UI. + * Equivalent to `trigger(name)` but records that this run is a replay + * in job run history (`sys_job_run`) — not the audit trail; that's + * `sys_audit_log`, with its own opt-in, writer and retention. Recording + * anything durable depends on an adapter that persists run history at all + * (e.g. `DbJobAdapter`'s `recordRuns` option). + * + * **Once-only delivery on the scheduled path** (#14766, the contract half + * of the maintainer's A + a2 ruling on #14501; the behaviour half is + * #14501 and lands in `DbJobAdapter.replay`). A scheduled (cron) flow + * takes a dispatch claim in the `sys_flow_dispatch` ledger keyed + * `(flow, tick-window)` — the same ledger a `time_relative` flow claims per + * `(flow, window, record)` (#10220). A replay of a scheduled flow reads + * that window's claim, and the contract admits exactly three outcomes: + * + * | The `(flow, tick-window)` claim is… | `replay(name, data)` | `replay(name, data, { force: true })` | + * |:---|:---|:---| + * | **absent** — the window was never claimed | re-runs the window (unchanged behaviour) | re-runs the window | + * | **failed** — claimed, and the dispatch did not succeed | re-runs the window (unchanged behaviour) | re-runs the window | + * | **succeeded** — the window was delivered | **refused**, loudly — see below | re-runs the window: sends anyway, the duplicate is the operator's, taken knowingly | + * + * A job that never takes a claim — every job that is not a scheduled + * flow — is the **absent** row: it re-runs, with or without `force`, and + * nothing about it changes. + * + * **The refusal is an ADR-0112 envelope, never a silent no-op.** The + * promise **rejects** (it does not resolve having done nothing — the + * ruling rejected that shape outright: an operator who pressed replay and + * saw nothing happen is the bad experience this clause exists to prevent) + * with an error carrying `code: 'RESOURCE_CONFLICT'` — the standard-catalog + * member HTTP 409 derives (`HttpStatusErrorCodeMap[409]`, `api/errors.zod.ts`; + * no service extension code is registered for this) — and `status: 409`, + * and its message names **the window** that was asked for (the flow and + * its tick window) and **the claim** that refused it (the + * `sys_flow_dispatch` row: when the window was claimed and that the + * dispatch succeeded). A consumer asserts the refusal on `code` and + * `status`; the message is for the operator reading it. + * + * `options.force: true` is the only door past the refusal (option a2). + * Option a1 (refuse always, no door) and option a3 (send anyway, accept + * the duplicate silently) were considered on #14501 and **not** taken. + * + * @param name - Job name + * @param data - Optional data to pass to the handler + * @param options - {@link JobReplayOptions}; omitted is the pre-#14766 + * call and refuses a delivered window + * @throws `RESOURCE_CONFLICT` / 409 when the window's claim succeeded and + * `options.force` is not `true` + */ + replay?(name: string, data?: unknown, options?: JobReplayOptions): Promise; + /** + * List executions filtered by status across all jobs (admin/observability). + */ + listExecutionsByStatus?(status: JobExecution['status'], limit?: number): Promise; +} + +// ── IKV (interface) ── +interface IKV { + get(key: string): Promise | undefined>; + set(key: string, value: T, opts?: KVSetOptions): Promise>; + delete(key: string, opts?: { + ifVersion?: bigint; + }): Promise; + /** + * Compare-and-set convenience. Returns the new entry on success, or + * undefined if the precondition failed. + */ + cas(key: string, expectedVersion: bigint, next: T, opts?: Omit): Promise | undefined>; + close(): Promise; +} + +// ── IKnowledgeAdapter (interface) ── +interface IKnowledgeAdapter { + /** Stable adapter id used in `KnowledgeSource.adapter`. */ + readonly id: string; + /** Insert or replace documents in the adapter's backend. */ + upsert(docs: KnowledgeDocument[], ctx: AdapterContext): Promise; + /** Run a search query. Returns hits sorted by descending score. */ + search(query: string, opts: AdapterSearchOptions): Promise; + /** Remove documents by id. */ + delete(documentIds: string[], ctx: AdapterContext): Promise; + /** + * Optional liveness probe. When implemented, used by the service's + * health endpoint and Studio "test connection" actions. + */ + healthCheck?(): Promise<{ + ok: boolean; + message?: string; + }>; +} + +// ── IKnowledgeService (interface) ── +interface IKnowledgeService { + /** Register (or replace) an adapter under the given id. */ + registerAdapter(id: string, adapter: IKnowledgeAdapter): void; + /** Resolve an adapter by id. Throws when unknown. */ + getAdapter(id: string): IKnowledgeAdapter; + /** Enumerate registered adapter ids. */ + listAdapters(): string[]; + /** Register a logical knowledge source. */ + registerSource(source: KnowledgeSource): void; + /** Remove a registered source. Does not delete underlying data. */ + unregisterSource(sourceId: string): void; + /** Snapshot of registered sources (read-only). */ + listSources(): KnowledgeSource[]; + /** Look up a single source. Returns `undefined` when not registered. */ + getSource(sourceId: string): KnowledgeSource | undefined; + /** Index (insert or replace) a document into the source's adapter. */ + indexDocument(sourceId: string, doc: KnowledgeDocument): Promise; + /** Remove a document from the source's adapter. */ + deleteDocument(sourceId: string, documentId: string): Promise; + /** + * Bulk reindex a source from its declared origin. Object sources + * walk the underlying object via `IDataEngine`; file / http sources + * delegate to the adapter's own ingestion. + */ + reindexSource(sourceId: string, opts?: KnowledgeReindexOptions): Promise; + /** + * Run a search across one or more sources. Results are + * permission-filtered before being returned (see + * `KnowledgeSearchOptions.executionContext`). + */ + search(query: string, opts?: KnowledgeSearchOptions): Promise; +} + +// ── ILock (interface) ── +interface ILock { + /** + * Acquire `key`. Returns a `LockHandle` on success, or `null` if the + * lock is held and `waitMs` elapsed without it becoming free. + */ + acquire(key: string, opts?: LockAcquireOptions): Promise; + /** + * Run `fn` while holding `key`. Releases the lock automatically; on + * timeout returns `null` and never invokes `fn`. + */ + withLock(key: string, fn: (handle: LockHandle) => Promise, opts?: LockAcquireOptions): Promise; + /** Release driver resources. */ + close(): Promise; +} + +// ── IMetadataService (interface) ── +interface IMetadataService { + /** + * Register/save a metadata item by type. + * + * Announces the write to `subscribe(type, …)` watchers unless + * `options.notify === false` — see {@link MetadataWriteOptions.notify} + * before silencing it. + * + * ## The #7378 register contract (maintainer ruling 2026-08-12, three cells) + * + * `name` — the ARGUMENT — is what this item is stored under, and it is + * what {@link get}, {@link exists}, {@link listNames} and + * {@link unregister} address it by. The ruling closes the three ways an + * implementation used to bend that, and every shipped implementation + * enforces all three through one shared guard + * (`assertMetadataRegisterContract` / `canonicalMetadataServiceType`, + * `@objectstack/core` — its header carries the maintainer's verbatim + * ruling): + * + * - **A `data.name` disagreeing with the `name` argument is REFUSED + * loudly** — the standard catalog's `VALIDATION_ERROR`, status 400, a + * locating message naming the type, the argument and BOTH disagreeing + * spellings, and nothing stored. A disagreement is almost always an + * authoring bug, and resolving it silently in either direction can file + * the item under a key the caller never wrote. A document with NO + * `name` of its own registers under the argument — absence is not a + * disagreement. + * - **A non-object `data` is REFUSED** (primitives, `null`, arrays) — the + * same envelope — never accepted-and-dropped and never coerced into + * storability. `data` is declared `unknown`, so this is a runtime + * refusal, not a type error; arrays are refused with primitives because + * an array carries no document identity and `{ ...[a, b] }` is + * `{ 0: a, 1: b }` corruption. + * - **Type stores key on the CANONICAL type**: a plural manifest spelling + * folds to the singular metadata type name (`PLURAL_TO_SINGULAR`, + * `@objectstack/spec/shared`) before any store decision — converged + * with `check:meta-type-normalized`'s enforced direction — so + * `register('objects', n, d)` and `get('object', n)` address one store. + * + * This supersedes the 2026-08-11 option-(a) ruling (argument silently + * wins over a disagreeing `data.name`; non-object `data` accepted), which + * an earlier revision of this TSDoc stated as current. + * `METADATA_ROUNDTRIP_CASES` (`./metadata-service-roundtrip-conformance`) + * is the executable form of this section, replayed against the contract's + * own reference double and every shipped implementation. + * + * @param type - Metadata type (e.g. 'object', 'view', 'flow'); a plural spelling folds to the canonical singular + * @param name - Item name/identifier (snake_case) — the effective storage key + * @param data - The metadata definition to register: a plain object whose own `name`, if present, agrees with the `name` argument — anything else is refused + * @param options - Write options; `{ notify: false }` suppresses the watcher event + */ + register(type: string, name: string, data: unknown, options?: MetadataWriteOptions): Promise; + /** + * Register a metadata item in memory only — never persisted, never + * announced to `subscribe(type, …)` watchers. + * + * [#4251] Declared from the evidenced binding: `MetadataManager` + * implements it (`packages/metadata/src/metadata-manager.ts`) as the + * boot-time seeding primitive for source-control-owned artefacts that must + * be *listable* without leaking into the runtime DB store (`origin:'code'` + * datasources, ADR-0015 Addendum), and DefaultDatasourcePlugin calls it to + * surface the primary DB in Setup → Datasources (#3827). Optional: the + * in-memory registry is `MetadataManager`'s split, not something every + * occupant of the `metadata` slot must carry. + * + * @param type - Metadata type (e.g. 'datasource') + * @param name - Item name/identifier (snake_case) + * @param data - The metadata definition to register + */ + registerInMemory?(type: string, name: string, data: unknown): void; + /** + * Get a metadata item by type and name + * + * `name` is the key {@link register} was called with — the ARGUMENT. A + * `data.name` disagreeing with it is refused at register time (#7378, + * maintainer ruling 2026-08-12), so a stored document's own `name`, when + * it has one, always agrees with the key it is found under. `type` folds + * to the canonical singular spelling exactly as `register` folds it, so + * both spellings of a type address one store. See {@link register} for + * the full three-cell statement. + * + * `undefined` is AMBIGUOUS by construction — it means "not found" *and* + * "every loader that could hold it failed". Prefer {@link getDiagnosed} + * wherever the difference could change a decision (#5840). + * + * @param type - Metadata type + * @param name - Item name/identifier — the key `register` was called with + * @returns The metadata definition, or undefined if not found + */ + get(type: string, name: string): Promise; + /** + * Get a metadata item, and say whether the answer can be trusted as + * complete. Same distinction {@link loadDiagnosed} draws, on the read that + * consults the in-memory registry first (ADR-0110 D3). + * + * [#5840] Declared because the verdict was already being computed and then + * discarded: `MetadataManager` defines `get` as + * `(await getDiagnosed(…)).data`, so a MISS and an OUTAGE arrive at every + * consumer as the same `undefined`. A caller deciding whether something is + * ABSENT must check `degraded` — treating a degraded read as an absence is + * how an outage becomes an authorization answer, or a positive claim about + * what an author declared. + * + * Callers of `get` cannot substitute `loadDiagnosed`: that one walks only + * the loaders, so it would skip the in-memory registry and resolve + * different items. + * + * Optional: implementations that predate it simply cannot report the + * distinction, and a consumer that probes for it must keep reading `get` + * when it is absent. + */ + getDiagnosed?(type: string, name: string): Promise<{ + data: unknown | undefined; + degraded: boolean; + errors: string[]; + }>; + /** + * List all metadata items of a given type + * + * The returned array is AMBIGUOUS by construction, in the same way + * {@link get}'s `undefined` is: a short list means "that is all anyone + * declared" *and* "a loader that could hold more of them failed". Prefer + * {@link listDiagnosed} wherever the difference could change a decision, and + * especially before restating the array's LENGTH as a fact about the + * environment (#6504). + * + * ⚠️ **THIS READ PERFORMS NO OVERLAY MERGING (#8328).** It answers from the + * registry and this service's own loaders. It does **not** apply the + * `sys_metadata` customization overlay, which is merged one layer ABOVE + * this contract by the metadata protocol's `getMetaItems` /`getMetaItem` + * (per `(slot, package)`, org-scoped rows over env-wide ones). So after a + * runtime `PUT /api/v1/meta//` returns 200, this member keeps + * answering with the packaged/registered row while + * `GET /api/v1/meta/` serves the overridden one — same name, two + * answers, no local symptom. + * + * The trap is that nothing about the call site shows it: the type is the + * same, the shape is the same, and only the CONTENT is stale, and only when + * an override happens to exist. A consumer that must reflect runtime + * overrides has to read the protocol's merged listing instead; `list` is + * the right read for the registry/loader set itself, and for consumers that + * genuinely want the authored baseline. Measured on the MCP prompt bridge, + * which read `list('skill')` and served prompts an admin had already + * overridden through the meta API. + * + * Whether the merge BELONGS down here — so every `list()` consumer gets it + * rather than each one remembering to climb a layer — is a live contract + * question, deliberately left open rather than answered by this note; it is + * archived unscheduled and re-grades on real demand. + * + * @param type - Metadata type + * @returns Array of metadata definitions + */ + list(type: string): Promise; + /** + * List all metadata items of a given type, and say whether the answer can + * be trusted as complete. The plural counterpart of {@link getDiagnosed}, + * drawing the same ADR-0110 D3 distinction on the read that returns a set. + * + * [#6504] Declared for the reason {@link getDiagnosed} was, with one thing + * added that makes it sharper rather than merely analogous. On the singular + * read a MISS and an OUTAGE arrive as the same `undefined`; on the plural + * read they arrive as the same *array*, and an array carries a **count**. + * A count is the strongest positive claim a read can make — a consumer that + * renders `list(t).length` as "this environment contains N items" states, + * positively and numerically, something no read established. `list` cannot + * be fixed in place (every caller would have to change at once, and most + * are right to keep ignoring the verdict), so the verdict is offered + * alongside it, exactly as `getDiagnosed` is offered alongside `get`. + * + * `degraded` is true when at least one loader could not be read while the + * set was assembled, with those loaders' messages in `errors`. It says the + * set is known-PARTIAL — never that it is empty, and never that it is + * wrong: `items` is still the best-effort answer and is served as it always + * was. A consumer must not read `degraded` as a reason to withhold the + * items; it is a reason to withhold any claim of COMPLETENESS made on top + * of them. + * + * Optional, for the same reason its singular twin is: implementations that + * predate it simply cannot report the distinction, so a consumer that + * probes for it must keep reading {@link list} when it is absent — and a + * service without it reports nothing degraded, which is precisely what it + * could express. + * + * @param type - Metadata type + */ + listDiagnosed?(type: string): Promise<{ + items: unknown[]; + degraded: boolean; + errors: string[]; + }>; + /** + * Unregister/remove a metadata item by type and name. + * + * Announces the removal to `subscribe(type, …)` watchers as a `deleted` + * event unless `options.notify === false` — see + * {@link MetadataWriteOptions.notify} before silencing it. + * + * @param type - Metadata type + * @param name - Item name/identifier + * @param options - Write options; `{ notify: false }` suppresses the watcher event + */ + unregister(type: string, name: string, options?: MetadataWriteOptions): Promise; + /** + * Check if a metadata item exists + * @param type - Metadata type + * @param name - Item name/identifier + * @returns True if the item exists + */ + exists(type: string, name: string): Promise; + /** + * List all names of metadata items of a given type + * @param type - Metadata type + * @returns Array of item names + */ + listNames(type: string): Promise; + /** + * Convenience: get an object definition by name. + * Equivalent to `get('object', name)` — the same relationship the optional + * members of this family declare ({@link getView}, {@link getDashboard}). + * Every implementation this repo ships resolves the pair through one + * lookup: `MetadataManager.getObject` delegates to its own `get`; + * `createMemoryMetadata` reads the same `object` map from both; and + * `MetadataFacade.getObject` calls `SchemaRegistry.getObject`, which is + * also what `SchemaRegistry.getItem('object', …)` — and therefore the + * facade's own `get` — special-cases to, so both members hand back the + * identical object. + * + * What that lookup ANSWERS is the **runtime-effective** object: the object + * as the engine runs it, not the document its author wrote. On a + * `SchemaRegistry`-backed host the difference is material. The answer is + * the owning package's definition after the registry's materialization + * seam has run — system-column injection, primary-title designation, + * protection/provenance stamping — with every `extend` contribution from + * other packages merged in (`registerObject` → `resolveObject`). An object + * authored with one field comes back carrying the audit and ownership + * columns, `organization_id` on a multi-tenant host, a resolved + * `nameField`, and the extenders' fields. On a plain-store host + * (`MetadataManager`, `createMemoryMetadata`) there is no contribution + * layer to fold, so the effective object and the stored item coincide. + * + * Read the answer as the effective object in **both** cases. A consumer + * that needs the raw stored document — provenance, diffing an authored file + * against what is installed, round-tripping an edit — must not take this + * for one, and `get('object', name)` is not the escape hatch either: on a + * registry-backed host the per-package contributions are reachable only + * through `SchemaRegistry` itself, never through this contract. + * + * `undefined` carries the same ambiguity {@link get} documents — prefer + * {@link getDiagnosed} wherever "absent" and "could not be read" would lead + * to different decisions (#5840). + * + * [#6505] Written down because the silence was being paid for: #6055 + * declined to swap this resolver for `getDiagnosed('object', name)` and + * bought a second read on the miss path instead, rather than presume an + * equivalence the contract never made (Prime Directive #12). The + * effective-over-stored half is the contract-layer statement of the fork + * #6562 rules on for the HTTP meta read surface. + * + * @param name - Object name (snake_case) + * @returns The runtime-effective object definition, or undefined if not found + */ + getObject(name: string): Promise; + /** + * Convenience: list all object definitions + * + * Carries the same ambiguity {@link list} documents — a short answer may be + * an outage rather than a small environment (#6504). This member declares + * no equivalence to `list('object')`, so it has no diagnosed twin of its + * own: a consumer that needs the verdict asks {@link listDiagnosed} for it + * separately rather than presuming the two reads resolve the same set. That + * is the plural instance of the fork {@link getObject} records, and it is + * deliberately left as a fork rather than settled here. + * + * @returns Array of object definitions + */ + listObjects(): Promise; + /** + * Convenience: get a view definition by name + * Equivalent to get('view', name) + */ + getView?(name: string): Promise; + /** + * Convenience: list view definitions, optionally filtered by object + */ + listViews?(object?: string): Promise; + /** + * Convenience: get a dashboard definition by name + * Equivalent to get('dashboard', name) + */ + getDashboard?(name: string): Promise; + /** + * Convenience: list all dashboard definitions + */ + listDashboards?(): Promise; + /** + * Unregister all metadata items from a specific package + * @param packageName - The package name whose items should be removed + */ + unregisterPackage?(packageName: string): Promise; + /** + * Publish an entire package: + * 1. Validate all draft items (dependency check) + * 2. Snapshot all items in the package + * 3. Increment package version + * 4. Set all items state → active + * @param packageId - The package ID to publish + * @param options - Publish options + * @returns Publish result with version and item count + */ + publishPackage?(packageId: string, options?: { + changeNote?: string; + publishedBy?: string; + validate?: boolean; + }): Promise; + /** + * Revert entire package to last published state. + * Restores all metadata definitions from their published snapshots. + * @param packageId - The package ID to revert + */ + revertPackage?(packageId: string): Promise; + /** + * Get the published version of any metadata item (for runtime serving). + * Returns published_definition if exists, else current definition. + * @param type - Metadata type + * @param name - Item name/identifier + * @returns The published definition, or current definition if never published + */ + getPublished?(type: string, name: string): Promise; + /** + * Query metadata items with filtering, sorting, and pagination. + * Supports advanced search across all metadata types. + * @param query - Query parameters + * @returns Paginated query result + */ + query?(query: MetadataQuery): Promise; + /** + * Register multiple metadata items in a single batch. + * More efficient than individual register calls. + * + * [#4251] `options` also carries {@link MetadataWriteOptions} — the + * implementation has always intersected it in (`notify` is destructured on + * the first line of `MetadataManager.bulkRegister`), but the contract + * declared only the bulk knobs, so a caller typed to the contract could + * not reach the write options at all. Same shape as the `IDataEngine` + * read-methods gap: the erasures this issue sweeps are sometimes the + * contract's own doing. + * @param items - Array of { type, name, data } to register + * @param options - Bulk operation knobs plus the standard write options + * @returns Bulk operation result with success/failure counts + */ + bulkRegister?(items: Array<{ + type: string; + name: string; + data: unknown; + }>, options?: { + continueOnError?: boolean; + validate?: boolean; + } & MetadataWriteOptions): Promise; + /** + * Unregister multiple metadata items in a single batch. + * + * [#4251] `options` declared from the implementation's signature — + * `bulkRegister` beside it always had an options parameter while this one + * had none, and `MetadataManager.bulkUnregister` accepts it. + * @param items - Array of { type, name } to unregister + * @param options - Standard write options + * @returns Bulk operation result + */ + bulkUnregister?(items: Array<{ + type: string; + name: string; + }>, options?: MetadataWriteOptions): Promise; + /** + * Watch for metadata changes. + * @param type - Metadata type to watch (or '*' for all types) + * @param callback - Callback invoked when metadata changes + * @returns A handle to unsubscribe + */ + watch?(type: string, callback: MetadataWatchCallback): MetadataWatchHandle; + /** + * Subscribe to LOADER-level change events of a type, unsubscribing by + * calling the returned function. + * + * NOT {@link watch} with a different return shape: the two carry different + * events. `watch` reports registration-level transitions + * (`registered`/`updated`/`unregistered`); `subscribe` relays the loader + * pipeline's {@link MetadataWatchEvent} (`added`/`changed`/`deleted`, with + * path and file stats) — the granularity ObjectQLPlugin's metadata bridge + * re-syncs runtime-authored hooks/actions from. (The first draft of this + * member reused `watch`'s callback type; `MetadataManager implements + * IMetadataService` rejected it — the check working exactly as intended.) + * + * [#4251 B3] Declared from the implementation and its one cross-package + * caller, probed with `typeof … === 'function'`. Optional like `watch`: + * the in-memory fallback need not provide it, and the probe is the + * degraded path. + */ + subscribe?(type: string, callback: (event: MetadataWatchEvent) => void | Promise): () => void; + /** + * Load EVERY item of a type across all loaders — the bulk read the + * ObjectQLPlugin bridge boots from (hooks, actions), where {@link list} + * serves the registry index. + * + * [#4251 B3] Same evidence as {@link subscribe}: implemented by + * `MetadataManager.loadMany` since the bridge existed, reached through the + * slot only via `any`. `options` is the manager's load-options bag, + * engine-local in shape — declared `Record` here; the one + * caller passes nothing. + */ + loadMany?(type: string, options?: Record): Promise; + /** + * Export metadata as a portable bundle. + * @param options - Export options (types, namespaces, format) + * @returns Serialized metadata bundle + */ + exportMetadata?(options?: MetadataExportOptions): Promise; + /** + * Import metadata from a portable bundle. + * @param data - The metadata bundle to import + * @param options - Import options (conflict resolution, validation) + * @returns Import result with success/failure counts + */ + importMetadata?(data: unknown, options?: MetadataImportOptions): Promise; + /** + * Validate a metadata item against its type schema. + * @param type - Metadata type + * @param data - The metadata payload to validate + * @returns Validation result with errors and warnings + */ + validate?(type: string, data: unknown): Promise; + /** + * Get all registered metadata types. + * Includes both built-in types and custom types registered by plugins. + * @returns Array of type identifiers + */ + getRegisteredTypes?(): Promise; + /** + * Get detailed information about a metadata type. + * @param type - Metadata type identifier + * @returns Type info, or undefined if not registered + */ + getTypeInfo?(type: string): Promise; + /** + * Get metadata items that this item depends on. + * @param type - Metadata type + * @param name - Item name + * @returns Array of dependencies + */ + getDependencies?(type: string, name: string): Promise; + /** + * Get metadata items that depend on this item. + * Used for impact analysis before deletion. + * @param type - Metadata type + * @param name - Item name + * @returns Array of dependent items + */ + getDependents?(type: string, name: string): Promise; + /** + * Resolve a request's `method`+`path` to the declared `api` metadata item + * that owns it, or `undefined` when nothing declares it. + * + * This is the lookup the HTTP dispatcher performs between "no built-in + * domain claimed this path" and "answer a semantic 404" — the seam that + * makes a declared {@link ApiEndpoint} reachable at all. + * + * ## Contract (#5040 §2) + * + * - **Scope is the instance.** There is no environment parameter: callers + * already resolve the `metadata` service for the environment they are + * serving, exactly as every other metadata read in this contract does. + * Adding an env parameter here would create a second scoping mechanism. + * - **Matching dimensions.** `method` is compared case-insensitively (a + * request's verb normalized to upper case); `path` is compared as a + * WHOLE STRING, exactly, after trimming a trailing slash. 17.x performs + * no percent-decoding, no Unicode normalization and no case folding of + * the path — the raw string is the key. See + * {@link ApiEndpointMatch.params} for why no template syntax exists. + * - **The answer is parsed, never raw.** See + * {@link ApiEndpointMatch.endpoint}. + * - **Absence is a miss, not an error.** `undefined` means "no declaration + * owns this route"; an implementation that cannot read its store must + * throw rather than report a miss, because a miss becomes a 404 and an + * outage must not masquerade as one (same distinction as + * {@link loadDiagnosed}). + * + * [#5040 E1] Optional, and probed by consumers with + * `typeof svc.matchEndpoint === 'function'` — the same convention as + * {@link watch} / {@link subscribe}. An occupant of the `metadata` slot that + * carries no endpoint index simply omits it, and the dispatcher falls + * through to its existing not-found answer. + * + * @param query - The request coordinates to resolve (`path`, `method`) + * @returns The owning endpoint plus its path params, or `undefined` on a miss + */ + matchEndpoint?(query: { + path: string; + method: string; + }): Promise; + /** + * Get version history for a metadata item. + * Returns a timeline of all changes made to the item. + * @param type - Metadata type + * @param name - Item name + * @param options - Query options (limit, offset, filters) + * @returns History query result with version records + */ + getHistory?(type: string, name: string, options?: MetadataHistoryQueryOptions): Promise; + /** + * Rollback a metadata item to a specific version. + * Restores the metadata definition from the history snapshot. + * @param type - Metadata type + * @param name - Item name + * @param version - Target version to rollback to + * @param options - Rollback options + * @returns The restored metadata definition + */ + rollback?(type: string, name: string, version: number, options?: { + changeNote?: string; + recordedBy?: string; + }): Promise; + /** + * Compare two versions of a metadata item. + * Returns a diff showing what changed between versions. + * @param type - Metadata type + * @param name - Item name + * @param version1 - First version (older) + * @param version2 - Second version (newer) + * @returns Diff result with changes + */ + diff?(type: string, name: string, version1: number, version2: number): Promise; + /** + * Load one metadata item through the registered loaders, or `null`. + * + * [#4127 batch 4] Declared alongside {@link loadDiagnosed}, which the same + * call site reaches for first. `null` here is AMBIGUOUS by construction — + * `MetadataManager` defines this as `(await loadDiagnosed(…)).data`, so a + * miss and a total loader outage are the same answer. Prefer + * `loadDiagnosed` wherever the difference could change a decision. + */ + load?(type: string, name: string, options?: Record): Promise; + /** + * Load one metadata item, and say whether the answer can be trusted as + * complete. A MISS and an OUTAGE are different facts with opposite security + * meanings — a loader that throws is warn-logged and skipped, so a plain + * lookup cannot tell "this action does not exist" from "the store holding + * it is down" (ADR-0110 D3). + * + * `degraded` is true when at least one loader failed, with their messages + * in `errors`. A caller deciding whether something is ABSENT must check it: + * treating a degraded read as an absence is how an outage becomes an + * authorization answer. + * + * [#4127 batch 4] Implemented by `MetadataManager` — which defines plain + * `load` as `(await loadDiagnosed(…)).data` — and reached by the action + * resolver through `any`. Declared so the callers that need the + * distinction can see that it exists. + */ + loadDiagnosed?(type: string, name: string, options?: Record): Promise<{ + data: T | null; + degraded: boolean; + errors: string[]; + }>; +} + +// ── INotificationService (interface) ── +interface INotificationService { + /** + * Send a notification + * @param message - The notification message to send + * @returns Result indicating success or failure + */ + send(message: NotificationMessage): Promise; + /** + * Send multiple notifications in a batch + * @param messages - Array of notification messages + * @returns Array of results for each message + */ + sendBatch?(messages: NotificationMessage[]): Promise; + /** + * List available notification channels + * @returns Array of supported channel names + */ + getChannels?(): NotificationChannel[]; + /** + * List the user's in-app inbox, joined with read-state. + * + * [#4127] Declared here because the dispatcher's `/notifications` domain + * has always called it — three SDK-expressed routes (`notifications.list` + * / `.markRead` / `.markAllRead`) rest on this trio, while the contract + * described only the send half. The consequence was not academic: the dev + * notification stub implements `send` / `sendBatch` and nothing else + * *because it followed this file*, so the one implementation written to + * the contract was the one the domain had to duck-type past. + * + * OPTIONAL on purpose, and the runtime probe stays. An inbox needs a + * durable store (`service-messaging` joins `sys_notification` against its + * receipt spine); a send-only provider — SMTP, Twilio, a Slack webhook — + * fills this slot legitimately with no inbox at all. `handlerReady` cannot + * express that: the slot IS serveable, one capability of it is absent. So + * the domain still asks `typeof service.listInbox === 'function'` — but + * that is now a declared optional capability being probed, not a method + * invented at the call site. + * + * Shapes mirror the wire contract the domain serializes untouched — + * `ListNotificationsResponseSchema` / `MarkNotificationsReadResponseSchema` + * (`api/protocol.zod.ts`). + */ + listInbox?(userId: string, options?: InboxQuery): Promise; + /** + * Mark specific notifications read for this user. + * @param userId - Owner of the inbox + * @param ids - Notification ids to mark; unknown ids are ignored + */ + markRead?(userId: string, ids: readonly string[]): Promise; + /** + * Mark every unread notification in this user's inbox read. + * @param userId - Owner of the inbox + */ + markAllRead?(userId: string): Promise; +} + +// ── IObjectQLEngine (interface) ── +interface IObjectQLEngine extends IDataEngine { + /** + * The registered schema for an object, or `undefined` — the write + * guards' `managedBy` source. + * + * [#12481] Typed as the spec's registered-object type — the #11833 + * ruling's fork 3 as executed by #12248, one member over, applied by + * inheritance: `ObjectQL.getSchema` has always answered + * `ServiceObject | undefined` ({@link getObject} is literally its + * alias, `return this.getSchema(name)`), and `ServiceObject` lives in + * spec (`data/object.zod.ts`), so the header's "engine-local type" + * rationale for `unknown` no longer applied here either. While it said + * `unknown`, consumers re-narrowed through casts or `any` + * (`plugin-security`'s engine-owned write guard casting to its + * `EngineOwnedSchemaLike` slice, `runtime`'s route-action resolver, + * `metadata-core`'s structural field-presence probes, + * `service-messaging`'s outbox header-redaction read) — the #4251 + * drift shape this contract exists to end. Authored state (`z.input`, + * ADR-0122), matching {@link getObject}: the registry stores what was + * registered. + */ + getSchema(objectName: string): ServiceObject | undefined; + /** + * Engine-level alias of {@link EngineSchemaRegistryView.getObject} (the + * migration-flag reader's shape). + * + * [#12248] Typed as the spec's registered-object type — the #11833 + * ruling's fork 3. `ObjectQL.getObject` has always returned + * `ServiceObject | undefined` (it aliases `getSchema`), and `ServiceObject` + * lives in spec (`data/object.zod.ts`), so the header's "engine-local + * type" rationale for `unknown` no longer applied here. While it said + * `unknown`, at least three consumer packages re-invented the return + * structurally to read `fields` / `external` off it (`service-analytics`'s + * `DataEngineLike.getObject?`, `service-storage`'s `FileReferenceEngine`, + * the registry-view readers above) — the #4251 drift shape this contract + * exists to end. + */ + getObject(name: string): ServiceObject | undefined; + /** The schema registry — see {@link EngineSchemaRegistryView}. */ + readonly registry: EngineSchemaRegistryView; + registerAction(objectName: string, actionName: string, handler: (ctx: any) => Promise | any, packageName?: string): void; + removeActionsByPackage(packageName: string): void; + /** The dispatcher's action path — one of the two members `getObjectQL` was recorded as needing. */ + executeAction(objectName: string, actionName: string, ctx: any): Promise; + /** + * Register a code-path hook. + * + * `object` is an ALLOW list (absent = global, `'*'` = every object); + * `excludeObjects` subtracts from whatever that admits, so the scope a + * registration expresses is + * `matches(entry, X) = allowMatches(entry, X) && !excludeMatches(entry, X)`. + * + * The subtraction half exists because an allow list cannot express "global, + * except these" over an OPEN universe (#5928): `/meta` PUT registers new + * objects into a live engine, so a registrant that enumerated the complement + * of its skip list would silently stop covering every object created after + * boot — the compliance-relevant direction of that failure is what ruled the + * enumerate-the-complement option out. Declared here rather than left to a + * predicate callback so the scope stays static, printable in the + * registration log, and introspectable. + * + * NOT mirrored onto the authorable `HookSchema` (`data/hook.zod.ts`): the + * consumer is plugin code, and no metadata author needs "global minus a + * list" today. + */ + registerHook(event: string, handler: (context: any) => Promise | void, options?: { + object?: string | string[]; + /** Object name(s) subtracted from `object`'s admitted set (#5928). */ + excludeObjects?: string | string[]; + priority?: number; + packageId?: string; + }): void; + unregisterHooksByPackage(packageId: string): number; + /** + * The third parameter is the owning `packageId`, or a record that also + * carries what the function DECLARES about itself (#4396) — today its data + * `effect`, which a `script` node reads back to report its run honestly. + */ + registerFunction(name: string, handler: (context: any) => Promise | void, packageIdOrOptions?: string | { + packageId?: string; + effect?: FlowFunctionEffect; + }): void; + registerMiddleware(fn: (opCtx: any, next: () => Promise) => Promise, options?: { + object?: string; + }): void; + /** Bind declarative Hook metadata — AppPlugin's app-bundle path. */ + bindHooks(hooks: unknown[] | undefined, opts?: { + packageId?: string; + /** Handlers, or declaration records stating each function's effect (#4396). */ + functions?: Record; + bodyRunner?: unknown; + strict?: boolean; + warnLegacyHandler?: boolean; + metrics?: unknown; + }): void; + setDefaultBodyRunner(runner: any): boolean; + getDefaultBodyRunner(): any; + setDefaultActionRunner(runner: (actionDef: any) => ((ctx: any) => Promise) | undefined): boolean; + getDefaultActionRunner(): ((actionDef: any) => ((ctx: any) => Promise) | undefined) | undefined; + setHookMetricsRecorder(recorder: unknown): void; + getHookMetricsRecorder(): any; + /** Register a driver; the optional second argument makes it the default. */ + registerDriver(driver: IDataDriver, isDefault?: boolean): void; + /** + * Evict a driver from the registry — `registerDriver`'s removal counterpart + * (#13578). Returns `true` when an entry was removed. + * + * Declared here because its ABSENCE was the defect: the registry had a + * registration door and no eviction door, so a datasource deleted through + * the admin API left its driver instance registered and the readiness probe + * (`checkDriversHealth`) kept reporting it until the process restarted. + * + * Evicting only stops this engine routing to the driver. It does NOT + * disconnect the pool — teardown belongs to whoever owns the pool, which + * for an adopted host-owned instance is not this engine (ADR-0062 D5). + */ + unregisterDriver(name: string): boolean; + /** Install the stack's datasource-mapping rules. Rule shape is engine-local; see `setDatasourceMapping` on the class. */ + setDatasourceMapping(rules: unknown[]): void; + /** Register an app/plugin manifest (objects, apps, metadata items) — MetadataProtocolPlugin's table-provisioning path. */ + registerApp(manifest: any): void; + /** Per-driver health probe — the readiness gate's source. A driver with no probe reports healthy. */ + checkDriversHealth(opts?: { + timeoutMs?: number; + }): Promise>; + /** True when this boot created the datastore from empty — platform-objects' fresh-datastore attestation. */ + wasDatastoreCreatedFromEmpty(): boolean; + /** Drop the memoized migration-flag reads (the attestation may race a fast boot's first read). */ + invalidateDataMigrationFlags(): void; + /** + * Run `callback` inside ONE driver transaction — the ADR-0034 ambient + * transaction. The callback receives a context carrying the handle, which + * callers thread to downstream engine calls as `{ context: trxCtx }`; + * operations issued during the callback ALSO bind to it ambiently + * (`AsyncLocalStorage`), so hook bodies, validation predicates and internal + * reference reads reuse the transaction's connection without threading it + * by hand. Commit on resolve, rollback and re-throw on reject. A nested + * call JOINS the open transaction rather than opening a second one, leaving + * the outermost caller the sole owner of commit/rollback (ADR-0067 D2). + * + * Declared here under this file's evidence bar — three cross-package + * consumers already call it through the slot, each having reached around + * the type system to do so: the metadata protocol's atomic publish + * (`publishPackageDrafts`) and its `transactionalBatch` discovery probe, + * and the sys-metadata repository's `withTxn`. REQUIRED per this file's + * header; callers that tolerate test doubles keep their runtime + * `typeof === 'function'` probes, which types do not replace. + * + * ## The transaction still covers ONE datasource — but no longer silently + * + * A transaction is opened on the DEFAULT driver and covers only that + * driver's connection; cross-driver atomicity is NOT provided (no + * two-phase commit — deliberately out of scope, #4619). What changes with + * #5696/#5351 is what happens to a write inside the transaction that + * routes somewhere else. Until v17 the engine handed the OTHER driver the + * default driver's transaction handle unconditionally, so the statement + * executed on the wrong connection — the text here used to say such writes + * ran "outside" the transaction, which measurement disproved (#5351: on a + * real SQL driver the write reached a database that has no such table, and + * the row was lost with only a log line behind it). The engine now compares + * the resolved driver against the transaction's OWNER (by instance + * identity) and takes one of two paths: + * + * - **Business writes are REFUSED**, loudly and by name, instead of + * silently partially committing. The caller chooses explicitly: keep the + * objects of one transaction on one datasource, or split the work into + * per-datasource units and reconcile them. Refusing is the point — a + * caller who asked for atomicity must not be handed best-effort without + * being told (the same posture as `batchData`'s atomic gate). + * - **System writes carved out (#5351)**: objects whose `lifecycle.class` + * is `audit` / `telemetry` / `event` — the append-only ledgers ADR-0057 + * §3.6 routes to a dedicated datasource — are executed OUTSIDE the + * ambient transaction, on their own connection, with NO handle from + * another driver. They therefore SURVIVE a rollback of the business + * transaction ("orphan rows"): an audit row may describe a write that was + * rolled back. That is the deliberate direction of error for an + * append-only compliance ledger — an extra reconcilable row beats a + * missing row for a write that DID commit — and it is what lets a hook + * author write an ordinary `afterInsert` audit hook without knowing + * datasource routing exists. Recorded in the ADR-0067/ADR-0119 revision. + * + * ## The degrade is now a caller's choice, not a fixed caveat + * + * When the default driver has no `beginTransaction`, the callback still + * runs with NO transaction and NO rollback (warning once) — unchanged, and + * still declared. `opts.require: true` turns that degrade into a THROW for + * callers who cannot tolerate it; see {@link EngineTransactionOptions}. + * + * ## The callback is told whether it owns the transaction + * + * The second callback argument carries `owned` — `true` when this call + * opened the transaction, `false` when it joined an outer one (ADR-0067 + * D2). See {@link EngineTransactionInfo}. Existing one-argument callbacks + * are unaffected. + * + * `trxCtx`/`baseContext` are the engine-local execution-context shape, left + * loose here per this file's edge-typing rule; consumers narrow at the call + * site. + */ + transaction(callback: (trxCtx: any, info: EngineTransactionInfo) => Promise, baseContext?: any, opts?: EngineTransactionOptions): Promise; +} + +// ── IPackageService (interface) ── +interface IPackageService { + /** + * Install a package with full lifecycle checks. + * Validates dependencies, platform compatibility, and namespace availability. + * @param input - Installation parameters + * @returns Installed package with resolution details + */ + install(input: InstallPackageInput): Promise; + /** + * Uninstall a package by ID. + * @param packageId - Package to uninstall + * @returns Whether uninstall succeeded + */ + uninstall(packageId: string): Promise<{ + success: boolean; + message?: string; + }>; + /** + * Get an installed package by ID. + * @param packageId - Package identifier + * @returns Installed package or null + */ + getPackage(packageId: string): Promise; + /** + * List all installed packages. + * @param options - Optional filter criteria + * @returns Array of installed packages + */ + listPackages(options?: { + status?: string; + enabled?: boolean; + }): Promise; + /** + * Resolve dependencies for a package manifest. + * Performs topological sort, conflict detection, and platform compatibility checks. + * @param input - Resolution parameters + * @returns Full dependency resolution result + */ + resolveDependencies(input: ResolveDependenciesInput): Promise; + /** + * Check namespace availability before installation. + * @param input - Namespaces to check + * @returns Availability result with any conflicts + */ + checkNamespaces(input: CheckNamespaceInput): Promise; + /** + * Generate an upgrade plan (preview without executing). + * Analyzes metadata diff, impact level, migration requirements, + * and dependency cascades. + * @param input - Upgrade planning parameters + * @returns Upgrade plan with impact analysis + */ + planUpgrade(input: PlanUpgradeInput): Promise; + /** + * Execute a package upgrade with optional snapshot and rollback support. + * @param input - Upgrade execution parameters + * @returns Upgrade response with phase, plan, and conflicts + */ + upgrade(input: ExecuteUpgradeInput): Promise; + /** + * Rollback a package to a previous snapshot. + * @param input - Rollback parameters + * @returns Rollback result + */ + rollback(input: RollbackInput): Promise; + /** + * Get an upgrade snapshot by ID. + * @param snapshotId - Snapshot identifier + * @returns Snapshot or null + */ + getSnapshot?(snapshotId: string): Promise; + /** + * Upload a package artifact to the registry. + * Validates checksums, signatures, and artifact structure. + * @param input - Upload parameters + * @returns Upload result + */ + uploadArtifact?(input: UploadArtifactInput): Promise; + /** + * Enable or disable an installed package. + * @param packageId - Package identifier + * @param enabled - Whether to enable or disable + * @returns Updated package state + */ + togglePackage?(packageId: string, enabled: boolean): Promise; +} + +// ── IPluginLifecycleEvents (interface) ── +interface IPluginLifecycleEvents { + /** + * Emitted when kernel is ready (all plugins initialized). + * + * Fired by `ObjectKernel.start()` and `LiteKernel.bootstrap()` after every + * plugin's `start()` has completed. Handlers run sequentially in plugin + * registration order — see `kernel:bootstrapped` for the ordering caveat. + * + * Payload: [] + */ + 'kernel:ready': []; + /** + * Emitted AFTER every `kernel:ready` handler has completed, but BEFORE + * `kernel:listening` (so before any HTTP socket opens). + * + * This is the "all synchronous bootstrap has settled" anchor. Because + * `kernel:ready` handlers run sequentially in plugin-registration order, + * a handler cannot rely on data produced by a plugin that starts later + * (e.g. the security bootstrap seeds `sys_position`, the app plugin's + * seed loader inserts records) — reconcile/backfill work that consumes + * that data would race the very rows it needs. Do such work here instead: + * every producer's `kernel:ready` handler has finished by the time this + * fires. HTTP `listen()` is deliberately deferred one more phase to + * `kernel:listening` so late route registration still lands. + * + * CAVEAT: this does NOT guarantee app *seed* data has settled. The app + * plugin's inline seed only blocks the kernel for `OS_INLINE_SEED_BUDGET_MS` + * (default 8s); a bundle that exceeds that budget continues seeding in the + * background and can outlast `kernel:bootstrapped` and even `kernel:listening` + * (#2996). Subscribe `app:seeded` for the true per-app seed-settle point. + * + * Payload: [] + */ + 'kernel:bootstrapped': []; + /** + * Emitted AFTER all `kernel:ready` and `kernel:bootstrapped` handlers + * have completed. + * + * Use this hook for actions that must happen *strictly after* every + * other plugin has had a chance to register routes / services / + * middleware during `kernel:ready` — most notably HTTP server + * `listen()`. + * + * Why a separate phase: route registration in Hono (and similar + * routers) seals the matcher the first time a request is matched. + * If a server starts listening during `kernel:ready` while sibling + * plugins are still adding routes in their own `kernel:ready` + * hooks, an inbound request can build the matcher mid-init and + * subsequent `app.get(...)` calls throw "matcher is already built". + * On a fast-fronting platform (e.g. Cloudflare Containers) this + * race fires on every cold boot. + * + * Payload: [] + */ + 'kernel:listening': []; + /** + * Emitted when kernel is shutting down, before plugins are destroyed. + * + * Payload: [] + */ + 'kernel:shutdown': []; + /** + * Emitted by the app plugin when an app's inline seed attempt has settled + * — success, partial (dropped records), or fallback insert. Single-tenant + * mode only, and only when the app actually has seed datasets. + * + * When the inline seed completes within `OS_INLINE_SEED_BUDGET_MS` this + * fires during plugin start (before `kernel:ready`); when it overruns the + * budget and finishes in the background it fires AFTER `kernel:ready` / + * `kernel:bootstrapped` / `kernel:listening` — `overBudget` distinguishes + * the two. May fire once per registered app bundle. + * + * Consumers MUST be idempotent: this is the settle signal for reconcilers + * that read seeded rows. plugin-auth re-runs the ADR-0093 D6 membership + * backfill here so users inserted by an over-budget seed (which bypass + * better-auth's `user.create.after` reconciler) still get bound to the + * default org without waiting for the next restart (#2996). + * + * Payload: [{ appId, overBudget }] + */ + 'app:seeded': [payload: { + appId: string; + overBudget: boolean; + }]; + /** + * Emitted by the metadata plugin's artifact watcher after a changed + * `dist/objectstack.json` has been re-parsed and re-registered mid-run. + * + * `changed` entries are `'{type}/{name}'` strings (e.g. + * `'flow/ticket_closed'`). `metadata`, when present, carries the freshly + * parsed artifact collections so subscribers can consume the ones that + * never reach the MetadataManager (seed datasets under `data` have no + * `name`). The app plugin uses it to load seeds for objects that appear + * mid-run. The collections shape is owned by `@objectstack/metadata`; the + * spec keeps it opaque. + * + * Payload: [{ changed, metadata? }] + */ + 'metadata:reloaded': [payload: { + changed: string[]; + metadata?: unknown; + }]; + /** + * Emitted by `@objectstack/plugin-auth` while assembling its better-auth + * config, BEFORE the auth instance is created. The open extension point + * for packages that contribute auth providers (enterprise SSO, hosted + * control-plane SSO, …) without forking the auth plugin: handlers mutate + * the draft config in place. Both payload types are owned by plugin-auth; + * the spec keeps them opaque. + * + * Payload: [authConfig, ctx] + */ + 'auth:configure': [authConfig: unknown, ctx: unknown]; + /** + * Emitted by `@objectstack/mcp` once its server runtime is constructed + * and tools are registered. Payload: the live `MCPServerRuntime`. + * + * Payload: [runtime] + */ + 'mcp:ready': [runtime: unknown]; + /** + * Emitted by `@objectstack/service-automation` at start, once the flow + * engine is ready. Payload: the live automation engine. + * + * Payload: [engine] + */ + 'automation:ready': [engine: unknown]; + /** + * Emitted by `@objectstack/service-analytics` at start. Payload: the live + * analytics service. + * + * Payload: [service] + */ + 'analytics:ready': [service: unknown]; + /** + * Emitted by `@objectstack/service-datasource` at start. Payload: the + * live external-datasource service. + * + * Payload: [service] + */ + 'external-datasource:ready': [service: unknown]; + /** + * Emitted by `@objectstack/service-datasource`'s admin plugin at start. + * Payload: the live datasource-admin service. + * + * Payload: [service] + */ + 'datasource-admin:ready': [service: unknown]; + /** + * Emitted by the external-validation plugin's background drift checker + * (ADR-0015 §5.2), one event per federated object whose remote schema no + * longer matches its declared shape. Consumed by audit / notification + * services. `diffs` entries are `SchemaDiffEntry` values owned by + * `@objectstack/runtime`; the spec keeps them opaque. + * + * Payload: [{ datasource, object, diffs }] + */ + 'external.schema.drift': [ + event: { + datasource: string; + object: string; + diffs: unknown[]; + } + ]; + /** + * Emitted by the cloud AI service plugin (out-of-repo emitter) with the + * dynamic `RouteDefinition[]` it wants mounted; the dispatcher plugin + * listens and mounts each route on the HTTP server (environment-scoped + * variants included). Because plugin start order is not guaranteed, the + * emitter also caches the routes on the kernel as `__aiRoutes` for the + * dispatcher to recover when it starts late — see + * `DispatcherPlugin` for the recovery half of the protocol. + * + * Payload: [routes] + */ + 'ai:routes': [routes: unknown[]]; +} + +// ── IPluginValidator (interface) ── +interface IPluginValidator { + /** + * Validate a plugin object structure + * @param plugin - Plugin to validate + * @returns Validation result + */ + validate(plugin: unknown): ValidationResult; + /** + * Validate plugin version format (semver) + * @param version - Version string to validate + * @returns True if version is valid, false otherwise + */ + validateVersion(version: string): boolean; + /** + * Validate plugin cryptographic signature (optional) + * Used for plugin security verification + * @param plugin - Plugin to validate + * @returns Promise resolving to true if signature is valid + */ + validateSignature?(plugin: Plugin): Promise; + /** + * Validate plugin dependencies are satisfied + * @param plugin - Plugin to validate + * @param registry - Map of already registered plugins + * @throws Error if dependencies are not satisfied + */ + validateDependencies(plugin: Plugin, registry: Map): void; + /** + * Validate plugin has required lifecycle methods + * @param plugin - Plugin to validate + * @returns True if plugin has valid lifecycle methods + */ + validateLifecycle?(plugin: Plugin): boolean; +} + +// ── IPubSub (interface) ── +interface IPubSub { + publish(channel: string, payload: T, opts?: PublishOptions): Promise; + subscribe(channel: string, handler: PubSubHandler, opts?: SubscribeOptions): Unsubscribe; + /** Release any underlying resources (sockets, listeners). Idempotent. */ + close(): Promise; +} + +// ── IQueueService (interface) ── +interface IQueueService { + /** + * Publish a message to a named queue + * @param queue - Queue name + * @param data - Message payload + * @param options - Publish options (delay, priority, retries) + * @returns The message identifier + */ + publish(queue: string, data: T, options?: QueuePublishOptions): Promise; + /** + * Subscribe to messages from a named queue + * @param queue - Queue name + * @param handler - Message handler function + */ + subscribe(queue: string, handler: QueueHandler): Promise; + /** + * Unsubscribe from a named queue + * @param queue - Queue name + */ + unsubscribe(queue: string): Promise; + /** + * Get the number of messages waiting in a queue + * @param queue - Queue name + * @returns Number of pending messages + */ + getQueueSize?(queue: string): Promise; + /** + * Purge all messages from a queue + * @param queue - Queue name + */ + purge?(queue: string): Promise; + /** + * List messages currently in the dead-letter state. + * @param queue - Optional queue filter; omit for cross-queue listing + * @param options - Pagination / limit + */ + listFailed?(queue?: string, options?: { + limit?: number; + offset?: number; + }): Promise; + /** + * Move a DLQ message back to pending so a worker re-processes it. + * Resets `attempts` and clears `lastError`. Throws if the message + * does not exist or is not in 'dlq' status. + */ + replay?(messageId: string): Promise; + /** + * Permanently remove a message in the 'dlq' or 'failed' state. + */ + purgeFailed?(messageId: string): Promise; +} + +// ── IRealtimeService (interface) ── +interface IRealtimeService { + /** + * Publish an event to all subscribers + * @param event - The event to publish + */ + publish(event: RealtimeEventPayload): Promise; + /** + * Subscribe to realtime events + * @param channel - Channel/topic name + * @param handler - Event handler function + * @param options - Optional subscription filters + * @returns Subscription identifier for unsubscribing + */ + subscribe(channel: string, handler: RealtimeEventHandler, options?: RealtimeSubscriptionOptions): Promise; + /** + * Unsubscribe from a channel + * @param subscriptionId - Subscription identifier returned by subscribe() + */ + unsubscribe(subscriptionId: string): Promise; + /** + * Handle an incoming HTTP upgrade request (WebSocket handshake) + * + * ⚠️ Deliberately UNIMPLEMENTED platform-wide: implementing this hands + * external clients the unauthorized fan-out described on the interface — + * satisfy the identity-admission requirement above first (#2992). + * + * @param request - Standard Request object + * @returns Standard Response object + */ + handleUpgrade?(request: Request): Promise; + /** + * The path clients connect to for this service's **mounted** channel, or + * `undefined`/absent when nothing is mounted. + * + * [#14646] This is the producer half of the one definition of a + * subscribable channel (`isSubscribableChannel`, `@objectstack/spec/api`): + * discovery advertises `services.realtime` — `route`, `handlerReady`, + * `enabled` — and `capabilities.websockets` from this one answer, because + * no open-core producer mounts a realtime transport and therefore neither + * discovery builder can supply the route out of its own route table. Only + * an implementation that really serves a transport knows where a host put + * it. + * + * Deliberately about the *channel*, not about a handshake: SSE mounts a + * plain GET and never upgrades, so gating on {@link handleUpgrade} would + * have refused a legitimate transport. + * + * ⛔ Return a route ONLY when requests to it are actually served. A route + * named here is advertised verbatim, so naming an unserved one re-creates + * the `declared ≠ enforced` gap ADR-0076 D12 exists to close — the same + * defect, one layer up, that made discovery advertise a realtime service + * with no surface in the first place. + * + * Not implemented by `@objectstack/service-realtime`: it is an in-process + * pub/sub bus with no wire surface (maintainer ruling A, 2026-09-04 — + * realtime stays out of open core), so on a stock boot discovery reports + * `enabled: false` and there is nothing to subscribe to. + * + * @returns the mounted channel path (e.g. `/api/v1/realtime`), or `undefined` + */ + getChannelRoute?(): string | undefined; + /** + * Subscribe to metadata events (convenience method) + * @param filter - Subscription filter + * @param handler - Event handler function + * @returns Subscription identifier for unsubscribing + */ + subscribeMetadata?(filter: RealtimeSubscriptionFilter, handler: RealtimeEventHandler): Promise; + /** + * Subscribe to data events (convenience method) + * @param filter - Subscription filter + * @param handler - Event handler function + * @returns Subscription identifier for unsubscribing + */ + subscribeData?(filter: RealtimeSubscriptionFilter, handler: RealtimeEventHandler): Promise; +} + +// ── IReportService (interface) ── +interface IReportService { + /** Execute a report by id. */ + run(reportId: string, context: ExecutionContext): Promise; + /** Execute an ad-hoc report from an in-memory definition. */ + runAdHoc(input: SaveReportInput, context: ExecutionContext): Promise; + /** Upsert a saved report. Returns the persisted row. */ + saveReport(input: SaveReportInput, context: ExecutionContext): Promise; + /** List saved reports — optionally filtered by object. */ + listReports(filter: { + object?: string; + ownerId?: string; + } | undefined, context: ExecutionContext): Promise; + /** Get a saved report by id. */ + getReport(reportId: string, context: ExecutionContext): Promise; + /** Delete a saved report by id (and any attached schedules). */ + deleteReport(reportId: string, context: ExecutionContext): Promise; + /** Create or update a schedule. */ + scheduleReport(input: ScheduleReportInput, context: ExecutionContext): Promise; + /** + * Remove a schedule by id. + * + * MUST reject every schedule the caller cannot see with the SAME + * `REPORT_NOT_FOUND: ` error — one that does not exist and one + * owned by somebody else alike — and MUST take that decision before the + * delete fires. Resolving quietly for the unknown id (the "idempotent + * delete" reflex) while throwing for the cross-owner id is what makes + * `DELETE /reports/schedules/:scheduleId` an enumeration oracle over other + * owners' schedule ids: the caller can delete neither, but learns which of + * the two they hit (#7603 — #7523 is the same defect on `deleteReport`). + * + * The obligation is stated here because it cannot be enforced at the route. + * `deleteReport`'s two arms are pre-empted by `getReport`, which is already + * blind to the same difference (#2980); this contract has no by-id schedule + * read to do that with — `listSchedules` is keyed by reportId — so a caller + * holding only a scheduleId depends on the implementation to blind itself. + */ + unscheduleReport(scheduleId: string, context: ExecutionContext): Promise; + /** List schedules — optionally filtered by report. */ + listSchedules(filter: { + reportId?: string; + } | undefined, context: ExecutionContext): Promise; + /** + * Fire any schedules whose `next_run_at <= now`. The plugin invokes + * this from a tick job; integrators can also call it manually from + * a test or admin endpoint. + */ + dispatchDue(now?: Date): Promise<{ + fired: number; + failed: number; + skipped: number; + }>; +} + +// ── IRlsMembershipResolver (interface) ── +interface IRlsMembershipResolver { + /** + * The `current_user.*` keys this resolver owns. Declared up front so the seam + * is auditable and a policy referencing an unowned key is distinguishable + * from a typo. Keys are `snake_case` and must not collide with the named + * context fields (`id`, `organization_id`, `positions`, `org_user_ids`, + * `accessible_org_ids`, `email`) — the compiler never lets a membership key + * clobber those. + */ + readonly keys: readonly string[]; + /** + * Resolve this request's sets. Returning a subset of {@link keys} is fine — + * an unresolved key simply makes its policies drop out (fail closed). + * + * MUST NOT throw for an ordinary miss; a throw is treated as "resolved + * nothing", with the same fail-closed outcome. + */ + resolve(context: RlsMembershipContext): Promise>; +} + +// ── ISchemaDiffService (interface) ── +interface ISchemaDiffService { + /** + * Introspect the current database schema. + * Reads table definitions, columns, indexes from the live database. + * + * @param driver - Data driver to introspect + * @returns Current schema representation + */ + introspect(driver: unknown): Promise; + /** + * Compute the diff between current schema and desired object definitions. + * + * @param current - Introspected current schema + * @param desired - Desired ObjectStack object definitions + * @returns Schema diff describing all changes + */ + diff(current: IntrospectedSchema, desired: Record[]): DeployDiff; + /** + * Generate SQL migration statements from a schema diff. + * Output is dialect-specific (PostgreSQL, SQLite, etc.). + * + * @param diff - Schema diff to generate migrations for + * @param dialect - Target SQL dialect + * @returns Ordered migration plan + */ + generateMigrations(diff: DeployDiff, dialect: SQLDialect): MigrationPlan; + /** + * Apply a migration plan to the database. + * Executes statements in order within a transaction (when supported). + * + * @param driver - Data driver to apply migrations to + * @param plan - Migration plan to execute + * @returns Apply result with success status and timing + */ + applyMigrations(driver: unknown, plan: MigrationPlan): Promise; +} + +// ── ISchemaDriver (interface) ── +interface ISchemaDriver { + createCollection(objectName: string, schema?: DataObject): Promise; + dropCollection(objectName: string): Promise; + addColumn(objectName: string, fieldName: string, field: DataField): Promise; + modifyColumn(objectName: string, fieldName: string, field: DataField): Promise; + dropColumn(objectName: string, fieldName: string): Promise; + createIndex(objectName: string, indexName: string, fields: string[]): Promise; + dropIndex(objectName: string, indexName: string): Promise; + executeRaw(statement: string): Promise; +} + +// ── IScopedContext (interface) ── +interface IScopedContext { + /** The repository for `name`, bound to this context. */ + object(name: string): IScopedObjectRepository; + /** + * Run `callback` inside one driver transaction: committed when it returns, + * rolled back when it throws. + * + * The callback receives a NEW `IScopedContext` whose operations share the + * transaction handle — reach objects through THAT context (`tx.object(…)`), + * not the outer one, or the writes land outside the transaction. + * + * ## Why the callback's second parameter is declared even though no corpus + * site reads it + * + * The evidence bar above governs WHICH MEMBERS exist, not what a declared + * member's signature is allowed to say. A parameter list describes what the + * PRODUCER hands the callback, and the producer hands it two arguments + * unconditionally (`ScopedContext.transaction`, #5696): declaring one would + * be a false statement that additionally makes `async (tx, info) => …` + * — legal, working code — a compile error. Contravariance means the + * zero-argument and one-argument callbacks the corpus actually writes still + * satisfy this, so the truthful signature is also the more permissive one. + * {@link EngineTransactionInfo} is reused rather than re-spelled, for the + * same reason `opts` is: ADR-0119 D1 and #5696 rule that this surface is a + * second IMPLEMENTATION of `IObjectQLEngine.transaction`, never a second + * DIALECT of it — `opts.require`'s fail-closed refusal is honoured here + * identically, and a contract that omitted it would re-open in declaration + * the dialect the implementation was made to close. + */ + transaction(callback: (trxCtx: IScopedContext, info: EngineTransactionInfo) => Promise, opts?: EngineTransactionOptions): Promise; +} + +// ── IScopedObjectRepository (interface) ── +interface IScopedObjectRepository { + /** + * Read every record the query selects. + * + * An unpredicated `find` is legitimate — returning every row is an honest + * answer to a question that asked for every row. + */ + find(query?: Record): Promise; + /** + * Read the ONE record the query selects, or `null`. + * + * The query MUST say which record it wants — a `where`, a `search` that + * expands to one, or an `orderBy` meaning "the first in this order". A + * query with none of those is REJECTED at runtime (#4419): `findOne` reads + * a single row, so an empty predicate does not come back empty, it comes + * back as the object's FIRST row — a real, plausible-looking record with + * nothing to do with what was asked, which no `if (!row)` can catch. When + * any row genuinely will do, that is `find({ limit: 1 })`, which says so. + */ + findOne(query?: Record): Promise | null>; + /** Count the records the query selects. */ + count(query?: Record): Promise; + /** Insert one record (or an array of records). */ + insert(data: any): Promise; + /** + * Update records. + * + * The single-record form puts the primary key INSIDE `data` — + * `update({ id, ...fieldsToChange })` — because the repository reads the + * key out of the payload. The bulk form is `update(data, { where, multi: true })`; + * there is no `updateMany`. + */ + update(data: any, options?: Record): Promise | number | null>; + /** + * Update a single record by id — the id travels as the first argument. + * + * Answers the written record, or `null` when the id matched nothing. This + * is the `update` by-id exit and nothing else: the implementation binds + * both the payload id and a pure-id `where` and never declares `multi`, so + * `resolveEngineUpdateDispatch` returns `by-id` for every call this + * signature admits, and the `number` limb `update` carries — the + * affected-row COUNT a predicate write resolves (#4639) — is unreachable + * from here. One door down, `IDataDriver.update(object, id, data)` declares + * exactly `Promise | null>`. + * + * ⚠️ A falsy id is not a narrower answer, it is a REFUSAL: `0` and `''` + * identify no row, so the dispatch rejects and the call throws rather than + * resolving `null`. + */ + updateById(id: string | number, data: any): Promise | null>; +} + +// ── ISearchService (interface) ── +interface ISearchService { + /** + * Index a document for search + * @param object - Object/collection name + * @param id - Document identifier + * @param document - Document data to index + */ + index(object: string, id: string, document: Record): Promise; + /** + * Remove a document from the search index + * @param object - Object/collection name + * @param id - Document identifier + */ + remove(object: string, id: string): Promise; + /** + * Search for documents + * @param object - Object/collection name + * @param query - Search query string + * @param options - Search options (filters, pagination, etc.) + * @returns Search results with hits, total count, and optional facets + */ + search(object: string, query: string, options?: SearchOptions): Promise; + /** + * Bulk index multiple documents at once + * @param object - Object/collection name + * @param documents - Array of documents with id and data + */ + bulkIndex?(object: string, documents: Array<{ + id: string; + document: Record; + }>): Promise; + /** + * Delete all documents in an index + * @param object - Object/collection name + */ + deleteIndex?(object: string): Promise; +} + +// ── ISecurityService (interface) ── +interface ISecurityService { + /** + * The row-level READ scope for `object` under `context` — the same filter the + * engine middleware AND-s into every find, exposed for paths that bypass the + * middleware (notably the analytics raw-SQL path, which must apply it to the + * base object AND every joined object). + * + * **Fails CLOSED.** A resolution failure, or an on-behalf-of context on a path + * that cannot compute the delegator intersection, returns a DENY filter that + * matches zero rows — never `undefined`. `undefined` means one thing only: + * this caller has no row restriction on this object. + * + * **⚠️ Request-scoped: call it per request, and never memoise what it + * returns.** The documented use — `engine.find(object, { where: await + * security.getReadFilter(object, ctx) })` — puts a PLATFORM-authored + * predicate into the `options.where` slot, and that slot is exactly what the + * read-scope merge boundaries vouch as the CALLER's own predicate (the + * `'author'` mark of `../data/filter-subtree-provenance.js`). Two + * consequences, neither of which a host may design around: + * + * - the vouch is consumed as *"safe to disclose to this caller"*, not as + * *"this caller passed it"*. A policy predicate sitting in that slot can + * therefore carry its own `{ $field }` operands into a refusal message + * that the #7929 redaction exists to withhold; + * - the mark is permanent — first mark wins, and it is non-writable — so a + * filter cached across requests keeps the FIRST request's vouch, and no + * later boundary can correct it. The invariant this rests on is that no + * filter object which can be vouched `'author'` outlives the request that + * vouched it (#8794 / #8836). + * + * A host that must scope repeated queries re-calls this method; it does not + * hold the returned object. + */ + getReadFilter(object: string, context?: SecurityContext): Promise; + /** + * The field names `context` may READ on `object` — the authoritative column + * projection for anything that must present "the columns list shows", such as + * a read-derived export header. + * + * Computed from schema + context, never from data rows: it is therefore immune + * to an all-null column (which a driver may omit from every row) and to an + * empty result set. The returned set is the exact complement of what the read + * path's field mask deletes, so a header built from it cannot drift from the + * values the same caller receives. + * + * **Fails SOFT, and the two empty answers are NOT the same:** + * - `undefined` — no answer (e.g. the object schema could not be resolved). + * Fall back to your own projection. + * - `[]` — a real answer: this caller may read NO field of this object. + * + * A system context bypasses field-level security and yields the full field set. + */ + getReadableFields(object: string, context?: SecurityContext): Promise; + /** + * [ADR-0106 D7] The METADATA-PLANE variant of {@link getReadableFields}: + * which field names may be DISCLOSED to `context` when an object SCHEMA is + * served, as opposed to which columns of a row it may read. + * + * Identical to {@link getReadableFields} in every respect but one — a caller + * that resolves to **zero** permission sets goes through the same baseline + * resolution `/auth/me/permissions` uses (`security.baselinePermissionSets`: + * the app-declared baseline COMPOSED with the platform `member_default`, + * #7555) instead of falling open to the full field set. + * + * **Why the two differ rather than converge.** `getReadableFields` mirrors the + * engine middleware, which skips its whole field gate for a caller with no + * permission sets; on the DATA plane, reporting a narrowing the enforcement + * path would not apply is its own kind of drift, so falling open is the + * correct, drift-free answer there. The metadata plane has no such symmetry to + * preserve — the question is disclosure, and D7 rules that a public/guest + * deployment's schema exposure must be a deliberate permission-set decision + * rather than an accidental everything-default. It still falls open when the + * fallback set itself resolves to nothing (no `member_default` in the + * deployment at all): that is the "no FLS posture here" tier, not a restricted + * caller. + * + * **Fails SOFT, with the same two distinct empty answers as + * {@link getReadableFields}:** `undefined` is "no answer — use your own + * fallback" (e.g. the object schema could not be resolved); `[]` is the real + * answer that this caller may see NO field. A system context bypasses and + * yields the full field set. + * + * **OPTIONAL, and absence is a defined state — not a bug.** A security service + * that predates ADR-0106, or one that cannot honour the fallback resolution, + * omits it; consumers feature-detect + * (`typeof svc.getMetadataReadableFields === 'function'`) and fall back to + * {@link getReadableFields}, which is the pre-ADR-0106 behaviour and never a + * *narrower* answer. Declaring it optional is what makes that degradation a + * property of the type rather than a promise in prose: the unguarded call does + * not compile, so a consumer cannot skip the fallback by accident. + * + * The masking itself is gated separately by the deployment's D8 opt-outs + * (`metadata.maskObjectFields: false`, `OS_ALLOW_UNMASKED_OBJECT_METADATA`); + * this method only answers the projection question when a mask applies. + */ + getMetadataReadableFields?(object: string, context?: SecurityContext): Promise; + /** + * The effective permission-set NAMES for `context` — positions expanded and + * the additive baseline applied, i.e. the same set the middleware enforces + * with. The primitive for evaluating a permission-set-gated audience without + * re-implementing set resolution. + * + * **Throws** on resolution failure; callers must fail CLOSED on a throw rather + * than treating it as "no sets". + */ + resolvePermissionSetNames(context?: SecurityContext): Promise; + /** + * [#7616] The effective permission SETS for `context` — the same resolution + * {@link resolvePermissionSetNames} reports the names of, returned WHOLE: + * each set's `objects`, `fields`, `systemPermissions` and `tabPermissions`, + * in resolution order. + * + * **Why a second method rather than a wider return on the first.** The names + * are the primitive for an audience check ("does this caller hold + * `sales_manager`?"); the sets are the primitive for a MERGE. A consumer that + * must fold the caller's grants into one answer — the object/field access map + * `/auth/me/permissions` serves, the capability + tab surface `/me/apps` + * filters its app list with — cannot do it from names, so it re-implements + * set resolution locally instead. That local copy is the drift this method + * exists to end: the same rule has now diverged from the enforcement path + * three times, each divergence found only after it reached a user (#7608 — + * a member's first grant took them from 2 apps to 1; #7555 — an app-declared + * `isDefault` displaced `member_default`; #6334 — grant aggregation missed + * `sys_user_position` entirely). + * + * Implementations MUST return the sets their own enforcement path resolved — + * positions expanded, the ADR-0090 D5 baseline applied ADDITIVELY (never as a + * `resolved.length === 0` cliff), and the ADR-0090 D10 agent-principal rule + * honoured — not a re-derivation. Widening this to "the sets, roughly" would + * reintroduce the very drift the method removes. + * + * The merge semantics stay with the CALLER, deliberately: most-permissive for + * `objects`/`fields`, union for `systemPermissions`, highest-rank-wins for + * `tabPermissions`. Two consumers legitimately project different subsets of + * the same sets, and folding a merge in here would make this method the + * fourth copy of a rule instead of the one source of its input. + * + * **Throws** on resolution failure, exactly as {@link resolvePermissionSetNames} + * does; callers must fail CLOSED on a throw rather than reading it as "no sets". + * + * **OPTIONAL, and absence is a defined state — not a bug.** A security service + * that predates this method omits it, and a consumer resolving the service as + * `Partial` (the availability rule at the top of this file) + * must keep its own resolution as the fallback until a floor version carrying + * the method can be assumed. Declaring it optional is what makes that + * degradation a property of the type rather than a promise in prose: the + * unguarded call does not compile, so a consumer cannot skip the fallback by + * accident. + */ + resolvePermissionSetsForContext?(context?: SecurityContext): Promise; + /** + * [#3544] Whether `context` may EXPORT `object` — the user-level export axis + * (`ObjectPermissionSchema.allowExport`). + * + * Export is a READ-DERIVED operation (`export ⊆ list` in the spec's + * `API_METHOD_DERIVATION`), so it reaches the engine middleware as an ordinary + * `find` and is gated by `allowRead` alone. That makes the export axis + * invisible to the middleware: without this method a caller holding + * `allowExport: false` still streams the whole table out of the REST export + * route, and the bit only ever hid a button. Bulk-egress doors must ask this + * BEFORE they read. + * + * The answer folds the tri-state bit across the caller's resolved sets exactly + * as the `/me/permissions` merge does — `true` beats `false` beats unset, and + * unset inherits read — so the button the client hides and the request the + * server refuses are the same decision. + * + * **Fails CLOSED.** This is an access-narrowing answer: implementations return + * `false` (and callers must treat a throw as `false`) rather than degrading to + * "allowed". A system context bypasses and returns `true`; so does a caller + * with no resolved permission sets, mirroring the middleware, whose CRUD gate + * is skipped entirely when set resolution comes back empty. + */ + canExport(object: string, context?: SecurityContext): Promise; + /** + * Whether `context` may READ `object` AT ALL — the OBJECT-level admission the + * engine middleware answers before it ever composes a row filter. + * + * **This is the object-level half of a read, and {@link getReadFilter} is the + * row-level half.** The two are not interchangeable and the name says so on + * purpose: `getReadFilter` answers "which rows", and it answers `undefined` + * — "no row restriction" — for a caller who may not read the object at all. + * A door that asks only for the filter therefore reads a caller with NO grant + * as a caller with NO restriction, which is the exact inversion that let an + * ungranted principal `COUNT(*)` an object through the analytics raw-SQL path + * while `GET /data/` answered 403 for the same principal on the same + * deployment. Any door that bypasses the engine middleware MUST ask both. + * + * The verdict is the middleware's own read gate, arm for arm and in its order: + * the `isSystem` bypass, the "no permission sets resolved" skip, the + * fail-closed refusal on an unresolvable object posture, the ADR-0066 D3 + * `requiredPermissions` capability AND-gate, the `allowRead` CRUD grant, and + * the ADR-0090 D10 delegator intersection for an on-behalf-of caller. It is + * computed from the SAME resolution the enforcement path uses — never + * re-derived from permission sets by the caller — so a door that asks reaches + * the same admission verdict `/data` reaches, by construction. + * + * It answers the object-level question ONLY. A `true` here says nothing about + * which rows the caller may see: the row scope is still + * {@link getReadFilter}'s, and it is still mandatory. Nothing here may be used + * to widen — `true` is "not refused at this layer", never "unrestricted". + * + * **Fails CLOSED.** This is an access-narrowing answer: implementations return + * `false` (and callers must treat a throw as `false`) rather than degrading to + * "allowed". A system context bypasses and returns `true`; so does a caller + * with no resolved permission sets, mirroring the middleware, whose CRUD gate + * is skipped entirely when set resolution comes back empty. + * + * **OPTIONAL, and absence is a defined state — not a bug.** A security service + * that predates this method omits it, and a consumer resolving the service as + * `Partial` (the availability rule at the top of this file) + * feature-detects (`typeof svc.canReadObject === 'function'`). ⛔ The fallback + * for an absent method is NOT "admit": the caller composes the same verdict + * from {@link explain}, which is NOT optional and whose `allowed` is the same + * bottom line ("would the middleware allow this operation?") computed by the + * same enforcement walk. Declaring it optional is what keeps a partial + * implementation legal without making its absence a hole. + */ + canReadObject?(object: string, context?: SecurityContext): Promise; + /** + * [ADR-0111 D2] Whether `context` holds the super-user WRITE bypass + * (`modifyAllRecords`, "Modify All Data") for `object` — the EXPLICIT bit + * only, resolved from the caller's permission sets exactly as the CRUD + * middleware resolves them. + * + * The probe behind the sharing layer's management-authority gate + * (`ISharingService.canManageShares`): a non-owner may manage shares on a + * record only with this bypass. It deliberately does NOT reuse the effective + * write SCOPE — `getEffectiveScope` returns `'org'` for the + * "no permission set mentions this object" case (a compatibility fail-open on + * the read path), which as a management gate would be a fresh hole. + * + * **Fails CLOSED.** A resolution failure, a principal-less context, or an + * on-behalf-of context (the D10 delegator intersection is not computed on + * this path) returns `false`. A system context returns `true`. + */ + hasWriteBypass(object: string, context?: SecurityContext): 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's write path + * resolves it (`getEffectiveScope('write', …)`). + * + * The sharing layer's management gate (`ISharingService.canManageShares`) + * uses this to let a HIERARCHY MANAGER manage shares on records within their + * DEPTH. Note the two meanings of `org`: a genuine `modifyAllRecords` holder, + * AND the fail-OPEN "no permission set mentions this object" default — so a + * caller of this method must treat `org` as authoritative ONLY when paired + * with an explicit {@link hasWriteBypass} check, never on its own. + * + * **Fails CLOSED** to `own` (the narrowest scope) on a resolution error, a + * principal-less context, or an on-behalf-of context (no D10 delegator + * intersection on this path). A system context resolves to `org`. + */ + resolveWriteScope(object: string, context?: SecurityContext): Promise; + /** + * [ADR-0090 D10 — maintainer ruling 2026-09-08] Did the D10 intersection + * NARROW what this delegated context can read on `object`, and if so, what + * should the caller be told? + * + * The diagnostic half of the delegated-read contract, and the reason it is a + * method rather than a caller-side derivation: the consumer being corrected + * is an **AI agent**. An MCP `query_records` answering `total: 0` with no note + * is read by the agent as a fact about the data, and it then tells a + * decision-maker "there are no opportunities this quarter" — the measured + * failure on issue #16549. A count served from a narrowed row set must + * therefore arrive WITH the narrowing stated, in the words the explain path + * already uses ("D10 intersection"), or the transport is lying by omission. + * + * `narrowed: true` iff the delegated principal's OWN sets declare a record + * DEPTH narrower than the delegator's for a read on `object` — the axis the + * ruling widened and the only axis this reports. It is resolved from the same + * evaluator calls the CRUD middleware stashes as `__readScope`, so it cannot + * claim a narrowing the query did not have, nor miss one it did. + * + * ⛔ What it deliberately does NOT report, because these are refusals rather + * than silent shrinkage and already surface as errors: an object the ceiling + * does not reach at all, a write refused on a read-only scope, a refused + * `allowTransfer`. And it reports nothing about narrowing that comes from the + * DELEGATOR's own grants — that is the user's own permissions working, which + * is exactly what the delegated path promises. + * + * **Non-delegated contexts answer `{ narrowed: false }`.** So does a system + * context, a principal-less one, and any internal failure: this is a + * diagnostic and must never fail, narrow, or block a read. + * + * **OPTIONAL.** A security service that predates it omits it and every + * consumer feature-detects (`typeof svc.describeDelegationNarrowing === + * 'function'`); absence reads as "cannot say", which callers render as no + * statement — the behaviour they had before this method existed. + */ + describeDelegationNarrowing?(object: string, context?: SecurityContext): Promise; + /** + * [#5493 / ADR-0105 D3] Does an **app-authored** row-level security policy + * admit `recordId` for `operation` — by declaration, on its own, without the + * platform's ownership floor? + * + * The primitive a composing caller needs before it lets a *declared* widener + * defer a hard refusal. `getReadFilter` cannot answer it and neither can any + * composition of the other methods here, because every one of them reports + * the **composed** RLS verdict, and sitting inside that composition is the + * platform's own wildcard write floor (`created_by == current_user.id`, + * shipped on the `member_default` baseline every authenticated member + * resolves additively). Deferring to "the composed RLS admits this row" is + * therefore not a cheaper spelling of this question — it is a measurably + * different one, and the difference is a security hole: + * + * > #5493's probe E-A measured a **creator who is no longer the owner** — + * > a record transferred away from them — being admitted by the platform + * > floor while an authored policy said nothing about the row at all. A + * > deferral keyed on the composed answer hands transferred records back to + * > their former creators. + * + * Separating the two needs policy PROVENANCE (which policies the platform + * shipped vs. which the app declared), and provenance is deliberately private + * to the implementation — an authorable "this is a floor" flag would hand + * authors a switch that turns their own policy off. Hence this method, and + * hence it lives on the service rather than being re-derived by consumers. + * + * **`admit` iff** at least one applicable, **non-floor** policy matches the + * row for this operation. `abstain` in **every** other case, including: + * the caller holds no authored policy for `(object, operation)`; the + * authored policies apply but none matches this row; the row is absent, or + * in another tenant; the context carries no principal; the context + * is on-behalf-of (ADR-0090 D10 — the delegator intersection is not computed + * on this path, so an answer here would be resolved against the wrong + * identity); or any internal probe fails. + * + * **[#7281] The caller's READ scope is not one of those cases**, and the + * omission is the maintainer's 2026-08-10 ruling rather than an oversight. + * The question is "does the declaration admit this row", which is about the + * row and the policy; an implementation that resolves it through the + * caller's own visibility folds a READ decision into a WRITE question and + * silently answers `abstain` for every cross-owner row on a `private`-OWD + * object — the posture the widener surface exists for (measured: two objects + * identical but for their OWD, same widener, same principal, same row shape; + * `public_read` → `admit`, `private` → `abstain`). Implementations therefore + * resolve the row under a scope that can SEE it, with the tenant wall and + * the authored predicate carried in the query rather than in the scope. + * This does not widen anything: `admit` remains evidence and never + * authorization (see below), so a caller who may not read a row still may + * not write it — that refusal belongs to the write gate, which makes it on + * its own terms. + * + * **Fail-closed by construction, in both halves.** The method itself never + * throws outward — an internal failure becomes `abstain`. And the method is + * OPTIONAL: a deployment whose security service predates it, or omits it, + * behaves byte-for-byte as today, because a caller that cannot find it must + * read the absence as `abstain` too. Callers therefore feature-detect + * (`typeof svc.checkAuthoredRowWrite === 'function'`) and treat every + * non-`admit` outcome identically. + * + * **This is evidence, not authorization.** `admit` says a declared policy + * speaks for this row; it does NOT say the write is permitted — object-level + * CRUD, the tenant wall, sharing, and the post-image `check` clause all still + * apply, and the caller composes this answer with them rather than replacing + * them. Nothing here may be used to *narrow*: `abstain` is "no evidence", + * never "denied". + */ + checkAuthoredRowWrite?(object: string, recordId: string, operation: AuthoredRowWriteOperation, context?: SecurityContext): Promise; + /** + * Explain WHY access is granted or denied — the decision plus the layers that + * produced it (permission sets, object permissions, RLS, sharing, field mask). + * + * Runs the same resolution/evaluator/compiler the enforcement path uses, so + * the explanation matches enforcement by construction rather than by + * maintenance. + */ + explain(request: ExplainAccessRequest, callerContext?: SecurityContext): Promise; + /** + * [ADR-0090 D12 / ADR-0105 D8] Describe what the CALLER may delegate: the + * business units they may place people into and the positions they may + * assign, derived from the `adminScope`s their permission sets carry. + * + * The read half of the delegated-administration gate, and shaped for a + * picker: a scoped-invitation form narrows its options with this instead of + * offering the whole tree and letting the user discover the boundary by + * being refused. Computed by the same helpers the write gate enforces with, + * so an option this reports is one the gate accepts — it NARROWS, it does + * not decide. + * + * Strictly self-scoped: there is no target-user parameter, so it discloses + * nothing beyond the authority the caller already holds. Fail-closed — + * unresolvable scopes contribute nothing, and no delegated authority yields + * empty lists. + */ + describeDelegableScope(callerContext?: SecurityContext): Promise; + /** + * List install-time audience-binding suggestions (packages propose an + * audience anchor; a tenant admin confirms or dismisses). Re-syncs before + * reading and reports what that sync changed. + * + * Administrative: implementations gate this on tenant-admin and throw + * otherwise. + */ + listAudienceBindingSuggestions(callerContext?: SecurityContext, filter?: AudienceBindingSuggestionFilter): Promise<{ + suggestions: AudienceBindingSuggestion[]; + synced: AudienceBindingSuggestionSync; + }>; + /** + * Confirm a pending suggestion — writes the binding under the anchor and + * delegated-admin gates. Throws when the suggestion is unknown or no longer + * pending. `bindingCreated` is `false` when the binding already existed. + */ + confirmAudienceBindingSuggestion(callerContext: SecurityContext, id: string): Promise<{ + suggestion: AudienceBindingSuggestion; + bindingCreated: boolean; + }>; + /** Dismiss a pending suggestion. Throws when it is unknown or not pending. */ + dismissAudienceBindingSuggestion(callerContext: SecurityContext, id: string): Promise<{ + suggestion: AudienceBindingSuggestion; + }>; +} + +// ── ISeedLoaderService (interface) ── +interface ISeedLoaderService { + /** + * Load one or more datasets with full reference resolution and dependency ordering. + * + * The loader automatically: + * 1. Filters datasets by environment if `config.env` is set + * 2. Builds a dependency graph from object metadata (lookup/master_detail fields) + * 3. Topologically sorts datasets so parent objects are inserted before children + * 4. Resolves references via externalId, with multi-pass for circular dependencies + * + * @param request - Parsed SeedLoaderRequest (datasets + config) + * @returns Structured result with per-object stats, errors, and summary + */ + load(request: SeedLoaderRequestParsed): Promise; + /** + * Build the object dependency graph from metadata for the given object names. + * Inspects lookup/master_detail fields to determine dependencies. + * + * @param objectNames - Object names to include in the graph + * @returns Dependency graph with topological insert order and circular dependency detection + */ + buildDependencyGraph(objectNames: string[]): Promise; + /** + * Validate datasets without writing any data (equivalent to config.dryRun = true). + * Checks reference integrity and reports all broken references. + * + * @param datasets - Seeds to validate + * @param config - Optional loader config overrides + * @returns Structured result with validation errors (no data written) + */ + validate(datasets: Seed[], config?: SeedLoaderConfig): Promise; +} + +// ── ISeedSettlementService (interface) ── +interface ISeedSettlementService { + /** Read the live tally. Never cached by the caller — re-read per use. */ + snapshot(): SeedSettlementSnapshot; +} + +// ── IServiceRegistry (interface) ── +interface IServiceRegistry { + /** + * Register a service with a unique name + * @param name - Unique service identifier + * @param service - The service instance to register + * @throws Error if service name is already registered + */ + register(name: string, service: T): void; + /** + * Get a registered service by name (synchronous) + * @param name - Service identifier + * @returns The registered service + * @throws Error if service is not found + */ + get(name: string): T; + /** + * Get a registered service by name (asynchronous) + * Useful for lazy-loaded or async-initialized services + * @param name - Service identifier + * @param scopeId - Optional scope identifier for scoped services + * @returns Promise resolving to the registered service + * @throws Error if service is not found + */ + getAsync(name: string, scopeId?: string): Promise; + /** + * Check if a service is registered + * @param name - Service identifier + * @returns True if service is registered, false otherwise + */ + has(name: string): boolean; + /** + * Unregister a service + * @param name - Service identifier + * @returns True if service was unregistered, false if it wasn't registered + */ + unregister(name: string): boolean; + /** + * Get all registered service names + * @returns Array of service names + */ + getServiceNames?(): string[]; + /** + * Clear all registered services + * Useful for cleanup in tests or during shutdown + */ + clear?(): void; +} + +// ── IShareLinkService (interface) ── +interface IShareLinkService { + /** + * Mint a new link. Throws when the object is not opt-in or limits are exceeded. + * + * ENFORCEMENT PATH: implementations re-read the target record under + * `context` ([Finding-2] — you may only link-share a record you can + * yourself see), so `context` must be the caller's complete resolved + * envelope. A trimmed one silently changes the verdict of that read. + */ + createLink(input: CreateShareLinkInput, context: ExecutionContext): Promise; + /** + * Mark a link as revoked. No-op when already revoked or not found. + * + * ENFORCEMENT PATH: revoke authority is creator ∪ record share-manager + * (ADR-0111 D8), and the share-manager probe evaluates `context`. + */ + revokeLink(idOrToken: string, context: ExecutionContext): Promise; + /** + * List links for a record, an object, or a creator. + * + * ENFORCEMENT PATH: the listing is read under `context`, so row visibility + * is decided by it. + */ + listLinks(filter: ListShareLinksFilter, context: ExecutionContext): Promise; + /** + * Resolve a token at request-handling time. Increments `use_count` / + * `last_used_at` as a side effect of a SUCCESSFUL resolution only. + * + * Returns `null` when the token does not exist, is revoked, is expired, + * fails the audience or password gate, names an object whose + * `publicSharing.enabled` switch is off — the block absent or disabled, + * however the link was minted (#14033, design note 7) — names a record that + * no longer exists (#5190), or names a record that no longer satisfies the + * object's `publicSharing.eligibility` predicate (#13608). + * + * ⛔ That single `null` is the contract, not an implementation detail. The + * caller of this method may hold nothing but a token, and distinguishing + * "does not exist" from "revoked" from "switched off" from "no longer + * eligible" for such a caller is an existence oracle. Implementations MUST + * NOT return a distinguishable answer per reason, and MUST NOT throw one + * either; the readable reason belongs in the server-side log. + * + * @param token raw token from the URL / cookie + * @param probe contextual gates the caller has already evaluated + * (e.g. signed-in user, recipient email, supplied + * password) + */ + resolveToken(token: string, probe?: { + signedInUserId?: string; + recipientEmail?: string; + providedPassword?: string; + }): Promise; +} + +// ── ISharingRuleService (interface) ── +interface ISharingRuleService { + defineRule(input: DefineSharingRuleInput, context: ExecutionContext): Promise; + listRules(filter: { + object?: string; + activeOnly?: boolean; + }, context: ExecutionContext): Promise; + getRule(idOrName: string, context: ExecutionContext): Promise; + deleteRule(idOrName: string, context: ExecutionContext): Promise; + /** + * Re-evaluate a rule across every record of its object_name and + * reconcile the resulting `sys_record_share` rows. Admin-initiated; + * use after rule edits or for backfill. + */ + evaluateRule(idOrName: string, context: ExecutionContext): Promise; + /** + * Incremental evaluation triggered by the lifecycle hook — re-checks + * every active rule for `object` against this single record and + * upserts/reconciles only that record's share rows. + */ + evaluateAllForRecord(object: string, recordId: string, context: ExecutionContext): Promise; +} + +// ── ISharingService (interface) ── +interface ISharingService { + /** + * Return a filter condition that restricts a `find` to rows the + * principal in `context` can see for `object`. Return `null` when no + * restriction applies (public object, system context, no userId). + */ + buildReadFilter(object: string, context: ExecutionContext): Promise; + /** + * [#6428] The UPDATE gate, in its primary tri-state form: may the principal + * in `context` UPDATE the record `(object, recordId)`, and does this service + * have an opinion at all? + * + * - `allow` — ownership (widened by write DEPTH), a write-level + * ({@link ShareAccessLevel} `edit`) share, [#4647] the `modifyAllRecords` + * super-user bypass, or a system context. + * - `abstain` — record sharing does not enforce on this row: a `public` + * object, an object with **no owner field**, a bypass-listed platform + * internal, or an object with no resolvable schema. The answer belongs to + * whatever else guards the row (see {@link SharingWriteVerdict}). + * - `deny` — a sharing-enforced object where the principal has none of the + * above, a principal-less context, or an unresolvable answer. + * + * The bypass is the same `ISecurityService.hasWriteBypass` predicate + * {@link canDelete} and {@link canManageShares} consult, so the three write + * gates cannot drift from each other or from what `security/explain` + * reports. It is asked LAST — after ownership and shares — so an ordinary + * write costs no extra resolution, and it **fails CLOSED** (ADR-0111 D2): + * no security service, a throwing probe, or a principal-less / + * on-behalf-of context leaves the answer at owner-plus-share only. + * + * **Fail-closed, restated because the tri-state is where it gets confused:** + * a lookup that throws is a `deny`, never an `abstain`. + */ + checkEdit(object: string, recordId: string, context: ExecutionContext): Promise; + /** + * Return `true` when the principal in `context` may UPDATE the record + * `(object, recordId)`. Ownership (widened by write DEPTH), a write-level + * ({@link ShareAccessLevel} `edit`) share, OR — [#4647] — the + * `modifyAllRecords` super-user bypass. Always true for system context, + * `public` objects, and objects with no owner field. + * + * [#7144] The write DEPTH in that first sentence is an INPUT this service is + * handed, never one it resolves — so a caller outside the CRUD middleware + * (the `sys_comment` and `sys_attachment` PARENT-record gates, which both + * reach this service through this method) matches ownership at `own`. That is + * the ruled shape, and the fail-open that blocks widening it is written up + * once in "Write DEPTH is an input the CALLER supplies" on this interface. + * + * [#6428] The two-state PROJECTION of {@link checkEdit}: `true` for every + * verdict that is not `deny`, i.e. `allow` and `abstain` alike. That + * collapse is the historical semantics, kept byte-for-byte so existing + * callers do not drift — it is correct for a caller that only ADDS this gate + * to whatever else already guards the row (the sharing middleware, the + * `sys_attachment` parent gate, the ADR-0055 master check), and WRONG for a + * caller that would let this answer override another authority's floor. The + * latter must read {@link checkEdit}. + */ + canEdit(object: string, recordId: string, context: ExecutionContext): Promise; + /** + * [#6428 / ADR-0111 D3] The DELETE gate, in its primary tri-state form. + * + * The verb boundary is inherited, not restated: a share widens *which rows* + * a principal reaches, never *which verbs* they may use, so an `edit` share + * that makes {@link checkEdit} answer `allow` leaves this one at `deny` + * (Salesforce Read/Write cannot delete; Dataverse `Delete` is a distinct + * privilege; Odoo splits `write`/`unlink`). `allow` is ownership (widened by + * write DEPTH), the `modifyAllRecords` super-user bypass, or system context + * ONLY; `abstain` covers exactly the rows {@link checkEdit} abstains on, so + * the two gates agree about which objects sharing enforces on and disagree + * only about the verb. + */ + checkDelete(object: string, recordId: string, context: ExecutionContext): Promise; + /** + * [ADR-0111 D3] Return `true` when the principal in `context` may DELETE the + * record `(object, recordId)`. + * + * The verb boundary: a share widens *which rows* a principal reaches, never + * *which verbs* they may use — so delete is **ownership (widened by write + * DEPTH) or the `modifyAllRecords` super-user bypass ONLY**, and an `edit` + * share does NOT confer it (Salesforce Read/Write cannot delete; Dataverse + * `Delete` is a distinct privilege; Odoo splits `write`/`unlink`). Always + * true for system context, `public` objects, and objects with no owner + * field, matching {@link canEdit}. A per-record delete grant, if ever added, + * is a capability mask AND-ed with object CRUD — not a share level. + * + * [#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; + /** + * [ADR-0111 D1] May the principal in `context` MANAGE shares (grant / revoke + * / list) on `(object, recordId)`? True for system context, the record's + * owner, and holders of the super-user write bypass (`modifyAllRecords`, + * probed via the late-bound security service). **Fails closed**: no security + * service → owner-only; unknown record / principal-less context → `false`. + * + * This is the single gate every manual share-management operation consults — + * enforcement lives in the SERVICE, so every caller (REST or otherwise) is + * covered. The DEPTH extension (hierarchy managers) is a named ADR-0111 + * direction, not implemented here. + */ + canManageShares(object: string, recordId: string, context: ExecutionContext): Promise; + /** + * Create or upsert a manual share row. + * + * [ADR-0111 D1/D7] For non-system callers: requires {@link canManageShares} + * (`PERMISSION_DENIED`), an existing record VISIBLE to the caller + * (`NOT_FOUND` — missing and invisible are indistinguishable), a `user` + * recipient (`VALIDATION_FAILED` — other recipient types are not enforced by + * any gate and are refused rather than persisted inert, ADR-0078), and an + * object in an enforcing sharing posture (`SHARING_NOT_ENABLED` — a share on + * a public / bypass / owner-less / `controlled_by_parent` object enforces + * nothing). Upserts match on `(object, record, recipient, source)` so a + * manual grant never clobbers a rule-materialised row (D7). + */ + grant(input: GrantShareInput, context: ExecutionContext): Promise; + /** + * Remove a share row by id. + * + * [ADR-0111 D4] For non-system callers: the row must exist and — when + * `scope` is provided (REST passes the URL's object/record) — belong to that + * record (`NOT_FOUND` otherwise), the caller must hold + * {@link canManageShares} on the record (`PERMISSION_DENIED` — revoke is + * symmetric with grant, no granter exception), and only `source: 'manual'` + * rows are revocable (`CONFLICT` — rule-derived grants are reconciled back + * by the evaluator; deactivate the rule instead). System context keeps 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 all share rows attached to `(object, recordId)`. + * + * [ADR-0111 D5] For non-system callers this is MANAGEMENT-gated: an + * invisible/missing record throws `NOT_FOUND`, a visible record without + * {@link canManageShares} throws `PERMISSION_DENIED`. "What is shared with + * me / by me" is served by the self-scoped `sys_record_share` read surface, + * not by this method. + */ + listShares(object: string, recordId: string, context: ExecutionContext): Promise; +} + +// ── ISmsService (interface) ── +interface ISmsService { + /** + * Send (or attempt to send) an SMS through the configured transport. + * Resolves with `status:'failed'` on transport errors rather than + * throwing; throws only on invalid input (bad recipient / empty body). + */ + send(input: SendSmsInput): Promise; + /** + * Whether a real provider transport is active. `false` means the service + * is running on the development log fallback — messages are not actually + * delivered anywhere. Consumers that advertise SMS-dependent features + * (e.g. phone OTP sign-in) SHOULD gate on this in production. + */ + isConfigured(): boolean; +} + +// ── ISmsTransport (interface) ── +interface ISmsTransport { + send(message: NormalizedSmsMessage): Promise; +} + +// ── IStorageService (interface) ── +interface IStorageService { + /** + * Upload a file to storage + * @param key - Storage key/path for the file + * @param data - File content as Buffer or readable stream + * @param options - Upload options (content type, metadata, ACL) + */ + upload(key: string, data: Buffer | ReadableStream, options?: StorageUploadOptions): Promise; + /** + * Download a file from storage + * @param key - Storage key/path + * @returns File content as Buffer + */ + download(key: string): Promise; + /** + * Delete a file from storage + * @param key - Storage key/path + */ + delete(key: string): Promise; + /** + * Check if a file exists in storage + * @param key - Storage key/path + * @returns True if the file exists + */ + exists(key: string): Promise; + /** + * Get metadata about a stored file + * @param key - Storage key/path + * @returns File info including size, content type, and last modified date + */ + getInfo(key: string): Promise; + /** + * Enumerate the stored files whose key begins with `prefix`, one page at a + * time. + * + * ## Lineage — read this before changing the signature + * + * The single-argument `list?(prefix): Promise< StorageFileInfo[] >` was + * retired in #5540 / #5541 (ADR-0049 enforce-or-remove; the two-dialect + * measurement is #5266): the local adapter listed ONE level deep and pushed + * directories into the result as files, while the S3 adapter recursed and + * stopped at 1000 objects without reading `IsTruncated` — one method, two + * silently-incomplete answers. Both retirement notes reserved exactly one + * route back, and this is it (#6781, cloud#1203 maintainer ruling option B): + * cursor-shaped, with adapter-conformance cases proving both backends agree. + * + * ## The semantics an adapter must implement + * + * 1. **`prefix` is a raw key-string prefix, matched recursively** — S3 + * `ListObjectsV2` semantics, which the local adapter emulates rather than + * the other way round. `list('a')` returns `a/b/c` AND `ab.txt`. ⚠️ To + * scope to a folder, pass the trailing slash: `list('a/')`. `list('t/1')` + * also matches `t/10/...`, which for a DELETING sweep is the difference + * between reclaiming one tenant and reclaiming eleven. + * 2. **Only files come back.** Filesystem directories are never stat'd into + * results, and an S3 zero-byte directory marker (a key ending in `/`) is + * skipped — neither is downloadable, and returning one on one backend + * only is precisely the old dialect split. + * 3. **Ascending key order**, stable across pages. + * 4. **Pages are full** (`items.length === limit`) except the last: an + * adapter loops over its backend's own paging to fill one page. + * 5. **`nextCursor` is present iff more items remain** (see + * {@link StorageListPage}). + * 6. **No duplicates and no gaps** across a pagination run over an unchanged + * key set. Keys written or deleted mid-run may or may not appear. + * 7. **`limit` and `cursor` are validated, not coerced** — see + * {@link resolveStorageListLimit} and {@link decodeStorageListCursor}, + * which every adapter shares so the refusals cannot diverge. + * + * Optional, like every other capability on this contract: an adapter that + * cannot enumerate simply omits it, and `SwappableStorageService` answers a + * clear "does not support list()" for it. It is NOT a required member on + * purpose — requiring it would break every third-party adapter, which is a + * major-version act, and enumeration is genuinely optional for a backend. + * + * ⚠️ Prefer enumerating the RECORDS you wrote (`sys_file` / file-reference + * rows, paginated through ObjectQL) when they exist. Bucket enumeration is + * for the cases where they do not: reclaiming storage a deleted tenant left + * behind, or GC-ing blobs whose index is the thing that went away. + * + * @param prefix - Raw key prefix; `''` enumerates everything. + * @param options - Page size and continuation token. + */ + list?(prefix: string, options?: StorageListOptions): Promise; + /** + * Generate a pre-signed URL for temporary access + * @param key - Storage key/path + * @param expiresIn - URL expiration time in seconds + * @returns Pre-signed URL string + */ + getSignedUrl?(key: string, expiresIn: number, options?: PresignedDownloadOptions): Promise; + /** + * Generate a presigned upload descriptor that allows the browser to + * upload bytes directly to the storage backend without proxying through + * the API server. + * + * For S3-compatible backends this returns the actual signed PUT URL. + * For local-filesystem backends this returns a server-mounted endpoint + * (e.g. `/api/v1/storage/_local/raw/`) that accepts the bytes + * and writes them to the configured root directory. + * + * @param key - Storage key/path for the final file + * @param expiresIn - Upload URL expiration time in seconds + * @param options - Upload options (content type, metadata, ACL) + * @returns Descriptor consumed by the client SDK + */ + getPresignedUpload?(key: string, expiresIn: number, options?: StorageUploadOptions): Promise; + /** + * Generate a presigned download URL for the given key. + * For local-filesystem backends this returns a server-mounted endpoint + * that streams the file when accessed within the expiration window. + * + * @param key - Storage key/path + * @param expiresIn - URL expiration time in seconds + */ + getPresignedDownload?(key: string, expiresIn: number, options?: PresignedDownloadOptions): Promise; + /** + * Initiate a chunked (multipart) upload session + * @param key - Storage key/path for the final file + * @param options - Upload options (content type, metadata, ACL) + * @returns Upload session ID for use in subsequent chunk uploads + */ + initiateChunkedUpload?(key: string, options?: StorageUploadOptions): Promise; + /** + * Upload a single chunk of a multipart upload + * @param uploadId - Multipart upload session ID + * @param partNumber - Part number (1-based, per S3 convention) + * @param data - Chunk content as Buffer + * @returns ETag of the uploaded chunk for assembly + */ + uploadChunk?(uploadId: string, partNumber: number, data: Buffer): Promise; + /** + * Complete a chunked upload by assembling all parts + * @param uploadId - Multipart upload session ID + * @param parts - Ordered list of part numbers and their ETags + * @returns Storage key/path of the assembled file + */ + completeChunkedUpload?(uploadId: string, parts: Array<{ + partNumber: number; + eTag: string; + }>): Promise; + /** + * Abort a chunked upload session and clean up uploaded parts + * @param uploadId - Multipart upload session ID + */ + abortChunkedUpload?(uploadId: string): Promise; +} + +// ── ITeamGraphService (interface) ── +interface ITeamGraphService { + /** Return all user ids that are members of `teamId`. */ + expandUsers(teamId: string): Promise; + /** Return all user ids that hold a role of `roleName` in `organizationId`. */ + expandRoleUsers(roleName: string, organizationId?: string): Promise; + /** Return the manager id for a user (best-effort; null when none). */ + managerOf(userId: string, organizationId?: string): Promise; +} + +// ── ImportObjectOpts (interface) ── +interface ImportObjectOpts extends GenerateDraftOpts { + /** Override the auto-derived object name (snake_case). */ + name?: string; + /** + * Mark the imported object writable (`object.external.writable`). Default + * `false` — federated objects are read-only unless explicitly opted in (and + * the datasource must also set `external.allowWrites`, ADR-0015 Gate 3). + */ + writable?: boolean; +} + +// ── ImportObjectResult (interface) ── +interface ImportObjectResult { + /** The object name as persisted. */ + name: string; + /** The persisted object definition (parseable by `ObjectSchema`). */ + definition: Record; + /** Review notes carried over from the draft (lossy/unknown column mappings). */ + review: ObjectDraft['review']; +} + +// ── InboxListResult (interface) ── +interface InboxListResult { + /** + * The `limit`-bounded window — at most {@link InboxQuery.limit} rows + * (implementations may clamp), newest first. One page of the inbox, not + * the whole of it. + */ + notifications: InboxNotification[]; + /** + * Total unread across the user's whole matching inbox — NOT the window + * above (#6363). The same quantity the wire contract publishes as + * `ListNotificationsResponseSchema.unreadCount` ("Total number of unread + * notifications", `api/protocol.zod.ts`). + * + * This is the number a bell badge shows, so it must not saturate at the + * page size: do not re-derive it by counting `notifications`, and do not + * clamp it to `notifications.length`. Counting over the window is exactly + * the defect #6363 fixed — a user with 60 unread was told 50, and + * `?limit=10` told them 10. + * + * {@link InboxQuery.read} does not zero it either: asking for the READ half + * of an inbox is not a claim that nothing is unread. + */ + unreadCount: number; +} + +// ── InboxNotification (interface) ── +interface InboxNotification { + /** Stable notification id — what `markRead` takes. */ + id: string; + /** Notification type/topic. */ + type: string; + /** Display title. */ + title: string; + /** Body text. */ + body: string; + /** Whether this user has read it. */ + read: boolean; + /** URL to open when the notification is clicked. */ + actionUrl?: string; + /** ISO-8601 creation timestamp. */ + createdAt: string; +} + +// ── InboxQuery (interface) ── +interface InboxQuery { + /** Filter by read state; omitted returns both. */ + read?: boolean; + /** Filter by notification type/topic. */ + type?: string; + /** Maximum rows to return. Implementations may clamp. */ + limit?: number; +} + +// ── InstallPackageInput (interface) ── +interface InstallPackageInput { + /** The package manifest to install */ + manifest: ObjectStackManifest; + /** User-provided settings at install time */ + settings?: Record; + /** Whether to enable immediately after install (default: true) */ + enableOnInstall?: boolean; + /** Current platform version for compatibility checking */ + platformVersion?: string; +} + +// ── InstallPackageResult (interface) ── +interface InstallPackageResult { + /** The installed package */ + package: InstalledPackage; + /** Dependency resolution result */ + dependencyResolution?: DependencyResolutionResult; + /** Namespace conflicts detected (empty if none) */ + namespaceConflicts?: NamespaceConflictError[]; + /** Human-readable message */ + message?: string; +} + +// ── IntrospectedColumn (interface) ── +interface IntrospectedColumn { + /** Column name */ + name: string; + /** SQL data type */ + type: string; + /** Whether the column is nullable */ + nullable: boolean; + /** + * The column's default, RAW as the driver reported it — `unknown`, not the + * `string` this key used to promise (#11122). + * + * The in-tree SQL driver passes `knex.columnInfo().defaultValue` through + * unchanged. Measured on live in-memory SQLite (2026-08-23): `null` for a + * column with no default; a dialect-decorated STRING when one exists + * (SQLite quotes — `'abc'`, and spells a boolean default `'1'`; Postgres + * additionally appends a `::type` cast). Other producers report native + * values (an in-tree fixture carries `true` for a boolean column), and + * per-dialect CONTENT is deliberately not claimed here. Consumers must + * narrow before use — or compare through a helper such as driver-sql's + * `physicalDefaultIsToken` — never assume a string. + */ + defaultValue?: unknown; + /** Whether this column is a primary key */ + primaryKey: boolean; +} + +// ── IntrospectedIndex (interface) ── +interface IntrospectedIndex { + /** Index name */ + name: string; + /** Columns included in the index */ + columns: string[]; + /** Whether the index enforces uniqueness */ + unique: boolean; +} + +// ── IntrospectedSchema (interface) ── +interface IntrospectedSchema { + /** Object/table names and their column definitions */ + tables: Record; + /** Database dialect */ + dialect: string; + /** Introspection timestamp (ISO 8601) */ + introspectedAt: string; +} + +// ── IntrospectedTable (interface) ── +interface IntrospectedTable { + /** Table name */ + name: string; + /** Column definitions */ + columns: IntrospectedColumn[]; + /** + * Index definitions — OPTIONAL, and absence is meaningful. + * + * An ABSENT key means the producer did not read indexes (the in-tree SQL + * driver does not: wiring the read adds one index query per table to every + * `introspectSchema()` call — the whole-warehouse federation path included — + * and needs its own `onFailure` failure-policy ruling; see + * `SqlDriver.introspectIndexes`). An EMPTY ARRAY is a positive claim that + * the table HAS no indexes. A producer that did not look must OMIT the key + * rather than emit `[]`, so a schema differ can tell "not asked" from + * "none exist". + * + * History (#11122): declared required from the start yet emitted by no + * producer ever, so a consumer typed against the promise read `undefined` + * with no compiler complaint. Withdrawn to optional per maintainer ruling + * 2026-08-23 (option B — 「其他同意你的意见」); wiring the index read is + * explicitly NOT this change, and becomes a new card if real consumer + * demand appears. + */ + indexes?: IntrospectedIndex[]; +} + +// ── JobExecution (type) ── +type JobExecution = z.input; + +// ── JobHandler (type) ── +type JobHandler = (context: { + jobId: string; + data?: unknown; +}) => Promise; + +// ── JobReplayOptions (interface) ── +interface JobReplayOptions { + /** + * Re-send a scheduled flow's tick window even though that window's + * `(flow, tick-window)` dispatch claim has already **succeeded**. + * + * Absent or `false`, a replay of a delivered window is refused with the + * ADR-0112 envelope {@link IJobService.replay} declares. `true` is the + * explicit operator door the ruling kept open (option a2): the operator is + * stating that the window is known to have been delivered and is to be + * delivered again, and takes the duplicate knowingly. It never touches a + * window whose claim is absent or failed — those re-run either way. + */ + force?: boolean; +} + +// ── JobRetryPolicy (interface) ── +interface JobRetryPolicy { + /** Retry attempts after the initial run. 0 (the default since 17.0.0, #4661) means no retry. */ + maxRetries?: number; + /** Base delay before the first retry, in milliseconds (default 1000) */ + backoffMs?: number; + /** Multiplier for exponential backoff (default 1 since 17.0.0, #4661 — a flat delay) */ + backoffMultiplier?: number; + /** Ceiling for a single backoff delay, in milliseconds (default 30000) */ + maxRetryDelayMs?: number; + /** Randomize each delay within [50%, 100%] of its computed value (default false) */ + jitter?: boolean; +} + +// ── JobRunOutcome (interface) ── +interface JobRunOutcome { + /** + * `'completed'` — the run did its work. Identical in meaning to resolving + * `undefined`; spell it out when a handler computes the verdict either way. + * + * `'degraded'` — the run finished, but its work did not happen. **This is + * not a failure** (see {@link JobHandler}). + */ + outcome: 'completed' | 'degraded'; + /** Why the run was degraded — short, human-readable, for job run history. */ + reason?: string; +} + +// ── JobSchedule (interface) ── +interface JobSchedule { + /** Schedule type */ + type: 'cron' | 'interval' | 'once'; + /** Cron expression (when type is 'cron') */ + expression?: string; + /** Timezone for cron (when type is 'cron') */ + timezone?: string; + /** Interval in milliseconds (when type is 'interval') */ + intervalMs?: number; + /** ISO 8601 datetime (when type is 'once') */ + at?: string; +} + +// ── JobScheduleOptions (interface) ── +interface JobScheduleOptions { + /** Retry failed runs with exponential backoff */ + retryPolicy?: JobRetryPolicy; + /** + * Per-attempt time limit in milliseconds. A run that exceeds it is + * recorded with status 'timeout'. Note: JavaScript cannot forcibly + * cancel the in-flight handler — the attempt is abandoned, not killed. + * + * Renamed from `timeout` (#14478) in lockstep with `JobSchema.timeoutMs`, + * the authored key whose value this carries: a contract that re-spelled + * it without the unit would reintroduce one layer down exactly the + * ambiguity the rename removed. + */ + timeoutMs?: number; +} + +// ── KNOWLEDGE_SERVICE (const) ── +declare const KNOWLEDGE_SERVICE: "knowledge"; + +// ── KVEntry (interface) ── +interface KVEntry { + key: string; + value: T; + /** Monotonic per-key version, incremented on every successful write. */ + version: bigint; + /** Expiry in ms since epoch, or undefined for no TTL. */ + expiresAt?: number; +} + +// ── KVSetOptions (interface) ── +interface KVSetOptions { + /** Time-to-live in seconds. Omit for "no expiry". */ + ttl?: number; + /** + * If set, the write succeeds only when the existing value's version + * matches `ifVersion`. Use `0n` to require the key not exist. + */ + ifVersion?: bigint; + ctx?: ClusterCallContext; +} + +// ── KnowledgeReindexOptions (interface) ── +interface KnowledgeReindexOptions { + /** When `true`, walk the source and count but do not call the adapter. */ + dryRun?: boolean; + /** Cap on number of documents to reindex (mostly for tests / smoke runs). */ + limit?: number; +} + +// ── KnowledgeReindexResult (interface) ── +interface KnowledgeReindexResult { + /** Number of documents pushed to the adapter (0 when dryRun). */ + indexed: number; + /** Number of documents discovered (always populated). */ + discovered: number; + /** When applicable, the underlying object's short name. */ + object?: string; + /** When `false`, an adapter / source check prevented the run. */ + ok: boolean; + /** Free-form diagnostics. */ + message?: string; +} + +// ── KnowledgeSearchOptions (interface) ── +interface KnowledgeSearchOptions { + /** + * Restrict the search to the given source ids. When omitted, every + * source the caller is allowed to see is queried. + */ + sourceIds?: string[]; + /** Max number of hits to return. Adapters may cap further. */ + topK?: number; + /** Adapter-specific filter (passed opaquely). */ + filter?: Record; + /** + * Execution context of the caller. **Required** for permission-aware + * retrieval: hits whose `sourceRecordId` would be filtered out by + * RLS are dropped before being returned. Internal callers may pass + * an `isSystem: true` context to bypass — same convention as + * `IDataEngine`. + */ + executionContext?: ExecutionContext; +} + +// ── LLMAdapter (interface) ── +interface LLMAdapter { + /** Unique adapter identifier (e.g. 'openai', 'anthropic', 'memory') */ + readonly name: string; + /** + * Generate a chat completion. + * @param messages - Conversation messages (Vercel `ModelMessage`) + * @param options - Request configuration (includes tool definitions) + */ + chat(messages: ModelMessage[], options?: AIRequestOptions): Promise; + /** + * Generate a text completion from a single prompt. + * @param prompt - Input prompt string + * @param options - Request configuration + */ + complete(prompt: string, options?: AIRequestOptions): Promise; + /** + * Stream a chat completion as an async iterable of Vercel AI SDK stream parts. + * Implementations that do not support streaming may omit this method. + */ + streamChat?(messages: ModelMessage[], options?: AIRequestOptions): AsyncIterable>; + /** + * Generate embedding vectors. + */ + embed?(input: string | string[], model?: string): Promise; + /** + * Generate a strongly-typed object that conforms to a Zod schema. + * + * Adapters should delegate to the provider's native structured-output + * facility when available. Adapters without structured-output support + * may omit this method — the AI service will throw a clear error. + */ + generateObject?(messages: ModelMessage[], schema: z.ZodType, options?: GenerateObjectOptions): Promise>; + /** + * List models available through this adapter. + */ + listModels?(): Promise; +} + +// ── LifecycleEventName (type) ── +type LifecycleEventName = keyof IPluginLifecycleEvents & string; + +// ── ListExportJobsOptions (interface) ── +interface ListExportJobsOptions { + /** Filter by object name */ + object?: string; + /** Filter by job status */ + status?: ExportJobStatus; + /** Maximum number of jobs to return */ + limit?: number; + /** Pagination cursor */ + cursor?: string; +} + +// ── ListShareLinksFilter (interface) ── +interface ListShareLinksFilter { + object?: string; + recordId?: string; + createdBy?: string; + includeRevoked?: boolean; +} + +// ── LockAcquireOptions (interface) ── +interface LockAcquireOptions { + /** Lease duration in ms. Driver default applies if omitted. */ + ttlMs?: number; + /** + * Wait up to this many ms for the lock to become available. + * `0` (default) = fail-fast, never queue. + */ + waitMs?: number; + /** Optional context for logging / metrics. */ + ctx?: ClusterCallContext; +} + +// ── LockHandle (interface) ── +interface LockHandle { + /** Logical lock key. */ + readonly key: string; + /** + * Monotonically-increasing fencing token, unique per (key, acquisition). + * Use this when calling into resources that may have outlived the + * lock-holder process — pass it along so the resource can reject + * out-of-order writes. + */ + readonly fencingToken: bigint; + /** Extend the lease by another `ttlMs`. Throws if the lock was lost. */ + renew(ttlMs?: number): Promise; + /** Release the lock. Safe to call multiple times. */ + release(): Promise; + /** Returns true while this handle still owns the lock. */ + isHeld(): boolean; +} + +// ── Logger (interface) ── +interface Logger { + /** + * Log a debug message + * @param message - The message to log + * @param meta - Optional metadata to include + */ + debug(message: string, meta?: Record): void; + /** + * Log an informational message + * @param message - The message to log + * @param meta - Optional metadata to include + */ + info(message: string, meta?: Record): void; + /** + * Log a warning message + * @param message - The message to log + * @param meta - Optional metadata to include + */ + warn(message: string, meta?: Record): void; + /** + * Log an error message + * @param message - The message to log + * @param error - Optional error object + * @param meta - Optional metadata to include + */ + error(message: string, error?: Error, meta?: Record): void; + /** + * Log a fatal error message + * @param message - The message to log + * @param error - Optional error object + * @param meta - Optional metadata to include + */ + fatal?(message: string, error?: Error, meta?: Record): void; + /** + * Create a child logger with additional context + * @param context - Context to add to all logs from this child + */ + child?(context: Record): Logger; + /** + * Set trace context for distributed tracing + * @param traceId - Trace identifier + * @param spanId - Span identifier + */ + withTrace?(traceId: string, spanId?: string): Logger; + /** + * Compatibility method for console.log usage + * @param message - The message to log + * @param args - Additional arguments + */ + log?(message: string, ...args: any[]): void; + /** + * Cleanup resources (close file streams, etc.) + * Should be called when the logger is no longer needed + */ + destroy?(): Promise; +} + +// ── METADATA_ROUNDTRIP_CASES (const) ── +declare const METADATA_ROUNDTRIP_CASES: readonly MetadataRoundTripCase[]; + +// ── MarkReadResult (interface) ── +interface MarkReadResult { + success: boolean; + /** How many notifications this call actually transitioned to read. */ + readCount: number; +} + +// ── MessageObservability (interface) ── +interface MessageObservability { + /** Model id reported by the adapter (e.g. `gpt-4o-mini-2024-07-18`). */ + model?: string; + /** Tokens consumed by the prompt portion of the call. */ + promptTokens?: number; + /** Tokens generated in the completion. */ + completionTokens?: number; + /** prompt + completion. */ + totalTokens?: number; + /** Wall-clock duration of the LLM call that produced this message. */ + latencyMs?: number; +} + +// ── MetadataExportOptions (interface) ── +interface MetadataExportOptions { + /** Filter by metadata types */ + types?: string[]; + /** Filter by namespaces */ + namespaces?: string[]; + /** Export format */ + format?: 'json' | 'yaml'; +} + +// ── MetadataImportOptions (interface) ── +interface MetadataImportOptions { + /** Conflict resolution strategy */ + conflictResolution?: 'skip' | 'overwrite' | 'merge'; + /** Validate before import */ + validate?: boolean; + /** Dry run (don't actually save) */ + dryRun?: boolean; +} + +// ── MetadataImportResult (interface) ── +interface MetadataImportResult { + /** Total items processed */ + total: number; + /** Successfully imported */ + imported: number; + /** Skipped (conflict resolution) */ + skipped: number; + /** Failed items */ + failed: number; + /** Per-item error details */ + errors?: Array<{ + type: string; + name: string; + error: string; + }>; +} + +// ── MetadataRoundTripCase (interface) ── +interface MetadataRoundTripCase { + /** Stable id — unique per row; what a driver names when it reports a row. */ + readonly id: string; + /** Sentence stating the proposition, used as the test title. */ + readonly title: string; + /** Applied in order, through `register(type, name, data)`. */ + readonly writes: readonly MetadataRoundTripWrite[]; + /** Applied after every write, through `unregister(type, name)`. */ + readonly removes?: readonly MetadataRoundTripRemoval[]; + /** + * The ONE read the case makes, through `get` / `exists` / `listNames`. + * On a `refused` row it is the key the refusal must have left absent. + */ + readonly read: { + readonly type: string; + readonly name: string; + }; + readonly expected: MetadataRoundTripExpectation; + /** Why the case is in the table — what breaks if it is dropped. */ + readonly why: string; +} + +// ── MetadataRoundTripExpectation (type) ── +type MetadataRoundTripExpectation = { + readonly kind: 'readable'; + readonly document: unknown; +} | { + readonly kind: 'absent'; +} | { + readonly kind: 'refused'; +}; + +// ── MetadataRoundTripRemoval (interface) ── +interface MetadataRoundTripRemoval { + readonly type: string; + readonly name: string; +} + +// ── MetadataRoundTripWrite (interface) ── +interface MetadataRoundTripWrite { + readonly type: string; + readonly name: string; + readonly data: unknown; +} + +// ── MetadataTypeInfo (interface) ── +interface MetadataTypeInfo { + /** Metadata type identifier */ + type: string; + /** Human-readable label */ + label: string; + /** Description */ + description?: string; + /** File glob patterns */ + filePatterns: string[]; + /** Supports overlay customization */ + supportsOverlay: boolean; + /** Protocol domain */ + domain: string; + /** + * Declarative type-level actions (buttons) for this metadata type — the + * merged result of the registry entry's declarative `actions` and any + * plugin-registered actions (`registerMetadataTypeActions`). The Studio + * metadata-admin engine renders these the same way `ObjectView` renders + * an object's actions. Omitted/empty when the type declares none. + */ + actions?: Action[]; +} + +// ── MetadataWatchCallback (type) ── +type MetadataWatchCallback = (event: { + type: 'registered' | 'updated' | 'unregistered'; + metadataType: string; + name: string; + data?: unknown; +}) => void; + +// ── MetadataWatchHandle (interface) ── +interface MetadataWatchHandle { + /** Unsubscribe from watch */ + unsubscribe(): void; +} + +// ── MetadataWriteOptions (interface) ── +interface MetadataWriteOptions { + /** + * Announce the write to `subscribe(type, …)` watchers. Default `true`. + * + * A write that changes what readers see must reach the consumers that + * cache it — ObjectQL's SchemaRegistry bridge, the HMR SSE stream — + * otherwise they serve the pre-write definition until the process + * restarts. Announcing is therefore the default, so a new call site is + * correct without knowing this contract exists. + * + * Pass `false` ONLY for bulk ingest whose subscribers either do not exist + * yet (boot-time registration) or re-read the whole set from a different + * signal — those paths MUST announce by other means, as the artifact + * reload path does via the `metadata:reloaded` hook. Silencing a write + * that nothing else announces is exactly how runtime consumers go stale. + */ + notify?: boolean; + /** + * The user (actor) performing this write, when known. Carried into the + * realtime `MetadataEvent` (`@objectstack/spec/api`) published for the + * write as its `userId` field (#4602). Omit for system-initiated writes + * (boot registration, package install) — `MetadataEvent.userId` is + * optional and absence means "no human actor". + */ + userId?: string; +} + +// ── Middleware (type) ── +type Middleware = (req: IHttpRequest, res: IHttpResponse, next: () => void | Promise) => void | Promise; + +// ── MigrationApplyResult (interface) ── +interface MigrationApplyResult { + /** Whether all migrations applied successfully */ + success: boolean; + /** Number of statements executed */ + statementsExecuted: number; + /** Total execution duration in milliseconds */ + durationMs: number; + /** Error message if a statement failed */ + error?: string; + /** Index of the failed statement (if any) */ + failedAtIndex?: number; +} + +// ── ModelMessage (type) ── +type ModelMessage = SystemModelMessage | UserModelMessage | AssistantModelMessage | ToolModelMessage; + +// ── NormalizedEmailMessage (interface) ── +interface NormalizedEmailMessage { + to: string[]; + from: string; + cc?: string[]; + bcc?: string[]; + replyTo?: string; + subject: string; + text?: string; + html?: string; + attachments?: EmailAttachment[]; + headers?: Record; +} + +// ── NormalizedSmsMessage (interface) ── +interface NormalizedSmsMessage { + to: string; + body: string; + templateId?: string; + templateParams?: Record; +} + +// ── NotificationChannel (type) ── +type NotificationChannel = z.input; + +// ── NotificationMessage (interface) ── +interface NotificationMessage { + /** Notification channel to use */ + channel: NotificationChannel; + /** Recipient identifier (email, phone, user ID, etc.) */ + to: string | string[]; + /** Notification subject/title */ + subject?: string; + /** Notification body content */ + body: string; + /** Template identifier (if using a pre-defined template) */ + templateId?: string; + /** Template variable values */ + templateData?: Record; + /** Additional metadata */ + metadata?: Record; +} + +// ── NotificationResult (interface) ── +interface NotificationResult { + /** Whether the notification was sent successfully */ + success: boolean; + /** Unique identifier for tracking */ + messageId?: string; + /** Error message if sending failed */ + error?: string; +} + +// ── ObjectDraft (interface) ── +interface ObjectDraft { + /** Suggested object name (snake_case), derived from the remote table. */ + name: string; + /** The datasource this object is bound to. */ + datasource: string; + /** The structured object definition (parseable by `ObjectSchema`). */ + definition: Record; + /** Rendered TypeScript source for an `*.object.ts` file. */ + source: string; + /** Columns whose mapping is lossy or unknown, surfaced for human review. */ + review: Array<{ + column: string; + remoteType: string; + note: string; + }>; +} + +// ── PendingActionRow (interface) ── +interface PendingActionRow { + id: string; + object_name: string; + action_name: string; + tool_name: string; + tool_input: string; + status: PendingActionStatus; + result?: string; + error?: string; + rejection_reason?: string; + conversation_id?: string; + message_id?: string; + proposed_by?: string; + decided_by?: string; + proposed_at: string; + decided_at?: string; +} + +// ── PendingActionStatus (type) ── +type PendingActionStatus = 'pending' | 'approved' | 'executed' | 'failed' | 'rejected'; + +// ── PlanUpgradeInput (interface) ── +interface PlanUpgradeInput { + /** Package ID to upgrade */ + packageId: string; + /** Target version to upgrade to */ + targetVersion?: string; + /** New manifest for the target version */ + manifest?: ObjectStackManifest; +} + +// ── Plugin (interface) ── +interface Plugin { + /** + * Unique plugin identifier + */ + name: string; + /** + * Plugin version (semver) + */ + version?: string; + /** + * Plugin dependencies (hard — a missing name fails the boot) + */ + dependencies?: string[]; + /** + * Soft dependencies — order-if-present (ADR-0116). Composed names are + * hoisted ahead like `dependencies`; absent names are skipped. + */ + optionalDependencies?: string[]; + /** + * Services the plugin resolves synchronously during init(). The kernel + * validates ordering against these before Phase 1 (ADR-0116). + */ + requiresServices?: string[]; + /** + * Services the plugin's init() unconditionally registers (ADR-0116). + */ + providesServices?: string[]; + /** + * Plugin initialization function + */ + init?: (context: any) => void | Promise; + /** + * Plugin startup function + */ + start?: (context: any) => void | Promise; + /** + * Plugin destruction function + */ + destroy?: (context: any) => void | Promise; + /** + * Plugin signature for verification (optional) + */ + signature?: string; + /** + * Additional plugin metadata + */ + [key: string]: any; +} + +// ── PluginStartupResult (type) ── +type PluginStartupResult = z.input; + +// ── PresignedDownloadDescriptor (interface) ── +interface PresignedDownloadDescriptor { + /** Absolute URL the client can GET to retrieve the bytes */ + downloadUrl: string; + /** Time-to-live in seconds */ + expiresIn: number; +} + +// ── PresignedDownloadOptions (interface) ── +interface PresignedDownloadOptions { + /** Original filename → `Content-Disposition` (the browser's save-as name). */ + filename?: string; + /** Content type → `Content-Type` (defaults to `application/octet-stream`). */ + contentType?: string; + /** `inline` previews in the browser (default); `attachment` forces a download. */ + disposition?: 'inline' | 'attachment'; +} + +// ── PresignedUploadDescriptor (interface) ── +interface PresignedUploadDescriptor { + /** Absolute URL the client should send the bytes to */ + uploadUrl: string; + /** HTTP method to use (most adapters use PUT) */ + method: 'PUT' | 'POST'; + /** Headers the client must include in the upload request */ + headers?: Record; + /** Time-to-live in seconds */ + expiresIn: number; + /** Optional preview / download URL once the file is committed */ + downloadUrl?: string; +} + +// ── ProposePendingActionInput (interface) ── +interface ProposePendingActionInput { + objectName: string; + actionName: string; + toolName: string; + toolInput: Record; + conversationId?: string; + messageId?: string; + proposedBy?: string; +} + +// ── PubSubHandler (type) ── +type PubSubHandler = (msg: PubSubMessage) => void | Promise; + +// ── PubSubMessage (interface) ── +interface PubSubMessage { + /** Logical channel name (already tenant-prefixed by the driver). */ + channel: string; + /** Decoded payload. */ + payload: T; + /** Wall-clock publish time, ms since epoch. Best-effort. */ + publishedAt: number; + /** Origin node id, or undefined for local publishers. */ + fromNode?: string; +} + +// ── PublishOptions (interface) ── +interface PublishOptions { + /** Partition key — used by partitioned drivers to preserve ordering. */ + partitionKey?: string; + /** Optional context for logging / metrics. */ + ctx?: ClusterCallContext; +} + +// ── QueueBackoffPolicy (interface) ── +interface QueueBackoffPolicy { + /** Backoff strategy */ + type: 'fixed' | 'exponential'; + /** Base delay in milliseconds */ + delayMs: number; + /** Maximum delay cap in milliseconds (exponential only) */ + maxDelayMs?: number; +} + +// ── QueueHandler (type) ── +type QueueHandler = (message: QueueMessage) => Promise; + +// ── QueueMessage (interface) ── +interface QueueMessage { + /** Unique message identifier */ + id: string; + /** The message payload */ + data: T; + /** Number of times this message has been attempted */ + attempts: number; + /** Timestamp when the message was published */ + timestamp: number; +} + +// ── QueueMessageRecord (interface) ── +interface QueueMessageRecord { + id: string; + queue: string; + data: T; + status: 'pending' | 'running' | 'completed' | 'failed' | 'dlq'; + attempts: number; + maxAttempts: number; + scheduledFor?: string; + lockedBy?: string; + lockedUntil?: string; + lastError?: string; + idempotencyKey?: string; + metadata?: Record; + createdAt: string; + updatedAt?: string; + completedAt?: string; +} + +// ── QueuePublishOptions (interface) ── +interface QueuePublishOptions { + /** Delay before the message becomes available (in milliseconds) */ + delay?: number; + /** Message priority (lower = higher priority) */ + priority?: number; + /** Number of retry attempts on failure (legacy — prefer maxAttempts) */ + retries?: number; + /** Maximum total delivery attempts before DLQ (default: 3) */ + maxAttempts?: number; + /** Backoff policy between retries */ + backoff?: QueueBackoffPolicy; + /** + * Idempotency key — if a non-completed message with the same + * (queue, idempotencyKey) exists within the dedup window, the publish + * is suppressed and the existing message id is returned. + */ + idempotencyKey?: string; + /** ISO 8601 datetime — schedule message for future delivery */ + scheduledFor?: string; + /** Arbitrary metadata (org_id, tenant_id, source record) for observability */ + metadata?: Record; +} + +// ── RESERVED_RLS_MEMBERSHIP_KEYS (const) ── +declare const RESERVED_RLS_MEMBERSHIP_KEYS: readonly string[]; + +// ── RESUME_AUTHORITY_SERVICE (const) ── +declare const RESUME_AUTHORITY_SERVICE: unique symbol; + +// ── RLS_MEMBERSHIP_RESOLVER_SERVICE (const) ── +declare const RLS_MEMBERSHIP_RESOLVER_SERVICE = "rls-membership-resolver"; + +// ── RealtimeEventHandler (type) ── +type RealtimeEventHandler = (event: RealtimeEventPayload) => void | Promise; + +// ── RealtimeEventPayload (interface) ── +interface RealtimeEventPayload { + /** Event type (e.g. 'record.created', 'record.updated') */ + type: string; + /** Object name the event relates to */ + object?: string; + /** Event data */ + payload: Record; + /** Timestamp (ISO 8601) */ + timestamp: string; +} + +// ── RealtimeSubscriptionFilter (interface) ── +interface RealtimeSubscriptionFilter { + /** Metadata type filter (object, view, agent, tool, etc.) */ + type?: string; + /** Package ID filter */ + packageId?: string; + /** Event types to listen for */ + eventTypes?: string[]; + /** Record ID filter (for data events) */ + recordId?: string; + /** Field names filter (for data events) */ + fields?: string[]; +} + +// ── RealtimeSubscriptionOptions (interface) ── +interface RealtimeSubscriptionOptions { + /** Object name to filter events for */ + object?: string; + /** Event types to listen for */ + eventTypes?: string[]; + /** + * Additional filter conditions. + * + * ⚠️ EXPERIMENTAL — declared but NOT evaluated by the in-memory adapter + * (`matchesSubscription` reads only `object` + `eventTypes`). Do not rely + * on it to narrow delivery, and NEVER as an authorization mechanism + * (see the identity-admission note on {@link IRealtimeService}). + */ + filter?: Record; +} + +// ── RecordShare (interface) ── +interface RecordShare { + id: string; + object_name: string; + record_id: string; + recipient_type: RecordShareRecipientType; + recipient_id: string; + access_level: ShareAccessLevel; + source: ShareSource; + source_id?: string; + granted_by?: string; + reason?: string; + created_at?: string; + updated_at?: string; +} + +// ── RecordShareRecipientType (type) ── +type RecordShareRecipientType = 'user' | 'group' | 'position' | 'unit_and_subordinates' | 'guest'; + +// ── RemoteTable (interface) ── +interface RemoteTable { + /** Remote schema/database qualifier, when the dialect has one. */ + schema?: string; + /** Remote table/view name. */ + name: string; + /** Number of columns. */ + columnCount: number; + /** Approximate row count, when the driver can supply it cheaply. */ + rowCountEstimate?: number; +} + +// ── RenderTemplateInput (interface) ── +interface RenderTemplateInput { + /** + * Template identifier (matches `sys_email_template.name`), e.g. + * `'auth.password_reset'`. + */ + template: string; + /** Render context — placeholders in subject/body are resolved against this object. */ + data?: Record; + /** + * Preferred BCP-47 locale. Resolution is the SAME ladder as + * {@link SendTemplateInput.locale} — exact match, then `'en-US'`, then + * (no-locale calls only) the bundle's deterministic single-locale answer. + */ + locale?: string; + /** + * Reference timezone (IANA name) for rendering `datetime` holes — + * `{{ ts | datetime }}` (ADR-0053 Phase 2). Same semantics as + * {@link SendTemplateInput.timezone}. + */ + timezone?: string; +} + +// ── RenderTemplateResult (interface) ── +interface RenderTemplateResult { + /** Rendered subject line. */ + subject: string; + /** Rendered HTML body (`sys_email_template.body_html`). */ + html: string; + /** + * Rendered plain-text body — the row's `body_text` when declared, + * otherwise derived from the rendered HTML. + */ + text: string; +} + +// ── ReportFormat (type) ── +type ReportFormat = 'csv' | 'json' | 'html_table'; + +// ── ReportQuery (interface) ── +interface ReportQuery { + filter?: unknown; + fields?: string[]; + orderBy?: Array<{ + field: string; + direction?: 'asc' | 'desc'; + }>; + limit?: number; + groupBy?: string[]; +} + +// ── ReportRunResult (interface) ── +interface ReportRunResult { + reportId: string; + rowCount: number; + format: ReportFormat; + /** Rendered body — CSV string, HTML fragment, or JSON-encoded rows. */ + body: string; + /** Raw rows (always provided so callers can re-render if needed). */ + rows: unknown[]; + /** ISO timestamp of execution. */ + ranAt: string; +} + +// ── ReportSchedule (interface) ── +interface ReportSchedule { + id: string; + report_id: string; + name?: string; + interval_minutes?: number; + cron_expression?: string; + timezone?: string; + active: boolean; + recipients: string; + format?: 'csv' | 'html_table'; + subject_template?: string; + owner_id?: string; + next_run_at?: string; + last_sent_at?: string; + last_status?: 'ok' | 'failed' | 'skipped'; + last_error?: string; +} + +// ── ResolveDependenciesInput (interface) ── +interface ResolveDependenciesInput { + /** The package manifest whose dependencies to resolve */ + manifest: ObjectStackManifest; + /** Current platform version for compatibility filtering */ + platformVersion?: string; +} + +// ── ResolveShareLinkResult (interface) ── +interface ResolveShareLinkResult { + link: ShareLink; + /** Effective fields removed from the response (object default ∪ per-link). */ + redactFields: string[]; +} + +// ── ResumeFailureReport (interface) ── +interface ResumeFailureReport extends ResumeFailureDetails { + /** + * The registered error code the failure is told under (ADR-0112 ledger): + * `RESUME_FAILED` for a run that could not be advanced, + * `RESUME_TARGET_LOST` when the run behind the request no longer exists, + * `RESUME_IN_PROGRESS` for the tolerated duplicate. Required here, on + * purpose: a success answer has no envelope `code` to fall back on. + */ + code: ErrorCode; +} + +// ── ResumeSignal (interface) ── +interface ResumeSignal { + /** + * Output to merge into flow variables under the suspended node's id + * (e.g. `{ decision: 'approved' }` → `.decision`). Downstream + * edges branch on it exactly as for a normally-executed node. + */ + output?: Record; + /** + * Optional edge label to select which out-edge of the suspended node to + * follow (e.g. `'approve'` / `'reject'`). When omitted, traversal falls + * back to the node's conditional/unconditional edges. + */ + branchLabel?: string; + /** + * Bare flow variables to set on resume (e.g. a `screen` node's collected + * inputs: `{ new_assignee: 'ada@x' }` → variable `new_assignee`). Unlike + * {@link output} these are set under their plain names, so downstream + * `{var}` interpolation and conditions read them directly. + */ + variables?: Record; + /** + * Set by the service that OWNS the suspension to clear the resume gate on + * a `resumeAuthority: 'service'` node — or on one that declares no + * authority, which is gated the same way since #5561 (#3801). See + * {@link RESUME_AUTHORITY_SERVICE} — unforgeable from an HTTP body, and + * ignored entirely on nodes that declare `'any'`. + */ + [RESUME_AUTHORITY_SERVICE]?: true; +} + +// ── RlsMembershipContext (interface) ── +interface RlsMembershipContext { + /** The acting principal. Absent for an anonymous request (resolvers should return `{}`). */ + userId?: string; + /** Active organization id (`ExecutionContext.tenantId`). */ + tenantId?: string; + /** Organizations the caller holds a valid membership in (ADR-0105 D2). */ + accessible_org_ids?: string[]; + /** Positions held for this request. */ + positions?: string[]; + /** Permission-set names resolved for this request. */ + permissions?: string[]; +} + +// ── RollbackInput (interface) ── +interface RollbackInput { + /** Package ID to rollback */ + packageId: string; + /** Snapshot ID to restore from */ + snapshotId: string; + /** Whether to also rollback customizations */ + rollbackCustomizations?: boolean; +} + +// ── RouteHandler (type) ── +type RouteHandler = (req: IHttpRequest, res: IHttpResponse) => void | Promise; + +// ── SEED_SETTLEMENT_SERVICE (const) ── +declare const SEED_SETTLEMENT_SERVICE: "seed-settlement"; + +// ── SHARE_LINK_SERVICE (const) ── +declare const SHARE_LINK_SERVICE: "shareLinks"; + +// ── SaveReportInput (interface) ── +interface SaveReportInput { + id?: string; + name: string; + description?: string; + object: string; + query: ReportQuery; + format?: ReportFormat; + ownerId?: string; +} + +// ── SavedReport (interface) ── +interface SavedReport { + id: string; + name: string; + description?: string; + object_name: string; + query: ReportQuery; + format: ReportFormat; + owner_id?: string; + last_run_at?: string; + last_row_count?: number; + created_at?: string; + updated_at?: string; +} + +// ── ScheduleExportInput (interface) ── +interface ScheduleExportInput { + /** Schedule name (snake_case) */ + name: string; + /** Human-readable label */ + label?: string; + /** Object name to export */ + object: string; + /** Export file format */ + format?: ExportFormat; + /** Fields to include */ + fields?: string[]; + /** Record filter criteria */ + filter?: Record; + /** Export template ID */ + templateId?: string; + /** + * Schedule timing configuration. `cronExpression` left this block with the spec + * positions it mirrored (`ScheduleExportRequest.schedule.cronExpression` / + * `ScheduledExport.schedule.cronExpression`, both DELETED under ADR-0049, #16320): + * the return type below no longer carries the key, so an input that still demanded + * it would ask the provider for a cadence it cannot store. + */ + schedule: { + timezone?: string; + }; + /** Export delivery configuration */ + delivery: { + method: 'email' | 'storage' | 'webhook'; + recipients?: string[]; + storagePath?: string; + webhookUrl?: string; + }; +} + +// ── ScheduleReportInput (interface) ── +interface ScheduleReportInput { + reportId: string; + recipients: string[]; + name?: string; + intervalMinutes?: number; + cronExpression?: string; + timezone?: string; + format?: 'csv' | 'html_table'; + subjectTemplate?: string; + ownerId?: string; + active?: boolean; +} + +// ── SchemaValidationReport (interface) ── +interface SchemaValidationReport { + ok: boolean; + results: SchemaValidationResult[]; +} + +// ── SchemaValidationResult (interface) ── +interface SchemaValidationResult { + ok: boolean; + datasource: string; + object: string; + diffs: SchemaDiffEntry[]; +} + +// ── ScreenFieldSpec (interface) ── +interface ScreenFieldSpec { + name: string; + label?: string; + /** Widget hint (text/select/boolean/number/date/…); the client maps it to a field widget. */ + type?: string; + required?: boolean; + /** Closed-enum options for select-style fields. */ + options?: Array<{ + value: unknown; + label: string; + }>; + defaultValue?: unknown; + placeholder?: string; + /** + * Numeric bound pair the client applies to a numeric input (#17306), + * spelled as the object field spells it (`FieldSchema.min` / `.max`). + * + * Unlike {@link visibleWhen}, these are NOT client-only: the server + * re-checks them when the run resumes (`validateScreenInputs`), so a bound + * holds against a caller that skips the dialog — with no "if the value + * happens to be a number" qualifier, because on a `type: 'number'` field a + * present non-number is refused outright (`invalid_type`) rather than + * passing the bound it cannot be compared against. ⛔ Not coerced. The + * client still applies them so the user is stopped at the input rather + * than at Submit. + */ + min?: number; + max?: number; + /** + * Help text rendered under the input (#17306) — `FieldSchema`'s spelling. + * Distinct from {@link placeholder}, which the browser clears the moment a + * value is typed, and so cannot carry a constraint the user must keep + * reading. + */ + inlineHelpText?: string; + /** + * Object whose records a `type: 'lookup'` field picks from (#17306) — + * `FieldSchema.reference`'s spelling. + * + * Optional HERE and required on the authoring side: `ScreenFieldConfigSchema` + * refuses a `type: 'lookup'` field that declares no `reference` (maintainer + * ruling A′, 2026-09-13), so a screen reaching a client through a parsed + * flow always carries it. This is the WIRE shape, and it stays optional for + * the reason every key on it is: it also describes a `ScreenSpec` rehydrated + * from a run SUSPENDED before the upgrade, which was stored under the old + * accept set. A client that meets one has no target to resolve a picker + * against and falls back to a plain input — the pre-#17306 behaviour, kept + * reachable on purpose rather than turned into a client-side crash. + */ + reference?: string; + /** + * Conditional-visibility predicate (ADR-0089's canonical key), evaluated by + * the CLIENT against the screen's live collected values — not by the server, + * which has no view of what the user has typed so far. + * + * Bare CEL over the screen's own field names, e.g. `createOpportunity == + * true` shows the field only once that checkbox is ticked. Omit = always + * visible. + * + * A hidden field is not collected, so it must not be enforced as `required` + * either — a client that renders this predicate but validates over the full + * field list dead-ends the run: Submit blocks on a field the user was never + * shown, and no resume is ever issued (#3528). + */ + visibleWhen?: string; +} + +// ── ScreenSpec (interface) ── +interface ScreenSpec { + /** The screen node's id (correlates the resume back to this pause point). */ + nodeId: string; + title?: string; + description?: string; + fields: ScreenFieldSpec[]; + /** + * Rendering kind. `'fields'` (default) renders the flat {@link fields} list. + * `'object-form'` renders an object's full create/edit form — including any + * inline master-detail child grids (`subforms`) — so a screen-flow wizard + * can walk the user through one full object form per step (e.g. lead + * conversion: a Customer step, then an Opportunity-with-line-items step). + * The client renders the object form; on save it persists the record (and + * its children, atomically) itself, then resumes the run with the new + * record's id bound to {@link idVariable}. + */ + kind?: 'fields' | 'object-form'; + /** Object whose form to render (object-form screens). */ + objectName?: string; + /** Form mode for an object-form screen — defaults to `'create'`. */ + mode?: 'create' | 'edit'; + /** Record id to edit (object-form screens in `'edit'` mode). */ + recordId?: string; + /** Prefilled field values for the object form (already interpolated). */ + defaults?: Record; + /** + * Flow variable that receives the saved record's id when the client resumes + * the run — so a later step can reference it (e.g. the Opportunity form + * prefilling its `account` FK with the id created by the Customer step). + */ + idVariable?: string; +} + +// ── SearchHit (interface) ── +interface SearchHit { + /** Document ID */ + id: string; + /** Relevance score */ + score: number; + /** The matched document */ + document: Record; + /** Highlighted fields (if requested) */ + highlights?: Record; +} + +// ── SearchOptions (interface) ── +interface SearchOptions { + /** Filter conditions to narrow results */ + filter?: Record; + /** Maximum number of results to return */ + limit?: number; + /** Offset for pagination */ + offset?: number; + /** Fields to sort by */ + sort?: string[]; + /** Fields to include in results */ + select?: string[]; + /** Facet fields to aggregate */ + facets?: string[]; + /** Enable highlighting of matching terms */ + highlight?: boolean; +} + +// ── SearchResult (interface) ── +interface SearchResult { + /** Matched documents */ + hits: SearchHit[]; + /** Total number of matching documents */ + totalHits: number; + /** Query processing time in milliseconds */ + processingTimeMs?: number; + /** Facet counts (if requested) */ + facets?: Record>; +} + +// ── SecurityContext (type) ── +type SecurityContext = Partial; + +// ── SeedSettlementSnapshot (interface) ── +interface SeedSettlementSnapshot { + /** + * Seed sources whose boot-time write has not settled — the sum of + * {@link inFlight} and {@link suppressed}. `0` means every registered source + * has finished writing (or none was ever registered), and a consumer may act + * on what the store now holds. + */ + readonly pending: number; + /** + * Sources still writing. Each will settle and emit `app:seeded`, so a + * consumer that defers on this will be called again. + */ + readonly inFlight: number; + /** + * One entry per source this boot suppressed; these never settle and no + * `app:seeded` follows. Carried as reasons rather than a count so a consumer + * can say *why* it is standing down. + */ + readonly suppressed: readonly SeedSuppressionReason[]; +} + +// ── SeedSuppressionReason (type) ── +type SeedSuppressionReason = +/** Multi-tenant: seeds replay per org on `sys_organization` insert. */ +'multi-tenant-replay' +/** `skipSeedData`: a read-only planning boot that writes nothing (#3917). */ + | 'skip-seed-data'; + +// ── SendEmailInput (interface) ── +interface SendEmailInput { + /** Envelope recipients. */ + to: EmailAddress | EmailAddress[]; + /** Envelope sender. When omitted, the service's configured default-from is used. */ + from?: EmailAddress; + /** Carbon-copy recipients. */ + cc?: EmailAddress | EmailAddress[]; + /** Blind-carbon-copy recipients. */ + bcc?: EmailAddress | EmailAddress[]; + /** Address used for Reply-To header. */ + replyTo?: EmailAddress; + /** Subject line. */ + subject: string; + /** Plain-text body (recommended for accessibility / spam scoring). */ + text?: string; + /** HTML body. At least one of `text` or `html` must be supplied. */ + html?: string; + /** Inline / attached files. */ + attachments?: EmailAttachment[]; + /** Extra headers to merge onto the outgoing message. */ + headers?: Record; + /** Optional related record for activity-stream linkage. */ + relatedObject?: string; + relatedId?: string; + /** User id for `sent_by` audit linkage. */ + sentBy?: string; + /** + * Organization (tenant) id stamped verbatim onto the persisted + * `sys_email.organization_id` (#11741, Decision 2 of #11303). + * + * Pass-through only: the email service's writer runs under a constant + * system context and MUST NOT resolve or fabricate an organization — a + * wrong `organization_id` is silently authoritative to every report, + * export and cleanup script that filters by organization, which is worse + * than a null. Producers that already hold one (e.g. the messaging email + * channel's `delivery.notification.organizationId`) thread it here; omit + * it when the caller genuinely has none (auth verification / + * password-reset mail) — absent stays legal and the row is simply + * unstamped. Forward-stamping only; pre-existing org-less rows are not + * backfilled. + */ + organizationId?: string; +} + +// ── SendEmailResult (interface) ── +interface SendEmailResult { + /** Always set; matches sys_email.id when persistence is enabled. */ + id: string; + status: EmailDeliveryStatus; + /** Set when status='sent'. */ + messageId?: string; + /** Set when status='failed'. */ + error?: string; +} + +// ── SendSmsInput (interface) ── +interface SendSmsInput { + /** Recipient phone number, E.164 recommended (`+8613800000000`). */ + to: string; + /** + * Rendered message text. Free-form transports (Twilio, log) deliver it + * verbatim; template-only transports (Aliyun) ignore it in favour of + * `templateId`/`templateParams`. + */ + body: string; + /** + * Provider-side template identifier (e.g. an Aliyun `TemplateCode`). + * Optional — template-only transports fall back to their configured + * default template when omitted. + */ + templateId?: string; + /** Variables for a provider-side template (e.g. `{ code: '123456' }`). */ + templateParams?: Record; + /** Optional related record for audit linkage (ids only — never bodies). */ + relatedObject?: string; + relatedId?: string; +} + +// ── SendSmsResult (interface) ── +interface SendSmsResult { + /** Correlation id for this attempt (not persisted — see contract header). */ + id: string; + status: SmsDeliveryStatus; + /** Provider message id, set when status='sent'. */ + messageId?: string; + /** Failure detail, set when status='failed'. Never contains the body. */ + error?: string; +} + +// ── SendTemplateInput (interface) ── +interface SendTemplateInput { + /** + * Template identifier (matches `sys_email_template.name`), e.g. + * `'auth.password_reset'`. The service picks the best-matching + * locale row (falls back to `en-US`). + */ + template: string; + /** Envelope recipients. */ + to: EmailAddress | EmailAddress[]; + /** Render context — placeholders in subject/body are resolved against this object. */ + data?: Record; + /** + * Preferred BCP-47 locale (e.g. user's locale). Falls back to `'en-US'`. + * + * Resolution is exact, then default, then deterministic — never "whichever + * row the store yields first" (#7731): + * + * 1. this locale, matched exactly (no language-only prefix matching: `zh` + * does not resolve `zh-CN`); + * 2. `'en-US'` — which is also where a call that omits `locale` STARTS, so + * "no locale" means the default rather than an arbitrary row; + * 3. only for a call that named no locale, and only when the bundle has no + * `en-US` row at all: its lowest locale tag, so a single-locale tenant + * keeps rendering and does so identically on every boot. + */ + locale?: string; + /** + * Reference timezone (IANA name, e.g. `America/New_York`) for rendering + * `datetime` holes — `{{ ts | datetime }}` (ADR-0053 Phase 2). The caller + * supplies the recipient's / tenant's zone (typically from the resolved + * `ExecutionContext.timezone`). Unset → the runtime zone (pre-Phase-2 + * behavior). Calendar-day `date` holes are unaffected (tz-naive). + */ + timezone?: string; + /** Envelope sender override (otherwise template.fromOverride → service default). */ + from?: EmailAddress; + /** Carbon-copy recipients. */ + cc?: EmailAddress | EmailAddress[]; + /** Blind-carbon-copy recipients. */ + bcc?: EmailAddress | EmailAddress[]; + /** Reply-To header override (otherwise template.replyTo). */ + replyTo?: EmailAddress; + /** Inline / attached files. */ + attachments?: EmailAttachment[]; + /** Extra headers to merge onto the outgoing message. */ + headers?: Record; + /** Optional related record for activity-stream linkage. */ + relatedObject?: string; + relatedId?: string; + /** User id for `sent_by` audit linkage. */ + sentBy?: string; + /** + * Organization (tenant) id forwarded into the {@link SendEmailInput} this + * template send performs, and stamped from there onto + * `sys_email.organization_id` (#11741). Same contract as + * {@link SendEmailInput.organizationId}: pass-through only, optional, + * absent stays legal. Distinct from the retired `org` member (removed + * 2026-08-25, #11832), which declared template org-overlay *resolution* + * and was never read — this member stamps the delivery row's tenant and + * opts into no overlay resolution. + */ + organizationId?: string; +} + +// ── ServiceSlotContract (type) ── +type ServiceSlotContract = K extends keyof ServiceSlotContracts ? ServiceSlotContracts[K] : unknown; + +// ── ServiceSlotContracts (interface) ── +interface ServiceSlotContracts extends CoreServiceContracts { + /** + * `plugin-security` registers it (`security-plugin.ts`), and + * `ISecurityService`'s own doc names the registration — `ctx.registerService('security', …)`. + * The contract, the provider and the three methods `domains/security.ts` + * calls all already agreed; only the binding was unwritten. + */ + security: ISecurityService; + /** `plugin-sharing` registers `ShareLinkService`, which declares `implements IShareLinkService`. */ + shareLinks: IShareLinkService; + /** + * The SAME instance as `data`, seen whole. `packages/objectql`'s plugin + * registers one object under both names, two lines apart — and the two + * entries deliberately differ: `data` is the engine as + * {@link IDataEngine} (the data plane, what most consumers should ask + * for), `objectql` is the full engine — registry, hook/middleware seams, + * runners, boot wiring, ops probes. + * + * [#4251 B3] Was `IDataEngine` here too, with the remainder recorded as + * "wider, contract unwritten" on `DomainHandlerContext.getObjectQL` and + * seven consumer-local surface declarations standing in for it. The + * contract exists now and `ObjectQL implements IObjectQLEngine` checks it, + * so the slot resolves to what its occupant actually is. + */ + objectql: IObjectQLEngine; + /** + * The HTTP server slot — **`http.server` is the canonical name**. + * + * [#4251] Entered when the false `UNCONTRACTED_SLOTS` exemption was + * revoked: the exemption claimed "no IHttpServer contract exists" while + * this contract existed and eight call sites already resolved the slot + * through it. Every provider registers the canonical name — hono-plugin's + * own registration comment reads "Register HTTP server service as + * IHttpServer" — and it is the ONLY name present on all provider paths + * (`runtime.ts`'s `config.server` path registers no alias). + */ + 'http.server': IHttpServer; + /** + * **Deprecated alias** of {@link ServiceSlotContracts['http.server']} — + * the same instance under a second name. plugin-hono-server and qa's + * node-plugin register both, two lines apart, the alias explicitly + * commented "for backward compatibility"; `runtime.ts`'s `config.server` + * path registers ONLY the canonical name, so a reader of this alias alone + * finds an empty slot there. New code reads `http.server`; readers of the + * alias migrate as touched, and the alias registrations are dropped at a + * release boundary once none remain. + */ + 'http-server': IHttpServer; +} + +// ── ShareAccessLevel (type) ── +type ShareAccessLevel = 'read' | 'edit'; + +// ── ShareLink (interface) ── +interface ShareLink { + id: string; + /** Opaque URL-safe token. Always present; the only secret. */ + token: string; + object_name: string; + record_id: string; + permission: ShareLinkPermission; + audience: ShareLinkAudience; + /** ISO timestamp; null means no expiry. */ + expires_at?: string | null; + /** When `audience='email'`, the allow-listed addresses (lowercased). */ + email_allowlist?: string[] | null; + /** Optional argon2/bcrypt hash; UI prompts for a password when set. */ + password_hash?: string | null; + /** Per-link extra redactions, layered on top of the object-default set. */ + redact_fields?: string[] | null; + /** Free-text shown in the share dialog (e.g. "Q3 contract for ACME"). */ + label?: string | null; + /** When set, the link is revoked and `resolveToken` returns null. */ + revoked_at?: string | null; + created_by?: string | null; + created_at?: string; + last_used_at?: string | null; + use_count?: number; +} + +// ── ShareLinkAudience (type) ── +type ShareLinkAudience = 'public' | 'link_only' | 'signed_in' | 'email'; + +// ── ShareLinkExecutionContext (interface) ── +interface ShareLinkExecutionContext { + userId?: string; + tenantId?: string; + isSystem?: boolean; + /** + * [Finding-2] The caller's resolved positions / permissions. Populated by the + * verified route wiring so the route's own principal checks read the real + * identity rather than a spoofable header. + * + * These are NOT sufficient for an RLS-aware visibility check — that check + * lives on {@link IShareLinkService} and takes the full + * {@link ExecutionContext}. + */ + positions?: string[]; + permissions?: string[]; +} + +// ── ShareLinkPermission (type) ── +type ShareLinkPermission = 'view' | 'comment' | 'edit'; + +// ── ShareSource (type) ── +type ShareSource = 'manual' | 'rule' | 'team' | 'inherited'; + +// ── SharingRuleEvaluationResult (interface) ── +interface SharingRuleEvaluationResult { + ruleId: string; + matchedRecords: number; + expandedUsers: number; + grantsCreated: number; + grantsUpdated: number; + grantsRevoked: number; + /** + * [#14969] Grants the engine REFUSED during the pass — each one an + * `ERR_SYSTEM_WRITE_ORGANIZATION_REQUIRED` on an organization-less insert + * into a tenant-scoped `sys_record_share`. The pass continues past a refused + * grant (the remaining grants and the stale-row revocations still run), so + * `grantsRefused > 0` is NOT "the pass failed": it is the pass reporting + * what it could not grant on. + * + * Optional by design, and the optionality carries meaning. A required key + * would break every other `ISharingRuleService` implementer, in-tree and + * out, while an implementation that refuses grants may still narrow it to + * required on its own subtype (a legal covariant narrowing — + * `@objectstack/plugin-sharing` does exactly that). The key is ABSENT — not + * `0` — from any implementation that does not count refusals. A consumer + * branching on it must read "unset" as "this implementation does not report + * refusals", never as "no grant was refused"; only a present `0` says the + * latter. + * + * The wire already carried it: `POST /api/v1/sharing/rules/:idOrName/evaluate` + * answers the service's return value unfiltered, so this key lifts the + * declared client type (`shares.rules.evaluate`) up to what the route sends. + */ + grantsRefused?: number; +} + +// ── SharingRuleRecipientType (type) ── +type SharingRuleRecipientType = 'user' | 'team' | 'business_unit' | 'position' | 'unit_and_subordinates' | 'queue' | 'field'; + +// ── SharingRuleRow (interface) ── +interface SharingRuleRow { + id: string; + organization_id?: string | null; + name: string; + label: string; + description?: string | null; + object_name: string; + /** + * Engine-compatible FilterCondition. `undefined`/`null` matches every + * row of `object_name` (use with care — typically scoped via teams). + */ + criteria?: unknown; + recipient_type: SharingRuleRecipientType; + recipient_id: string; + access_level: ShareAccessLevel; + active: boolean; + /** + * [#2909 P0] Record provenance — unified A4 tri-state + * (`platform` / `package` / `admin`). Package/platform rows are boot-seeded + * and become seed-not-clobber once `customized` is set; admin rows are + * tenant-authored and never touched by the seeder. + */ + managed_by?: 'platform' | 'package' | 'admin' | null; + /** + * [#2909 T1] Stamped when an admin edits a package/platform-seeded rule; + * the boot seeder then stops overwriting the row (an admin's + * `active: false` survives redeploys instead of being resurrected). + */ + customized?: boolean | null; + created_at?: string; + updated_at?: string; +} + +// ── SharingWriteVerdict (type) ── +type SharingWriteVerdict = 'allow' | 'abstain' | 'deny'; + +// ── SmsDeliveryStatus (type) ── +type SmsDeliveryStatus = 'sent' | 'failed'; + +// ── SmsTransportSendResult (interface) ── +interface SmsTransportSendResult { + /** Provider message id (Aliyun BizId, Twilio SID, …). */ + messageId: string; + /** Optional raw response detail from the underlying provider. */ + response?: string; +} + +// ── StorageFileInfo (interface) ── +interface StorageFileInfo { + /** File key/path */ + key: string; + /** File size in bytes */ + size: number; + /** MIME content type */ + contentType?: string; + /** Last modified timestamp */ + lastModified: Date; + /** Custom metadata */ + metadata?: Record; +} + +// ── StorageListOptions (interface) ── +interface StorageListOptions { + /** + * Continuation token taken verbatim from a previous page's `nextCursor`. + * Omit for the first page. + * + * OPAQUE: never construct, parse, compare or persist-and-reinterpret one. + * It encodes a position in the backend's key order, and an adapter refuses + * a token it cannot decode (`VALIDATION_ERROR` / 400) rather than silently + * restarting from the beginning — a silent restart is how a paging sweep + * loops forever. + */ + cursor?: string; + /** + * Maximum number of items in the returned page. Must be a positive + * integer; anything else is refused (`VALIDATION_ERROR` / 400) rather than + * clamped. Defaults to {@link DEFAULT_STORAGE_LIST_LIMIT}. + * + * Adapters resolve it through {@link resolveStorageListLimit} so every + * backend answers an invalid `limit` the same way. + */ + limit?: number; +} + +// ── StorageListPage (interface) ── +interface StorageListPage { + /** + * The page's files, in ascending key order. + * + * A page is FULL (`items.length === limit`) unless it is the last one, so + * an adapter that has to make several backend round-trips to fill a page + * makes them — a caller never sees a short page that merely reflects the + * backend's own page size. + */ + items: StorageFileInfo[]; + /** + * Continuation token for the next page — present **if and only if** more + * items remain. + * + * ⚠️ Page until `nextCursor` is absent. Never infer completeness from + * `items.length < limit`: under concurrent deletion a final `stat` can drop + * an item from a page that still has a successor. + */ + nextCursor?: string; +} + +// ── StorageUploadOptions (interface) ── +interface StorageUploadOptions { + /** MIME content type */ + contentType?: string; + /** Custom metadata key-value pairs */ + metadata?: Record; + /** Access control level */ + acl?: 'private' | 'public-read'; +} + +// ── StrategyContext (interface) ── +interface StrategyContext { + /** Resolve a cube definition by name. */ + getCube(name: string): Cube | undefined; + /** Probe driver capabilities for the object backing a cube. */ + queryCapabilities(cubeName: string): AnalyticsDriverCapabilities; + /** + * Execute a raw SQL string on the driver that owns `objectName`. + * Only available when `nativeSql` capability is true. + */ + executeRawSql?(objectName: string, sql: string, params: unknown[]): Promise[]>; + /** + * Execute an ObjectQL aggregate query. + * Only available when `objectqlAggregate` capability is true. + */ + executeAggregate?(objectName: string, options: { + groupBy?: string[]; + /** + * One entry per aggregate to compute. `filter` (#10576, the contract + * half of #10413's ruling) is a per-aggregation predicate over the + * SOURCE rows — SQL `FILTER (WHERE …)` semantics — so a strategy can + * lower a measure-scoped filter (`stage: 'closed_won'`) into the one + * aggregation it belongs to instead of dropping it (the #10413 silent + * drop) or scoping the WHOLE call via the sibling `filter` below. + * Bridges forward it to `engine.aggregate`'s `aggregations[].filter` + * (`AggregationNodeSchema.filter`), which the engine honours on every + * driver by lowering in memory when the driver has no native + * conditional aggregation. + * + * `method` is the engine's own closed vocabulary + * (`AggregationFunction`, data/query.zod.ts) — the same slot + * `engine.aggregate`'s `aggregations[].function` declares. It was + * `string` until #12776; the bridge's runtime parse-and-refuse + * (#11833) stays as defence in depth behind this compile-time check. + */ + aggregations?: Array<{ + field: string; + method: AggregationFunction; + alias: string; + filter?: FilterCondition; + }>; + filter?: Record; + /** + * Reference timezone (IANA name) for date bucketing (ADR-0053 Phase 2). + * Forwarded to the engine so `groupBy` items with a `dateGranularity` + * bucket on that zone's calendar days. Unset / `'UTC'` keeps the UTC + * fast path. + */ + timezone?: string; + /** + * ADR-0021 D-C (#3602) — the request's ExecutionContext, forwarded to + * `engine.aggregate` (`BaseEngineOptions.context`) so the ENGINE's own + * middleware chain scopes the read. + * + * This is the second belt, independent of {@link StrategyContext.getReadScope}. + * The two resolve scope through different paths — this one through the + * engine's middleware (`mergeReadContext` → RLS/sharing injection into + * `opCtx.ast.where`), `getReadScope` through `security.getReadFilter` at + * the analytics layer — and both are kept on purpose: + * + * - Without this, a strategy that forgets to call `getReadScope` runs + * completely unscoped. That is exactly how #3597 happened, and the + * context-less bridge is what let it through: with no principal on the + * operation, the security middleware's fall-open skipped its own RLS + * injection, so BOTH belts were off at once. + * - Without `getReadScope`, deployments that do not install + * plugin-security have no engine-side RLS at all — the analytics layer + * is their only belt. + * + * Optional because a bridge to a non-ObjectQL backend may have nowhere + * to put it; the `@objectstack/service-analytics` auto-bridge always + * forwards it. + */ + context?: ExecutionContext; + }): Promise[]>; + /** + * Fallback in-memory analytics service (e.g. MemoryAnalyticsService from driver-memory). + */ + fallbackService?: { + query(query: AnalyticsQuery): Promise; + getMeta(cubeName?: string): Promise; + generateSql?(query: AnalyticsQuery): Promise<{ + sql: string; + params: unknown[]; + }>; + }; + /** + * ADR-0021 D-C (#3602) — the ExecutionContext of the request being served + * (tenant, user, roles, transaction). + * + * Bound per call by the `IAnalyticsService` implementation from the + * `context` argument of `query()` / `generateSql()` / `queryDataset()`. + * Strategies forward it to `executeAggregate` so the engine's middleware + * chain can apply its own RLS — the depth-in-defense layer beneath + * {@link StrategyContext.getReadScope}, which only works if every strategy + * remembers to call it (#3597 is what happens when one does not). + * + * `undefined` means the caller supplied no context (in-memory/dev use, or a + * system-internal query). It does NOT mean "unrestricted": the analytics + * layer's own scoping still applies, and the engine treats a context-less + * operation per its own policy. + */ + context?: ExecutionContext; + /** + * ADR-0021 D-C — per-object read scope (RLS + tenant isolation). + * + * Returns the security predicate that MUST be ANDed into the query for the + * given object, as a canonical Mongo-style `FilterCondition` (exactly what + * the `RLSCompiler` emits). The strategy compiles it to alias-qualified, + * parameterized SQL and injects it for the base table AND every joined + * object, closing the raw-SQL bypass at `engine.ts` (`execute()` does not + * thread tenant scope on its own). + * + * This hook is bound to the current request's `ExecutionContext` by the + * `IAnalyticsService` implementation (see `query(query, context)`), so the + * provider already knows the active tenant when it is called. + * + * @example + * ```ts + * getReadScope: (obj) => ({ organization_id: tenantId }) + * ``` + * + * Returning `undefined`/`null` means "no scope for this object" (e.g. a + * global control-plane table). When this hook is absent entirely the + * strategy runs unscoped — callers that require isolation MUST provide it. + */ + getReadScope?(objectName: string): FilterCondition | null | undefined; + /** + * ADR-0021 D-C — join allowlist. Returns the set of relationship aliases the + * dataset behind `cubeName` explicitly declared via `include`. The strategy + * REJECTS any join whose alias is not in this set (v1 only joins along + * declared relationships). Returning `undefined` disables the check (legacy + * Cube definitions that pre-date datasets). + */ + getAllowedRelationships?(cubeName: string): Set | undefined; + /** + * Coerce a filter comparand to the storage form of a temporal column on the + * object backing the query, so a relative-date / ISO-string value (e.g. the + * `{12_months_ago}` dashboard token expanded to `"2025-06-18"`) compares + * correctly against the column on the active driver. + * + * Why this exists: `NativeSQLStrategy` compiles a raw `SELECT … WHERE col >= $N` + * and binds the value directly, bypassing the driver's own CRUD coercion. Under + * the better-sqlite3 driver a `Field.datetime` column is stored as an INTEGER + * epoch (ms), so `col >= '2025-06-18'` is a TEXT-vs-INTEGER affinity compare + * that is *always false* → empty result (the silent "No rows" bug). This hook + * lets the strategy ask the driver for the storage-correct value instead. + * + * Driver/dialect correctness lives entirely behind this hook (single source of + * truth = the driver): + * - SQLite `Field.datetime` → epoch milliseconds (number). + * - `Field.date` (any dialect) → `YYYY-MM-DD` text. + * - native-timestamp dialects (Postgres/MySQL) and non-temporal fields → + * the value is returned UNCHANGED, so the already-correct text/timestamp + * comparison is preserved and Postgres is never given an epoch integer. + * + * When the hook is absent (legacy wiring, non-SQL drivers) the strategy binds + * the value as-is — exactly today's behaviour — so it is purely additive. + * + * @param objectName Logical object / table backing the cube. + * @param fieldName Bare column name the filter targets. + * @param value The stringified comparand from the normalized filter. + */ + coerceTemporalFilterValue?(objectName: string, fieldName: string, value: unknown): unknown; + /** + * The companion of {@link StrategyContext.coerceTemporalFilterValue} for the + * LEFT side of the same comparison: given the SQL the strategy was going to + * emit for the column (an already-quoted, possibly alias-qualified reference), + * return the SQL it must emit instead so the column reads in the same storage + * form the coerced comparand is in. + * + * Why coercing the value alone is not enough: a SQLite `Field.datetime` column + * is MIXED-form in practice. A JS `Date` binds as an INTEGER epoch, but a REST + * / JSON write carries an ISO string (JSON has no `Date`) and a `NOW()` default + * — including the platform's own `created_at` / `updated_at` stamps — lands as + * ISO TEXT. Coercing the comparand to epoch ms therefore fixes the INTEGER rows + * and breaks the TEXT ones, which is why a dashboard `dateRange: last_30_days` + * still read 0 while the rows existed (#3912). The driver answers with an + * expression that normalises whatever is stored, so both halves match. + * + * Everything else — `Field.date`, native-timestamp dialects, non-temporal + * columns — gets `columnSql` back verbatim, and when the hook is absent the + * strategy emits the bare column exactly as before, so it is purely additive. + * + * @param objectName Logical object / table backing the cube. + * @param fieldName Bare column name the filter targets. + * @param columnSql The SQL reference the strategy resolved for that column. + */ + coerceTemporalFilterColumn?(objectName: string, fieldName: string, columnSql: string): string; + /** + * ADR-0062 D6 — is `objectName` a federated (external-datasource) object? + * + * The `NativeSQLStrategy` compiles its own `FROM ""` and column + * references, which bypass the driver's physical-table resolution and so + * would query the WRONG table for a federated object whose `external.remoteName` + * / `remoteSchema` / `columnMap` differ from the logical object/field names. + * Until native-SQL learns the driver's physical resolution, the strategy + * DECLINES external objects (see its `canHandle`), so they fall through to the + * ObjectQL aggregate path — which routes through the driver's `getBuilder` + * (honouring `remoteName`/`remoteSchema`, #2138/#2149). This keeps external + * analytics correct ("reuse the driver's resolution") rather than silently + * querying the wrong table. + * + * Returns `true` for a federated object, `false`/`undefined` otherwise. When + * the hook is absent (legacy wiring) the strategy assumes non-external — + * purely additive, no behavior change for managed objects. + */ + isExternalObject?(objectName: string): boolean; +} + +// ── SubscribeOptions (interface) ── +interface SubscribeOptions { + /** Optional context for logging / metrics. */ + ctx?: ClusterCallContext; +} + +// ── SystemModelMessage (type) ── +type SystemModelMessage = { + role: 'system'; + content: string; + /** + * Additional provider-specific metadata. They are passed through + * to the provider from the AI SDK and enable provider-specific + * functionality that can be fully encapsulated in the provider. + */ + providerOptions?: ProviderOptions; +}; + +// ── TextStreamPart (type) ── +type TextStreamPart = TextStreamTextStartPart | TextStreamTextEndPart | TextStreamTextDeltaPart | TextStreamReasoningStartPart | TextStreamReasoningEndPart | TextStreamReasoningDeltaPart | TextStreamCustomPart | TextStreamToolInputStartPart | TextStreamToolInputEndPart | TextStreamToolInputDeltaPart | TextStreamSourcePart | TextStreamFilePart | TextStreamReasoningFilePart | TextStreamToolCallPart | TextStreamToolResultPart | TextStreamToolErrorPart | TextStreamToolOutputDeniedPart | TextStreamToolApprovalRequestPart | TextStreamToolApprovalResponsePart | TextStreamStartStepPart | TextStreamFinishStepPart | TextStreamStartPart | TextStreamFinishPart | TextStreamAbortPart | TextStreamErrorPart | TextStreamRawPart; + +// ── ToolCallPart (interface) ── +interface ToolCallPart { + type: 'tool-call'; + /** + * ID of the tool call. This ID is used to match the tool call with the tool result. + */ + toolCallId: string; + /** + * Name of the tool that is being called. + */ + toolName: string; + /** + * Arguments of the tool call. This is a JSON-serializable object that matches the tool's input schema. + */ + input: unknown; + /** + * Additional provider-specific metadata. They are passed through + * to the provider from the AI SDK and enable provider-specific + * functionality that can be fully encapsulated in the provider. + */ + providerOptions?: ProviderOptions; + /** + * Whether the tool call was executed by the provider. + */ + providerExecuted?: boolean; +} + +// ── ToolExecutionContext (interface) ── +interface ToolExecutionContext { + /** + * Authenticated end user on whose behalf the LLM is acting. + * Built-in tools promote this into the ObjectQL `ExecutionContext` + * so RLS engages. + * + * A missing actor means an UNAUTHENTICATED caller (#2991): + * executors MUST run data-touching tools with an anonymous + * (RLS-on, sees-nothing) context — never as system. System + * execution is only ever the explicit {@link isSystem} opt-in, + * not the consequence of a forgotten field. + */ + actor?: { + id: string; + name?: string; + positions?: string[]; + permissions?: string[]; + }; + /** + * Explicit, deliberate elevation: run tool handlers with a + * system-level (RLS-bypassing) `ExecutionContext` — the same + * convention as `IDataEngine` / `IKnowledgeService` + * (`isSystem: true`). Reserved for trusted server-side invocations + * (cron, migrations, internal jobs); MUST be set by trusted server + * code only, never derived from request input, and ignored when an + * {@link actor} is present. This flag is the ONLY way to obtain + * system behaviour from the tool loop — a merely absent actor + * fails closed to anonymous instead (#2991). + */ + isSystem?: boolean; + /** Conversation id for trace/HITL correlation. */ + conversationId?: string; + /** + * Stable per-user-turn idempotency key (ADR-0013 D1). Supplied by the + * client and constant across a Retry of the same turn. The service dedups + * the inbound user message by `(conversationId, turnId)` and short-circuits + * the stored reply when the turn already completed. Omit for + * internal/system invocations that have no user-facing turn. + */ + turnId?: string; + /** Assistant message id that produced the tool call. */ + messageId?: string; + /** Active environment (multi-tenant project) id, if known. */ + environmentId?: string; + /** + * The agent this chat runs as (e.g. the `:agentName` from + * `/api/v1/ai/agents/:agentName/chat`). Stamped onto an auto-created + * conversation's `agent_id` so downstream analytics / per-agent metering can + * attribute usage to the right agent instead of leaving it null. + */ + agentId?: string; + /** + * Object the user is currently viewing in the UI (e.g. the list/detail + * page they have open). Built-in data tools use this as a fallback target + * when the user refers to "this object" / "the current object" and the + * free-text request doesn't name one explicitly — so a question phrased in + * any language still resolves to the right object without a keyword match. + */ + currentObjectName?: string; + /** View the user is currently viewing, if known. */ + currentViewName?: string; + /** + * cloud#1610 — what the user is currently DISCUSSING, derived by the UI + * from its route and selection, sent fresh on every turn. Strictly richer + * than `currentObjectName`/`currentViewName` (which stay as their own + * fields for back-compat): the Studio pillar the user is on, the selected + * artifact WITH its type discriminator (an interfaces nav leaf may be a + * page, object view, dashboard or report — the type is what makes "改这个" + * unambiguous), an optional finer selection inside it, and the canvas mode. + * Consumers treat every field as optional and advisory: grounding for the + * agents ("当前正在讨论…"), default targets for authoring tools — never an + * access decision. + */ + surfaceContext?: { + /** Studio pillar / console area, e.g. 'data' | 'automations' | 'interfaces' | 'access'. */ + pillar?: string; + /** The artifact under discussion, with its metadata type (e.g. {type:'dashboard', name:'sales_overview'}). */ + artifact?: { + type: string; + name: string; + }; + /** Finer selection inside the artifact (e.g. {kind:'field', id:'priority'}). */ + selection?: { + kind: string; + id: string; + }; + /** Canvas mode where applicable: 'design' | 'run'. */ + mode?: string; + }; + /** + * Text of the latest user message (neutral context, like currentObjectName). + * Forwarded so a tool can detect intent — e.g. an explicit confirm/approval — + * without re-deriving it from the transcript. Consumers own any semantics. + * Populated by whichever layer owns the agent route (cloud, post-cloud ADR-0025). + */ + userMessageText?: string; + /** + * Blueprint-identity digest stamped on a CONFIRM REPLAY of an already + * approved proposal — the consent record saying *this exact blueprint* is + * the one the user approved, carried onto the turn that replays it. + * Populated by whichever layer owns the agent route (cloud, post-cloud + * ADR-0025) — the same provenance {@link userMessageText} carries — and set + * only by in-process server code on that route. ⛔ NEVER derived from a + * request body, a tool argument or the transcript: anything the caller can + * write is not a confirmation. + * + * `undefined` means "no confirmed identity on this turn" and authorizes + * NOTHING — the same fail-closed reading as {@link actor} and + * {@link isSystem} (#2991). A handler MUST NOT read consent out of a + * missing field. + * + * Declared here because a published handler already AUTHORIZES on it: + * cloud's `apply_blueprint` gate makes a matching identity one clause of + * the decision to build a whole app (cloud#1954, cloud PR #2005). A field a + * handler authorizes on belongs in the declared contract, not in a + * consumer's structural cast. + */ + confirmedBlueprintIdentity?: string; + /** Distributed-trace id for cross-service correlation. */ + traceId?: string; + /** + * Emit a progress event WHILE a long-running tool executes, surfaced to the + * client mid-stream (before the tool returns). Set only on the streaming + * path (`streamChatWithTools`); `undefined` for non-streaming/system calls, + * so handlers must call it optionally (`ctx.onProgress?.(…)`). + * + * `type` is a Vercel UI-message-stream custom data-part name (must start + * with `data-`, e.g. `data-build-progress`). Pass a stable `id` to RECONCILE + * (replace) the part across emits — ideal for a single progress object that + * updates in place; omit `id` for append-only events. `data` is the payload. + * + * Example (apply_blueprint streaming its build tree): + * ctx.onProgress?.({ type: 'data-build-progress', id: 'build', data: { phase, items } }); + */ + onProgress?: (part: { + type: string; + id?: string; + data?: unknown; + }) => void; +} + +// ── ToolModelMessage (type) ── +type ToolModelMessage = { + role: 'tool'; + content: ToolContent; + /** + * Additional provider-specific metadata. They are passed through + * to the provider from the AI SDK and enable provider-specific + * functionality that can be fully encapsulated in the provider. + */ + providerOptions?: ProviderOptions; +}; + +// ── ToolResultPart (interface) ── +interface ToolResultPart { + type: 'tool-result'; + /** + * ID of the tool call that this result is associated with. + */ + toolCallId: string; + /** + * Name of the tool that generated this result. + */ + toolName: string; + /** + * Result of the tool call. This is a JSON-serializable object. + */ + output: ToolResultOutput; + /** + * Additional provider-specific metadata. They are passed through + * to the provider from the AI SDK and enable provider-specific + * functionality that can be fully encapsulated in the provider. + */ + providerOptions?: ProviderOptions; +} + +// ── ToolSet (type) ── +type ToolSet = Record | Tool | Tool | Tool) & Pick, 'execute' | 'onInputAvailable' | 'onInputStart' | 'onInputDelta' | 'needsApproval'>>; + +// ── TransportSendResult (interface) ── +interface TransportSendResult { + messageId: string; + /** Optional raw response from the underlying provider. */ + response?: string; +} + +// ── UNMATCHED_ROUTE_PATTERN (const) ── +declare const UNMATCHED_ROUTE_PATTERN = "unmatched"; + +// ── Unsubscribe (type) ── +type Unsubscribe = () => void; + +// ── UploadArtifactInput (interface) ── +interface UploadArtifactInput { + /** Package artifact metadata */ + artifact: PackageArtifact; + /** Binary content (base64-encoded or stream reference) */ + content: string; + /** Publisher authentication token */ + token?: string; + /** + * Artifact discriminator. `plugin` triggers the signed/permissioned + * path (verify signature → permission audit → store blob → pending review); + * `metadata` (default) is the legacy pure-metadata fast path. + */ + kind?: 'metadata' | 'plugin'; + /** + * Detached publisher signature over the raw artifact bytes, in the + * canonical `ed25519::` format (produced by + * `os plugin sign`). Verified server-side before the version is stored. + */ + signature?: string; + /** + * Expected SHA-256 (hex) of the artifact bytes for tamper detection on + * upload. The server recomputes and rejects on mismatch. + */ + expectedChecksum?: string; +} + +// ── UploadArtifactResult (interface) ── +interface UploadArtifactResult { + /** Whether the upload succeeded */ + success: boolean; + /** URL of the uploaded artifact */ + artifactUrl?: string; + /** SHA256 checksum of the uploaded artifact */ + sha256?: string; + /** Error message if upload failed */ + errorMessage?: string; + /** Identifier of the created package version row (e.g. sys_package_version id). */ + versionId?: string; + /** + * Listing/review state after upload — e.g. `pending_review` when a plugin + * requires human approval before it can be installed (ADR §3.7). + */ + listingStatus?: string; + /** + * Whether the publisher signature was present AND cryptographically + * verified. `false` means accepted-but-unverified (trust tier gates apply) + * or no signature supplied. + */ + signatureVerified?: boolean; +} + +// ── UserModelMessage (type) ── +type UserModelMessage = { + role: 'user'; + content: UserContent; + /** + * Additional provider-specific metadata. They are passed through + * to the provider from the AI SDK and enable provider-specific + * functionality that can be fully encapsulated in the provider. + */ + providerOptions?: ProviderOptions; +}; + +// ── ValidationResult (type) ── +type ValidationResult = z.input; + +// ── WriteObservabilityOptions (interface) ── +interface WriteObservabilityOptions { + /** Called once per strip pass that dropped ≥1 caller-supplied field. */ + onFieldsDropped?: (event: DroppedFieldsEvent) => void; + /** + * Refuse the write instead of stripping (#5126). Default `false` — off. + * + * ## Semantics + * + * When `true`, a write whose payload WOULD have caller-supplied fields + * stripped throws before the driver is touched, instead of committing the + * remainder. Nothing is written: not the stripped fields, not the fields that + * would have survived. The strip passes still run — that is how the engine + * learns WHICH fields would go — but their result is discarded. + * + * It covers every drop `onFieldsDropped` reports — coverage DERIVED from the + * reported set, never an enumeration frozen at #5126. Today that is all three + * `DroppedFieldsEvent['reason']` arms: static `readonly: true` (#2948, which + * only runs for non-system callers), a TRUE `readonlyWhen` predicate (#3042, + * which runs for every API-BOUNDARY caller, `isSystem` included — but judges + * only the keys the caller supplied at engine entry, so a value a + * `beforeUpdate` hook derived or overwrote is never stripped, #9107), and the + * `primary_key` + * strip (#6437) — plus, since #5503, the implicitly-readonly runtime-owned + * strip, which reports under the same `'readonly'` arm rather than adding one + * (see the INSERT section below). Covering only the static arm would leave a + * trusted caller — the very caller this option exists for, one that already + * passes `{ context: { isSystem: true } }` and is therefore exempt from the + * static strip — still losing `readonlyWhen` fields in silence, which is the + * bug this option exists to abolish. + * + * ⚠️ **A new `reason` therefore adds a new REFUSAL, by construction** — the + * price of the derived coverage above, paid deliberately when `primary_key` + * landed (#6437). Since that change a `strictReadonlyWrites` caller that puts + * a ruled-non-key value in `data.id` is REFUSED, where it previously got a + * success whose `id` had been silently dropped. That is this option's whole + * promise ("don't half-apply my payload") reaching one more strip class, not + * a second policy: the strip already ran and already discarded the key. + * + * The flag's NAME is narrower than its coverage and stays that way on + * purpose — renaming a shipped in-process option is a separate acceptance + * decision, and the coverage sentence above, not the name, is the contract. + * The refusal error names what actually happened PER REASON, so a + * `primary_key` refusal never claims the field was read-only. + * + * `onFieldsDropped` does NOT fire on a write this option refuses. The two are + * alternative outputs of one seam, not a sequence: `DroppedFieldsEvent` is + * documented as "fields dropped and the write completed without them", and + * under strict the write does not complete. Quiet-and-observable or loud — + * pick one per call. + * + * ## The error + * + * `ERR_READONLY_FIELD_REJECTED` (registered in `ERROR_CODE_LEDGER` under + * `@objectstack/objectql`), carrying the FULL list of rejected fields + * accumulated across every strip pass the operation runs — one error naming + * everything, so a caller fixes its payload once instead of one round-trip + * per field. Engines identify it by `code`, not `instanceof`, so it survives + * package boundaries. The code is stable across reasons deliberately: a + * caller catches ONE code and reads `drops` for the per-reason breakdown, + * which is why adding a reason does not add an error code (#6437). + * + * ## In-process only — what a REMOTE caller observes + * + * This is an IN-PROCESS option, exactly like its neighbour above, and for the + * same structural reason: `WriteObservabilityOptions` is not the serializable + * `EngineUpdateOptionsSchema` bag, so nothing here crosses the RPC / Virtual + * Data Engine boundary or is reachable from a REST/wire body. A remote caller + * cannot set it, and gets NEITHER behaviour: its write is stripped and + * committed, silently from its side, exactly as before this option existed — + * a 200 whose read-only columns kept their stored values. That is deliberate + * (#5126 ruling): putting the flag in the serializable bag would let any + * client toggle write-refusal on a security-adjacent path. Widening strict to + * the wire is a SEPARATE decision, not a side effect of this one. + * + * ## INSERT — refuses runtime-owned values (since #5503) and static + * `readonly` values (since the 2026-09-03 ruling, #14147) + * + * Until #5503 this paragraph declared the option inert on insert — true + * when written (#5126 predates the runtime-owned strip), false since. Until + * the maintainer ruling of 2026-09-03 (option C, #14147) it then declared + * insert exempt from the two AUTHOR-DECLARED strips (#3413: "an in-process + * create may seed a `readonly: true` field's initial value") — true when + * written, SUPERSEDED since: `engine.insert` now runs the static-`readonly` + * strip for a non-system caller, the same `stripReadonlyFields` under the + * same `isSystem` gate as `engine.update`, and the metadata-protocol ingress + * copy that used to cover external callers only is deleted. One semantics, + * one enforcement point. What insert still does NOT strip is `readonlyWhen` + * (a conditional lock has no prior record to evaluate on a create). + * + * So at this seam an insert behaves like update for BOTH reported strips: a + * payload carrying a runtime-owned value (`RUNTIME_OWNED_FIELD_TYPES`, today + * `autonumber` — a caller-supplied record number) or a static `readonly` + * value from a non-system caller, with this option `true`, throws + * `ReadonlyFieldRejectedError` (`operation: 'insert'`, every taken field in + * one list) and nothing is written; without it the values are stripped, the + * write completes, and `onFieldsDropped` fires once with + * `reason: 'readonly'`. The writers exempt — and therefore never refused — + * differ per strip, and the difference is the 2026-08-08 ruling, not this + * one: `isSystem` exempts both; the `preserveAudit` historical import + * reinstating legacy record numbers (#3493) exempts the runtime-owned strip + * only, and a non-system create that asks for it still has its static + * `readonly` fields stripped, with a `warn` saying the exemption is + * UPDATE-only (#6640) — see `FieldSchema.readonly`. + * `ReadonlyFieldRejectedError`'s own doc records the same contract from the + * error's side: "Thrown by `engine.update` — and, since #5503, by + * `engine.insert`". + */ + strictReadonlyWrites?: boolean; +} + +// ── decodeStorageListCursor (function) ── +declare function decodeStorageListCursor(cursor: string): string; + +// ── encodeStorageListCursor (function) ── +declare function encodeStorageListCursor(key: string): string; + +// ── resolveStorageListLimit (function) ── +declare function resolveStorageListLimit(limit: number | undefined): number; diff --git a/packages/spec/api-surface-declarations/data.txt b/packages/spec/api-surface-declarations/data.txt new file mode 100644 index 00000000000..a034ec0d680 --- /dev/null +++ b/packages/spec/api-surface-declarations/data.txt @@ -0,0 +1,23832 @@ +# @objectstack/spec — the .d.ts DECLARATION TEXT of every export of `./data`. +# +# The SHAPE half of the ADR-0059 public-API pin, and the readable counterpart of +# api-surface/data.json's breadth half. That file pins each export by +# `name (kind)`, which a signature change, a renamed interface field and a dropped +# union member all leave untouched. This file pins the declaration text, so each of +# those moves a line here. Text and NOT a hash, deliberately: a diff a reviewer can +# read is what makes contract review a guard rather than a rubber stamp. +# +# Verbatim from the PACKED `.d.ts` reached through this package's `exports` map — the +# declarations a consumer installs, never `src/`. A declaration's leading TSDoc is +# excluded: documentation drift is `check:docs`'s axis, not this one. +# +# entry: ./data +# exported names: 832 +# declarations: 845 +# +# GENERATED — ⛔ never hand-edited. Regenerate after a real build: +# pnpm --filter @objectstack/spec build && pnpm --filter @objectstack/spec gen:api-surface-declarations +# Gated by `check:api-surface-declarations`; a hand edit is a red gate, not a change. + +// ── ACCEPTED_FILTER_COMPARAND_TYPES (const) ── +declare const ACCEPTED_FILTER_COMPARAND_TYPES: readonly ["string", "number", "bigint", "boolean", "null", "Date"]; + +// ── ACCEPTED_FILTER_COMPARAND_TYPES_SENTENCE (const) ── +declare const ACCEPTED_FILTER_COMPARAND_TYPES_SENTENCE = "a string, number, bigint, boolean, null or Date"; + +// ── AGGREGATE_FIELD_TYPE_COMPATIBILITY (const) ── +declare const AGGREGATE_FIELD_TYPE_COMPATIBILITY: Readonly>; + +// ── AGGREGATION_CASES (const) ── +declare const AGGREGATION_CASES: readonly AggregationCase[]; + +// ── AGGREGATION_ROWS (const) ── +declare const AGGREGATION_ROWS: readonly AggregationRow[]; + +// ── ALL_OPERATORS (const) ── +declare const ALL_OPERATORS: readonly ["$eq", "$ne", "$gt", "$gte", "$lt", "$lte", "$in", "$nin", "$between", "$contains", "$notContains", "$startsWith", "$endsWith", "$icontains", "$null", "$exists", "$and", "$or", "$not"]; + +// ── API_METHOD_DERIVATION (const) ── +declare const API_METHOD_DERIVATION: Record; + +// ── API_METHOD_ORDER (const) ── +declare const API_METHOD_ORDER: readonly ApiOperation[]; + +// ── API_OPERATION_ORDER (const) ── +declare const API_OPERATION_ORDER: readonly ["get", "list", "create", "update", "delete", "upsert", "bulk", "aggregate", "history", "search", "restore", "purge", "import", "export"]; + +// ── API_PRIMITIVES (const) ── +declare const API_PRIMITIVES: readonly ["get", "list", "create", "update", "delete", "bulk"]; + +// ── AUDIT_FIELD_DEFS (const) ── +declare const AUDIT_FIELD_DEFS: { + created_at: { + type: string; + label: string; + required: boolean; + readonly: boolean; + system: boolean; + description: string; + }; + created_by: { + type: string; + reference: string; + label: string; + required: boolean; + readonly: boolean; + system: boolean; + description: string; + }; + updated_at: { + type: string; + label: string; + required: boolean; + readonly: boolean; + system: boolean; + description: string; + }; + updated_by: { + type: string; + reference: string; + label: string; + required: boolean; + readonly: boolean; + system: boolean; + description: string; + }; +}; + +// ── AUDIT_PROVENANCE_FIELDS (const) ── +declare const AUDIT_PROVENANCE_FIELDS: readonly ["created_at", "created_by", "updated_at", "updated_by"]; + +// ── Address (type) ── +type Address = z.input; + +// ── AddressSchema (const) ── +declare const AddressSchema: z.ZodObject<{ + street: z.ZodOptional; + city: z.ZodOptional; + state: z.ZodOptional; + postalCode: z.ZodOptional; + country: z.ZodOptional; + countryCode: z.ZodOptional; + formatted: z.ZodOptional; +}, z.core.$strict>; + +// ── AddressValue (type) ── +type AddressValue = z.input; + +// ── AddressValueSchema (const) ── +declare const AddressValueSchema: z.ZodObject<{ + street: z.ZodOptional; + city: z.ZodOptional; + state: z.ZodOptional; + postalCode: z.ZodOptional; + country: z.ZodOptional; + countryCode: z.ZodOptional; + formatted: z.ZodOptional; +}, z.core.$strict>; + +// ── AggregationCase (interface) ── +interface AggregationCase { + /** Stable identifier, usable as a test name. */ + readonly name: string; + /** + * Typed against the declared enum on purpose (#4918): a name that LEAVES + * `AggregationFunction` fails `tsc` here rather than leaving a case that + * silently tests nothing. + */ + readonly function: AggregationFunction; + /** Omitted for the `COUNT(*)` spelling the spec allows. */ + readonly field?: string; + /** The single GROUP BY column, or omitted for a whole-table aggregate. */ + readonly groupBy?: 'region'; + /** + * [#6401] When set, {@link groupBy} is sent as the STRUCTURED node + * `{ field, alias }` rather than as a bare column name, and the group value + * must come back under this KEY instead of under the field name. + * + * This is the one property in the table that is about a column's NAME rather + * than its value, and it is here because the name was the divergence: + * `GroupByNodeSchema.alias` was declared, honoured by + * `in-memory-aggregation.ts` (`g.alias ?? g.field`) and ignored by all three + * SQL faces, so the same aggregate came back keyed `region` under pushdown + * and `bucket` under the fallback — decided by a driver capability bit and a + * timezone the caller never sees. A harness must read the group value from + * `groupByAlias ?? groupBy`; one that reads the field name unconditionally + * passes on a face that ignores the alias and fails on one that honours it, + * which is the divergence rather than a check of it. + * + * Requires {@link groupBy} — an alias with nothing to rename is meaningless, + * and the cases below never spell one. + */ + readonly groupByAlias?: string; + /** Ascending by `group`, with `null` first for the ungrouped case. */ + readonly expected: readonly AggregationExpectation[]; + /** Why the case is here — surfaced in failure output. */ + readonly note?: string; +} + +// ── AggregationExpectation (interface) ── +interface AggregationExpectation { + readonly group: string | null; + readonly value: number; +} + +// ── AggregationFunction (const) ── +declare const AggregationFunction: z.ZodEnum<{ + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_distinct: "count_distinct"; +}>; + +// ── AggregationFunction (type) ── +type AggregationFunction = z.input; + +// ── AggregationMetricType (const) ── +declare const AggregationMetricType: z.ZodEnum<{ + string: "string"; + number: "number"; + boolean: "boolean"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_distinct: "count_distinct"; +}>; + +// ── AggregationMetricType (type) ── +type AggregationMetricType = z.input; + +// ── AggregationNode (type) ── +type AggregationNode = z.input; + +// ── AggregationNodeSchema (const) ── +declare const AggregationNodeSchema: z.ZodObject<{ + function: z.ZodEnum<{ + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_distinct: "count_distinct"; + }>; + field: z.ZodOptional; + alias: z.ZodString; + distinct: z.ZodOptional; + filter: z.ZodOptional>>; +}, z.core.$strip>; + +// ── AggregationPipeline (type) ── +type AggregationPipeline = z.input; + +// ── AggregationPipelineSchema (const) ── +declare const AggregationPipelineSchema: z.ZodObject<{ + collection: z.ZodString; + stages: z.ZodArray; + }, z.core.$strip>>; + options: z.ZodOptional>; + readFromSecondary: z.ZodOptional; + projection: z.ZodOptional, z.ZodLiteral<1>]>>>; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + useCursor: z.ZodOptional; + batchSize: z.ZodOptional; + profile: z.ZodOptional; + hint: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── AggregationRow (interface) ── +interface AggregationRow { + id: string; + /** + * The GROUP BY column. Two groups of unequal size, and their + * `count_distinct(stage)` answers differ (`west` → 2, `east` → 1), so a face + * that computed the grouped aggregate over the whole table instead of per + * group cannot pass by coincidence. + */ + region: string; + /** + * The NULLABLE, duplicate-bearing column every `count_distinct` case targets. + * + * Harnesses MUST declare it nullable and seed the nulls AS nulls: a `NOT NULL` + * column, or a seed substituting `''`, turns the null cases green for the + * wrong reason — "does this lowering drop NULLs" is the question they exist + * to ask. + */ + stage: string | null; + /** + * A non-null numeric column for the arithmetic aggregates. Deliberately + * all-distinct so `count_distinct(score)` equals the row count: the pair of + * `count_distinct` cases then straddles the interesting axis — one column + * where dedup and nulls both bite, one where neither does. Its NULLABLE + * twin is {@link AggregationRow.amount} (#15546). + */ + score: number; + /** + * [#15546] The NULLABLE numeric aggregand — the column `score` deliberately + * is not. `east` is NULL in EVERY row and `west` in two of its four, so the + * grouped `sum(amount)` case reaches the cell no other column can: a group + * that is NOT empty whose addend set IS. + * + * SQL `SUM` skips NULLs and answers NULL once it has skipped everything; + * the engine's in-memory tier, `driver-memory` and `driver-mongodb`'s + * lowering answer `0` for the same rows; `emptyGroupValueFor` + * (`aggregation-policy.ts`) rules that summing nothing is `0`. Which face + * answered a grouped list view's `sum` summary was decided by a driver + * capability bit the caller never sees, so the same view rendered a blank + * total on one deployment and `0` on another. Ruled 2026-09-07 (maintainer, + * option A on #15546): a non-empty group whose aggregand is NULL in every + * row sums to `0`, on every face — which is what the `east` cell pins. + * + * Harnesses MUST declare it nullable and seed the nulls AS nulls, exactly + * as for {@link AggregationRow.stage}: a `NOT NULL` column, or a `0` written + * in place of a null, turns the `east` cell green for the wrong reason. Its + * `count(amount)` control answers `0` only while the nulls are real. + */ + amount: number | null; + /** + * [#11152] The non-null BOOLEAN aggregand — 3 true / 3 false, so `sum` and + * `avg` cannot agree with a face that dropped the booleans (`0` / `null`, + * the #11065/#11151 defect) or that counted rows instead of trues. + * + * The distribution is the `FLAG_BY_ID` the #11635 suite landed, adopted here + * verbatim so the two never disagree on grouped values: `west` holds + * `[T,F,F,F]` and `east` `[T,T]`. The asymmetry is load-bearing — `east` is + * all-true, so its grouped `min(flag)` is `1`, and a face that computed the + * aggregate over the whole table (or answered a sticky per-column constant) + * fails on that cell rather than passing by symmetry. + * + * Harnesses MUST declare it `type: 'boolean'` — the driver-boundary read + * presentation keys off the declared type, and the ruled point of this + * column is that aggregation deliberately BYPASSES it: #11152 (maintainer + * 2026-08-28, superseding #11249) rules that booleans aggregate as numbers + * on every face — `sum`=3, `avg`=0.5, `min`=0, `max`=1 — with no + * per-aggregate exception. A harness that stored the flags as strings, or a + * face that answered `false`/`true`, is answering outside the ruled domain. + */ + flag: boolean; +} + +// ── AggregationStage (type) ── +type AggregationStage = z.input; + +// ── AggregationStageSchema (const) ── +declare const AggregationStageSchema: z.ZodObject<{ + operator: z.ZodString; + options: z.ZodRecord; +}, z.core.$strip>; + +// ── AnalyticsDateRange (type) ── +type AnalyticsDateRange = z.input; + +// ── AnalyticsDateRangePreset (type) ── +type AnalyticsDateRangePreset = z.input; + +// ── AnalyticsDateRangePresetSchema (const) ── +declare const AnalyticsDateRangePresetSchema: z.ZodEnum<{ + today: "today"; + yesterday: "yesterday"; + this_week: "this_week"; + last_week: "last_week"; + this_month: "this_month"; + last_month: "last_month"; + this_quarter: "this_quarter"; + last_quarter: "last_quarter"; + this_year: "this_year"; + last_year: "last_year"; + last_7_days: "last_7_days"; + last_30_days: "last_30_days"; + last_90_days: "last_90_days"; +}>; + +// ── AnalyticsDateRangeSchema (const) ── +declare const AnalyticsDateRangeSchema: z.ZodUnion, z.ZodTuple<[z.ZodString, z.ZodString], null>]>; + +// ── AnalyticsQuery (type) ── +type AnalyticsQuery = z.input; + +// ── AnalyticsQuerySchema (const) ── +declare const AnalyticsQuerySchema: z.ZodObject<{ + cube: z.ZodOptional; + measures: z.ZodArray; + dimensions: z.ZodOptional>; + where: z.ZodOptional>>; + timeDimensions: z.ZodOptional>; + dateRange: z.ZodOptional, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional>>; + limit: z.ZodOptional; + offset: z.ZodOptional; + timezone: z.ZodOptional; +}, z.core.$strict>; + +// ── ApiExposureDenialReason (type) ── +type ApiExposureDenialReason = 'api-disabled' | 'method-not-allowed'; + +// ── ApiMethod (const) ── +declare const ApiMethod: z.ZodEnum<{ + get: "get"; + delete: "delete"; + bulk: "bulk"; + update: "update"; + list: "list"; + create: "create"; +}>; + +// ── ApiMethod (type) ── +type ApiMethod = z.input; + +// ── ApiMethodsMode (type) ── +type ApiMethodsMode = 'unrestricted' | 'restricted' | 'deny-all'; + +// ── ApiOperation (type) ── +type ApiOperation = (typeof API_OPERATION_ORDER)[number]; + +// ── ApiOperationSchema (const) ── +declare const ApiOperationSchema: z.ZodEnum<{ + get: "get"; + search: "search"; + delete: "delete"; + aggregate: "aggregate"; + history: "history"; + bulk: "bulk"; + update: "update"; + upsert: "upsert"; + list: "list"; + create: "create"; + restore: "restore"; + purge: "purge"; + import: "import"; + export: "export"; +}>; + +// ── ApiPrimitive (type) ── +type ApiPrimitive = (typeof API_PRIMITIVES)[number]; + +// ── AuditProvenanceField (type) ── +type AuditProvenanceField = (typeof AUDIT_PROVENANCE_FIELDS)[number]; + +// ── AuthoringKeySurface (type) ── +type AuthoringKeySurface = string; + +// ── AutoPersistenceConfig (type) ── +type AutoPersistenceConfig = z.input; + +// ── AutoPersistenceConfigSchema (const) ── +declare const AutoPersistenceConfigSchema: z.ZodObject<{ + type: z.ZodLiteral<"auto">; + path: z.ZodOptional; + autoSaveIntervalMs: z.ZodOptional; + autoSaveInterval: z.ZodOptional; + key: z.ZodOptional; +}, z.core.$strict>; + +// ── AutonumberFormatSource (interface) ── +interface AutonumberFormatSource { + autonumberFormat?: unknown; + format?: unknown; +} + +// ── AutonumberToken (type) ── +type AutonumberToken = { + kind: 'literal'; + text: string; +} | { + kind: 'date'; + pattern: 'YYYY' | 'YY' | 'MM' | 'DD' | 'YYYYMMDD'; +} | { + kind: 'field'; + field: string; +} | { + kind: 'seq'; + width: number; +}; + +// ── BOOLEAN_VALUE_TYPES (const) ── +declare const BOOLEAN_VALUE_TYPES: ReadonlySet; + +// ── BOUNDED_STRING_FIELD_TYPES (const) ── +declare const BOUNDED_STRING_FIELD_TYPES: ReadonlySet; + +// ── BUILTIN_DRIVER_IDS (const) ── +declare const BUILTIN_DRIVER_IDS: VocabularyIds; + +// ── BULK_PER_ROW_HOOK_LIMIT_ERROR_CODE (const) ── +declare const BULK_PER_ROW_HOOK_LIMIT_ERROR_CODE = "ERR_BULK_PER_ROW_HOOK_LIMIT"; + +// ── BULK_WRITE_HOOK_DISPATCH_CONTRACT (const) ── +declare const BULK_WRITE_HOOK_DISPATCH_CONTRACT: readonly BulkWriteHookDispatchContractEntry[]; + +// ── BaseEngineOptions (type) ── +type BaseEngineOptions = z.input; + +// ── BaseEngineOptionsSchema (const) ── +declare const BaseEngineOptionsSchema: z.ZodObject<{ + context: z.ZodOptional>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── BaseValidationRuleShape (interface) ── +interface BaseValidationRuleShape { + type: string; + name: string; + message: string; + label?: string; + description?: string; + active?: boolean; + events?: ('insert' | 'update')[]; + priority?: number; + tags?: string[]; + severity?: 'error' | 'warning' | 'info'; + [key: string]: unknown; +} + +// ── BuiltinDriverId (type) ── +type BuiltinDriverId = (typeof DRIVER_VOCABULARY)[number]['id']; + +// ── BulkPerRowHookBudgetVerdict (type) ── +type BulkPerRowHookBudgetVerdict = { + readonly kind: 'ok'; + readonly matched: number; + readonly limit: number; +} | { + readonly kind: 'refused'; + readonly code: typeof BULK_PER_ROW_HOOK_LIMIT_ERROR_CODE; + readonly object: string; + readonly event: string; + readonly matched: number; + readonly limit: number; + readonly message: string; +}; + +// ── BulkWriteHookDispatchContractEntry (interface) ── +interface BulkWriteHookDispatchContractEntry { + /** The lifecycle event this row is about. */ + readonly event: 'beforeUpdate' | 'beforeDelete' | 'afterUpdate' | 'afterDelete'; + /** Which phase it belongs to. */ + readonly phase: BulkWriteHookPhase; + /** + * The keys the PER-ROW context carries, in the order the shape table in + * `hook.zod.ts` lists them. `previous` is that row's pre-image on every + * entry — that is the whole point of the contract. + */ + readonly contextKeys: readonly ('id' | 'data' | 'options' | 'previous' | 'result')[]; + /** {@link BulkWritePayloadScope} — the D3 answer for this event. */ + readonly payloadScope: BulkWritePayloadScope; + /** + * Has the ENGINE delivered per-row dispatch for this event? + * + * `false` is not a gap to route around — it is a contract-first split + * recorded in the open: the ruling required the spec half to land first. + * A consumer that must branch on live behaviour reads the engine, never + * this flag; the flag exists so the flip is a visible, pinned edit. + */ + readonly delivered: boolean; + /** Issue that DELIVERED it (when `delivered`), else the one that will. */ + readonly engineDeliveryIssue: number; +} + +// ── BulkWriteHookPhase (type) ── +type BulkWriteHookPhase = 'before' | 'after'; + +// ── BulkWritePayloadScope (type) ── +type BulkWritePayloadScope = +/** One payload for the whole batch; a rewrite applies to every matched row (D3). */ +'batch' +/** No payload on this event at all (delete carries an id and options only). */ + | 'none'; + +// ── CALENDAR_DATE_TYPES (const) ── +declare const CALENDAR_DATE_TYPES: ReadonlySet; + +// ── CANONICAL_CREDENTIAL_KEYS (const) ── +declare const CANONICAL_CREDENTIAL_KEYS: readonly ["password", "authToken"]; + +// ── CLOCK_TIME_TYPES (const) ── +declare const CLOCK_TIME_TYPES: ReadonlySet; + +// ── COMPUTED_VALUE_TYPES (const) ── +declare const COMPUTED_VALUE_TYPES: ReadonlySet; + +// ── CONTEXT_TOKENS (const) ── +declare const CONTEXT_TOKENS: readonly ["current_user_id", "current_org_id"]; + +// ── CONTEXT_TOKEN_DESCRIPTIONS (const) ── +declare const CONTEXT_TOKEN_DESCRIPTIONS: Record; + +// ── CONTEXT_TOKEN_SUGGESTIONS (const) ── +declare const CONTEXT_TOKEN_SUGGESTIONS: Readonly>; + +// ── CONTEXT_TOKEN_WRAPPED_RE (const) ── +declare const CONTEXT_TOKEN_WRAPPED_RE: RegExp; + +// ── CREDENTIAL_KEY_SPELLINGS (const) ── +declare const CREDENTIAL_KEY_SPELLINGS: readonly string[]; + +// ── CREDENTIAL_URL_QUERY_PARAMS (const) ── +declare const CREDENTIAL_URL_QUERY_PARAMS: Readonly>; + +// ── CREDENTIAL_URL_QUERY_PARAM_NAMES (const) ── +declare const CREDENTIAL_URL_QUERY_PARAM_NAMES: readonly string[]; + +// ── CalendarDateValue (type) ── +type CalendarDateValue = z.input; + +// ── CalendarDateValueSchema (const) ── +declare const CalendarDateValueSchema: z.ZodString; + +// ── ClockTimeValue (type) ── +type ClockTimeValue = z.input; + +// ── ClockTimeValueSchema (const) ── +declare const ClockTimeValueSchema: z.ZodString; + +// ── ComparandTypeCase (type) ── +type ComparandTypeCase = ComparandTypeMatchesCase | ComparandTypeCompilesCase | ComparandTypeRefusalCase; + +// ── ComparandTypeCompilesCase (interface) ── +interface ComparandTypeCompilesCase extends ComparandTypeCaseBase { + readonly verdict: 'compiles'; +} + +// ── ComparandTypeMatchesCase (interface) ── +interface ComparandTypeMatchesCase extends ComparandTypeCaseBase { + readonly verdict: 'matches'; + /** Ids of matching rows, ascending. */ + readonly expected: readonly string[]; +} + +// ── ComparandTypeProbe (class) ── +declare class ComparandTypeProbe { + readonly v: number; + constructor(v?: number); +} + +// ── ComparandTypeRefusalCase (interface) ── +interface ComparandTypeRefusalCase extends ComparandTypeCaseBase { + readonly verdict: 'door-refusal'; + /** The ADR-0112 code the refusal must carry, beside `status: 400`. */ + readonly code: 'INVALID_FILTER'; + /** Substrings the refusal message must contain. */ + readonly mustMention: readonly string[]; +} + +// ── ComparandTypeRow (interface) ── +interface ComparandTypeRow { + id: string; + /** number — the column the #7956 matrix probed (`{qty: {$eq: …}}`). */ + qty: number; + label: string; + active: boolean; + note: string | null; +} + +// ── ComparisonOperatorSchema (const) ── +declare const ComparisonOperatorSchema: z.ZodObject<{ + $gt: z.ZodOptional]>>; + }, z.core.$strip>]>>; + $gte: z.ZodOptional]>>; + }, z.core.$strip>]>>; + $lt: z.ZodOptional]>>; + }, z.core.$strip>]>>; + $lte: z.ZodOptional]>>; + }, z.core.$strip>]>>; +}, z.core.$strip>; + +// ── Compatibility (type) ── +type Compatibility = boolean | 'lossy'; + +// ── ConditionalValidation (type) ── +type ConditionalValidation = z.input; + +// ── ConditionalValidationParsed (type) ── +type ConditionalValidationParsed = z.infer; + +// ── ConditionalValidationSchema (const) ── +declare const ConditionalValidationSchema: z.ZodObject<{ + type: z.ZodLiteral<"conditional">; + when: z.ZodUnion>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + then: z.ZodType>; + otherwise: z.ZodOptional>>; + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + active: z.ZodDefault; + events: z.ZodDefault>>; + priority: z.ZodDefault; + tags: z.ZodOptional>; + severity: z.ZodDefault>; + message: z.ZodString; +}, z.core.$strict>; + +// ── ConsistencyLevel (type) ── +type ConsistencyLevel = z.input; + +// ── ConsistencyLevelSchema (const) ── +declare const ConsistencyLevelSchema: z.ZodEnum<{ + one: "one"; + all: "all"; + quorum: "quorum"; + local_quorum: "local_quorum"; + each_quorum: "each_quorum"; + eventual: "eventual"; +}>; + +// ── ContextToken (type) ── +type ContextToken = (typeof CONTEXT_TOKENS)[number]; + +// ── ContextTokenPlaceholder (type) ── +type ContextTokenPlaceholder = z.input; + +// ── ContextTokenPlaceholderSchema (const) ── +declare const ContextTokenPlaceholderSchema: z.ZodString; + +// ── ContextTokenSchema (const) ── +declare const ContextTokenSchema: z.ZodString; + +// ── CrossFieldValidation (type) ── +type CrossFieldValidation = z.input; + +// ── CrossFieldValidationParsed (type) ── +type CrossFieldValidationParsed = z.infer; + +// ── CrossFieldValidationSchema (const) ── +declare const CrossFieldValidationSchema: z.ZodObject<{ + type: z.ZodLiteral<"cross_field">; + condition: z.ZodUnion>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + fields: z.ZodArray; + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + active: z.ZodDefault; + events: z.ZodDefault>>; + priority: z.ZodDefault; + tags: z.ZodOptional>; + severity: z.ZodDefault>; + message: z.ZodString; +}, z.core.$strict>; + +// ── CrudAffordances (interface) ── +interface CrudAffordances { + /** Generic "New" button (single record creation form). */ + create: boolean; + /** + * CSV bulk-import wizard. `platform` is the only bucket that grants it by + * default; every other bucket — `config`, `system-data`, `engine-owned`, + * `append-only`, `better-auth` — makes it opt-in via + * `userActions: { import: true }`. + */ + import: boolean; + /** Inline + form editing of existing rows. */ + edit: boolean; + /** Row-level + bulk delete. */ + delete: boolean; + /** CSV / clipboard export. Allowed even on append-only audit tables by default. */ + exportCsv: boolean; + /** + * Per-record CEL predicates for the built-in row Edit action, present only + * when `userActions.edit` used the object form (objectui#2614). Evaluate + * per row against `record.*`; see {@link RowCrudActionOverrideSchema}. + */ + editPredicates?: RowCrudPredicates; + /** Per-record CEL predicates for the built-in row Delete action. */ + deletePredicates?: RowCrudPredicates; + /** + * CEL predicates for the generic New button, present only when + * `userActions.create` used the object form (#7692). Unlike the row + * predicates above these evaluate **once per toolbar**, against the record + * in scope where the toolbar renders — the host record on a related list, + * and nothing at all on a standalone object list. See + * {@link RowCrudActionOverrideSchema}. + */ + createPredicates?: RowCrudPredicates; + /** Toolbar-scope CEL predicates for the CSV import entry; same binding as {@link createPredicates}. */ + importPredicates?: RowCrudPredicates; +} + +// ── Cube (type) ── +type Cube = z.input; + +// ── CubeJoin (type) ── +type CubeJoin = z.input; + +// ── CubeJoinParsed (type) ── +type CubeJoinParsed = z.infer; + +// ── CubeJoinSchema (const) ── +declare const CubeJoinSchema: z.ZodObject<{ + name: z.ZodString; + relationship: z.ZodDefault>; + sql: z.ZodString; +}, z.core.$strict>; + +// ── CubeParsed (type) ── +type CubeParsed = z.infer; + +// ── CubeSchema (const) ── +declare const CubeSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + title: z.ZodOptional; + description: z.ZodOptional; + sql: z.ZodString; + measures: z.ZodRecord; + type: z.ZodEnum<{ + string: "string"; + number: "number"; + boolean: "boolean"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_distinct: "count_distinct"; + }>; + sql: z.ZodString; + format: z.ZodOptional; + }, z.core.$strict>>; + dimensions: z.ZodRecord; + type: z.ZodEnum<{ + string: "string"; + number: "number"; + boolean: "boolean"; + time: "time"; + geo: "geo"; + }>; + sql: z.ZodString; + granularities: z.ZodOptional>>; + }, z.core.$strict>>; + joins: z.ZodOptional>; + sql: z.ZodString; + }, z.core.$strict>>>; + refreshKey: z.ZodOptional; + sql: z.ZodOptional; + }, z.core.$strict>>; + public: z.ZodDefault; +}, z.core.$strict>; + +// ── CurrencyConfig (type) ── +type CurrencyConfig = z.input; + +// ── CurrencyConfigParsed (type) ── +type CurrencyConfigParsed = z.infer; + +// ── CurrencyConfigSchema (const) ── +declare const CurrencyConfigSchema: z.ZodObject<{ + precision: z.ZodOptional; + currencyMode: z.ZodDefault>; + defaultCurrency: z.ZodDefault; +}, z.core.$strict>; + +// ── CurrencyValue (type) ── +type CurrencyValue = z.input; + +// ── CurrencyValueSchema (const) ── +declare const CurrencyValueSchema: z.ZodObject<{ + value: z.ZodNumber; + currency: z.ZodString; +}, z.core.$strip>; + +// ── CustomPersistenceConfig (type) ── +type CustomPersistenceConfig = z.input; + +// ── CustomPersistenceConfigSchema (const) ── +declare const CustomPersistenceConfigSchema: z.ZodObject<{ + adapter: z.ZodObject<{ + load: z.ZodFunction; + save: z.ZodFunction; + flush: z.ZodFunction; + }, z.core.$strict>; +}, z.core.$strict>; + +// ── DATABASE_DRIVER_SELECTION_ALIASES (const) ── +declare const DATABASE_DRIVER_SELECTION_ALIASES: readonly string[]; + +// ── DATABASE_DRIVER_SELECTION_IDS (const) ── +declare const DATABASE_DRIVER_SELECTION_IDS: readonly BuiltinDriverId[]; + +// ── DATA_ACTION_TO_API_OPERATION (const) ── +declare const DATA_ACTION_TO_API_OPERATION: Record; + +// ── DATE_MACRO_ALIAS_TOKENS (const) ── +declare const DATE_MACRO_ALIAS_TOKENS: readonly ["week_start", "week_end", "month_start", "month_end", "quarter_start", "quarter_end", "year_start", "year_end"]; + +// ── DATE_MACRO_DESCRIPTIONS (const) ── +declare const DATE_MACRO_DESCRIPTIONS: Record; + +// ── DATE_MACRO_INSTANT_TOKENS (const) ── +declare const DATE_MACRO_INSTANT_TOKENS: readonly ["today", "yesterday", "tomorrow", "now"]; + +// ── DATE_MACRO_PARAM_RE (const) ── +declare const DATE_MACRO_PARAM_RE: RegExp; + +// ── DATE_MACRO_PERIOD_TOKENS (const) ── +declare const DATE_MACRO_PERIOD_TOKENS: readonly ["current_week_start", "current_week_end", "current_month_start", "current_month_end", "current_quarter_start", "current_quarter_end", "current_year_start", "current_year_end", "last_week_start", "last_week_end", "last_month_start", "last_month_end", "last_quarter_start", "last_quarter_end", "last_year_start", "last_year_end", "next_week_start", "next_week_end", "next_month_start", "next_month_end", "next_quarter_start", "next_quarter_end", "next_year_start", "next_year_end"]; + +// ── DATE_MACRO_TOKENS (const) ── +declare const DATE_MACRO_TOKENS: readonly ["today", "yesterday", "tomorrow", "now", "current_week_start", "current_week_end", "current_month_start", "current_month_end", "current_quarter_start", "current_quarter_end", "current_year_start", "current_year_end", "last_week_start", "last_week_end", "last_month_start", "last_month_end", "last_quarter_start", "last_quarter_end", "last_year_start", "last_year_end", "next_week_start", "next_week_end", "next_month_start", "next_month_end", "next_quarter_start", "next_quarter_end", "next_year_start", "next_year_end", "week_start", "week_end", "month_start", "month_end", "quarter_start", "quarter_end", "year_start", "year_end"]; + +// ── DATE_MACRO_UNITS (const) ── +declare const DATE_MACRO_UNITS: readonly ["minute", "hour", "day", "week", "month", "year"]; + +// ── DATE_MACRO_WRAPPED_RE (const) ── +declare const DATE_MACRO_WRAPPED_RE: RegExp; + +// ── DATE_RANGE_PRESETS (const) ── +declare const DATE_RANGE_PRESETS: readonly ["today", "yesterday", "this_week", "last_week", "this_month", "last_month", "this_quarter", "last_quarter", "this_year", "last_year", "last_7_days", "last_30_days", "last_90_days"]; + +// ── DATE_RANGE_PRESET_MACRO_WINDOWS (const) ── +declare const DATE_RANGE_PRESET_MACRO_WINDOWS: Readonly>; + +// ── DEFAULT_AUTONUMBER_FORMAT (const) ── +declare const DEFAULT_AUTONUMBER_FORMAT = "{0000}"; + +// ── DEFAULT_VALUE_TOKENS (const) ── +declare const DEFAULT_VALUE_TOKENS: readonly ["NOW()", "current_user"]; + +// ── DEFAULT_VALUE_TOKEN_CURRENT_USER (const) ── +declare const DEFAULT_VALUE_TOKEN_CURRENT_USER = "current_user"; + +// ── DEFAULT_VALUE_TOKEN_DESCRIPTIONS (const) ── +declare const DEFAULT_VALUE_TOKEN_DESCRIPTIONS: Record; + +// ── DEFAULT_VALUE_TOKEN_NOW (const) ── +declare const DEFAULT_VALUE_TOKEN_NOW = "NOW()"; + +// ── DEFAULT_VALUE_TOKEN_SUGGESTIONS (const) ── +declare const DEFAULT_VALUE_TOKEN_SUGGESTIONS: Readonly>; + +// ── DRIVER_CONFIG_SCHEMAS (const) ── +declare const DRIVER_CONFIG_SCHEMAS: Readonly>; + +// ── DRIVER_ID_ALIASES (const) ── +declare const DRIVER_ID_ALIASES: Readonly>; + +// ── DataEngineAggregateOptions (type) ── +type DataEngineAggregateOptions = z.input; + +// ── DataEngineAggregateOptionsSchema (const) ── +declare const DataEngineAggregateOptionsSchema: z.ZodObject<{ + context: z.ZodOptional>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + filter: z.ZodOptional, z.ZodType>]>>; + groupBy: z.ZodOptional>; + aggregations: z.ZodOptional; + alias: z.ZodOptional; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── DataEngineAggregateRequestSchema (const) ── +declare const DataEngineAggregateRequestSchema: z.ZodObject<{ + method: z.ZodLiteral<"aggregate">; + object: z.ZodString; + query: z.ZodPipe>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + where: z.ZodOptional, z.ZodType>]>>; + groupBy: z.ZodOptional>; + alias: z.ZodOptional; + }, z.core.$strip>]>>>; + aggregations: z.ZodOptional; + field: z.ZodOptional; + alias: z.ZodString; + distinct: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strip>>>; + having: z.ZodOptional>>; + timezone: z.ZodOptional; + filter: z.ZodOptional, z.ZodType>]>>; + }, z.core.$strip>, z.ZodTransform | undefined; + org_user_ids?: string[] | undefined; + accessible_org_ids?: string[] | undefined; + rlsMembership?: Record | undefined; + isSystem?: boolean | undefined; + flowRunId?: string | undefined; + skipTriggers?: boolean | undefined; + skipAutomations?: boolean | undefined; + seedReplay?: boolean | undefined; + skipStateMachine?: boolean | undefined; + preserveAudit?: boolean | undefined; + oauthScopes?: string[] | undefined; + accessToken?: string | undefined; + transaction?: unknown; + traceId?: string | undefined; + } | undefined; + where?: Record | FilterCondition | undefined; + groupBy?: (string | { + field: string; + dateGranularity?: "year" | "month" | "day" | "week" | "quarter" | undefined; + alias?: string | undefined; + })[] | undefined; + aggregations?: { + function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct"; + alias: string; + field?: string | undefined; + distinct?: undefined; + filter?: FilterCondition | undefined; + }[] | undefined; + having?: FilterCondition | undefined; + timezone?: string | undefined; + filter?: Record | FilterCondition | undefined; + }, "filter">, { + context?: { + userId?: string | undefined; + actor?: string | undefined; + attributedUserId?: string | undefined; + email?: string | undefined; + tenantId?: string | undefined; + timezone?: string | undefined; + locale?: string | undefined; + currency?: string | undefined; + positions?: string[] | undefined; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + audience?: "external" | "internal" | undefined; + posture?: "MEMBER" | "PLATFORM_ADMIN" | "TENANT_ADMIN" | "EXTERNAL" | undefined; + authGate?: { + code: string; + message: string; + } | undefined; + onBehalfOf?: { + userId: string; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + } | undefined; + performedBy?: { + clientId: string; + } | undefined; + permissions?: string[] | undefined; + systemPermissions?: string[] | undefined; + tabPermissions?: Record | undefined; + org_user_ids?: string[] | undefined; + accessible_org_ids?: string[] | undefined; + rlsMembership?: Record | undefined; + isSystem?: boolean | undefined; + flowRunId?: string | undefined; + skipTriggers?: boolean | undefined; + skipAutomations?: boolean | undefined; + seedReplay?: boolean | undefined; + skipStateMachine?: boolean | undefined; + preserveAudit?: boolean | undefined; + oauthScopes?: string[] | undefined; + accessToken?: string | undefined; + transaction?: unknown; + traceId?: string | undefined; + } | undefined; + where?: Record | FilterCondition | undefined; + groupBy?: (string | { + field: string; + dateGranularity?: "year" | "month" | "day" | "week" | "quarter" | undefined; + alias?: string | undefined; + })[] | undefined; + aggregations?: { + function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct"; + alias: string; + field?: string | undefined; + distinct?: undefined; + filter?: FilterCondition | undefined; + }[] | undefined; + having?: FilterCondition | undefined; + timezone?: string | undefined; + filter?: Record | FilterCondition | undefined; + }>>; +}, z.core.$strip>; + +// ── DataEngineContractSchema (const) ── +declare const DataEngineContractSchema: z.ZodObject<{ + find: z.ZodFunction>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + where: z.ZodOptional, z.ZodType>]>>; + fields: z.ZodOptional>; + orderBy: z.ZodOptional>; + }, z.core.$strict>>>; + limit: z.ZodOptional; + offset: z.ZodOptional; + top: z.ZodOptional; + cursor: z.ZodOptional; + search: z.ZodOptional>; + fuzzy: z.ZodDefault>; + operator: z.ZodDefault>>; + boost: z.ZodOptional>; + minScore: z.ZodOptional; + language: z.ZodOptional; + highlight: z.ZodDefault>; + }, z.core.$strip>]>>; + searchFields: z.ZodOptional>; + expand: z.ZodOptional>>>>; + distinct: z.ZodOptional; + }, z.core.$strip>>], null>, z.ZodPromise>>; + findOne: z.ZodFunction>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + where: z.ZodOptional, z.ZodType>]>>; + fields: z.ZodOptional>; + orderBy: z.ZodOptional>; + }, z.core.$strict>>>; + limit: z.ZodOptional; + offset: z.ZodOptional; + top: z.ZodOptional; + cursor: z.ZodOptional; + search: z.ZodOptional>; + fuzzy: z.ZodDefault>; + operator: z.ZodDefault>>; + boost: z.ZodOptional>; + minScore: z.ZodOptional; + language: z.ZodOptional; + highlight: z.ZodDefault>; + }, z.core.$strip>]>>; + searchFields: z.ZodOptional>; + expand: z.ZodOptional>>>>; + distinct: z.ZodOptional; + }, z.core.$strip>>], null>, z.ZodPromise>; + insert: z.ZodFunction, z.ZodArray>]>, z.ZodOptional>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + returning: z.ZodOptional>; + }, z.core.$strip>>], null>, z.ZodPromise>; + update: z.ZodFunction, z.ZodOptional>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + where: z.ZodOptional, z.ZodType>]>>; + upsert: z.ZodOptional; + multi: z.ZodOptional>; + returning: z.ZodOptional>; + }, z.core.$strip>>], null>, z.ZodPromise>; + delete: z.ZodFunction>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + where: z.ZodOptional, z.ZodType>]>>; + multi: z.ZodOptional>; + }, z.core.$strip>>], null>, z.ZodPromise>; + count: z.ZodFunction>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + where: z.ZodOptional, z.ZodType>]>>; + }, z.core.$strip>>], null>, z.ZodPromise>; + aggregate: z.ZodFunction>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + where: z.ZodOptional, z.ZodType>]>>; + groupBy: z.ZodOptional>; + alias: z.ZodOptional; + }, z.core.$strip>]>>>; + aggregations: z.ZodOptional; + field: z.ZodOptional; + alias: z.ZodString; + distinct: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strip>>>; + having: z.ZodOptional>>; + timezone: z.ZodOptional; + }, z.core.$strip>], null>, z.ZodPromise>>; +}, z.core.$strip>; + +// ── DataEngineCountOptions (type) ── +type DataEngineCountOptions = z.input; + +// ── DataEngineCountOptionsSchema (const) ── +declare const DataEngineCountOptionsSchema: z.ZodObject<{ + context: z.ZodOptional>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + filter: z.ZodOptional, z.ZodType>]>>; +}, z.core.$strip>; + +// ── DataEngineCountRequestSchema (const) ── +declare const DataEngineCountRequestSchema: z.ZodObject<{ + method: z.ZodLiteral<"count">; + object: z.ZodString; + query: z.ZodOptional>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + where: z.ZodOptional, z.ZodType>]>>; + filter: z.ZodOptional, z.ZodType>]>>; + }, z.core.$strip>, z.ZodTransform | undefined; + org_user_ids?: string[] | undefined; + accessible_org_ids?: string[] | undefined; + rlsMembership?: Record | undefined; + isSystem?: boolean | undefined; + flowRunId?: string | undefined; + skipTriggers?: boolean | undefined; + skipAutomations?: boolean | undefined; + seedReplay?: boolean | undefined; + skipStateMachine?: boolean | undefined; + preserveAudit?: boolean | undefined; + oauthScopes?: string[] | undefined; + accessToken?: string | undefined; + transaction?: unknown; + traceId?: string | undefined; + } | undefined; + where?: Record | FilterCondition | undefined; + filter?: Record | FilterCondition | undefined; + }, "filter">, { + context?: { + userId?: string | undefined; + actor?: string | undefined; + attributedUserId?: string | undefined; + email?: string | undefined; + tenantId?: string | undefined; + timezone?: string | undefined; + locale?: string | undefined; + currency?: string | undefined; + positions?: string[] | undefined; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + audience?: "external" | "internal" | undefined; + posture?: "MEMBER" | "PLATFORM_ADMIN" | "TENANT_ADMIN" | "EXTERNAL" | undefined; + authGate?: { + code: string; + message: string; + } | undefined; + onBehalfOf?: { + userId: string; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + } | undefined; + performedBy?: { + clientId: string; + } | undefined; + permissions?: string[] | undefined; + systemPermissions?: string[] | undefined; + tabPermissions?: Record | undefined; + org_user_ids?: string[] | undefined; + accessible_org_ids?: string[] | undefined; + rlsMembership?: Record | undefined; + isSystem?: boolean | undefined; + flowRunId?: string | undefined; + skipTriggers?: boolean | undefined; + skipAutomations?: boolean | undefined; + seedReplay?: boolean | undefined; + skipStateMachine?: boolean | undefined; + preserveAudit?: boolean | undefined; + oauthScopes?: string[] | undefined; + accessToken?: string | undefined; + transaction?: unknown; + traceId?: string | undefined; + } | undefined; + where?: Record | FilterCondition | undefined; + filter?: Record | FilterCondition | undefined; + }>>>; +}, z.core.$strip>; + +// ── DataEngineDeleteOptions (type) ── +type DataEngineDeleteOptions = z.input; + +// ── DataEngineDeleteOptionsSchema (const) ── +declare const DataEngineDeleteOptionsSchema: z.ZodObject<{ + context: z.ZodOptional>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + filter: z.ZodOptional, z.ZodType>]>>; + multi: z.ZodOptional>; +}, z.core.$strip>; + +// ── DataEngineDeleteRequestSchema (const) ── +declare const DataEngineDeleteRequestSchema: z.ZodObject<{ + method: z.ZodLiteral<"delete">; + object: z.ZodString; + id: z.ZodOptional>; + options: z.ZodOptional>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + where: z.ZodOptional, z.ZodType>]>>; + multi: z.ZodOptional>; + filter: z.ZodOptional, z.ZodType>]>>; + }, z.core.$strip>, z.ZodTransform | undefined; + org_user_ids?: string[] | undefined; + accessible_org_ids?: string[] | undefined; + rlsMembership?: Record | undefined; + isSystem?: boolean | undefined; + flowRunId?: string | undefined; + skipTriggers?: boolean | undefined; + skipAutomations?: boolean | undefined; + seedReplay?: boolean | undefined; + skipStateMachine?: boolean | undefined; + preserveAudit?: boolean | undefined; + oauthScopes?: string[] | undefined; + accessToken?: string | undefined; + transaction?: unknown; + traceId?: string | undefined; + } | undefined; + where?: Record | FilterCondition | undefined; + multi?: boolean | undefined; + filter?: Record | FilterCondition | undefined; + }, "filter">, { + context?: { + userId?: string | undefined; + actor?: string | undefined; + attributedUserId?: string | undefined; + email?: string | undefined; + tenantId?: string | undefined; + timezone?: string | undefined; + locale?: string | undefined; + currency?: string | undefined; + positions?: string[] | undefined; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + audience?: "external" | "internal" | undefined; + posture?: "MEMBER" | "PLATFORM_ADMIN" | "TENANT_ADMIN" | "EXTERNAL" | undefined; + authGate?: { + code: string; + message: string; + } | undefined; + onBehalfOf?: { + userId: string; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + } | undefined; + performedBy?: { + clientId: string; + } | undefined; + permissions?: string[] | undefined; + systemPermissions?: string[] | undefined; + tabPermissions?: Record | undefined; + org_user_ids?: string[] | undefined; + accessible_org_ids?: string[] | undefined; + rlsMembership?: Record | undefined; + isSystem?: boolean | undefined; + flowRunId?: string | undefined; + skipTriggers?: boolean | undefined; + skipAutomations?: boolean | undefined; + seedReplay?: boolean | undefined; + skipStateMachine?: boolean | undefined; + preserveAudit?: boolean | undefined; + oauthScopes?: string[] | undefined; + accessToken?: string | undefined; + transaction?: unknown; + traceId?: string | undefined; + } | undefined; + where?: Record | FilterCondition | undefined; + multi?: boolean | undefined; + filter?: Record | FilterCondition | undefined; + }>>>; +}, z.core.$strip>; + +// ── DataEngineExecuteRequest (type) ── +type DataEngineExecuteRequest = z.input; + +// ── DataEngineExecuteRequestSchema (const) ── +declare const DataEngineExecuteRequestSchema: z.ZodObject<{ + method: z.ZodLiteral<"execute">; + command: z.ZodUnknown; + options: z.ZodOptional>; +}, z.core.$strip>; + +// ── DataEngineFilter (type) ── +type DataEngineFilter = z.input; + +// ── DataEngineFilterSchema (const) ── +declare const DataEngineFilterSchema: z.ZodUnion, z.ZodType>]>; + +// ── DataEngineFindOneRequestSchema (const) ── +declare const DataEngineFindOneRequestSchema: z.ZodObject<{ + method: z.ZodLiteral<"findOne">; + object: z.ZodString; + query: z.ZodOptional>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + where: z.ZodOptional, z.ZodType>]>>; + fields: z.ZodOptional>; + orderBy: z.ZodOptional>; + }, z.core.$strict>>>; + limit: z.ZodOptional; + offset: z.ZodOptional; + top: z.ZodOptional; + cursor: z.ZodOptional; + search: z.ZodOptional>; + fuzzy: z.ZodDefault>; + operator: z.ZodDefault>>; + boost: z.ZodOptional>; + minScore: z.ZodOptional; + language: z.ZodOptional; + highlight: z.ZodDefault>; + }, z.core.$strip>]>>; + searchFields: z.ZodOptional>; + expand: z.ZodOptional>>>>; + distinct: z.ZodOptional; + select: z.ZodOptional>; + sort: z.ZodOptional>, z.ZodRecord, z.ZodLiteral<-1>]>>, z.ZodArray>; + }, z.core.$strict>>]>>; + skip: z.ZodOptional; + populate: z.ZodOptional>; + filter: z.ZodOptional, z.ZodType>]>>; + }, z.core.$strip>, z.ZodTransform<{ + context?: { + userId?: string | undefined; + actor?: string | undefined; + attributedUserId?: string | undefined; + email?: string | undefined; + tenantId?: string | undefined; + timezone?: string | undefined; + locale?: string | undefined; + currency?: string | undefined; + positions?: string[] | undefined; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + audience?: "external" | "internal" | undefined; + posture?: "MEMBER" | "PLATFORM_ADMIN" | "TENANT_ADMIN" | "EXTERNAL" | undefined; + authGate?: { + code: string; + message: string; + } | undefined; + onBehalfOf?: { + userId: string; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + } | undefined; + performedBy?: { + clientId: string; + } | undefined; + permissions?: string[] | undefined; + systemPermissions?: string[] | undefined; + tabPermissions?: Record | undefined; + org_user_ids?: string[] | undefined; + accessible_org_ids?: string[] | undefined; + rlsMembership?: Record | undefined; + isSystem?: boolean | undefined; + flowRunId?: string | undefined; + skipTriggers?: boolean | undefined; + skipAutomations?: boolean | undefined; + seedReplay?: boolean | undefined; + skipStateMachine?: boolean | undefined; + preserveAudit?: boolean | undefined; + oauthScopes?: string[] | undefined; + accessToken?: string | undefined; + transaction?: unknown; + traceId?: string | undefined; + } | undefined; + where?: Record | FilterCondition | undefined; + fields?: string[] | undefined; + orderBy?: { + field: string; + order?: "asc" | "desc" | undefined; + }[] | undefined; + limit?: number | undefined; + offset?: number | undefined; + top?: number | undefined; + cursor?: undefined; + search?: string | { + query: string; + fields?: string[] | undefined; + fuzzy?: boolean | undefined; + operator?: "or" | "and" | undefined; + boost?: Record | undefined; + minScore?: number | undefined; + language?: string | undefined; + highlight?: boolean | undefined; + } | undefined; + searchFields?: string[] | undefined; + expand?: Record | undefined; + distinct?: undefined; + }, { + context?: { + userId?: string | undefined; + actor?: string | undefined; + attributedUserId?: string | undefined; + email?: string | undefined; + tenantId?: string | undefined; + timezone?: string | undefined; + locale?: string | undefined; + currency?: string | undefined; + positions?: string[] | undefined; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + audience?: "external" | "internal" | undefined; + posture?: "MEMBER" | "PLATFORM_ADMIN" | "TENANT_ADMIN" | "EXTERNAL" | undefined; + authGate?: { + code: string; + message: string; + } | undefined; + onBehalfOf?: { + userId: string; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + } | undefined; + performedBy?: { + clientId: string; + } | undefined; + permissions?: string[] | undefined; + systemPermissions?: string[] | undefined; + tabPermissions?: Record | undefined; + org_user_ids?: string[] | undefined; + accessible_org_ids?: string[] | undefined; + rlsMembership?: Record | undefined; + isSystem?: boolean | undefined; + flowRunId?: string | undefined; + skipTriggers?: boolean | undefined; + skipAutomations?: boolean | undefined; + seedReplay?: boolean | undefined; + skipStateMachine?: boolean | undefined; + preserveAudit?: boolean | undefined; + oauthScopes?: string[] | undefined; + accessToken?: string | undefined; + transaction?: unknown; + traceId?: string | undefined; + } | undefined; + where?: Record | FilterCondition | undefined; + fields?: string[] | undefined; + orderBy?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + offset?: number | undefined; + top?: number | undefined; + cursor?: undefined; + search?: string | { + query: string; + fuzzy: boolean; + operator: "or" | "and"; + highlight: boolean; + fields?: string[] | undefined; + boost?: Record | undefined; + minScore?: number | undefined; + language?: string | undefined; + } | undefined; + searchFields?: string[] | undefined; + expand?: Record | undefined; + distinct?: undefined; + select?: string[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | Record | Record | undefined; + skip?: number | undefined; + populate?: string[] | undefined; + filter?: Record | FilterCondition | undefined; + }>>>; +}, z.core.$strip>; + +// ── DataEngineFindRequestSchema (const) ── +declare const DataEngineFindRequestSchema: z.ZodObject<{ + method: z.ZodLiteral<"find">; + object: z.ZodString; + query: z.ZodOptional>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + where: z.ZodOptional, z.ZodType>]>>; + fields: z.ZodOptional>; + orderBy: z.ZodOptional>; + }, z.core.$strict>>>; + limit: z.ZodOptional; + offset: z.ZodOptional; + top: z.ZodOptional; + cursor: z.ZodOptional; + search: z.ZodOptional>; + fuzzy: z.ZodDefault>; + operator: z.ZodDefault>>; + boost: z.ZodOptional>; + minScore: z.ZodOptional; + language: z.ZodOptional; + highlight: z.ZodDefault>; + }, z.core.$strip>]>>; + searchFields: z.ZodOptional>; + expand: z.ZodOptional>>>>; + distinct: z.ZodOptional; + select: z.ZodOptional>; + sort: z.ZodOptional>, z.ZodRecord, z.ZodLiteral<-1>]>>, z.ZodArray>; + }, z.core.$strict>>]>>; + skip: z.ZodOptional; + populate: z.ZodOptional>; + filter: z.ZodOptional, z.ZodType>]>>; + }, z.core.$strip>, z.ZodTransform<{ + context?: { + userId?: string | undefined; + actor?: string | undefined; + attributedUserId?: string | undefined; + email?: string | undefined; + tenantId?: string | undefined; + timezone?: string | undefined; + locale?: string | undefined; + currency?: string | undefined; + positions?: string[] | undefined; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + audience?: "external" | "internal" | undefined; + posture?: "MEMBER" | "PLATFORM_ADMIN" | "TENANT_ADMIN" | "EXTERNAL" | undefined; + authGate?: { + code: string; + message: string; + } | undefined; + onBehalfOf?: { + userId: string; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + } | undefined; + performedBy?: { + clientId: string; + } | undefined; + permissions?: string[] | undefined; + systemPermissions?: string[] | undefined; + tabPermissions?: Record | undefined; + org_user_ids?: string[] | undefined; + accessible_org_ids?: string[] | undefined; + rlsMembership?: Record | undefined; + isSystem?: boolean | undefined; + flowRunId?: string | undefined; + skipTriggers?: boolean | undefined; + skipAutomations?: boolean | undefined; + seedReplay?: boolean | undefined; + skipStateMachine?: boolean | undefined; + preserveAudit?: boolean | undefined; + oauthScopes?: string[] | undefined; + accessToken?: string | undefined; + transaction?: unknown; + traceId?: string | undefined; + } | undefined; + where?: Record | FilterCondition | undefined; + fields?: string[] | undefined; + orderBy?: { + field: string; + order?: "asc" | "desc" | undefined; + }[] | undefined; + limit?: number | undefined; + offset?: number | undefined; + top?: number | undefined; + cursor?: undefined; + search?: string | { + query: string; + fields?: string[] | undefined; + fuzzy?: boolean | undefined; + operator?: "or" | "and" | undefined; + boost?: Record | undefined; + minScore?: number | undefined; + language?: string | undefined; + highlight?: boolean | undefined; + } | undefined; + searchFields?: string[] | undefined; + expand?: Record | undefined; + distinct?: undefined; + }, { + context?: { + userId?: string | undefined; + actor?: string | undefined; + attributedUserId?: string | undefined; + email?: string | undefined; + tenantId?: string | undefined; + timezone?: string | undefined; + locale?: string | undefined; + currency?: string | undefined; + positions?: string[] | undefined; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + audience?: "external" | "internal" | undefined; + posture?: "MEMBER" | "PLATFORM_ADMIN" | "TENANT_ADMIN" | "EXTERNAL" | undefined; + authGate?: { + code: string; + message: string; + } | undefined; + onBehalfOf?: { + userId: string; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + } | undefined; + performedBy?: { + clientId: string; + } | undefined; + permissions?: string[] | undefined; + systemPermissions?: string[] | undefined; + tabPermissions?: Record | undefined; + org_user_ids?: string[] | undefined; + accessible_org_ids?: string[] | undefined; + rlsMembership?: Record | undefined; + isSystem?: boolean | undefined; + flowRunId?: string | undefined; + skipTriggers?: boolean | undefined; + skipAutomations?: boolean | undefined; + seedReplay?: boolean | undefined; + skipStateMachine?: boolean | undefined; + preserveAudit?: boolean | undefined; + oauthScopes?: string[] | undefined; + accessToken?: string | undefined; + transaction?: unknown; + traceId?: string | undefined; + } | undefined; + where?: Record | FilterCondition | undefined; + fields?: string[] | undefined; + orderBy?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + offset?: number | undefined; + top?: number | undefined; + cursor?: undefined; + search?: string | { + query: string; + fuzzy: boolean; + operator: "or" | "and"; + highlight: boolean; + fields?: string[] | undefined; + boost?: Record | undefined; + minScore?: number | undefined; + language?: string | undefined; + } | undefined; + searchFields?: string[] | undefined; + expand?: Record | undefined; + distinct?: undefined; + select?: string[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | Record | Record | undefined; + skip?: number | undefined; + populate?: string[] | undefined; + filter?: Record | FilterCondition | undefined; + }>>>; +}, z.core.$strip>; + +// ── DataEngineInsertOptions (type) ── +type DataEngineInsertOptions = z.input; + +// ── DataEngineInsertOptionsSchema (const) ── +declare const DataEngineInsertOptionsSchema: z.ZodObject<{ + context: z.ZodOptional>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + returning: z.ZodOptional>; +}, z.core.$strip>; + +// ── DataEngineInsertRequest (type) ── +type DataEngineInsertRequest = z.input; + +// ── DataEngineInsertRequestSchema (const) ── +declare const DataEngineInsertRequestSchema: z.ZodObject<{ + method: z.ZodLiteral<"insert">; + object: z.ZodString; + data: z.ZodUnion, z.ZodArray>]>; + options: z.ZodOptional>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + returning: z.ZodOptional>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── DataEngineQueryOptions (type) ── +type DataEngineQueryOptions = z.input; + +// ── DataEngineQueryOptionsParsed (type) ── +type DataEngineQueryOptionsParsed = z.infer; + +// ── DataEngineQueryOptionsSchema (const) ── +declare const DataEngineQueryOptionsSchema: z.ZodObject<{ + context: z.ZodOptional>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + filter: z.ZodOptional, z.ZodType>]>>; + select: z.ZodOptional>; + sort: z.ZodOptional>, z.ZodRecord, z.ZodLiteral<-1>]>>, z.ZodArray>; + }, z.core.$strict>>]>>; + limit: z.ZodOptional; + skip: z.ZodOptional; + top: z.ZodOptional; + populate: z.ZodOptional>; +}, z.core.$strip>; + +// ── DataEngineRequest (type) ── +type DataEngineRequest = z.input; + +// ── DataEngineRequestParsed (type) ── +type DataEngineRequestParsed = z.infer; + +// ── DataEngineRequestSchema (const) ── +declare const DataEngineRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ + method: z.ZodLiteral<"find">; + object: z.ZodString; + query: z.ZodOptional>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + where: z.ZodOptional, z.ZodType>]>>; + fields: z.ZodOptional>; + orderBy: z.ZodOptional>; + }, z.core.$strict>>>; + limit: z.ZodOptional; + offset: z.ZodOptional; + top: z.ZodOptional; + cursor: z.ZodOptional; + search: z.ZodOptional>; + fuzzy: z.ZodDefault>; + operator: z.ZodDefault>>; + boost: z.ZodOptional>; + minScore: z.ZodOptional; + language: z.ZodOptional; + highlight: z.ZodDefault>; + }, z.core.$strip>]>>; + searchFields: z.ZodOptional>; + expand: z.ZodOptional>>>>; + distinct: z.ZodOptional; + select: z.ZodOptional>; + sort: z.ZodOptional>, z.ZodRecord, z.ZodLiteral<-1>]>>, z.ZodArray>; + }, z.core.$strict>>]>>; + skip: z.ZodOptional; + populate: z.ZodOptional>; + filter: z.ZodOptional, z.ZodType>]>>; + }, z.core.$strip>, z.ZodTransform<{ + context?: { + userId?: string | undefined; + actor?: string | undefined; + attributedUserId?: string | undefined; + email?: string | undefined; + tenantId?: string | undefined; + timezone?: string | undefined; + locale?: string | undefined; + currency?: string | undefined; + positions?: string[] | undefined; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + audience?: "external" | "internal" | undefined; + posture?: "MEMBER" | "PLATFORM_ADMIN" | "TENANT_ADMIN" | "EXTERNAL" | undefined; + authGate?: { + code: string; + message: string; + } | undefined; + onBehalfOf?: { + userId: string; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + } | undefined; + performedBy?: { + clientId: string; + } | undefined; + permissions?: string[] | undefined; + systemPermissions?: string[] | undefined; + tabPermissions?: Record | undefined; + org_user_ids?: string[] | undefined; + accessible_org_ids?: string[] | undefined; + rlsMembership?: Record | undefined; + isSystem?: boolean | undefined; + flowRunId?: string | undefined; + skipTriggers?: boolean | undefined; + skipAutomations?: boolean | undefined; + seedReplay?: boolean | undefined; + skipStateMachine?: boolean | undefined; + preserveAudit?: boolean | undefined; + oauthScopes?: string[] | undefined; + accessToken?: string | undefined; + transaction?: unknown; + traceId?: string | undefined; + } | undefined; + where?: Record | FilterCondition | undefined; + fields?: string[] | undefined; + orderBy?: { + field: string; + order?: "asc" | "desc" | undefined; + }[] | undefined; + limit?: number | undefined; + offset?: number | undefined; + top?: number | undefined; + cursor?: undefined; + search?: string | { + query: string; + fields?: string[] | undefined; + fuzzy?: boolean | undefined; + operator?: "or" | "and" | undefined; + boost?: Record | undefined; + minScore?: number | undefined; + language?: string | undefined; + highlight?: boolean | undefined; + } | undefined; + searchFields?: string[] | undefined; + expand?: Record | undefined; + distinct?: undefined; + }, { + context?: { + userId?: string | undefined; + actor?: string | undefined; + attributedUserId?: string | undefined; + email?: string | undefined; + tenantId?: string | undefined; + timezone?: string | undefined; + locale?: string | undefined; + currency?: string | undefined; + positions?: string[] | undefined; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + audience?: "external" | "internal" | undefined; + posture?: "MEMBER" | "PLATFORM_ADMIN" | "TENANT_ADMIN" | "EXTERNAL" | undefined; + authGate?: { + code: string; + message: string; + } | undefined; + onBehalfOf?: { + userId: string; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + } | undefined; + performedBy?: { + clientId: string; + } | undefined; + permissions?: string[] | undefined; + systemPermissions?: string[] | undefined; + tabPermissions?: Record | undefined; + org_user_ids?: string[] | undefined; + accessible_org_ids?: string[] | undefined; + rlsMembership?: Record | undefined; + isSystem?: boolean | undefined; + flowRunId?: string | undefined; + skipTriggers?: boolean | undefined; + skipAutomations?: boolean | undefined; + seedReplay?: boolean | undefined; + skipStateMachine?: boolean | undefined; + preserveAudit?: boolean | undefined; + oauthScopes?: string[] | undefined; + accessToken?: string | undefined; + transaction?: unknown; + traceId?: string | undefined; + } | undefined; + where?: Record | FilterCondition | undefined; + fields?: string[] | undefined; + orderBy?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + offset?: number | undefined; + top?: number | undefined; + cursor?: undefined; + search?: string | { + query: string; + fuzzy: boolean; + operator: "or" | "and"; + highlight: boolean; + fields?: string[] | undefined; + boost?: Record | undefined; + minScore?: number | undefined; + language?: string | undefined; + } | undefined; + searchFields?: string[] | undefined; + expand?: Record | undefined; + distinct?: undefined; + select?: string[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | Record | Record | undefined; + skip?: number | undefined; + populate?: string[] | undefined; + filter?: Record | FilterCondition | undefined; + }>>>; +}, z.core.$strip>, z.ZodObject<{ + method: z.ZodLiteral<"findOne">; + object: z.ZodString; + query: z.ZodOptional>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + where: z.ZodOptional, z.ZodType>]>>; + fields: z.ZodOptional>; + orderBy: z.ZodOptional>; + }, z.core.$strict>>>; + limit: z.ZodOptional; + offset: z.ZodOptional; + top: z.ZodOptional; + cursor: z.ZodOptional; + search: z.ZodOptional>; + fuzzy: z.ZodDefault>; + operator: z.ZodDefault>>; + boost: z.ZodOptional>; + minScore: z.ZodOptional; + language: z.ZodOptional; + highlight: z.ZodDefault>; + }, z.core.$strip>]>>; + searchFields: z.ZodOptional>; + expand: z.ZodOptional>>>>; + distinct: z.ZodOptional; + select: z.ZodOptional>; + sort: z.ZodOptional>, z.ZodRecord, z.ZodLiteral<-1>]>>, z.ZodArray>; + }, z.core.$strict>>]>>; + skip: z.ZodOptional; + populate: z.ZodOptional>; + filter: z.ZodOptional, z.ZodType>]>>; + }, z.core.$strip>, z.ZodTransform<{ + context?: { + userId?: string | undefined; + actor?: string | undefined; + attributedUserId?: string | undefined; + email?: string | undefined; + tenantId?: string | undefined; + timezone?: string | undefined; + locale?: string | undefined; + currency?: string | undefined; + positions?: string[] | undefined; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + audience?: "external" | "internal" | undefined; + posture?: "MEMBER" | "PLATFORM_ADMIN" | "TENANT_ADMIN" | "EXTERNAL" | undefined; + authGate?: { + code: string; + message: string; + } | undefined; + onBehalfOf?: { + userId: string; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + } | undefined; + performedBy?: { + clientId: string; + } | undefined; + permissions?: string[] | undefined; + systemPermissions?: string[] | undefined; + tabPermissions?: Record | undefined; + org_user_ids?: string[] | undefined; + accessible_org_ids?: string[] | undefined; + rlsMembership?: Record | undefined; + isSystem?: boolean | undefined; + flowRunId?: string | undefined; + skipTriggers?: boolean | undefined; + skipAutomations?: boolean | undefined; + seedReplay?: boolean | undefined; + skipStateMachine?: boolean | undefined; + preserveAudit?: boolean | undefined; + oauthScopes?: string[] | undefined; + accessToken?: string | undefined; + transaction?: unknown; + traceId?: string | undefined; + } | undefined; + where?: Record | FilterCondition | undefined; + fields?: string[] | undefined; + orderBy?: { + field: string; + order?: "asc" | "desc" | undefined; + }[] | undefined; + limit?: number | undefined; + offset?: number | undefined; + top?: number | undefined; + cursor?: undefined; + search?: string | { + query: string; + fields?: string[] | undefined; + fuzzy?: boolean | undefined; + operator?: "or" | "and" | undefined; + boost?: Record | undefined; + minScore?: number | undefined; + language?: string | undefined; + highlight?: boolean | undefined; + } | undefined; + searchFields?: string[] | undefined; + expand?: Record | undefined; + distinct?: undefined; + }, { + context?: { + userId?: string | undefined; + actor?: string | undefined; + attributedUserId?: string | undefined; + email?: string | undefined; + tenantId?: string | undefined; + timezone?: string | undefined; + locale?: string | undefined; + currency?: string | undefined; + positions?: string[] | undefined; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + audience?: "external" | "internal" | undefined; + posture?: "MEMBER" | "PLATFORM_ADMIN" | "TENANT_ADMIN" | "EXTERNAL" | undefined; + authGate?: { + code: string; + message: string; + } | undefined; + onBehalfOf?: { + userId: string; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + } | undefined; + performedBy?: { + clientId: string; + } | undefined; + permissions?: string[] | undefined; + systemPermissions?: string[] | undefined; + tabPermissions?: Record | undefined; + org_user_ids?: string[] | undefined; + accessible_org_ids?: string[] | undefined; + rlsMembership?: Record | undefined; + isSystem?: boolean | undefined; + flowRunId?: string | undefined; + skipTriggers?: boolean | undefined; + skipAutomations?: boolean | undefined; + seedReplay?: boolean | undefined; + skipStateMachine?: boolean | undefined; + preserveAudit?: boolean | undefined; + oauthScopes?: string[] | undefined; + accessToken?: string | undefined; + transaction?: unknown; + traceId?: string | undefined; + } | undefined; + where?: Record | FilterCondition | undefined; + fields?: string[] | undefined; + orderBy?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + offset?: number | undefined; + top?: number | undefined; + cursor?: undefined; + search?: string | { + query: string; + fuzzy: boolean; + operator: "or" | "and"; + highlight: boolean; + fields?: string[] | undefined; + boost?: Record | undefined; + minScore?: number | undefined; + language?: string | undefined; + } | undefined; + searchFields?: string[] | undefined; + expand?: Record | undefined; + distinct?: undefined; + select?: string[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | Record | Record | undefined; + skip?: number | undefined; + populate?: string[] | undefined; + filter?: Record | FilterCondition | undefined; + }>>>; +}, z.core.$strip>, z.ZodObject<{ + method: z.ZodLiteral<"insert">; + object: z.ZodString; + data: z.ZodUnion, z.ZodArray>]>; + options: z.ZodOptional>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + returning: z.ZodOptional>; + }, z.core.$strip>>; +}, z.core.$strip>, z.ZodObject<{ + method: z.ZodLiteral<"update">; + object: z.ZodString; + data: z.ZodRecord; + id: z.ZodOptional>; + options: z.ZodOptional>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + where: z.ZodOptional, z.ZodType>]>>; + upsert: z.ZodOptional; + multi: z.ZodOptional>; + returning: z.ZodOptional>; + filter: z.ZodOptional, z.ZodType>]>>; + }, z.core.$strip>, z.ZodTransform | undefined; + org_user_ids?: string[] | undefined; + accessible_org_ids?: string[] | undefined; + rlsMembership?: Record | undefined; + isSystem?: boolean | undefined; + flowRunId?: string | undefined; + skipTriggers?: boolean | undefined; + skipAutomations?: boolean | undefined; + seedReplay?: boolean | undefined; + skipStateMachine?: boolean | undefined; + preserveAudit?: boolean | undefined; + oauthScopes?: string[] | undefined; + accessToken?: string | undefined; + transaction?: unknown; + traceId?: string | undefined; + } | undefined; + where?: Record | FilterCondition | undefined; + upsert?: undefined; + multi?: boolean | undefined; + returning?: boolean | undefined; + filter?: Record | FilterCondition | undefined; + }, "filter">, { + context?: { + userId?: string | undefined; + actor?: string | undefined; + attributedUserId?: string | undefined; + email?: string | undefined; + tenantId?: string | undefined; + timezone?: string | undefined; + locale?: string | undefined; + currency?: string | undefined; + positions?: string[] | undefined; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + audience?: "external" | "internal" | undefined; + posture?: "MEMBER" | "PLATFORM_ADMIN" | "TENANT_ADMIN" | "EXTERNAL" | undefined; + authGate?: { + code: string; + message: string; + } | undefined; + onBehalfOf?: { + userId: string; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + } | undefined; + performedBy?: { + clientId: string; + } | undefined; + permissions?: string[] | undefined; + systemPermissions?: string[] | undefined; + tabPermissions?: Record | undefined; + org_user_ids?: string[] | undefined; + accessible_org_ids?: string[] | undefined; + rlsMembership?: Record | undefined; + isSystem?: boolean | undefined; + flowRunId?: string | undefined; + skipTriggers?: boolean | undefined; + skipAutomations?: boolean | undefined; + seedReplay?: boolean | undefined; + skipStateMachine?: boolean | undefined; + preserveAudit?: boolean | undefined; + oauthScopes?: string[] | undefined; + accessToken?: string | undefined; + transaction?: unknown; + traceId?: string | undefined; + } | undefined; + where?: Record | FilterCondition | undefined; + upsert?: undefined; + multi?: boolean | undefined; + returning?: boolean | undefined; + filter?: Record | FilterCondition | undefined; + }>>>; +}, z.core.$strip>, z.ZodObject<{ + method: z.ZodLiteral<"delete">; + object: z.ZodString; + id: z.ZodOptional>; + options: z.ZodOptional>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + where: z.ZodOptional, z.ZodType>]>>; + multi: z.ZodOptional>; + filter: z.ZodOptional, z.ZodType>]>>; + }, z.core.$strip>, z.ZodTransform | undefined; + org_user_ids?: string[] | undefined; + accessible_org_ids?: string[] | undefined; + rlsMembership?: Record | undefined; + isSystem?: boolean | undefined; + flowRunId?: string | undefined; + skipTriggers?: boolean | undefined; + skipAutomations?: boolean | undefined; + seedReplay?: boolean | undefined; + skipStateMachine?: boolean | undefined; + preserveAudit?: boolean | undefined; + oauthScopes?: string[] | undefined; + accessToken?: string | undefined; + transaction?: unknown; + traceId?: string | undefined; + } | undefined; + where?: Record | FilterCondition | undefined; + multi?: boolean | undefined; + filter?: Record | FilterCondition | undefined; + }, "filter">, { + context?: { + userId?: string | undefined; + actor?: string | undefined; + attributedUserId?: string | undefined; + email?: string | undefined; + tenantId?: string | undefined; + timezone?: string | undefined; + locale?: string | undefined; + currency?: string | undefined; + positions?: string[] | undefined; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + audience?: "external" | "internal" | undefined; + posture?: "MEMBER" | "PLATFORM_ADMIN" | "TENANT_ADMIN" | "EXTERNAL" | undefined; + authGate?: { + code: string; + message: string; + } | undefined; + onBehalfOf?: { + userId: string; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + } | undefined; + performedBy?: { + clientId: string; + } | undefined; + permissions?: string[] | undefined; + systemPermissions?: string[] | undefined; + tabPermissions?: Record | undefined; + org_user_ids?: string[] | undefined; + accessible_org_ids?: string[] | undefined; + rlsMembership?: Record | undefined; + isSystem?: boolean | undefined; + flowRunId?: string | undefined; + skipTriggers?: boolean | undefined; + skipAutomations?: boolean | undefined; + seedReplay?: boolean | undefined; + skipStateMachine?: boolean | undefined; + preserveAudit?: boolean | undefined; + oauthScopes?: string[] | undefined; + accessToken?: string | undefined; + transaction?: unknown; + traceId?: string | undefined; + } | undefined; + where?: Record | FilterCondition | undefined; + multi?: boolean | undefined; + filter?: Record | FilterCondition | undefined; + }>>>; +}, z.core.$strip>, z.ZodObject<{ + method: z.ZodLiteral<"count">; + object: z.ZodString; + query: z.ZodOptional>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + where: z.ZodOptional, z.ZodType>]>>; + filter: z.ZodOptional, z.ZodType>]>>; + }, z.core.$strip>, z.ZodTransform | undefined; + org_user_ids?: string[] | undefined; + accessible_org_ids?: string[] | undefined; + rlsMembership?: Record | undefined; + isSystem?: boolean | undefined; + flowRunId?: string | undefined; + skipTriggers?: boolean | undefined; + skipAutomations?: boolean | undefined; + seedReplay?: boolean | undefined; + skipStateMachine?: boolean | undefined; + preserveAudit?: boolean | undefined; + oauthScopes?: string[] | undefined; + accessToken?: string | undefined; + transaction?: unknown; + traceId?: string | undefined; + } | undefined; + where?: Record | FilterCondition | undefined; + filter?: Record | FilterCondition | undefined; + }, "filter">, { + context?: { + userId?: string | undefined; + actor?: string | undefined; + attributedUserId?: string | undefined; + email?: string | undefined; + tenantId?: string | undefined; + timezone?: string | undefined; + locale?: string | undefined; + currency?: string | undefined; + positions?: string[] | undefined; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + audience?: "external" | "internal" | undefined; + posture?: "MEMBER" | "PLATFORM_ADMIN" | "TENANT_ADMIN" | "EXTERNAL" | undefined; + authGate?: { + code: string; + message: string; + } | undefined; + onBehalfOf?: { + userId: string; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + } | undefined; + performedBy?: { + clientId: string; + } | undefined; + permissions?: string[] | undefined; + systemPermissions?: string[] | undefined; + tabPermissions?: Record | undefined; + org_user_ids?: string[] | undefined; + accessible_org_ids?: string[] | undefined; + rlsMembership?: Record | undefined; + isSystem?: boolean | undefined; + flowRunId?: string | undefined; + skipTriggers?: boolean | undefined; + skipAutomations?: boolean | undefined; + seedReplay?: boolean | undefined; + skipStateMachine?: boolean | undefined; + preserveAudit?: boolean | undefined; + oauthScopes?: string[] | undefined; + accessToken?: string | undefined; + transaction?: unknown; + traceId?: string | undefined; + } | undefined; + where?: Record | FilterCondition | undefined; + filter?: Record | FilterCondition | undefined; + }>>>; +}, z.core.$strip>, z.ZodObject<{ + method: z.ZodLiteral<"aggregate">; + object: z.ZodString; + query: z.ZodPipe>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + where: z.ZodOptional, z.ZodType>]>>; + groupBy: z.ZodOptional>; + alias: z.ZodOptional; + }, z.core.$strip>]>>>; + aggregations: z.ZodOptional; + field: z.ZodOptional; + alias: z.ZodString; + distinct: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strip>>>; + having: z.ZodOptional>>; + timezone: z.ZodOptional; + filter: z.ZodOptional, z.ZodType>]>>; + }, z.core.$strip>, z.ZodTransform | undefined; + org_user_ids?: string[] | undefined; + accessible_org_ids?: string[] | undefined; + rlsMembership?: Record | undefined; + isSystem?: boolean | undefined; + flowRunId?: string | undefined; + skipTriggers?: boolean | undefined; + skipAutomations?: boolean | undefined; + seedReplay?: boolean | undefined; + skipStateMachine?: boolean | undefined; + preserveAudit?: boolean | undefined; + oauthScopes?: string[] | undefined; + accessToken?: string | undefined; + transaction?: unknown; + traceId?: string | undefined; + } | undefined; + where?: Record | FilterCondition | undefined; + groupBy?: (string | { + field: string; + dateGranularity?: "year" | "month" | "day" | "week" | "quarter" | undefined; + alias?: string | undefined; + })[] | undefined; + aggregations?: { + function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct"; + alias: string; + field?: string | undefined; + distinct?: undefined; + filter?: FilterCondition | undefined; + }[] | undefined; + having?: FilterCondition | undefined; + timezone?: string | undefined; + filter?: Record | FilterCondition | undefined; + }, "filter">, { + context?: { + userId?: string | undefined; + actor?: string | undefined; + attributedUserId?: string | undefined; + email?: string | undefined; + tenantId?: string | undefined; + timezone?: string | undefined; + locale?: string | undefined; + currency?: string | undefined; + positions?: string[] | undefined; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + audience?: "external" | "internal" | undefined; + posture?: "MEMBER" | "PLATFORM_ADMIN" | "TENANT_ADMIN" | "EXTERNAL" | undefined; + authGate?: { + code: string; + message: string; + } | undefined; + onBehalfOf?: { + userId: string; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + } | undefined; + performedBy?: { + clientId: string; + } | undefined; + permissions?: string[] | undefined; + systemPermissions?: string[] | undefined; + tabPermissions?: Record | undefined; + org_user_ids?: string[] | undefined; + accessible_org_ids?: string[] | undefined; + rlsMembership?: Record | undefined; + isSystem?: boolean | undefined; + flowRunId?: string | undefined; + skipTriggers?: boolean | undefined; + skipAutomations?: boolean | undefined; + seedReplay?: boolean | undefined; + skipStateMachine?: boolean | undefined; + preserveAudit?: boolean | undefined; + oauthScopes?: string[] | undefined; + accessToken?: string | undefined; + transaction?: unknown; + traceId?: string | undefined; + } | undefined; + where?: Record | FilterCondition | undefined; + groupBy?: (string | { + field: string; + dateGranularity?: "year" | "month" | "day" | "week" | "quarter" | undefined; + alias?: string | undefined; + })[] | undefined; + aggregations?: { + function: "min" | "max" | "count" | "sum" | "avg" | "count_distinct"; + alias: string; + field?: string | undefined; + distinct?: undefined; + filter?: FilterCondition | undefined; + }[] | undefined; + having?: FilterCondition | undefined; + timezone?: string | undefined; + filter?: Record | FilterCondition | undefined; + }>>; +}, z.core.$strip>, z.ZodObject<{ + method: z.ZodLiteral<"execute">; + command: z.ZodUnknown; + options: z.ZodOptional>; +}, z.core.$strip>, z.ZodObject<{ + method: z.ZodLiteral<"vectorFind">; + object: z.ZodString; + vector: z.ZodArray; + where: z.ZodOptional, z.ZodType>]>>; + fields: z.ZodOptional>; + limit: z.ZodOptional>; + threshold: z.ZodOptional; +}, z.core.$strip>], "method">; + +// ── DataEngineSort (type) ── +type DataEngineSort = z.input; + +// ── DataEngineSortParsed (type) ── +type DataEngineSortParsed = z.infer; + +// ── DataEngineSortSchema (const) ── +declare const DataEngineSortSchema: z.ZodUnion>, z.ZodRecord, z.ZodLiteral<-1>]>>, z.ZodArray>; +}, z.core.$strict>>]>; + +// ── DataEngineUpdateOptions (type) ── +type DataEngineUpdateOptions = z.input; + +// ── DataEngineUpdateOptionsSchema (const) ── +declare const DataEngineUpdateOptionsSchema: z.ZodObject<{ + context: z.ZodOptional>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + filter: z.ZodOptional, z.ZodType>]>>; + upsert: z.ZodOptional; + multi: z.ZodOptional>; + returning: z.ZodOptional>; +}, z.core.$strip>; + +// ── DataEngineUpdateRequestSchema (const) ── +declare const DataEngineUpdateRequestSchema: z.ZodObject<{ + method: z.ZodLiteral<"update">; + object: z.ZodString; + data: z.ZodRecord; + id: z.ZodOptional>; + options: z.ZodOptional>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + where: z.ZodOptional, z.ZodType>]>>; + upsert: z.ZodOptional; + multi: z.ZodOptional>; + returning: z.ZodOptional>; + filter: z.ZodOptional, z.ZodType>]>>; + }, z.core.$strip>, z.ZodTransform | undefined; + org_user_ids?: string[] | undefined; + accessible_org_ids?: string[] | undefined; + rlsMembership?: Record | undefined; + isSystem?: boolean | undefined; + flowRunId?: string | undefined; + skipTriggers?: boolean | undefined; + skipAutomations?: boolean | undefined; + seedReplay?: boolean | undefined; + skipStateMachine?: boolean | undefined; + preserveAudit?: boolean | undefined; + oauthScopes?: string[] | undefined; + accessToken?: string | undefined; + transaction?: unknown; + traceId?: string | undefined; + } | undefined; + where?: Record | FilterCondition | undefined; + upsert?: undefined; + multi?: boolean | undefined; + returning?: boolean | undefined; + filter?: Record | FilterCondition | undefined; + }, "filter">, { + context?: { + userId?: string | undefined; + actor?: string | undefined; + attributedUserId?: string | undefined; + email?: string | undefined; + tenantId?: string | undefined; + timezone?: string | undefined; + locale?: string | undefined; + currency?: string | undefined; + positions?: string[] | undefined; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + audience?: "external" | "internal" | undefined; + posture?: "MEMBER" | "PLATFORM_ADMIN" | "TENANT_ADMIN" | "EXTERNAL" | undefined; + authGate?: { + code: string; + message: string; + } | undefined; + onBehalfOf?: { + userId: string; + principalKind?: "agent" | "system" | "guest" | "human" | "service" | undefined; + } | undefined; + performedBy?: { + clientId: string; + } | undefined; + permissions?: string[] | undefined; + systemPermissions?: string[] | undefined; + tabPermissions?: Record | undefined; + org_user_ids?: string[] | undefined; + accessible_org_ids?: string[] | undefined; + rlsMembership?: Record | undefined; + isSystem?: boolean | undefined; + flowRunId?: string | undefined; + skipTriggers?: boolean | undefined; + skipAutomations?: boolean | undefined; + seedReplay?: boolean | undefined; + skipStateMachine?: boolean | undefined; + preserveAudit?: boolean | undefined; + oauthScopes?: string[] | undefined; + accessToken?: string | undefined; + transaction?: unknown; + traceId?: string | undefined; + } | undefined; + where?: Record | FilterCondition | undefined; + upsert?: undefined; + multi?: boolean | undefined; + returning?: boolean | undefined; + filter?: Record | FilterCondition | undefined; + }>>>; +}, z.core.$strip>; + +// ── DataEngineVectorFindRequest (type) ── +type DataEngineVectorFindRequest = z.input; + +// ── DataEngineVectorFindRequestSchema (const) ── +declare const DataEngineVectorFindRequestSchema: z.ZodObject<{ + method: z.ZodLiteral<"vectorFind">; + object: z.ZodString; + vector: z.ZodArray; + where: z.ZodOptional, z.ZodType>]>>; + fields: z.ZodOptional>; + limit: z.ZodOptional>; + threshold: z.ZodOptional; +}, z.core.$strip>; + +// ── DataTypeMapping (type) ── +type DataTypeMapping = z.input; + +// ── DataTypeMappingSchema (const) ── +declare const DataTypeMappingSchema: z.ZodObject<{ + text: z.ZodString; + number: z.ZodString; + boolean: z.ZodString; + date: z.ZodString; + datetime: z.ZodString; + json: z.ZodOptional; + uuid: z.ZodOptional; + binary: z.ZodOptional; +}, z.core.$strip>; + +// ── Datasource (type) ── +type Datasource = z.input; + +// ── DatasourceParsed (type) ── +type DatasourceParsed = z.infer; + +// ── DatasourceSchema (const) ── +declare const DatasourceSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + driver: z.ZodString; + config: z.ZodRecord; + pool: z.ZodOptional; + max: z.ZodDefault; + idleTimeoutMillis: z.ZodDefault; + connectionTimeoutMillis: z.ZodDefault; + }, z.core.$strict>>; + ssl: z.ZodOptional; + rejectUnauthorized: z.ZodDefault; + ca: z.ZodOptional; + cert: z.ZodOptional; + key: z.ZodOptional; + }, z.core.$strict>>; + description: z.ZodOptional; + active: z.ZodDefault; + autoConnect: z.ZodDefault; + schemaMode: z.ZodDefault>; + external: z.ZodOptional>; + allowWrites: z.ZodDefault; + validation: z.ZodDefault>; + checkOnBoot: z.ZodDefault; + checkIntervalMs: z.ZodOptional; + }, z.core.$strict>>; + credentialsRef: z.ZodOptional; + queryTimeoutMs: z.ZodDefault; + }, z.core.$strict>>; + origin: z.ZodDefault>; +}, z.core.$strict>; + +// ── DateGranularity (const) ── +declare const DateGranularity: z.ZodEnum<{ + year: "year"; + month: "month"; + day: "day"; + week: "week"; + quarter: "quarter"; +}>; + +// ── DateGranularityValue (type) ── +type DateGranularityValue = z.input; + +// ── DateMacroDirection (type) ── +type DateMacroDirection = 'ago' | 'from_now'; + +// ── DateMacroParamMatch (interface) ── +interface DateMacroParamMatch { + readonly n: number; + readonly unit: DateMacroUnit; + readonly direction: DateMacroDirection; +} + +// ── DateMacroPlaceholder (type) ── +type DateMacroPlaceholder = z.input; + +// ── DateMacroPlaceholderSchema (const) ── +declare const DateMacroPlaceholderSchema: z.ZodString; + +// ── DateMacroToken (type) ── +type DateMacroToken = (typeof DATE_MACRO_TOKENS)[number]; + +// ── DateMacroTokenSchema (const) ── +declare const DateMacroTokenSchema: z.ZodString; + +// ── DateMacroUnit (type) ── +type DateMacroUnit = (typeof DATE_MACRO_UNITS)[number]; + +// ── DateRangePreset (type) ── +type DateRangePreset = (typeof DATE_RANGE_PRESETS)[number]; + +// ── DefaultValueShape (type) ── +type DefaultValueShape = 'expression' | 'token' | 'literal'; + +// ── DefaultValueToken (type) ── +type DefaultValueToken = (typeof DEFAULT_VALUE_TOKENS)[number]; + +// ── Dimension (type) ── +type Dimension = z.input; + +// ── DimensionSchema (const) ── +declare const DimensionSchema: z.ZodObject<{ + name: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + type: z.ZodEnum<{ + string: "string"; + number: "number"; + boolean: "boolean"; + time: "time"; + geo: "geo"; + }>; + sql: z.ZodString; + granularities: z.ZodOptional>>; +}, z.core.$strict>; + +// ── DimensionType (const) ── +declare const DimensionType: z.ZodEnum<{ + string: "string"; + number: "number"; + boolean: "boolean"; + time: "time"; + geo: "geo"; +}>; + +// ── DimensionType (type) ── +type DimensionType = z.input; + +// ── DisplayNameObjectMeta (interface) ── +interface DisplayNameObjectMeta { + /** Canonical primary-title pointer (ADR-0079). */ + nameField?: string; + /** Deprecated alias for `nameField`; still honored as a fallback. */ + displayNameField?: string; + fields?: Record | undefined; + [k: string]: unknown; +} + +// ── Document (type) ── +type Document = z.input; + +// ── DocumentParsed (type) ── +type DocumentParsed = z.infer; + +// ── DocumentSchema (const) ── +declare const DocumentSchema: z.ZodObject<{ + id: z.ZodString; + name: z.ZodString; + description: z.ZodOptional; + fileType: z.ZodString; + fileSize: z.ZodNumber; + category: z.ZodOptional; + tags: z.ZodOptional>; + versioning: z.ZodOptional>; + }, z.core.$strip>>; + majorVersion: z.ZodNumber; + minorVersion: z.ZodNumber; + }, z.core.$strip>>; + template: z.ZodOptional; + fileUrl: z.ZodString; + fileType: z.ZodString; + placeholders: z.ZodArray; + required: z.ZodDefault>; + }, z.core.$strip>>; + }, z.core.$strip>>; + eSignature: z.ZodOptional; + enabled: z.ZodDefault>; + signers: z.ZodArray>; + expirationDays: z.ZodOptional; + reminderDays: z.ZodOptional; + }, z.core.$strip>>; + access: z.ZodOptional>; + sharedWith: z.ZodOptional>; + expiresAt: z.ZodOptional; + }, z.core.$strip>>; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── DocumentSchemaValidation (type) ── +type DocumentSchemaValidation = z.input; + +// ── DocumentSchemaValidationParsed (type) ── +type DocumentSchemaValidationParsed = z.infer; + +// ── DocumentSchemaValidationSchema (const) ── +declare const DocumentSchemaValidationSchema: z.ZodObject<{ + enabled: z.ZodDefault; + validationLevel: z.ZodOptional>; + validationAction: z.ZodOptional>; + jsonSchema: z.ZodOptional>; +}, z.core.$strip>; + +// ── DocumentTemplate (type) ── +type DocumentTemplate = z.input; + +// ── DocumentTemplateParsed (type) ── +type DocumentTemplateParsed = z.infer; + +// ── DocumentTemplateSchema (const) ── +declare const DocumentTemplateSchema: z.ZodObject<{ + id: z.ZodString; + name: z.ZodString; + description: z.ZodOptional; + fileUrl: z.ZodString; + fileType: z.ZodString; + placeholders: z.ZodArray; + required: z.ZodDefault>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── DocumentVersion (type) ── +type DocumentVersion = z.input; + +// ── DocumentVersionParsed (type) ── +type DocumentVersionParsed = z.infer; + +// ── DocumentVersionSchema (const) ── +declare const DocumentVersionSchema: z.ZodObject<{ + versionNumber: z.ZodNumber; + createdAt: z.ZodNumber; + createdBy: z.ZodString; + size: z.ZodNumber; + checksum: z.ZodString; + downloadUrl: z.ZodString; + isLatest: z.ZodDefault>; +}, z.core.$strip>; + +// ── DottedFilterHeadClass (type) ── +type DottedFilterHeadClass = 'relation' | 'virtual' | 'scalar' | null; + +// ── DottedFilterHeadMeta (interface) ── +interface DottedFilterHeadMeta { + type?: string; + multiple?: boolean; +} + +// ── DriverCapabilities (type) ── +type DriverCapabilities = z.input; + +// ── DriverCapabilitiesSchema (const) ── +declare const DriverCapabilitiesSchema: z.ZodObject<{ + queryDateGranularity: z.ZodOptional, z.ZodBoolean>>; + autonumber: z.ZodOptional; + batchSchemaSync: z.ZodOptional; + create: z.ZodOptional; + read: z.ZodOptional; + update: z.ZodOptional; + delete: z.ZodOptional; + bulkCreate: z.ZodOptional; + bulkUpdate: z.ZodOptional; + bulkDelete: z.ZodOptional; + transactions: z.ZodOptional; + savepoints: z.ZodOptional; + isolationLevels: z.ZodOptional; + queryFilters: z.ZodOptional; + querySorting: z.ZodOptional; + queryPagination: z.ZodOptional; + queryAggregations: z.ZodOptional; + queryWindowFunctions: z.ZodOptional; + querySubqueries: z.ZodOptional; + queryCTE: z.ZodOptional; + joins: z.ZodOptional; + fullTextSearch: z.ZodOptional; + jsonQuery: z.ZodOptional; + geospatialQuery: z.ZodOptional; + streaming: z.ZodOptional; + jsonFields: z.ZodOptional; + arrayFields: z.ZodOptional; + vectorSearch: z.ZodOptional; + schemaSync: z.ZodOptional; + migrations: z.ZodOptional; + indexes: z.ZodOptional; + connectionPooling: z.ZodOptional; + preparedStatements: z.ZodOptional; + queryCache: z.ZodOptional; +}, z.core.$strip>; + +// ── DriverConfig (type) ── +type DriverConfig = z.input; + +// ── DriverConfigIssue (interface) ── +interface DriverConfigIssue { + /** Property path inside `config` (empty for a whole-object problem). */ + path: (string | number)[]; + message: string; +} + +// ── DriverConfigParsed (type) ── +type DriverConfigParsed = z.infer; + +// ── DriverConfigSchema (const) ── +declare const DriverConfigSchema: z.ZodObject<{ + name: z.ZodString; + type: z.ZodEnum<{ + search: "search"; + cache: "cache"; + sql: "sql"; + nosql: "nosql"; + graph: "graph"; + timeseries: "timeseries"; + }>; + capabilities: z.ZodObject<{ + queryDateGranularity: z.ZodOptional, z.ZodBoolean>>; + autonumber: z.ZodOptional; + batchSchemaSync: z.ZodOptional; + create: z.ZodOptional; + read: z.ZodOptional; + update: z.ZodOptional; + delete: z.ZodOptional; + bulkCreate: z.ZodOptional; + bulkUpdate: z.ZodOptional; + bulkDelete: z.ZodOptional; + transactions: z.ZodOptional; + savepoints: z.ZodOptional; + isolationLevels: z.ZodOptional; + queryFilters: z.ZodOptional; + querySorting: z.ZodOptional; + queryPagination: z.ZodOptional; + queryAggregations: z.ZodOptional; + queryWindowFunctions: z.ZodOptional; + querySubqueries: z.ZodOptional; + queryCTE: z.ZodOptional; + joins: z.ZodOptional; + fullTextSearch: z.ZodOptional; + jsonQuery: z.ZodOptional; + geospatialQuery: z.ZodOptional; + streaming: z.ZodOptional; + jsonFields: z.ZodOptional; + arrayFields: z.ZodOptional; + vectorSearch: z.ZodOptional; + schemaSync: z.ZodOptional; + migrations: z.ZodOptional; + indexes: z.ZodOptional; + connectionPooling: z.ZodOptional; + preparedStatements: z.ZodOptional; + queryCache: z.ZodOptional; + }, z.core.$strip>; + connectionString: z.ZodOptional; + poolConfig: z.ZodOptional; + max: z.ZodDefault; + idleTimeoutMillis: z.ZodDefault; + connectionTimeoutMillis: z.ZodDefault; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── DriverDefinition (type) ── +type DriverDefinition = z.input; + +// ── DriverDefinitionSchema (const) ── +declare const DriverDefinitionSchema: z.ZodObject<{ + id: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + icon: z.ZodOptional; + configSchema: z.ZodRecord; +}, z.core.$strict>; + +// ── DriverInterface (type) ── +type DriverInterface = z.input; + +// ── DriverInterfaceParsed (type) ── +type DriverInterfaceParsed = z.infer; + +// ── DriverInterfaceSchema (const) ── +declare const DriverInterfaceSchema: z.ZodObject<{ + name: z.ZodString; + version: z.ZodString; + supports: z.ZodObject<{ + queryDateGranularity: z.ZodOptional, z.ZodBoolean>>; + autonumber: z.ZodOptional; + batchSchemaSync: z.ZodOptional; + create: z.ZodOptional; + read: z.ZodOptional; + update: z.ZodOptional; + delete: z.ZodOptional; + bulkCreate: z.ZodOptional; + bulkUpdate: z.ZodOptional; + bulkDelete: z.ZodOptional; + transactions: z.ZodOptional; + savepoints: z.ZodOptional; + isolationLevels: z.ZodOptional; + queryFilters: z.ZodOptional; + querySorting: z.ZodOptional; + queryPagination: z.ZodOptional; + queryAggregations: z.ZodOptional; + queryWindowFunctions: z.ZodOptional; + querySubqueries: z.ZodOptional; + queryCTE: z.ZodOptional; + joins: z.ZodOptional; + fullTextSearch: z.ZodOptional; + jsonQuery: z.ZodOptional; + geospatialQuery: z.ZodOptional; + streaming: z.ZodOptional; + jsonFields: z.ZodOptional; + arrayFields: z.ZodOptional; + vectorSearch: z.ZodOptional; + schemaSync: z.ZodOptional; + migrations: z.ZodOptional; + indexes: z.ZodOptional; + connectionPooling: z.ZodOptional; + preparedStatements: z.ZodOptional; + queryCache: z.ZodOptional; + }, z.core.$strip>; + connect: z.ZodFunction, z.ZodPromise>; + disconnect: z.ZodFunction, z.ZodPromise>; + checkHealth: z.ZodFunction, z.ZodPromise>; + getPoolStats: z.ZodOptional, z.ZodOptional>>>; + execute: z.ZodFunction>, z.ZodOptional; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + skipCache: z.ZodOptional; + traceContext: z.ZodOptional>; + tenantId: z.ZodOptional; + tenantIds: z.ZodOptional>; + timezone: z.ZodOptional; + preserveAudit: z.ZodOptional; + bypassTenantAudit: z.ZodOptional; + }, z.core.$strip>>], null>, z.ZodPromise>; + find: z.ZodFunction>, z.ZodOptional; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + skipCache: z.ZodOptional; + traceContext: z.ZodOptional>; + tenantId: z.ZodOptional; + tenantIds: z.ZodOptional>; + timezone: z.ZodOptional; + preserveAudit: z.ZodOptional; + bypassTenantAudit: z.ZodOptional; + }, z.core.$strip>>], null>, z.ZodPromise>>>; + findOne: z.ZodFunction>, z.ZodOptional; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + skipCache: z.ZodOptional; + traceContext: z.ZodOptional>; + tenantId: z.ZodOptional; + tenantIds: z.ZodOptional>; + timezone: z.ZodOptional; + preserveAudit: z.ZodOptional; + bypassTenantAudit: z.ZodOptional; + }, z.core.$strip>>], null>, z.ZodPromise>>>; + create: z.ZodFunction, z.ZodOptional; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + skipCache: z.ZodOptional; + traceContext: z.ZodOptional>; + tenantId: z.ZodOptional; + tenantIds: z.ZodOptional>; + timezone: z.ZodOptional; + preserveAudit: z.ZodOptional; + bypassTenantAudit: z.ZodOptional; + }, z.core.$strip>>], null>, z.ZodPromise>>; + update: z.ZodFunction, z.ZodRecord, z.ZodOptional; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + skipCache: z.ZodOptional; + traceContext: z.ZodOptional>; + tenantId: z.ZodOptional; + tenantIds: z.ZodOptional>; + timezone: z.ZodOptional; + preserveAudit: z.ZodOptional; + bypassTenantAudit: z.ZodOptional; + }, z.core.$strip>>], null>, z.ZodPromise>>>; + upsert: z.ZodFunction, z.ZodOptional>, z.ZodOptional; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + skipCache: z.ZodOptional; + traceContext: z.ZodOptional>; + tenantId: z.ZodOptional; + tenantIds: z.ZodOptional>; + timezone: z.ZodOptional; + preserveAudit: z.ZodOptional; + bypassTenantAudit: z.ZodOptional; + }, z.core.$strip>>], null>, z.ZodPromise>>; + delete: z.ZodFunction, z.ZodOptional; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + skipCache: z.ZodOptional; + traceContext: z.ZodOptional>; + tenantId: z.ZodOptional; + tenantIds: z.ZodOptional>; + timezone: z.ZodOptional; + preserveAudit: z.ZodOptional; + bypassTenantAudit: z.ZodOptional; + }, z.core.$strip>>], null>, z.ZodPromise>; + count: z.ZodFunction>>, z.ZodOptional; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + skipCache: z.ZodOptional; + traceContext: z.ZodOptional>; + tenantId: z.ZodOptional; + tenantIds: z.ZodOptional>; + timezone: z.ZodOptional; + preserveAudit: z.ZodOptional; + bypassTenantAudit: z.ZodOptional; + }, z.core.$strip>>], null>, z.ZodPromise>; + bulkCreate: z.ZodFunction>, z.ZodOptional; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + skipCache: z.ZodOptional; + traceContext: z.ZodOptional>; + tenantId: z.ZodOptional; + tenantIds: z.ZodOptional>; + timezone: z.ZodOptional; + preserveAudit: z.ZodOptional; + bypassTenantAudit: z.ZodOptional; + }, z.core.$strip>>], null>, z.ZodPromise>>>; + bulkUpdate: z.ZodFunction; + data: z.ZodRecord; + }, z.core.$strip>>, z.ZodOptional; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + skipCache: z.ZodOptional; + traceContext: z.ZodOptional>; + tenantId: z.ZodOptional; + tenantIds: z.ZodOptional>; + timezone: z.ZodOptional; + preserveAudit: z.ZodOptional; + bypassTenantAudit: z.ZodOptional; + }, z.core.$strip>>], null>, z.ZodPromise>>>; + bulkDelete: z.ZodFunction>, z.ZodOptional; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + skipCache: z.ZodOptional; + traceContext: z.ZodOptional>; + tenantId: z.ZodOptional; + tenantIds: z.ZodOptional>; + timezone: z.ZodOptional; + preserveAudit: z.ZodOptional; + bypassTenantAudit: z.ZodOptional; + }, z.core.$strip>>], null>, z.ZodPromise>; + updateMany: z.ZodOptional>, z.ZodRecord, z.ZodOptional; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + skipCache: z.ZodOptional; + traceContext: z.ZodOptional>; + tenantId: z.ZodOptional; + tenantIds: z.ZodOptional>; + timezone: z.ZodOptional; + preserveAudit: z.ZodOptional; + bypassTenantAudit: z.ZodOptional; + }, z.core.$strip>>], null>, z.ZodPromise>>; + deleteMany: z.ZodOptional>, z.ZodOptional; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + skipCache: z.ZodOptional; + traceContext: z.ZodOptional>; + tenantId: z.ZodOptional; + tenantIds: z.ZodOptional>; + timezone: z.ZodOptional; + preserveAudit: z.ZodOptional; + bypassTenantAudit: z.ZodOptional; + }, z.core.$strip>>], null>, z.ZodPromise>>; + beginTransaction: z.ZodFunction>; + }, z.core.$strip>>], null>, z.ZodPromise>; + commit: z.ZodFunction, z.ZodPromise>; + rollback: z.ZodFunction, z.ZodPromise>; + syncSchema: z.ZodFunction; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + skipCache: z.ZodOptional; + traceContext: z.ZodOptional>; + tenantId: z.ZodOptional; + tenantIds: z.ZodOptional>; + timezone: z.ZodOptional; + preserveAudit: z.ZodOptional; + bypassTenantAudit: z.ZodOptional; + }, z.core.$strip>>], null>, z.ZodPromise>; + syncSchemasBatch: z.ZodOptional>, z.ZodOptional; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + skipCache: z.ZodOptional; + traceContext: z.ZodOptional>; + tenantId: z.ZodOptional; + tenantIds: z.ZodOptional>; + timezone: z.ZodOptional; + preserveAudit: z.ZodOptional; + bypassTenantAudit: z.ZodOptional; + }, z.core.$strip>>], null>, z.ZodPromise>>; + dropTable: z.ZodFunction; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + skipCache: z.ZodOptional; + traceContext: z.ZodOptional>; + tenantId: z.ZodOptional; + tenantIds: z.ZodOptional>; + timezone: z.ZodOptional; + preserveAudit: z.ZodOptional; + bypassTenantAudit: z.ZodOptional; + }, z.core.$strip>>], null>, z.ZodPromise>; + explain: z.ZodOptional>, z.ZodOptional; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + skipCache: z.ZodOptional; + traceContext: z.ZodOptional>; + tenantId: z.ZodOptional; + tenantIds: z.ZodOptional>; + timezone: z.ZodOptional; + preserveAudit: z.ZodOptional; + bypassTenantAudit: z.ZodOptional; + }, z.core.$strip>>], null>, z.ZodPromise>>; +}, z.core.$strip>; + +// ── DriverOptions (type) ── +type DriverOptions = z.input; + +// ── DriverOptionsSchema (const) ── +declare const DriverOptionsSchema: z.ZodObject<{ + transaction: z.ZodOptional; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + skipCache: z.ZodOptional; + traceContext: z.ZodOptional>; + tenantId: z.ZodOptional; + tenantIds: z.ZodOptional>; + timezone: z.ZodOptional; + preserveAudit: z.ZodOptional; + bypassTenantAudit: z.ZodOptional; +}, z.core.$strip>; + +// ── DriverSslToggle (type) ── +type DriverSslToggle = z.input; + +// ── DriverSslToggleSchema (const) ── +declare const DriverSslToggleSchema: z.ZodBoolean; + +// ── DriverType (const) ── +declare const DriverType: z.ZodString; + +// ── DriverType (type) ── +type DriverType = z.input; + +// ── DriverVocabularyEntry (interface) ── +interface DriverVocabularyEntry { + /** + * The canonical id, for BOTH selection and config contract. `mongodb`, not + * `mongo` (#6345). + */ + readonly id: string; + /** + * Spellings an operator or author may SELECT this driver by, matched + * case-insensitively. Includes {@link id}. This is the face both boot hosts + * accept, and the ruling fixes it as the union of what they accepted before + * #6345 — never widened by accident. + */ + readonly aliases: readonly string[]; + /** + * Spellings that resolve this driver's CONFIG CONTRACT but are not offered as + * a selection, because no host has ever accepted them as one. Dropping them + * would silently un-validate a stored `driver: 'sqlite3'` datasource's config; + * promoting them to selections would widen a boot flag on no ruling. So they + * are kept, and kept apart. + */ + readonly contractOnlyAliases?: readonly string[]; + /** + * Can this driver be selected with no database URL at all? + * + * `true` for the three local engines (memory has no target to name; the two + * sqlite kinds fall back to `:memory:` / the unified default file). `false` + * for every kind whose target is a server or an endpoint — there is nothing + * truthful to guess, so both hosts refuse with a typed error naming what to + * set (#6345 fork 2). + */ + readonly hasLocalDefault: boolean; +} + +// ── DroppedFieldsEvent (type) ── +type DroppedFieldsEvent = z.input; + +// ── DroppedFieldsEventSchema (const) ── +declare const DroppedFieldsEventSchema: z.ZodObject<{ + object: z.ZodString; + fields: z.ZodArray; + reason: z.ZodEnum<{ + readonly: "readonly"; + readonly_when: "readonly_when"; + primary_key: "primary_key"; + }>; +}, z.core.$strip>; + +// ── ENGINE_UPDATE_UPSERT_REMOVED (const) ── +declare const ENGINE_UPDATE_UPSERT_REMOVED: string; + +// ── ESignatureConfig (type) ── +type ESignatureConfig = z.input; + +// ── ESignatureConfigParsed (type) ── +type ESignatureConfigParsed = z.infer; + +// ── ESignatureConfigSchema (const) ── +declare const ESignatureConfigSchema: z.ZodObject<{ + provider: z.ZodEnum<{ + custom: "custom"; + docusign: "docusign"; + "adobe-sign": "adobe-sign"; + hellosign: "hellosign"; + }>; + enabled: z.ZodDefault>; + signers: z.ZodArray>; + expirationDays: z.ZodOptional; + reminderDays: z.ZodOptional; +}, z.core.$strip>; + +// ── EffectiveApiMethods (interface) ── +interface EffectiveApiMethods { + mode: ApiMethodsMode; + /** Granted primitives (subset of {@link API_PRIMITIVES}). */ + primitives: ReadonlySet; + /** Full effective operation closure (primitives ∪ derived verbs). */ + operations: ReadonlySet; + /** The user-level export slot captured at resolve time. */ + userExportAllowed: boolean; +} + +// ── EnableLike (interface) ── +interface EnableLike { + apiEnabled?: boolean; + apiMethods?: readonly ApiMethod[] | readonly string[] | null; + searchable?: boolean; + trackHistory?: boolean; + [key: string]: unknown; +} + +// ── EngineAggregateOptions (type) ── +type EngineAggregateOptions = z.input; + +// ── EngineAggregateOptionsSchema (const) ── +declare const EngineAggregateOptionsSchema: z.ZodObject<{ + context: z.ZodOptional>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + where: z.ZodOptional, z.ZodType>]>>; + groupBy: z.ZodOptional>; + alias: z.ZodOptional; + }, z.core.$strip>]>>>; + aggregations: z.ZodOptional; + field: z.ZodOptional; + alias: z.ZodString; + distinct: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strip>>>; + having: z.ZodOptional>>; + timezone: z.ZodOptional; +}, z.core.$strip>; + +// ── EngineCountOptions (type) ── +type EngineCountOptions = z.input; + +// ── EngineCountOptionsSchema (const) ── +declare const EngineCountOptionsSchema: z.ZodObject<{ + context: z.ZodOptional>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + where: z.ZodOptional, z.ZodType>]>>; +}, z.core.$strip>; + +// ── EngineDeleteOptions (type) ── +type EngineDeleteOptions = z.input; + +// ── EngineDeleteOptionsSchema (const) ── +declare const EngineDeleteOptionsSchema: z.ZodObject<{ + context: z.ZodOptional>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + where: z.ZodOptional, z.ZodType>]>>; + multi: z.ZodOptional>; +}, z.core.$strip>; + +// ── EngineQueryOptions (type) ── +type EngineQueryOptions = z.input; + +// ── EngineQueryOptionsParsed (type) ── +type EngineQueryOptionsParsed = z.infer; + +// ── EngineQueryOptionsSchema (const) ── +declare const EngineQueryOptionsSchema: z.ZodObject<{ + context: z.ZodOptional>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + where: z.ZodOptional, z.ZodType>]>>; + fields: z.ZodOptional>; + orderBy: z.ZodOptional>; + }, z.core.$strict>>>; + limit: z.ZodOptional; + offset: z.ZodOptional; + top: z.ZodOptional; + cursor: z.ZodOptional; + search: z.ZodOptional>; + fuzzy: z.ZodDefault>; + operator: z.ZodDefault>>; + boost: z.ZodOptional>; + minScore: z.ZodOptional; + language: z.ZodOptional; + highlight: z.ZodDefault>; + }, z.core.$strip>]>>; + searchFields: z.ZodOptional>; + expand: z.ZodOptional>>>>; + distinct: z.ZodOptional; +}, z.core.$strip>; + +// ── EngineUpdateOptions (type) ── +type EngineUpdateOptions = z.input; + +// ── EngineUpdateOptionsSchema (const) ── +declare const EngineUpdateOptionsSchema: z.ZodObject<{ + context: z.ZodOptional>; + actor: z.ZodOptional>; + attributedUserId: z.ZodOptional>; + email: z.ZodOptional>; + tenantId: z.ZodOptional>; + timezone: z.ZodOptional>; + locale: z.ZodOptional>; + currency: z.ZodOptional>; + positions: z.ZodOptional>>; + principalKind: z.ZodOptional>>; + audience: z.ZodOptional>>; + posture: z.ZodOptional>>; + authGate: z.ZodOptional>>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>>; + performedBy: z.ZodOptional>>; + permissions: z.ZodOptional>>; + systemPermissions: z.ZodOptional>>; + tabPermissions: z.ZodOptional>>>; + org_user_ids: z.ZodOptional>>; + accessible_org_ids: z.ZodOptional>>; + rlsMembership: z.ZodOptional>>>; + isSystem: z.ZodOptional>; + flowRunId: z.ZodOptional>; + skipTriggers: z.ZodOptional>; + skipAutomations: z.ZodOptional>; + seedReplay: z.ZodOptional>; + skipStateMachine: z.ZodOptional>; + preserveAudit: z.ZodOptional>; + oauthScopes: z.ZodOptional>>; + accessToken: z.ZodOptional>; + transaction: z.ZodOptional>; + traceId: z.ZodOptional>; + }, z.core.$strip>>; + where: z.ZodOptional, z.ZodType>]>>; + upsert: z.ZodOptional; + multi: z.ZodOptional>; + returning: z.ZodOptional>; +}, z.core.$strip>; + +// ── EqualityOperatorSchema (const) ── +declare const EqualityOperatorSchema: z.ZodObject<{ + $eq: z.ZodOptional; + $ne: z.ZodOptional; +}, z.core.$strip>; + +// ── ExpressionBody (type) ── +type ExpressionBody = z.input; + +// ── ExpressionBodySchema (const) ── +declare const ExpressionBodySchema: z.ZodObject<{ + language: z.ZodLiteral<"expression">; + source: z.ZodString; +}, z.core.$strict>; + +// ── ExternalCatalog (type) ── +type ExternalCatalog = z.input; + +// ── ExternalCatalogParsed (type) ── +type ExternalCatalogParsed = z.infer; + +// ── ExternalCatalogSchema (const) ── +declare const ExternalCatalogSchema: z.ZodObject<{ + name: z.ZodString; + datasource: z.ZodString; + snapshotAt: z.ZodString; + dialect: z.ZodOptional; + tables: z.ZodArray; + remoteName: z.ZodString; + columns: z.ZodArray; + suggestedFieldType: z.ZodOptional; + }, z.core.$strip>>; + indexes: z.ZodOptional; + unique: z.ZodBoolean; + }, z.core.$strip>>>; + rowCountEstimate: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── ExternalColumn (type) ── +type ExternalColumn = z.input; + +// ── ExternalColumnParsed (type) ── +type ExternalColumnParsed = z.infer; + +// ── ExternalColumnSchema (const) ── +declare const ExternalColumnSchema: z.ZodObject<{ + name: z.ZodString; + sqlType: z.ZodString; + nullable: z.ZodBoolean; + primaryKey: z.ZodDefault; + suggestedFieldType: z.ZodOptional; +}, z.core.$strip>; + +// ── ExternalDatasourceSettings (type) ── +type ExternalDatasourceSettings = z.input; + +// ── ExternalDatasourceSettingsParsed (type) ── +type ExternalDatasourceSettingsParsed = z.infer; + +// ── ExternalDatasourceSettingsSchema (const) ── +declare const ExternalDatasourceSettingsSchema: z.ZodObject<{ + allowedSchemas: z.ZodOptional>; + allowWrites: z.ZodDefault; + validation: z.ZodDefault>; + checkOnBoot: z.ZodDefault; + checkIntervalMs: z.ZodOptional; + }, z.core.$strict>>; + credentialsRef: z.ZodOptional; + queryTimeoutMs: z.ZodDefault; +}, z.core.$strict>; + +// ── ExternalTable (type) ── +type ExternalTable = z.input; + +// ── ExternalTableParsed (type) ── +type ExternalTableParsed = z.infer; + +// ── ExternalTableSchema (const) ── +declare const ExternalTableSchema: z.ZodObject<{ + remoteSchema: z.ZodOptional; + remoteName: z.ZodString; + columns: z.ZodArray; + suggestedFieldType: z.ZodOptional; + }, z.core.$strip>>; + indexes: z.ZodOptional; + unique: z.ZodBoolean; + }, z.core.$strip>>>; + rowCountEstimate: z.ZodOptional; +}, z.core.$strip>; + +// ── FIELD_GROUP_KEY_PATTERN (const) ── +declare const FIELD_GROUP_KEY_PATTERN: RegExp; + +// ── FIELD_GROUP_SYSTEM_FIELDS (const) ── +declare const FIELD_GROUP_SYSTEM_FIELDS: ReadonlySet; + +// ── FIELD_KEY_GUIDANCE (const) ── +declare const FIELD_KEY_GUIDANCE: Readonly>; + +// ── FIELD_MASKING_PRESETS (const) ── +declare const FIELD_MASKING_PRESETS: readonly ["phone", "id_card", "bank_account", "email", "name"]; + +// ── FILE_REFERENCE_TYPES (const) ── +declare const FILE_REFERENCE_TYPES: ReadonlySet; + +// ── FILTER_ARRAY_LOGIC_KEYWORDS (const) ── +declare const FILTER_ARRAY_LOGIC_KEYWORDS: readonly ["and", "or"]; + +// ── FILTER_COMPARAND_BIGINT_EXACT_LIMIT (const) ── +declare const FILTER_COMPARAND_BIGINT_EXACT_LIMIT: bigint; + +// ── FILTER_COMPARAND_TYPE_CASES (const) ── +declare const FILTER_COMPARAND_TYPE_CASES: readonly ComparandTypeCase[]; + +// ── FILTER_COMPARAND_TYPE_ROWS (const) ── +declare const FILTER_COMPARAND_TYPE_ROWS: readonly ComparandTypeRow[]; + +// ── FILTER_LOGIC_CASES (const) ── +declare const FILTER_LOGIC_CASES: readonly FilterLogicCase[]; + +// ── FILTER_LOGIC_ROWS (const) ── +declare const FILTER_LOGIC_ROWS: readonly FilterLogicRow[]; + +// ── FILTER_OPERATORS (const) ── +declare const FILTER_OPERATORS: readonly ["$eq", "$ne", "$gt", "$gte", "$lt", "$lte", "$in", "$nin", "$between", "$contains", "$notContains", "$startsWith", "$endsWith", "$icontains", "$null", "$exists"]; + +// ── FILTER_SUBTREE_PROVENANCE (const) ── +declare const FILTER_SUBTREE_PROVENANCE: symbol; + +// ── FILTER_TEXT_CASES (const) ── +declare const FILTER_TEXT_CASES: readonly FilterTextCase[]; + +// ── FILTER_TEXT_ROWS (const) ── +declare const FILTER_TEXT_ROWS: readonly FilterTextRow[]; + +// ── FILTER_TOKEN_WRAPPED_RE (const) ── +declare const FILTER_TOKEN_WRAPPED_RE: RegExp; + +// ── FORMER_CREDENTIAL_ALIASES (const) ── +declare const FORMER_CREDENTIAL_ALIASES: readonly ["passwd", "pwd", "token", "jwt", "auth_token", "authtoken"]; + +// ── FORMULA_RETURN_TYPE_AS_FIELD_TYPE (const) ── +declare const FORMULA_RETURN_TYPE_AS_FIELD_TYPE: ReadonlyMap; + +// ── FeedFilterMode (const) ── +declare const FeedFilterMode: z.ZodEnum<{ + all: "all"; + comments_only: "comments_only"; + changes_only: "changes_only"; + tasks_only: "tasks_only"; +}>; + +// ── FeedFilterMode (type) ── +type FeedFilterMode = z.input; + +// ── FeedItemType (const) ── +declare const FeedItemType: z.ZodEnum<{ + file: "file"; + email: "email"; + system: "system"; + sharing: "sharing"; + task: "task"; + approval: "approval"; + event: "event"; + comment: "comment"; + note: "note"; + field_change: "field_change"; + call: "call"; + record_create: "record_create"; + record_delete: "record_delete"; +}>; + +// ── FeedItemType (type) ── +type FeedItemType = z.input; + +// ── Field (const) ── +declare const Field: { + text: (config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "text"; + }; + textarea: (config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "textarea"; + }; + number: (config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "number"; + }; + boolean: (config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "boolean"; + }; + date: (config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "date"; + }; + datetime: (config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "datetime"; + }; + time: (config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "time"; + }; + currency: (config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "currency"; + }; + percent: (config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "percent"; + }; + url: (config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "url"; + }; + email: (config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "email"; + }; + phone: (config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "phone"; + }; + image: (config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "image"; + }; + file: (config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "file"; + }; + avatar: (config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "avatar"; + }; + formula: (config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "formula"; + }; + summary: (config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "summary"; + }; + /** + * Auto-number — a record number the RUNTIME issues from its sequence. + * + * The builder injects `readonly: true` (#5628). `readonly` is a TWO-part + * contract (see `FieldSchema.readonly`): "never editable in forms" AND + * server-enforced on both write paths. #5503 closed the server half for + * `autonumber` by type ({@link RUNTIME_OWNED_FIELD_TYPES}), but the FORM half + * is keyed on the flag — so without it a renderer drew an editable "record + * number" box whose value the server was already guaranteed to discard: the + * user types a number, the create succeeds, and the record comes back + * carrying a different one. Declaring the flag the builder's output already + * behaves like is the shortest "declared = enforced" path. + * + * The injection is UNCONDITIONAL — it is applied after `config`, so it cannot + * be spread away — and `readonly: false` is a compile error at the authoring + * site rather than a silent coercion: an autonumber field is runtime-owned by + * construction, so "editable record number" is not a state the author can + * ask for. Restating `readonly: true` is allowed (it is merely redundant). + * A hand-written `{ type: 'autonumber' }` literal is unaffected — it is + * covered by the by-TYPE server enforcement, which never depended on the flag. + */ + autonumber: (config?: FieldInput & { + readonly?: true; + }) => { + readonly readonly: true; + readonly format?: string | undefined; + readonly options?: { + label: string; + value: string; + description?: string | undefined; + color?: string | undefined; + default?: boolean | undefined; + visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "autonumber"; + }; + markdown: (config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "markdown"; + }; + html: (config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "html"; + }; + password: (config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "password"; + }; + /** + * Secret field — reversible encrypted-at-rest value (DB password, API key, + * token). Encrypted on write to `sys_secret` via the registered + * ICryptoProvider; only an opaque ref is persisted on the row; masked on + * read. Distinct from `password` (one-way hash, owned by the auth subsystem). + */ + secret: (config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "secret"; + }; + /** + * Select field helper with backward-compatible API + * + * Automatically converts option values to lowercase to enforce naming conventions. + * + * @example Old API (array first) - auto-converts to lowercase + * Field.select(['High', 'Low'], { label: 'Priority' }) + * // Results in: [{ label: 'High', value: 'high' }, { label: 'Low', value: 'low' }] + * + * @example New API (config object) - enforces lowercase + * Field.select({ options: [{label: 'High', value: 'high'}], label: 'Priority' }) + * + * @example Multi-word values - converts to snake_case + * Field.select(['In Progress', 'Closed Won'], { label: 'Status' }) + * // Results in: [{ label: 'In Progress', value: 'in_progress' }, { label: 'Closed Won', value: 'closed_won' }] + */ + select: (optionsOrConfig: SelectOption[] | string[] | (FieldInput & { + options: SelectOption[] | string[]; + }), config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[]; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "select"; + }; + /** + * Lookup — a reference to another object's record. + * + * Generic over `config` (with a `const` type parameter) so literal values + * SURVIVE into the returned field definition. A plain `config: FieldInput` + * widens `multiple: true` to `boolean`, which erases exactly the fact + * `defineSeed` needs to know: a `multiple: true` lookup is seeded from an + * ARRAY of natural keys, a single-value one from a lone string + * (framework#3911). Widening is purely a type-level change — the returned + * object is identical at runtime. + */ + lookup: (reference: string, config?: C) => FieldInput & C & { + readonly type: "lookup"; + readonly reference: string; + }; + masterDetail: (reference: string, config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + reference: string; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "master_detail"; + }; + /** + * User field — a person picker. Semantic specialization of `lookup` with the + * target fixed to the `sys_user` system object: stored identically (FK string + * column → sys_user.id; `multiple: true` ⇒ JSON array) and resolved via the same + * $expand machinery. The distinct `user` type drives the Studio/AI field palette, + * the user-search picker, and `current_user` defaults — without re-implementing + * lookup storage. + * + * @example Single assignee + * Field.user({ label: 'Assignee' }) + * @example Collaborators / watchers (multi) + * Field.user({ label: 'Watchers', multiple: true }) + * @example Auto-fill the acting user on create + * Field.user({ label: 'Reporter', defaultValue: 'current_user' }) + */ + user: (config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + reference: string; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "user"; + }; + location: (config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "location"; + }; + address: (config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "address"; + }; + richtext: (config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "richtext"; + }; + code: (language?: string, config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + language: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "code"; + }; + color: (config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "color"; + }; + rating: (max?: number, config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + max: number; + readonly useGrouping?: boolean | undefined; + readonly maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "rating"; + }; + signature: (config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "signature"; + }; + slider: (config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "slider"; + }; + qrcode: (config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "qrcode"; + }; + json: (config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + readonly dimensions?: number | undefined; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "json"; + }; + vector: (dimensions: number, config?: FieldInput) => { + 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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly description?: string | undefined; + readonly storage?: { + notNull?: boolean | undefined; + } | undefined; + readonly required?: boolean | undefined; + readonly visibleWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly readonlyWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly _lock?: "none" | "no-overlay" | "no-delete" | "full" | undefined; + readonly _lockReason?: string | undefined; + readonly _lockSource?: "artifact" | "package" | "env-forced" | undefined; + readonly _lockDocsUrl?: string | undefined; + readonly _provenance?: "package" | "env-forced" | "org" | undefined; + readonly _packageId?: string | undefined; + readonly _packageVersion?: string | undefined; + readonly precision?: number | undefined; + readonly name?: string | undefined; + readonly lookupFilters?: { + field: string; + operator: "in" | "gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "notIn"; + value: any; + }[] | undefined; + readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined; + readonly expression?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + readonly autonumberFormat?: string | undefined; + readonly summaryOperations?: { + object: string; + field: string; + function: "min" | "max" | "count" | "sum" | "avg"; + relationshipField?: string | undefined; + filter?: FilterCondition | undefined; + } | undefined; + readonly reference?: string | undefined; + readonly label?: string | undefined; + readonly scale?: number | undefined; + readonly step?: number | undefined; + readonly displayField?: string | undefined; + readonly multiple?: boolean | undefined; + readonly accept?: string[] | undefined; + readonly requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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 maxSize?: number | undefined; + readonly referenceVia?: string | undefined; + readonly inlineEdit?: boolean | "grid" | "form" | undefined; + readonly inlineTitle?: string | undefined; + readonly inlineColumns?: { + name: string; + label?: string | undefined; + type?: "number" | "date" | "file" | "datetime" | "time" | "text" | "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: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredWhen?: string | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + readonly inlineAmountField?: string | undefined; + readonly relatedList?: boolean | "primary" | undefined; + readonly relatedListTitle?: string | undefined; + readonly relatedListColumns?: string[] | undefined; + readonly relatedListFilter?: 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 dependsOn?: (string | { + field: string; + param?: string | undefined; + })[] | undefined; + readonly allowCreate?: boolean | undefined; + readonly returnType?: "number" | "boolean" | "date" | "text" | undefined; + readonly language?: string | undefined; + readonly currencyConfig?: { + precision?: number | undefined; + currencyMode?: "fixed" | "dynamic" | undefined; + defaultCurrency?: string | undefined; + } | undefined; + dimensions: number; + readonly trackHistory?: boolean | undefined; + readonly group?: string | undefined; + readonly conditionalRequired?: undefined; + readonly widget?: string | undefined; + readonly internal?: boolean | undefined; + readonly requiredPermissions?: string[] | undefined; + readonly maskingRule?: "email" | "name" | "phone" | "id_card" | "bank_account" | { + keepHead: number; + keepTail: number; + } | undefined; + readonly ackPlaintextMasking?: boolean | undefined; + readonly system?: boolean | undefined; + readonly sortable?: boolean | undefined; + readonly inlineHelpText?: string | undefined; + readonly placeholder?: string | undefined; + readonly externalId?: boolean | undefined; + readonly type: "vector"; + }; +}; + +// ── Field (type) ── +type Field = z.input; + +// ── FieldGroupCollapse (type) ── +type FieldGroupCollapse = 'none' | 'expanded' | 'collapsed'; + +// ── FieldGroupSection (interface) ── +interface FieldGroupSection { + /** Group machine key; i18n anchor (`…objects.{obj}._sections.{key}.label`). Absent = ungrouped bucket. */ + key?: string; + /** Group display label (default text; i18n overrides at render time). */ + label?: string; + /** Optional icon name declared on the group. */ + icon?: string; + /** Optional description declared on the group. */ + description?: string; + /** Collapse behaviour; 'none' when the group declared nothing. */ + collapse: FieldGroupCollapse; + /** Section visibility predicate, passed through verbatim; absent = always visible. Never present on the ungrouped bucket. */ + visibleWhen?: FieldGroupVisibleWhen; + /** Member field NAMES in field-declaration order. Renderers resolve defs themselves. */ + fields: string[]; +} + +// ── FieldGroupVisibleWhen (type) ── +type FieldGroupVisibleWhen = string | { + readonly [key: string]: unknown; +}; + +// ── FieldInput (type) ── +type FieldInput = Omit, 'type'>; + +// ── FieldMaskingKeep (type) ── +type FieldMaskingKeep = z.input; + +// ── FieldMaskingKeepSchema (const) ── +declare const FieldMaskingKeepSchema: z.ZodObject<{ + keepHead: z.ZodNumber; + keepTail: z.ZodNumber; +}, z.core.$strict>; + +// ── FieldMaskingPreset (type) ── +type FieldMaskingPreset = (typeof FIELD_MASKING_PRESETS)[number]; + +// ── FieldMaskingRule (type) ── +type FieldMaskingRule = FieldMaskingPreset | { + keepHead: number; + keepTail: number; +}; + +// ── FieldMaskingRuleSchema (const) ── +declare const FieldMaskingRuleSchema: z.ZodUnion, z.ZodObject<{ + keepHead: z.ZodNumber; + keepTail: z.ZodNumber; +}, z.core.$strict>]>; + +// ── FieldNode (type) ── +type FieldNode = string; + +// ── FieldNodeSchema (const) ── +declare const FieldNodeSchema: z.ZodString; + +// ── FieldOperators (type) ── +type FieldOperators = z.input; + +// ── FieldOperatorsSchema (const) ── +declare const FieldOperatorsSchema: z.ZodObject<{ + $eq: z.ZodOptional; + $ne: z.ZodOptional; + $gt: z.ZodOptional]>>; + }, z.core.$strip>]>>; + $gte: z.ZodOptional]>>; + }, z.core.$strip>]>>; + $lt: z.ZodOptional]>>; + }, z.core.$strip>]>>; + $lte: z.ZodOptional]>>; + }, z.core.$strip>]>>; + $in: z.ZodOptional>; + $nin: z.ZodOptional>; + $between: z.ZodOptional, z.ZodUnion], null>>; + $contains: z.ZodOptional; + $notContains: z.ZodOptional; + $startsWith: z.ZodOptional; + $endsWith: z.ZodOptional; + $icontains: z.ZodOptional; + $like: z.ZodOptional; + $ilike: z.ZodOptional; + $null: z.ZodOptional; + $exists: z.ZodOptional; +}, z.core.$strip>; + +// ── FieldParsed (type) ── +type FieldParsed = z.infer; + +// ── FieldReference (type) ── +type FieldReference = z.input; + +// ── FieldReferenceSchema (const) ── +declare const FieldReferenceSchema: z.ZodObject<{ + $field: z.ZodString; + addDays: z.ZodOptional]>>; +}, z.core.$strip>; + +// ── FieldSchema (const) ── +declare const FieldSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + url: "url"; + email: "email"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + description: z.ZodOptional; + format: z.ZodOptional; + required: z.ZodDefault; + storage: z.ZodOptional; + }, z.core.$strict>>; + searchable: z.ZodDefault; + multiple: z.ZodDefault; + unique: z.ZodOptional, z.ZodLiteral<"organization">]>>; + defaultValue: z.ZodOptional; + maxLength: z.ZodOptional; + minLength: z.ZodOptional; + valueDomain: z.ZodOptional>; + rows: z.ZodOptional; + precision: z.ZodOptional; + scale: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + useGrouping: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + options: z.ZodOptional; + color: z.ZodOptional; + default: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + reference: z.ZodOptional; + referenceVia: z.ZodOptional; + deleteBehavior: z.ZodOptional>; + inlineEdit: z.ZodOptional]>>; + inlineTitle: z.ZodOptional; + inlineColumns: z.ZodOptional; + type: z.ZodOptional>; + width: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + prefix: z.ZodOptional; + step: z.ZodOptional; + reference: z.ZodOptional; + displayField: z.ZodOptional; + idField: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + defaultHidden: z.ZodOptional; + computed: z.ZodOptional; + expr: z.ZodOptional; + scale: z.ZodOptional; + autofill: z.ZodOptional; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + inlineAmountField: z.ZodOptional; + relatedList: z.ZodOptional]>>; + relatedListTitle: z.ZodOptional; + relatedListColumns: z.ZodOptional>; + relatedListFilter: z.ZodOptional>>; + displayField: z.ZodOptional; + descriptionField: z.ZodOptional; + lookupColumns: z.ZodOptional; + width: z.ZodOptional; + type: z.ZodOptional; + }, z.core.$strict>]>>>; + lookupPageSize: z.ZodOptional; + lookupFilters: z.ZodOptional; + value: z.ZodAny; + }, z.core.$strict>>>; + dependsOn: z.ZodOptional; + }, z.core.$strict>]>>>; + allowCreate: z.ZodOptional; + expression: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + returnType: z.ZodOptional>; + summaryOperations: z.ZodOptional; + relationshipField: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strict>>; + language: z.ZodOptional; + step: z.ZodOptional; + currencyConfig: z.ZodOptional; + currencyMode: z.ZodDefault>; + defaultCurrency: z.ZodDefault; + }, z.core.$strict>>; + dimensions: z.ZodOptional; + trackHistory: z.ZodOptional; + group: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + conditionalRequired: z.ZodOptional; + widget: z.ZodOptional; + hidden: z.ZodDefault; + internal: z.ZodOptional; + readonly: z.ZodDefault; + requiredPermissions: z.ZodOptional>; + maskingRule: z.ZodOptional, z.ZodObject<{ + keepHead: z.ZodNumber; + keepTail: z.ZodNumber; + }, z.core.$strict>]>>; + ackPlaintextMasking: z.ZodOptional; + system: z.ZodOptional; + sortable: z.ZodDefault>; + inlineHelpText: z.ZodOptional; + placeholder: z.ZodOptional; + autonumberFormat: z.ZodOptional; + externalId: z.ZodDefault; +}, z.core.$strict>; + +// ── FieldType (const) ── +declare const FieldType: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + url: "url"; + email: "email"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; +}>; + +// ── FieldType (type) ── +type FieldType = z.input; + +// ── FileLikeValue (type) ── +type FileLikeValue = z.input; + +// ── FileLikeValueSchema (const) ── +declare const FileLikeValueSchema: z.ZodUnion; + size: z.ZodOptional; + mimeType: z.ZodOptional; + alt: z.ZodOptional; + duration: z.ZodOptional; +}, z.core.$loose>]>; + +// ── FilePersistenceConfig (type) ── +type FilePersistenceConfig = z.input; + +// ── FilePersistenceConfigParsed (type) ── +type FilePersistenceConfigParsed = z.infer; + +// ── FilePersistenceConfigSchema (const) ── +declare const FilePersistenceConfigSchema: z.ZodObject<{ + type: z.ZodLiteral<"file">; + path: z.ZodOptional; + autoSaveIntervalMs: z.ZodDefault; + autoSaveInterval: z.ZodOptional; +}, z.core.$strict>; + +// ── FileReferenceIdValue (type) ── +type FileReferenceIdValue = z.input; + +// ── FileReferenceIdValueSchema (const) ── +declare const FileReferenceIdValueSchema: z.ZodString; + +// ── FileValue (type) ── +type FileValue = z.input; + +// ── FileValueSchema (const) ── +declare const FileValueSchema: z.ZodObject<{ + url: z.ZodString; + name: z.ZodOptional; + size: z.ZodOptional; + mimeType: z.ZodOptional; + alt: z.ZodOptional; + duration: z.ZodOptional; +}, z.core.$loose>; + +// ── Filter (type) ── +type Filter = { + [K in keyof T]?: T[K] | { + $eq?: T[K]; + $ne?: T[K]; + $gt?: T[K] extends number ? number : T[K] extends Date | string ? T[K] | string : never; + $gte?: T[K] extends number ? number : T[K] extends Date | string ? T[K] | string : never; + $lt?: T[K] extends number ? number : T[K] extends Date | string ? T[K] | string : never; + $lte?: T[K] extends number ? number : T[K] extends Date | string ? T[K] | string : never; + $in?: T[K][]; + $nin?: T[K][]; + $between?: T[K] extends number ? [number, number] : T[K] extends Date | string ? [T[K] | string, T[K] | string] : never; + $contains?: T[K] extends string ? string : never; + $notContains?: T[K] extends string ? string : never; + $startsWith?: T[K] extends string ? string : never; + $endsWith?: T[K] extends string ? string : never; + /** Case-insensitive containment, ASCII fold only — see {@link StringOperatorSchema}. */ + $icontains?: T[K] extends string ? string : never; + $null?: boolean; + $exists?: boolean; + } | (T[K] extends object ? Filter : never); +} & { + $and?: Filter[]; + $or?: Filter[]; + $not?: Filter; +}; + +// ── FilterArray (type) ── +type FilterArray = FilterArrayComparison | FilterArrayGroup | FilterArrayList; + +// ── FilterArrayComparison (type) ── +type FilterArrayComparison = [field: string, operator: FilterArrayOperator, value: unknown] | [field: string, operator: FilterArrayOperator]; + +// ── FilterArrayGroup (type) ── +type FilterArrayGroup = [ + logic: FilterArrayLogicKeyword, + first: FilterArray, + ...rest: FilterArray[] +]; + +// ── FilterArrayList (type) ── +type FilterArrayList = [first: FilterArray, ...rest: FilterArray[]]; + +// ── FilterArrayLogicKeyword (type) ── +type FilterArrayLogicKeyword = typeof FILTER_ARRAY_LOGIC_KEYWORDS[number]; + +// ── FilterArrayOperator (type) ── +type FilterArrayOperator = keyof typeof AST_OPERATOR_MAP; + +// ── FilterArraySchema (const) ── +declare const FilterArraySchema: z.ZodType; + +// ── FilterCondition (type) ── +type FilterCondition = { + [key: string]: any | z.infer | FilterCondition; +} & { + /** Logical AND - combines all conditions that must be true */ + $and?: FilterCondition[]; + /** Logical OR - at least one condition must be true */ + $or?: FilterCondition[]; + /** + * Logical NOT - negates the condition, **NULL-safely** (#5146). + * + * A row whose compared column is NULL does NOT satisfy the negated condition + * and IS returned. In SQL terms the operand is negated as + * `NOT (…) OR col IS NULL` rather than as a bare `NOT (…)`. + * + * See {@link FilterConditionSchema} for why this is part of the contract + * rather than each backend's own choice. + */ + $not?: FilterCondition; +}; + +// ── FilterConditionSchema (const) ── +declare const FilterConditionSchema: z.ZodType; + +// ── FilterLogicCase (interface) ── +interface FilterLogicCase { + /** Stable identifier, usable as a test name. */ + name: string; + filter: FilterCondition; + /** Ids of matching rows, ascending. */ + expected: string[]; + /** Why the case is here — surfaced in failure output. */ + note?: string; +} + +// ── FilterLogicRow (interface) ── +interface FilterLogicRow { + id: string; + /** 2x2 truth table over (a, b) — see {@link FILTER_LOGIC_ROWS}. */ + a: string; + b: string; + /** Constant across every row; a predicate on it never changes a result. */ + c: string; + /** + * [#5298] The NULL-bearing column — the fixture's only one, and the whole + * reason the null family could not be enrolled before it existed. + * + * Rows 1-2 carry a value (`v1`, `v2`), rows 3-4 are NULL. Harnesses MUST + * declare it nullable in their DDL / schema: a `NOT NULL` column, or a seed + * that substitutes `''` for `null`, turns every case below green for the + * wrong reason — the divergence these cases exist to catch is exactly what a + * row with no value does, so a fixture without one measures nothing. + * + * Deliberately a separate column rather than nulling part of `a`/`b`: the + * (a, b) truth table is what makes a wrongly-OR-ed pair of predicates show up + * as extra ids, and punching a hole in it would weaken every combinator case + * to pay for the null cases. + */ + d: string | null; + /** Record-scope columns, for the shapes read scopes are actually written in. */ + owner: string; + status: string; + parent_object: string; + parent_id: string; +} + +// ── FilterOperatorKey (type) ── +type FilterOperatorKey = typeof FILTER_OPERATORS[number]; + +// ── FilterSubtreeProvenance (type) ── +type FilterSubtreeProvenance = 'author' | 'policy'; + +// ── FilterTextCase (type) ── +type FilterTextCase = FilterTextRowsCase | FilterTextRejectionCase; + +// ── FilterTextRejectionCase (interface) ── +interface FilterTextRejectionCase extends FilterTextCaseBase { + readonly expectRejection: true; + /** + * The ADR-0112 error code the refusal must carry. A refusal outside the + * envelope reaches the client as a 500-shaped body for a 400-class mistake, + * which is the half of #5324 that the refusal itself does not fix. + */ + readonly code: 'INVALID_FILTER'; + /** + * Substrings the refusal message must contain, checked case-sensitively. + * + * Always includes the rejected spelling and, where one exists, the + * REPLACEMENT — a rejection that does not name what to write instead sends + * the author to the docs, and the whole point of `RETIRED_FILTER_OPERATORS` + * is that the error carries the prescription (AGENTS.md, Post-Task Checklist + * step 3). + */ + readonly mustMention: readonly string[]; +} + +// ── FilterTextRow (interface) ── +interface FilterTextRow { + id: string; + name: string; + /** A stored NUMBER — never a string, on any backend. */ + score: number; +} + +// ── FilterTextRowsCase (interface) ── +interface FilterTextRowsCase extends FilterTextCaseBase { + readonly expectRejection?: false; + /** Ids of matching rows, ascending. */ + readonly expected: readonly string[]; +} + +// ── FilterVerdict (type) ── +type FilterVerdict = 'true' | 'false' | 'clause'; + +// ── FilterVerdictHooks (interface) ── +interface FilterVerdictHooks { + /** + * The operand of `$and` / `$or`, before it is iterated. `driver-sql` and + * `driver-mongodb` refuse a non-array here rather than coercing it; a caller + * with no hook gets `'clause'` for the same shape. + */ + assertNodeList?: (value: unknown, key: string, path: string) => void; + /** + * One element of a `$and` / `$or` list, or the operand of `$not`, before it + * is reduced. This is the gate that gives "this group reduced to empty" + * exactly one cause (#5239): without it a `Date` — an object that enumerates + * to nothing — would read as the empty conjunction, i.e. TRUE. + */ + assertNode?: (value: unknown, path: string) => void; + /** + * The verdict of a key that is NOT one of the three declared combinators. + * Defaults to `'clause'`: a field key always contributes a predicate. + * + * Backends override it to refuse (an unknown `$`-prefixed combinator, an + * empty field constraint, an `undefined` comparand) or to classify + * (`driver-mongodb`'s query-level keys carry no predicate, so they answer + * `'true'` and the verdict cannot disagree with the emitter that skips them). + */ + classifyKey?: (key: string, value: unknown, path: string) => FilterVerdict; +} + +// ── FilterVerdictOptions (interface) ── +interface FilterVerdictOptions extends FilterVerdictHooks { + /** Prefix for the paths handed to the hooks. Defaults to `''`. */ + path?: string; +} + +// ── FormatValidation (type) ── +type FormatValidation = z.input; + +// ── FormatValidationParsed (type) ── +type FormatValidationParsed = z.infer; + +// ── FormatValidationSchema (const) ── +declare const FormatValidationSchema: z.ZodObject<{ + type: z.ZodLiteral<"format">; + field: z.ZodString; + regex: z.ZodOptional; + format: z.ZodOptional>; + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + active: z.ZodDefault; + events: z.ZodDefault>>; + priority: z.ZodDefault; + tags: z.ZodOptional>; + severity: z.ZodDefault>; + message: z.ZodString; +}, z.core.$strict>; + +// ── FullTextSearch (type) ── +type FullTextSearch = z.input; + +// ── FullTextSearchParsed (type) ── +type FullTextSearchParsed = z.infer; + +// ── FullTextSearchSchema (const) ── +declare const FullTextSearchSchema: z.ZodObject<{ + query: z.ZodString; + fields: z.ZodOptional>; + fuzzy: z.ZodDefault>; + operator: z.ZodDefault>>; + boost: z.ZodOptional>; + minScore: z.ZodOptional; + language: z.ZodOptional; + highlight: z.ZodDefault>; +}, z.core.$strip>; + +// ── GroupByNode (type) ── +type GroupByNode = z.input; + +// ── GroupByNodeSchema (const) ── +declare const GroupByNodeSchema: z.ZodUnion>; + alias: z.ZodOptional; +}, z.core.$strip>]>; + +// ── Hook (type) ── +type Hook = z.input; + +// ── HookBody (type) ── +type HookBody = z.input; + +// ── HookBodyCapability (const) ── +declare const HookBodyCapability: z.ZodEnum<{ + "crypto.uuid": "crypto.uuid"; + "api.read": "api.read"; + "api.write": "api.write"; + "api.transaction": "api.transaction"; + log: "log"; +}>; + +// ── HookBodyCapability (type) ── +type HookBodyCapability = z.input; + +// ── HookBodyParsed (type) ── +type HookBodyParsed = z.infer; + +// ── HookBodySchema (const) ── +declare const HookBodySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ + language: z.ZodLiteral<"expression">; + source: z.ZodString; +}, z.core.$strict>, z.ZodObject<{ + language: z.ZodLiteral<"js">; + source: z.ZodString; + capabilities: z.ZodDefault>>; + timeoutMs: z.ZodOptional; + memoryMb: z.ZodOptional; +}, z.core.$strict>], "language">; + +// ── HookContext (type) ── +type HookContext = z.input; + +// ── HookContextSchema (const) ── +declare const HookContextSchema: z.ZodObject<{ + id: z.ZodOptional; + object: z.ZodString; + event: z.ZodEnum<{ + beforeInsert: "beforeInsert"; + afterInsert: "afterInsert"; + afterUpdate: "afterUpdate"; + beforeUpdate: "beforeUpdate"; + beforeDelete: "beforeDelete"; + afterDelete: "afterDelete"; + beforeFind: "beforeFind"; + afterFind: "afterFind"; + }>; + input: z.ZodRecord; + result: z.ZodOptional; + previous: z.ZodOptional>; + submitted: z.ZodOptional>; + dispatch: z.ZodOptional; + index: z.ZodNumber; + scope: z.ZodRecord; + }, z.core.$strip>>; + session: z.ZodOptional; + actor: z.ZodOptional; + organizationId: z.ZodOptional; + accessToken: z.ZodOptional; + isSystem: z.ZodOptional; + skipTriggers: z.ZodOptional; + skipAutomations: z.ZodOptional; + positions: z.ZodOptional>; + preserveAudit: z.ZodOptional; + roles: z.ZodOptional; + }, z.core.$strip>>; + provenance: z.ZodOptional; + attributedUserId: z.ZodOptional; + performedByClientId: z.ZodOptional; + }, z.core.$strip>>; + referentialFieldClear: z.ZodOptional; + transaction: z.ZodOptional; + ql: z.ZodUnknown; + api: z.ZodOptional>>; + user: z.ZodOptional; + name: z.ZodOptional; + email: z.ZodOptional; + organizationId: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── HookDispatch (type) ── +type HookDispatch = NonNullable; + +// ── HookEvent (const) ── +declare const HookEvent: z.ZodEnum<{ + beforeInsert: "beforeInsert"; + afterInsert: "afterInsert"; + afterUpdate: "afterUpdate"; + beforeUpdate: "beforeUpdate"; + beforeDelete: "beforeDelete"; + afterDelete: "afterDelete"; + beforeFind: "beforeFind"; + afterFind: "afterFind"; +}>; + +// ── HookEventType (type) ── +type HookEventType = z.input; + +// ── HookParsed (type) ── +type HookParsed = z.infer; + +// ── HookSchema (const) ── +declare const HookSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + object: z.ZodUnion]>; + events: z.ZodArray>; + handler: z.ZodOptional any, (...args: any[]) => any>]>>; + body: z.ZodOptional; + source: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + language: z.ZodLiteral<"js">; + source: z.ZodString; + capabilities: z.ZodDefault>>; + timeoutMs: z.ZodOptional; + memoryMb: z.ZodOptional; + }, z.core.$strict>], "language">>; + priority: z.ZodDefault; + async: z.ZodDefault; + condition: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + description: z.ZodOptional; + retryPolicy: z.ZodOptional; + backoffMs: z.ZodDefault; + }, z.core.$strict>>; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + onError: z.ZodDefault>; + runAs: z.ZodDefault>; +}, z.core.$strict>; + +// ── IMPORT_BOOLEAN_FALSE_TOKENS (const) ── +declare const IMPORT_BOOLEAN_FALSE_TOKENS: ReadonlySet; + +// ── IMPORT_BOOLEAN_TRUE_TOKENS (const) ── +declare const IMPORT_BOOLEAN_TRUE_TOKENS: ReadonlySet; + +// ── IMPORT_REFERENCE_TYPES (const) ── +declare const IMPORT_REFERENCE_TYPES: ReadonlySet; + +// ── INLINE_CREDENTIAL_REFUSED (const) ── +declare const INLINE_CREDENTIAL_REFUSED: (key: string) => string; + +// ── INSTANT_TYPES (const) ── +declare const INSTANT_TYPES: ReadonlySet; + +// ── ImportFieldMapping (type) ── +type ImportFieldMapping = z.input; + +// ── ImportFieldMappingParsed (type) ── +type ImportFieldMappingParsed = z.infer; + +// ── ImportFieldMappingSchema (const) ── +declare const ImportFieldMappingSchema: z.ZodObject<{ + source: z.ZodUnion]>; + target: z.ZodUnion]>; + transform: z.ZodDefault>; + params: z.ZodOptional; + valueMap: z.ZodOptional>; + separator: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── IndexSchema (const) ── +declare const IndexSchema: z.ZodObject<{ + name: z.ZodOptional; + fields: z.ZodArray; + unique: z.ZodDefault, z.ZodLiteral<"organization">]>>>; + type: z.ZodOptional; + partial: z.ZodOptional; +}, z.core.$strict>; + +// ── InjectedColumnProvenance (type) ── +type InjectedColumnProvenance = 'author' | 'injected-provisioned' | 'injected-unprovisioned' | 'absent'; + +// ── InjectedSystemColumnPlan (interface) ── +interface InjectedSystemColumnPlan { + /** `organization_id` — the tenant scope anchor. */ + tenant: boolean; + /** The {@link AUDIT_PROVENANCE_FIELDS} family. */ + audit: boolean; + /** `owner_id` — a per-record human owner. */ + owner: boolean; + /** `owning_business_unit_id` — [ADR-0117 D1] the org-unit ownership tier. */ + owningBusinessUnit: boolean; + /** + * Every column addressable on this object without being authored — the + * columns the flags above select, plus the driver-provisioned primary key. + * + * Deliberately independent of what the object DOES declare: a declared + * `owner_id` is the author's field and the registry lets it win, but the + * column exists either way, so a consumer asking "is this name addressable" + * gets the same answer. Consumers that need "authored vs injected" compare + * against the object's own `fields`. + */ + names: ReadonlySet; +} + +// ── InlineGridColumn (type) ── +type InlineGridColumn = z.input; + +// ── InlineGridColumnParsed (type) ── +type InlineGridColumnParsed = z.infer; + +// ── InlineGridColumnSchema (const) ── +declare const InlineGridColumnSchema: z.ZodObject<{ + name: z.ZodString; + label: z.ZodOptional; + type: z.ZodOptional>; + width: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + prefix: z.ZodOptional; + step: z.ZodOptional; + reference: z.ZodOptional; + displayField: z.ZodOptional; + idField: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + defaultHidden: z.ZodOptional; + computed: z.ZodOptional; + expr: z.ZodOptional; + scale: z.ZodOptional; + autofill: z.ZodOptional; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; +}, z.core.$strict>; + +// ── InstantValue (type) ── +type InstantValue = z.input; + +// ── InstantValueSchema (const) ── +declare const InstantValueSchema: z.ZodString; + +// ── JSONValidation (type) ── +type JSONValidation = z.input; + +// ── JSONValidationParsed (type) ── +type JSONValidationParsed = z.infer; + +// ── JSONValidationSchema (const) ── +declare const JSONValidationSchema: z.ZodObject<{ + type: z.ZodLiteral<"json_schema">; + field: z.ZodString; + schema: z.ZodRecord; + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + active: z.ZodDefault; + events: z.ZodDefault>>; + priority: z.ZodDefault; + tags: z.ZodOptional>; + severity: z.ZodDefault>; + message: z.ZodString; +}, z.core.$strict>; + +// ── LEGACY_API_METHODS (const) ── +declare const LEGACY_API_METHODS: readonly ["upsert", "aggregate", "history", "search", "restore", "purge", "import", "export"]; + +// ── LEGACY_API_METHOD_GUIDANCE (const) ── +declare const LEGACY_API_METHOD_GUIDANCE: Record; + +// ── LIFECYCLE_DURATION_REGEX (const) ── +declare const LIFECYCLE_DURATION_REGEX: RegExp; + +// ── LOGICAL_OPERATORS (const) ── +declare const LOGICAL_OPERATORS: readonly ["$and", "$or", "$not"]; + +// ── LegacyApiMethod (type) ── +type LegacyApiMethod = (typeof LEGACY_API_METHODS)[number]; + +// ── Lifecycle (type) ── +type Lifecycle = z.input; + +// ── LifecycleClass (type) ── +type LifecycleClass = z.input; + +// ── LifecycleClassSchema (const) ── +declare const LifecycleClassSchema: z.ZodEnum<{ + record: "record"; + audit: "audit"; + telemetry: "telemetry"; + transient: "transient"; + event: "event"; +}>; + +// ── LifecycleSchema (const) ── +declare const LifecycleSchema: z.ZodObject<{ + class: z.ZodEnum<{ + record: "record"; + audit: "audit"; + telemetry: "telemetry"; + transient: "transient"; + event: "event"; + }>; + retention: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + ttl: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + storage: z.ZodOptional; + shards: z.ZodNumber; + unit: z.ZodEnum<{ + month: "month"; + day: "day"; + week: "week"; + }>; + }, z.core.$strict>>; + archive: z.ZodOptional; + }, z.core.$strict>>; + reclaim: z.ZodOptional; +}, z.core.$strict>; + +// ── LiteralDefaultValueVerdict (interface) ── +interface LiteralDefaultValueVerdict { + ok: boolean; + /** + * The ACTIONABLE issue message from the value contract — the "why" a refusal + * carries verbatim. Selected by {@link actionableValueIssueMessage}, not read + * positionally; the field's name, type and meaning are what they always were. + */ + detail?: string; +} + +// ── LocalStoragePersistenceConfig (type) ── +type LocalStoragePersistenceConfig = z.input; + +// ── LocalStoragePersistenceConfigSchema (const) ── +declare const LocalStoragePersistenceConfigSchema: z.ZodObject<{ + type: z.ZodLiteral<"local">; + key: z.ZodOptional; +}, z.core.$strict>; + +// ── LocationCoordinates (type) ── +type LocationCoordinates = z.input; + +// ── LocationCoordinatesSchema (const) ── +declare const LocationCoordinatesSchema: z.ZodObject<{ + latitude: z.ZodNumber; + longitude: z.ZodNumber; + altitude: z.ZodOptional; + accuracy: z.ZodOptional; +}, z.core.$strip>; + +// ── LocationValue (type) ── +type LocationValue = z.input; + +// ── LocationValueSchema (const) ── +declare const LocationValueSchema: z.ZodObject<{ + lat: z.ZodNumber; + lng: z.ZodNumber; + altitude: z.ZodOptional; + accuracy: z.ZodOptional; +}, z.core.$strict>; + +// ── LogicalOperatorKey (type) ── +type LogicalOperatorKey = typeof LOGICAL_OPERATORS[number]; + +// ── MANAGED_WRITE_VERB_AFFORDANCE (const) ── +declare const MANAGED_WRITE_VERB_AFFORDANCE: Readonly>; + +// ── MAX_BULK_PER_ROW_HOOK_ROWS (const) ── +declare const MAX_BULK_PER_ROW_HOOK_ROWS = 10000; + +// ── MEASURE_FIELD_TYPES (const) ── +declare const MEASURE_FIELD_TYPES: ReadonlySet; + +// ── MONGO_OPTIONS_CREDENTIAL_PATHS (const) ── +declare const MONGO_OPTIONS_CREDENTIAL_PATHS: readonly (readonly string[])[]; + +// ── MULTI_CAPABLE_TYPES (const) ── +declare const MULTI_CAPABLE_TYPES: ReadonlySet; + +// ── MULTI_OPTION_TYPES (const) ── +declare const MULTI_OPTION_TYPES: ReadonlySet; + +// ── ManagedApiMethodConflict (interface) ── +interface ManagedApiMethodConflict { + /** The offending verb, exactly as declared in `enable.apiMethods`. */ + verb: string; + /** The {@link CrudAffordances} flag that verb needs and does not have. */ + needs: 'create' | 'edit' | 'delete'; + /** Index of the offending entry within the declared `enable.apiMethods` array. */ + index: number; +} + +// ── Mapping (type) ── +type Mapping = z.input; + +// ── MappingParsed (type) ── +type MappingParsed = z.infer; + +// ── MappingSchema (const) ── +declare const MappingSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + sourceFormat: z.ZodDefault>; + targetObject: z.ZodString; + fieldMapping: z.ZodArray]>; + target: z.ZodUnion]>; + transform: z.ZodDefault>; + params: z.ZodOptional; + valueMap: z.ZodOptional>; + separator: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + mode: z.ZodDefault>; + upsertKey: z.ZodOptional>; +}, z.core.$strict>; + +// ── MemoryConfig (type) ── +type MemoryConfig = z.input; + +// ── MemoryConfigParsed (type) ── +type MemoryConfigParsed = z.infer; + +// ── MemoryConfigSchema (const) ── +declare const MemoryConfigSchema: z.ZodObject<{ + initialData: z.ZodOptional>>>; + strictMode: z.ZodDefault; + persistence: z.ZodDefault, z.ZodObject<{ + type: z.ZodLiteral<"file">; + path: z.ZodOptional; + autoSaveIntervalMs: z.ZodDefault; + autoSaveInterval: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + type: z.ZodLiteral<"local">; + key: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + type: z.ZodLiteral<"auto">; + path: z.ZodOptional; + autoSaveIntervalMs: z.ZodOptional; + autoSaveInterval: z.ZodOptional; + key: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + adapter: z.ZodObject<{ + load: z.ZodFunction; + save: z.ZodFunction; + flush: z.ZodFunction; + }, z.core.$strict>; + }, z.core.$strict>]>, z.ZodLiteral]>>; +}, z.core.$strict>; + +// ── MemoryDriverSpec (const) ── +declare const MemoryDriverSpec: { + id: string; + label: string; + description: string; + icon: string; + readonly configSchema: Record; +}; + +// ── MemoryPersistenceConfig (type) ── +type MemoryPersistenceConfig = z.input; + +// ── MemoryPersistenceConfigParsed (type) ── +type MemoryPersistenceConfigParsed = z.infer; + +// ── MemoryPersistenceConfigSchema (const) ── +declare const MemoryPersistenceConfigSchema: z.ZodUnion, z.ZodObject<{ + type: z.ZodLiteral<"file">; + path: z.ZodOptional; + autoSaveIntervalMs: z.ZodDefault; + autoSaveInterval: z.ZodOptional; +}, z.core.$strict>, z.ZodObject<{ + type: z.ZodLiteral<"local">; + key: z.ZodOptional; +}, z.core.$strict>, z.ZodObject<{ + type: z.ZodLiteral<"auto">; + path: z.ZodOptional; + autoSaveIntervalMs: z.ZodOptional; + autoSaveInterval: z.ZodOptional; + key: z.ZodOptional; +}, z.core.$strict>, z.ZodObject<{ + adapter: z.ZodObject<{ + load: z.ZodFunction; + save: z.ZodFunction; + flush: z.ZodFunction; + }, z.core.$strict>; +}, z.core.$strict>]>; + +// ── Metric (type) ── +type Metric = z.input; + +// ── MetricSchema (const) ── +declare const MetricSchema: z.ZodObject<{ + name: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + type: z.ZodEnum<{ + string: "string"; + number: "number"; + boolean: "boolean"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_distinct: "count_distinct"; + }>; + sql: z.ZodString; + format: z.ZodOptional; +}, z.core.$strict>; + +// ── MongoConfig (type) ── +type MongoConfig = z.input; + +// ── MongoConfigParsed (type) ── +type MongoConfigParsed = z.infer; + +// ── MongoConfigSchema (const) ── +declare const MongoConfigSchema: z.ZodObject<{ + url: z.ZodOptional; + database: z.ZodOptional; + host: z.ZodDefault; + port: z.ZodDefault; + username: z.ZodOptional; + password: z.ZodOptional; + authSource: z.ZodOptional; + options: z.ZodOptional>; +}, z.core.$strict>; + +// ── MongoDriverSpec (const) ── +declare const MongoDriverSpec: { + id: string; + label: string; + description: string; + icon: string; + readonly configSchema: Record; +}; + +// ── MysqlConfig (type) ── +type MysqlConfig = z.input; + +// ── MysqlConfigParsed (type) ── +type MysqlConfigParsed = z.infer; + +// ── MysqlConfigSchema (const) ── +declare const MysqlConfigSchema: z.ZodObject<{ + url: z.ZodOptional; + host: z.ZodDefault; + port: z.ZodDefault; + database: z.ZodOptional; + username: z.ZodOptional; + password: z.ZodOptional; + ssl: z.ZodOptional; + autoMigrate: z.ZodOptional>; +}, z.core.$strict>; + +// ── NON_TEXT_STORED_VALUE_TYPES (const) ── +declare const NON_TEXT_STORED_VALUE_TYPES: ReadonlySet; + +// ── NOW_DEFAULT_LEGAL_TYPES (const) ── +declare const NOW_DEFAULT_LEGAL_TYPES: ReadonlySet; + +// ── NUMERIC_COLUMN_PRECISION (const) ── +declare const NUMERIC_COLUMN_PRECISION = 65; + +// ── NUMERIC_COLUMN_REPRESENTATION (const) ── +declare const NUMERIC_COLUMN_REPRESENTATION: Readonly>; + +// ── NUMERIC_COLUMN_SCALE (const) ── +declare const NUMERIC_COLUMN_SCALE = 30; + +// ── NUMERIC_VALUE_TYPES (const) ── +declare const NUMERIC_VALUE_TYPES: ReadonlySet; + +// ── NoSQLDataTypeMapping (type) ── +type NoSQLDataTypeMapping = z.input; + +// ── NoSQLDataTypeMappingSchema (const) ── +declare const NoSQLDataTypeMappingSchema: z.ZodObject<{ + text: z.ZodString; + number: z.ZodString; + boolean: z.ZodString; + date: z.ZodString; + datetime: z.ZodString; + json: z.ZodOptional; + uuid: z.ZodOptional; + binary: z.ZodOptional; + array: z.ZodOptional; + objectId: z.ZodOptional; + geopoint: z.ZodOptional; +}, z.core.$strip>; + +// ── NoSQLDatabaseType (type) ── +type NoSQLDatabaseType = z.input; + +// ── NoSQLDatabaseTypeSchema (const) ── +declare const NoSQLDatabaseTypeSchema: z.ZodEnum<{ + mongodb: "mongodb"; + redis: "redis"; + couchdb: "couchdb"; + dynamodb: "dynamodb"; + cassandra: "cassandra"; + elasticsearch: "elasticsearch"; + neo4j: "neo4j"; + orientdb: "orientdb"; +}>; + +// ── NoSQLDriverConfig (type) ── +type NoSQLDriverConfig = z.input; + +// ── NoSQLDriverConfigParsed (type) ── +type NoSQLDriverConfigParsed = z.infer; + +// ── NoSQLDriverConfigSchema (const) ── +declare const NoSQLDriverConfigSchema: z.ZodObject<{ + name: z.ZodString; + capabilities: z.ZodObject<{ + queryDateGranularity: z.ZodOptional, z.ZodBoolean>>; + autonumber: z.ZodOptional; + batchSchemaSync: z.ZodOptional; + create: z.ZodOptional; + read: z.ZodOptional; + update: z.ZodOptional; + delete: z.ZodOptional; + bulkCreate: z.ZodOptional; + bulkUpdate: z.ZodOptional; + bulkDelete: z.ZodOptional; + transactions: z.ZodOptional; + savepoints: z.ZodOptional; + isolationLevels: z.ZodOptional; + queryFilters: z.ZodOptional; + querySorting: z.ZodOptional; + queryPagination: z.ZodOptional; + queryAggregations: z.ZodOptional; + queryWindowFunctions: z.ZodOptional; + querySubqueries: z.ZodOptional; + queryCTE: z.ZodOptional; + joins: z.ZodOptional; + fullTextSearch: z.ZodOptional; + jsonQuery: z.ZodOptional; + geospatialQuery: z.ZodOptional; + streaming: z.ZodOptional; + jsonFields: z.ZodOptional; + arrayFields: z.ZodOptional; + vectorSearch: z.ZodOptional; + schemaSync: z.ZodOptional; + migrations: z.ZodOptional; + indexes: z.ZodOptional; + connectionPooling: z.ZodOptional; + preparedStatements: z.ZodOptional; + queryCache: z.ZodOptional; + }, z.core.$strip>; + connectionString: z.ZodOptional; + poolConfig: z.ZodOptional; + max: z.ZodDefault; + idleTimeoutMillis: z.ZodDefault; + connectionTimeoutMillis: z.ZodDefault; + }, z.core.$strip>>; + type: z.ZodLiteral<"nosql">; + databaseType: z.ZodEnum<{ + mongodb: "mongodb"; + redis: "redis"; + couchdb: "couchdb"; + dynamodb: "dynamodb"; + cassandra: "cassandra"; + elasticsearch: "elasticsearch"; + neo4j: "neo4j"; + orientdb: "orientdb"; + }>; + dataTypeMapping: z.ZodObject<{ + text: z.ZodString; + number: z.ZodString; + boolean: z.ZodString; + date: z.ZodString; + datetime: z.ZodString; + json: z.ZodOptional; + uuid: z.ZodOptional; + binary: z.ZodOptional; + array: z.ZodOptional; + objectId: z.ZodOptional; + geopoint: z.ZodOptional; + }, z.core.$strip>; + consistency: z.ZodOptional>; + replication: z.ZodOptional; + replicaSetName: z.ZodOptional; + replicas: z.ZodOptional; + readPreference: z.ZodOptional>; + writeConcern: z.ZodOptional>; + }, z.core.$strip>>; + sharding: z.ZodOptional; + shardKey: z.ZodOptional; + shardingStrategy: z.ZodOptional>; + numShards: z.ZodOptional; + }, z.core.$strip>>; + schemaValidation: z.ZodOptional; + validationLevel: z.ZodOptional>; + validationAction: z.ZodOptional>; + jsonSchema: z.ZodOptional>; + }, z.core.$strip>>; + region: z.ZodOptional; + accessKeyId: z.ZodOptional; + secretAccessKey: z.ZodOptional; + ttlField: z.ZodOptional; + maxDocumentSize: z.ZodOptional; + collectionPrefix: z.ZodOptional; +}, z.core.$strip>; + +// ── NoSQLIndex (type) ── +type NoSQLIndex = z.input; + +// ── NoSQLIndexParsed (type) ── +type NoSQLIndexParsed = z.infer; + +// ── NoSQLIndexSchema (const) ── +declare const NoSQLIndexSchema: z.ZodObject<{ + name: z.ZodString; + type: z.ZodEnum<{ + text: "text"; + unique: "unique"; + single: "single"; + ttl: "ttl"; + compound: "compound"; + geospatial: "geospatial"; + hashed: "hashed"; + sparse: "sparse"; + }>; + fields: z.ZodArray>; + }, z.core.$strip>>; + unique: z.ZodDefault; + sparse: z.ZodDefault; + expireAfterSeconds: z.ZodOptional; + partialFilterExpression: z.ZodOptional>; + background: z.ZodDefault; +}, z.core.$strip>; + +// ── NoSQLIndexType (type) ── +type NoSQLIndexType = z.input; + +// ── NoSQLIndexTypeSchema (const) ── +declare const NoSQLIndexTypeSchema: z.ZodEnum<{ + text: "text"; + unique: "unique"; + single: "single"; + ttl: "ttl"; + compound: "compound"; + geospatial: "geospatial"; + hashed: "hashed"; + sparse: "sparse"; +}>; + +// ── NoSQLOperationType (type) ── +type NoSQLOperationType = z.input; + +// ── NoSQLOperationTypeSchema (const) ── +declare const NoSQLOperationTypeSchema: z.ZodEnum<{ + find: "find"; + delete: "delete"; + count: "count"; + aggregate: "aggregate"; + insert: "insert"; + update: "update"; + distinct: "distinct"; + findOne: "findOne"; + mapReduce: "mapReduce"; + createIndex: "createIndex"; + dropIndex: "dropIndex"; +}>; + +// ── NoSQLQueryOptions (type) ── +type NoSQLQueryOptions = z.input; + +// ── NoSQLQueryOptionsSchema (const) ── +declare const NoSQLQueryOptionsSchema: z.ZodObject<{ + consistency: z.ZodOptional>; + readFromSecondary: z.ZodOptional; + projection: z.ZodOptional, z.ZodLiteral<1>]>>>; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + useCursor: z.ZodOptional; + batchSize: z.ZodOptional; + profile: z.ZodOptional; + hint: z.ZodOptional; +}, z.core.$strip>; + +// ── NoSQLTransactionOptions (type) ── +type NoSQLTransactionOptions = z.input; + +// ── NoSQLTransactionOptionsSchema (const) ── +declare const NoSQLTransactionOptionsSchema: z.ZodObject<{ + readConcern: z.ZodOptional>; + writeConcern: z.ZodOptional>; + readPreference: z.ZodOptional>; + maxCommitTimeMS: z.ZodOptional; +}, z.core.$strip>; + +// ── NormalizedFilter (type) ── +type NormalizedFilter = { + /** All conditions must hold. Each entry is a field condition or a nested group. */ + $and?: Array | NormalizedFilter>; + /** At least one condition must hold. */ + $or?: Array | NormalizedFilter>; + /** Negated condition. */ + $not?: Record | NormalizedFilter; +}; + +// ── NormalizedFilterSchema (const) ── +declare const NormalizedFilterSchema: z.ZodType; + +// ── NumericColumnRepresentation (type) ── +type NumericColumnRepresentation = { + readonly kind: 'integer'; +} | { + readonly kind: 'exact'; + readonly precision: number; + readonly scale: number; +}; + +// ── OBJECT_KEY_GUIDANCE (const) ── +declare const OBJECT_KEY_GUIDANCE: Readonly>; + +// ── OWNER_FIELD_DEF (const) ── +declare const OWNER_FIELD_DEF: Readonly>; + +// ── OWNING_BUSINESS_UNIT_FIELD_DEF (const) ── +declare const OWNING_BUSINESS_UNIT_FIELD_DEF: Readonly>; + +// ── ObjectAccessConfig (type) ── +type ObjectAccessConfig = z.input; + +// ── ObjectAccessConfigParsed (type) ── +type ObjectAccessConfigParsed = z.infer; + +// ── ObjectAccessConfigSchema (const) ── +declare const ObjectAccessConfigSchema: z.ZodObject<{ + default: z.ZodDefault>; +}, z.core.$strict>; + +// ── ObjectCapabilities (const) ── +declare const ObjectCapabilities: z.ZodObject<{ + trackHistory: z.ZodDefault; + searchable: z.ZodDefault; + apiEnabled: z.ZodDefault; + apiMethods: z.ZodOptional>>; + files: z.ZodDefault; + feeds: z.ZodDefault; + activities: z.ZodDefault; + clone: z.ZodDefault; +}, z.core.$strict>; + +// ── ObjectCapabilities (type) ── +type ObjectCapabilities = z.input; + +// ── ObjectCapabilitiesParsed (type) ── +type ObjectCapabilitiesParsed = z.infer; + +// ── ObjectDependencyGraph (type) ── +type ObjectDependencyGraph = z.input; + +// ── ObjectDependencyGraphParsed (type) ── +type ObjectDependencyGraphParsed = z.infer; + +// ── ObjectDependencyGraphSchema (const) ── +declare const ObjectDependencyGraphSchema: z.ZodObject<{ + nodes: z.ZodArray; + references: z.ZodArray; + fieldType: z.ZodEnum<{ + lookup: "lookup"; + master_detail: "master_detail"; + user: "user"; + }>; + multiple: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + insertOrder: z.ZodArray; + circularDependencies: z.ZodDefault>>; +}, z.core.$strip>; + +// ── ObjectDependencyNode (type) ── +type ObjectDependencyNode = z.input; + +// ── ObjectDependencyNodeParsed (type) ── +type ObjectDependencyNodeParsed = z.infer; + +// ── ObjectDependencyNodeSchema (const) ── +declare const ObjectDependencyNodeSchema: z.ZodObject<{ + object: z.ZodString; + dependsOn: z.ZodArray; + references: z.ZodArray; + fieldType: z.ZodEnum<{ + lookup: "lookup"; + master_detail: "master_detail"; + user: "user"; + }>; + multiple: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── ObjectExtension (type) ── +type ObjectExtension = z.input; + +// ── ObjectExtensionParsed (type) ── +type ObjectExtensionParsed = z.infer; + +// ── ObjectExtensionSchema (const) ── +declare const ObjectExtensionSchema: z.ZodObject<{ + extend: z.ZodString; + fields: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + url: "url"; + email: "email"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + description: z.ZodOptional; + format: z.ZodOptional; + required: z.ZodDefault; + storage: z.ZodOptional; + }, z.core.$strict>>; + searchable: z.ZodDefault; + multiple: z.ZodDefault; + unique: z.ZodOptional, z.ZodLiteral<"organization">]>>; + defaultValue: z.ZodOptional; + maxLength: z.ZodOptional; + minLength: z.ZodOptional; + valueDomain: z.ZodOptional>; + rows: z.ZodOptional; + precision: z.ZodOptional; + scale: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + useGrouping: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + options: z.ZodOptional; + color: z.ZodOptional; + default: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + reference: z.ZodOptional; + referenceVia: z.ZodOptional; + deleteBehavior: z.ZodOptional>; + inlineEdit: z.ZodOptional]>>; + inlineTitle: z.ZodOptional; + inlineColumns: z.ZodOptional; + type: z.ZodOptional>; + width: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + prefix: z.ZodOptional; + step: z.ZodOptional; + reference: z.ZodOptional; + displayField: z.ZodOptional; + idField: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + defaultHidden: z.ZodOptional; + computed: z.ZodOptional; + expr: z.ZodOptional; + scale: z.ZodOptional; + autofill: z.ZodOptional; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + inlineAmountField: z.ZodOptional; + relatedList: z.ZodOptional]>>; + relatedListTitle: z.ZodOptional; + relatedListColumns: z.ZodOptional>; + relatedListFilter: z.ZodOptional>>; + displayField: z.ZodOptional; + descriptionField: z.ZodOptional; + lookupColumns: z.ZodOptional; + width: z.ZodOptional; + type: z.ZodOptional; + }, z.core.$strict>]>>>; + lookupPageSize: z.ZodOptional; + lookupFilters: z.ZodOptional; + value: z.ZodAny; + }, z.core.$strict>>>; + dependsOn: z.ZodOptional; + }, z.core.$strict>]>>>; + allowCreate: z.ZodOptional; + expression: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + returnType: z.ZodOptional>; + summaryOperations: z.ZodOptional; + relationshipField: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strict>>; + language: z.ZodOptional; + step: z.ZodOptional; + currencyConfig: z.ZodOptional; + currencyMode: z.ZodDefault>; + defaultCurrency: z.ZodDefault; + }, z.core.$strict>>; + dimensions: z.ZodOptional; + trackHistory: z.ZodOptional; + group: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + conditionalRequired: z.ZodOptional; + widget: z.ZodOptional; + hidden: z.ZodDefault; + internal: z.ZodOptional; + readonly: z.ZodDefault; + requiredPermissions: z.ZodOptional>; + maskingRule: z.ZodOptional, z.ZodObject<{ + keepHead: z.ZodNumber; + keepTail: z.ZodNumber; + }, z.core.$strict>]>>; + ackPlaintextMasking: z.ZodOptional; + system: z.ZodOptional; + sortable: z.ZodDefault>; + inlineHelpText: z.ZodOptional; + placeholder: z.ZodOptional; + autonumberFormat: z.ZodOptional; + externalId: z.ZodDefault; + }, z.core.$strict>>>; + label: z.ZodOptional; + pluralLabel: z.ZodOptional; + description: z.ZodOptional; + validations: z.ZodOptional>>>; + indexes: z.ZodOptional; + fields: z.ZodArray; + unique: z.ZodDefault, z.ZodLiteral<"organization">]>>>; + type: z.ZodOptional; + partial: z.ZodOptional; + }, z.core.$strict>>>; + priority: z.ZodDefault; +}, z.core.$strict>; + +// ── ObjectExternalBinding (type) ── +type ObjectExternalBinding = z.input; + +// ── ObjectExternalBindingParsed (type) ── +type ObjectExternalBindingParsed = z.infer; + +// ── ObjectExternalBindingSchema (const) ── +declare const ObjectExternalBindingSchema: z.ZodObject<{ + remoteName: z.ZodOptional; + remoteSchema: z.ZodOptional; + writable: z.ZodDefault; + columnMap: z.ZodOptional>; + introspectedAt: z.ZodOptional; + ignoreColumns: z.ZodOptional>; +}, z.core.$strict>; + +// ── ObjectFieldGroup (type) ── +type ObjectFieldGroup = z.input; + +// ── ObjectFieldGroupParsed (type) ── +type ObjectFieldGroupParsed = z.infer; + +// ── ObjectFieldGroupSchema (const) ── +declare const ObjectFieldGroupSchema: z.ZodObject<{ + key: z.ZodString; + label: z.ZodString; + icon: z.ZodOptional; + description: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + collapse: z.ZodDefault>>; + defaultExpanded: z.ZodOptional; + collapsible: z.ZodOptional; + collapsed: z.ZodOptional; +}, z.core.$strict>; + +// ── ObjectIndex (type) ── +type ObjectIndex = z.input; + +// ── ObjectIndexParsed (type) ── +type ObjectIndexParsed = z.infer; + +// ── ObjectOwnership (type) ── +type ObjectOwnership = z.input; + +// ── ObjectOwnershipEnum (const) ── +declare const ObjectOwnershipEnum: z.ZodEnum<{ + extend: "extend"; + own: "own"; + overlay: "overlay"; +}>; + +// ── ObjectRequiredPermissions (type) ── +type ObjectRequiredPermissions = z.input; + +// ── ObjectRequiredPermissionsSchema (const) ── +declare const ObjectRequiredPermissionsSchema: z.ZodUnion, z.ZodObject<{ + read: z.ZodOptional>; + create: z.ZodOptional>; + update: z.ZodOptional>; + delete: z.ZodOptional>; +}, z.core.$strict>]>; + +// ── ObjectSchema (const) ── +declare const ObjectSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + pluralLabel: z.ZodOptional; + description: z.ZodOptional; + icon: z.ZodOptional; + isSystem: z.ZodDefault>; + managedBy: z.ZodOptional>; + ownership: z.ZodOptional>; + userActions: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + import: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + edit: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + delete: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + exportCsv: z.ZodOptional; + }, z.core.$strict>>; + systemFields: z.ZodOptional, z.ZodObject<{ + tenant: z.ZodOptional; + audit: z.ZodOptional; + }, z.core.$strict>]>>; + datasource: z.ZodDefault>; + external: z.ZodOptional; + remoteSchema: z.ZodOptional; + writable: z.ZodDefault; + columnMap: z.ZodOptional>; + introspectedAt: z.ZodOptional; + ignoreColumns: z.ZodOptional>; + }, z.core.$strict>>; + fields: z.ZodRecord>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + url: "url"; + email: "email"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + description: z.ZodOptional; + format: z.ZodOptional; + required: z.ZodDefault; + storage: z.ZodOptional; + }, z.core.$strict>>; + searchable: z.ZodDefault; + multiple: z.ZodDefault; + unique: z.ZodOptional, z.ZodLiteral<"organization">]>>; + defaultValue: z.ZodOptional; + maxLength: z.ZodOptional; + minLength: z.ZodOptional; + valueDomain: z.ZodOptional>; + rows: z.ZodOptional; + precision: z.ZodOptional; + scale: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + useGrouping: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + options: z.ZodOptional; + color: z.ZodOptional; + default: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + reference: z.ZodOptional; + referenceVia: z.ZodOptional; + deleteBehavior: z.ZodOptional>; + inlineEdit: z.ZodOptional]>>; + inlineTitle: z.ZodOptional; + inlineColumns: z.ZodOptional; + type: z.ZodOptional>; + width: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + prefix: z.ZodOptional; + step: z.ZodOptional; + reference: z.ZodOptional; + displayField: z.ZodOptional; + idField: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + defaultHidden: z.ZodOptional; + computed: z.ZodOptional; + expr: z.ZodOptional; + scale: z.ZodOptional; + autofill: z.ZodOptional; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + inlineAmountField: z.ZodOptional; + relatedList: z.ZodOptional]>>; + relatedListTitle: z.ZodOptional; + relatedListColumns: z.ZodOptional>; + relatedListFilter: z.ZodOptional>>; + displayField: z.ZodOptional; + descriptionField: z.ZodOptional; + lookupColumns: z.ZodOptional; + width: z.ZodOptional; + type: z.ZodOptional; + }, z.core.$strict>]>>>; + lookupPageSize: z.ZodOptional; + lookupFilters: z.ZodOptional; + value: z.ZodAny; + }, z.core.$strict>>>; + dependsOn: z.ZodOptional; + }, z.core.$strict>]>>>; + allowCreate: z.ZodOptional; + expression: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + returnType: z.ZodOptional>; + summaryOperations: z.ZodOptional; + relationshipField: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strict>>; + language: z.ZodOptional; + step: z.ZodOptional; + currencyConfig: z.ZodOptional; + currencyMode: z.ZodDefault>; + defaultCurrency: z.ZodDefault; + }, z.core.$strict>>; + dimensions: z.ZodOptional; + trackHistory: z.ZodOptional; + group: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + conditionalRequired: z.ZodOptional; + widget: z.ZodOptional; + hidden: z.ZodDefault; + internal: z.ZodOptional; + readonly: z.ZodDefault; + requiredPermissions: z.ZodOptional>; + maskingRule: z.ZodOptional, z.ZodObject<{ + keepHead: z.ZodNumber; + keepTail: z.ZodNumber; + }, z.core.$strict>]>>; + ackPlaintextMasking: z.ZodOptional; + system: z.ZodOptional; + sortable: z.ZodDefault>; + inlineHelpText: z.ZodOptional; + placeholder: z.ZodOptional; + autonumberFormat: z.ZodOptional; + externalId: z.ZodDefault; + }, z.core.$strict>>; + indexes: z.ZodOptional; + fields: z.ZodArray; + unique: z.ZodDefault, z.ZodLiteral<"organization">]>>>; + type: z.ZodOptional; + partial: z.ZodOptional; + }, z.core.$strict>>>; + fieldGroups: z.ZodOptional; + description: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + collapse: z.ZodDefault>>; + defaultExpanded: z.ZodOptional; + collapsible: z.ZodOptional; + collapsed: z.ZodOptional; + }, z.core.$strict>>>; + tenancy: z.ZodOptional; + organizationField: z.ZodOptional; + }, z.core.$strict>>; + access: z.ZodOptional>; + }, z.core.$strict>>; + requiredPermissions: z.ZodOptional, z.ZodObject<{ + read: z.ZodOptional>; + create: z.ZodOptional>; + update: z.ZodOptional>; + delete: z.ZodOptional>; + }, z.core.$strict>]>>; + lifecycle: z.ZodOptional; + retention: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + ttl: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + storage: z.ZodOptional; + shards: z.ZodNumber; + unit: z.ZodEnum<{ + month: "month"; + day: "day"; + week: "week"; + }>; + }, z.core.$strict>>; + archive: z.ZodOptional; + }, z.core.$strict>>; + reclaim: z.ZodOptional; + }, z.core.$strict>>; + fileAccessDelegate: z.ZodOptional; + validations: z.ZodOptional>>>; + activityMilestones: z.ZodOptional; + }, z.core.$strict>>>; + nameField: z.ZodOptional; + displayNameField: z.ZodOptional; + titleFormat: z.ZodOptional>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"template">; + }, z.core.$strip>]>>; + highlightFields: z.ZodOptional>; + stageField: z.ZodOptional]>>; + editMode: z.ZodOptional>; + listViews: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + type: z.ZodDefault>; + sort: z.ZodOptional; + }, z.core.$strict>>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + name: z.ZodOptional; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + inlineEdit: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + delete: "delete"; + update: "update"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + url: "url"; + email: "email"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + rowActions: z.ZodOptional>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + none: "none"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + pageName: z.ZodOptional; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + responsive: z.ZodOptional; + performance: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "xlsx" | "csv")[]; + }, ("json" | "xlsx" | "csv")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + resizable: z.ZodOptional; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + compactToolbar: z.ZodOptional; + selection: z.ZodOptional>; + }, z.core.$strict>>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + enable: z.ZodOptional; + searchable: z.ZodDefault; + apiEnabled: z.ZodDefault; + apiMethods: z.ZodOptional>>; + files: z.ZodDefault; + feeds: z.ZodDefault; + activities: z.ZodDefault; + clone: z.ZodDefault; + }, z.core.$strict>>; + sharingModel: z.ZodOptional>; + externalSharingModel: z.ZodOptional>; + publicSharing: z.ZodOptional; + allowedAudiences: z.ZodOptional>>; + allowedPermissions: z.ZodOptional>>; + maxExpiryDays: z.ZodOptional; + redactFields: z.ZodOptional>; + eligibility: z.ZodOptional; + }, z.core.$strict>>; + actions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + objectName: z.ZodOptional; + icon: z.ZodOptional; + locations: z.ZodOptional>>; + component: z.ZodOptional>; + type: z.ZodDefault>; + target: z.ZodOptional; + openIn: z.ZodOptional>; + body: z.ZodOptional; + source: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + language: z.ZodLiteral<"js">; + source: z.ZodString; + capabilities: z.ZodDefault>>; + timeoutMs: z.ZodOptional; + memoryMb: z.ZodOptional; + }, z.core.$strict>], "language">>; + operation: z.ZodOptional>; + patch: z.ZodOptional>; + execution: z.ZodOptional>; + execute: z.ZodOptional; + params: z.ZodOptional; + field: z.ZodOptional; + objectOverride: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + required: z.ZodDefault>; + options: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + value: z.ZodString; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + placeholder: z.ZodOptional; + helpText: z.ZodOptional; + defaultValue: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + reference: z.ZodOptional; + defaultFromRow: z.ZodOptional; + carryOver: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiresFeature: z.ZodOptional>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">, { + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }>>>>; + variant: z.ZodOptional>; + order: z.ZodOptional; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + successMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + errorMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + refreshAfter: z.ZodDefault; + undoable: z.ZodOptional; + resultDialog: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + acknowledge: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiresFeature: z.ZodOptional>; + disabled: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiredPermissions: z.ZodOptional>; + shortcut: z.ZodOptional; + bulkEnabled: z.ZodOptional; + ai: z.ZodOptional; + description: z.ZodOptional; + category: z.ZodOptional>; + paramHints: z.ZodOptional; + enum: z.ZodOptional>>; + examples: z.ZodOptional>; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional>; + requiresConfirmation: z.ZodOptional; + }, z.core.$strict>>; + recordIdParam: z.ZodOptional; + recordIdField: z.ZodOptional; + bodyShape: z.ZodOptional, z.ZodObject<{ + wrap: z.ZodString; + }, z.core.$strict>]>>; + method: z.ZodOptional>; + bodyExtra: z.ZodOptional>; + mode: z.ZodOptional>; + opensInNewTab: z.ZodOptional; + newTabUrl: z.ZodOptional; + onSuccess: z.ZodOptional>; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | undefined; + objectName?: string | undefined; + icon?: string | undefined; + locations?: ("record_header" | "list_toolbar" | "list_item" | "record_more" | "record_related" | "record_section")[] | undefined; + component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("crypto.uuid" | "api.read" | "api.write" | "api.transaction" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "flow" | "data" | "action" | "analytics" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "delete" | "edit" | "create" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">, { + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | undefined; + objectName?: string | undefined; + icon?: string | undefined; + locations?: ("record_header" | "list_toolbar" | "list_item" | "record_more" | "record_related" | "record_section")[] | undefined; + component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("crypto.uuid" | "api.read" | "api.write" | "api.transaction" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "flow" | "data" | "action" | "analytics" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "delete" | "edit" | "create" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict> & { + /** + * [ADR-0079] Parse with deprecated-`displayNameField`→`nameField` alias + * normalization applied first. Wraps the captured original ZodObject parse, + * so `.shape` / `.create()`'s internal `ObjectSchemaBase.parse` keep working. + */ + parse(data: unknown, params?: Parameters[1]): { + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _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; + managedBy?: "platform" | "config" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "none" | "org" | "user" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "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: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "page" | "modal" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | 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; + 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; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "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; + name?: string | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + inlineEdit?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "delete" | "update"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "outline" | "danger" | "ghost" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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: "split" | "none" | "page" | "modal" | "drawer" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + pageName?: undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + responsive?: undefined; + performance?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + exportOptions?: { + formats: ("json" | "xlsx" | "csv")[]; + } | { + formats?: ("json" | "xlsx" | "csv")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "gallery" | "chart" | "kanban" | "gantt" | "timeline" | "calendar")[] | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | undefined; + borderColorField?: string | undefined; + lockField?: string | undefined; + objectField?: string | undefined; + summaryExtent?: "children" | "self" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + rowHeight?: "short" | "medium" | "compact" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + grouping?: { + fields: { + field: string; + order: "asc" | "desc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "modal" | "inline"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "delete" | "bulk" | "update" | "list" | "create")[] | undefined; + } | undefined; + sharingModel?: "public_read" | "public_read_write" | "private" | "controlled_by_parent" | undefined; + externalSharingModel?: "public_read" | "public_read_write" | "private" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("view" | "edit" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | undefined; + objectName?: string | undefined; + icon?: string | undefined; + locations?: ("record_header" | "list_toolbar" | "list_item" | "record_more" | "record_related" | "record_section")[] | undefined; + component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("crypto.uuid" | "api.read" | "api.write" | "api.transaction" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "flow" | "data" | "action" | "analytics" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "delete" | "edit" | "create" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "none" | "no-overlay" | "no-delete" | "full"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }; + safeParse(data: unknown, params?: Parameters[1]): z.ZodSafeParseResult<{ + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _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; + managedBy?: "platform" | "config" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "none" | "org" | "user" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "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: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "page" | "modal" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | 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; + 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; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "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; + name?: string | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + inlineEdit?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "delete" | "update"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "outline" | "danger" | "ghost" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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: "split" | "none" | "page" | "modal" | "drawer" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + pageName?: undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + responsive?: undefined; + performance?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + exportOptions?: { + formats: ("json" | "xlsx" | "csv")[]; + } | { + formats?: ("json" | "xlsx" | "csv")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "gallery" | "chart" | "kanban" | "gantt" | "timeline" | "calendar")[] | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | undefined; + borderColorField?: string | undefined; + lockField?: string | undefined; + objectField?: string | undefined; + summaryExtent?: "children" | "self" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + rowHeight?: "short" | "medium" | "compact" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + grouping?: { + fields: { + field: string; + order: "asc" | "desc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "modal" | "inline"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "delete" | "bulk" | "update" | "list" | "create")[] | undefined; + } | undefined; + sharingModel?: "public_read" | "public_read_write" | "private" | "controlled_by_parent" | undefined; + externalSharingModel?: "public_read" | "public_read_write" | "private" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("view" | "edit" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | undefined; + objectName?: string | undefined; + icon?: string | undefined; + locations?: ("record_header" | "list_toolbar" | "list_item" | "record_more" | "record_related" | "record_section")[] | undefined; + component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("crypto.uuid" | "api.read" | "api.write" | "api.transaction" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "flow" | "data" | "action" | "analytics" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "delete" | "edit" | "create" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "none" | "no-overlay" | "no-delete" | "full"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }>; + /** + * Type-safe factory for creating business object definitions. + * + * Enhancements over raw schema: + * - **Auto-label**: Generates `label` from `name` if not provided (snake_case → Title Case). + * - **Validation**: Runs Zod `.parse()` to validate the config at creation time. + * - **No silent strip** (ADR-0032 / #1535): unknown top-level keys (e.g. a + * typo'd `validation`, or an object-level `workflows[]`) are rejected with a + * precise, fixable error instead of being discarded by Zod's `.strip()`. + * + * @example + * ```ts + * const Task = ObjectSchema.create({ + * name: 'project_task', + * // label auto-generated as 'Project Task' + * fields: { + * subject: { type: 'text', label: 'Subject', required: true }, + * }, + * }); + * ``` + */ + create: >(config: NoExcessObjectKeys) => Omit & Pick; +}; + +// ── ObjectTitleCompleteness (interface) ── +interface ObjectTitleCompleteness { + /** + * - `explicit` — an explicit pointer (`nameField`/`displayNameField`) is set. + * - `derived` — no explicit pointer, but a title-eligible field was derivable. + * - `synthesized` — `nameField` points at a field NOT present in `fields` + * (e.g. a synthesized/expected `name`); the runtime must materialize it. + * - `none` — no pointer and nothing derivable. Lint/quality should flag. + * + * ⚠️ `explicit` means "a pointer is PRESENT", never "the AUTHOR designated + * this", and which grade you get is decided by the body's PROVENANCE rather + * than by the object. Read the four rows above against where the body came + * from: + * + * - **A body served by a `/meta` READ EXIT is already designated.** The exit + * replays the registry's object-materialization seam + * (`materializeServedObjectOnto` in `@objectstack/objectql`, which runs + * `provisionPrimary` in designate-only mode), so a pointer is stamped + * whether or not the author wrote one. There `explicit` carries no + * authorship information, and `derived` is unreachable except where that + * replay WITHHELD the designation — an object the registry has resolved + * whose own answer carries no `nameField`, served with a title-eligible + * field an `extend` fold added. + * - **A body captured BEFORE the write seam still separates the two.** An + * authored definition as written — what `os build` / `os lint` hand this + * predicate through `@objectstack/lint`'s `validateRecordTitle` — grades + * `explicit` only when the author really did write a pointer. + * + * ⛔ Authorship is NOT recoverable after that write, deliberately. The + * write-side inverse (`stripProvisionedPrimaryFrom`, declared beside the + * stamp) removes the pointer exactly when it is byte-identical to what the + * derivation would produce, and says so in its own words: the two are + * "indistinguishable by construction — the read serves one body, and 'the + * author wrote `nameField`' and 'the read derived `nameField`' are the same + * bytes". So neither the served document nor the stored row can answer + * "did the author designate this?" — only a pre-write body can. ⇒ ⛔ Never + * build a check on `explicit` that needs the authored answer without first + * proving your input is a pre-write body. + */ + status: 'explicit' | 'derived' | 'synthesized' | 'none'; + /** The resolved field name when one exists. */ + field?: string; +} + +// ── OperationCheckOptions (interface) ── +interface OperationCheckOptions { + /** + * Import write mode (`insert`/`update`/`upsert`), used to refine the coarse + * `import` derivation into a precise one. Ignored for non-import operations. + */ + writeMode?: string; + /** + * For a bulk request, the child operation being batched (`create`/`update`/ + * `delete`, or `upsert`). When set on a `bulk` check, the object must grant + * the `bulk` primitive AND the child operation must itself be allowed. + */ + bulkChild?: string; +} + +// ── OperatorKey (type) ── +type OperatorKey = typeof ALL_OPERATORS[number]; + +// ── PAGINATION_ALL_IDS (const) ── +declare const PAGINATION_ALL_IDS: readonly string[]; + +// ── PAGINATION_CASES (const) ── +declare const PAGINATION_CASES: readonly PaginationConformanceCase[]; + +// ── PAGINATION_ROWS (const) ── +declare const PAGINATION_ROWS: readonly PaginationConformanceRow[]; + +// ── PAGINATION_UNORDERED_CASES (const) ── +declare const PAGINATION_UNORDERED_CASES: readonly UnorderedPaginationConformanceCase[]; + +// ── PAGINATION_ZERO_LIMIT_CASES (const) ── +declare const PAGINATION_ZERO_LIMIT_CASES: readonly ZeroLimitConformanceCase[]; + +// ── PASSTHROUGH_INLINE_CREDENTIAL_REFUSED (const) ── +declare const PASSTHROUGH_INLINE_CREDENTIAL_REFUSED: (path: string) => string; + +// ── PASSTHROUGH_NESTED_CREDENTIAL_REFUSED (const) ── +declare const PASSTHROUGH_NESTED_CREDENTIAL_REFUSED: (path: string) => string; + +// ── PaginationConformanceCase (interface) ── +interface PaginationConformanceCase { + /** Case label, used as the test name. */ + name: string; + /** The `orderBy` the caller asked for — never unique on its own. */ + orderBy: ReadonlyArray<{ + field: string; + order: 'asc' | 'desc'; + }>; + /** Page size; every case's total (12) is deliberately not a multiple of it. */ + pageSize: number; +} + +// ── PaginationConformanceRow (interface) ── +interface PaginationConformanceRow { + id: string; + status: string; + rank: number; + name: string; +} + +// ── PerOperationRequiredPermissions (type) ── +type PerOperationRequiredPermissions = z.input; + +// ── PerOperationRequiredPermissionsSchema (const) ── +declare const PerOperationRequiredPermissionsSchema: z.ZodObject<{ + read: z.ZodOptional>; + create: z.ZodOptional>; + update: z.ZodOptional>; + delete: z.ZodOptional>; +}, z.core.$strict>; + +// ── PercentScale (type) ── +type PercentScale = 'fraction' | 'whole'; + +// ── PercentScaleFieldMeta (interface) ── +interface PercentScaleFieldMeta { + type?: string; + /** Declared upper bound; `> 1` marks whole-percent storage (see below). */ + max?: number; +} + +// ── PersistenceAdapter (type) ── +type PersistenceAdapter = z.input; + +// ── PersistenceAdapterSchema (const) ── +declare const PersistenceAdapterSchema: z.ZodObject<{ + load: z.ZodFunction; + save: z.ZodFunction; + flush: z.ZodFunction; +}, z.core.$strict>; + +// ── PersistenceType (type) ── +type PersistenceType = z.input; + +// ── PersistenceTypeSchema (const) ── +declare const PersistenceTypeSchema: z.ZodEnum<{ + file: "file"; + local: "local"; + auto: "auto"; +}>; + +// ── PoolConfig (type) ── +type PoolConfig = z.input; + +// ── PoolConfigParsed (type) ── +type PoolConfigParsed = z.infer; + +// ── PoolConfigSchema (const) ── +declare const PoolConfigSchema: z.ZodObject<{ + min: z.ZodDefault; + max: z.ZodDefault; + idleTimeoutMillis: z.ZodDefault; + connectionTimeoutMillis: z.ZodDefault; +}, z.core.$strip>; + +// ── PostgresConfig (type) ── +type PostgresConfig = z.input; + +// ── PostgresConfigParsed (type) ── +type PostgresConfigParsed = z.infer; + +// ── PostgresConfigSchema (const) ── +declare const PostgresConfigSchema: z.ZodObject<{ + url: z.ZodOptional; + host: z.ZodDefault; + port: z.ZodDefault; + database: z.ZodOptional; + username: z.ZodOptional; + password: z.ZodOptional; + ssl: z.ZodOptional; + schema: z.ZodDefault; + applicationName: z.ZodOptional; + statementTimeout: z.ZodOptional; + autoMigrate: z.ZodOptional>; +}, z.core.$strict>; + +// ── ProvisionPrimaryOptions (interface) ── +interface ProvisionPrimaryOptions { + /** + * Whether to SYNTHESIZE a `name` text field when nothing is title-eligible. + * + * - `true` (default) — full provisioning: designate a derivable title, else + * add a `name` text field and point `nameField` at it. GUARANTEES a primary + * exists. This adds a column, so for an already-materialized table it is a + * schema-migration-bearing change. + * - `false` — DESIGNATE-ONLY: set `nameField` when a title can be + * resolved/derived from an EXISTING field, otherwise return the object + * unchanged (no `name` field is added, no schema change). Safe to run at the + * object-materialization seam against title-less system tables. + */ + synthesize?: boolean; +} + +// ── QUERY_CURSOR_REMOVED (const) ── +declare const QUERY_CURSOR_REMOVED: string; + +// ── QUERY_DISTINCT_REMOVED (const) ── +declare const QUERY_DISTINCT_REMOVED: string; + +// ── QUERY_TRANSPORT_ALIAS_SLOTS (const) ── +declare const QUERY_TRANSPORT_ALIAS_SLOTS: readonly QueryAliasSlot[]; + +// ── QUERY_TRANSPORT_DOLLAR_ALIASES (const) ── +declare const QUERY_TRANSPORT_DOLLAR_ALIASES: readonly (readonly [string, string])[]; + +// ── QUERY_TRANSPORT_DOLLAR_PARAMS (const) ── +declare const QUERY_TRANSPORT_DOLLAR_PARAMS: readonly string[]; + +// ── QueryAST (type) ── +type QueryAST = z.infer & { + expand?: Record; +}; + +// ── QueryAliasConflict (interface) ── +interface QueryAliasConflict { + /** Canonical key of the slot the spellings collided on. */ + canonical: string; + /** Every spelling present on the input, canonical first when present. */ + spellings: string[]; +} + +// ── QueryAliasSlot (interface) ── +interface QueryAliasSlot { + /** Canonical QueryAST key the slot's value lands on. */ + canonical: string; + /** Accepted alias spellings, in report order. */ + aliases: readonly string[]; +} + +// ── QueryFilter (type) ── +type QueryFilter = z.input; + +// ── QueryFilterSchema (const) ── +declare const QueryFilterSchema: z.ZodObject<{ + where: z.ZodOptional>>; +}, z.core.$strip>; + +// ── QueryInput (type) ── +type QueryInput = z.input & { + expand?: Record; +}; + +// ── QuerySchema (const) ── +declare const QuerySchema: z.ZodType; + +// ── QueryTransportParams (type) ── +type QueryTransportParams = z.input; + +// ── QueryTransportParamsParsed (type) ── +type QueryTransportParamsParsed = z.infer; + +// ── QueryTransportParamsSchema (const) ── +declare const QueryTransportParamsSchema: z.ZodObject<{ + $filter: z.ZodOptional>, z.ZodUnion, z.ZodType>]>]>>>; + filters: z.ZodOptional>, z.ZodUnion, z.ZodType>]>]>>>; + $top: z.ZodOptional>>; + $skip: z.ZodOptional>>; + $orderby: z.ZodOptional>, z.ZodRecord, z.ZodLiteral<-1>]>>, z.ZodArray>; + }, z.core.$strict>>]>>>; + $select: z.ZodOptional]>>>; + $expand: z.ZodOptional, z.ZodRecord>>]>>>; + $search: z.ZodOptional>; + fuzzy: z.ZodDefault>; + operator: z.ZodDefault>>; + boost: z.ZodOptional>; + minScore: z.ZodOptional; + language: z.ZodOptional; + highlight: z.ZodDefault>; + }, z.core.$strip>]>>>; + $searchFields: z.ZodOptional]>>>; + $count: z.ZodOptional]>>>; + count: z.ZodOptional]>>>; + filter: z.ZodOptional>, z.ZodUnion, z.ZodType>]>]>>>; + select: z.ZodOptional]>>>; + sort: z.ZodOptional>, z.ZodRecord, z.ZodLiteral<-1>]>>, z.ZodArray>; + }, z.core.$strict>>]>>>; + skip: z.ZodOptional>>; + populate: z.ZodOptional]>>>; +}, z.core.$strip>; + +// ── QueryWithTransport (type) ── +type QueryWithTransport = Omit & { + where?: FilterCondition | FilterArray; +} & Partial; + +// ── QueryWithTransportParsed (type) ── +type QueryWithTransportParsed = z.infer; + +// ── QueryWithTransportSchema (const) ── +declare const QueryWithTransportSchema: z.ZodType; + +// ── RAW_FILE_VALUES_CONTEXT_KEY (const) ── +declare const RAW_FILE_VALUES_CONTEXT_KEY = "__rawFileValues"; + +// ── READ_ONLY_BELONGS_ON_DATASOURCE (const) ── +declare const READ_ONLY_BELONGS_ON_DATASOURCE: string; + +// ── RECORD_SURFACE_PAGE_THRESHOLD (const) ── +declare const RECORD_SURFACE_PAGE_THRESHOLD = 12; + +// ── REFERENCE_VALUE_TYPES (const) ── +declare const REFERENCE_VALUE_TYPES: ReadonlySet; + +// ── RETIRED_FILTER_OPERATORS (const) ── +declare const RETIRED_FILTER_OPERATORS: Readonly>; + +// ── RETIRED_SUB_DAY_INTERVALS (const) ── +declare const RETIRED_SUB_DAY_INTERVALS: readonly ["second", "minute", "hour"]; + +// ── RPC_QUERY_ALIAS_SLOTS (const) ── +declare const RPC_QUERY_ALIAS_SLOTS: readonly QueryAliasSlot[]; + +// ── RUNTIME_OWNED_FIELD_TYPES (const) ── +declare const RUNTIME_OWNED_FIELD_TYPES: ReadonlySet; + +// ── RangeOperatorSchema (const) ── +declare const RangeOperatorSchema: z.ZodObject<{ + $between: z.ZodOptional, z.ZodUnion], null>>; +}, z.core.$strip>; + +// ── RecordFlow (type) ── +type RecordFlow = 'view' | 'create' | 'edit' | 'child-create' | 'child-edit'; + +// ── RecordFlowContainer (type) ── +type RecordFlowContainer = 'route' | 'overlay'; + +// ── RecordFlowSurface (interface) ── +interface RecordFlowSurface { + /** + * `'route'` only ever for flow `'view'` (a record is shareable state — + * deep-linkable, refresh-safe). Every task flow is an `'overlay'`: close + * returns to the origin with its context (scroll / filters / tab) intact, + * which is the #2604 return-flow invariant — and a create/edit URL would be + * a false promise anyway (refresh loses the draft). + */ + container: RecordFlowContainer; + surface: RecordSurface; + /** Maps onto `navigation.size` / `FormView.modalSize`; routes ignore it. */ + size: 'auto' | 'full'; +} + +// ── RecordSurface (type) ── +type RecordSurface = 'page' | 'modal' | 'drawer'; + +// ── RecordSurfaceOptions (interface) ── +interface RecordSurfaceOptions { + /** Viewport hint. `'mobile'` forces `'page'` (overlays are cramped). */ + viewport?: RecordSurfaceViewport; + /** + * Authorable-field count at/above which the record opens as a full page. + * Defaults to {@link RECORD_SURFACE_PAGE_THRESHOLD}. Exposed so a host can + * tune the break point without forking the rule. + */ + pageThreshold?: number; +} + +// ── RecordSurfaceViewport (type) ── +type RecordSurfaceViewport = 'mobile' | 'desktop'; + +// ── RedactedDatasourceConfig (interface) ── +interface RedactedDatasourceConfig { + config: Record; + /** + * Config keys whose value was removed or rewritten, as dotted paths + * (`password`, `options.auth.password`), sorted. Serving this alongside the + * redacted config is the difference between a caller that knows a credential + * is being withheld and one that infers it from an absence. + */ + redactedKeys: string[]; + /** + * The same removals as exact SEGMENT arrays, index-aligned with + * {@link redactedKeys}. The dotted spelling is ambiguous the moment a stored + * key carries a literal dot; the write-path inverses restore by walking + * containers, so they consume this form and cannot mis-split. + */ + redactedPaths: (readonly string[])[]; +} + +// ── ReferenceIdValue (type) ── +type ReferenceIdValue = z.input; + +// ── ReferenceIdValueSchema (const) ── +declare const ReferenceIdValueSchema: z.ZodString; + +// ── ReferenceResolution (type) ── +type ReferenceResolution = z.input; + +// ── ReferenceResolutionError (type) ── +type ReferenceResolutionError = z.input; + +// ── ReferenceResolutionErrorSchema (const) ── +declare const ReferenceResolutionErrorSchema: z.ZodObject<{ + sourceObject: z.ZodString; + field: z.ZodString; + targetObject: z.ZodString; + targetField: z.ZodString; + attemptedValue: z.ZodUnknown; + recordIndex: z.ZodNumber; + message: z.ZodString; +}, z.core.$strip>; + +// ── ReferenceResolutionParsed (type) ── +type ReferenceResolutionParsed = z.infer; + +// ── ReferenceResolutionSchema (const) ── +declare const ReferenceResolutionSchema: z.ZodObject<{ + field: z.ZodString; + targetObject: z.ZodString; + targetField: z.ZodDefault; + fieldType: z.ZodEnum<{ + lookup: "lookup"; + master_detail: "master_detail"; + user: "user"; + }>; + multiple: z.ZodOptional; +}, z.core.$strip>; + +// ── RenderAutonumberInput (interface) ── +interface RenderAutonumberInput { + /** Parsed tokens (from {@link parseAutonumberFormat}). */ + tokens: AutonumberToken[]; + /** The reserved counter value. */ + seq: number; + /** The record being written — source for `{field}` interpolation. */ + record?: Record; + /** Generation instant. Callers pass an explicit `Date` (no implicit clock). */ + now: Date; + /** Business timezone for date tokens (ADR-0053); falls back to UTC. */ + timezone?: string; +} + +// ── RenderedAutonumber (interface) ── +interface RenderedAutonumber { + /** Rendered text before the sequence slot. */ + prefix: string; + /** Rendered text after the sequence slot. */ + suffix: string; + /** + * Counter scope: the rendered prefix when the format has date/field tokens, + * else '' (legacy fixed-prefix formats keep one global counter under a + * stable empty scope). Drives per-period / per-group numbering and reset. + */ + scope: string; + /** Final value: prefix + zero-padded(seq) + suffix. */ + value: string; +} + +// ── ReplicationConfig (type) ── +type ReplicationConfig = z.input; + +// ── ReplicationConfigParsed (type) ── +type ReplicationConfigParsed = z.infer; + +// ── ReplicationConfigSchema (const) ── +declare const ReplicationConfigSchema: z.ZodObject<{ + enabled: z.ZodDefault; + replicaSetName: z.ZodOptional; + replicas: z.ZodOptional; + readPreference: z.ZodOptional>; + writeConcern: z.ZodOptional>; +}, z.core.$strip>; + +// ── ResolveApiOptions (interface) ── +interface ResolveApiOptions { + /** + * User-level export permission slot. `export` derives from `list` AND this + * flag. Always `true` this phase (there is no user-level export permission + * bit yet); wiring a real bit in is a zero-contract change (#3391 follow-up). + */ + userExportAllowed?: boolean; +} + +// ── ResolveRecordDisplayNameOptions (interface) ── +interface ResolveRecordDisplayNameOptions { + /** + * A view-declared title field that OVERRIDES the object's resolved display + * field for this render (e.g. a list view choosing a different column as the + * row label). When set, the record's value at this field is used directly. + */ + viewTitleField?: string; +} + +// ── ResolvedHook (type) ── +type ResolvedHook = z.output; + +// ── RetiredFilterOperatorGuidance (interface) ── +interface RetiredFilterOperatorGuidance { + /** + * The operator that replaces it, when one does. Absent when the retirement + * has no successor and the fix is to restructure the query. + */ + readonly to?: string; + /** + * The upgrade prescription, written as an instruction. This string IS the + * migration doc for whoever hits it — a refusal is expected to print it + * verbatim rather than paraphrase, so that five refusal sites say one thing. + */ + readonly why: string; +} + +// ── RowCrudActionOverride (type) ── +type RowCrudActionOverride = z.input; + +// ── RowCrudActionOverrideParsed (type) ── +type RowCrudActionOverrideParsed = z.infer; + +// ── RowCrudActionOverrideSchema (const) ── +declare const RowCrudActionOverrideSchema: z.ZodObject<{ + enabled: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; +}, z.core.$strict>; + +// ── RowCrudPredicates (interface) ── +interface RowCrudPredicates { + visibleWhen?: Expression | ExpressionInput; + disabledWhen?: Expression | ExpressionInput; +} + +// ── SCALAR_FILTER_HEAD_TYPES (const) ── +declare const SCALAR_FILTER_HEAD_TYPES: ReadonlySet; + +// ── SCHEMA_MODE_BELONGS_ON_DATASOURCE (const) ── +declare const SCHEMA_MODE_BELONGS_ON_DATASOURCE: string; + +// ── SEARCHABLE_ENUM_TYPES (const) ── +declare const SEARCHABLE_ENUM_TYPES: ReadonlySet; + +// ── SEARCHABLE_TEXTUAL_TYPES (const) ── +declare const SEARCHABLE_TEXTUAL_TYPES: ReadonlySet; + +// ── SEARCH_AUTO_EXCLUDED_FIELDS (const) ── +declare const SEARCH_AUTO_EXCLUDED_FIELDS: ReadonlySet; + +// ── SEARCH_AUTO_EXCLUDED_TYPES (const) ── +declare const SEARCH_AUTO_EXCLUDED_TYPES: ReadonlySet; + +// ── SEARCH_VIRTUAL_TYPES (const) ── +declare const SEARCH_VIRTUAL_TYPES: ReadonlySet; + +// ── SECRET_MASK (const) ── +declare const SECRET_MASK = "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022"; + +// ── SINGLE_OPTION_TYPES (const) ── +declare const SINGLE_OPTION_TYPES: ReadonlySet; + +// ── SQLDialect (type) ── +type SQLDialect = z.input; + +// ── SQLDialectSchema (const) ── +declare const SQLDialectSchema: z.ZodEnum<{ + sqlite: "sqlite"; + postgresql: "postgresql"; + mysql: "mysql"; + mariadb: "mariadb"; + mssql: "mssql"; + oracle: "oracle"; +}>; + +// ── SQLDriverConfig (type) ── +type SQLDriverConfig = z.input; + +// ── SQLDriverConfigParsed (type) ── +type SQLDriverConfigParsed = z.infer; + +// ── SQLDriverConfigSchema (const) ── +declare const SQLDriverConfigSchema: z.ZodObject<{ + name: z.ZodString; + capabilities: z.ZodObject<{ + queryDateGranularity: z.ZodOptional, z.ZodBoolean>>; + autonumber: z.ZodOptional; + batchSchemaSync: z.ZodOptional; + create: z.ZodOptional; + read: z.ZodOptional; + update: z.ZodOptional; + delete: z.ZodOptional; + bulkCreate: z.ZodOptional; + bulkUpdate: z.ZodOptional; + bulkDelete: z.ZodOptional; + transactions: z.ZodOptional; + savepoints: z.ZodOptional; + isolationLevels: z.ZodOptional; + queryFilters: z.ZodOptional; + querySorting: z.ZodOptional; + queryPagination: z.ZodOptional; + queryAggregations: z.ZodOptional; + queryWindowFunctions: z.ZodOptional; + querySubqueries: z.ZodOptional; + queryCTE: z.ZodOptional; + joins: z.ZodOptional; + fullTextSearch: z.ZodOptional; + jsonQuery: z.ZodOptional; + geospatialQuery: z.ZodOptional; + streaming: z.ZodOptional; + jsonFields: z.ZodOptional; + arrayFields: z.ZodOptional; + vectorSearch: z.ZodOptional; + schemaSync: z.ZodOptional; + migrations: z.ZodOptional; + indexes: z.ZodOptional; + connectionPooling: z.ZodOptional; + preparedStatements: z.ZodOptional; + queryCache: z.ZodOptional; + }, z.core.$strip>; + connectionString: z.ZodOptional; + poolConfig: z.ZodOptional; + max: z.ZodDefault; + idleTimeoutMillis: z.ZodDefault; + connectionTimeoutMillis: z.ZodDefault; + }, z.core.$strip>>; + type: z.ZodLiteral<"sql">; + dialect: z.ZodEnum<{ + sqlite: "sqlite"; + postgresql: "postgresql"; + mysql: "mysql"; + mariadb: "mariadb"; + mssql: "mssql"; + oracle: "oracle"; + }>; + dataTypeMapping: z.ZodObject<{ + text: z.ZodString; + number: z.ZodString; + boolean: z.ZodString; + date: z.ZodString; + datetime: z.ZodString; + json: z.ZodOptional; + uuid: z.ZodOptional; + binary: z.ZodOptional; + }, z.core.$strip>; + ssl: z.ZodDefault; + sslConfig: z.ZodOptional; + ca: z.ZodOptional; + cert: z.ZodOptional; + key: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── SQLiteAlterTableLimitations (const) ── +declare const SQLiteAlterTableLimitations: { + /** SQLite supports ADD COLUMN */ + readonly supportsAddColumn: true; + /** SQLite supports RENAME COLUMN (3.25.0+) */ + readonly supportsRenameColumn: true; + /** SQLite supports DROP COLUMN (3.35.0+) */ + readonly supportsDropColumn: true; + /** SQLite does NOT support MODIFY/ALTER COLUMN type */ + readonly supportsModifyColumn: false; + /** SQLite does NOT support adding constraints to existing columns */ + readonly supportsAddConstraint: false; + /** + * When an unsupported alteration is needed, the migration planner + * must use the 12-step table rebuild strategy: + * 1. CREATE new table with desired schema + * 2. Copy data from old table + * 3. DROP old table + * 4. RENAME new table to old name + */ + readonly rebuildStrategy: "create_copy_drop_rename"; +}; + +// ── SQLiteDataTypeMappingDefaults (const) ── +declare const SQLiteDataTypeMappingDefaults: DataTypeMapping; + +// ── SSLConfig (type) ── +type SSLConfig = z.input; + +// ── SSLConfigParsed (type) ── +type SSLConfigParsed = z.infer; + +// ── SSLConfigSchema (const) ── +declare const SSLConfigSchema: z.ZodObject<{ + rejectUnauthorized: z.ZodDefault; + ca: z.ZodOptional; + cert: z.ZodOptional; + key: z.ZodOptional; +}, z.core.$strip>; + +// ── SSL_DETAIL_BELONGS_ON_DATASOURCE (const) ── +declare const SSL_DETAIL_BELONGS_ON_DATASOURCE: string; + +// ── STACK_KEY_GUIDANCE (const) ── +declare const STACK_KEY_GUIDANCE: Readonly>; + +// ── STACK_RUNTIME_MEMBERS (const) ── +declare const STACK_RUNTIME_MEMBERS: readonly ["onEnable", "functions"]; + +// ── STRING_VALUE_TYPES (const) ── +declare const STRING_VALUE_TYPES: ReadonlySet; + +// ── STRUCTURED_JSON_TYPES (const) ── +declare const STRUCTURED_JSON_TYPES: ReadonlySet; + +// ── SYS_ACTIVITY_BUILTIN_TYPES (const) ── +declare const SYS_ACTIVITY_BUILTIN_TYPES: readonly ["created", "updated", "deleted", "commented", "mentioned", "shared", "assigned", "completed", "scheduled", "login", "logout", "system"]; + +// ── Scalar (type) ── +type Scalar = string | number | boolean | Date | null; + +// ── SchemaMode (type) ── +type SchemaMode = z.input; + +// ── SchemaModeSchema (const) ── +declare const SchemaModeSchema: z.ZodEnum<{ + external: "external"; + managed: "managed"; + "validate-only": "validate-only"; +}>; + +// ── ScriptBody (type) ── +type ScriptBody = z.input; + +// ── ScriptBodyParsed (type) ── +type ScriptBodyParsed = z.infer; + +// ── ScriptBodySchema (const) ── +declare const ScriptBodySchema: z.ZodObject<{ + language: z.ZodLiteral<"js">; + source: z.ZodString; + capabilities: z.ZodDefault>>; + timeoutMs: z.ZodOptional; + memoryMb: z.ZodOptional; +}, z.core.$strict>; + +// ── ScriptValidation (type) ── +type ScriptValidation = z.input; + +// ── ScriptValidationParsed (type) ── +type ScriptValidationParsed = z.infer; + +// ── ScriptValidationSchema (const) ── +declare const ScriptValidationSchema: z.ZodObject<{ + type: z.ZodLiteral<"script">; + condition: z.ZodUnion>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + active: z.ZodDefault; + events: z.ZodDefault>>; + priority: z.ZodDefault; + tags: z.ZodOptional>; + severity: z.ZodDefault>; + message: z.ZodString; +}, z.core.$strict>; + +// ── SearchFieldMeta (interface) ── +interface SearchFieldMeta { + type?: string; + hidden?: boolean; + options?: Array<{ + label?: string; + value: unknown; + } | string> | unknown; +} + +// ── SearchFieldResolutionOptions (interface) ── +interface SearchFieldResolutionOptions { + /** The object's field map (name → metadata). */ + fields: Record; + /** Object-declared `searchableFields` (the canonical default set). */ + searchableFields?: string[]; + /** Validated `$searchFields` override — intersected with the allowed set. + * Accepts an array or a comma-separated string (the form a URL query param + * arrives as). */ + requestedFields?: string | string[]; + /** Preferred display field, placed first in the auto-default. */ + displayField?: string; +} + +// ── Seed (type) ── +type Seed = z.input; + +// ── SeedIdentity (type) ── +type SeedIdentity = z.input; + +// ── SeedIdentitySchema (const) ── +declare const SeedIdentitySchema: z.ZodObject<{ + user: z.ZodOptional; + email: z.ZodOptional; + }, z.core.$strip>>; + org: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── SeedImportMode (type) ── +type SeedImportMode = z.input; + +// ── SeedLoadResult (type) ── +type SeedLoadResult = z.input; + +// ── SeedLoadResultParsed (type) ── +type SeedLoadResultParsed = z.infer; + +// ── SeedLoadResultSchema (const) ── +declare const SeedLoadResultSchema: z.ZodObject<{ + object: z.ZodString; + mode: z.ZodEnum<{ + replace: "replace"; + insert: "insert"; + update: "update"; + upsert: "upsert"; + ignore: "ignore"; + }>; + inserted: z.ZodNumber; + updated: z.ZodNumber; + skipped: z.ZodNumber; + errored: z.ZodNumber; + total: z.ZodNumber; + referencesResolved: z.ZodNumber; + referencesDeferred: z.ZodNumber; + referencesDropped: z.ZodDefault; + summariesStale: z.ZodDefault; + errors: z.ZodDefault>>; +}, z.core.$strip>; + +// ── SeedLoaderConfig (type) ── +type SeedLoaderConfig = z.input; + +// ── SeedLoaderConfigParsed (type) ── +type SeedLoaderConfigParsed = z.infer; + +// ── SeedLoaderConfigSchema (const) ── +declare const SeedLoaderConfigSchema: z.ZodObject<{ + dryRun: z.ZodDefault; + haltOnError: z.ZodDefault; + multiPass: z.ZodDefault; + defaultMode: z.ZodDefault>; + batchSize: z.ZodDefault; + transaction: z.ZodDefault; + env: z.ZodOptional>; + locale: z.ZodOptional; + organizationId: z.ZodOptional; + identity: z.ZodOptional; + email: z.ZodOptional; + }, z.core.$strip>>; + org: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── SeedLoaderRequest (type) ── +type SeedLoaderRequest = z.input; + +// ── SeedLoaderRequestParsed (type) ── +type SeedLoaderRequestParsed = z.infer; + +// ── SeedLoaderRequestSchema (const) ── +declare const SeedLoaderRequestSchema: z.ZodObject<{ + seeds: z.ZodArray>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>; + config: z.ZodDefault; + haltOnError: z.ZodDefault; + multiPass: z.ZodDefault; + defaultMode: z.ZodDefault>; + batchSize: z.ZodDefault; + transaction: z.ZodDefault; + env: z.ZodOptional>; + locale: z.ZodOptional; + organizationId: z.ZodOptional; + identity: z.ZodOptional; + email: z.ZodOptional; + }, z.core.$strip>>; + org: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── SeedLoaderResult (type) ── +type SeedLoaderResult = z.input; + +// ── SeedLoaderResultParsed (type) ── +type SeedLoaderResultParsed = z.infer; + +// ── SeedLoaderResultSchema (const) ── +declare const SeedLoaderResultSchema: z.ZodObject<{ + success: z.ZodBoolean; + dryRun: z.ZodBoolean; + dependencyGraph: z.ZodObject<{ + nodes: z.ZodArray; + references: z.ZodArray; + fieldType: z.ZodEnum<{ + lookup: "lookup"; + master_detail: "master_detail"; + user: "user"; + }>; + multiple: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + insertOrder: z.ZodArray; + circularDependencies: z.ZodDefault>>; + }, z.core.$strip>; + results: z.ZodArray; + inserted: z.ZodNumber; + updated: z.ZodNumber; + skipped: z.ZodNumber; + errored: z.ZodNumber; + total: z.ZodNumber; + referencesResolved: z.ZodNumber; + referencesDeferred: z.ZodNumber; + referencesDropped: z.ZodDefault; + summariesStale: z.ZodDefault; + errors: z.ZodDefault>>; + }, z.core.$strip>>; + errors: z.ZodArray>; + summary: z.ZodObject<{ + objectsProcessed: z.ZodNumber; + totalRecords: z.ZodNumber; + totalInserted: z.ZodNumber; + totalUpdated: z.ZodNumber; + totalSkipped: z.ZodNumber; + totalErrored: z.ZodNumber; + totalReferencesResolved: z.ZodNumber; + totalReferencesDeferred: z.ZodNumber; + totalReferencesDropped: z.ZodDefault; + totalSummariesStale: z.ZodDefault; + circularDependencyCount: z.ZodNumber; + durationMs: z.ZodNumber; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── SeedMode (const) ── +declare const SeedMode: z.ZodEnum<{ + replace: "replace"; + insert: "insert"; + update: "update"; + upsert: "upsert"; + ignore: "ignore"; +}>; + +// ── SeedParsed (type) ── +type SeedParsed = z.infer; + +// ── SeedSchema (const) ── +declare const SeedSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; +}, z.core.$strict>; + +// ── SelectOption (type) ── +type SelectOption = z.input; + +// ── SelectOptionParsed (type) ── +type SelectOptionParsed = z.infer; + +// ── SelectOptionSchema (const) ── +declare const SelectOptionSchema: z.ZodObject<{ + label: z.ZodString; + value: z.ZodString; + description: z.ZodOptional; + color: z.ZodOptional; + default: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; +}, z.core.$strict>; + +// ── ServiceObject (type) ── +type ServiceObject = z.input; + +// ── ServiceObjectParsed (type) ── +type ServiceObjectParsed = z.infer; + +// ── SetOperatorSchema (const) ── +declare const SetOperatorSchema: z.ZodObject<{ + $in: z.ZodOptional>; + $nin: z.ZodOptional>; +}, z.core.$strip>; + +// ── ShardingConfig (type) ── +type ShardingConfig = z.input; + +// ── ShardingConfigParsed (type) ── +type ShardingConfigParsed = z.infer; + +// ── ShardingConfigSchema (const) ── +declare const ShardingConfigSchema: z.ZodObject<{ + enabled: z.ZodDefault; + shardKey: z.ZodOptional; + shardingStrategy: z.ZodOptional>; + numShards: z.ZodOptional; +}, z.core.$strip>; + +// ── SortNode (type) ── +type SortNode = z.input; + +// ── SortNodeParsed (type) ── +type SortNodeParsed = z.infer; + +// ── SortNodeSchema (const) ── +declare const SortNodeSchema: z.ZodObject<{ + field: z.ZodString; + order: z.ZodDefault>; +}, z.core.$strict>; + +// ── SpecialOperatorSchema (const) ── +declare const SpecialOperatorSchema: z.ZodObject<{ + $null: z.ZodOptional; + $exists: z.ZodOptional; +}, z.core.$strip>; + +// ── SqlAutoMigrate (type) ── +type SqlAutoMigrate = z.input; + +// ── SqlAutoMigrateSchema (const) ── +declare const SqlAutoMigrateSchema: z.ZodEnum<{ + off: "off"; + safe: "safe"; +}>; + +// ── SqlDialect (type) ── +type SqlDialect = 'postgres' | 'mysql' | 'sqlite' | 'snowflake' | 'bigquery' | 'mongo'; + +// ── SqliteConfig (type) ── +type SqliteConfig = z.input; + +// ── SqliteConfigParsed (type) ── +type SqliteConfigParsed = z.infer; + +// ── SqliteConfigSchema (const) ── +declare const SqliteConfigSchema: z.ZodObject<{ + filename: z.ZodDefault; + autoMigrate: z.ZodOptional>; +}, z.core.$strict>; + +// ── SqliteWasmConfig (type) ── +type SqliteWasmConfig = z.input; + +// ── SqliteWasmConfigParsed (type) ── +type SqliteWasmConfigParsed = z.infer; + +// ── SqliteWasmConfigSchema (const) ── +declare const SqliteWasmConfigSchema: z.ZodObject<{ + filename: z.ZodDefault; + persist: z.ZodOptional, z.ZodLiteral<"on-write">, z.ZodString]>>; +}, z.core.$strict>; + +// ── SqliteWasmPersistMode (type) ── +type SqliteWasmPersistMode = z.input; + +// ── SqliteWasmPersistModeSchema (const) ── +declare const SqliteWasmPersistModeSchema: z.ZodUnion, z.ZodLiteral<"on-write">, z.ZodString]>; + +// ── StateMachineValidation (type) ── +type StateMachineValidation = z.input; + +// ── StateMachineValidationParsed (type) ── +type StateMachineValidationParsed = z.infer; + +// ── StateMachineValidationSchema (const) ── +declare const StateMachineValidationSchema: z.ZodObject<{ + type: z.ZodLiteral<"state_machine">; + field: z.ZodString; + transitions: z.ZodRecord>; + initialStates: z.ZodOptional>; + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + active: z.ZodDefault; + events: z.ZodDefault>>; + priority: z.ZodDefault; + tags: z.ZodOptional>; + severity: z.ZodDefault>; + message: z.ZodString; +}, z.core.$strict>; + +// ── StringOperatorSchema (const) ── +declare const StringOperatorSchema: z.ZodObject<{ + $contains: z.ZodOptional; + $notContains: z.ZodOptional; + $startsWith: z.ZodOptional; + $endsWith: z.ZodOptional; + $icontains: z.ZodOptional; + $like: z.ZodOptional; + $ilike: z.ZodOptional; +}, z.core.$strip>; + +// ── SysActivityBuiltinType (type) ── +type SysActivityBuiltinType = (typeof SYS_ACTIVITY_BUILTIN_TYPES)[number]; + +// ── TEMPORAL_CASES (const) ── +declare const TEMPORAL_CASES: readonly TemporalCase[]; + +// ── TEMPORAL_NOW (const) ── +declare const TEMPORAL_NOW = "2026-07-28T12:00:00.000Z"; + +// ── TEMPORAL_ROWS (const) ── +declare const TEMPORAL_ROWS: readonly TemporalRow[]; + +// ── TEMPORAL_TIME_CASES (const) ── +declare const TEMPORAL_TIME_CASES: readonly TemporalTimeCase[]; + +// ── TEMPORAL_TIME_ROWS (const) ── +declare const TEMPORAL_TIME_ROWS: readonly TemporalTimeRow[]; + +// ── TENANT_SCOPE_FIELD_DEF (const) ── +declare const TENANT_SCOPE_FIELD_DEF: Readonly>; + +// ── TEXT_FILTER_OPERATORS (const) ── +declare const TEXT_FILTER_OPERATORS: readonly ["$contains", "$notContains", "$startsWith", "$endsWith", "$icontains", "$like", "$ilike"]; + +// ── TEXT_OPERATOR_DOOR_CASES (const) ── +declare const TEXT_OPERATOR_DOOR_CASES: readonly TextOperatorDoorCase[]; + +// ── TEXT_OPERATOR_DOOR_FIXTURE (const) ── +declare const TEXT_OPERATOR_DOOR_FIXTURE: { + readonly name: "text_door_probe"; + readonly label: "Text-operator door probe"; + readonly fields: Readonly>; +}; + +// ── TEXT_OPERATOR_DOOR_FIXTURE_FIELDS (const) ── +declare const TEXT_OPERATOR_DOOR_FIXTURE_FIELDS: readonly TextOperatorDoorFixtureField[]; + +// ── TEXT_OPERATOR_DOOR_FIXTURE_OBJECT (const) ── +declare const TEXT_OPERATOR_DOOR_FIXTURE_OBJECT = "text_door_probe"; + +// ── TEXT_OPERATOR_DOOR_PASSING_TYPES (const) ── +declare const TEXT_OPERATOR_DOOR_PASSING_TYPES: ReadonlySet; + +// ── TEXT_OPERATOR_DOOR_REFUSED_TYPES (const) ── +declare const TEXT_OPERATOR_DOOR_REFUSED_TYPES: ReadonlySet; + +// ── TEXT_OPERATOR_DOOR_TYPE_CLASSES (const) ── +declare const TEXT_OPERATOR_DOOR_TYPE_CLASSES: readonly TextOperatorDoorTypeClass[]; + +// ── TITLE_ELIGIBLE (const) ── +declare const TITLE_ELIGIBLE: ReadonlySet; + +// ── TITLE_ELIGIBLE_TYPES (const) ── +declare const TITLE_ELIGIBLE_TYPES: ReadonlySet; + +// ── TITLE_INELIGIBLE_TYPES (const) ── +declare const TITLE_INELIGIBLE_TYPES: ReadonlySet; + +// ── TemporalCase (interface) ── +interface TemporalCase { + /** Stable identifier, usable as a test name. */ + name: string; + /** + * Which fixture column — and therefore which declared field type — the + * filter is applied to. A typed backend declares the column accordingly; a + * type-blind one just reads the property. + */ + field: 'at' | 'on'; + kind: TemporalFieldKind; + filter: FilterCondition; + /** + * The same filter spelled with relative-date tokens — see "The + * relative-token axis" in the module doc. Resolve against + * {@link TEMPORAL_NOW}; the resolved filter must reach {@link expected}. + */ + tokenFilter?: FilterCondition; + /** + * The analytics `timeDimensions.dateRange` spelling of the same window + * (tokens allowed) for the dashboard-window path — the surface #3650 broke. + */ + dateRange?: [string, string]; + /** Ids of matching rows, ascending. */ + expected: string[]; + /** Why the case is here — surfaced in failure output. */ + note?: string; +} + +// ── TemporalFieldKind (type) ── +type TemporalFieldKind = 'datetime' | 'date'; + +// ── TemporalRow (interface) ── +interface TemporalRow { + id: string; + /** `Field.datetime` — canonical UTC ISO. */ + at: string; + /** `Field.date` — the calendar day of `at`, timezone-naive. */ + on: string; + /** Writer-population seeding hint for drivers — see {@link TemporalWriterForm}. */ + writerForm: TemporalWriterForm; + /** Why the row is in the fixture — surfaced when a case fails. */ + why: string; +} + +// ── TemporalTimeCase (interface) ── +interface TemporalTimeCase { + /** Stable identifier, usable as a test name. */ + name: string; + filter: FilterCondition; + /** Ids of matching rows, ascending. */ + expected: string[]; + /** Why the case is here — surfaced in failure output. */ + note?: string; +} + +// ── TemporalTimeRow (interface) ── +interface TemporalTimeRow { + id: string; + /** `Field.time` — canonical wall-clock text. */ + at: string; + /** + * Writer-population seeding hint — the D-E4 axis, one field type over. See + * {@link TemporalWriterForm}. `native` means a driver consumer writes the + * row as a JS `Date` whose UTC time-of-day IS `at` (build it from + * `1970-01-01T${at}Z`), which is what an SDK caller or a bound `NOW()` + * produces; `wire` means the canonical text a REST/JSON write delivers. + * + * Seeding both is the point. A fixture written entirely in canonical text + * passes even on a backend with NO time convention at all, because both + * sides of every comparison happen to be the same string — so it would + * assert nothing. The mixed column is what #3994 measured on SQL, and it is + * the shape that must not survive on any other backend either. + */ + writerForm: TemporalWriterForm; + /** Why the row is in the fixture — surfaced when a case fails. */ + why: string; +} + +// ── TemporalWriterForm (type) ── +type TemporalWriterForm = 'wire' | 'native'; + +// ── TenancyConfig (type) ── +type TenancyConfig = z.input; + +// ── TenancyConfigSchema (const) ── +declare const TenancyConfigSchema: z.ZodObject<{ + enabled: z.ZodBoolean; + tenantField: z.ZodOptional; + organizationField: z.ZodOptional; +}, z.core.$strict>; + +// ── TextFilterOperator (type) ── +type TextFilterOperator = (typeof TEXT_FILTER_OPERATORS)[number]; + +// ── TextOperatorDoorCase (type) ── +type TextOperatorDoorCase = TextOperatorDoorRefusalCase | TextOperatorDoorPassesCase | TextOperatorDoorDeferredCase; + +// ── TextOperatorDoorDeferredCase (interface) ── +interface TextOperatorDoorDeferredCase extends TextOperatorDoorCaseBase { + readonly verdict: 'deferred'; +} + +// ── TextOperatorDoorFieldMeta (interface) ── +interface TextOperatorDoorFieldMeta { + type: string; + /** `formula` only — the declared return type, when authoring could prove one. */ + returnType?: string | undefined; +} + +// ── TextOperatorDoorFixtureField (interface) ── +interface TextOperatorDoorFixtureField { + readonly name: string; + readonly type: string; + /** Reference types point back at the fixture object itself. */ + readonly reference?: string; + /** `formula` — a CEL expression, present so the field is a legal declaration. */ + readonly expression?: string; + /** `formula` — the declared return type under test, or absent for the deferred row. */ + readonly returnType?: 'number' | 'text' | 'boolean' | 'date'; + /** `summary` — a roll-up declaration, present so the field is a legal declaration. */ + readonly summaryOperations?: { + readonly object: string; + readonly field: string; + readonly function: 'count'; + }; +} + +// ── TextOperatorDoorPassesCase (interface) ── +interface TextOperatorDoorPassesCase extends TextOperatorDoorCaseBase { + readonly verdict: 'passes'; +} + +// ── TextOperatorDoorRefusalCase (interface) ── +interface TextOperatorDoorRefusalCase extends TextOperatorDoorCaseBase { + readonly verdict: 'door-refusal'; + /** The ADR-0112 code the refusal must carry … */ + readonly code: 'INVALID_FILTER'; + /** … beside this status. */ + readonly status: 400; + /** Substrings the refusal message must contain: the key, the declared type (and return type), the operator. */ + readonly mustMention: readonly string[]; +} + +// ── TextOperatorDoorTypeClass (interface) ── +interface TextOperatorDoorTypeClass { + /** The class, named after the `field-value.zod.ts` set it references. */ + readonly name: string; + /** Its members — the existing export, never a re-listing. */ + readonly types: ReadonlySet; + /** The door's verdict for every member, or `by-return-type` for `formula`. */ + readonly verdict: TextOperatorDoorVerdict | 'by-return-type'; + /** Why — surfaced in failure output and in the verdict matrix. */ + readonly note: string; +} + +// ── TextOperatorDoorVerdict (type) ── +type TextOperatorDoorVerdict = 'door-refusal' | 'passes' | 'deferred'; + +// ── TimeUpdateInterval (const) ── +declare const TimeUpdateInterval: z.ZodEnum<{ + year: "year"; + month: "month"; + day: "day"; + week: "week"; + quarter: "quarter"; +}>; + +// ── TimeUpdateInterval (type) ── +type TimeUpdateInterval = z.input; + +// ── TitleEligibleFieldDef (interface) ── +interface TitleEligibleFieldDef { + type?: string; + /** + * For `formula` fields: the declared result type. The framework field schema + * carries this as `returnType` (number/text/boolean/date); `valueType` is also + * accepted for forward/cross-repo compatibility. A formula is title-eligible + * ONLY when this is `text`. + */ + returnType?: string; + valueType?: string; + [k: string]: unknown; +} + +// ── TransformType (const) ── +declare const TransformType: z.ZodEnum<{ + map: "map"; + join: "join"; + split: "split"; + none: "none"; + lookup: "lookup"; + javascript: "javascript"; + constant: "constant"; +}>; + +// ── TransformType (type) ── +type TransformType = z.input; + +// ── TursoConfig (type) ── +type TursoConfig = z.input; + +// ── TursoConfigParsed (type) ── +type TursoConfigParsed = z.infer; + +// ── TursoConfigSchema (const) ── +declare const TursoConfigSchema: z.ZodObject<{ + url: z.ZodString; + authToken: z.ZodOptional; + encryptionKey: z.ZodOptional; + concurrency: z.ZodOptional; + syncUrl: z.ZodOptional; + sync: z.ZodOptional; + onConnect: z.ZodOptional; + }, z.core.$strict>>; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + mode: z.ZodOptional>; +}, z.core.$strict>; + +// ── TursoDriverSpec (const) ── +declare const TursoDriverSpec: { + id: string; + label: string; + description: string; + icon: string; + readonly configSchema: Record; +}; + +// ── TursoTransportMode (type) ── +type TursoTransportMode = z.input; + +// ── TursoTransportModeSchema (const) ── +declare const TursoTransportModeSchema: z.ZodEnum<{ + local: "local"; + remote: "remote"; + replica: "replica"; +}>; + +// ── UNRESOLVED_PLACEHOLDER_REFUSED (const) ── +declare const UNRESOLVED_PLACEHOLDER_REFUSED: (key: string) => string; + +// ── URL_CREDENTIAL_QUERY_PARAM_REFUSED (const) ── +declare const URL_CREDENTIAL_QUERY_PARAM_REFUSED: (key: string, param: string) => string; + +// ── URL_EMBEDDED_CREDENTIAL_REFUSED (const) ── +declare const URL_EMBEDDED_CREDENTIAL_REFUSED: (key: string) => string; + +// ── UniqueScope (type) ── +type UniqueScope = boolean | 'global' | 'organization'; + +// ── UniqueScopeSchema (const) ── +declare const UniqueScopeSchema: z.ZodUnion, z.ZodLiteral<"organization">]>; + +// ── UnknownAuthoringKeyFinding (interface) ── +interface UnknownAuthoringKeyFinding { + /** Dotted path to the offending key, e.g. `objects.crm_case.fields.owner.pii`. */ + path: string; + surface: AuthoringKeySurface; + /** The key the schema does not declare. */ + key: string; + /** + * The canonical key this is a recognisable spelling of, when one is known. + * Comes from {@link FIELD_KEY_GUIDANCE} / {@link OBJECT_KEY_GUIDANCE} first, + * then from an edit-distance match against the declared keys. + */ + suggestion?: string; + /** + * Prescriptive sentence for a key that was RETIRED rather than renamed — + * where "did you mean X" would be wrong because there is no X. + */ + guidance?: string; +} + +// ── UnorderedPaginationConformanceCase (interface) ── +interface UnorderedPaginationConformanceCase { + /** Case label, used as the test name. */ + name: string; + /** Page size to walk the twelve rows with. */ + pageSize: number; +} + +// ── VALID_AST_OPERATORS (const) ── +declare const VALID_AST_OPERATORS: Set; + +// ── VALUE_DOMAIN_FIELD_TYPES (const) ── +declare const VALUE_DOMAIN_FIELD_TYPES: ReadonlySet; + +// ── VALUE_ROUNDTRIP_CASES (const) ── +declare const VALUE_ROUNDTRIP_CASES: readonly ValueRoundTripCase[]; + +// ── VALUE_ROUNDTRIP_COLLISION_PAIRS (const) ── +declare const VALUE_ROUNDTRIP_COLLISION_PAIRS: readonly (readonly [string, string])[]; + +// ── VALUE_ROUNDTRIP_FIELDS (const) ── +declare const VALUE_ROUNDTRIP_FIELDS: { + readonly label: { + readonly type: "string"; + }; + readonly v_json: { + readonly type: "json"; + }; + readonly v_multi: { + readonly type: "lookup"; + readonly multiple: true; + }; + readonly v_string: { + readonly type: "string"; + }; + readonly v_number: { + readonly type: "number"; + }; + readonly v_boolean: { + readonly type: "boolean"; + }; +}; + +// ── VALUE_ROUNDTRIP_ROWS (const) ── +declare const VALUE_ROUNDTRIP_ROWS: readonly Record[]; + +// ── ValidationRule (type) ── +type ValidationRule = z.input; + +// ── ValidationRuleSchema (const) ── +declare const ValidationRuleSchema: z.ZodType; + +// ── ValueForm (type) ── +type ValueForm = 'stored' | 'expanded'; + +// ── ValueRoundTripCase (interface) ── +interface ValueRoundTripCase { + /** Stable identifier — the row's `label`, and usable as a test name. */ + readonly name: string; + /** Which declared column this value is written into. */ + readonly column: ValueRoundTripColumn; + /** The exact JS value handed to `create()`. The read must `toStrictEqual` it. */ + readonly wrote: unknown; + /** Why the case is here — surfaced in failure output. */ + readonly note: string; +} + +// ── ValueRoundTripColumn (type) ── +type ValueRoundTripColumn = 'v_json' | 'v_multi' | 'v_string' | 'v_number' | 'v_boolean'; + +// ── ValueShapeFieldDef (interface) ── +interface ValueShapeFieldDef { + type: string; + multiple?: boolean; + options?: Array<{ + value: string | number; + } | string | number>; +} + +// ── ZeroLimitConformanceCase (interface) ── +interface ZeroLimitConformanceCase { + /** Case label, used as the test name. */ + name: string; + /** The query, exactly as a caller writes it. */ + query: { + limit?: number; + offset?: number; + }; + /** + * How many of the twelve {@link PAGINATION_ROWS} must come back. A count + * rather than an id set on purpose: `offset` with no `orderBy` leaves + * *which* rows unspecified, and that is + * {@link PAGINATION_UNORDERED_CASES}' question, not this one. + */ + expectedRowCount: number; +} + +// ── analyticsDateRangeRefusalMessage (function) ── +declare function analyticsDateRangeRefusalMessage(input: unknown, origin: 'schema' | 'runtime'): string; + +// ── apiExposureDenialReason (function) ── +declare function apiExposureDenialReason(enable: EnableLike | null | undefined, operation: string, opts?: OperationCheckOptions): ApiExposureDenialReason | null; + +// ── asciiCaseInsensitiveContains (function) ── +declare function asciiCaseInsensitiveContains(haystack: string, needle: string): boolean; + +// ── asciiCaseInsensitiveRegexSource (function) ── +declare function asciiCaseInsensitiveRegexSource(comparand: string): string; + +// ── assertListComparandShapes (function) ── +declare function assertListComparandShapes(node: unknown, context?: string, path?: string): void; + +// ── bareDateRangePresetComparandMessage (function) ── +declare function bareDateRangePresetComparandMessage(preset: DateRangePreset, operator: string): string; + +// ── canServeApiOperation (function) ── +declare function canServeApiOperation(enable: EnableLike | null | undefined, operation: string, opts?: OperationCheckOptions): boolean; + +// ── canonicalAstOperator (function) ── +declare function canonicalAstOperator(op: string): string; + +// ── canonicalizeSqlType (function) ── +declare function canonicalizeSqlType(rawType: string, dialect?: SqlDialect): CanonicalSqlType; + +// ── checkLiteralDefaultValue (function) ── +declare function checkLiteralDefaultValue(def: ValueShapeFieldDef, dv: unknown): LiteralDefaultValueVerdict; + +// ── checkManagedApiMethodAffordances (function) ── +declare function checkManagedApiMethodAffordances(schema: unknown): ManagedApiMethodConflict[]; + +// ── classifyDottedFilterHead (function) ── +declare function classifyDottedFilterHead(meta: DottedFilterHeadMeta | undefined | null): DottedFilterHeadClass; + +// ── classifyFilterToken (function) ── +declare function classifyFilterToken(value: unknown): { + kind: 'context'; + token: ContextToken; +} | { + kind: 'date-macro'; + token: string; +} | { + kind: 'unknown'; + token: string; + suggestion?: ContextToken; +} | null; + +// ── containsUnresolvedPlaceholder (function) ── +declare function containsUnresolvedPlaceholder(value: string): boolean; + +// ── countAuthorableFields (function) ── +declare function countAuthorableFields(def: unknown): number; + +// ── credentialFreeMongoOptions (function) ── +declare function credentialFreeMongoOptions(schema: S, key: string): S; + +// ── credentialFreeUrl (function) ── +declare function credentialFreeUrl(schema: S, key: string, credentialQueryParams?: readonly string[]): S; + +// ── credentialQueryParamOf (function) ── +declare function credentialQueryParamOf(rawPair: string, params: readonly string[]): string | undefined; + +// ── defaultAggregateFor (function) ── +declare function defaultAggregateFor(fieldType: string | undefined): 'sum' | 'avg'; + +// ── defaultValueTokenIssue (function) ── +declare function defaultValueTokenIssue(def: ValueShapeFieldDef & { + name?: string; + reference?: string; +}, dv: unknown): string | null; + +// ── defineCube (function) ── +declare function defineCube(config: z.input): CubeParsed; + +// ── defineDatasource (function) ── +declare function defineDatasource(config: z.input): DatasourceParsed; + +// ── defineHook (function) ── +declare function defineHook(config: Hook): ResolvedHook; + +// ── defineMapping (function) ── +declare function defineMapping(config: z.input): MappingParsed; + +// ── defineObjectExtension (function) ── +declare function defineObjectExtension(config: z.input): ObjectExtensionParsed; + +// ── defineSeed (function) ── +declare function defineSeed; +}>(objectDef: TObj, config: Omit & { + records: Array>; +}): Seed; + +// ── deriveFieldGroupLayout (function) ── +declare function deriveFieldGroupLayout(def: unknown): FieldGroupSection[] | null; + +// ── deriveRecordFlowSurface (function) ── +declare function deriveRecordFlowSurface(def: unknown, flow: RecordFlow, opts?: RecordSurfaceOptions): RecordFlowSurface; + +// ── deriveRecordSurface (function) ── +declare function deriveRecordSurface(def: unknown, opts?: RecordSurfaceOptions): RecordSurface; + +// ── describeManagedApiMethodConflicts (function) ── +declare function describeManagedApiMethodConflicts(conflicts: readonly ManagedApiMethodConflict[]): string; + +// ── discriminateDefaultValueShape (function) ── +declare function discriminateDefaultValueShape(dv: unknown): DefaultValueShape; + +// ── driverConfigJsonSchema (function) ── +declare function driverConfigJsonSchema(schema: z.ZodType): () => Record; + +// ── driverHasLocalDefault (function) ── +declare function driverHasLocalDefault(driver: unknown): boolean; + +// ── effectiveOperationsArray (function) ── +declare function effectiveOperationsArray(eff: EffectiveApiMethods): ApiOperation[]; + +// ── emptyGroupValueFor (function) ── +declare function emptyGroupValueFor(aggregate: string | undefined): 0 | undefined; + +// ── fieldForm (const) ── +declare const fieldForm: { + type: "split" | "simple" | "modal" | "drawer" | "tabbed" | "wizard"; + layout?: "grid" | "horizontal" | "inline" | "vertical" | undefined; + columns?: number | undefined; + title?: string | undefined; + description?: string | undefined; + defaultTab?: string | undefined; + tabPosition?: "top" | "left" | "right" | "bottom" | undefined; + allowSkip?: boolean | undefined; + showStepIndicator?: boolean | undefined; + splitDirection?: "horizontal" | "vertical" | undefined; + splitSize?: number | undefined; + splitResizable?: boolean | undefined; + drawerSide?: "top" | "left" | "right" | "bottom" | undefined; + drawerWidth?: string | undefined; + modalSize?: "default" | "full" | "sm" | "lg" | "xl" | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + sections?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + groups?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + subforms?: { + childObject: string; + relationshipField?: string | undefined; + columns?: any[] | undefined; + amountField?: string | undefined; + totalField?: string | undefined; + title?: string | undefined; + addLabel?: string | undefined; + minRows?: number | undefined; + maxRows?: number | undefined; + }[] | undefined; + defaultSort?: undefined; + sharing?: { + enabled: boolean; + allowAnonymous: boolean; + publicLink?: string | undefined; + password?: string | undefined; + allowedDomains?: string[] | undefined; + expiresAt?: string | undefined; + } | undefined; + submitBehavior?: { + kind: "thank-you"; + title?: string | undefined; + message?: string | undefined; + } | { + kind: "redirect"; + url: string; + delayMs?: number | undefined; + } | { + kind: "continue"; + } | { + kind: "next-record"; + } | undefined; + buttons?: { + submit?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + cancel?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + reset?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + } | undefined; + defaults?: Record | undefined; + aria?: undefined; +}; + +// ── filterSubtreeProvenanceOf (function) ── +declare function filterSubtreeProvenanceOf(node: unknown): FilterSubtreeProvenance | null; + +// ── foldAsciiCase (function) ── +declare function foldAsciiCase(value: string): string; + +// ── foldQueryAliasSlots (function) ── +declare function foldQueryAliasSlots(options: Record, slots: readonly QueryAliasSlot[], onConflict: (conflict: QueryAliasConflict) => void): Record; + +// ── formatUnknownAuthoringKey (function) ── +declare function formatUnknownAuthoringKey(f: UnknownAuthoringKeyFinding): string; + +// ── getDriverConfigJsonSchemaById (function) ── +declare function getDriverConfigJsonSchemaById(id: BuiltinDriverId): Record; + +// ── getDriverConfigSchema (function) ── +declare function getDriverConfigSchema(driver: unknown): z.ZodType | undefined; + +// ── getMemoryConfigJsonSchema (const) ── +declare const getMemoryConfigJsonSchema: () => Record; + +// ── getMongoConfigJsonSchema (const) ── +declare const getMongoConfigJsonSchema: () => Record; + +// ── getMysqlConfigJsonSchema (const) ── +declare const getMysqlConfigJsonSchema: () => Record; + +// ── getPostgresConfigJsonSchema (const) ── +declare const getPostgresConfigJsonSchema: () => Record; + +// ── getSqliteConfigJsonSchema (const) ── +declare const getSqliteConfigJsonSchema: () => Record; + +// ── getSqliteWasmConfigJsonSchema (const) ── +declare const getSqliteWasmConfigJsonSchema: () => Record; + +// ── getTursoConfigJsonSchema (const) ── +declare const getTursoConfigJsonSchema: () => Record; + +// ── hasDanglingLikeEscape (function) ── +declare function hasDanglingLikeEscape(pattern: string): boolean; + +// ── hasDynamicTokens (function) ── +declare function hasDynamicTokens(tokens: AutonumberToken[]): boolean; + +// ── hookForm (const) ── +declare const hookForm: { + type: "split" | "simple" | "modal" | "drawer" | "tabbed" | "wizard"; + layout?: "grid" | "horizontal" | "inline" | "vertical" | undefined; + columns?: number | undefined; + title?: string | undefined; + description?: string | undefined; + defaultTab?: string | undefined; + tabPosition?: "top" | "left" | "right" | "bottom" | undefined; + allowSkip?: boolean | undefined; + showStepIndicator?: boolean | undefined; + splitDirection?: "horizontal" | "vertical" | undefined; + splitSize?: number | undefined; + splitResizable?: boolean | undefined; + drawerSide?: "top" | "left" | "right" | "bottom" | undefined; + drawerWidth?: string | undefined; + modalSize?: "default" | "full" | "sm" | "lg" | "xl" | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + sections?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + groups?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + subforms?: { + childObject: string; + relationshipField?: string | undefined; + columns?: any[] | undefined; + amountField?: string | undefined; + totalField?: string | undefined; + title?: string | undefined; + addLabel?: string | undefined; + minRows?: number | undefined; + maxRows?: number | undefined; + }[] | undefined; + defaultSort?: undefined; + sharing?: { + enabled: boolean; + allowAnonymous: boolean; + publicLink?: string | undefined; + password?: string | undefined; + allowedDomains?: string[] | undefined; + expiresAt?: string | undefined; + } | undefined; + submitBehavior?: { + kind: "thank-you"; + title?: string | undefined; + message?: string | undefined; + } | { + kind: "redirect"; + url: string; + delayMs?: number | undefined; + } | { + kind: "continue"; + } | { + kind: "next-record"; + } | undefined; + buttons?: { + submit?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + cancel?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + reset?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + } | undefined; + defaults?: Record | undefined; + aria?: undefined; +}; + +// ── injectedSystemColumnDefs (function) ── +declare function injectedSystemColumnDefs(def: unknown): Record>>; + +// ── isAcceptedFilterComparand (function) ── +declare function isAcceptedFilterComparand(value: unknown): boolean; + +// ── isAggregateCompatibleWithFieldType (function) ── +declare function isAggregateCompatibleWithFieldType(aggregate: string, fieldType: string): boolean; + +// ── isAnalyticsDateRangeRefusalIssue (function) ── +declare function isAnalyticsDateRangeRefusalIssue(issue: { + code: string; + path: ReadonlyArray; +}): boolean; + +// ── isApiOperationAllowed (function) ── +declare function isApiOperationAllowed(eff: EffectiveApiMethods, operation: string, opts?: OperationCheckOptions): boolean; + +// ── isApiPrimitive (function) ── +declare function isApiPrimitive(v: string): v is ApiPrimitive; + +// ── isAppResolvedDefaultToken (function) ── +declare function isAppResolvedDefaultToken(v: unknown): v is string; + +// ── isCompatible (function) ── +declare function isCompatible(rawType: string, fieldType: FieldType, dialect?: SqlDialect): Compatibility; + +// ── isContextToken (function) ── +declare function isContextToken(token: string): boolean; + +// ── isCurrentUserDefaultToken (function) ── +declare function isCurrentUserDefaultToken(v: unknown): v is string; + +// ── isDateMacroToken (function) ── +declare function isDateMacroToken(token: string): boolean; + +// ── isDateRangePresetName (function) ── +declare function isDateRangePresetName(value: unknown): value is DateRangePreset; + +// ── isExpressionEnvelopeDefault (function) ── +declare function isExpressionEnvelopeDefault(dv: unknown): boolean; + +// ── isFileIdToken (function) ── +declare function isFileIdToken(value: unknown): value is string; + +// ── isFilterAST (function) ── +declare function isFilterAST(filter: unknown): boolean; + +// ── isGlobalUnique (function) ── +declare function isGlobalUnique(unique: unknown): boolean; + +// ── isIncoherentAggregate (function) ── +declare function isIncoherentAggregate(aggregate: string, fieldType: string | undefined): boolean; + +// ── isInjectedColumnDefinition (function) ── +declare function isInjectedColumnDefinition(value: unknown, def: Readonly>): boolean; + +// ── isKnownFilterToken (function) ── +declare function isKnownFilterToken(token: string): boolean; + +// ── isLegacyApiMethod (function) ── +declare function isLegacyApiMethod(v: string): v is LegacyApiMethod; + +// ── isMultiValueField (function) ── +declare function isMultiValueField(def: ValueShapeFieldDef): boolean; + +// ── isNowDefaultToken (function) ── +declare function isNowDefaultToken(v: unknown): v is string; + +// ── isOrganizationUnique (function) ── +declare function isOrganizationUnique(unique: unknown): boolean; + +// ── isPlainRecord (function) ── +declare function isPlainRecord(v: unknown): v is Record; + +// ── isPublicSharingEnabled (function) ── +declare function isPublicSharingEnabled(schema: unknown): boolean; + +// ── isRefusedTextComparand (function) ── +declare function isRefusedTextComparand(target: unknown): boolean; + +// ── isRuntimeDefaultToken (function) ── +declare function isRuntimeDefaultToken(v: unknown): v is string; + +// ── isTenancyDisabled (function) ── +declare function isTenancyDisabled(schema: unknown): boolean; + +// ── isTextFilterOperator (function) ── +declare function isTextFilterOperator(op: string): op is TextFilterOperator; + +// ── isTitleEligible (function) ── +declare function isTitleEligible(fieldDef: TitleEligibleFieldDef | undefined | null): boolean; + +// ── isUniqueDeclared (function) ── +declare function isUniqueDeclared(unique: unknown): boolean; + +// ── isVirtualSearchField (function) ── +declare function isVirtualSearchField(meta: SearchFieldMeta | undefined | null): boolean; + +// ── likePatternToGlobPattern (function) ── +declare function likePatternToGlobPattern(pattern: string): string; + +// ── likePatternToRegexSource (function) ── +declare function likePatternToRegexSource(pattern: string, foldAscii?: boolean): string; + +// ── lintAuthoredRecordKeys (function) ── +declare function lintAuthoredRecordKeys(record: Record, declared: ReadonlySet, guidance: Readonly>, surface: AuthoringKeySurface, basePath: string, out: UnknownAuthoringKeyFinding[]): void; + +// ── markFilterSubtreeProvenance (function) ── +declare function markFilterSubtreeProvenance(subtree: T, provenance: FilterSubtreeProvenance): T; + +// ── matchesLikePattern (function) ── +declare function matchesLikePattern(value: string, pattern: string, foldAscii?: boolean): boolean; + +// ── missingFieldValues (function) ── +declare function missingFieldValues(tokens: AutonumberToken[], record?: Record): string[]; + +// ── nextUtcCalendarDay (function) ── +declare function nextUtcCalendarDay(value: unknown): string | null; + +// ── normalizeFilterComparandTypes (function) ── +declare function normalizeFilterComparandTypes(node: T, context?: string, path?: string): T; + +// ── numericColumnFor (function) ── +declare function numericColumnFor(type: string | undefined): NumericColumnRepresentation | undefined; + +// ── objectForm (const) ── +declare const objectForm: { + type: "split" | "simple" | "modal" | "drawer" | "tabbed" | "wizard"; + layout?: "grid" | "horizontal" | "inline" | "vertical" | undefined; + columns?: number | undefined; + title?: string | undefined; + description?: string | undefined; + defaultTab?: string | undefined; + tabPosition?: "top" | "left" | "right" | "bottom" | undefined; + allowSkip?: boolean | undefined; + showStepIndicator?: boolean | undefined; + splitDirection?: "horizontal" | "vertical" | undefined; + splitSize?: number | undefined; + splitResizable?: boolean | undefined; + drawerSide?: "top" | "left" | "right" | "bottom" | undefined; + drawerWidth?: string | undefined; + modalSize?: "default" | "full" | "sm" | "lg" | "xl" | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + sections?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + groups?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + subforms?: { + childObject: string; + relationshipField?: string | undefined; + columns?: any[] | undefined; + amountField?: string | undefined; + totalField?: string | undefined; + title?: string | undefined; + addLabel?: string | undefined; + minRows?: number | undefined; + maxRows?: number | undefined; + }[] | undefined; + defaultSort?: undefined; + sharing?: { + enabled: boolean; + allowAnonymous: boolean; + publicLink?: string | undefined; + password?: string | undefined; + allowedDomains?: string[] | undefined; + expiresAt?: string | undefined; + } | undefined; + submitBehavior?: { + kind: "thank-you"; + title?: string | undefined; + message?: string | undefined; + } | { + kind: "redirect"; + url: string; + delayMs?: number | undefined; + } | { + kind: "continue"; + } | { + kind: "next-record"; + } | undefined; + buttons?: { + submit?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + cancel?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + reset?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + } | undefined; + defaults?: Record | undefined; + aria?: undefined; +}; + +// ── objectTitleCompleteness (function) ── +declare function objectTitleCompleteness(objectMeta: DisplayNameObjectMeta | undefined | null): ObjectTitleCompleteness; + +// ── parseAutonumberFormat (function) ── +declare function parseAutonumberFormat(format: string): AutonumberToken[]; + +// ── parseDateMacroParam (function) ── +declare function parseDateMacroParam(token: string): DateMacroParamMatch | null; + +// ── parseFilterAST (function) ── +declare function parseFilterAST(filter: unknown, context?: string): FilterCondition | undefined; + +// ── passthroughSecretPaths (function) ── +declare function passthroughSecretPaths(driver: unknown): readonly (readonly string[])[]; + +// ── percentScaleOf (function) ── +declare function percentScaleOf(field: PercentScaleFieldMeta | undefined): PercentScale | undefined; + +// ── placeholderFree (function) ── +declare function placeholderFree(schema: S, key: string): S; + +// ── placeholderFreeDeep (function) ── +declare function placeholderFreeDeep(schema: S, key: string): S; + +// ── platformProvisionsStorage (function) ── +declare function platformProvisionsStorage(def: unknown): boolean; + +// ── provisionPrimary (function) ── +declare function provisionPrimary(objectMeta: T, opts?: ProvisionPrimaryOptions): T; + +// ── readAutonumberCounter (function) ── +declare function readAutonumberCounter(value: string, prefix: string, suffix: string): number | undefined; + +// ── redactDatasourceConfig (function) ── +declare function redactDatasourceConfig(driver: unknown, config: Record | undefined): RedactedDatasourceConfig; + +// ── redactUrlCredentialQueryParams (function) ── +declare function redactUrlCredentialQueryParams(value: string): string; + +// ── redactUrlCredentials (function) ── +declare function redactUrlCredentials(value: string): string; + +// ── redactUrlPassword (function) ── +declare function redactUrlPassword(value: string): string; + +// ── redactableConfigKeys (function) ── +declare function redactableConfigKeys(driver: unknown): string[]; + +// ── reduceFilterKeyVerdict (function) ── +declare function reduceFilterKeyVerdict(key: string, value: unknown, options?: FilterVerdictOptions): FilterVerdict; + +// ── reduceFilterVerdict (function) ── +declare function reduceFilterVerdict(node: Record, options?: FilterVerdictOptions): FilterVerdict; + +// ── referenceCarrierOf (function) ── +declare function referenceCarrierOf(def: unknown, reader?: string): string | undefined; + +// ── referenceTargetOf (function) ── +declare function referenceTargetOf(def: unknown): string | undefined; + +// ── referencedFields (function) ── +declare function referencedFields(tokens: AutonumberToken[]): string[]; + +// ── refusedCredentialKeys (function) ── +declare function refusedCredentialKeys(driver: unknown): string[]; + +// ── refusedCredentialPaths (function) ── +declare function refusedCredentialPaths(driver: unknown): (readonly string[])[]; + +// ── refusedCredentialPathsOfSchema (function) ── +declare function refusedCredentialPathsOfSchema(schema: unknown): (readonly string[])[]; + +// ── refusedInlineCredentialKey (function) ── +declare function refusedInlineCredentialKey(key: string, formTitle: string): z.ZodOptional; + +// ── refusedPassthroughSecretPaths (function) ── +declare function refusedPassthroughSecretPaths(driver: unknown): readonly (readonly string[])[]; + +// ── renderAutonumber (function) ── +declare function renderAutonumber(input: RenderAutonumberInput): RenderedAutonumber; + +// ── resolveAutonumberFormat (function) ── +declare function resolveAutonumberFormat(field: AutonumberFormatSource | null | undefined): string; + +// ── resolveBulkPerRowHookBudget (function) ── +declare function resolveBulkPerRowHookBudget(input: { + readonly object: string; + readonly event: string; + readonly matched: number; +}): BulkPerRowHookBudgetVerdict; + +// ── resolveCrudAffordances (function) ── +declare function resolveCrudAffordances(obj: Pick | { + managedBy?: string; + userActions?: ServiceObject['userActions']; +}): CrudAffordances; + +// ── resolveDatabaseDriverId (function) ── +declare function resolveDatabaseDriverId(driver: unknown): BuiltinDriverId | undefined; + +// ── resolveDisplayField (function) ── +declare function resolveDisplayField(objectMeta: DisplayNameObjectMeta | undefined | null): string | undefined; + +// ── resolveDriverId (function) ── +declare function resolveDriverId(driver: unknown): BuiltinDriverId | undefined; + +// ── resolveEffectiveApiMethods (function) ── +declare function resolveEffectiveApiMethods(enable?: EnableLike | null, opts?: ResolveApiOptions): EffectiveApiMethods; + +// ── resolveFilterSubtreeProvenance (function) ── +declare function resolveFilterSubtreeProvenance(root: unknown, target: unknown): FilterSubtreeProvenance | null; + +// ── resolveInjectedColumnProvenance (function) ── +declare function resolveInjectedColumnProvenance(def: unknown, column: string): InjectedColumnProvenance; + +// ── resolveInjectedSystemColumns (function) ── +declare function resolveInjectedSystemColumns(def: unknown): InjectedSystemColumnPlan; + +// ── resolveRecordDisplayName (function) ── +declare function resolveRecordDisplayName(objectMeta: DisplayNameObjectMeta | undefined | null, record: Record | undefined | null, opts?: ResolveRecordDisplayNameOptions): string; + +// ── resolveSearchFieldResolution (function) ── +declare function resolveSearchFieldResolution(opts: Omit): { + allowed: string[]; + source: 'declared' | 'auto'; +}; + +// ── resolveSearchFields (function) ── +declare function resolveSearchFields(opts: SearchFieldResolutionOptions): string[]; + +// ── sequenceWidth (function) ── +declare function sequenceWidth(tokens: AutonumberToken[], fallback?: number): number; + +// ── stripLegacyApiMethods (function) ── +declare function stripLegacyApiMethods(raw: unknown, opts?: { + warn?: (msg: string) => void; +}): unknown; + +// ── suggestDefaultValueToken (function) ── +declare function suggestDefaultValueToken(dv: unknown): DefaultValueToken | undefined; + +// ── suggestFieldTypeForSqlType (function) ── +declare function suggestFieldTypeForSqlType(rawType: string, dialect?: SqlDialect): FieldType | undefined; + +// ── textComparandRefusalReason (function) ── +declare function textComparandRefusalReason(field: string, operator: string, target: unknown): string; + +// ── textOperatorDoorVerdict (function) ── +declare function textOperatorDoorVerdict(field: TextOperatorDoorFieldMeta): TextOperatorDoorVerdict; + +// ── unprovisionedInjectedColumns (function) ── +declare function unprovisionedInjectedColumns(def: unknown): string[]; + +// ── urlCredentialQueryParams (function) ── +declare function urlCredentialQueryParams(value: string, params: readonly string[]): string[]; + +// ── urlUserinfoPassword (function) ── +declare function urlUserinfoPassword(value: string): string | undefined; + +// ── urlUserinfoUsername (function) ── +declare function urlUserinfoUsername(value: string): string | undefined; + +// ── utcInstantMs (function) ── +declare function utcInstantMs(value: unknown): number | null; + +// ── validateDriverConfig (function) ── +declare function validateDriverConfig(driver: unknown, config: unknown): { + known: false; +} | { + known: true; + issues: DriverConfigIssue[]; +}; + +// ── valueRoundTripDivergence (function) ── +declare function valueRoundTripDivergence(c: ValueRoundTripCase, read: unknown): string | null; + +// ── valueSchemaFor (function) ── +declare function valueSchemaFor(def: ValueShapeFieldDef, form?: ValueForm): z.ZodType; diff --git a/packages/spec/api-surface-declarations/identity.txt b/packages/spec/api-surface-declarations/identity.txt new file mode 100644 index 00000000000..0c9ff839aeb --- /dev/null +++ b/packages/spec/api-surface-declarations/identity.txt @@ -0,0 +1,1259 @@ +# @objectstack/spec — the .d.ts DECLARATION TEXT of every export of `./identity`. +# +# The SHAPE half of the ADR-0059 public-API pin, and the readable counterpart of +# api-surface/identity.json's breadth half. That file pins each export by +# `name (kind)`, which a signature change, a renamed interface field and a dropped +# union member all leave untouched. This file pins the declaration text, so each of +# those moves a line here. Text and NOT a hash, deliberately: a diff a reviewer can +# read is what makes contract review a guard rather than a rubber stamp. +# +# Verbatim from the PACKED `.d.ts` reached through this package's `exports` map — the +# declarations a consumer installs, never `src/`. A declaration's leading TSDoc is +# excluded: documentation drift is `check:docs`'s axis, not this one. +# +# entry: ./identity +# exported names: 102 +# declarations: 103 +# +# GENERATED — ⛔ never hand-edited. Regenerate after a real build: +# pnpm --filter @objectstack/spec build && pnpm --filter @objectstack/spec gen:api-surface-declarations +# Gated by `check:api-surface-declarations`; a hand edit is a red gate, not a change. + +// ── ADMIN_FULL_ACCESS (const) ── +declare const ADMIN_FULL_ACCESS = "admin_full_access"; + +// ── ADMIN_FULL_ACCESS_CAPABILITIES (const) ── +declare const ADMIN_FULL_ACCESS_CAPABILITIES: Pick; + +// ── AUDIENCE_ANCHOR_POSITIONS (const) ── +declare const AUDIENCE_ANCHOR_POSITIONS: readonly ["everyone", "guest"]; + +// ── AUTH_CONSTANTS (const) ── +declare const AUTH_CONSTANTS: { + /** + * HTTP header key for authentication tokens + */ + readonly HEADER_KEY: "Authorization"; + /** + * Token prefix for Bearer authentication + */ + readonly TOKEN_PREFIX: "Bearer "; + /** + * Cookie prefix for ObjectStack auth cookies + */ + readonly COOKIE_PREFIX: "os_"; + /** + * CSRF token header name + */ + readonly CSRF_HEADER: "x-os-csrf-token"; + /** + * Default session cookie name + */ + readonly SESSION_COOKIE: "os_session_token"; + /** + * Default CSRF cookie name + */ + readonly CSRF_COOKIE: "os_csrf_token"; + /** + * Refresh token cookie name + */ + readonly REFRESH_TOKEN_COOKIE: "os_refresh_token"; +}; + +// ── AUTH_ERROR_CODES (const) ── +declare const AUTH_ERROR_CODES: { + readonly INVALID_CREDENTIALS: "invalid_credentials"; + readonly INVALID_TOKEN: "invalid_token"; + readonly TOKEN_EXPIRED: "token_expired"; + readonly INSUFFICIENT_PERMISSIONS: "insufficient_permissions"; + readonly ACCOUNT_LOCKED: "account_locked"; + readonly ACCOUNT_NOT_VERIFIED: "account_not_verified"; + readonly TOO_MANY_REQUESTS: "too_many_requests"; + readonly INVALID_CSRF_TOKEN: "invalid_csrf_token"; + readonly SESSION_EXPIRED: "session_expired"; + readonly OAUTH_ERROR: "oauth_error"; + readonly PROVIDER_ERROR: "provider_error"; +}; + +// ── Account (type) ── +type Account = z.input; + +// ── AccountSchema (const) ── +declare const AccountSchema: z.ZodObject<{ + id: z.ZodString; + userId: z.ZodString; + type: z.ZodEnum<{ + email: "email"; + oauth: "oauth"; + oidc: "oidc"; + credentials: "credentials"; + saml: "saml"; + ldap: "ldap"; + }>; + provider: z.ZodString; + providerAccountId: z.ZodString; + refreshToken: z.ZodOptional; + accessToken: z.ZodOptional; + expiresAt: z.ZodOptional; + tokenType: z.ZodOptional; + scope: z.ZodOptional; + idToken: z.ZodOptional; + sessionState: z.ZodOptional; + createdAt: z.ZodString; + updatedAt: z.ZodString; +}, z.core.$strip>; + +// ── AuthError (interface) ── +interface AuthError { + /** + * Error code from AUTH_ERROR_CODES + */ + code: typeof AUTH_ERROR_CODES[keyof typeof AUTH_ERROR_CODES]; + /** + * Human-readable error message + */ + message: string; + /** + * Additional error details + */ + details?: Record; +} + +// ── AuthHeaders (interface) ── +interface AuthHeaders { + /** + * Authorization header with Bearer token + * @example "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." + */ + Authorization?: string; + /** + * CSRF token header + * @example "x-os-csrf-token: abc123def456..." + */ + 'x-os-csrf-token'?: string; + /** + * Session ID header (alternative to cookie) + * @example "x-os-session-id: session_abc123..." + */ + 'x-os-session-id'?: string; + /** + * API key header (for service-to-service auth) + * @example "x-os-api-key: sk_live_abc123..." + */ + 'x-os-api-key'?: string; +} + +// ── AuthResponse (interface) ── +interface AuthResponse { + /** + * Access token (JWT or opaque token) + */ + accessToken: string; + /** + * Refresh token (for token renewal) + */ + refreshToken?: string; + /** + * Token type (usually "Bearer") + */ + tokenType: string; + /** + * Token expiry in seconds + */ + expiresIn: number; + /** + * User information + */ + user: { + id: string; + email: string; + name?: string; + image?: string; + }; + /** + * Session ID + */ + sessionId?: string; +} + +// ── BUILTIN_IDENTITY_METADATA (const) ── +declare const BUILTIN_IDENTITY_METADATA: Record; + +// ── BUILTIN_IDENTITY_NAMES (const) ── +declare const BUILTIN_IDENTITY_NAMES: readonly ["platform_admin", "org_owner", "org_admin", "org_member"]; + +// ── BUILTIN_IDENTITY_ORG_ADMIN (const) ── +declare const BUILTIN_IDENTITY_ORG_ADMIN = "org_admin"; + +// ── BUILTIN_IDENTITY_ORG_MEMBER (const) ── +declare const BUILTIN_IDENTITY_ORG_MEMBER = "org_member"; + +// ── BUILTIN_IDENTITY_ORG_OWNER (const) ── +declare const BUILTIN_IDENTITY_ORG_OWNER = "org_owner"; + +// ── BUILTIN_IDENTITY_PLATFORM_ADMIN (const) ── +declare const BUILTIN_IDENTITY_PLATFORM_ADMIN = "platform_admin"; + +// ── BUILTIN_MEMBERSHIP_ROLES (const) ── +declare const BUILTIN_MEMBERSHIP_ROLES: readonly ["owner", "admin", "delegated_admin", "member"]; + +// ── BUILTIN_MEMBERSHIP_ROLE_OPTIONS (const) ── +declare const BUILTIN_MEMBERSHIP_ROLE_OPTIONS: readonly Readonly<{ + label: string; + value: string; +}>[]; + +// ── BuiltinIdentityName (type) ── +type BuiltinIdentityName = (typeof BUILTIN_IDENTITY_NAMES)[number]; + +// ── BuiltinMembershipRole (type) ── +type BuiltinMembershipRole = (typeof BUILTIN_MEMBERSHIP_ROLES)[number]; + +// ── EVERYONE_POSITION (const) ── +declare const EVERYONE_POSITION = "everyone"; + +// ── EvalUser (type) ── +type EvalUser = z.input; + +// ── EvalUserParsed (type) ── +type EvalUserParsed = z.infer; + +// ── EvalUserSchema (const) ── +declare const EvalUserSchema: z.ZodObject<{ + id: z.ZodString; + name: z.ZodOptional; + email: z.ZodOptional; + positions: z.ZodDefault>; + isPlatformAdmin: z.ZodOptional; + organizationId: z.ZodOptional>; +}, z.core.$strip>; + +// ── GUEST_POSITION (const) ── +declare const GUEST_POSITION = "guest"; + +// ── Invitation (type) ── +type Invitation = z.input; + +// ── InvitationParsed (type) ── +type InvitationParsed = z.infer; + +// ── InvitationSchema (const) ── +declare const InvitationSchema: z.ZodObject<{ + id: z.ZodString; + organizationId: z.ZodString; + email: z.ZodString; + role: z.ZodString; + status: z.ZodDefault>; + expiresAt: z.ZodString; + inviterId: z.ZodString; + createdAt: z.ZodString; + updatedAt: z.ZodString; +}, z.core.$strip>; + +// ── InvitationStatus (const) ── +declare const InvitationStatus: z.ZodEnum<{ + pending: "pending"; + accepted: "accepted"; + rejected: "rejected"; + expired: "expired"; + canceled: "canceled"; +}>; + +// ── InvitationStatus (type) ── +type InvitationStatus = z.input; + +// ── MEMBERSHIP_ROLE_ADMIN (const) ── +declare const MEMBERSHIP_ROLE_ADMIN = "admin"; + +// ── MEMBERSHIP_ROLE_DELEGATED_ADMIN (const) ── +declare const MEMBERSHIP_ROLE_DELEGATED_ADMIN = "delegated_admin"; + +// ── MEMBERSHIP_ROLE_MEMBER (const) ── +declare const MEMBERSHIP_ROLE_MEMBER = "member"; + +// ── MEMBERSHIP_ROLE_OWNER (const) ── +declare const MEMBERSHIP_ROLE_OWNER = "owner"; + +// ── Member (type) ── +type Member = z.input; + +// ── MemberSchema (const) ── +declare const MemberSchema: z.ZodObject<{ + id: z.ZodString; + organizationId: z.ZodString; + userId: z.ZodString; + role: z.ZodString; + createdAt: z.ZodString; + updatedAt: z.ZodString; +}, z.core.$strip>; + +// ── ORGANIZATION_ADMIN (const) ── +declare const ORGANIZATION_ADMIN = "organization_admin"; + +// ── ORGANIZATION_ADMIN_GRANTS (const) ── +declare const ORGANIZATION_ADMIN_GRANTS: readonly string[]; + +// ── ORGANIZATION_ADMIN_NO_BYPASS (const) ── +declare const ORGANIZATION_ADMIN_NO_BYPASS = "organization_admin_no_bypass"; + +// ── Organization (type) ── +type Organization = z.input; + +// ── OrganizationSchema (const) ── +declare const OrganizationSchema: z.ZodObject<{ + id: z.ZodString; + name: z.ZodString; + slug: z.ZodString; + logo: z.ZodOptional>; + metadata: z.ZodOptional>; + createdAt: z.ZodString; + updatedAt: z.ZodString; +}, z.core.$strip>; + +// ── Position (type) ── +type Position = z.input; + +// ── PositionParsed (type) ── +type PositionParsed = z.infer; + +// ── PositionSchema (const) ── +declare const PositionSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + delegatable: z.ZodDefault; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── SCIM (const) ── +declare const SCIM: { + /** + * Create a basic SCIM user + */ + readonly user: (userName: string, email: string, givenName?: string, familyName?: string) => SCIMUser; + /** + * Create a SCIM group + */ + readonly group: (displayName: string, members?: SCIMMemberReference[]) => SCIMGroup; + /** + * Create a list response + */ + readonly listResponse: (resources: T[], totalResults?: number) => SCIMListResponse; + /** + * Create an error response + */ + readonly error: (status: number, detail: string, scimType?: "invalidFilter" | "tooMany" | "uniqueness" | "mutability" | "invalidSyntax" | "invalidPath" | "noTarget" | "invalidValue" | "invalidVers" | "sensitive") => SCIMError; +}; + +// ── SCIMAddress (type) ── +type SCIMAddress = z.input; + +// ── SCIMAddressParsed (type) ── +type SCIMAddressParsed = z.infer; + +// ── SCIMAddressSchema (const) ── +declare const SCIMAddressSchema: z.ZodObject<{ + formatted: z.ZodOptional; + streetAddress: z.ZodOptional; + locality: z.ZodOptional; + region: z.ZodOptional; + postalCode: z.ZodOptional; + country: z.ZodOptional; + type: z.ZodOptional>; + primary: z.ZodDefault>; +}, z.core.$strip>; + +// ── SCIMBulkOperation (type) ── +type SCIMBulkOperation = z.input; + +// ── SCIMBulkOperationSchema (const) ── +declare const SCIMBulkOperationSchema: z.ZodObject<{ + method: z.ZodEnum<{ + POST: "POST"; + PUT: "PUT"; + DELETE: "DELETE"; + PATCH: "PATCH"; + }>; + path: z.ZodString; + bulkId: z.ZodOptional; + data: z.ZodOptional>; + version: z.ZodOptional; +}, z.core.$strip>; + +// ── SCIMBulkRequest (type) ── +type SCIMBulkRequest = z.input; + +// ── SCIMBulkRequestParsed (type) ── +type SCIMBulkRequestParsed = z.infer; + +// ── SCIMBulkRequestSchema (const) ── +declare const SCIMBulkRequestSchema: z.ZodObject<{ + schemas: z.ZodDefault>>; + operations: z.ZodArray; + path: z.ZodString; + bulkId: z.ZodOptional; + data: z.ZodOptional>; + version: z.ZodOptional; + }, z.core.$strip>>; + failOnErrors: z.ZodOptional; +}, z.core.$strip>; + +// ── SCIMBulkResponse (type) ── +type SCIMBulkResponse = z.input; + +// ── SCIMBulkResponseOperation (type) ── +type SCIMBulkResponseOperation = z.input; + +// ── SCIMBulkResponseOperationSchema (const) ── +declare const SCIMBulkResponseOperationSchema: z.ZodObject<{ + method: z.ZodEnum<{ + POST: "POST"; + PUT: "PUT"; + DELETE: "DELETE"; + PATCH: "PATCH"; + }>; + bulkId: z.ZodOptional; + location: z.ZodOptional; + status: z.ZodString; + response: z.ZodOptional; +}, z.core.$strip>; + +// ── SCIMBulkResponseParsed (type) ── +type SCIMBulkResponseParsed = z.infer; + +// ── SCIMBulkResponseSchema (const) ── +declare const SCIMBulkResponseSchema: z.ZodObject<{ + schemas: z.ZodDefault>>; + operations: z.ZodArray; + bulkId: z.ZodOptional; + location: z.ZodOptional; + status: z.ZodString; + response: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── SCIMEmail (type) ── +type SCIMEmail = z.input; + +// ── SCIMEmailParsed (type) ── +type SCIMEmailParsed = z.infer; + +// ── SCIMEmailSchema (const) ── +declare const SCIMEmailSchema: z.ZodObject<{ + value: z.ZodString; + type: z.ZodOptional>; + display: z.ZodOptional; + primary: z.ZodDefault>; +}, z.core.$strip>; + +// ── SCIMEnterpriseUser (type) ── +type SCIMEnterpriseUser = z.input; + +// ── SCIMEnterpriseUserSchema (const) ── +declare const SCIMEnterpriseUserSchema: z.ZodObject<{ + employeeNumber: z.ZodOptional; + costCenter: z.ZodOptional; + organization: z.ZodOptional; + division: z.ZodOptional; + department: z.ZodOptional; + manager: z.ZodOptional; + displayName: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── SCIMError (type) ── +type SCIMError = z.input; + +// ── SCIMErrorParsed (type) ── +type SCIMErrorParsed = z.infer; + +// ── SCIMErrorSchema (const) ── +declare const SCIMErrorSchema: z.ZodObject<{ + schemas: z.ZodDefault>; + status: z.ZodNumber; + scimType: z.ZodOptional>; + detail: z.ZodOptional; +}, z.core.$strip>; + +// ── SCIMGroup (type) ── +type SCIMGroup = z.input; + +// ── SCIMGroupParsed (type) ── +type SCIMGroupParsed = z.infer; + +// ── SCIMGroupReference (type) ── +type SCIMGroupReference = z.input; + +// ── SCIMGroupReferenceSchema (const) ── +declare const SCIMGroupReferenceSchema: z.ZodObject<{ + value: z.ZodString; + $ref: z.ZodOptional; + display: z.ZodOptional; + type: z.ZodOptional>; +}, z.core.$strip>; + +// ── SCIMGroupSchema (const) ── +declare const SCIMGroupSchema: z.ZodObject<{ + schemas: z.ZodDefault>; + id: z.ZodOptional; + externalId: z.ZodOptional; + displayName: z.ZodString; + members: z.ZodOptional; + type: z.ZodOptional>; + display: z.ZodOptional; + }, z.core.$strip>>>; + meta: z.ZodOptional; + created: z.ZodOptional; + lastModified: z.ZodOptional; + location: z.ZodOptional; + version: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── SCIMListResponse (type) ── +type SCIMListResponse = z.input; + +// ── SCIMListResponseParsed (type) ── +type SCIMListResponseParsed = z.infer; + +// ── SCIMListResponseSchema (const) ── +declare const SCIMListResponseSchema: z.ZodObject<{ + schemas: z.ZodDefault>; + totalResults: z.ZodNumber; + Resources: z.ZodArray>; + id: z.ZodOptional; + externalId: z.ZodOptional; + userName: z.ZodString; + name: z.ZodOptional; + familyName: z.ZodOptional; + givenName: z.ZodOptional; + middleName: z.ZodOptional; + honorificPrefix: z.ZodOptional; + honorificSuffix: z.ZodOptional; + }, z.core.$strip>>; + displayName: z.ZodOptional; + nickName: z.ZodOptional; + profileUrl: z.ZodOptional; + title: z.ZodOptional; + userType: z.ZodOptional; + preferredLanguage: z.ZodOptional; + locale: z.ZodOptional; + timezone: z.ZodOptional; + active: z.ZodDefault>; + password: z.ZodOptional; + emails: z.ZodOptional>; + display: z.ZodOptional; + primary: z.ZodDefault>; + }, z.core.$strip>>>; + phoneNumbers: z.ZodOptional>; + display: z.ZodOptional; + primary: z.ZodDefault>; + }, z.core.$strip>>>; + ims: z.ZodOptional; + primary: z.ZodOptional; + }, z.core.$strip>>>; + photos: z.ZodOptional>; + primary: z.ZodOptional; + }, z.core.$strip>>>; + addresses: z.ZodOptional; + streetAddress: z.ZodOptional; + locality: z.ZodOptional; + region: z.ZodOptional; + postalCode: z.ZodOptional; + country: z.ZodOptional; + type: z.ZodOptional>; + primary: z.ZodDefault>; + }, z.core.$strip>>>; + groups: z.ZodOptional; + display: z.ZodOptional; + type: z.ZodOptional>; + }, z.core.$strip>>>; + entitlements: z.ZodOptional; + primary: z.ZodOptional; + }, z.core.$strip>>>; + roles: z.ZodOptional; + primary: z.ZodOptional; + }, z.core.$strip>>>; + x509Certificates: z.ZodOptional; + primary: z.ZodOptional; + }, z.core.$strip>>>; + meta: z.ZodOptional; + created: z.ZodOptional; + lastModified: z.ZodOptional; + location: z.ZodOptional; + version: z.ZodOptional; + }, z.core.$strip>>; + "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": z.ZodOptional; + costCenter: z.ZodOptional; + organization: z.ZodOptional; + division: z.ZodOptional; + department: z.ZodOptional; + manager: z.ZodOptional; + displayName: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + }, z.core.$strip>, z.ZodObject<{ + schemas: z.ZodDefault>; + id: z.ZodOptional; + externalId: z.ZodOptional; + displayName: z.ZodString; + members: z.ZodOptional; + type: z.ZodOptional>; + display: z.ZodOptional; + }, z.core.$strip>>>; + meta: z.ZodOptional; + created: z.ZodOptional; + lastModified: z.ZodOptional; + location: z.ZodOptional; + version: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>, z.ZodRecord]>>; + startIndex: z.ZodOptional; + itemsPerPage: z.ZodOptional; +}, z.core.$strip>; + +// ── SCIMMemberReference (type) ── +type SCIMMemberReference = z.input; + +// ── SCIMMemberReferenceSchema (const) ── +declare const SCIMMemberReferenceSchema: z.ZodObject<{ + value: z.ZodString; + $ref: z.ZodOptional; + type: z.ZodOptional>; + display: z.ZodOptional; +}, z.core.$strip>; + +// ── SCIMMeta (type) ── +type SCIMMeta = z.input; + +// ── SCIMMetaSchema (const) ── +declare const SCIMMetaSchema: z.ZodObject<{ + resourceType: z.ZodOptional; + created: z.ZodOptional; + lastModified: z.ZodOptional; + location: z.ZodOptional; + version: z.ZodOptional; +}, z.core.$strip>; + +// ── SCIMName (type) ── +type SCIMName = z.input; + +// ── SCIMNameSchema (const) ── +declare const SCIMNameSchema: z.ZodObject<{ + formatted: z.ZodOptional; + familyName: z.ZodOptional; + givenName: z.ZodOptional; + middleName: z.ZodOptional; + honorificPrefix: z.ZodOptional; + honorificSuffix: z.ZodOptional; +}, z.core.$strip>; + +// ── SCIMPatchOperation (type) ── +type SCIMPatchOperation = z.input; + +// ── SCIMPatchOperationSchema (const) ── +declare const SCIMPatchOperationSchema: z.ZodObject<{ + op: z.ZodEnum<{ + replace: "replace"; + add: "add"; + remove: "remove"; + }>; + path: z.ZodOptional; + value: z.ZodOptional; +}, z.core.$strip>; + +// ── SCIMPatchRequest (type) ── +type SCIMPatchRequest = z.input; + +// ── SCIMPatchRequestParsed (type) ── +type SCIMPatchRequestParsed = z.infer; + +// ── SCIMPatchRequestSchema (const) ── +declare const SCIMPatchRequestSchema: z.ZodObject<{ + schemas: z.ZodDefault>; + Operations: z.ZodArray; + path: z.ZodOptional; + value: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── SCIMPhoneNumber (type) ── +type SCIMPhoneNumber = z.input; + +// ── SCIMPhoneNumberParsed (type) ── +type SCIMPhoneNumberParsed = z.infer; + +// ── SCIMPhoneNumberSchema (const) ── +declare const SCIMPhoneNumberSchema: z.ZodObject<{ + value: z.ZodString; + type: z.ZodOptional>; + display: z.ZodOptional; + primary: z.ZodDefault>; +}, z.core.$strip>; + +// ── SCIMResource (type) ── +type SCIMResource = SCIMUser | SCIMGroup; + +// ── SCIMUser (type) ── +type SCIMUser = z.input; + +// ── SCIMUserParsed (type) ── +type SCIMUserParsed = z.infer; + +// ── SCIMUserSchema (const) ── +declare const SCIMUserSchema: z.ZodObject<{ + schemas: z.ZodDefault>; + id: z.ZodOptional; + externalId: z.ZodOptional; + userName: z.ZodString; + name: z.ZodOptional; + familyName: z.ZodOptional; + givenName: z.ZodOptional; + middleName: z.ZodOptional; + honorificPrefix: z.ZodOptional; + honorificSuffix: z.ZodOptional; + }, z.core.$strip>>; + displayName: z.ZodOptional; + nickName: z.ZodOptional; + profileUrl: z.ZodOptional; + title: z.ZodOptional; + userType: z.ZodOptional; + preferredLanguage: z.ZodOptional; + locale: z.ZodOptional; + timezone: z.ZodOptional; + active: z.ZodDefault>; + password: z.ZodOptional; + emails: z.ZodOptional>; + display: z.ZodOptional; + primary: z.ZodDefault>; + }, z.core.$strip>>>; + phoneNumbers: z.ZodOptional>; + display: z.ZodOptional; + primary: z.ZodDefault>; + }, z.core.$strip>>>; + ims: z.ZodOptional; + primary: z.ZodOptional; + }, z.core.$strip>>>; + photos: z.ZodOptional>; + primary: z.ZodOptional; + }, z.core.$strip>>>; + addresses: z.ZodOptional; + streetAddress: z.ZodOptional; + locality: z.ZodOptional; + region: z.ZodOptional; + postalCode: z.ZodOptional; + country: z.ZodOptional; + type: z.ZodOptional>; + primary: z.ZodDefault>; + }, z.core.$strip>>>; + groups: z.ZodOptional; + display: z.ZodOptional; + type: z.ZodOptional>; + }, z.core.$strip>>>; + entitlements: z.ZodOptional; + primary: z.ZodOptional; + }, z.core.$strip>>>; + roles: z.ZodOptional; + primary: z.ZodOptional; + }, z.core.$strip>>>; + x509Certificates: z.ZodOptional; + primary: z.ZodOptional; + }, z.core.$strip>>>; + meta: z.ZodOptional; + created: z.ZodOptional; + lastModified: z.ZodOptional; + location: z.ZodOptional; + version: z.ZodOptional; + }, z.core.$strip>>; + "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": z.ZodOptional; + costCenter: z.ZodOptional; + organization: z.ZodOptional; + division: z.ZodOptional; + department: z.ZodOptional; + manager: z.ZodOptional; + displayName: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── SCIM_SCHEMAS (const) ── +declare const SCIM_SCHEMAS: { + readonly USER: "urn:ietf:params:scim:schemas:core:2.0:User"; + readonly GROUP: "urn:ietf:params:scim:schemas:core:2.0:Group"; + readonly ENTERPRISE_USER: "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"; + readonly RESOURCE_TYPE: "urn:ietf:params:scim:schemas:core:2.0:ResourceType"; + readonly SERVICE_PROVIDER_CONFIG: "urn:ietf:params:scim:schemas:core:2.0:ServiceProviderConfig"; + readonly SCHEMA: "urn:ietf:params:scim:schemas:core:2.0:Schema"; + readonly LIST_RESPONSE: "urn:ietf:params:scim:api:messages:2.0:ListResponse"; + readonly PATCH_OP: "urn:ietf:params:scim:api:messages:2.0:PatchOp"; + readonly BULK_REQUEST: "urn:ietf:params:scim:api:messages:2.0:BulkRequest"; + readonly BULK_RESPONSE: "urn:ietf:params:scim:api:messages:2.0:BulkResponse"; + readonly ERROR: "urn:ietf:params:scim:api:messages:2.0:Error"; +}; + +// ── TokenPayload (interface) ── +interface TokenPayload { + /** + * Subject (user ID) + */ + sub: string; + /** + * Issued at timestamp + */ + iat: number; + /** + * Expiration timestamp + */ + exp: number; + /** + * Session ID + */ + sid?: string; + /** + * User email + */ + email?: string; + /** + * User roles + */ + roles?: string[]; + /** + * User permissions + */ + permissions?: string[]; + /** + * Additional custom claims + */ + [key: string]: any; +} + +// ── User (type) ── +type User = z.input; + +// ── UserParsed (type) ── +type UserParsed = z.infer; + +// ── UserSchema (const) ── +declare const UserSchema: z.ZodObject<{ + id: z.ZodString; + email: z.ZodString; + emailVerified: z.ZodDefault; + name: z.ZodOptional; + image: z.ZodOptional>; + createdAt: z.ZodString; + updatedAt: z.ZodString; +}, z.core.$strip>; + +// ── VerificationToken (type) ── +type VerificationToken = z.input; + +// ── VerificationTokenSchema (const) ── +declare const VerificationTokenSchema: z.ZodObject<{ + identifier: z.ZodString; + token: z.ZodString; + expires: z.ZodString; + createdAt: z.ZodString; +}, z.core.$strip>; + +// ── createEvalUser (function) ── +declare function createEvalUser(input: { + id: string; + name?: string | null; + email?: string | null; + positions?: readonly string[] | null; + organizationId?: string | null; +}): EvalUserParsed; + +// ── definePosition (function) ── +declare function definePosition(config: z.input): PositionParsed; + +// ── mapMembershipRole (function) ── +declare function mapMembershipRole(raw: string): string; + +// ── positionForm (const) ── +declare const positionForm: { + type: "split" | "drawer" | "modal" | "simple" | "tabbed" | "wizard"; + layout?: "grid" | "inline" | "vertical" | "horizontal" | undefined; + columns?: number | undefined; + title?: string | undefined; + description?: string | undefined; + defaultTab?: string | undefined; + tabPosition?: "left" | "right" | "top" | "bottom" | undefined; + allowSkip?: boolean | undefined; + showStepIndicator?: boolean | undefined; + splitDirection?: "vertical" | "horizontal" | undefined; + splitSize?: number | undefined; + splitResizable?: boolean | undefined; + drawerSide?: "left" | "right" | "top" | "bottom" | undefined; + drawerWidth?: string | undefined; + modalSize?: "default" | "full" | "sm" | "lg" | "xl" | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + sections?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + groups?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + subforms?: { + childObject: string; + relationshipField?: string | undefined; + columns?: any[] | undefined; + amountField?: string | undefined; + totalField?: string | undefined; + title?: string | undefined; + addLabel?: string | undefined; + minRows?: number | undefined; + maxRows?: number | undefined; + }[] | undefined; + defaultSort?: undefined; + sharing?: { + enabled: boolean; + allowAnonymous: boolean; + publicLink?: string | undefined; + password?: string | undefined; + allowedDomains?: string[] | undefined; + expiresAt?: string | undefined; + } | undefined; + submitBehavior?: { + kind: "thank-you"; + title?: string | undefined; + message?: string | undefined; + } | { + kind: "redirect"; + url: string; + delayMs?: number | undefined; + } | { + kind: "continue"; + } | { + kind: "next-record"; + } | undefined; + buttons?: { + submit?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + cancel?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + reset?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + } | undefined; + defaults?: Record | undefined; + aria?: undefined; +}; diff --git a/packages/spec/api-surface-declarations/integration.txt b/packages/spec/api-surface-declarations/integration.txt new file mode 100644 index 00000000000..e3ea4938e9e --- /dev/null +++ b/packages/spec/api-surface-declarations/integration.txt @@ -0,0 +1,1133 @@ +# @objectstack/spec — the .d.ts DECLARATION TEXT of every export of `./integration`. +# +# The SHAPE half of the ADR-0059 public-API pin, and the readable counterpart of +# api-surface/integration.json's breadth half. That file pins each export by +# `name (kind)`, which a signature change, a renamed interface field and a dropped +# union member all leave untouched. This file pins the declaration text, so each of +# those moves a line here. Text and NOT a hash, deliberately: a diff a reviewer can +# read is what makes contract review a guard rather than a rubber stamp. +# +# Verbatim from the PACKED `.d.ts` reached through this package's `exports` map — the +# declarations a consumer installs, never `src/`. A declaration's leading TSDoc is +# excluded: documentation drift is `check:docs`'s axis, not this one. +# +# entry: ./integration +# exported names: 70 +# declarations: 70 +# +# GENERATED — ⛔ never hand-edited. Regenerate after a real build: +# pnpm --filter @objectstack/spec build && pnpm --filter @objectstack/spec gen:api-surface-declarations +# Gated by `check:api-surface-declarations`; a hand edit is a red gate, not a change. + +// ── CONNECTOR_UPSTREAM_UNAVAILABLE (const) ── +declare const CONNECTOR_UPSTREAM_UNAVAILABLE: "CONNECTOR_UPSTREAM_UNAVAILABLE"; + +// ── CircuitBreakerConfig (type) ── +type CircuitBreakerConfig = z.input; + +// ── CircuitBreakerConfigParsed (type) ── +type CircuitBreakerConfigParsed = z.infer; + +// ── CircuitBreakerConfigSchema (const) ── +declare const CircuitBreakerConfigSchema: z.ZodObject<{ + enabled: z.ZodBoolean; + failureThreshold: z.ZodDefault>; + resetTimeoutMs: z.ZodDefault>; + halfOpenMaxRequests: z.ZodDefault>; + monitoringWindowMs: z.ZodDefault>; + monitoringWindow: z.ZodOptional; + fallbackStrategy: z.ZodOptional>; +}, z.core.$strip>; + +// ── Connector (type) ── +type Connector = z.input; + +// ── ConnectorAction (type) ── +type ConnectorAction = z.input; + +// ── ConnectorActionDescriptor (interface) ── +interface ConnectorActionDescriptor { + readonly key: string; + readonly label: string; + readonly description?: string; + readonly inputSchema?: Record; + readonly outputSchema?: Record; + /** + * What the action does upstream (#4395): `read` never mutates; `write` does. + * Absent keeps the pre-#4395 behaviour — the run reports the effect as + * uncountable (`ExecutionStepMetrics.unmeasuredEffect`) rather than as zero. + * + * Projected verbatim from the connector's authored + * `ConnectorActionSchema.effect`, which is where an author or a provider + * factory declares it. This interface is the READ side: it is what + * `GET /api/v1/automation/connectors` serves, so a designer can show that a + * `crm.push_opportunity` writes while a `crm.lookup_account` does not. + */ + readonly effect?: ConnectorActionEffect; +} + +// ── ConnectorActionEffect (type) ── +type ConnectorActionEffect = z.input; + +// ── ConnectorActionEffectSchema (const) ── +declare const ConnectorActionEffectSchema: z.ZodEnum<{ + read: "read"; + write: "write"; +}>; + +// ── ConnectorActionSchema (const) ── +declare const ConnectorActionSchema: z.ZodObject<{ + key: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + inputSchema: z.ZodOptional>; + outputSchema: z.ZodOptional>; + effect: z.ZodOptional>; +}, z.core.$strip>; + +// ── ConnectorConflictResolution (type) ── +type ConnectorConflictResolution = z.input; + +// ── ConnectorConflictResolutionSchema (const) ── +declare const ConnectorConflictResolutionSchema: z.ZodEnum<{ + manual: "manual"; + source_wins: "source_wins"; + target_wins: "target_wins"; + latest_wins: "latest_wins"; +}>; + +// ── ConnectorDescriptor (interface) ── +interface ConnectorDescriptor { + readonly name: string; + readonly label: string; + /** + * The connector's category (`saas`, `database`, `rest`, …) — the same `type` + * the authorable {@link Connector} declares. `GET /connectors?type=` filters + * on it. + */ + readonly type: string; + readonly description?: string; + readonly icon?: string; + readonly actions: ConnectorActionDescriptor[]; + /** + * How the connector reached the registry (ADR-0097 §4): `plugin` — registered + * by a connector plugin via `registerConnector`; `declarative` — materialized + * from a provider-bound `connectors:` stack entry at boot. Lets a designer + * distinguish a live declarative instance from a plugin connector (and both + * from an inert catalog descriptor, which never reaches this list). + */ + readonly origin: ConnectorOrigin; + /** + * Dispatchability (#3017): `ready` — actions are live; `degraded` — the + * instance's upstream was unreachable when the provider factory ran, so it + * currently exposes no actions and cannot dispatch. The platform retries + * degraded instances automatically; `degradedReason` says what failed. + */ + readonly state: ConnectorState; + /** Why the connector is degraded — present only when `state` is `degraded`. */ + readonly degradedReason?: string; +} + +// ── ConnectorFieldMapping (type) ── +type ConnectorFieldMapping = z.input; + +// ── ConnectorFieldMappingParsed (type) ── +type ConnectorFieldMappingParsed = z.infer; + +// ── ConnectorFieldMappingSchema (const) ── +declare const ConnectorFieldMappingSchema: z.ZodObject<{ + source: z.ZodString; + target: z.ZodString; + transform: z.ZodOptional; + defaultValue: z.ZodOptional; + dataType: z.ZodOptional>; + required: z.ZodDefault; + syncMode: z.ZodDefault>; +}, z.core.$strip>; + +// ── ConnectorHealth (type) ── +type ConnectorHealth = z.input; + +// ── ConnectorHealthParsed (type) ── +type ConnectorHealthParsed = z.infer; + +// ── ConnectorHealthSchema (const) ── +declare const ConnectorHealthSchema: z.ZodObject<{ + healthCheck: z.ZodOptional>; + timeoutMs: z.ZodDefault>; + endpoint: z.ZodOptional; + method: z.ZodOptional>; + expectedStatus: z.ZodDefault>; + unhealthyThreshold: z.ZodDefault>; + healthyThreshold: z.ZodDefault>; + }, z.core.$strip>>; + circuitBreaker: z.ZodOptional>; + resetTimeoutMs: z.ZodDefault>; + halfOpenMaxRequests: z.ZodDefault>; + monitoringWindowMs: z.ZodDefault>; + monitoringWindow: z.ZodOptional; + fallbackStrategy: z.ZodOptional>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── ConnectorInstanceAPIKeyAuth (type) ── +type ConnectorInstanceAPIKeyAuth = z.input; + +// ── ConnectorInstanceAPIKeyAuthSchema (const) ── +declare const ConnectorInstanceAPIKeyAuthSchema: z.ZodObject<{ + type: z.ZodLiteral<"api-key">; + credentialRef: z.ZodString; + headerName: z.ZodOptional; + paramName: z.ZodOptional; +}, z.core.$strip>; + +// ── ConnectorInstanceAuth (type) ── +type ConnectorInstanceAuth = z.input; + +// ── ConnectorInstanceAuthSchema (const) ── +declare const ConnectorInstanceAuthSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ + type: z.ZodLiteral<"none">; +}, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"bearer">; + credentialRef: z.ZodString; +}, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"api-key">; + credentialRef: z.ZodString; + headerName: z.ZodOptional; + paramName: z.ZodOptional; +}, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"basic">; + username: z.ZodString; + credentialRef: z.ZodString; +}, z.core.$strip>], "type">; + +// ── ConnectorInstanceBasicAuth (type) ── +type ConnectorInstanceBasicAuth = z.input; + +// ── ConnectorInstanceBasicAuthSchema (const) ── +declare const ConnectorInstanceBasicAuthSchema: z.ZodObject<{ + type: z.ZodLiteral<"basic">; + username: z.ZodString; + credentialRef: z.ZodString; +}, z.core.$strip>; + +// ── ConnectorInstanceBearerAuth (type) ── +type ConnectorInstanceBearerAuth = z.input; + +// ── ConnectorInstanceBearerAuthSchema (const) ── +declare const ConnectorInstanceBearerAuthSchema: z.ZodObject<{ + type: z.ZodLiteral<"bearer">; + credentialRef: z.ZodString; +}, z.core.$strip>; + +// ── ConnectorInstanceNoAuth (type) ── +type ConnectorInstanceNoAuth = z.input; + +// ── ConnectorInstanceNoAuthSchema (const) ── +declare const ConnectorInstanceNoAuthSchema: z.ZodObject<{ + type: z.ZodLiteral<"none">; +}, z.core.$strip>; + +// ── ConnectorMaterialization (interface) ── +interface ConnectorMaterialization { + def: Connector; + handlers: Record; + close?: () => void | Promise; +} + +// ── ConnectorMaterializationHandler (type) ── +type ConnectorMaterializationHandler = (input: Record, ctx: unknown) => Promise>; + +// ── ConnectorOrigin (type) ── +type ConnectorOrigin = 'plugin' | 'declarative'; + +// ── ConnectorParsed (type) ── +type ConnectorParsed = z.infer; + +// ── ConnectorProviderContext (interface) ── +interface ConnectorProviderContext { + readonly name: string; + readonly label: string; + readonly description?: string; + readonly icon?: string; + readonly type: string; + readonly providerConfig: Record; + readonly auth?: ResolvedConnectorAuth; + /** + * Host-injected package file reader (#3016, ADR-0097 follow-up). Resolves a + * **relative** path against the root of the stack/package that declared the + * entry and returns the file's UTF-8 text, so a factory can support file-path + * refs like `providerConfig.spec: './billing-openapi.json'` without owning + * filesystem access itself. The host confines reads to the package root: + * absolute paths and `..`-escaping paths are rejected (throws). Missing / + * unreadable files also throw, which the materializer's reconcile policy + * turns into a hard boot error (fatal) or a skipped entry (reload). + * `undefined` on hosts without a filesystem (edge/browser kernels) — a + * factory needing a file must then fail with a clear message. + */ + readonly loadPackageFile?: (relativePath: string) => Promise; +} + +// ── ConnectorProviderFactory (type) ── +type ConnectorProviderFactory = (ctx: ConnectorProviderContext) => ConnectorMaterialization | Promise; + +// ── ConnectorRetryStrategy (type) ── +type ConnectorRetryStrategy = z.input; + +// ── ConnectorRetryStrategySchema (const) ── +declare const ConnectorRetryStrategySchema: z.ZodEnum<{ + no_retry: "no_retry"; + exponential_backoff: "exponential_backoff"; + linear_backoff: "linear_backoff"; + fixed_delay: "fixed_delay"; +}>; + +// ── ConnectorSchema (const) ── +declare const ConnectorSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + type: z.ZodEnum<{ + custom: "custom"; + database: "database"; + api: "api"; + saas: "saas"; + file_storage: "file_storage"; + message_queue: "message_queue"; + }>; + description: z.ZodOptional; + icon: z.ZodOptional; + authentication: z.ZodDefault; + authorizationUrl: z.ZodString; + tokenUrl: z.ZodString; + clientId: z.ZodString; + clientSecret: z.ZodString; + scopes: z.ZodOptional>; + redirectUri: z.ZodOptional; + refreshToken: z.ZodOptional; + tokenExpiry: z.ZodOptional; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"api-key">; + key: z.ZodString; + headerName: z.ZodDefault; + paramName: z.ZodOptional; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"basic">; + username: z.ZodString; + password: z.ZodString; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"bearer">; + token: z.ZodString; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"none">; + }, z.core.$strip>], "type">>>; + provider: z.ZodOptional; + providerConfig: z.ZodOptional>; + auth: z.ZodOptional; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"bearer">; + credentialRef: z.ZodString; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"api-key">; + credentialRef: z.ZodString; + headerName: z.ZodOptional; + paramName: z.ZodOptional; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"basic">; + username: z.ZodString; + credentialRef: z.ZodString; + }, z.core.$strip>], "type">>; + actions: z.ZodOptional; + inputSchema: z.ZodOptional>; + outputSchema: z.ZodOptional>; + effect: z.ZodOptional>; + }, z.core.$strip>>>; + triggers: z.ZodOptional; + type: z.ZodEnum<{ + webhook: "webhook"; + polling: "polling"; + }>; + intervalSeconds: z.ZodOptional; + interval: z.ZodOptional; + }, z.core.$strip>>>; + syncConfig: z.ZodOptional>>; + direction: z.ZodDefault>>; + realtimeSync: z.ZodDefault>; + timestampField: z.ZodOptional; + conflictResolution: z.ZodDefault>>; + batchSize: z.ZodDefault>; + deleteMode: z.ZodDefault>>; + filters: z.ZodOptional>; + }, z.core.$strip>>; + fieldMappings: z.ZodOptional; + defaultValue: z.ZodOptional; + dataType: z.ZodOptional>; + required: z.ZodDefault; + syncMode: z.ZodDefault>; + }, z.core.$strip>>>; + webhooks: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + object: z.ZodOptional; + triggers: z.ZodOptional>>; + url: z.ZodString; + method: z.ZodDefault>; + headers: z.ZodOptional>; + timeoutMs: z.ZodDefault; + secret: z.ZodOptional; + isActive: z.ZodDefault; + description: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + events: z.ZodOptional>>; + signatureAlgorithm: z.ZodDefault>>; + }, z.core.$strict>>>; + rateLimitConfig: z.ZodOptional; + retryConfig: z.ZodOptional>>; + maxAttempts: z.ZodDefault>; + initialDelayMs: z.ZodDefault>; + maxDelayMs: z.ZodDefault>; + backoffMultiplier: z.ZodDefault>; + retryableStatusCodes: z.ZodDefault>>; + retryOnNetworkError: z.ZodDefault>; + jitter: z.ZodDefault>; + }, z.core.$strip>>; + connectionTimeoutMs: z.ZodDefault>; + requestTimeoutMs: z.ZodDefault>; + status: z.ZodDefault>>; + enabled: z.ZodDefault>; + errorMapping: z.ZodOptional; + health: z.ZodOptional>; + timeoutMs: z.ZodDefault>; + endpoint: z.ZodOptional; + method: z.ZodOptional>; + expectedStatus: z.ZodDefault>; + unhealthyThreshold: z.ZodDefault>; + healthyThreshold: z.ZodDefault>; + }, z.core.$strip>>; + circuitBreaker: z.ZodOptional>; + resetTimeoutMs: z.ZodDefault>; + halfOpenMaxRequests: z.ZodDefault>; + monitoringWindowMs: z.ZodDefault>; + monitoringWindow: z.ZodOptional; + fallbackStrategy: z.ZodOptional>; + }, z.core.$strip>>; + }, z.core.$strip>>; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── ConnectorState (type) ── +type ConnectorState = 'ready' | 'degraded'; + +// ── ConnectorStatus (type) ── +type ConnectorStatus = z.input; + +// ── ConnectorStatusSchema (const) ── +declare const ConnectorStatusSchema: z.ZodEnum<{ + error: "error"; + active: "active"; + inactive: "inactive"; + configuring: "configuring"; +}>; + +// ── ConnectorTrigger (type) ── +type ConnectorTrigger = z.input; + +// ── ConnectorTriggerSchema (const) ── +declare const ConnectorTriggerSchema: z.ZodObject<{ + key: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + type: z.ZodEnum<{ + webhook: "webhook"; + polling: "polling"; + }>; + intervalSeconds: z.ZodOptional; + interval: z.ZodOptional; +}, z.core.$strip>; + +// ── ConnectorType (type) ── +type ConnectorType = z.input; + +// ── ConnectorTypeSchema (const) ── +declare const ConnectorTypeSchema: z.ZodEnum<{ + custom: "custom"; + database: "database"; + api: "api"; + saas: "saas"; + file_storage: "file_storage"; + message_queue: "message_queue"; +}>; + +// ── ConnectorUpstreamUnavailableError (class) ── +declare class ConnectorUpstreamUnavailableError extends Error { + readonly code: "CONNECTOR_UPSTREAM_UNAVAILABLE"; + /** The underlying failure (connect error, timeout), kept for diagnostics. */ + readonly cause?: unknown; + constructor(message: string, options?: { + cause?: unknown; + }); +} + +// ── DataSyncConfig (type) ── +type DataSyncConfig = z.input; + +// ── DataSyncConfigParsed (type) ── +type DataSyncConfigParsed = z.infer; + +// ── DataSyncConfigSchema (const) ── +declare const DataSyncConfigSchema: z.ZodObject<{ + strategy: z.ZodDefault>>; + direction: z.ZodDefault>>; + realtimeSync: z.ZodDefault>; + timestampField: z.ZodOptional; + conflictResolution: z.ZodDefault>>; + batchSize: z.ZodDefault>; + deleteMode: z.ZodDefault>>; + filters: z.ZodOptional>; +}, z.core.$strip>; + +// ── DeclarativeConnectorEntry (type) ── +type DeclarativeConnectorEntry = z.input; + +// ── DeclarativeConnectorEntryParsed (type) ── +type DeclarativeConnectorEntryParsed = z.infer; + +// ── DeclarativeConnectorEntrySchema (const) ── +declare const DeclarativeConnectorEntrySchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + type: z.ZodEnum<{ + custom: "custom"; + database: "database"; + api: "api"; + saas: "saas"; + file_storage: "file_storage"; + message_queue: "message_queue"; + }>; + description: z.ZodOptional; + icon: z.ZodOptional; + authentication: z.ZodDefault; + authorizationUrl: z.ZodString; + tokenUrl: z.ZodString; + clientId: z.ZodString; + clientSecret: z.ZodString; + scopes: z.ZodOptional>; + redirectUri: z.ZodOptional; + refreshToken: z.ZodOptional; + tokenExpiry: z.ZodOptional; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"api-key">; + key: z.ZodString; + headerName: z.ZodDefault; + paramName: z.ZodOptional; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"basic">; + username: z.ZodString; + password: z.ZodString; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"bearer">; + token: z.ZodString; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"none">; + }, z.core.$strip>], "type">>>; + provider: z.ZodOptional; + providerConfig: z.ZodOptional>; + auth: z.ZodOptional; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"bearer">; + credentialRef: z.ZodString; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"api-key">; + credentialRef: z.ZodString; + headerName: z.ZodOptional; + paramName: z.ZodOptional; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"basic">; + username: z.ZodString; + credentialRef: z.ZodString; + }, z.core.$strip>], "type">>; + actions: z.ZodOptional; + inputSchema: z.ZodOptional>; + outputSchema: z.ZodOptional>; + effect: z.ZodOptional>; + }, z.core.$strip>>>; + triggers: z.ZodOptional; + type: z.ZodEnum<{ + webhook: "webhook"; + polling: "polling"; + }>; + intervalSeconds: z.ZodOptional; + interval: z.ZodOptional; + }, z.core.$strip>>>; + syncConfig: z.ZodOptional>>; + direction: z.ZodDefault>>; + realtimeSync: z.ZodDefault>; + timestampField: z.ZodOptional; + conflictResolution: z.ZodDefault>>; + batchSize: z.ZodDefault>; + deleteMode: z.ZodDefault>>; + filters: z.ZodOptional>; + }, z.core.$strip>>; + fieldMappings: z.ZodOptional; + defaultValue: z.ZodOptional; + dataType: z.ZodOptional>; + required: z.ZodDefault; + syncMode: z.ZodDefault>; + }, z.core.$strip>>>; + webhooks: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + object: z.ZodOptional; + triggers: z.ZodOptional>>; + url: z.ZodString; + method: z.ZodDefault>; + headers: z.ZodOptional>; + timeoutMs: z.ZodDefault; + secret: z.ZodOptional; + isActive: z.ZodDefault; + description: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + events: z.ZodOptional>>; + signatureAlgorithm: z.ZodDefault>>; + }, z.core.$strict>>>; + rateLimitConfig: z.ZodOptional; + retryConfig: z.ZodOptional>>; + maxAttempts: z.ZodDefault>; + initialDelayMs: z.ZodDefault>; + maxDelayMs: z.ZodDefault>; + backoffMultiplier: z.ZodDefault>; + retryableStatusCodes: z.ZodDefault>>; + retryOnNetworkError: z.ZodDefault>; + jitter: z.ZodDefault>; + }, z.core.$strip>>; + connectionTimeoutMs: z.ZodDefault>; + requestTimeoutMs: z.ZodDefault>; + status: z.ZodDefault>>; + enabled: z.ZodDefault>; + errorMapping: z.ZodOptional; + health: z.ZodOptional>; + timeoutMs: z.ZodDefault>; + endpoint: z.ZodOptional; + method: z.ZodOptional>; + expectedStatus: z.ZodDefault>; + unhealthyThreshold: z.ZodDefault>; + healthyThreshold: z.ZodDefault>; + }, z.core.$strip>>; + circuitBreaker: z.ZodOptional>; + resetTimeoutMs: z.ZodDefault>; + halfOpenMaxRequests: z.ZodDefault>; + monitoringWindowMs: z.ZodDefault>; + monitoringWindow: z.ZodOptional; + fallbackStrategy: z.ZodOptional>; + }, z.core.$strip>>; + }, z.core.$strip>>; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── HealthCheckConfig (type) ── +type HealthCheckConfig = z.input; + +// ── HealthCheckConfigParsed (type) ── +type HealthCheckConfigParsed = z.infer; + +// ── HealthCheckConfigSchema (const) ── +declare const HealthCheckConfigSchema: z.ZodObject<{ + enabled: z.ZodBoolean; + intervalMs: z.ZodDefault>; + timeoutMs: z.ZodDefault>; + endpoint: z.ZodOptional; + method: z.ZodOptional>; + expectedStatus: z.ZodDefault>; + unhealthyThreshold: z.ZodDefault>; + healthyThreshold: z.ZodDefault>; +}, z.core.$strip>; + +// ── ResolvedConnectorAuth (type) ── +type ResolvedConnectorAuth = Extract; + +// ── RetryConfig (type) ── +type RetryConfig = z.input; + +// ── RetryConfigParsed (type) ── +type RetryConfigParsed = z.infer; + +// ── RetryConfigSchema (const) ── +declare const RetryConfigSchema: z.ZodObject<{ + strategy: z.ZodDefault>>; + maxAttempts: z.ZodDefault>; + initialDelayMs: z.ZodDefault>; + maxDelayMs: z.ZodDefault>; + backoffMultiplier: z.ZodDefault>; + retryableStatusCodes: z.ZodDefault>>; + retryOnNetworkError: z.ZodDefault>; + jitter: z.ZodDefault>; +}, z.core.$strip>; + +// ── SyncStrategy (type) ── +type SyncStrategy = z.input; + +// ── SyncStrategySchema (const) ── +declare const SyncStrategySchema: z.ZodEnum<{ + full: "full"; + upsert: "upsert"; + incremental: "incremental"; + append_only: "append_only"; +}>; + +// ── WebhookConfig (type) ── +type WebhookConfig = z.input; + +// ── WebhookConfigParsed (type) ── +type WebhookConfigParsed = z.infer; + +// ── WebhookConfigSchema (const) ── +declare const WebhookConfigSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + object: z.ZodOptional; + triggers: z.ZodOptional>>; + url: z.ZodString; + method: z.ZodDefault>; + headers: z.ZodOptional>; + timeoutMs: z.ZodDefault; + secret: z.ZodOptional; + isActive: z.ZodDefault; + description: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + events: z.ZodOptional>>; + signatureAlgorithm: z.ZodDefault>>; +}, z.core.$strict>; + +// ── WebhookEvent (type) ── +type WebhookEvent = z.input; + +// ── WebhookEventSchema (const) ── +declare const WebhookEventSchema: z.ZodEnum<{ + "record.created": "record.created"; + "record.updated": "record.updated"; + "record.deleted": "record.deleted"; + "sync.started": "sync.started"; + "sync.completed": "sync.completed"; + "sync.failed": "sync.failed"; + "auth.expired": "auth.expired"; + "rate_limit.exceeded": "rate_limit.exceeded"; +}>; + +// ── WebhookSignatureAlgorithm (type) ── +type WebhookSignatureAlgorithm = z.input; + +// ── WebhookSignatureAlgorithmSchema (const) ── +declare const WebhookSignatureAlgorithmSchema: z.ZodEnum<{ + none: "none"; + hmac_sha256: "hmac_sha256"; + hmac_sha512: "hmac_sha512"; +}>; + +// ── defineConnector (function) ── +declare function defineConnector(config: z.input): ConnectorParsed; + +// ── isConnectorUpstreamUnavailable (function) ── +declare function isConnectorUpstreamUnavailable(err: unknown): boolean; diff --git a/packages/spec/api-surface-declarations/kernel.txt b/packages/spec/api-surface-declarations/kernel.txt new file mode 100644 index 00000000000..7f1fbbbb61e --- /dev/null +++ b/packages/spec/api-surface-declarations/kernel.txt @@ -0,0 +1,8628 @@ +# @objectstack/spec — the .d.ts DECLARATION TEXT of every export of `./kernel`. +# +# The SHAPE half of the ADR-0059 public-API pin, and the readable counterpart of +# api-surface/kernel.json's breadth half. That file pins each export by +# `name (kind)`, which a signature change, a renamed interface field and a dropped +# union member all leave untouched. This file pins the declaration text, so each of +# those moves a line here. Text and NOT a hash, deliberately: a diff a reviewer can +# read is what makes contract review a guard rather than a rubber stamp. +# +# Verbatim from the PACKED `.d.ts` reached through this package's `exports` map — the +# declarations a consumer installs, never `src/`. A declaration's leading TSDoc is +# excluded: documentation drift is `check:docs`'s axis, not this one. +# +# entry: ./kernel +# exported names: 474 +# declarations: 478 +# +# GENERATED — ⛔ never hand-edited. Regenerate after a real build: +# pnpm --filter @objectstack/spec build && pnpm --filter @objectstack/spec gen:api-surface-declarations +# Gated by `check:api-surface-declarations`; a hand edit is a red gate, not a change. + +// ── ArtifactChecksum (type) ── +type ArtifactChecksum = z.input; + +// ── ArtifactChecksumParsed (type) ── +type ArtifactChecksumParsed = z.infer; + +// ── ArtifactChecksumSchema (const) ── +declare const ArtifactChecksumSchema: z.ZodObject<{ + algorithm: z.ZodDefault>; + files: z.ZodRecord; +}, z.core.$strip>; + +// ── ArtifactFileEntry (type) ── +type ArtifactFileEntry = z.input; + +// ── ArtifactFileEntrySchema (const) ── +declare const ArtifactFileEntrySchema: z.ZodObject<{ + path: z.ZodString; + size: z.ZodNumber; + category: z.ZodOptional>; +}, z.core.$strip>; + +// ── ArtifactSignature (type) ── +type ArtifactSignature = z.input; + +// ── ArtifactSignatureParsed (type) ── +type ArtifactSignatureParsed = z.infer; + +// ── ArtifactSignatureSchema (const) ── +declare const ArtifactSignatureSchema: z.ZodObject<{ + algorithm: z.ZodDefault>; + publicKeyRef: z.ZodString; + signature: z.ZodString; + signedAt: z.ZodOptional; + signedBy: z.ZodOptional; +}, z.core.$strip>; + +// ── BreakingChange (type) ── +type BreakingChange = z.input; + +// ── BreakingChangeParsed (type) ── +type BreakingChangeParsed = z.infer; + +// ── BreakingChangeSchema (const) ── +declare const BreakingChangeSchema: z.ZodObject<{ + introducedIn: z.ZodString; + type: z.ZodEnum<{ + "api-removed": "api-removed"; + "api-renamed": "api-renamed"; + "api-signature-changed": "api-signature-changed"; + "behavior-changed": "behavior-changed"; + "dependency-changed": "dependency-changed"; + "configuration-changed": "configuration-changed"; + "protocol-changed": "protocol-changed"; + }>; + description: z.ZodString; + migrationGuide: z.ZodOptional; + deprecatedIn: z.ZodOptional; + removedIn: z.ZodOptional; + automatedMigration: z.ZodDefault; + severity: z.ZodEnum<{ + critical: "critical"; + major: "major"; + minor: "minor"; + }>; +}, z.core.$strip>; + +// ── CONSUMER_INSTALLABLE_TYPES (const) ── +declare const CONSUMER_INSTALLABLE_TYPES: readonly ["app"]; + +// ── CORE_PLUGIN_TYPES (const) ── +declare const CORE_PLUGIN_TYPES: readonly ["ui", "driver", "server", "app", "theme", "agent", "objectql"]; + +// ── CapabilityClassification (interface) ── +interface CapabilityClassification { + readonly token: string; + readonly status: CapabilityProviderStatus; + /** Present for every known token (absent only when `status` is `unknown`). */ + readonly provider?: PlatformCapabilityProvider; +} + +// ── CapabilityConformanceLevel (type) ── +type CapabilityConformanceLevel = z.input; + +// ── CapabilityConformanceLevelSchema (const) ── +declare const CapabilityConformanceLevelSchema: z.ZodEnum<{ + partial: "partial"; + deprecated: "deprecated"; + full: "full"; + experimental: "experimental"; +}>; + +// ── CapabilityEdition (type) ── +type CapabilityEdition = 'open' | 'enterprise' | 'cloud'; + +// ── CapabilityProviderStatus (type) ── +type CapabilityProviderStatus = 'ok' | 'installable' | 'unavailable' | 'unknown'; + +// ── ClusterCapabilityConfig (type) ── +type ClusterCapabilityConfig = z.input; + +// ── ClusterCapabilityConfigParsed (type) ── +type ClusterCapabilityConfigParsed = z.infer; + +// ── ClusterCapabilityConfigSchema (const) ── +declare const ClusterCapabilityConfigSchema: z.ZodObject<{ + driver: z.ZodDefault>>; + url: z.ZodOptional; + useExistingPool: z.ZodDefault>; + nodeId: z.ZodOptional; + heartbeatMs: z.ZodDefault>; + lockTtlMs: z.ZodDefault>; + tenantIsolation: z.ZodDefault>>; + driverOptions: z.ZodOptional>; +}, z.core.$strip>; + +// ── ClusterDriver (type) ── +type ClusterDriver = z.input; + +// ── ClusterDriverSchema (const) ── +declare const ClusterDriverSchema: z.ZodEnum<{ + custom: "custom"; + memory: "memory"; + redis: "redis"; +}>; + +// ── ClusterTenantIsolation (type) ── +type ClusterTenantIsolation = z.input; + +// ── ClusterTenantIsolationSchema (const) ── +declare const ClusterTenantIsolationSchema: z.ZodEnum<{ + "channel-prefix": "channel-prefix"; + none: "none"; +}>; + +// ── CompatibilityLevel (type) ── +type CompatibilityLevel = z.input; + +// ── CompatibilityLevelSchema (const) ── +declare const CompatibilityLevelSchema: z.ZodEnum<{ + "fully-compatible": "fully-compatible"; + "backward-compatible": "backward-compatible"; + "deprecated-compatible": "deprecated-compatible"; + "breaking-changes": "breaking-changes"; + incompatible: "incompatible"; +}>; + +// ── CompatibilityMatrixEntry (type) ── +type CompatibilityMatrixEntry = z.input; + +// ── CompatibilityMatrixEntryParsed (type) ── +type CompatibilityMatrixEntryParsed = z.infer; + +// ── CompatibilityMatrixEntrySchema (const) ── +declare const CompatibilityMatrixEntrySchema: z.ZodObject<{ + from: z.ZodString; + to: z.ZodString; + compatibility: z.ZodEnum<{ + "fully-compatible": "fully-compatible"; + "backward-compatible": "backward-compatible"; + "deprecated-compatible": "deprecated-compatible"; + "breaking-changes": "breaking-changes"; + incompatible: "incompatible"; + }>; + breakingChanges: z.ZodOptional; + description: z.ZodString; + migrationGuide: z.ZodOptional; + deprecatedIn: z.ZodOptional; + removedIn: z.ZodOptional; + automatedMigration: z.ZodDefault; + severity: z.ZodEnum<{ + critical: "critical"; + major: "major"; + minor: "minor"; + }>; + }, z.core.$strip>>>; + migrationRequired: z.ZodDefault; + migrationComplexity: z.ZodOptional>; + estimatedMigrationTime: z.ZodOptional; + migrationScript: z.ZodOptional; + testCoverage: z.ZodOptional; +}, z.core.$strip>; + +// ── CompletenessFinding (interface) ── +interface CompletenessFinding { + /** Stable rule id, e.g. `field/summary-without-operations`. */ + rule: string; + /** `error` = fully inert instance; `warning` = degrades (ADR-0078 §1). */ + severity: 'error' | 'warning'; + /** Path of the omitted config relative to the item (e.g. `summaryOperations`). */ + path: string; + /** What is inert, the runtime line that makes it so, and what to add. */ + message: string; + /** One-line prescription, machine-pastable where possible. */ + fix: string; +} + +// ── DEFAULT_METADATA_TYPE_REGISTRY (const) ── +declare const DEFAULT_METADATA_TYPE_REGISTRY: MetadataTypeRegistryEntryParsed[]; + +// ── DeadLetterQueueEntry (type) ── +type DeadLetterQueueEntry = z.input; + +// ── DeadLetterQueueEntryParsed (type) ── +type DeadLetterQueueEntryParsed = z.infer; + +// ── DeadLetterQueueEntrySchema (const) ── +declare const DeadLetterQueueEntrySchema: z.ZodObject<{ + id: z.ZodString; + event: z.ZodObject<{ + id: z.ZodOptional; + name: z.ZodString; + payload: z.ZodUnknown; + metadata: z.ZodObject<{ + source: z.ZodString; + timestamp: z.ZodString; + userId: z.ZodOptional; + tenantId: z.ZodOptional; + correlationId: z.ZodOptional; + causationId: z.ZodOptional; + priority: z.ZodDefault>>; + cluster: z.ZodOptional>>; + deliverySemantics: z.ZodOptional>; + partitionKey: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + }, z.core.$strip>; + error: z.ZodObject<{ + message: z.ZodString; + stack: z.ZodOptional; + code: z.ZodOptional; + }, z.core.$strip>; + retries: z.ZodNumber; + firstFailedAt: z.ZodString; + lastFailedAt: z.ZodString; + failedHandler: z.ZodOptional; +}, z.core.$strip>; + +// ── DependencyConflict (type) ── +type DependencyConflict = z.input; + +// ── DependencyConflictParsed (type) ── +type DependencyConflictParsed = z.infer; + +// ── DependencyConflictSchema (const) ── +declare const DependencyConflictSchema: z.ZodObject<{ + type: z.ZodEnum<{ + "version-mismatch": "version-mismatch"; + "missing-dependency": "missing-dependency"; + "circular-dependency": "circular-dependency"; + "incompatible-versions": "incompatible-versions"; + "conflicting-interfaces": "conflicting-interfaces"; + }>; + plugins: z.ZodArray; + }, z.core.$strip>>; + description: z.ZodString; + resolutions: z.ZodOptional; + description: z.ZodString; + automaticResolution: z.ZodDefault; + riskLevel: z.ZodEnum<{ + high: "high"; + low: "low"; + medium: "medium"; + }>; + }, z.core.$strip>>>; + severity: z.ZodEnum<{ + error: "error"; + critical: "critical"; + info: "info"; + warning: "warning"; + }>; +}, z.core.$strip>; + +// ── DependencyGraph (type) ── +type DependencyGraph = z.input; + +// ── DependencyGraphNode (type) ── +type DependencyGraphNode = z.input; + +// ── DependencyGraphNodeParsed (type) ── +type DependencyGraphNodeParsed = z.infer; + +// ── DependencyGraphNodeSchema (const) ── +declare const DependencyGraphNodeSchema: z.ZodObject<{ + id: z.ZodString; + version: z.ZodString; + dependencies: z.ZodDefault>; + resolvedVersion: z.ZodOptional; + }, z.core.$strip>>>; + depth: z.ZodNumber; + isDirect: z.ZodBoolean; + metadata: z.ZodOptional; + license: z.ZodOptional; + homepage: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── DependencyGraphParsed (type) ── +type DependencyGraphParsed = z.infer; + +// ── DependencyGraphSchema (const) ── +declare const DependencyGraphSchema: z.ZodObject<{ + root: z.ZodObject<{ + id: z.ZodString; + version: z.ZodString; + }, z.core.$strip>; + nodes: z.ZodArray>; + resolvedVersion: z.ZodOptional; + }, z.core.$strip>>>; + depth: z.ZodNumber; + isDirect: z.ZodBoolean; + metadata: z.ZodOptional; + license: z.ZodOptional; + homepage: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + edges: z.ZodArray>; + stats: z.ZodObject<{ + totalDependencies: z.ZodNumber; + directDependencies: z.ZodNumber; + maxDepth: z.ZodNumber; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── DependencyResolutionResult (type) ── +type DependencyResolutionResult = z.input; + +// ── DependencyResolutionResultSchema (const) ── +declare const DependencyResolutionResultSchema: z.ZodObject<{ + dependencies: z.ZodArray; + installedVersion: z.ZodOptional; + status: z.ZodEnum<{ + conflict: "conflict"; + satisfied: "satisfied"; + needs_install: "needs_install"; + needs_upgrade: "needs_upgrade"; + }>; + conflictReason: z.ZodOptional; + }, z.core.$strip>>; + canProceed: z.ZodBoolean; + requiredActions: z.ZodArray; + packageId: z.ZodString; + description: z.ZodString; + }, z.core.$strip>>; + installOrder: z.ZodArray; + circularDependencies: z.ZodOptional>>; +}, z.core.$strip>; + +// ── DependencyStatus (type) ── +type DependencyStatus = z.input; + +// ── DependencyStatusEnum (const) ── +declare const DependencyStatusEnum: z.ZodEnum<{ + conflict: "conflict"; + satisfied: "satisfied"; + needs_install: "needs_install"; + needs_upgrade: "needs_upgrade"; +}>; + +// ── DeprecationNotice (type) ── +type DeprecationNotice = z.input; + +// ── DeprecationNoticeSchema (const) ── +declare const DeprecationNoticeSchema: z.ZodObject<{ + feature: z.ZodString; + deprecatedIn: z.ZodString; + removeIn: z.ZodOptional; + reason: z.ZodString; + alternative: z.ZodOptional; + migrationPath: z.ZodOptional; +}, z.core.$strip>; + +// ── DisablePackageRequest (type) ── +type DisablePackageRequest = z.input; + +// ── DisablePackageRequestSchema (const) ── +declare const DisablePackageRequestSchema: z.ZodObject<{ + id: z.ZodString; +}, z.core.$strip>; + +// ── DisablePackageResponse (type) ── +type DisablePackageResponse = z.input; + +// ── DisablePackageResponseParsed (type) ── +type DisablePackageResponseParsed = z.infer; + +// ── DisablePackageResponseSchema (const) ── +declare const DisablePackageResponseSchema: z.ZodObject<{ + package: z.ZodObject<{ + manifest: z.ZodObject<{ + id: z.ZodString; + namespace: z.ZodOptional; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>; + status: z.ZodDefault>; + enabled: z.ZodDefault; + installedAt: z.ZodOptional; + updatedAt: z.ZodOptional; + installedVersion: z.ZodOptional; + previousVersion: z.ZodOptional; + statusChangedAt: z.ZodOptional; + errorMessage: z.ZodOptional; + settings: z.ZodOptional>; + upgradeHistory: z.ZodOptional; + migrationLog: z.ZodOptional>; + }, z.core.$strip>>>; + registeredNamespaces: z.ZodOptional>; + }, z.core.$strip>; + message: z.ZodOptional; +}, z.core.$strip>; + +// ── EVENT_PRIORITY_VALUES (const) ── +declare const EVENT_PRIORITY_VALUES: Record; + +// ── EnablePackageRequest (type) ── +type EnablePackageRequest = z.input; + +// ── EnablePackageRequestSchema (const) ── +declare const EnablePackageRequestSchema: z.ZodObject<{ + id: z.ZodString; +}, z.core.$strip>; + +// ── EnablePackageResponse (type) ── +type EnablePackageResponse = z.input; + +// ── EnablePackageResponseParsed (type) ── +type EnablePackageResponseParsed = z.infer; + +// ── EnablePackageResponseSchema (const) ── +declare const EnablePackageResponseSchema: z.ZodObject<{ + package: z.ZodObject<{ + manifest: z.ZodObject<{ + id: z.ZodString; + namespace: z.ZodOptional; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>; + status: z.ZodDefault>; + enabled: z.ZodDefault; + installedAt: z.ZodOptional; + updatedAt: z.ZodOptional; + installedVersion: z.ZodOptional; + previousVersion: z.ZodOptional; + statusChangedAt: z.ZodOptional; + errorMessage: z.ZodOptional; + settings: z.ZodOptional>; + upgradeHistory: z.ZodOptional; + migrationLog: z.ZodOptional>; + }, z.core.$strip>>>; + registeredNamespaces: z.ZodOptional>; + }, z.core.$strip>; + message: z.ZodOptional; +}, z.core.$strip>; + +// ── Event (type) ── +type Event = z.input; + +// ── EventBusConfig (type) ── +type EventBusConfig = z.input; + +// ── EventBusConfigParsed (type) ── +type EventBusConfigParsed = z.infer; + +// ── EventBusConfigSchema (const) ── +declare const EventBusConfigSchema: z.ZodObject<{ + persistence: z.ZodOptional; + retentionDays: z.ZodNumber; + retention: z.ZodOptional; + filter: z.ZodOptional; + storage: z.ZodDefault>; + }, z.core.$strip>>; + queue: z.ZodOptional; + concurrency: z.ZodDefault; + retryPolicy: z.ZodOptional; + backoffStrategy: z.ZodDefault>; + initialDelayMs: z.ZodDefault; + maxDelayMs: z.ZodDefault; + }, z.core.$strip>>; + deadLetterQueue: z.ZodOptional; + priorityEnabled: z.ZodDefault; + }, z.core.$strip>>; + eventSourcing: z.ZodOptional; + snapshotInterval: z.ZodDefault; + snapshotRetention: z.ZodDefault; + retentionDays: z.ZodDefault; + retention: z.ZodOptional; + aggregateTypes: z.ZodOptional>; + storage: z.ZodOptional>; + options: z.ZodOptional>; + }, z.core.$strip>>; + }, z.core.$strip>>; + replay: z.ZodOptional; + }, z.core.$strip>>; + webhooks: z.ZodOptional; + eventPattern: z.ZodString; + url: z.ZodString; + method: z.ZodDefault>; + headers: z.ZodOptional>; + authentication: z.ZodOptional; + credentials: z.ZodOptional>; + }, z.core.$strip>>; + retryPolicy: z.ZodOptional; + backoffStrategy: z.ZodDefault>; + initialDelayMs: z.ZodDefault; + maxDelayMs: z.ZodDefault; + }, z.core.$strip>>; + timeoutMs: z.ZodDefault; + transform: z.ZodOptional; + enabled: z.ZodDefault; + }, z.core.$strip>>>; + messageQueue: z.ZodOptional; + topic: z.ZodString; + eventPattern: z.ZodDefault; + partitionKey: z.ZodOptional; + format: z.ZodDefault>; + includeMetadata: z.ZodDefault; + compression: z.ZodDefault>; + batchSize: z.ZodDefault; + flushIntervalMs: z.ZodDefault; + }, z.core.$strip>>; + realtime: z.ZodOptional; + protocol: z.ZodDefault>; + eventPattern: z.ZodDefault; + userFilter: z.ZodDefault; + tenantFilter: z.ZodDefault; + channels: z.ZodOptional; + }, z.core.$strip>>>; + rateLimit: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + eventTypes: z.ZodOptional; + schema: z.ZodOptional; + description: z.ZodOptional; + deprecated: z.ZodDefault>; + tags: z.ZodOptional>; + }, z.core.$strip>>>; + handlers: z.ZodOptional; + eventName: z.ZodString; + handler: z.ZodUnknown; + priority: z.ZodDefault; + async: z.ZodDefault; + retry: z.ZodOptional; + backoffMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; + }, z.core.$strip>>; + timeoutMs: z.ZodOptional; + filter: z.ZodOptional; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── EventClusterOptions (type) ── +type EventClusterOptions = z.input; + +// ── EventClusterOptionsParsed (type) ── +type EventClusterOptionsParsed = z.infer; + +// ── EventClusterOptionsSchema (const) ── +declare const EventClusterOptionsSchema: z.ZodObject<{ + scope: z.ZodDefault>>; + deliverySemantics: z.ZodOptional>; + partitionKey: z.ZodOptional; +}, z.core.$strip>; + +// ── EventDeliverySemantics (type) ── +type EventDeliverySemantics = z.input; + +// ── EventDeliverySemanticsSchema (const) ── +declare const EventDeliverySemanticsSchema: z.ZodEnum<{ + "best-effort": "best-effort"; + "at-least-once": "at-least-once"; + "exactly-once": "exactly-once"; +}>; + +// ── EventHandler (type) ── +type EventHandler = z.input; + +// ── EventHandlerParsed (type) ── +type EventHandlerParsed = z.infer; + +// ── EventHandlerSchema (const) ── +declare const EventHandlerSchema: z.ZodObject<{ + id: z.ZodOptional; + eventName: z.ZodString; + handler: z.ZodUnknown; + priority: z.ZodDefault; + async: z.ZodDefault; + retry: z.ZodOptional; + backoffMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; + }, z.core.$strip>>; + timeoutMs: z.ZodOptional; + filter: z.ZodOptional; +}, z.core.$strip>; + +// ── EventLogEntry (type) ── +type EventLogEntry = z.input; + +// ── EventLogEntryParsed (type) ── +type EventLogEntryParsed = z.infer; + +// ── EventLogEntrySchema (const) ── +declare const EventLogEntrySchema: z.ZodObject<{ + id: z.ZodString; + event: z.ZodObject<{ + id: z.ZodOptional; + name: z.ZodString; + payload: z.ZodUnknown; + metadata: z.ZodObject<{ + source: z.ZodString; + timestamp: z.ZodString; + userId: z.ZodOptional; + tenantId: z.ZodOptional; + correlationId: z.ZodOptional; + causationId: z.ZodOptional; + priority: z.ZodDefault>>; + cluster: z.ZodOptional>>; + deliverySemantics: z.ZodOptional>; + partitionKey: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + }, z.core.$strip>; + status: z.ZodEnum<{ + failed: "failed"; + pending: "pending"; + processing: "processing"; + completed: "completed"; + }>; + handlersExecuted: z.ZodOptional; + durationMs: z.ZodOptional; + error: z.ZodOptional; + }, z.core.$strip>>>; + receivedAt: z.ZodString; + processedAt: z.ZodOptional; + totalDurationMs: z.ZodOptional; +}, z.core.$strip>; + +// ── EventMessageQueueConfig (type) ── +type EventMessageQueueConfig = z.input; + +// ── EventMessageQueueConfigParsed (type) ── +type EventMessageQueueConfigParsed = z.infer; + +// ── EventMessageQueueConfigSchema (const) ── +declare const EventMessageQueueConfigSchema: z.ZodObject<{ + provider: z.ZodEnum<{ + kafka: "kafka"; + rabbitmq: "rabbitmq"; + "aws-sqs": "aws-sqs"; + "redis-pubsub": "redis-pubsub"; + "google-pubsub": "google-pubsub"; + "azure-service-bus": "azure-service-bus"; + }>; + topic: z.ZodString; + eventPattern: z.ZodDefault; + partitionKey: z.ZodOptional; + format: z.ZodDefault>; + includeMetadata: z.ZodDefault; + compression: z.ZodDefault>; + batchSize: z.ZodDefault; + flushIntervalMs: z.ZodDefault; +}, z.core.$strip>; + +// ── EventMetadataSchema (const) ── +declare const EventMetadataSchema: z.ZodObject<{ + source: z.ZodString; + timestamp: z.ZodString; + userId: z.ZodOptional; + tenantId: z.ZodOptional; + correlationId: z.ZodOptional; + causationId: z.ZodOptional; + priority: z.ZodDefault>>; + cluster: z.ZodOptional>>; + deliverySemantics: z.ZodOptional>; + partitionKey: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── EventParsed (type) ── +type EventParsed = z.infer; + +// ── EventPersistence (type) ── +type EventPersistence = z.input; + +// ── EventPersistenceParsed (type) ── +type EventPersistenceParsed = z.infer; + +// ── EventPersistenceSchema (const) ── +declare const EventPersistenceSchema: z.ZodObject<{ + enabled: z.ZodDefault; + retentionDays: z.ZodNumber; + retention: z.ZodOptional; + filter: z.ZodOptional; + storage: z.ZodDefault>; +}, z.core.$strip>; + +// ── EventPriority (const) ── +declare const EventPriority: z.ZodEnum<{ + critical: "critical"; + high: "high"; + normal: "normal"; + low: "low"; + background: "background"; +}>; + +// ── EventPriority (type) ── +type EventPriority = z.input; + +// ── EventQueueConfig (type) ── +type EventQueueConfig = z.input; + +// ── EventQueueConfigParsed (type) ── +type EventQueueConfigParsed = z.infer; + +// ── EventQueueConfigSchema (const) ── +declare const EventQueueConfigSchema: z.ZodObject<{ + name: z.ZodDefault; + concurrency: z.ZodDefault; + retryPolicy: z.ZodOptional; + backoffStrategy: z.ZodDefault>; + initialDelayMs: z.ZodDefault; + maxDelayMs: z.ZodDefault; + }, z.core.$strip>>; + deadLetterQueue: z.ZodOptional; + priorityEnabled: z.ZodDefault; +}, z.core.$strip>; + +// ── EventReplayConfig (type) ── +type EventReplayConfig = z.input; + +// ── EventReplayConfigParsed (type) ── +type EventReplayConfigParsed = z.infer; + +// ── EventReplayConfigSchema (const) ── +declare const EventReplayConfigSchema: z.ZodObject<{ + fromTimestamp: z.ZodString; + toTimestamp: z.ZodOptional; + eventTypes: z.ZodOptional>; + filters: z.ZodOptional>; + speed: z.ZodDefault; + targetHandlers: z.ZodOptional>; +}, z.core.$strip>; + +// ── EventRoute (type) ── +type EventRoute = z.input; + +// ── EventRouteSchema (const) ── +declare const EventRouteSchema: z.ZodObject<{ + from: z.ZodString; + to: z.ZodArray; + transform: z.ZodOptional; +}, z.core.$strip>; + +// ── EventSchema (const) ── +declare const EventSchema: z.ZodObject<{ + id: z.ZodOptional; + name: z.ZodString; + payload: z.ZodUnknown; + metadata: z.ZodObject<{ + source: z.ZodString; + timestamp: z.ZodString; + userId: z.ZodOptional; + tenantId: z.ZodOptional; + correlationId: z.ZodOptional; + causationId: z.ZodOptional; + priority: z.ZodDefault>>; + cluster: z.ZodOptional>>; + deliverySemantics: z.ZodOptional>; + partitionKey: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── EventScope (type) ── +type EventScope = z.input; + +// ── EventScopeSchema (const) ── +declare const EventScopeSchema: z.ZodEnum<{ + local: "local"; + cluster: "cluster"; + tenant: "tenant"; +}>; + +// ── EventSourcingConfig (type) ── +type EventSourcingConfig = z.input; + +// ── EventSourcingConfigParsed (type) ── +type EventSourcingConfigParsed = z.infer; + +// ── EventSourcingConfigSchema (const) ── +declare const EventSourcingConfigSchema: z.ZodObject<{ + enabled: z.ZodDefault; + snapshotInterval: z.ZodDefault; + snapshotRetention: z.ZodDefault; + retentionDays: z.ZodDefault; + retention: z.ZodOptional; + aggregateTypes: z.ZodOptional>; + storage: z.ZodOptional>; + options: z.ZodOptional>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── EventTypeDefinition (type) ── +type EventTypeDefinition = z.input; + +// ── EventTypeDefinitionParsed (type) ── +type EventTypeDefinitionParsed = z.infer; + +// ── EventTypeDefinitionSchema (const) ── +declare const EventTypeDefinitionSchema: z.ZodObject<{ + name: z.ZodString; + version: z.ZodDefault; + schema: z.ZodOptional; + description: z.ZodOptional; + deprecated: z.ZodDefault>; + tags: z.ZodOptional>; +}, z.core.$strip>; + +// ── EventWebhookConfig (type) ── +type EventWebhookConfig = z.input; + +// ── EventWebhookConfigParsed (type) ── +type EventWebhookConfigParsed = z.infer; + +// ── EventWebhookConfigSchema (const) ── +declare const EventWebhookConfigSchema: z.ZodObject<{ + id: z.ZodOptional; + eventPattern: z.ZodString; + url: z.ZodString; + method: z.ZodDefault>; + headers: z.ZodOptional>; + authentication: z.ZodOptional; + credentials: z.ZodOptional>; + }, z.core.$strip>>; + retryPolicy: z.ZodOptional; + backoffStrategy: z.ZodDefault>; + initialDelayMs: z.ZodDefault; + maxDelayMs: z.ZodDefault; + }, z.core.$strip>>; + timeoutMs: z.ZodDefault; + transform: z.ZodOptional; + enabled: z.ZodDefault; +}, z.core.$strip>; + +// ── ExecutionContext (type) ── +type ExecutionContext = z.input; + +// ── ExecutionContextParsed (type) ── +type ExecutionContextParsed = z.infer; + +// ── ExecutionContextSchema (const) ── +declare const ExecutionContextSchema: z.ZodObject<{ + userId: z.ZodOptional; + actor: z.ZodOptional; + attributedUserId: z.ZodOptional; + email: z.ZodOptional; + tenantId: z.ZodOptional; + timezone: z.ZodOptional; + locale: z.ZodOptional; + currency: z.ZodOptional; + positions: z.ZodDefault>; + principalKind: z.ZodOptional>; + audience: z.ZodOptional>; + posture: z.ZodOptional>; + authGate: z.ZodOptional>; + onBehalfOf: z.ZodOptional>; + }, z.core.$strip>>; + performedBy: z.ZodOptional>; + permissions: z.ZodDefault>; + systemPermissions: z.ZodOptional>; + tabPermissions: z.ZodOptional>>; + org_user_ids: z.ZodOptional>; + accessible_org_ids: z.ZodOptional>; + rlsMembership: z.ZodOptional>>; + isSystem: z.ZodDefault; + flowRunId: z.ZodOptional; + skipTriggers: z.ZodOptional; + skipAutomations: z.ZodOptional; + seedReplay: z.ZodOptional; + skipStateMachine: z.ZodOptional; + preserveAudit: z.ZodOptional; + oauthScopes: z.ZodOptional>; + accessToken: z.ZodOptional; + transaction: z.ZodOptional; + traceId: z.ZodOptional; +}, z.core.$strip>; + +// ── ExtensionPoint (type) ── +type ExtensionPoint = z.input; + +// ── ExtensionPointParsed (type) ── +type ExtensionPointParsed = z.infer; + +// ── ExtensionPointSchema (const) ── +declare const ExtensionPointSchema: z.ZodObject<{ + id: z.ZodString; + name: z.ZodString; + description: z.ZodOptional; + type: z.ZodEnum<{ + provider: "provider"; + widget: "widget"; + action: "action"; + hook: "hook"; + transformer: "transformer"; + validator: "validator"; + decorator: "decorator"; + }>; + contract: z.ZodOptional; + output: z.ZodOptional; + signature: z.ZodOptional; + }, z.core.$strip>>; + cardinality: z.ZodDefault>; +}, z.core.$strip>; + +// ── FIELD_CHOICE_WITHOUT_OPTIONS (const) ── +declare const FIELD_CHOICE_WITHOUT_OPTIONS = "field/choice-without-options"; + +// ── FIELD_FORMULA_WITHOUT_EXPRESSION (const) ── +declare const FIELD_FORMULA_WITHOUT_EXPRESSION = "field/formula-without-expression"; + +// ── FIELD_RELATIONSHIP_WITHOUT_REFERENCE (const) ── +declare const FIELD_RELATIONSHIP_WITHOUT_REFERENCE = "field/relationship-without-reference"; + +// ── FIELD_SUMMARY_WITHOUT_OPERATIONS (const) ── +declare const FIELD_SUMMARY_WITHOUT_OPERATIONS = "field/summary-without-operations"; + +// ── FUNCTIONAL_COMPLETENESS_RULES (const) ── +declare const FUNCTIONAL_COMPLETENESS_RULES: readonly ["field/summary-without-operations", "field/formula-without-expression", "field/relationship-without-reference", "field/choice-without-options", "view/layout-without-binding", "view/tree-without-parent-field", "view/row-color-without-colors", "view/row-color-unresolvable-value", "webhook/without-triggers"]; + +// ── GetPackageRequest (type) ── +type GetPackageRequest = z.input; + +// ── GetPackageRequestSchema (const) ── +declare const GetPackageRequestSchema: z.ZodObject<{ + id: z.ZodString; +}, z.core.$strip>; + +// ── GetPackageResponse (type) ── +type GetPackageResponse = z.input; + +// ── GetPackageResponseParsed (type) ── +type GetPackageResponseParsed = z.infer; + +// ── GetPackageResponseSchema (const) ── +declare const GetPackageResponseSchema: z.ZodObject<{ + package: z.ZodObject<{ + manifest: z.ZodObject<{ + id: z.ZodString; + namespace: z.ZodOptional; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>; + status: z.ZodDefault>; + enabled: z.ZodDefault; + installedAt: z.ZodOptional; + updatedAt: z.ZodOptional; + installedVersion: z.ZodOptional; + previousVersion: z.ZodOptional; + statusChangedAt: z.ZodOptional; + errorMessage: z.ZodOptional; + settings: z.ZodOptional>; + upgradeHistory: z.ZodOptional; + migrationLog: z.ZodOptional>; + }, z.core.$strip>>>; + registeredNamespaces: z.ZodOptional>; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── HotReloadConfig (type) ── +type HotReloadConfig = z.input; + +// ── HotReloadConfigParsed (type) ── +type HotReloadConfigParsed = z.infer; + +// ── HotReloadConfigSchema (const) ── +declare const HotReloadConfigSchema: z.ZodObject<{ + enabled: z.ZodDefault; + watchPatterns: z.ZodOptional; + debounceDelayMs: z.ZodDefault; + debounceDelay: z.ZodOptional; + preserveState: z.ZodDefault; + stateStrategy: z.ZodDefault>; + shutdownTimeout: z.ZodDefault; + beforeReload: z.ZodOptional>; + afterReload: z.ZodOptional>; +}, z.core.$strip>; + +// ── InstallPackageRequest (type) ── +type InstallPackageRequest = z.input; + +// ── InstallPackageRequestParsed (type) ── +type InstallPackageRequestParsed = z.infer; + +// ── InstallPackageRequestSchema (const) ── +declare const InstallPackageRequestSchema: z.ZodObject<{ + manifest: z.ZodObject<{ + id: z.ZodString; + namespace: z.ZodOptional; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>; + settings: z.ZodOptional>; + enableOnInstall: z.ZodDefault; + platformVersion: z.ZodOptional; +}, z.core.$strip>; + +// ── InstallPackageResponse (type) ── +type InstallPackageResponse = z.input; + +// ── InstallPackageResponseParsed (type) ── +type InstallPackageResponseParsed = z.infer; + +// ── InstallPackageResponseSchema (const) ── +declare const InstallPackageResponseSchema: z.ZodObject<{ + package: z.ZodObject<{ + manifest: z.ZodObject<{ + id: z.ZodString; + namespace: z.ZodOptional; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>; + status: z.ZodDefault>; + enabled: z.ZodDefault; + installedAt: z.ZodOptional; + updatedAt: z.ZodOptional; + installedVersion: z.ZodOptional; + previousVersion: z.ZodOptional; + statusChangedAt: z.ZodOptional; + errorMessage: z.ZodOptional; + settings: z.ZodOptional>; + upgradeHistory: z.ZodOptional; + migrationLog: z.ZodOptional>; + }, z.core.$strip>>>; + registeredNamespaces: z.ZodOptional>; + }, z.core.$strip>; + message: z.ZodOptional; + dependencyResolution: z.ZodOptional; + installedVersion: z.ZodOptional; + status: z.ZodEnum<{ + conflict: "conflict"; + satisfied: "satisfied"; + needs_install: "needs_install"; + needs_upgrade: "needs_upgrade"; + }>; + conflictReason: z.ZodOptional; + }, z.core.$strip>>; + canProceed: z.ZodBoolean; + requiredActions: z.ZodArray; + packageId: z.ZodString; + description: z.ZodString; + }, z.core.$strip>>; + installOrder: z.ZodArray; + circularDependencies: z.ZodOptional>>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── InstalledPackage (type) ── +type InstalledPackage = z.input; + +// ── InstalledPackageParsed (type) ── +type InstalledPackageParsed = z.infer; + +// ── InstalledPackageSchema (const) ── +declare const InstalledPackageSchema: z.ZodObject<{ + manifest: z.ZodObject<{ + id: z.ZodString; + namespace: z.ZodOptional; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>; + status: z.ZodDefault>; + enabled: z.ZodDefault; + installedAt: z.ZodOptional; + updatedAt: z.ZodOptional; + installedVersion: z.ZodOptional; + previousVersion: z.ZodOptional; + statusChangedAt: z.ZodOptional; + errorMessage: z.ZodOptional; + settings: z.ZodOptional>; + upgradeHistory: z.ZodOptional; + migrationLog: z.ZodOptional>; + }, z.core.$strip>>>; + registeredNamespaces: z.ZodOptional>; +}, z.core.$strip>; + +// ── KernelContext (type) ── +type KernelContext = z.input; + +// ── KernelContextParsed (type) ── +type KernelContextParsed = z.infer; + +// ── KernelContextSchema (const) ── +declare const KernelContextSchema: z.ZodObject<{ + instanceId: z.ZodString; + mode: z.ZodDefault>; + version: z.ZodString; + appName: z.ZodOptional; + cwd: z.ZodString; + workspaceRoot: z.ZodOptional; + startedAt: z.ZodNumber; + features: z.ZodDefault>; + previewMode: z.ZodOptional; + startTime: z.ZodOptional; +}, z.core.$strip>; + +// ── KernelSecurityPolicy (type) ── +type KernelSecurityPolicy = z.input; + +// ── KernelSecurityPolicyParsed (type) ── +type KernelSecurityPolicyParsed = z.infer; + +// ── KernelSecurityPolicySchema (const) ── +declare const KernelSecurityPolicySchema: z.ZodObject<{ + csp: z.ZodOptional>>; + reportOnly: z.ZodDefault; + }, z.core.$strip>>; + cors: z.ZodOptional; + allowedMethods: z.ZodArray; + allowedHeaders: z.ZodArray; + allowCredentials: z.ZodDefault; + maxAge: z.ZodOptional; + }, z.core.$strip>>; + rateLimit: z.ZodOptional; + maxRequests: z.ZodNumber; + windowMs: z.ZodNumber; + strategy: z.ZodDefault>; + }, z.core.$strip>>; + authentication: z.ZodOptional; + methods: z.ZodArray>; + tokenExpirationSeconds: z.ZodOptional; + tokenExpiration: z.ZodOptional; + }, z.core.$strip>>; + encryption: z.ZodOptional; + dataInTransit: z.ZodDefault; + algorithm: z.ZodOptional; + minKeyLength: z.ZodOptional; + }, z.core.$strip>>; + auditLog: z.ZodOptional; + events: z.ZodOptional>; + retentionDays: z.ZodOptional; + retention: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── KernelSecurityScanResult (type) ── +type KernelSecurityScanResult = z.input; + +// ── KernelSecurityScanResultParsed (type) ── +type KernelSecurityScanResultParsed = z.infer; + +// ── KernelSecurityScanResultSchema (const) ── +declare const KernelSecurityScanResultSchema: z.ZodObject<{ + timestamp: z.ZodString; + scanner: z.ZodObject<{ + name: z.ZodString; + version: z.ZodString; + }, z.core.$strip>; + status: z.ZodEnum<{ + failed: "failed"; + warning: "warning"; + passed: "passed"; + }>; + vulnerabilities: z.ZodOptional; + id: z.ZodString; + severity: z.ZodEnum<{ + critical: "critical"; + high: "high"; + low: "low"; + info: "info"; + medium: "medium"; + }>; + category: z.ZodOptional; + title: z.ZodString; + location: z.ZodOptional; + remediation: z.ZodOptional; + description: z.ZodString; + affectedVersions: z.ZodArray; + fixedIn: z.ZodOptional>; + cvssScore: z.ZodOptional; + exploitAvailable: z.ZodDefault; + patchAvailable: z.ZodDefault; + workaround: z.ZodOptional; + references: z.ZodOptional>; + discoveredDate: z.ZodOptional; + publishedDate: z.ZodOptional; + }, z.core.$strip>>>; + codeIssues: z.ZodOptional; + type: z.ZodString; + file: z.ZodString; + line: z.ZodOptional; + message: z.ZodString; + suggestion: z.ZodOptional; + }, z.core.$strip>>>; + dependencyVulnerabilities: z.ZodOptional; + id: z.ZodString; + severity: z.ZodEnum<{ + critical: "critical"; + high: "high"; + low: "low"; + info: "info"; + medium: "medium"; + }>; + category: z.ZodOptional; + title: z.ZodString; + location: z.ZodOptional; + remediation: z.ZodOptional; + description: z.ZodString; + affectedVersions: z.ZodArray; + fixedIn: z.ZodOptional>; + cvssScore: z.ZodOptional; + exploitAvailable: z.ZodDefault; + patchAvailable: z.ZodDefault; + workaround: z.ZodOptional; + references: z.ZodOptional>; + discoveredDate: z.ZodOptional; + publishedDate: z.ZodOptional; + }, z.core.$strip>; + }, z.core.$strip>>>; + licenseCompliance: z.ZodOptional; + issues: z.ZodOptional>>; + }, z.core.$strip>>; + summary: z.ZodObject<{ + totalVulnerabilities: z.ZodNumber; + criticalCount: z.ZodNumber; + highCount: z.ZodNumber; + mediumCount: z.ZodNumber; + lowCount: z.ZodNumber; + infoCount: z.ZodNumber; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── KernelSecurityVulnerability (type) ── +type KernelSecurityVulnerability = z.input; + +// ── KernelSecurityVulnerabilityParsed (type) ── +type KernelSecurityVulnerabilityParsed = z.infer; + +// ── KernelSecurityVulnerabilitySchema (const) ── +declare const KernelSecurityVulnerabilitySchema: z.ZodObject<{ + cve: z.ZodOptional; + id: z.ZodString; + severity: z.ZodEnum<{ + critical: "critical"; + high: "high"; + low: "low"; + info: "info"; + medium: "medium"; + }>; + category: z.ZodOptional; + title: z.ZodString; + location: z.ZodOptional; + remediation: z.ZodOptional; + description: z.ZodString; + affectedVersions: z.ZodArray; + fixedIn: z.ZodOptional>; + cvssScore: z.ZodOptional; + exploitAvailable: z.ZodDefault; + patchAvailable: z.ZodDefault; + workaround: z.ZodOptional; + references: z.ZodOptional>; + discoveredDate: z.ZodOptional; + publishedDate: z.ZodOptional; +}, z.core.$strip>; + +// ── LintableAuthoringCollection (interface) ── +interface LintableAuthoringCollection { + /** Stack collection key, e.g. `'pages'`. */ + collection: string; + /** Singular metadata type it holds, e.g. `'page'`. */ + type: string; +} + +// ── ListPackagesRequest (type) ── +type ListPackagesRequest = z.input; + +// ── ListPackagesRequestSchema (const) ── +declare const ListPackagesRequestSchema: z.ZodObject<{ + status: z.ZodOptional>; + type: z.ZodOptional>; + enabled: z.ZodOptional; +}, z.core.$strip>; + +// ── ListPackagesResponse (type) ── +type ListPackagesResponse = z.input; + +// ── ListPackagesResponseParsed (type) ── +type ListPackagesResponseParsed = z.infer; + +// ── ListPackagesResponseSchema (const) ── +declare const ListPackagesResponseSchema: z.ZodObject<{ + packages: z.ZodArray; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>; + status: z.ZodDefault>; + enabled: z.ZodDefault; + installedAt: z.ZodOptional; + updatedAt: z.ZodOptional; + installedVersion: z.ZodOptional; + previousVersion: z.ZodOptional; + statusChangedAt: z.ZodOptional; + errorMessage: z.ZodOptional; + settings: z.ZodOptional>; + upgradeHistory: z.ZodOptional; + migrationLog: z.ZodOptional>; + }, z.core.$strip>>>; + registeredNamespaces: z.ZodOptional>; + }, z.core.$strip>>; + total: z.ZodNumber; +}, z.core.$strip>; + +// ── METADATA_READ_DECORATIONS (const) ── +declare const METADATA_READ_DECORATIONS: readonly ["_diagnostics", "_draft"]; + +// ── ManifestPermissions (type) ── +type ManifestPermissions = z.input; + +// ── ManifestPermissionsSchema (const) ── +declare const ManifestPermissionsSchema: z.ZodUnion, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; +}, z.core.$strict>]>; + +// ── ManifestSchema (const) ── +declare const ManifestSchema: z.ZodObject<{ + id: z.ZodString; + namespace: z.ZodOptional; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + app: "app"; + ui: "ui"; + driver: "driver"; + server: "server"; + theme: "theme"; + agent: "agent"; + objectql: "objectql"; + plugin: "plugin"; + module: "module"; + gateway: "gateway"; + adapter: "adapter"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; +}, z.core.$strict>; + +// ── MetadataBulkResult (type) ── +type MetadataBulkResult = z.input; + +// ── MetadataBulkResultSchema (const) ── +declare const MetadataBulkResultSchema: z.ZodObject<{ + total: z.ZodNumber; + succeeded: z.ZodNumber; + failed: z.ZodNumber; + errors: z.ZodOptional>>; +}, z.core.$strip>; + +// ── MetadataCategory (type) ── +type MetadataCategory = z.input; + +// ── MetadataCategoryEnum (const) ── +declare const MetadataCategoryEnum: z.ZodEnum<{ + permissions: "permissions"; + apis: "apis"; + objects: "objects"; + workflows: "workflows"; + triggers: "triggers"; + views: "views"; + actions: "actions"; + reports: "reports"; + pages: "pages"; + dashboards: "dashboards"; + datasets: "datasets"; + flows: "flows"; + themes: "themes"; + translations: "translations"; + agents: "agents"; +}>; + +// ── MetadataChangeType (type) ── +type MetadataChangeType = z.input; + +// ── MetadataChangeTypeSchema (const) ── +declare const MetadataChangeTypeSchema: z.ZodEnum<{ + modified: "modified"; + added: "added"; + removed: "removed"; + renamed: "renamed"; +}>; + +// ── MetadataDependency (type) ── +type MetadataDependency = z.input; + +// ── MetadataDependencySchema (const) ── +declare const MetadataDependencySchema: z.ZodObject<{ + sourceType: z.ZodString; + sourceName: z.ZodString; + targetType: z.ZodString; + targetName: z.ZodString; + kind: z.ZodEnum<{ + includes: "includes"; + reference: "reference"; + triggers: "triggers"; + extends: "extends"; + }>; +}, z.core.$strip>; + +// ── MetadataDiffItem (type) ── +type MetadataDiffItem = z.input; + +// ── MetadataDiffItemParsed (type) ── +type MetadataDiffItemParsed = z.infer; + +// ── MetadataDiffItemSchema (const) ── +declare const MetadataDiffItemSchema: z.ZodObject<{ + type: z.ZodString; + name: z.ZodString; + changeType: z.ZodEnum<{ + modified: "modified"; + added: "added"; + removed: "removed"; + renamed: "renamed"; + }>; + hasConflict: z.ZodDefault; + summary: z.ZodOptional; + previousName: z.ZodOptional; +}, z.core.$strip>; + +// ── MetadataFallbackStrategy (type) ── +type MetadataFallbackStrategy = z.input; + +// ── MetadataFallbackStrategySchema (const) ── +declare const MetadataFallbackStrategySchema: z.ZodEnum<{ + none: "none"; + memory: "memory"; + filesystem: "filesystem"; +}>; + +// ── MetadataLock (type) ── +type MetadataLock = z.input; + +// ── MetadataLockSchema (const) ── +declare const MetadataLockSchema: z.ZodEnum<{ + none: "none"; + "no-overlay": "no-overlay"; + "no-delete": "no-delete"; + full: "full"; +}>; + +// ── MetadataLockSource (type) ── +type MetadataLockSource = z.input; + +// ── MetadataLockSourceSchema (const) ── +declare const MetadataLockSourceSchema: z.ZodEnum<{ + artifact: "artifact"; + package: "package"; + "env-forced": "env-forced"; +}>; + +// ── MetadataManagerConfig (type) ── +type MetadataManagerConfig = z.input; + +// ── MetadataManagerConfigParsed (type) ── +type MetadataManagerConfigParsed = z.infer; + +// ── MetadataManagerConfigSchema (const) ── +declare const MetadataManagerConfigSchema: z.ZodObject<{ + datasource: z.ZodOptional; + tableName: z.ZodDefault; + fallback: z.ZodDefault>; + rootDir: z.ZodOptional; + formats: z.ZodDefault>>; + cache: z.ZodOptional; + ttlSeconds: z.ZodOptional; + ttl: z.ZodOptional; + maxSize: z.ZodOptional; + databaseLoader: z.ZodOptional; + maxSize: z.ZodDefault; + ttlMs: z.ZodDefault; + ttl: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + watch: z.ZodDefault; + watchOptions: z.ZodOptional>; + persistent: z.ZodDefault; + ignoreInitial: z.ZodDefault; + }, z.core.$strip>>; + validation: z.ZodOptional; + throwOnError: z.ZodDefault; + }, z.core.$strip>>; + loaderOptions: z.ZodOptional>; + persistence: z.ZodOptional; + overlayWritable: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── MetadataPluginConfig (type) ── +type MetadataPluginConfig = z.input; + +// ── MetadataPluginConfigParsed (type) ── +type MetadataPluginConfigParsed = z.infer; + +// ── MetadataPluginConfigSchema (const) ── +declare const MetadataPluginConfigSchema: z.ZodObject<{ + storage: z.ZodObject<{ + datasource: z.ZodOptional; + tableName: z.ZodDefault; + fallback: z.ZodDefault>; + rootDir: z.ZodOptional; + formats: z.ZodDefault>>; + cache: z.ZodOptional; + ttlSeconds: z.ZodOptional; + ttl: z.ZodOptional; + maxSize: z.ZodOptional; + databaseLoader: z.ZodOptional; + maxSize: z.ZodDefault; + ttlMs: z.ZodDefault; + ttl: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + watch: z.ZodDefault; + watchOptions: z.ZodOptional>; + persistent: z.ZodDefault; + ignoreInitial: z.ZodDefault; + }, z.core.$strip>>; + validation: z.ZodOptional; + throwOnError: z.ZodDefault; + }, z.core.$strip>>; + loaderOptions: z.ZodOptional>; + persistence: z.ZodOptional; + overlayWritable: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + customizationPolicies: z.ZodOptional; + mergeStrategy: z.ZodOptional; + additionalTypes: z.ZodOptional; + enableEvents: z.ZodDefault; + validateOnWrite: z.ZodDefault; + enableVersioning: z.ZodDefault; + cacheMaxItems: z.ZodDefault; + bootstrap: z.ZodDefault>; +}, z.core.$strip>; + +// ── MetadataPluginManifest (type) ── +type MetadataPluginManifest = z.input; + +// ── MetadataPluginManifestParsed (type) ── +type MetadataPluginManifestParsed = z.infer; + +// ── MetadataPluginManifestSchema (const) ── +declare const MetadataPluginManifestSchema: z.ZodObject<{ + id: z.ZodLiteral<"com.objectstack.metadata">; + name: z.ZodLiteral<"ObjectStack Metadata Service">; + version: z.ZodString; + type: z.ZodLiteral<"standard">; + description: z.ZodDefault; + capabilities: z.ZodObject<{ + crud: z.ZodDefault; + query: z.ZodDefault; + overlay: z.ZodDefault; + watch: z.ZodDefault; + importExport: z.ZodDefault; + validation: z.ZodDefault; + versioning: z.ZodDefault; + events: z.ZodDefault; + }, z.core.$strip>; + config: z.ZodOptional; + tableName: z.ZodDefault; + fallback: z.ZodDefault>; + rootDir: z.ZodOptional; + formats: z.ZodDefault>>; + cache: z.ZodOptional; + ttlSeconds: z.ZodOptional; + ttl: z.ZodOptional; + maxSize: z.ZodOptional; + databaseLoader: z.ZodOptional; + maxSize: z.ZodDefault; + ttlMs: z.ZodDefault; + ttl: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + watch: z.ZodDefault; + watchOptions: z.ZodOptional>; + persistent: z.ZodDefault; + ignoreInitial: z.ZodDefault; + }, z.core.$strip>>; + validation: z.ZodOptional; + throwOnError: z.ZodDefault; + }, z.core.$strip>>; + loaderOptions: z.ZodOptional>; + persistence: z.ZodOptional; + overlayWritable: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + customizationPolicies: z.ZodOptional; + mergeStrategy: z.ZodOptional; + additionalTypes: z.ZodOptional; + enableEvents: z.ZodDefault; + validateOnWrite: z.ZodDefault; + enableVersioning: z.ZodDefault; + cacheMaxItems: z.ZodDefault; + bootstrap: z.ZodDefault>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── MetadataProtectionFields (const) ── +declare const MetadataProtectionFields: { + /** + * Per-item lock declaration. Defaults to `'none'` when omitted. + * Enforced by the runtime protocol on save / publish / rollback / + * delete. See ADR-0010 §3.3. + */ + readonly _lock: z.ZodOptional>; + /** + * Short, user-visible explanation surfaced in `403 ITEM_LOCKED` + * error envelopes and Studio tooltips. Keep < 200 chars. + */ + readonly _lockReason: z.ZodOptional; + /** + * Which layer asserted the lock — Phase 1 only emits `'artifact'`. + * Reserved for Phase 2/3 (`'package'`, `'env-forced'`). + */ + readonly _lockSource: z.ZodOptional>; + /** + * `'package'` — introduced by a loader from npm-package source. + * `'org'` — authored by a tenant via the metadata API. + * `'env-forced'` — emergency overrides via the unlock list. + */ + readonly _provenance: z.ZodOptional>; + /** Owning package machine id (e.g. `com.objectstack.setup`). */ + readonly _packageId: z.ZodOptional; + /** Owning package semver. */ + readonly _packageVersion: z.ZodOptional; + /** + * Optional URL the Studio lock banner links to for more context. + * Populated by the loader from the author-facing + * `protection.docsUrl` field — see `shared/protection.zod.ts`. + */ + readonly _lockDocsUrl: z.ZodOptional; +}; + +// ── MetadataProvenance (type) ── +type MetadataProvenance = z.input; + +// ── MetadataProvenanceSchema (const) ── +declare const MetadataProvenanceSchema: z.ZodEnum<{ + package: "package"; + "env-forced": "env-forced"; + org: "org"; +}>; + +// ── MetadataQuery (type) ── +type MetadataQuery = z.input; + +// ── MetadataQueryParsed (type) ── +type MetadataQueryParsed = z.infer; + +// ── MetadataQueryResult (type) ── +type MetadataQueryResult = z.input; + +// ── MetadataQueryResultSchema (const) ── +declare const MetadataQueryResultSchema: z.ZodObject<{ + items: z.ZodArray; + label: z.ZodOptional; + scope: z.ZodOptional>; + state: z.ZodOptional>; + packageId: z.ZodOptional; + updatedAt: z.ZodOptional; + }, z.core.$strip>>; + total: z.ZodNumber; + page: z.ZodNumber; + pageSize: z.ZodNumber; +}, z.core.$strip>; + +// ── MetadataQuerySchema (const) ── +declare const MetadataQuerySchema: z.ZodObject<{ + types: z.ZodOptional>>; + namespaces: z.ZodOptional>; + packageId: z.ZodOptional; + search: z.ZodOptional; + scope: z.ZodOptional>; + state: z.ZodOptional>; + tags: z.ZodOptional>; + sortBy: z.ZodDefault>; + sortOrder: z.ZodDefault>; + page: z.ZodDefault; + pageSize: z.ZodDefault; +}, z.core.$strip>; + +// ── MetadataReadDecoration (type) ── +type MetadataReadDecoration = (typeof METADATA_READ_DECORATIONS)[number]; + +// ── MetadataRedactionResult (interface) ── +interface MetadataRedactionResult { + /** The item with credential material removed. A NEW object — never the input mutated. */ + item: Record; + /** + * Dotted item-relative paths whose value was removed or rewritten + * (e.g. `config.password`), sorted. `[]` means the redactor RAN and found + * nothing to hide — distinguishable from "no redactor registered", which is + * {@link getMetadataTypeRedactor} answering `undefined`. Serving this beside + * the item is the difference between a caller that knows a credential is + * being withheld and one that infers it from an absence. + */ + redactedKeys: string[]; +} + +// ── MetadataType (type) ── +type MetadataType = z.input; + +// ── MetadataTypeRedactor (type) ── +type MetadataTypeRedactor = (item: Record) => MetadataRedactionResult; + +// ── MetadataTypeRegistryEntry (type) ── +type MetadataTypeRegistryEntry = z.input; + +// ── MetadataTypeRegistryEntryParsed (type) ── +type MetadataTypeRegistryEntryParsed = z.infer; + +// ── MetadataTypeRegistryEntrySchema (const) ── +declare const MetadataTypeRegistryEntrySchema: z.ZodObject<{ + type: z.ZodEnum<{ + object: "object"; + field: "field"; + position: "position"; + flow: "flow"; + view: "view"; + app: "app"; + agent: "agent"; + tool: "tool"; + action: "action"; + dashboard: "dashboard"; + report: "report"; + permission: "permission"; + api: "api"; + dataset: "dataset"; + page: "page"; + capability: "capability"; + datasource: "datasource"; + hook: "hook"; + seed: "seed"; + mapping: "mapping"; + job: "job"; + external_catalog: "external_catalog"; + translation: "translation"; + email_template: "email_template"; + doc: "doc"; + book: "book"; + skill: "skill"; + }>; + label: z.ZodString; + description: z.ZodOptional; + filePatterns: z.ZodArray; + supportsOverlay: z.ZodDefault; + allowOrgOverride: z.ZodDefault; + allowRuntimeCreate: z.ZodDefault; + supportsVersioning: z.ZodDefault; + executionPinned: z.ZodDefault; + loadOrder: z.ZodDefault; + domain: z.ZodEnum<{ + system: "system"; + data: "data"; + ui: "ui"; + automation: "automation"; + ai: "ai"; + security: "security"; + }>; + actions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + objectName: z.ZodOptional; + icon: z.ZodOptional; + locations: z.ZodOptional>>; + component: z.ZodOptional>; + type: z.ZodDefault>; + target: z.ZodOptional; + openIn: z.ZodOptional>; + body: z.ZodOptional; + source: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + language: z.ZodLiteral<"js">; + source: z.ZodString; + capabilities: z.ZodDefault>>; + timeoutMs: z.ZodOptional; + memoryMb: z.ZodOptional; + }, z.core.$strict>], "language">>; + operation: z.ZodOptional>; + patch: z.ZodOptional>; + execution: z.ZodOptional>; + execute: z.ZodOptional; + params: z.ZodOptional; + field: z.ZodOptional; + objectOverride: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + required: z.ZodDefault>; + options: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + value: z.ZodString; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + placeholder: z.ZodOptional; + helpText: z.ZodOptional; + defaultValue: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + reference: z.ZodOptional; + defaultFromRow: z.ZodOptional; + carryOver: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiresFeature: z.ZodOptional>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "email" | "url" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">, { + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "email" | "url" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }>>>>; + variant: z.ZodOptional>; + order: z.ZodOptional; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + successMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + errorMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + refreshAfter: z.ZodDefault; + undoable: z.ZodOptional; + resultDialog: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + acknowledge: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiresFeature: z.ZodOptional>; + disabled: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiredPermissions: z.ZodOptional>; + shortcut: z.ZodOptional; + bulkEnabled: z.ZodOptional; + ai: z.ZodOptional; + description: z.ZodOptional; + category: z.ZodOptional>; + paramHints: z.ZodOptional; + enum: z.ZodOptional>>; + examples: z.ZodOptional>; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional>; + requiresConfirmation: z.ZodOptional; + }, z.core.$strict>>; + recordIdParam: z.ZodOptional; + recordIdField: z.ZodOptional; + bodyShape: z.ZodOptional, z.ZodObject<{ + wrap: z.ZodString; + }, z.core.$strict>]>>; + method: z.ZodOptional>; + bodyExtra: z.ZodOptional>; + mode: z.ZodOptional>; + opensInNewTab: z.ZodOptional; + newTabUrl: z.ZodOptional; + onSuccess: z.ZodOptional>; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("log" | "api.read" | "api.write" | "api.transaction" | "crypto.uuid")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "email" | "url" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "flow" | "analytics" | "action" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">, { + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("log" | "api.read" | "api.write" | "api.transaction" | "crypto.uuid")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "email" | "url" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "flow" | "analytics" | "action" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>>; +}, z.core.$strip>; + +// ── MetadataTypeSchema (const) ── +declare const MetadataTypeSchema: z.ZodEnum<{ + object: "object"; + field: "field"; + position: "position"; + flow: "flow"; + view: "view"; + app: "app"; + agent: "agent"; + tool: "tool"; + action: "action"; + dashboard: "dashboard"; + report: "report"; + permission: "permission"; + api: "api"; + dataset: "dataset"; + page: "page"; + capability: "capability"; + datasource: "datasource"; + hook: "hook"; + seed: "seed"; + mapping: "mapping"; + job: "job"; + external_catalog: "external_catalog"; + translation: "translation"; + email_template: "email_template"; + doc: "doc"; + book: "book"; + skill: "skill"; +}>; + +// ── MetadataValidationResult (type) ── +type MetadataValidationResult = z.input; + +// ── MetadataValidationResultSchema (const) ── +declare const MetadataValidationResultSchema: z.ZodObject<{ + valid: z.ZodBoolean; + errors: z.ZodOptional; + }, z.core.$strip>>>; + warnings: z.ZodOptional>>; +}, z.core.$strip>; + +// ── MultiVersionSupport (type) ── +type MultiVersionSupport = z.input; + +// ── MultiVersionSupportParsed (type) ── +type MultiVersionSupportParsed = z.infer; + +// ── MultiVersionSupportSchema (const) ── +declare const MultiVersionSupportSchema: z.ZodObject<{ + enabled: z.ZodDefault; + maxConcurrentVersions: z.ZodDefault; + selectionStrategy: z.ZodDefault>; + routing: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + version: z.ZodString; + priority: z.ZodDefault; + }, z.core.$strip>>>; + rollout: z.ZodOptional; + strategy: z.ZodEnum<{ + percentage: "percentage"; + canary: "canary"; + "blue-green": "blue-green"; + }>; + percentage: z.ZodOptional; + durationMs: z.ZodOptional; + duration: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── NamespaceConflictError (type) ── +type NamespaceConflictError = z.input; + +// ── NamespaceConflictErrorSchema (const) ── +declare const NamespaceConflictErrorSchema: z.ZodObject<{ + type: z.ZodLiteral<"namespace_conflict">; + requestedNamespace: z.ZodString; + conflictingPackageId: z.ZodString; + conflictingPackageName: z.ZodString; + suggestion: z.ZodOptional; +}, z.core.$strip>; + +// ── NamespaceRegistryEntry (type) ── +type NamespaceRegistryEntry = z.input; + +// ── NamespaceRegistryEntrySchema (const) ── +declare const NamespaceRegistryEntrySchema: z.ZodObject<{ + namespace: z.ZodString; + packageId: z.ZodString; + registeredAt: z.ZodString; + status: z.ZodEnum<{ + disabled: "disabled"; + active: "active"; + reserved: "reserved"; + }>; +}, z.core.$strip>; + +// ── ObjectStackManifest (type) ── +type ObjectStackManifest = z.input; + +// ── ObjectStackManifestParsed (type) ── +type ObjectStackManifestParsed = z.infer; + +// ── OclifPluginConfig (type) ── +type OclifPluginConfig = z.input; + +// ── OclifPluginConfigSchema (const) ── +declare const OclifPluginConfigSchema: z.ZodObject<{ + commands: z.ZodOptional>; + target: z.ZodOptional; + glob: z.ZodOptional; + }, z.core.$strip>>; + topicSeparator: z.ZodOptional; +}, z.core.$strip>; + +// ── OpsDomainModule (type) ── +type OpsDomainModule = z.input; + +// ── OpsDomainModuleSchema (const) ── +declare const OpsDomainModuleSchema: z.ZodObject<{ + name: z.ZodString; + files: z.ZodArray; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── OpsFilePath (type) ── +type OpsFilePath = z.input; + +// ── OpsFilePathSchema (const) ── +declare const OpsFilePathSchema: z.ZodString; + +// ── OpsPluginStructure (type) ── +type OpsPluginStructure = z.input; + +// ── OpsPluginStructureSchema (const) ── +declare const OpsPluginStructureSchema: z.ZodObject<{ + root: z.ZodString; + files: z.ZodArray; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── PLATFORM_ALWAYS_ON_CAPABILITIES (const) ── +declare const PLATFORM_ALWAYS_ON_CAPABILITIES: readonly string[]; + +// ── PLATFORM_CAPABILITY_PROVIDERS (const) ── +declare const PLATFORM_CAPABILITY_PROVIDERS: Readonly>; + +// ── PLATFORM_CAPABILITY_TOKENS (const) ── +declare const PLATFORM_CAPABILITY_TOKENS: readonly string[]; + +// ── PLATFORM_PLUGIN_WIRED_RUNTIMES (const) ── +declare const PLATFORM_PLUGIN_WIRED_RUNTIMES: Readonly>; + +// ── PLUGIN_UI_REQUIRED_KEY_MISSING (const) ── +declare const PLUGIN_UI_REQUIRED_KEY_MISSING = "PLUGIN_UI_REQUIRED_KEY_MISSING"; + +// ── PROTOCOL_MAJOR (const) ── +declare const PROTOCOL_MAJOR: number; + +// ── PROTOCOL_VERSION (const) ── +declare const PROTOCOL_VERSION = "17.0.0"; + +// ── PUBLIC_AUTH_CONFIG_NON_FLAG_KEYS (const) ── +declare const PUBLIC_AUTH_CONFIG_NON_FLAG_KEYS: readonly ["termsUrl", "privacyUrl", "tenancyPosture", "audiencePosture"]; + +// ── PUBLIC_AUTH_FEATURES (const) ── +declare const PUBLIC_AUTH_FEATURES: { + readonly twoFactor: { + readonly surface: "crud"; + readonly semantics: "opt-in"; + readonly gatedInputs: readonly ["sys_user.actions.enable_two_factor", "sys_user.actions.disable_two_factor", "sys_user.actions.generate_backup_codes", "sys_two_factor.actions.enable_two_factor", "sys_two_factor.actions.disable_two_factor", "sys_two_factor.actions.regenerate_backup_codes"]; + readonly notes: string; + }; + readonly organization: { + readonly surface: "crud"; + readonly semantics: "default-on"; + readonly gatedInputs: readonly ["sys_user.actions.invite_user", "sys_member.actions.invite_user", "sys_member.actions.add_member", "sys_member.actions.update_member_role", "sys_member.actions.remove_member", "sys_member.actions.transfer_ownership", "sys_invitation.actions.invite_user", "sys_invitation.actions.cancel_invitation", "sys_invitation.actions.resend_invitation", "sys_team.actions.create_team", "sys_team.actions.update_team", "sys_team.actions.remove_team", "sys_team_member.actions.add_team_member", "sys_team_member.actions.remove_team_member"]; + readonly notes: "Org CAPABILITY gate, not multi-org (cloud ADR-0081 D1)."; + }; + readonly multiOrgEnabled: { + readonly surface: "crud"; + readonly semantics: "default-on"; + readonly gatedInputs: readonly ["sys_organization.actions.create_organization", "sys_organization.actions.update_organization", "sys_organization.actions.delete_organization", "sys_organization.actions.set_active_organization", "sys_organization.actions.leave_organization", "sys_organization.actions.change_slug"]; + readonly notes: string; + }; + readonly degradedTenancy: { + readonly surface: "status"; + readonly semantics: "opt-in"; + readonly exempt: { + readonly reason: string; + }; + }; + readonly oidcProvider: { + readonly surface: "crud"; + readonly semantics: "default-on"; + readonly gatedInputs: readonly ["sys_oauth_application.actions.create_oauth_application", "sys_oauth_application.actions.delete_oauth_application", "sys_oauth_application.actions.disable_oauth_application", "sys_oauth_application.actions.enable_oauth_application", "sys_oauth_application.actions.rotate_client_secret"]; + readonly notes: string; + }; + readonly sso: { + readonly surface: "login"; + readonly semantics: "opt-in"; + readonly exempt: { + readonly reason: string; + }; + }; + readonly ssoEnforced: { + readonly surface: "login"; + readonly semantics: "opt-in"; + readonly exempt: { + readonly reason: string; + }; + }; + readonly deviceAuthorization: { + readonly surface: "login"; + readonly semantics: "opt-in"; + readonly exempt: { + readonly reason: string; + }; + }; + readonly admin: { + readonly surface: "crud"; + readonly semantics: "opt-in"; + readonly gatedInputs: readonly ["sys_user.actions.create_user", "sys_user.actions.ban_user", "sys_user.actions.unban_user", "sys_user.actions.unlock_user", "sys_user.actions.set_user_password", "sys_user.actions.impersonate_user"]; + readonly notes: "SCIM forces the admin plugin (and this flag) on — ADR-0134."; + }; + readonly phoneNumber: { + readonly surface: "crud"; + readonly semantics: "opt-in"; + readonly gatedInputs: readonly ["sys_user.actions.create_user.params.phoneNumber"]; + readonly notes: string; + }; + readonly phoneNumberOtp: { + readonly surface: "login"; + readonly semantics: "opt-in"; + readonly exempt: { + readonly reason: string; + }; + }; +}; + +// ── PUBLIC_AUTH_FEATURES_NOT_ADVERTISED (const) ── +declare const PUBLIC_AUTH_FEATURES_NOT_ADVERTISED: readonly ["passkeys", "magicLink"]; + +// ── PUBLIC_AUTH_FEATURE_NAMES (const) ── +declare const PUBLIC_AUTH_FEATURE_NAMES: [PublicAuthFeatureName, ...PublicAuthFeatureName[]]; + +// ── PackageArtifact (type) ── +type PackageArtifact = z.input; + +// ── PackageArtifactParsed (type) ── +type PackageArtifactParsed = z.infer; + +// ── PackageArtifactSchema (const) ── +declare const PackageArtifactSchema: z.ZodObject<{ + formatVersion: z.ZodDefault; + packageId: z.ZodString; + version: z.ZodString; + format: z.ZodDefault>; + size: z.ZodOptional; + builtAt: z.ZodString; + builtWith: z.ZodOptional; + files: z.ZodOptional>; + }, z.core.$strip>>>; + metadataCategories: z.ZodOptional>>; + checksums: z.ZodOptional>; + files: z.ZodRecord; + }, z.core.$strip>>; + signature: z.ZodOptional>; + publicKeyRef: z.ZodString; + signature: z.ZodString; + signedAt: z.ZodOptional; + signedBy: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── PackageDependencyConflict (type) ── +type PackageDependencyConflict = z.input; + +// ── PackageDependencyConflictSchema (const) ── +declare const PackageDependencyConflictSchema: z.ZodObject<{ + package: z.ZodString; + conflicts: z.ZodArray; + constraint: z.ZodString; + }, z.core.$strip>>; + resolution: z.ZodOptional; + version: z.ZodOptional; + reason: z.ZodOptional; + }, z.core.$strip>>; + severity: z.ZodEnum<{ + error: "error"; + info: "info"; + warning: "warning"; + }>; +}, z.core.$strip>; + +// ── PackageDependencyResolutionResult (type) ── +type PackageDependencyResolutionResult = z.input; + +// ── PackageDependencyResolutionResultParsed (type) ── +type PackageDependencyResolutionResultParsed = z.infer; + +// ── PackageDependencyResolutionResultSchema (const) ── +declare const PackageDependencyResolutionResultSchema: z.ZodObject<{ + status: z.ZodEnum<{ + success: "success"; + error: "error"; + conflict: "conflict"; + }>; + graph: z.ZodOptional; + nodes: z.ZodArray>; + resolvedVersion: z.ZodOptional; + }, z.core.$strip>>>; + depth: z.ZodNumber; + isDirect: z.ZodBoolean; + metadata: z.ZodOptional; + license: z.ZodOptional; + homepage: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + edges: z.ZodArray>; + stats: z.ZodObject<{ + totalDependencies: z.ZodNumber; + directDependencies: z.ZodNumber; + maxDepth: z.ZodNumber; + }, z.core.$strip>; + }, z.core.$strip>>; + conflicts: z.ZodDefault; + constraint: z.ZodString; + }, z.core.$strip>>; + resolution: z.ZodOptional; + version: z.ZodOptional; + reason: z.ZodOptional; + }, z.core.$strip>>; + severity: z.ZodEnum<{ + error: "error"; + info: "info"; + warning: "warning"; + }>; + }, z.core.$strip>>>; + errors: z.ZodDefault>>; + installOrder: z.ZodDefault>; + resolvedInMs: z.ZodOptional; + resolvedIn: z.ZodOptional; +}, z.core.$strip>; + +// ── PackageStatus (type) ── +type PackageStatus = z.input; + +// ── PackageStatusEnum (const) ── +declare const PackageStatusEnum: z.ZodEnum<{ + error: "error"; + disabled: "disabled"; + installed: "installed"; + installing: "installing"; + upgrading: "upgrading"; + uninstalling: "uninstalling"; +}>; + +// ── PermissionAction (type) ── +type PermissionAction = z.input; + +// ── PermissionActionSchema (const) ── +declare const PermissionActionSchema: z.ZodEnum<{ + delete: "delete"; + update: "update"; + admin: "admin"; + execute: "execute"; + create: "create"; + read: "read"; + import: "import"; + export: "export"; + manage: "manage"; + configure: "configure"; + share: "share"; +}>; + +// ── PermissionScope (type) ── +type PermissionScope = z.input; + +// ── PermissionScopeSchema (const) ── +declare const PermissionScopeSchema: z.ZodEnum<{ + tenant: "tenant"; + user: "user"; + global: "global"; + plugin: "plugin"; + resource: "resource"; +}>; + +// ── PlatformCapabilityProvider (interface) ── +interface PlatformCapabilityProvider { + /** + * npm package whose plugin the runtime loads to satisfy this capability, or + * `null` when the capability is a cloud-runtime tier with no standalone + * package to install (`ai-seat` / `governance`). + */ + readonly package: string | null; + /** Which edition ships an installable version of {@link package}. */ + readonly edition: CapabilityEdition; + /** + * Short human note on the edition boundary, surfaced verbatim inside the + * preflight / boot error so the message carries its own context. + */ + readonly note?: string; +} + +// ── PlatformPluginWiredRuntime (interface) ── +interface PlatformPluginWiredRuntime { + /** + * Which edition ships the runtime. Never `open` — an open-edition package is + * part of the public framework distribution and is resolved through a + * `requires` token, so it belongs in {@link PLATFORM_CAPABILITY_PROVIDERS}, + * not here. The exclusion is type-level so a mis-filed row cannot compile. + */ + readonly edition: Exclude; + /** + * Short human note on where the runtime ships from and how it is loaded. + * Required, not optional: recording that provenance is this roster's entire + * job — a row without it answers nothing. + */ + readonly note: string; +} + +// ── PluginCapability (type) ── +type PluginCapability = z.input; + +// ── PluginCapabilityManifest (type) ── +type PluginCapabilityManifest = z.input; + +// ── PluginCapabilityManifestParsed (type) ── +type PluginCapabilityManifestParsed = z.infer; + +// ── PluginCapabilityManifestSchema (const) ── +declare const PluginCapabilityManifestSchema: z.ZodObject<{ + implements: z.ZodOptional; + specification: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strip>; + conformance: z.ZodDefault>; + implementedFeatures: z.ZodOptional>; + features: z.ZodOptional; + description: z.ZodOptional; + sinceVersion: z.ZodOptional; + deprecatedSince: z.ZodOptional; + }, z.core.$strip>>>; + metadata: z.ZodOptional>; + certified: z.ZodDefault; + certificationDate: z.ZodOptional; + }, z.core.$strip>>>; + provides: z.ZodOptional; + version: z.ZodObject<{ + major: z.ZodNumber; + minor: z.ZodNumber; + patch: z.ZodNumber; + }, z.core.$strip>; + methods: z.ZodArray; + parameters: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strip>>>; + returnType: z.ZodOptional; + async: z.ZodDefault; + }, z.core.$strip>>; + events: z.ZodOptional; + payload: z.ZodOptional; + }, z.core.$strip>>>; + stability: z.ZodDefault>; + }, z.core.$strip>>>; + requires: z.ZodOptional; + reason: z.ZodOptional; + requiredCapabilities: z.ZodOptional>; + }, z.core.$strip>>>; + extensionPoints: z.ZodOptional; + type: z.ZodEnum<{ + provider: "provider"; + widget: "widget"; + action: "action"; + hook: "hook"; + transformer: "transformer"; + validator: "validator"; + decorator: "decorator"; + }>; + contract: z.ZodOptional; + output: z.ZodOptional; + signature: z.ZodOptional; + }, z.core.$strip>>; + cardinality: z.ZodDefault>; + }, z.core.$strip>>>; + extensions: z.ZodOptional; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── PluginCapabilityParsed (type) ── +type PluginCapabilityParsed = z.infer; + +// ── PluginCapabilitySchema (const) ── +declare const PluginCapabilitySchema: z.ZodObject<{ + protocol: z.ZodObject<{ + id: z.ZodString; + label: z.ZodString; + version: z.ZodObject<{ + major: z.ZodNumber; + minor: z.ZodNumber; + patch: z.ZodNumber; + }, z.core.$strip>; + specification: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strip>; + conformance: z.ZodDefault>; + implementedFeatures: z.ZodOptional>; + features: z.ZodOptional; + description: z.ZodOptional; + sinceVersion: z.ZodOptional; + deprecatedSince: z.ZodOptional; + }, z.core.$strip>>>; + metadata: z.ZodOptional>; + certified: z.ZodDefault; + certificationDate: z.ZodOptional; +}, z.core.$strip>; + +// ── PluginCompatibilityMatrix (type) ── +type PluginCompatibilityMatrix = z.input; + +// ── PluginCompatibilityMatrixParsed (type) ── +type PluginCompatibilityMatrixParsed = z.infer; + +// ── PluginCompatibilityMatrixSchema (const) ── +declare const PluginCompatibilityMatrixSchema: z.ZodObject<{ + pluginId: z.ZodString; + currentVersion: z.ZodString; + compatibilityMatrix: z.ZodArray; + breakingChanges: z.ZodOptional; + description: z.ZodString; + migrationGuide: z.ZodOptional; + deprecatedIn: z.ZodOptional; + removedIn: z.ZodOptional; + automatedMigration: z.ZodDefault; + severity: z.ZodEnum<{ + critical: "critical"; + major: "major"; + minor: "minor"; + }>; + }, z.core.$strip>>>; + migrationRequired: z.ZodDefault; + migrationComplexity: z.ZodOptional>; + estimatedMigrationTime: z.ZodOptional; + migrationScript: z.ZodOptional; + testCoverage: z.ZodOptional; + }, z.core.$strip>>; + supportedVersions: z.ZodArray; + securitySupport: z.ZodDefault; + }, z.core.$strip>>; + minimumCompatibleVersion: z.ZodOptional; +}, z.core.$strip>; + +// ── PluginContext (type) ── +type PluginContext = PluginContextData; + +// ── PluginContextData (type) ── +type PluginContextData = z.input; + +// ── PluginContextSchema (const) ── +declare const PluginContextSchema: z.ZodObject<{ + ql: z.ZodObject<{ + object: z.ZodFunction; + query: z.ZodFunction; + }, z.core.$loose>; + os: z.ZodObject<{ + getCurrentUser: z.ZodFunction; + getConfig: z.ZodFunction; + }, z.core.$loose>; + logger: z.ZodObject<{ + debug: z.ZodFunction; + info: z.ZodFunction; + warn: z.ZodFunction; + error: z.ZodFunction; + }, z.core.$loose>; + storage: z.ZodObject<{ + get: z.ZodFunction; + set: z.ZodFunction; + delete: z.ZodFunction; + }, z.core.$loose>; + i18n: z.ZodObject<{ + t: z.ZodFunction; + getLocale: z.ZodFunction; + }, z.core.$loose>; + metadata: z.ZodRecord; + events: z.ZodRecord; + app: z.ZodObject<{ + router: z.ZodObject<{ + get: z.ZodFunction; + post: z.ZodFunction; + use: z.ZodFunction; + }, z.core.$loose>; + }, z.core.$loose>; + drivers: z.ZodObject<{ + register: z.ZodFunction; + }, z.core.$loose>; +}, z.core.$strip>; + +// ── PluginDefinition (type) ── +type PluginDefinition = z.input; + +// ── PluginDependency (type) ── +type PluginDependency = z.input; + +// ── PluginDependencyParsed (type) ── +type PluginDependencyParsed = z.infer; + +// ── PluginDependencyResolutionResult (type) ── +type PluginDependencyResolutionResult = z.input; + +// ── PluginDependencyResolutionResultParsed (type) ── +type PluginDependencyResolutionResultParsed = z.infer; + +// ── PluginDependencyResolutionResultSchema (const) ── +declare const PluginDependencyResolutionResultSchema: z.ZodObject<{ + success: z.ZodBoolean; + resolved: z.ZodOptional>>; + conflicts: z.ZodOptional; + plugins: z.ZodArray; + }, z.core.$strip>>; + description: z.ZodString; + resolutions: z.ZodOptional; + description: z.ZodString; + automaticResolution: z.ZodDefault; + riskLevel: z.ZodEnum<{ + high: "high"; + low: "low"; + medium: "medium"; + }>; + }, z.core.$strip>>>; + severity: z.ZodEnum<{ + error: "error"; + critical: "critical"; + info: "info"; + warning: "warning"; + }>; + }, z.core.$strip>>>; + warnings: z.ZodOptional>; + installationOrder: z.ZodOptional>; + dependencyGraph: z.ZodOptional>>; +}, z.core.$strip>; + +// ── PluginDependencySchema (const) ── +declare const PluginDependencySchema: z.ZodObject<{ + pluginId: z.ZodString; + version: z.ZodString; + optional: z.ZodDefault; + reason: z.ZodOptional; + requiredCapabilities: z.ZodOptional>; +}, z.core.$strip>; + +// ── PluginEngines (type) ── +type PluginEngines = z.input; + +// ── PluginEnginesSchema (const) ── +declare const PluginEnginesSchema: z.ZodObject<{ + platform: z.ZodOptional; + protocol: z.ZodOptional; +}, z.core.$strict>; + +// ── PluginHealthCheck (type) ── +type PluginHealthCheck = z.input; + +// ── PluginHealthCheckParsed (type) ── +type PluginHealthCheckParsed = z.infer; + +// ── PluginHealthCheckSchema (const) ── +declare const PluginHealthCheckSchema: z.ZodObject<{ + intervalMs: z.ZodDefault; + timeoutMs: z.ZodDefault; + failureThreshold: z.ZodDefault; + successThreshold: z.ZodDefault; + checkMethod: z.ZodOptional; + autoRestart: z.ZodOptional; + maxRestartAttempts: z.ZodOptional; + restartBackoff: z.ZodOptional; + interval: z.ZodOptional; + timeout: z.ZodOptional; +}, z.core.$strip>; + +// ── PluginHealthReport (type) ── +type PluginHealthReport = z.input; + +// ── PluginHealthReportSchema (const) ── +declare const PluginHealthReportSchema: z.ZodObject<{ + status: z.ZodEnum<{ + unknown: "unknown"; + failed: "failed"; + degraded: "degraded"; + healthy: "healthy"; + unhealthy: "unhealthy"; + recovering: "recovering"; + }>; + timestamp: z.ZodString; + message: z.ZodOptional; + metrics: z.ZodOptional; + memoryUsage: z.ZodOptional>; + cpuUsage: z.ZodOptional>; + activeConnections: z.ZodOptional>; + errorRate: z.ZodOptional>; + responseTimeMs: z.ZodOptional>; + uptime: z.ZodOptional>; + responseTime: z.ZodOptional>; + }, z.core.$strip>>; + checks: z.ZodOptional; + message: z.ZodOptional; + data: z.ZodOptional>; + }, z.core.$strip>>>; + dependencies: z.ZodOptional; + message: z.ZodOptional; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── PluginHealthStatus (type) ── +type PluginHealthStatus = z.input; + +// ── PluginHealthStatusSchema (const) ── +declare const PluginHealthStatusSchema: z.ZodEnum<{ + unknown: "unknown"; + failed: "failed"; + degraded: "degraded"; + healthy: "healthy"; + unhealthy: "unhealthy"; + recovering: "recovering"; +}>; + +// ── PluginInstallConfig (type) ── +type PluginInstallConfig = z.input; + +// ── PluginInstallConfigSchema (const) ── +declare const PluginInstallConfigSchema: z.ZodObject<{ + pluginId: z.ZodString; + version: z.ZodOptional; + config: z.ZodOptional>; + autoUpdate: z.ZodOptional>; + options: z.ZodOptional>; + force: z.ZodOptional>; + target: z.ZodOptional>>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── PluginIntegrity (type) ── +type PluginIntegrity = z.input; + +// ── PluginIntegritySchema (const) ── +declare const PluginIntegritySchema: z.ZodRecord; + +// ── PluginInterface (type) ── +type PluginInterface = z.input; + +// ── PluginInterfaceParsed (type) ── +type PluginInterfaceParsed = z.infer; + +// ── PluginInterfaceSchema (const) ── +declare const PluginInterfaceSchema: z.ZodObject<{ + id: z.ZodString; + name: z.ZodString; + description: z.ZodOptional; + version: z.ZodObject<{ + major: z.ZodNumber; + minor: z.ZodNumber; + patch: z.ZodNumber; + }, z.core.$strip>; + methods: z.ZodArray; + parameters: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strip>>>; + returnType: z.ZodOptional; + async: z.ZodDefault; + }, z.core.$strip>>; + events: z.ZodOptional; + payload: z.ZodOptional; + }, z.core.$strip>>>; + stability: z.ZodDefault>; +}, z.core.$strip>; + +// ── PluginLoadingEvent (type) ── +type PluginLoadingEvent = z.input; + +// ── PluginLoadingEventSchema (const) ── +declare const PluginLoadingEventSchema: z.ZodObject<{ + type: z.ZodEnum<{ + "load-started": "load-started"; + "load-completed": "load-completed"; + "load-failed": "load-failed"; + "init-started": "init-started"; + "init-completed": "init-completed"; + "init-failed": "init-failed"; + "preload-started": "preload-started"; + "preload-completed": "preload-completed"; + "cache-hit": "cache-hit"; + "cache-miss": "cache-miss"; + "hot-reload": "hot-reload"; + "dynamic-load": "dynamic-load"; + "dynamic-unload": "dynamic-unload"; + "dynamic-discover": "dynamic-discover"; + }>; + pluginId: z.ZodString; + timestamp: z.ZodNumber; + durationMs: z.ZodOptional; + metadata: z.ZodOptional>; + error: z.ZodOptional; + stack: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── PluginLoadingState (type) ── +type PluginLoadingState = z.input; + +// ── PluginLoadingStateParsed (type) ── +type PluginLoadingStateParsed = z.infer; + +// ── PluginLoadingStateSchema (const) ── +declare const PluginLoadingStateSchema: z.ZodObject<{ + pluginId: z.ZodString; + state: z.ZodEnum<{ + failed: "failed"; + pending: "pending"; + loading: "loading"; + ready: "ready"; + loaded: "loaded"; + initializing: "initializing"; + reloading: "reloading"; + unloading: "unloading"; + unloaded: "unloaded"; + }>; + progress: z.ZodDefault; + startedAt: z.ZodOptional; + completedAt: z.ZodOptional; + lastError: z.ZodOptional; + retryCount: z.ZodDefault; +}, z.core.$strip>; + +// ── PluginMetadata (type) ── +type PluginMetadata = z.input; + +// ── PluginMetadataSchema (const) ── +declare const PluginMetadataSchema: z.ZodObject<{ + name: z.ZodString; + version: z.ZodOptional; + dependencies: z.ZodOptional>; + optionalDependencies: z.ZodOptional>; + requiresServices: z.ZodOptional>; + providesServices: z.ZodOptional>; + signature: z.ZodOptional; +}, z.core.$loose>; + +// ── PluginPackaging (type) ── +type PluginPackaging = z.input; + +// ── PluginPackagingSchema (const) ── +declare const PluginPackagingSchema: z.ZodEnum<{ + bundled: "bundled"; + "manifest-deps": "manifest-deps"; +}>; + +// ── PluginPermission (type) ── +type PluginPermission = z.input; + +// ── PluginPermissionParsed (type) ── +type PluginPermissionParsed = z.infer; + +// ── PluginPermissionSchema (const) ── +declare const PluginPermissionSchema: z.ZodObject<{ + id: z.ZodString; + resource: z.ZodEnum<{ + "data.object": "data.object"; + "data.record": "data.record"; + "data.field": "data.field"; + "ui.view": "ui.view"; + "ui.dashboard": "ui.dashboard"; + "ui.report": "ui.report"; + "system.config": "system.config"; + "system.plugin": "system.plugin"; + "system.api": "system.api"; + "system.service": "system.service"; + "storage.file": "storage.file"; + "storage.database": "storage.database"; + "network.http": "network.http"; + "network.websocket": "network.websocket"; + "process.spawn": "process.spawn"; + "process.env": "process.env"; + }>; + actions: z.ZodArray>; + scope: z.ZodDefault>; + filter: z.ZodOptional>; + condition: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + fields: z.ZodOptional>; + }, z.core.$strip>>; + description: z.ZodString; + required: z.ZodDefault; + justification: z.ZodOptional; +}, z.core.$strip>; + +// ── PluginPermissionSet (type) ── +type PluginPermissionSet = z.input; + +// ── PluginPermissionSetParsed (type) ── +type PluginPermissionSetParsed = z.infer; + +// ── PluginPermissionSetSchema (const) ── +declare const PluginPermissionSetSchema: z.ZodObject<{ + permissions: z.ZodArray; + actions: z.ZodArray>; + scope: z.ZodDefault>; + filter: z.ZodOptional>; + condition: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + fields: z.ZodOptional>; + }, z.core.$strip>>; + description: z.ZodString; + required: z.ZodDefault; + justification: z.ZodOptional; + }, z.core.$strip>>; + groups: z.ZodOptional; + }, z.core.$strip>>>; + defaultGrant: z.ZodDefault>; +}, z.core.$strip>; + +// ── PluginPermissions (type) ── +type PluginPermissions = z.input; + +// ── PluginPermissionsSchema (const) ── +declare const PluginPermissionsSchema: z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; +}, z.core.$strict>; + +// ── PluginProvenance (type) ── +type PluginProvenance = z.input; + +// ── PluginProvenanceParsed (type) ── +type PluginProvenanceParsed = z.infer; + +// ── PluginProvenanceSchema (const) ── +declare const PluginProvenanceSchema: z.ZodObject<{ + pluginId: z.ZodString; + version: z.ZodString; + build: z.ZodObject<{ + timestamp: z.ZodString; + environment: z.ZodOptional>; + source: z.ZodOptional; + tag: z.ZodOptional; + }, z.core.$strip>>; + builder: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + artifacts: z.ZodArray>; + signatures: z.ZodDefault; + publicKey: z.ZodString; + signature: z.ZodString; + signedBy: z.ZodString; + timestamp: z.ZodString; + }, z.core.$strip>>>; + attestations: z.ZodDefault; + status: z.ZodEnum<{ + failed: "failed"; + passed: "passed"; + }>; + url: z.ZodOptional; + timestamp: z.ZodString; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── PluginQualityMetrics (type) ── +type PluginQualityMetrics = z.input; + +// ── PluginQualityMetricsParsed (type) ── +type PluginQualityMetricsParsed = z.infer; + +// ── PluginQualityMetricsSchema (const) ── +declare const PluginQualityMetricsSchema: z.ZodObject<{ + testCoverage: z.ZodOptional; + documentationScore: z.ZodOptional; + codeQuality: z.ZodOptional; + securityScan: z.ZodOptional; + vulnerabilities: z.ZodOptional; + high: z.ZodDefault; + medium: z.ZodDefault; + low: z.ZodDefault; + }, z.core.$strip>>; + passed: z.ZodDefault; + }, z.core.$strip>>; + conformanceTests: z.ZodOptional; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── PluginRegistryEntry (type) ── +type PluginRegistryEntry = z.input; + +// ── PluginRegistryEntryParsed (type) ── +type PluginRegistryEntryParsed = z.infer; + +// ── PluginRegistryEntrySchema (const) ── +declare const PluginRegistryEntrySchema: z.ZodObject<{ + id: z.ZodString; + version: z.ZodString; + name: z.ZodString; + description: z.ZodOptional; + readme: z.ZodOptional; + category: z.ZodOptional>; + tags: z.ZodOptional>; + vendor: z.ZodObject<{ + id: z.ZodString; + name: z.ZodString; + website: z.ZodOptional; + email: z.ZodOptional; + verified: z.ZodDefault; + trustLevel: z.ZodDefault>; + }, z.core.$strip>; + capabilities: z.ZodOptional; + specification: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strip>; + conformance: z.ZodDefault>; + implementedFeatures: z.ZodOptional>; + features: z.ZodOptional; + description: z.ZodOptional; + sinceVersion: z.ZodOptional; + deprecatedSince: z.ZodOptional; + }, z.core.$strip>>>; + metadata: z.ZodOptional>; + certified: z.ZodDefault; + certificationDate: z.ZodOptional; + }, z.core.$strip>>>; + provides: z.ZodOptional; + version: z.ZodObject<{ + major: z.ZodNumber; + minor: z.ZodNumber; + patch: z.ZodNumber; + }, z.core.$strip>; + methods: z.ZodArray; + parameters: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strip>>>; + returnType: z.ZodOptional; + async: z.ZodDefault; + }, z.core.$strip>>; + events: z.ZodOptional; + payload: z.ZodOptional; + }, z.core.$strip>>>; + stability: z.ZodDefault>; + }, z.core.$strip>>>; + requires: z.ZodOptional; + reason: z.ZodOptional; + requiredCapabilities: z.ZodOptional>; + }, z.core.$strip>>>; + extensionPoints: z.ZodOptional; + type: z.ZodEnum<{ + provider: "provider"; + widget: "widget"; + action: "action"; + hook: "hook"; + transformer: "transformer"; + validator: "validator"; + decorator: "decorator"; + }>; + contract: z.ZodOptional; + output: z.ZodOptional; + signature: z.ZodOptional; + }, z.core.$strip>>; + cardinality: z.ZodDefault>; + }, z.core.$strip>>>; + extensions: z.ZodOptional; + }, z.core.$strip>>>; + }, z.core.$strip>>; + compatibility: z.ZodOptional; + maxObjectStackVersion: z.ZodOptional; + nodeVersion: z.ZodOptional; + platforms: z.ZodOptional>>; + }, z.core.$strip>>; + links: z.ZodOptional; + repository: z.ZodOptional; + documentation: z.ZodOptional; + bugs: z.ZodOptional; + changelog: z.ZodOptional; + }, z.core.$strip>>; + media: z.ZodOptional; + logo: z.ZodOptional; + screenshots: z.ZodOptional>; + video: z.ZodOptional; + }, z.core.$strip>>; + quality: z.ZodOptional; + documentationScore: z.ZodOptional; + codeQuality: z.ZodOptional; + securityScan: z.ZodOptional; + vulnerabilities: z.ZodOptional; + high: z.ZodDefault; + medium: z.ZodDefault; + low: z.ZodDefault; + }, z.core.$strip>>; + passed: z.ZodDefault; + }, z.core.$strip>>; + conformanceTests: z.ZodOptional; + }, z.core.$strip>>>; + }, z.core.$strip>>; + statistics: z.ZodOptional; + downloadsLastMonth: z.ZodDefault; + activeInstallations: z.ZodDefault; + ratings: z.ZodOptional; + count: z.ZodDefault; + distribution: z.ZodOptional; + '4': z.ZodDefault; + '3': z.ZodDefault; + '2': z.ZodDefault; + '1': z.ZodDefault; + }, z.core.$strip>>; + }, z.core.$strip>>; + stars: z.ZodOptional; + dependents: z.ZodDefault; + }, z.core.$strip>>; + license: z.ZodOptional; + pricing: z.ZodOptional; + price: z.ZodOptional; + currency: z.ZodOptional>; + billingPeriod: z.ZodOptional>; + }, z.core.$strip>>; + publishedAt: z.ZodOptional; + updatedAt: z.ZodOptional; + deprecated: z.ZodDefault; + deprecationMessage: z.ZodOptional; + replacedBy: z.ZodOptional; + flags: z.ZodOptional; + beta: z.ZodDefault; + featured: z.ZodDefault; + verified: z.ZodDefault; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── PluginRuntime (type) ── +type PluginRuntime = z.input; + +// ── PluginRuntimeSchema (const) ── +declare const PluginRuntimeSchema: z.ZodEnum<{ + node: "node"; + sandbox: "sandbox"; + worker: "worker"; +}>; + +// ── PluginSchema (const) ── +declare const PluginSchema: z.ZodObject<{ + id: z.ZodOptional; + type: z.ZodOptional>>; + staticPath: z.ZodOptional; + slug: z.ZodOptional; + default: z.ZodOptional; + version: z.ZodOptional; + description: z.ZodOptional; + author: z.ZodOptional; + homepage: z.ZodOptional; +}, z.core.$strip>; + +// ── PluginSearchFilters (type) ── +type PluginSearchFilters = z.input; + +// ── PluginSearchFiltersSchema (const) ── +declare const PluginSearchFiltersSchema: z.ZodObject<{ + query: z.ZodOptional; + category: z.ZodOptional>; + tags: z.ZodOptional>; + trustLevel: z.ZodOptional>>; + implementsProtocols: z.ZodOptional>; + pricingModel: z.ZodOptional>>; + minRating: z.ZodOptional; + sortBy: z.ZodOptional>; + sortOrder: z.ZodOptional>>; + page: z.ZodOptional>; + limit: z.ZodOptional>; +}, z.core.$strip>; + +// ── PluginSecurityManifest (type) ── +type PluginSecurityManifest = z.input; + +// ── PluginSecurityManifestParsed (type) ── +type PluginSecurityManifestParsed = z.infer; + +// ── PluginSecurityManifestSchema (const) ── +declare const PluginSecurityManifestSchema: z.ZodObject<{ + pluginId: z.ZodString; + trustLevel: z.ZodEnum<{ + blocked: "blocked"; + verified: "verified"; + trusted: "trusted"; + community: "community"; + untrusted: "untrusted"; + }>; + permissions: z.ZodObject<{ + permissions: z.ZodArray; + actions: z.ZodArray>; + scope: z.ZodDefault>; + filter: z.ZodOptional>; + condition: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + fields: z.ZodOptional>; + }, z.core.$strip>>; + description: z.ZodString; + required: z.ZodDefault; + justification: z.ZodOptional; + }, z.core.$strip>>; + groups: z.ZodOptional; + }, z.core.$strip>>>; + defaultGrant: z.ZodDefault>; + }, z.core.$strip>; + sandbox: z.ZodObject<{ + enabled: z.ZodDefault; + level: z.ZodDefault>; + runtime: z.ZodOptional>; + engineConfig: z.ZodOptional; + instructionLimit: z.ZodOptional; + enableSimd: z.ZodDefault; + enableThreads: z.ZodDefault; + enableBulkMemory: z.ZodDefault; + }, z.core.$strip>>; + container: z.ZodOptional; + runtime: z.ZodDefault>; + resources: z.ZodOptional; + memoryLimit: z.ZodOptional; + }, z.core.$strip>>; + networkMode: z.ZodDefault>; + }, z.core.$strip>>; + v8Isolate: z.ZodOptional; + enableSnapshot: z.ZodDefault; + }, z.core.$strip>>; + }, z.core.$strip>>; + resourceLimits: z.ZodOptional; + maxCpu: z.ZodOptional; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + filesystem: z.ZodOptional>; + allowedPaths: z.ZodOptional>; + deniedPaths: z.ZodOptional>; + maxFileSize: z.ZodOptional; + }, z.core.$strip>>; + network: z.ZodOptional>; + allowedHosts: z.ZodOptional>; + deniedHosts: z.ZodOptional>; + allowedPorts: z.ZodOptional>; + maxConnections: z.ZodOptional; + }, z.core.$strip>>; + process: z.ZodOptional; + allowedCommands: z.ZodOptional>; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + }, z.core.$strip>>; + memory: z.ZodOptional; + maxStack: z.ZodOptional; + }, z.core.$strip>>; + cpu: z.ZodOptional; + maxThreads: z.ZodOptional; + }, z.core.$strip>>; + environment: z.ZodOptional>; + allowedVars: z.ZodOptional>; + deniedVars: z.ZodOptional>; + }, z.core.$strip>>; + }, z.core.$strip>; + policy: z.ZodOptional>>; + reportOnly: z.ZodDefault; + }, z.core.$strip>>; + cors: z.ZodOptional; + allowedMethods: z.ZodArray; + allowedHeaders: z.ZodArray; + allowCredentials: z.ZodDefault; + maxAge: z.ZodOptional; + }, z.core.$strip>>; + rateLimit: z.ZodOptional; + maxRequests: z.ZodNumber; + windowMs: z.ZodNumber; + strategy: z.ZodDefault>; + }, z.core.$strip>>; + authentication: z.ZodOptional; + methods: z.ZodArray>; + tokenExpirationSeconds: z.ZodOptional; + tokenExpiration: z.ZodOptional; + }, z.core.$strip>>; + encryption: z.ZodOptional; + dataInTransit: z.ZodDefault; + algorithm: z.ZodOptional; + minKeyLength: z.ZodOptional; + }, z.core.$strip>>; + auditLog: z.ZodOptional; + events: z.ZodOptional>; + retentionDays: z.ZodOptional; + retention: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + scanResults: z.ZodOptional; + status: z.ZodEnum<{ + failed: "failed"; + warning: "warning"; + passed: "passed"; + }>; + vulnerabilities: z.ZodOptional; + id: z.ZodString; + severity: z.ZodEnum<{ + critical: "critical"; + high: "high"; + low: "low"; + info: "info"; + medium: "medium"; + }>; + category: z.ZodOptional; + title: z.ZodString; + location: z.ZodOptional; + remediation: z.ZodOptional; + description: z.ZodString; + affectedVersions: z.ZodArray; + fixedIn: z.ZodOptional>; + cvssScore: z.ZodOptional; + exploitAvailable: z.ZodDefault; + patchAvailable: z.ZodDefault; + workaround: z.ZodOptional; + references: z.ZodOptional>; + discoveredDate: z.ZodOptional; + publishedDate: z.ZodOptional; + }, z.core.$strip>>>; + codeIssues: z.ZodOptional; + type: z.ZodString; + file: z.ZodString; + line: z.ZodOptional; + message: z.ZodString; + suggestion: z.ZodOptional; + }, z.core.$strip>>>; + dependencyVulnerabilities: z.ZodOptional; + id: z.ZodString; + severity: z.ZodEnum<{ + critical: "critical"; + high: "high"; + low: "low"; + info: "info"; + medium: "medium"; + }>; + category: z.ZodOptional; + title: z.ZodString; + location: z.ZodOptional; + remediation: z.ZodOptional; + description: z.ZodString; + affectedVersions: z.ZodArray; + fixedIn: z.ZodOptional>; + cvssScore: z.ZodOptional; + exploitAvailable: z.ZodDefault; + patchAvailable: z.ZodDefault; + workaround: z.ZodOptional; + references: z.ZodOptional>; + discoveredDate: z.ZodOptional; + publishedDate: z.ZodOptional; + }, z.core.$strip>; + }, z.core.$strip>>>; + licenseCompliance: z.ZodOptional; + issues: z.ZodOptional>>; + }, z.core.$strip>>; + summary: z.ZodObject<{ + totalVulnerabilities: z.ZodNumber; + criticalCount: z.ZodNumber; + highCount: z.ZodNumber; + mediumCount: z.ZodNumber; + lowCount: z.ZodNumber; + infoCount: z.ZodNumber; + }, z.core.$strip>; + }, z.core.$strip>>>; + vulnerabilities: z.ZodOptional; + id: z.ZodString; + severity: z.ZodEnum<{ + critical: "critical"; + high: "high"; + low: "low"; + info: "info"; + medium: "medium"; + }>; + category: z.ZodOptional; + title: z.ZodString; + location: z.ZodOptional; + remediation: z.ZodOptional; + description: z.ZodString; + affectedVersions: z.ZodArray; + fixedIn: z.ZodOptional>; + cvssScore: z.ZodOptional; + exploitAvailable: z.ZodDefault; + patchAvailable: z.ZodDefault; + workaround: z.ZodOptional; + references: z.ZodOptional>; + discoveredDate: z.ZodOptional; + publishedDate: z.ZodOptional; + }, z.core.$strip>>>; + codeSigning: z.ZodOptional; + certificate: z.ZodOptional; + algorithm: z.ZodOptional; + timestamp: z.ZodOptional; + }, z.core.$strip>>; + certifications: z.ZodOptional; + certificateUrl: z.ZodOptional; + }, z.core.$strip>>>; + securityContact: z.ZodOptional; + url: z.ZodOptional; + pgpKey: z.ZodOptional; + }, z.core.$strip>>; + vulnerabilityDisclosure: z.ZodOptional; + responseTimeHours: z.ZodOptional; + responseTime: z.ZodOptional; + bugBounty: z.ZodDefault; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── PluginSecurityProtocol (const) ── +declare const PluginSecurityProtocol: { + readonly VulnerabilitySeverity: z.ZodEnum<{ + critical: "critical"; + high: "high"; + low: "low"; + info: "info"; + medium: "medium"; + }>; + readonly SecurityVulnerability: z.ZodObject<{ + cve: z.ZodOptional; + id: z.ZodString; + title: z.ZodString; + description: z.ZodString; + severity: z.ZodEnum<{ + critical: "critical"; + high: "high"; + low: "low"; + info: "info"; + medium: "medium"; + }>; + cvss: z.ZodOptional; + package: z.ZodObject<{ + name: z.ZodString; + version: z.ZodString; + ecosystem: z.ZodOptional; + }, z.core.$strip>; + vulnerableVersions: z.ZodString; + patchedVersions: z.ZodOptional; + references: z.ZodDefault; + url: z.ZodString; + }, z.core.$strip>>>; + cwe: z.ZodDefault>; + publishedAt: z.ZodOptional; + mitigation: z.ZodOptional; + }, z.core.$strip>; + readonly SecurityScanResult: z.ZodObject<{ + scanId: z.ZodString; + plugin: z.ZodObject<{ + id: z.ZodString; + version: z.ZodString; + }, z.core.$strip>; + scannedAt: z.ZodString; + scanner: z.ZodObject<{ + name: z.ZodString; + version: z.ZodString; + }, z.core.$strip>; + status: z.ZodEnum<{ + failed: "failed"; + warning: "warning"; + passed: "passed"; + }>; + vulnerabilities: z.ZodArray; + id: z.ZodString; + title: z.ZodString; + description: z.ZodString; + severity: z.ZodEnum<{ + critical: "critical"; + high: "high"; + low: "low"; + info: "info"; + medium: "medium"; + }>; + cvss: z.ZodOptional; + package: z.ZodObject<{ + name: z.ZodString; + version: z.ZodString; + ecosystem: z.ZodOptional; + }, z.core.$strip>; + vulnerableVersions: z.ZodString; + patchedVersions: z.ZodOptional; + references: z.ZodDefault; + url: z.ZodString; + }, z.core.$strip>>>; + cwe: z.ZodDefault>; + publishedAt: z.ZodOptional; + mitigation: z.ZodOptional; + }, z.core.$strip>>; + summary: z.ZodObject<{ + critical: z.ZodDefault; + high: z.ZodDefault; + medium: z.ZodDefault; + low: z.ZodDefault; + info: z.ZodDefault; + total: z.ZodDefault; + }, z.core.$strip>; + licenseIssues: z.ZodDefault; + }, z.core.$strip>>>; + codeQuality: z.ZodOptional; + issues: z.ZodDefault; + severity: z.ZodEnum<{ + error: "error"; + info: "info"; + warning: "warning"; + }>; + message: z.ZodString; + file: z.ZodOptional; + line: z.ZodOptional; + }, z.core.$strip>>>; + }, z.core.$strip>>; + nextScanAt: z.ZodOptional; + }, z.core.$strip>; + readonly SecurityPolicy: z.ZodObject<{ + id: z.ZodString; + name: z.ZodString; + autoScan: z.ZodObject<{ + enabled: z.ZodDefault; + frequency: z.ZodDefault>; + }, z.core.$strip>; + thresholds: z.ZodObject<{ + maxCritical: z.ZodDefault; + maxHigh: z.ZodDefault; + maxMedium: z.ZodDefault; + }, z.core.$strip>; + allowedLicenses: z.ZodDefault>; + prohibitedLicenses: z.ZodDefault>; + codeSigning: z.ZodOptional; + allowedSigners: z.ZodDefault>; + }, z.core.$strip>>; + sandbox: z.ZodOptional>; + allowedDestinations: z.ZodDefault>; + filesystemAccess: z.ZodDefault>; + maxMemoryMB: z.ZodOptional; + maxCPUSeconds: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + readonly ResolvedPackageDependency: z.ZodObject<{ + name: z.ZodString; + versionConstraint: z.ZodString; + type: z.ZodDefault>; + resolvedVersion: z.ZodOptional; + }, z.core.$strip>; + readonly DependencyGraphNode: z.ZodObject<{ + id: z.ZodString; + version: z.ZodString; + dependencies: z.ZodDefault>; + resolvedVersion: z.ZodOptional; + }, z.core.$strip>>>; + depth: z.ZodNumber; + isDirect: z.ZodBoolean; + metadata: z.ZodOptional; + license: z.ZodOptional; + homepage: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + readonly DependencyGraph: z.ZodObject<{ + root: z.ZodObject<{ + id: z.ZodString; + version: z.ZodString; + }, z.core.$strip>; + nodes: z.ZodArray>; + resolvedVersion: z.ZodOptional; + }, z.core.$strip>>>; + depth: z.ZodNumber; + isDirect: z.ZodBoolean; + metadata: z.ZodOptional; + license: z.ZodOptional; + homepage: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + edges: z.ZodArray>; + stats: z.ZodObject<{ + totalDependencies: z.ZodNumber; + directDependencies: z.ZodNumber; + maxDepth: z.ZodNumber; + }, z.core.$strip>; + }, z.core.$strip>; + readonly DependencyConflict: z.ZodObject<{ + package: z.ZodString; + conflicts: z.ZodArray; + constraint: z.ZodString; + }, z.core.$strip>>; + resolution: z.ZodOptional; + version: z.ZodOptional; + reason: z.ZodOptional; + }, z.core.$strip>>; + severity: z.ZodEnum<{ + error: "error"; + info: "info"; + warning: "warning"; + }>; + }, z.core.$strip>; + readonly DependencyResolutionResult: z.ZodObject<{ + status: z.ZodEnum<{ + success: "success"; + error: "error"; + conflict: "conflict"; + }>; + graph: z.ZodOptional; + nodes: z.ZodArray>; + resolvedVersion: z.ZodOptional; + }, z.core.$strip>>>; + depth: z.ZodNumber; + isDirect: z.ZodBoolean; + metadata: z.ZodOptional; + license: z.ZodOptional; + homepage: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + edges: z.ZodArray>; + stats: z.ZodObject<{ + totalDependencies: z.ZodNumber; + directDependencies: z.ZodNumber; + maxDepth: z.ZodNumber; + }, z.core.$strip>; + }, z.core.$strip>>; + conflicts: z.ZodDefault; + constraint: z.ZodString; + }, z.core.$strip>>; + resolution: z.ZodOptional; + version: z.ZodOptional; + reason: z.ZodOptional; + }, z.core.$strip>>; + severity: z.ZodEnum<{ + error: "error"; + info: "info"; + warning: "warning"; + }>; + }, z.core.$strip>>>; + errors: z.ZodDefault>>; + installOrder: z.ZodDefault>; + resolvedInMs: z.ZodOptional; + resolvedIn: z.ZodOptional; + }, z.core.$strip>; + readonly SBOMEntry: z.ZodObject<{ + name: z.ZodString; + version: z.ZodString; + purl: z.ZodOptional; + license: z.ZodOptional; + hashes: z.ZodOptional; + sha512: z.ZodOptional; + }, z.core.$strip>>; + supplier: z.ZodOptional; + }, z.core.$strip>>; + externalRefs: z.ZodDefault; + url: z.ZodString; + }, z.core.$strip>>>; + }, z.core.$strip>; + readonly SBOM: z.ZodObject<{ + format: z.ZodDefault>; + version: z.ZodString; + plugin: z.ZodObject<{ + id: z.ZodString; + version: z.ZodString; + name: z.ZodString; + }, z.core.$strip>; + components: z.ZodArray; + license: z.ZodOptional; + hashes: z.ZodOptional; + sha512: z.ZodOptional; + }, z.core.$strip>>; + supplier: z.ZodOptional; + }, z.core.$strip>>; + externalRefs: z.ZodDefault; + url: z.ZodString; + }, z.core.$strip>>>; + }, z.core.$strip>>; + generatedAt: z.ZodString; + generator: z.ZodOptional>; + }, z.core.$strip>; + readonly PluginProvenance: z.ZodObject<{ + pluginId: z.ZodString; + version: z.ZodString; + build: z.ZodObject<{ + timestamp: z.ZodString; + environment: z.ZodOptional>; + source: z.ZodOptional; + tag: z.ZodOptional; + }, z.core.$strip>>; + builder: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + artifacts: z.ZodArray>; + signatures: z.ZodDefault; + publicKey: z.ZodString; + signature: z.ZodString; + signedBy: z.ZodString; + timestamp: z.ZodString; + }, z.core.$strip>>>; + attestations: z.ZodDefault; + status: z.ZodEnum<{ + failed: "failed"; + passed: "passed"; + }>; + url: z.ZodOptional; + timestamp: z.ZodString; + }, z.core.$strip>>>; + }, z.core.$strip>; + readonly PluginTrustScore: z.ZodObject<{ + pluginId: z.ZodString; + score: z.ZodNumber; + components: z.ZodObject<{ + vendorReputation: z.ZodNumber; + securityScore: z.ZodNumber; + codeQuality: z.ZodNumber; + communityScore: z.ZodNumber; + maintenanceScore: z.ZodNumber; + }, z.core.$strip>; + level: z.ZodEnum<{ + neutral: "neutral"; + blocked: "blocked"; + verified: "verified"; + trusted: "trusted"; + untrusted: "untrusted"; + }>; + badges: z.ZodDefault>>; + updatedAt: z.ZodString; + }, z.core.$strip>; +}; + +// ── PluginStartupResult (type) ── +type PluginStartupResult = z.input; + +// ── PluginStartupResultSchema (const) ── +declare const PluginStartupResultSchema: z.ZodObject<{ + pluginName: z.ZodString; + success: z.ZodBoolean; + durationMs: z.ZodOptional; + error: z.ZodOptional; + code: z.ZodOptional; + }, z.core.$strip>>; + timedOut: z.ZodOptional; + startTime: z.ZodOptional; + duration: z.ZodOptional; + plugin: z.ZodOptional; + health: z.ZodOptional; +}, z.core.$strip>; + +// ── PluginStateSnapshot (type) ── +type PluginStateSnapshot = z.input; + +// ── PluginStateSnapshotParsed (type) ── +type PluginStateSnapshotParsed = z.infer; + +// ── PluginStateSnapshotSchema (const) ── +declare const PluginStateSnapshotSchema: z.ZodObject<{ + pluginId: z.ZodString; + version: z.ZodString; + timestamp: z.ZodString; + state: z.ZodRecord; + metadata: z.ZodOptional; + compressed: z.ZodDefault; + encryption: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── PluginStatistics (type) ── +type PluginStatistics = z.input; + +// ── PluginStatisticsParsed (type) ── +type PluginStatisticsParsed = z.infer; + +// ── PluginStatisticsSchema (const) ── +declare const PluginStatisticsSchema: z.ZodObject<{ + downloads: z.ZodDefault; + downloadsLastMonth: z.ZodDefault; + activeInstallations: z.ZodDefault; + ratings: z.ZodOptional; + count: z.ZodDefault; + distribution: z.ZodOptional; + '4': z.ZodDefault; + '3': z.ZodDefault; + '2': z.ZodDefault; + '1': z.ZodDefault; + }, z.core.$strip>>; + }, z.core.$strip>>; + stars: z.ZodOptional; + dependents: z.ZodDefault; +}, z.core.$strip>; + +// ── PluginTrustLevel (type) ── +type PluginTrustLevel = z.input; + +// ── PluginTrustLevelSchema (const) ── +declare const PluginTrustLevelSchema: z.ZodEnum<{ + blocked: "blocked"; + verified: "verified"; + trusted: "trusted"; + community: "community"; + untrusted: "untrusted"; +}>; + +// ── PluginTrustScore (type) ── +type PluginTrustScore = z.input; + +// ── PluginTrustScoreParsed (type) ── +type PluginTrustScoreParsed = z.infer; + +// ── PluginTrustScoreSchema (const) ── +declare const PluginTrustScoreSchema: z.ZodObject<{ + pluginId: z.ZodString; + score: z.ZodNumber; + components: z.ZodObject<{ + vendorReputation: z.ZodNumber; + securityScore: z.ZodNumber; + codeQuality: z.ZodNumber; + communityScore: z.ZodNumber; + maintenanceScore: z.ZodNumber; + }, z.core.$strip>; + level: z.ZodEnum<{ + neutral: "neutral"; + blocked: "blocked"; + verified: "verified"; + trusted: "trusted"; + untrusted: "untrusted"; + }>; + badges: z.ZodDefault>>; + updatedAt: z.ZodString; +}, z.core.$strip>; + +// ── PluginVendor (type) ── +type PluginVendor = z.input; + +// ── PluginVendorParsed (type) ── +type PluginVendorParsed = z.infer; + +// ── PluginVendorSchema (const) ── +declare const PluginVendorSchema: z.ZodObject<{ + id: z.ZodString; + name: z.ZodString; + website: z.ZodOptional; + email: z.ZodOptional; + verified: z.ZodDefault; + trustLevel: z.ZodDefault>; +}, z.core.$strip>; + +// ── PluginVersionMetadata (type) ── +type PluginVersionMetadata = z.input; + +// ── PluginVersionMetadataParsed (type) ── +type PluginVersionMetadataParsed = z.infer; + +// ── PluginVersionMetadataSchema (const) ── +declare const PluginVersionMetadataSchema: z.ZodObject<{ + pluginId: z.ZodString; + version: z.ZodObject<{ + major: z.ZodNumber; + minor: z.ZodNumber; + patch: z.ZodNumber; + preRelease: z.ZodOptional; + build: z.ZodOptional; + }, z.core.$strip>; + versionString: z.ZodString; + releaseDate: z.ZodString; + releaseNotes: z.ZodOptional; + breakingChanges: z.ZodOptional; + description: z.ZodString; + migrationGuide: z.ZodOptional; + deprecatedIn: z.ZodOptional; + removedIn: z.ZodOptional; + automatedMigration: z.ZodDefault; + severity: z.ZodEnum<{ + critical: "critical"; + major: "major"; + minor: "minor"; + }>; + }, z.core.$strip>>>; + deprecations: z.ZodOptional; + reason: z.ZodString; + alternative: z.ZodOptional; + migrationPath: z.ZodOptional; + }, z.core.$strip>>>; + compatibilityMatrix: z.ZodOptional; + breakingChanges: z.ZodOptional; + description: z.ZodString; + migrationGuide: z.ZodOptional; + deprecatedIn: z.ZodOptional; + removedIn: z.ZodOptional; + automatedMigration: z.ZodDefault; + severity: z.ZodEnum<{ + critical: "critical"; + major: "major"; + minor: "minor"; + }>; + }, z.core.$strip>>>; + migrationRequired: z.ZodDefault; + migrationComplexity: z.ZodOptional>; + estimatedMigrationTime: z.ZodOptional; + migrationScript: z.ZodOptional; + testCoverage: z.ZodOptional; + }, z.core.$strip>>>; + securityFixes: z.ZodOptional; + severity: z.ZodEnum<{ + critical: "critical"; + high: "high"; + low: "low"; + medium: "medium"; + }>; + description: z.ZodString; + fixedIn: z.ZodString; + }, z.core.$strip>>>; + statistics: z.ZodOptional; + installations: z.ZodOptional; + ratings: z.ZodOptional; + }, z.core.$strip>>; + support: z.ZodObject<{ + status: z.ZodEnum<{ + deprecated: "deprecated"; + active: "active"; + maintenance: "maintenance"; + eol: "eol"; + }>; + endOfLife: z.ZodOptional; + securitySupport: z.ZodDefault; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── ProtocolFeature (type) ── +type ProtocolFeature = z.input; + +// ── ProtocolFeatureParsed (type) ── +type ProtocolFeatureParsed = z.infer; + +// ── ProtocolFeatureSchema (const) ── +declare const ProtocolFeatureSchema: z.ZodObject<{ + name: z.ZodString; + enabled: z.ZodDefault; + description: z.ZodOptional; + sinceVersion: z.ZodOptional; + deprecatedSince: z.ZodOptional; +}, z.core.$strip>; + +// ── ProtocolReference (type) ── +type ProtocolReference = z.input; + +// ── ProtocolReferenceSchema (const) ── +declare const ProtocolReferenceSchema: z.ZodObject<{ + id: z.ZodString; + label: z.ZodString; + version: z.ZodObject<{ + major: z.ZodNumber; + minor: z.ZodNumber; + patch: z.ZodNumber; + }, z.core.$strip>; + specification: z.ZodOptional; + description: z.ZodOptional; +}, z.core.$strip>; + +// ── ProtocolVersion (type) ── +type ProtocolVersion = z.input; + +// ── ProtocolVersionSchema (const) ── +declare const ProtocolVersionSchema: z.ZodObject<{ + major: z.ZodNumber; + minor: z.ZodNumber; + patch: z.ZodNumber; +}, z.core.$strip>; + +// ── PublicAuthFeatureEntry (type) ── +type PublicAuthFeatureEntry = { + surface: PublicAuthFeatureSurface; + semantics: PublicAuthFeatureSemantics; + /** + * Spec inputs gated on this flag. Path grammar: + * `.actions.` or `.actions..params.`. + * The platform-objects completeness guard resolves each path and asserts the + * target's `visible` predicate matches {@link featureGatePredicate}. + * Mutually exclusive with `exempt`. + */ + gatedInputs?: readonly string[]; + /** Required when `gatedInputs` is absent — why no spec input needs gating. */ + exempt?: { + reason: string; + }; + /** Audit notes: login-surface consumption sites, known gaps, follow-ups. */ + notes?: string; +}; + +// ── PublicAuthFeatureName (type) ── +type PublicAuthFeatureName = keyof typeof PUBLIC_AUTH_FEATURES; + +// ── PublicAuthFeatureSemantics (type) ── +type PublicAuthFeatureSemantics = 'opt-in' | 'default-on'; + +// ── PublicAuthFeatureSurface (type) ── +type PublicAuthFeatureSurface = 'crud' | 'login' | 'status'; + +// ── RealTimeNotificationConfig (type) ── +type RealTimeNotificationConfig = z.input; + +// ── RealTimeNotificationConfigParsed (type) ── +type RealTimeNotificationConfigParsed = z.infer; + +// ── RealTimeNotificationConfigSchema (const) ── +declare const RealTimeNotificationConfigSchema: z.ZodObject<{ + enabled: z.ZodDefault; + protocol: z.ZodDefault>; + eventPattern: z.ZodDefault; + userFilter: z.ZodDefault; + tenantFilter: z.ZodDefault; + channels: z.ZodOptional; + }, z.core.$strip>>>; + rateLimit: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── RequiredAction (type) ── +type RequiredAction = z.input; + +// ── RequiredActionSchema (const) ── +declare const RequiredActionSchema: z.ZodObject<{ + type: z.ZodEnum<{ + install: "install"; + upgrade: "upgrade"; + confirm_conflict: "confirm_conflict"; + }>; + packageId: z.ZodString; + description: z.ZodString; +}, z.core.$strip>; + +// ── ResolvedDependency (type) ── +type ResolvedDependency = z.input; + +// ── ResolvedDependencySchema (const) ── +declare const ResolvedDependencySchema: z.ZodObject<{ + packageId: z.ZodString; + requiredRange: z.ZodString; + resolvedVersion: z.ZodOptional; + installedVersion: z.ZodOptional; + status: z.ZodEnum<{ + conflict: "conflict"; + satisfied: "satisfied"; + needs_install: "needs_install"; + needs_upgrade: "needs_upgrade"; + }>; + conflictReason: z.ZodOptional; +}, z.core.$strip>; + +// ── ResolvedPackageDependency (type) ── +type ResolvedPackageDependency = z.input; + +// ── ResolvedPackageDependencyParsed (type) ── +type ResolvedPackageDependencyParsed = z.infer; + +// ── ResolvedPackageDependencySchema (const) ── +declare const ResolvedPackageDependencySchema: z.ZodObject<{ + name: z.ZodString; + versionConstraint: z.ZodString; + type: z.ZodDefault>; + resolvedVersion: z.ZodOptional; +}, z.core.$strip>; + +// ── ResourceType (type) ── +type ResourceType = z.input; + +// ── ResourceTypeSchema (const) ── +declare const ResourceTypeSchema: z.ZodEnum<{ + "data.object": "data.object"; + "data.record": "data.record"; + "data.field": "data.field"; + "ui.view": "ui.view"; + "ui.dashboard": "ui.dashboard"; + "ui.report": "ui.report"; + "system.config": "system.config"; + "system.plugin": "system.plugin"; + "system.api": "system.api"; + "system.service": "system.service"; + "storage.file": "storage.file"; + "storage.database": "storage.database"; + "network.http": "network.http"; + "network.websocket": "network.websocket"; + "process.spawn": "process.spawn"; + "process.env": "process.env"; +}>; + +// ── RollbackPackageRequest (type) ── +type RollbackPackageRequest = z.input; + +// ── RollbackPackageRequestParsed (type) ── +type RollbackPackageRequestParsed = z.infer; + +// ── RollbackPackageRequestSchema (const) ── +declare const RollbackPackageRequestSchema: z.ZodObject<{ + packageId: z.ZodString; + snapshotId: z.ZodString; + rollbackCustomizations: z.ZodDefault; +}, z.core.$strip>; + +// ── RollbackPackageResponse (type) ── +type RollbackPackageResponse = z.input; + +// ── RollbackPackageResponseSchema (const) ── +declare const RollbackPackageResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + restoredVersion: z.ZodOptional; + message: z.ZodOptional; +}, z.core.$strip>; + +// ── RuntimeConfig (type) ── +type RuntimeConfig = z.input; + +// ── RuntimeConfigParsed (type) ── +type RuntimeConfigParsed = z.infer; + +// ── RuntimeConfigSchema (const) ── +declare const RuntimeConfigSchema: z.ZodObject<{ + engine: z.ZodDefault>; + engineConfig: z.ZodOptional; + instructionLimit: z.ZodOptional; + enableSimd: z.ZodDefault; + enableThreads: z.ZodDefault; + enableBulkMemory: z.ZodDefault; + }, z.core.$strip>>; + container: z.ZodOptional; + runtime: z.ZodDefault>; + resources: z.ZodOptional; + memoryLimit: z.ZodOptional; + }, z.core.$strip>>; + networkMode: z.ZodDefault>; + }, z.core.$strip>>; + v8Isolate: z.ZodOptional; + enableSnapshot: z.ZodDefault; + }, z.core.$strip>>; + }, z.core.$strip>>; + resourceLimits: z.ZodOptional; + maxCpu: z.ZodOptional; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── RuntimeMode (const) ── +declare const RuntimeMode: z.ZodEnum<{ + provisioning: "provisioning"; + development: "development"; + production: "production"; + test: "test"; +}>; + +// ── RuntimeMode (type) ── +type RuntimeMode = z.input; + +// ── SBOM (type) ── +type SBOM = z.input; + +// ── SBOMEntry (type) ── +type SBOMEntry = z.input; + +// ── SBOMEntryParsed (type) ── +type SBOMEntryParsed = z.infer; + +// ── SBOMEntrySchema (const) ── +declare const SBOMEntrySchema: z.ZodObject<{ + name: z.ZodString; + version: z.ZodString; + purl: z.ZodOptional; + license: z.ZodOptional; + hashes: z.ZodOptional; + sha512: z.ZodOptional; + }, z.core.$strip>>; + supplier: z.ZodOptional; + }, z.core.$strip>>; + externalRefs: z.ZodDefault; + url: z.ZodString; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── SBOMParsed (type) ── +type SBOMParsed = z.infer; + +// ── SBOMSchema (const) ── +declare const SBOMSchema: z.ZodObject<{ + format: z.ZodDefault>; + version: z.ZodString; + plugin: z.ZodObject<{ + id: z.ZodString; + version: z.ZodString; + name: z.ZodString; + }, z.core.$strip>; + components: z.ZodArray; + license: z.ZodOptional; + hashes: z.ZodOptional; + sha512: z.ZodOptional; + }, z.core.$strip>>; + supplier: z.ZodOptional; + }, z.core.$strip>>; + externalRefs: z.ZodDefault; + url: z.ZodString; + }, z.core.$strip>>>; + }, z.core.$strip>>; + generatedAt: z.ZodString; + generator: z.ZodOptional>; +}, z.core.$strip>; + +// ── SEED_WRITE_EXECUTION_CONTEXT (const) ── +declare const SEED_WRITE_EXECUTION_CONTEXT: { + readonly isSystem: true; + readonly skipTriggers: true; + readonly seedReplay: true; +}; + +// ── SandboxConfig (type) ── +type SandboxConfig = z.input; + +// ── SandboxConfigParsed (type) ── +type SandboxConfigParsed = z.infer; + +// ── SandboxConfigSchema (const) ── +declare const SandboxConfigSchema: z.ZodObject<{ + enabled: z.ZodDefault; + level: z.ZodDefault>; + runtime: z.ZodOptional>; + engineConfig: z.ZodOptional; + instructionLimit: z.ZodOptional; + enableSimd: z.ZodDefault; + enableThreads: z.ZodDefault; + enableBulkMemory: z.ZodDefault; + }, z.core.$strip>>; + container: z.ZodOptional; + runtime: z.ZodDefault>; + resources: z.ZodOptional; + memoryLimit: z.ZodOptional; + }, z.core.$strip>>; + networkMode: z.ZodDefault>; + }, z.core.$strip>>; + v8Isolate: z.ZodOptional; + enableSnapshot: z.ZodDefault; + }, z.core.$strip>>; + }, z.core.$strip>>; + resourceLimits: z.ZodOptional; + maxCpu: z.ZodOptional; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + filesystem: z.ZodOptional>; + allowedPaths: z.ZodOptional>; + deniedPaths: z.ZodOptional>; + maxFileSize: z.ZodOptional; + }, z.core.$strip>>; + network: z.ZodOptional>; + allowedHosts: z.ZodOptional>; + deniedHosts: z.ZodOptional>; + allowedPorts: z.ZodOptional>; + maxConnections: z.ZodOptional; + }, z.core.$strip>>; + process: z.ZodOptional; + allowedCommands: z.ZodOptional>; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + }, z.core.$strip>>; + memory: z.ZodOptional; + maxStack: z.ZodOptional; + }, z.core.$strip>>; + cpu: z.ZodOptional; + maxThreads: z.ZodOptional; + }, z.core.$strip>>; + environment: z.ZodOptional>; + allowedVars: z.ZodOptional>; + deniedVars: z.ZodOptional>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── ScopeConfig (type) ── +type ScopeConfig = z.input; + +// ── ScopeConfigSchema (const) ── +declare const ScopeConfigSchema: z.ZodObject<{ + scopeType: z.ZodString; + scopeId: z.ZodOptional; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── ScopeInfo (type) ── +type ScopeInfo = z.input; + +// ── ScopeInfoSchema (const) ── +declare const ScopeInfoSchema: z.ZodObject<{ + scopeId: z.ZodString; + scopeType: z.ZodString; + createdAt: z.ZodNumber; + serviceCount: z.ZodOptional; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── SecurityPolicy (type) ── +type SecurityPolicy = z.input; + +// ── SecurityPolicyParsed (type) ── +type SecurityPolicyParsed = z.infer; + +// ── SecurityPolicySchema (const) ── +declare const SecurityPolicySchema: z.ZodObject<{ + id: z.ZodString; + name: z.ZodString; + autoScan: z.ZodObject<{ + enabled: z.ZodDefault; + frequency: z.ZodDefault>; + }, z.core.$strip>; + thresholds: z.ZodObject<{ + maxCritical: z.ZodDefault; + maxHigh: z.ZodDefault; + maxMedium: z.ZodDefault; + }, z.core.$strip>; + allowedLicenses: z.ZodDefault>; + prohibitedLicenses: z.ZodDefault>; + codeSigning: z.ZodOptional; + allowedSigners: z.ZodDefault>; + }, z.core.$strip>>; + sandbox: z.ZodOptional>; + allowedDestinations: z.ZodDefault>; + filesystemAccess: z.ZodDefault>; + maxMemoryMB: z.ZodOptional; + maxCPUSeconds: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── SecurityScanResult (type) ── +type SecurityScanResult = z.input; + +// ── SecurityScanResultParsed (type) ── +type SecurityScanResultParsed = z.infer; + +// ── SecurityScanResultSchema (const) ── +declare const SecurityScanResultSchema: z.ZodObject<{ + scanId: z.ZodString; + plugin: z.ZodObject<{ + id: z.ZodString; + version: z.ZodString; + }, z.core.$strip>; + scannedAt: z.ZodString; + scanner: z.ZodObject<{ + name: z.ZodString; + version: z.ZodString; + }, z.core.$strip>; + status: z.ZodEnum<{ + failed: "failed"; + warning: "warning"; + passed: "passed"; + }>; + vulnerabilities: z.ZodArray; + id: z.ZodString; + title: z.ZodString; + description: z.ZodString; + severity: z.ZodEnum<{ + critical: "critical"; + high: "high"; + low: "low"; + info: "info"; + medium: "medium"; + }>; + cvss: z.ZodOptional; + package: z.ZodObject<{ + name: z.ZodString; + version: z.ZodString; + ecosystem: z.ZodOptional; + }, z.core.$strip>; + vulnerableVersions: z.ZodString; + patchedVersions: z.ZodOptional; + references: z.ZodDefault; + url: z.ZodString; + }, z.core.$strip>>>; + cwe: z.ZodDefault>; + publishedAt: z.ZodOptional; + mitigation: z.ZodOptional; + }, z.core.$strip>>; + summary: z.ZodObject<{ + critical: z.ZodDefault; + high: z.ZodDefault; + medium: z.ZodDefault; + low: z.ZodDefault; + info: z.ZodDefault; + total: z.ZodDefault; + }, z.core.$strip>; + licenseIssues: z.ZodDefault; + }, z.core.$strip>>>; + codeQuality: z.ZodOptional; + issues: z.ZodDefault; + severity: z.ZodEnum<{ + error: "error"; + info: "info"; + warning: "warning"; + }>; + message: z.ZodString; + file: z.ZodOptional; + line: z.ZodOptional; + }, z.core.$strip>>>; + }, z.core.$strip>>; + nextScanAt: z.ZodOptional; +}, z.core.$strip>; + +// ── SecurityVulnerability (type) ── +type SecurityVulnerability = z.input; + +// ── SecurityVulnerabilityParsed (type) ── +type SecurityVulnerabilityParsed = z.infer; + +// ── SecurityVulnerabilitySchema (const) ── +declare const SecurityVulnerabilitySchema: z.ZodObject<{ + cve: z.ZodOptional; + id: z.ZodString; + title: z.ZodString; + description: z.ZodString; + severity: z.ZodEnum<{ + critical: "critical"; + high: "high"; + low: "low"; + info: "info"; + medium: "medium"; + }>; + cvss: z.ZodOptional; + package: z.ZodObject<{ + name: z.ZodString; + version: z.ZodString; + ecosystem: z.ZodOptional; + }, z.core.$strip>; + vulnerableVersions: z.ZodString; + patchedVersions: z.ZodOptional; + references: z.ZodDefault; + url: z.ZodString; + }, z.core.$strip>>>; + cwe: z.ZodDefault>; + publishedAt: z.ZodOptional; + mitigation: z.ZodOptional; +}, z.core.$strip>; + +// ── SemanticVersion (type) ── +type SemanticVersion = z.input; + +// ── SemanticVersionSchema (const) ── +declare const SemanticVersionSchema: z.ZodObject<{ + major: z.ZodNumber; + minor: z.ZodNumber; + patch: z.ZodNumber; + preRelease: z.ZodOptional; + build: z.ZodOptional; +}, z.core.$strip>; + +// ── ServiceClusterAnnotations (type) ── +type ServiceClusterAnnotations = z.input; + +// ── ServiceClusterAnnotationsParsed (type) ── +type ServiceClusterAnnotationsParsed = z.infer; + +// ── ServiceClusterAnnotationsSchema (const) ── +declare const ServiceClusterAnnotationsSchema: z.ZodObject<{ + clusterScope: z.ZodDefault>>; + leaderStrategy: z.ZodOptional>; + clusterId: z.ZodOptional; +}, z.core.$strip>; + +// ── ServiceClusterScope (type) ── +type ServiceClusterScope = z.input; + +// ── ServiceClusterScopeSchema (const) ── +declare const ServiceClusterScopeSchema: z.ZodEnum<{ + cluster: "cluster"; + node: "node"; +}>; + +// ── ServiceFactoryRegistration (type) ── +type ServiceFactoryRegistration = z.input; + +// ── ServiceFactoryRegistrationParsed (type) ── +type ServiceFactoryRegistrationParsed = z.infer; + +// ── ServiceFactoryRegistrationSchema (const) ── +declare const ServiceFactoryRegistrationSchema: z.ZodObject<{ + name: z.ZodString; + scope: z.ZodDefault>>; + factoryType: z.ZodDefault>>; + singleton: z.ZodDefault>; + cluster: z.ZodOptional>>; + leaderStrategy: z.ZodOptional>; + clusterId: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── ServiceLeaderStrategy (type) ── +type ServiceLeaderStrategy = z.input; + +// ── ServiceLeaderStrategySchema (const) ── +declare const ServiceLeaderStrategySchema: z.ZodEnum<{ + "leader-elected": "leader-elected"; + partitioned: "partitioned"; + "idempotent-broadcast": "idempotent-broadcast"; +}>; + +// ── ServiceMetadata (type) ── +type ServiceMetadata = z.input; + +// ── ServiceMetadataParsed (type) ── +type ServiceMetadataParsed = z.infer; + +// ── ServiceMetadataSchema (const) ── +declare const ServiceMetadataSchema: z.ZodObject<{ + name: z.ZodString; + scope: z.ZodDefault>>; + type: z.ZodOptional; + registeredAt: z.ZodOptional; + metadata: z.ZodOptional>; + cluster: z.ZodOptional>>; + leaderStrategy: z.ZodOptional>; + clusterId: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── ServiceRegistryConfig (type) ── +type ServiceRegistryConfig = z.input; + +// ── ServiceRegistryConfigParsed (type) ── +type ServiceRegistryConfigParsed = z.infer; + +// ── ServiceRegistryConfigSchema (const) ── +declare const ServiceRegistryConfigSchema: z.ZodObject<{ + strictMode: z.ZodDefault>; + allowOverwrite: z.ZodDefault>; + enableLogging: z.ZodDefault>; + scopeTypes: z.ZodOptional>; + maxServices: z.ZodOptional; +}, z.core.$strip>; + +// ── ServiceScopeType (const) ── +declare const ServiceScopeType: z.ZodEnum<{ + transient: "transient"; + singleton: "singleton"; + scoped: "scoped"; +}>; + +// ── ServiceScopeType (type) ── +type ServiceScopeType = z.input; + +// ── TenantRuntimeContext (type) ── +type TenantRuntimeContext = z.input; + +// ── TenantRuntimeContextParsed (type) ── +type TenantRuntimeContextParsed = z.infer; + +// ── TenantRuntimeContextSchema (const) ── +declare const TenantRuntimeContextSchema: z.ZodObject<{ + instanceId: z.ZodString; + mode: z.ZodDefault>; + version: z.ZodString; + appName: z.ZodOptional; + cwd: z.ZodString; + workspaceRoot: z.ZodOptional; + startedAt: z.ZodNumber; + features: z.ZodDefault>; + previewMode: z.ZodOptional; + startTime: z.ZodOptional; + tenantId: z.ZodString; + tenantPlan: z.ZodEnum<{ + free: "free"; + pro: "pro"; + enterprise: "enterprise"; + }>; + tenantRegion: z.ZodOptional; + tenantDbUrl: z.ZodString; + tenantQuotas: z.ZodOptional; + maxStorage: z.ZodOptional; + apiRateLimit: z.ZodOptional; + maxObjects: z.ZodOptional; + maxRecordsPerObject: z.ZodOptional; + maxDeploymentsPerDay: z.ZodOptional; + maxStorageBytes: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── UninstallPackageRequest (type) ── +type UninstallPackageRequest = z.input; + +// ── UninstallPackageRequestSchema (const) ── +declare const UninstallPackageRequestSchema: z.ZodObject<{ + id: z.ZodString; +}, z.core.$strip>; + +// ── UninstallPackageResponse (type) ── +type UninstallPackageResponse = z.input; + +// ── UninstallPackageResponseSchema (const) ── +declare const UninstallPackageResponseSchema: z.ZodObject<{ + id: z.ZodString; + success: z.ZodBoolean; + message: z.ZodOptional; +}, z.core.$strip>; + +// ── UnknownAuthoringKeyFinding (interface) ── +interface UnknownAuthoringKeyFinding { + /** Dotted path to the offending key, e.g. `objects.crm_case.fields.owner.pii`. */ + path: string; + surface: AuthoringKeySurface; + /** The key the schema does not declare. */ + key: string; + /** + * The canonical key this is a recognisable spelling of, when one is known. + * Comes from {@link FIELD_KEY_GUIDANCE} / {@link OBJECT_KEY_GUIDANCE} first, + * then from an edit-distance match against the declared keys. + */ + suggestion?: string; + /** + * Prescriptive sentence for a key that was RETIRED rather than renamed — + * where "did you mean X" would be wrong because there is no X. + */ + guidance?: string; +} + +// ── UpgradeImpactLevel (type) ── +type UpgradeImpactLevel = z.input; + +// ── UpgradeImpactLevelSchema (const) ── +declare const UpgradeImpactLevelSchema: z.ZodEnum<{ + none: "none"; + medium: "medium"; + critical: "critical"; + low: "low"; + high: "high"; +}>; + +// ── UpgradePackageRequest (type) ── +type UpgradePackageRequest = z.input; + +// ── UpgradePackageRequestParsed (type) ── +type UpgradePackageRequestParsed = z.infer; + +// ── UpgradePackageRequestSchema (const) ── +declare const UpgradePackageRequestSchema: z.ZodObject<{ + packageId: z.ZodString; + targetVersion: z.ZodOptional; + manifest: z.ZodOptional; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>>; + createSnapshot: z.ZodDefault; + mergeStrategy: z.ZodDefault>; + dryRun: z.ZodDefault; + skipValidation: z.ZodDefault; +}, z.core.$strip>; + +// ── UpgradePackageResponse (type) ── +type UpgradePackageResponse = z.input; + +// ── UpgradePackageResponseParsed (type) ── +type UpgradePackageResponseParsed = z.infer; + +// ── UpgradePackageResponseSchema (const) ── +declare const UpgradePackageResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + phase: z.ZodEnum<{ + failed: "failed"; + pending: "pending"; + completed: "completed"; + analyzing: "analyzing"; + snapshot: "snapshot"; + executing: "executing"; + migrating: "migrating"; + validating: "validating"; + "rolling-back": "rolling-back"; + "rolled-back": "rolled-back"; + }>; + plan: z.ZodOptional; + changes: z.ZodArray; + hasConflict: z.ZodDefault; + summary: z.ZodOptional; + previousName: z.ZodOptional; + }, z.core.$strip>>; + affectedCustomizations: z.ZodDefault; + requiresMigration: z.ZodDefault; + migrationScripts: z.ZodOptional>; + dependencyUpgrades: z.ZodOptional>>; + estimatedDurationSeconds: z.ZodOptional; + estimatedDuration: z.ZodOptional; + summary: z.ZodOptional; + }, z.core.$strip>>; + snapshotId: z.ZodOptional; + conflicts: z.ZodOptional>>; + errorMessage: z.ZodOptional; + message: z.ZodOptional; +}, z.core.$strip>; + +// ── UpgradePhase (type) ── +type UpgradePhase = z.input; + +// ── UpgradePhaseSchema (const) ── +declare const UpgradePhaseSchema: z.ZodEnum<{ + failed: "failed"; + pending: "pending"; + completed: "completed"; + analyzing: "analyzing"; + snapshot: "snapshot"; + executing: "executing"; + migrating: "migrating"; + validating: "validating"; + "rolling-back": "rolling-back"; + "rolled-back": "rolled-back"; +}>; + +// ── UpgradePlan (type) ── +type UpgradePlan = z.input; + +// ── UpgradePlanParsed (type) ── +type UpgradePlanParsed = z.infer; + +// ── UpgradePlanSchema (const) ── +declare const UpgradePlanSchema: z.ZodObject<{ + packageId: z.ZodString; + fromVersion: z.ZodString; + toVersion: z.ZodString; + impactLevel: z.ZodEnum<{ + none: "none"; + medium: "medium"; + critical: "critical"; + low: "low"; + high: "high"; + }>; + changes: z.ZodArray; + hasConflict: z.ZodDefault; + summary: z.ZodOptional; + previousName: z.ZodOptional; + }, z.core.$strip>>; + affectedCustomizations: z.ZodDefault; + requiresMigration: z.ZodDefault; + migrationScripts: z.ZodOptional>; + dependencyUpgrades: z.ZodOptional>>; + estimatedDurationSeconds: z.ZodOptional; + estimatedDuration: z.ZodOptional; + summary: z.ZodOptional; +}, z.core.$strip>; + +// ── UpgradeSnapshot (type) ── +type UpgradeSnapshot = z.input; + +// ── UpgradeSnapshotParsed (type) ── +type UpgradeSnapshotParsed = z.infer; + +// ── UpgradeSnapshotSchema (const) ── +declare const UpgradeSnapshotSchema: z.ZodObject<{ + id: z.ZodString; + packageId: z.ZodString; + fromVersion: z.ZodString; + toVersion: z.ZodString; + tenantId: z.ZodOptional; + previousManifest: z.ZodObject<{ + id: z.ZodString; + namespace: z.ZodOptional; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + ui: "ui"; + adapter: "adapter"; + app: "app"; + agent: "agent"; + plugin: "plugin"; + driver: "driver"; + theme: "theme"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>; + metadataSnapshot: z.ZodArray; + }, z.core.$strip>>; + customizationSnapshot: z.ZodOptional>>; + createdAt: z.ZodString; + expiresAt: z.ZodOptional; +}, z.core.$strip>; + +// ── VIEW_LAYOUT_WITHOUT_BINDING (const) ── +declare const VIEW_LAYOUT_WITHOUT_BINDING = "view/layout-without-binding"; + +// ── VIEW_ROW_COLOR_UNRESOLVABLE_VALUE (const) ── +declare const VIEW_ROW_COLOR_UNRESOLVABLE_VALUE = "view/row-color-unresolvable-value"; + +// ── VIEW_ROW_COLOR_WITHOUT_COLORS (const) ── +declare const VIEW_ROW_COLOR_WITHOUT_COLORS = "view/row-color-without-colors"; + +// ── VIEW_TREE_WITHOUT_PARENT_FIELD (const) ── +declare const VIEW_TREE_WITHOUT_PARENT_FIELD = "view/tree-without-parent-field"; + +// ── ValidationError (type) ── +type ValidationError = z.input; + +// ── ValidationErrorSchema (const) ── +declare const ValidationErrorSchema: z.ZodObject<{ + field: z.ZodString; + message: z.ZodString; + code: z.ZodOptional; +}, z.core.$strip>; + +// ── ValidationResult (type) ── +type ValidationResult = z.input; + +// ── ValidationResultSchema (const) ── +declare const ValidationResultSchema: z.ZodObject<{ + valid: z.ZodBoolean; + errors: z.ZodOptional; + }, z.core.$strip>>>; + warnings: z.ZodOptional; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── ValidationWarning (type) ── +type ValidationWarning = z.input; + +// ── ValidationWarningSchema (const) ── +declare const ValidationWarningSchema: z.ZodObject<{ + field: z.ZodString; + message: z.ZodString; + code: z.ZodOptional; +}, z.core.$strip>; + +// ── VersionConstraint (type) ── +type VersionConstraint = z.input; + +// ── VersionConstraintSchema (const) ── +declare const VersionConstraintSchema: z.ZodUnion, z.ZodLiteral<"latest">]>; + +// ── VulnerabilitySeverity (const) ── +declare const VulnerabilitySeverity: z.ZodEnum<{ + critical: "critical"; + high: "high"; + low: "low"; + info: "info"; + medium: "medium"; +}>; + +// ── VulnerabilitySeverity (type) ── +type VulnerabilitySeverity = z.input; + +// ── WEBHOOK_WITHOUT_TRIGGERS (const) ── +declare const WEBHOOK_WITHOUT_TRIGGERS = "webhook/without-triggers"; + +// ── checkFieldCompleteness (function) ── +declare function checkFieldCompleteness(def: unknown): CompletenessFinding[]; + +// ── checkViewCompleteness (function) ── +declare function checkViewCompleteness(view: unknown, boundObject?: unknown): CompletenessFinding[]; + +// ── checkWebhookCompleteness (function) ── +declare function checkWebhookCompleteness(webhook: unknown): CompletenessFinding[]; + +// ── classifyRequiredCapability (function) ── +declare function classifyRequiredCapability(token: string, isInstalled: (pkg: string) => boolean): CapabilityClassification; + +// ── deriveNamespaceFromPackageId (function) ── +declare function deriveNamespaceFromPackageId(packageId: string | undefined): string | null; + +// ── evaluateLockForDelete (function) ── +declare function evaluateLockForDelete(lock: MetadataLock): { + code: 'ITEM_LOCKED'; + reason: string; +} | null; + +// ── evaluateLockForWrite (function) ── +declare function evaluateLockForWrite(lock: MetadataLock): { + code: 'ITEM_LOCKED'; + reason: string; +} | null; + +// ── extractProtection (function) ── +declare function extractProtection(item: unknown): { + lock: MetadataLock; + lockReason: string | undefined; + lockSource: MetadataLockSource | undefined; + lockDocsUrl: string | undefined; + provenance: MetadataProvenance | undefined; + packageId: string | undefined; + packageVersion: string | undefined; +}; + +// ── featureGatePredicate (function) ── +declare function featureGatePredicate(name: PublicAuthFeatureName): string; + +// ── getMetadataCreateSeed (function) ── +declare function getMetadataCreateSeed(type: string): unknown | undefined; + +// ── getMetadataTypeActions (function) ── +declare function getMetadataTypeActions(type: string): Action[]; + +// ── getMetadataTypeRedactor (function) ── +declare function getMetadataTypeRedactor(type: string): MetadataTypeRedactor | undefined; + +// ── getMetadataTypeSchema (function) ── +declare function getMetadataTypeSchema(type: string): z.ZodType | undefined; + +// ── isConsumerInstallable (function) ── +declare function isConsumerInstallable(type: string | undefined): boolean; + +// ── isKnownPlatformCapability (function) ── +declare function isKnownPlatformCapability(token: string): boolean; + +// ── lintUnknownAuthoringKeys (function) ── +declare function lintUnknownAuthoringKeys(rawStack: unknown, stackSchema: unknown): UnknownAuthoringKeyFinding[]; + +// ── lintUnknownKeysAgainstSchema (function) ── +declare function lintUnknownKeysAgainstSchema(schema: unknown, value: unknown, surface: string, basePath: string, guidance?: Readonly>): UnknownAuthoringKeyFinding[]; + +// ── lintUnknownStackKeys (function) ── +declare function lintUnknownStackKeys(rawStack: unknown, stackSchema: unknown): UnknownAuthoringKeyFinding[]; + +// ── listLintableAuthoringCollections (function) ── +declare function listLintableAuthoringCollections(stackSchema: unknown): LintableAuthoringCollection[]; + +// ── listMetadataCreateSeedTypes (function) ── +declare function listMetadataCreateSeedTypes(): string[]; + +// ── listMetadataTypeRedactorTypes (function) ── +declare function listMetadataTypeRedactorTypes(): string[]; + +// ── listMetadataTypeSchemaTypes (function) ── +declare function listMetadataTypeSchemaTypes(): string[]; + +// ── listUnregisteredKindSchemaTypes (function) ── +declare function listUnregisteredKindSchemaTypes(): string[]; + +// ── lowerRequiresFeature (function) ── +declare function lowerRequiresFeature(input: T, ctx: z.core.$RefinementCtx): Omit; + +// ── registerMetadataTypeActions (function) ── +declare function registerMetadataTypeActions(type: string, actions: Action[]): void; + +// ── registerMetadataTypeRedactor (function) ── +declare function registerMetadataTypeRedactor(type: string, redactor: MetadataTypeRedactor): void; + +// ── registerMetadataTypeSchema (function) ── +declare function registerMetadataTypeSchema(type: string, schema: z.ZodType): void; + +// ── resolveLockState (function) ── +declare function resolveLockState(item: unknown, artifactBacked: boolean): { + lock: MetadataLock; + lockReason: string | undefined; + lockSource: MetadataLockSource | undefined; + lockDocsUrl: string | undefined; + provenance: MetadataProvenance | undefined; + packageId: string | undefined; + packageVersion: string | undefined; + editable: boolean; + deletable: boolean; + resettable: boolean; +}; + +// ── stripReadDecorations (function) ── +declare function stripReadDecorations(item: unknown): unknown; + +// ── validateObjectNamespacePrefix (function) ── +declare function validateObjectNamespacePrefix(objectName: string | undefined, namespace: string | undefined): string | null; diff --git a/packages/spec/api-surface-declarations/marketplace.txt b/packages/spec/api-surface-declarations/marketplace.txt new file mode 100644 index 00000000000..8b3ea8b0d3c --- /dev/null +++ b/packages/spec/api-surface-declarations/marketplace.txt @@ -0,0 +1,884 @@ +# @objectstack/spec — the .d.ts DECLARATION TEXT of every export of `./marketplace`. +# +# The SHAPE half of the ADR-0059 public-API pin, and the readable counterpart of +# api-surface/marketplace.json's breadth half. That file pins each export by +# `name (kind)`, which a signature change, a renamed interface field and a dropped +# union member all leave untouched. This file pins the declaration text, so each of +# those moves a line here. Text and NOT a hash, deliberately: a diff a reviewer can +# read is what makes contract review a guard rather than a rubber stamp. +# +# Verbatim from the PACKED `.d.ts` reached through this package's `exports` map — the +# declarations a consumer installs, never `src/`. A declaration's leading TSDoc is +# excluded: documentation drift is `check:docs`'s axis, not this one. +# +# entry: ./marketplace +# exported names: 76 +# declarations: 76 +# +# GENERATED — ⛔ never hand-edited. Regenerate after a real build: +# pnpm --filter @objectstack/spec build && pnpm --filter @objectstack/spec gen:api-surface-declarations +# Gated by `check:api-surface-declarations`; a hand edit is a red gate, not a change. + +// ── ArtifactDownloadResponse (type) ── +type ArtifactDownloadResponse = z.input; + +// ── ArtifactDownloadResponseSchema (const) ── +declare const ArtifactDownloadResponseSchema: z.ZodObject<{ + downloadUrl: z.ZodString; + sha256: z.ZodString; + size: z.ZodNumber; + format: z.ZodEnum<{ + zip: "zip"; + tgz: "tgz"; + }>; + expiresAt: z.ZodOptional; +}, z.core.$strip>; + +// ── ArtifactReference (type) ── +type ArtifactReference = z.input; + +// ── ArtifactReferenceParsed (type) ── +type ArtifactReferenceParsed = z.infer; + +// ── ArtifactReferenceSchema (const) ── +declare const ArtifactReferenceSchema: z.ZodObject<{ + url: z.ZodString; + sha256: z.ZodString; + size: z.ZodNumber; + format: z.ZodDefault>; + uploadedAt: z.ZodString; +}, z.core.$strip>; + +// ── CreatePackageRequest (type) ── +type CreatePackageRequest = z.input; + +// ── CreatePackageRequestSchema (const) ── +declare const CreatePackageRequestSchema: z.ZodObject<{ + manifestId: z.ZodString; + namespace: z.ZodOptional; + ownerOrgId: z.ZodString; + displayName: z.ZodString; + description: z.ZodOptional; + visibility: z.ZodOptional>; + category: z.ZodOptional; + tags: z.ZodOptional>; + iconUrl: z.ZodOptional; + homepageUrl: z.ZodOptional; + license: z.ZodOptional; + publisher: z.ZodOptional>; + isStarter: z.ZodOptional; + translations: z.ZodOptional; + description: z.ZodOptional; + readme: z.ZodOptional; + tagline: z.ZodOptional; + screenshotCaptions: z.ZodOptional>; + }, z.core.$strip>>>; + createdBy: z.ZodString; +}, z.core.$strip>; + +// ── CreatePackageVersionRequest (type) ── +type CreatePackageVersionRequest = z.input; + +// ── CreatePackageVersionRequestSchema (const) ── +declare const CreatePackageVersionRequestSchema: z.ZodObject<{ + packageId: z.ZodString; + version: z.ZodString; + manifestJson: z.ZodString; + releaseNotes: z.ZodOptional; + isPreRelease: z.ZodOptional; + createdBy: z.ZodString; +}, z.core.$strip>; + +// ── ListingStatus (type) ── +type ListingStatus = z.input; + +// ── ListingStatusSchema (const) ── +declare const ListingStatusSchema: z.ZodEnum<{ + deprecated: "deprecated"; + draft: "draft"; + published: "published"; + approved: "approved"; + rejected: "rejected"; + submitted: "submitted"; + "in-review": "in-review"; + suspended: "suspended"; + unlisted: "unlisted"; +}>; + +// ── MarketplaceCategory (type) ── +type MarketplaceCategory = z.input; + +// ── MarketplaceCategorySchema (const) ── +declare const MarketplaceCategorySchema: z.ZodEnum<{ + storage: "storage"; + automation: "automation"; + analytics: "analytics"; + ai: "ai"; + other: "other"; + integration: "integration"; + security: "security"; + project: "project"; + crm: "crm"; + erp: "erp"; + hr: "hr"; + finance: "finance"; + collaboration: "collaboration"; + "developer-tools": "developer-tools"; + "ui-theme": "ui-theme"; +}>; + +// ── MarketplaceInstallRequest (type) ── +type MarketplaceInstallRequest = z.input; + +// ── MarketplaceInstallRequestParsed (type) ── +type MarketplaceInstallRequestParsed = z.infer; + +// ── MarketplaceInstallRequestSchema (const) ── +declare const MarketplaceInstallRequestSchema: z.ZodObject<{ + listingId: z.ZodString; + version: z.ZodOptional; + licenseKey: z.ZodOptional; + settings: z.ZodOptional>; + enableOnInstall: z.ZodDefault; + artifactRef: z.ZodOptional>; + uploadedAt: z.ZodString; + }, z.core.$strip>>; + tenantId: z.ZodOptional; +}, z.core.$strip>; + +// ── MarketplaceInstallResponse (type) ── +type MarketplaceInstallResponse = z.input; + +// ── MarketplaceInstallResponseSchema (const) ── +declare const MarketplaceInstallResponseSchema: z.ZodObject<{ + success: z.ZodBoolean; + packageId: z.ZodOptional; + version: z.ZodOptional; + message: z.ZodOptional; +}, z.core.$strip>; + +// ── MarketplaceListing (type) ── +type MarketplaceListing = z.input; + +// ── MarketplaceListingParsed (type) ── +type MarketplaceListingParsed = z.infer; + +// ── MarketplaceListingSchema (const) ── +declare const MarketplaceListingSchema: z.ZodObject<{ + id: z.ZodString; + packageId: z.ZodString; + packageType: z.ZodDefault>; + publisherId: z.ZodString; + status: z.ZodDefault>; + name: z.ZodString; + tagline: z.ZodOptional; + description: z.ZodOptional; + category: z.ZodEnum<{ + storage: "storage"; + automation: "automation"; + analytics: "analytics"; + ai: "ai"; + other: "other"; + integration: "integration"; + security: "security"; + project: "project"; + crm: "crm"; + erp: "erp"; + hr: "hr"; + finance: "finance"; + collaboration: "collaboration"; + "developer-tools": "developer-tools"; + "ui-theme": "ui-theme"; + }>; + tags: z.ZodOptional>; + iconUrl: z.ZodOptional; + screenshots: z.ZodOptional; + }, z.core.$strip>>>; + documentationUrl: z.ZodOptional; + supportUrl: z.ZodOptional; + repositoryUrl: z.ZodOptional; + pricing: z.ZodDefault>; + priceInCents: z.ZodOptional; + latestVersion: z.ZodString; + minPlatformVersion: z.ZodOptional; + versions: z.ZodOptional; + minPlatformVersion: z.ZodOptional; + deprecated: z.ZodDefault; + artifact: z.ZodOptional>; + uploadedAt: z.ZodString; + }, z.core.$strip>>; + }, z.core.$strip>>>; + stats: z.ZodOptional; + activeInstalls: z.ZodDefault; + averageRating: z.ZodOptional; + totalRatings: z.ZodDefault; + totalReviews: z.ZodDefault; + }, z.core.$strip>>; + publishedAt: z.ZodOptional; + updatedAt: z.ZodOptional; + translations: z.ZodOptional; + description: z.ZodOptional; + readme: z.ZodOptional; + tagline: z.ZodOptional; + screenshotCaptions: z.ZodOptional>; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── MarketplaceSearchRequest (type) ── +type MarketplaceSearchRequest = z.input; + +// ── MarketplaceSearchRequestParsed (type) ── +type MarketplaceSearchRequestParsed = z.infer; + +// ── MarketplaceSearchRequestSchema (const) ── +declare const MarketplaceSearchRequestSchema: z.ZodObject<{ + query: z.ZodOptional; + category: z.ZodOptional>; + tags: z.ZodOptional>; + pricing: z.ZodOptional>; + publisherVerification: z.ZodOptional>; + sortBy: z.ZodDefault>; + sortDirection: z.ZodDefault>; + page: z.ZodDefault; + pageSize: z.ZodDefault; + platformVersion: z.ZodOptional; +}, z.core.$strip>; + +// ── MarketplaceSearchResponse (type) ── +type MarketplaceSearchResponse = z.input; + +// ── MarketplaceSearchResponseParsed (type) ── +type MarketplaceSearchResponseParsed = z.infer; + +// ── MarketplaceSearchResponseSchema (const) ── +declare const MarketplaceSearchResponseSchema: z.ZodObject<{ + items: z.ZodArray>; + publisherId: z.ZodString; + status: z.ZodDefault>; + name: z.ZodString; + tagline: z.ZodOptional; + description: z.ZodOptional; + category: z.ZodEnum<{ + storage: "storage"; + automation: "automation"; + analytics: "analytics"; + ai: "ai"; + other: "other"; + integration: "integration"; + security: "security"; + project: "project"; + crm: "crm"; + erp: "erp"; + hr: "hr"; + finance: "finance"; + collaboration: "collaboration"; + "developer-tools": "developer-tools"; + "ui-theme": "ui-theme"; + }>; + tags: z.ZodOptional>; + iconUrl: z.ZodOptional; + screenshots: z.ZodOptional; + }, z.core.$strip>>>; + documentationUrl: z.ZodOptional; + supportUrl: z.ZodOptional; + repositoryUrl: z.ZodOptional; + pricing: z.ZodDefault>; + priceInCents: z.ZodOptional; + latestVersion: z.ZodString; + minPlatformVersion: z.ZodOptional; + versions: z.ZodOptional; + minPlatformVersion: z.ZodOptional; + deprecated: z.ZodDefault; + artifact: z.ZodOptional>; + uploadedAt: z.ZodString; + }, z.core.$strip>>; + }, z.core.$strip>>>; + stats: z.ZodOptional; + activeInstalls: z.ZodDefault; + averageRating: z.ZodOptional; + totalRatings: z.ZodDefault; + totalReviews: z.ZodDefault; + }, z.core.$strip>>; + publishedAt: z.ZodOptional; + updatedAt: z.ZodOptional; + translations: z.ZodOptional; + description: z.ZodOptional; + readme: z.ZodOptional; + tagline: z.ZodOptional; + screenshotCaptions: z.ZodOptional>; + }, z.core.$strip>>>; + }, z.core.$strip>>; + total: z.ZodNumber; + page: z.ZodNumber; + pageSize: z.ZodNumber; + facets: z.ZodOptional; + count: z.ZodNumber; + }, z.core.$strip>>>; + pricing: z.ZodOptional; + count: z.ZodNumber; + }, z.core.$strip>>>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── Package (type) ── +type Package = z.input; + +// ── PackageCategory (type) ── +type PackageCategory = z.input; + +// ── PackageCategorySchema (const) ── +declare const PackageCategorySchema: z.ZodString; + +// ── PackageDependency (type) ── +type PackageDependency = z.input; + +// ── PackageDependencyParsed (type) ── +type PackageDependencyParsed = z.infer; + +// ── PackageDependencySchema (const) ── +declare const PackageDependencySchema: z.ZodObject<{ + packageId: z.ZodString; + versionRange: z.ZodString; + optional: z.ZodDefault; +}, z.core.$strip>; + +// ── PackageL10nField (type) ── +type PackageL10nField = keyof PackageTranslation; + +// ── PackageLocale (type) ── +type PackageLocale = z.input; + +// ── PackageLocaleSchema (const) ── +declare const PackageLocaleSchema: z.ZodString; + +// ── PackageManifest (type) ── +type PackageManifest = z.input; + +// ── PackageManifestParsed (type) ── +type PackageManifestParsed = z.infer; + +// ── PackageManifestSchema (const) ── +declare const PackageManifestSchema: z.ZodObject<{ + id: z.ZodString; + version: z.ZodString; + name: z.ZodString; + description: z.ZodOptional; + scope: z.ZodDefault>; + minPlatformVersion: z.ZodOptional; + dependencies: z.ZodDefault; + }, z.core.$strip>>>; + metadataTypes: z.ZodDefault>; + migrations: z.ZodDefault>; + configurationSchema: z.ZodOptional>; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── PackageParsed (type) ── +type PackageParsed = z.infer; + +// ── PackagePublisher (type) ── +type PackagePublisher = z.input; + +// ── PackagePublisherSchema (const) ── +declare const PackagePublisherSchema: z.ZodEnum<{ + partner: "partner"; + private: "private"; + objectstack: "objectstack"; + community: "community"; +}>; + +// ── PackageSchema (const) ── +declare const PackageSchema: z.ZodObject<{ + id: z.ZodString; + manifestId: z.ZodString; + namespace: z.ZodOptional; + ownerOrgId: z.ZodString; + displayName: z.ZodString; + description: z.ZodOptional; + readme: z.ZodOptional; + visibility: z.ZodDefault>; + category: z.ZodOptional; + tags: z.ZodOptional>; + iconUrl: z.ZodOptional; + homepageUrl: z.ZodOptional; + license: z.ZodOptional; + publisher: z.ZodDefault>; + isStarter: z.ZodDefault; + translations: z.ZodOptional; + description: z.ZodOptional; + readme: z.ZodOptional; + tagline: z.ZodOptional; + screenshotCaptions: z.ZodOptional>; + }, z.core.$strip>>>; + createdAt: z.ZodString; + updatedAt: z.ZodString; + createdBy: z.ZodString; +}, z.core.$strip>; + +// ── PackageSubmission (type) ── +type PackageSubmission = z.input; + +// ── PackageSubmissionParsed (type) ── +type PackageSubmissionParsed = z.infer; + +// ── PackageSubmissionSchema (const) ── +declare const PackageSubmissionSchema: z.ZodObject<{ + id: z.ZodString; + packageId: z.ZodString; + version: z.ZodString; + publisherId: z.ZodString; + status: z.ZodDefault>; + artifactUrl: z.ZodString; + releaseNotes: z.ZodOptional; + isNewListing: z.ZodDefault; + scanResults: z.ZodOptional; + compatibilityCheck: z.ZodOptional; + issues: z.ZodOptional; + message: z.ZodString; + file: z.ZodOptional; + line: z.ZodOptional; + }, z.core.$strip>>>; + }, z.core.$strip>>; + reviewerNotes: z.ZodOptional; + submittedAt: z.ZodOptional; + reviewedAt: z.ZodOptional; +}, z.core.$strip>; + +// ── PackageTranslation (type) ── +type PackageTranslation = z.input; + +// ── PackageTranslationSchema (const) ── +declare const PackageTranslationSchema: z.ZodObject<{ + displayName: z.ZodOptional; + description: z.ZodOptional; + readme: z.ZodOptional; + tagline: z.ZodOptional; + screenshotCaptions: z.ZodOptional>; +}, z.core.$strip>; + +// ── PackageTranslations (type) ── +type PackageTranslations = z.input; + +// ── PackageTranslationsSchema (const) ── +declare const PackageTranslationsSchema: z.ZodRecord; + description: z.ZodOptional; + readme: z.ZodOptional; + tagline: z.ZodOptional; + screenshotCaptions: z.ZodOptional>; +}, z.core.$strip>>; + +// ── PackageVersion (type) ── +type PackageVersion = z.input; + +// ── PackageVersionParsed (type) ── +type PackageVersionParsed = z.infer; + +// ── PackageVersionSchema (const) ── +declare const PackageVersionSchema: z.ZodObject<{ + id: z.ZodString; + packageId: z.ZodString; + version: z.ZodString; + status: z.ZodDefault>; + manifestJson: z.ZodString; + checksum: z.ZodOptional; + releaseNotes: z.ZodOptional; + minPlatformVersion: z.ZodOptional; + isPreRelease: z.ZodDefault; + publishedAt: z.ZodOptional; + publishedBy: z.ZodOptional; + createdAt: z.ZodString; + updatedAt: z.ZodString; + createdBy: z.ZodString; +}, z.core.$strip>; + +// ── PackageVersionStatus (type) ── +type PackageVersionStatus = z.input; + +// ── PackageVersionStatusSchema (const) ── +declare const PackageVersionStatusSchema: z.ZodEnum<{ + deprecated: "deprecated"; + draft: "draft"; + published: "published"; +}>; + +// ── PackageVisibility (type) ── +type PackageVisibility = z.input; + +// ── PackageVisibilitySchema (const) ── +declare const PackageVisibilitySchema: z.ZodEnum<{ + org: "org"; + private: "private"; + marketplace: "marketplace"; +}>; + +// ── PricingModel (type) ── +type PricingModel = z.input; + +// ── PricingModelSchema (const) ── +declare const PricingModelSchema: z.ZodEnum<{ + subscription: "subscription"; + free: "free"; + freemium: "freemium"; + paid: "paid"; + "usage-based": "usage-based"; + "contact-sales": "contact-sales"; +}>; + +// ── PublishPackageVersionRequest (type) ── +type PublishPackageVersionRequest = z.input; + +// ── PublishPackageVersionRequestSchema (const) ── +declare const PublishPackageVersionRequestSchema: z.ZodObject<{ + publishedBy: z.ZodString; +}, z.core.$strip>; + +// ── Publisher (type) ── +type Publisher = z.input; + +// ── PublisherParsed (type) ── +type PublisherParsed = z.infer; + +// ── PublisherSchema (const) ── +declare const PublisherSchema: z.ZodObject<{ + id: z.ZodString; + name: z.ZodString; + type: z.ZodEnum<{ + organization: "organization"; + individual: "individual"; + }>; + verification: z.ZodDefault>; + email: z.ZodOptional; + website: z.ZodOptional; + logoUrl: z.ZodOptional; + description: z.ZodOptional; + registeredAt: z.ZodOptional; +}, z.core.$strip>; + +// ── PublisherVerification (type) ── +type PublisherVerification = z.input; + +// ── PublisherVerificationSchema (const) ── +declare const PublisherVerificationSchema: z.ZodEnum<{ + partner: "partner"; + pending: "pending"; + unverified: "unverified"; + verified: "verified"; + trusted: "trusted"; +}>; + +// ── ResolvePackageL10nOptions (interface) ── +interface ResolvePackageL10nOptions { + /** BCP-47 locale to render (e.g. `zh-CN`, `ja`). */ + locale: string; + /** Locale to fall back to before the base column. Default `en`. */ + fallbackLocale?: string; +} + +// ── TemplateManifest (type) ── +type TemplateManifest = z.input; + +// ── TemplateManifestSchema (const) ── +declare const TemplateManifestSchema: z.ZodObject<{ + description: z.ZodOptional; + displayName: z.ZodString; + visibility: z.ZodOptional>; + category: z.ZodOptional; + tags: z.ZodOptional>; + iconUrl: z.ZodOptional; + homepageUrl: z.ZodOptional; + license: z.ZodOptional; + publisher: z.ZodOptional>; + isStarter: z.ZodOptional; + translations: z.ZodOptional; + description: z.ZodOptional; + readme: z.ZodOptional; + tagline: z.ZodOptional; + screenshotCaptions: z.ZodOptional>; + }, z.core.$strip>>>; + manifestId: z.ZodOptional; + name: z.ZodString; + specVersion: z.ZodString; + namespace: z.ZodOptional; + skills: z.ZodOptional>; + preview: z.ZodOptional>; + demoUrl: z.ZodOptional; + }, z.core.$strip>>; + scaffold: z.ZodOptional>; + postInstall: z.ZodOptional>; + }, z.core.$strip>>; + readmePath: z.ZodOptional; +}, z.core.$strip>; + +// ── UpdatePackageRequest (type) ── +type UpdatePackageRequest = z.input; + +// ── UpdatePackageRequestSchema (const) ── +declare const UpdatePackageRequestSchema: z.ZodObject<{ + displayName: z.ZodOptional; + description: z.ZodOptional; + readme: z.ZodOptional; + visibility: z.ZodOptional>; + category: z.ZodOptional; + tags: z.ZodOptional>; + iconUrl: z.ZodOptional; + homepageUrl: z.ZodOptional; + license: z.ZodOptional; + publisher: z.ZodOptional>; + isStarter: z.ZodOptional; + translations: z.ZodOptional; + description: z.ZodOptional; + readme: z.ZodOptional; + tagline: z.ZodOptional; + screenshotCaptions: z.ZodOptional>; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── UpdatePackageVersionRequest (type) ── +type UpdatePackageVersionRequest = z.input; + +// ── UpdatePackageVersionRequestSchema (const) ── +declare const UpdatePackageVersionRequestSchema: z.ZodObject<{ + manifestJson: z.ZodOptional; + releaseNotes: z.ZodOptional; + isPreRelease: z.ZodOptional; +}, z.core.$strip>; + +// ── resolvePackageL10n (function) ── +declare function resolvePackageL10n(row: { + translations?: PackageTranslations | null; +} & Record, opts: ResolvePackageL10nOptions): { + displayName?: string; + description?: string; + readme?: string; + tagline?: string; + screenshotCaptions?: Record; +}; + +// ── resolvePackageL10nField (function) ── +declare function resolvePackageL10nField(row: { + translations?: PackageTranslations | null; +} & Record, field: PackageL10nField, opts: ResolvePackageL10nOptions): string | undefined; + +// ── resolveScreenshotCaptions (function) ── +declare function resolveScreenshotCaptions(row: { + translations?: PackageTranslations | null; +} & Record, opts: ResolvePackageL10nOptions): Record | undefined; diff --git a/packages/spec/api-surface-declarations/meta-spelling.txt b/packages/spec/api-surface-declarations/meta-spelling.txt new file mode 100644 index 00000000000..ddee52d8352 --- /dev/null +++ b/packages/spec/api-surface-declarations/meta-spelling.txt @@ -0,0 +1,49 @@ +# @objectstack/spec — the .d.ts DECLARATION TEXT of every export of `./meta-spelling`. +# +# The SHAPE half of the ADR-0059 public-API pin, and the readable counterpart of +# api-surface/meta-spelling.json's breadth half. That file pins each export by +# `name (kind)`, which a signature change, a renamed interface field and a dropped +# union member all leave untouched. This file pins the declaration text, so each of +# those moves a line here. Text and NOT a hash, deliberately: a diff a reviewer can +# read is what makes contract review a guard rather than a rubber stamp. +# +# Verbatim from the PACKED `.d.ts` reached through this package's `exports` map — the +# declarations a consumer installs, never `src/`. A declaration's leading TSDoc is +# excluded: documentation drift is `check:docs`'s axis, not this one. +# +# entry: ./meta-spelling +# exported names: 8 +# declarations: 8 +# +# GENERATED — ⛔ never hand-edited. Regenerate after a real build: +# pnpm --filter @objectstack/spec build && pnpm --filter @objectstack/spec gen:api-surface-declarations +# Gated by `check:api-surface-declarations`; a hand edit is a red gate, not a change. + +// ── META_URL_TO_SINGULAR (const) ── +declare const META_URL_TO_SINGULAR: Readonly>; + +// ── PLURAL_TO_SINGULAR (const) ── +declare const PLURAL_TO_SINGULAR: Record; + +// ── SINGULAR_TO_PLURAL (const) ── +declare const SINGULAR_TO_PLURAL: Record; + +// ── canonicalMetaUrlType (function) ── +declare function canonicalMetaUrlType(type: string): string; + +// ── metaUrlSpellingRefusal (function) ── +declare function metaUrlSpellingRefusal(urlType: string): { + declared: string; + hint: string; +} | null; + +// ── pluralToSingular (function) ── +declare function pluralToSingular(key: string): string; + +// ── singularToPlural (function) ── +declare function singularToPlural(key: string): string; + +// ── unrecognisedMetaTypeRefusal (function) ── +declare function unrecognisedMetaTypeRefusal(urlType: string): { + type: string; +} | null; diff --git a/packages/spec/api-surface-declarations/qa.txt b/packages/spec/api-surface-declarations/qa.txt new file mode 100644 index 00000000000..3f5efb04f86 --- /dev/null +++ b/packages/spec/api-surface-declarations/qa.txt @@ -0,0 +1,398 @@ +# @objectstack/spec — the .d.ts DECLARATION TEXT of every export of `./qa`. +# +# The SHAPE half of the ADR-0059 public-API pin, and the readable counterpart of +# api-surface/qa.json's breadth half. That file pins each export by +# `name (kind)`, which a signature change, a renamed interface field and a dropped +# union member all leave untouched. This file pins the declaration text, so each of +# those moves a line here. Text and NOT a hash, deliberately: a diff a reviewer can +# read is what makes contract review a guard rather than a rubber stamp. +# +# Verbatim from the PACKED `.d.ts` reached through this package's `exports` map — the +# declarations a consumer installs, never `src/`. A declaration's leading TSDoc is +# excluded: documentation drift is `check:docs`'s axis, not this one. +# +# entry: ./qa +# exported names: 16 +# declarations: 16 +# +# GENERATED — ⛔ never hand-edited. Regenerate after a real build: +# pnpm --filter @objectstack/spec build && pnpm --filter @objectstack/spec gen:api-surface-declarations +# Gated by `check:api-surface-declarations`; a hand edit is a red gate, not a change. + +// ── TestAction (type) ── +type TestAction = z.input; + +// ── TestActionSchema (const) ── +declare const TestActionSchema: z.ZodObject<{ + type: z.ZodEnum<{ + create_record: "create_record"; + update_record: "update_record"; + delete_record: "delete_record"; + read_record: "read_record"; + query_records: "query_records"; + api_call: "api_call"; + run_script: "run_script"; + wait: "wait"; + }>; + target: z.ZodString; + payload: z.ZodOptional>; + user: z.ZodOptional; +}, z.core.$strip>; + +// ── TestActionType (type) ── +type TestActionType = z.input; + +// ── TestActionTypeSchema (const) ── +declare const TestActionTypeSchema: z.ZodEnum<{ + create_record: "create_record"; + update_record: "update_record"; + delete_record: "delete_record"; + read_record: "read_record"; + query_records: "query_records"; + api_call: "api_call"; + run_script: "run_script"; + wait: "wait"; +}>; + +// ── TestAssertion (type) ── +type TestAssertion = z.input; + +// ── TestAssertionSchema (const) ── +declare const TestAssertionSchema: z.ZodObject<{ + field: z.ZodString; + operator: z.ZodEnum<{ + error: "error"; + equals: "equals"; + not_equals: "not_equals"; + contains: "contains"; + not_contains: "not_contains"; + is_null: "is_null"; + not_null: "not_null"; + gt: "gt"; + gte: "gte"; + lt: "lt"; + lte: "lte"; + }>; + expectedValue: z.ZodUnknown; +}, z.core.$strip>; + +// ── TestAssertionType (type) ── +type TestAssertionType = z.input; + +// ── TestAssertionTypeSchema (const) ── +declare const TestAssertionTypeSchema: z.ZodEnum<{ + error: "error"; + equals: "equals"; + not_equals: "not_equals"; + contains: "contains"; + not_contains: "not_contains"; + is_null: "is_null"; + not_null: "not_null"; + gt: "gt"; + gte: "gte"; + lt: "lt"; + lte: "lte"; +}>; + +// ── TestContext (type) ── +type TestContext = z.input; + +// ── TestContextSchema (const) ── +declare const TestContextSchema: z.ZodRecord; + +// ── TestScenario (type) ── +type TestScenario = z.input; + +// ── TestScenarioSchema (const) ── +declare const TestScenarioSchema: z.ZodObject<{ + id: z.ZodString; + name: z.ZodString; + description: z.ZodOptional; + tags: z.ZodOptional>; + setup: z.ZodOptional; + action: z.ZodObject<{ + type: z.ZodEnum<{ + create_record: "create_record"; + update_record: "update_record"; + delete_record: "delete_record"; + read_record: "read_record"; + query_records: "query_records"; + api_call: "api_call"; + run_script: "run_script"; + wait: "wait"; + }>; + target: z.ZodString; + payload: z.ZodOptional>; + user: z.ZodOptional; + }, z.core.$strip>; + assertions: z.ZodOptional; + expectedValue: z.ZodUnknown; + }, z.core.$strip>>>; + capture: z.ZodOptional>; + }, z.core.$strip>>>; + steps: z.ZodArray; + action: z.ZodObject<{ + type: z.ZodEnum<{ + create_record: "create_record"; + update_record: "update_record"; + delete_record: "delete_record"; + read_record: "read_record"; + query_records: "query_records"; + api_call: "api_call"; + run_script: "run_script"; + wait: "wait"; + }>; + target: z.ZodString; + payload: z.ZodOptional>; + user: z.ZodOptional; + }, z.core.$strip>; + assertions: z.ZodOptional; + expectedValue: z.ZodUnknown; + }, z.core.$strip>>>; + capture: z.ZodOptional>; + }, z.core.$strip>>; + teardown: z.ZodOptional; + action: z.ZodObject<{ + type: z.ZodEnum<{ + create_record: "create_record"; + update_record: "update_record"; + delete_record: "delete_record"; + read_record: "read_record"; + query_records: "query_records"; + api_call: "api_call"; + run_script: "run_script"; + wait: "wait"; + }>; + target: z.ZodString; + payload: z.ZodOptional>; + user: z.ZodOptional; + }, z.core.$strip>; + assertions: z.ZodOptional; + expectedValue: z.ZodUnknown; + }, z.core.$strip>>>; + capture: z.ZodOptional>; + }, z.core.$strip>>>; + requires: z.ZodOptional>; + plugins: z.ZodOptional>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── TestStep (type) ── +type TestStep = z.input; + +// ── TestStepSchema (const) ── +declare const TestStepSchema: z.ZodObject<{ + name: z.ZodString; + description: z.ZodOptional; + action: z.ZodObject<{ + type: z.ZodEnum<{ + create_record: "create_record"; + update_record: "update_record"; + delete_record: "delete_record"; + read_record: "read_record"; + query_records: "query_records"; + api_call: "api_call"; + run_script: "run_script"; + wait: "wait"; + }>; + target: z.ZodString; + payload: z.ZodOptional>; + user: z.ZodOptional; + }, z.core.$strip>; + assertions: z.ZodOptional; + expectedValue: z.ZodUnknown; + }, z.core.$strip>>>; + capture: z.ZodOptional>; +}, z.core.$strip>; + +// ── TestSuite (type) ── +type TestSuite = z.input; + +// ── TestSuiteSchema (const) ── +declare const TestSuiteSchema: z.ZodObject<{ + name: z.ZodString; + scenarios: z.ZodArray; + tags: z.ZodOptional>; + setup: z.ZodOptional; + action: z.ZodObject<{ + type: z.ZodEnum<{ + create_record: "create_record"; + update_record: "update_record"; + delete_record: "delete_record"; + read_record: "read_record"; + query_records: "query_records"; + api_call: "api_call"; + run_script: "run_script"; + wait: "wait"; + }>; + target: z.ZodString; + payload: z.ZodOptional>; + user: z.ZodOptional; + }, z.core.$strip>; + assertions: z.ZodOptional; + expectedValue: z.ZodUnknown; + }, z.core.$strip>>>; + capture: z.ZodOptional>; + }, z.core.$strip>>>; + steps: z.ZodArray; + action: z.ZodObject<{ + type: z.ZodEnum<{ + create_record: "create_record"; + update_record: "update_record"; + delete_record: "delete_record"; + read_record: "read_record"; + query_records: "query_records"; + api_call: "api_call"; + run_script: "run_script"; + wait: "wait"; + }>; + target: z.ZodString; + payload: z.ZodOptional>; + user: z.ZodOptional; + }, z.core.$strip>; + assertions: z.ZodOptional; + expectedValue: z.ZodUnknown; + }, z.core.$strip>>>; + capture: z.ZodOptional>; + }, z.core.$strip>>; + teardown: z.ZodOptional; + action: z.ZodObject<{ + type: z.ZodEnum<{ + create_record: "create_record"; + update_record: "update_record"; + delete_record: "delete_record"; + read_record: "read_record"; + query_records: "query_records"; + api_call: "api_call"; + run_script: "run_script"; + wait: "wait"; + }>; + target: z.ZodString; + payload: z.ZodOptional>; + user: z.ZodOptional; + }, z.core.$strip>; + assertions: z.ZodOptional; + expectedValue: z.ZodUnknown; + }, z.core.$strip>>>; + capture: z.ZodOptional>; + }, z.core.$strip>>>; + requires: z.ZodOptional>; + plugins: z.ZodOptional>; + }, z.core.$strip>>; + }, z.core.$strip>>; +}, z.core.$strip>; diff --git a/packages/spec/api-surface-declarations/root.txt b/packages/spec/api-surface-declarations/root.txt new file mode 100644 index 00000000000..7ebf656f6da --- /dev/null +++ b/packages/spec/api-surface-declarations/root.txt @@ -0,0 +1,45264 @@ +# @objectstack/spec — the .d.ts DECLARATION TEXT of every export of `.`. +# +# The SHAPE half of the ADR-0059 public-API pin, and the readable counterpart of +# api-surface/root.json's breadth half. That file pins each export by +# `name (kind)`, which a signature change, a renamed interface field and a dropped +# union member all leave untouched. This file pins the declaration text, so each of +# those moves a line here. Text and NOT a hash, deliberately: a diff a reviewer can +# read is what makes contract review a guard rather than a rubber stamp. +# +# Verbatim from the PACKED `.d.ts` reached through this package's `exports` map — the +# declarations a consumer installs, never `src/`. A declaration's leading TSDoc is +# excluded: documentation drift is `check:docs`'s axis, not this one. +# +# entry: . +# exported names: 212 +# declarations: 213 +# +# GENERATED — ⛔ never hand-edited. Regenerate after a real build: +# pnpm --filter @objectstack/spec build && pnpm --filter @objectstack/spec gen:api-surface-declarations +# Gated by `check:api-surface-declarations`; a hand edit is a red gate, not a change. + +// ── ADMIN_FULL_ACCESS (const) ── +declare const ADMIN_FULL_ACCESS = "admin_full_access"; + +// ── ADMIN_FULL_ACCESS_CAPABILITIES (const) ── +declare const ADMIN_FULL_ACCESS_CAPABILITIES: Pick; + +// ── ALL_CONVERSIONS (const) ── +declare const ALL_CONVERSIONS: readonly MetadataConversion[]; + +// ── ASSEMBLED_VIEW_ITEMS_KEY (const) ── +declare const ASSEMBLED_VIEW_ITEMS_KEY: "viewItems"; + +// ── AUDIENCE_ANCHOR_POSITIONS (const) ── +declare const AUDIENCE_ANCHOR_POSITIONS: readonly ["everyone", "guest"]; + +// ── Agent (type) ── +type Agent = z.input; + +// ── ApplyConversionsOptions (interface) ── +interface ApplyConversionsOptions { + /** + * Sink for each structured notice. Defaults to a no-op: converting the shape + * is the point (zero consumer action); *surfacing* the notice is the caller's + * choice. `objectstack validate` passes a sink that prints them. + */ + onNotice?: (notice: ConversionNotice) => void; + /** + * Also apply conversions marked `retiredFromLoadPath` (default `false`). + * + * **Retirement is an AUTHORING-SURFACE event**, and the default posture is + * that surface: `normalizeStackInput` — the single funnel for `defineStack`, + * `validate`, `lint`, `compile`, `info`, `doctor`, i18n extraction and + * scaffold validation — never sets this, so a live author meets the + * tombstone and is taught the canonical spelling instead of having the old + * shape silently rewritten. That funnel is the whole jurisdiction the flag + * has; it is not a claim about every load path. + * + * **Data-at-rest load paths set it deliberately** — three call sites today: + * `applyConversionsToStoredItem` (`./stored.js`), where it is *pinned* + * rather than offered (`StoredConversionOptions` omits the key, so no caller + * can turn it off); flow rehydration in the automation engine; and the + * artifact-ingestion door (`applyArtifactForwardConversions` in + * `@objectstack/metadata-core`, reached from two callers), which opens the + * window by comparing the artifact's declared `engines.protocol` floor with + * the running spec version. A stored row, a stored flow and a built artifact + * have no author to teach, so each replays the FULL chain, retired entries + * included — ADR-0087's `## Addendum (2026-07-31)` for the first two, the + * #12772 ruling for the third. The fixture CI sets it as well, so graduated + * transforms stay covered forever (ADR-0087 D3). + * + * `objectstack migrate meta` is NOT one of these callers: `applyMetaMigrations` + * (`../migrations/chain.js`) looks each step's conversion up in + * `ALL_CONVERSIONS` by id and calls its `apply` directly, so it never reaches + * this option at all. + */ + includeRetired?: boolean; + /** + * Sink for each structured **conflict** — a rename refused because its old + * token is a live name in this environment (see {@link ConversionContext}). + * Populated by the runtime load seam; absent on the build/validate seam. + */ + onConflict?: (notice: ConversionConflictNotice) => void; + /** + * Node types that are live in this environment. Supplied by the runtime load + * seam so open-namespace renames can detect a collision with a live owner + * rather than silently clobber it. + */ + reservedNodeTypes?: ReadonlySet; + /** + * Conversion ids this seam refuses to replay, whatever `includeRetired` + * says. Empty/absent by default: every seam replays the whole window it + * opened. + * + * **Why a seam needs this at all.** `includeRetired` opens the window for a + * WHOLE CLASS of caller (data at rest), and the entries inside that window + * are not one kind. Most are lossless deletes or renames of a shape the + * current schema now REFUSES — replaying those is the rescue the window + * exists for, because without it the row or artifact is simply unbootable. + * A few are DEFAULT FLIPS: the old shape still parses, still means + * something, and the rewrite changes what it means. For those the replay is + * not a rescue, it is a reinterpretation — and whether it is sound depends + * on the CALLER, not on the entry: only a seam that can say "this input + * predates the flip" as a FACT rather than a guess may apply one. + * + * ⇒ The entry cannot answer that (nothing in the item distinguishes a + * machine-written row at rest from an author who wrote the same key + * yesterday), and `retiredFromLoadPath` does not answer it either — its + * jurisdiction is the authoring funnel and nothing else (see that flag's + * own docblock on `MetadataConversion`). This option is where a seam says + * which entries its own evidence cannot carry. + * + * ⛔ NOT a second conversion table and never a filter of convenience: the + * registry stays the single authority on WHAT converts. A caller passing + * this owes a written reason per id, at the call site. + */ + excludeConversionIds?: readonly string[]; +} + +// ── ArtifactPackage (type) ── +type ArtifactPackage = z.input; + +// ── ArtifactPackageEntry (type) ── +type ArtifactPackageEntry = z.input; + +// ── ArtifactPackageEntryParsed (type) ── +type ArtifactPackageEntryParsed = z.infer; + +// ── ArtifactPackageEntrySchema (const) ── +declare const ArtifactPackageEntrySchema: z.ZodObject<{ + manifest: z.ZodObject<{ + id: z.ZodString; + namespace: z.ZodOptional; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + app: "app"; + ui: "ui"; + driver: "driver"; + server: "server"; + theme: "theme"; + agent: "agent"; + objectql: "objectql"; + plugin: "plugin"; + module: "module"; + gateway: "gateway"; + adapter: "adapter"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>; +}, z.core.$strict>; + +// ── ArtifactPackageParsed (type) ── +type ArtifactPackageParsed = z.infer; + +// ── ArtifactPackageSchema (const) ── +declare const ArtifactPackageSchema: z.ZodObject<{ + manifest: z.ZodType, Record, z.core.$ZodTypeInternals, Record>>; +}, z.core.$strict>; + +// ── AssembledPackageBody (type) ── +type AssembledPackageBody = z.input; + +// ── AssembledPackageBodyParsed (type) ── +type AssembledPackageBodyParsed = z.infer; + +// ── AssembledPackageBodySchema (const) ── +declare const AssembledPackageBodySchema: z.ZodType, Record>; + +// ── AssembledViewArtifact (type) ── +type AssembledViewArtifact = z.input; + +// ── AssembledViewArtifactParsed (type) ── +type AssembledViewArtifactParsed = z.infer; + +// ── AssembledViewArtifactSchema (const) ── +declare const AssembledViewArtifactSchema: z.ZodUnion>, z.ZodType>, ...z.ZodType>[]]>; + +// ── AssembledViewPartition (interface) ── +interface AssembledViewPartition { + /** Container documents — the assembled manifest's `views:` collection. */ + views: Record[]; + /** Non-container artifacts no exported container re-derives — `viewItems:`. */ + viewItems: Record[]; + /** + * Names of expanded items DROPPED because an exported container re-derives + * them byte-for-byte (the re-aggregation): the import side's expansion of + * that container reproduces each, so carrying them too would register every + * view twice and fork the container's authority over its own views. + */ + folded: string[]; +} + +// ── AuthoringKeySurface (type) ── +type AuthoringKeySurface = string; + +// ── BUILTIN_IDENTITY_METADATA (const) ── +declare const BUILTIN_IDENTITY_METADATA: Record; + +// ── BUILTIN_IDENTITY_NAMES (const) ── +declare const BUILTIN_IDENTITY_NAMES: readonly ["platform_admin", "org_owner", "org_admin", "org_member"]; + +// ── BUILTIN_IDENTITY_ORG_ADMIN (const) ── +declare const BUILTIN_IDENTITY_ORG_ADMIN = "org_admin"; + +// ── BUILTIN_IDENTITY_ORG_MEMBER (const) ── +declare const BUILTIN_IDENTITY_ORG_MEMBER = "org_member"; + +// ── BUILTIN_IDENTITY_ORG_OWNER (const) ── +declare const BUILTIN_IDENTITY_ORG_OWNER = "org_owner"; + +// ── BUILTIN_IDENTITY_PLATFORM_ADMIN (const) ── +declare const BUILTIN_IDENTITY_PLATFORM_ADMIN = "platform_admin"; + +// ── BUILTIN_MEMBERSHIP_ROLES (const) ── +declare const BUILTIN_MEMBERSHIP_ROLES: readonly ["owner", "admin", "delegated_admin", "member"]; + +// ── BUILTIN_MEMBERSHIP_ROLE_OPTIONS (const) ── +declare const BUILTIN_MEMBERSHIP_ROLE_OPTIONS: readonly Readonly<{ + label: string; + value: string; +}>[]; + +// ── BaseValidationRuleShape (interface) ── +interface BaseValidationRuleShape { + type: string; + name: string; + message: string; + label?: string; + description?: string; + active?: boolean; + events?: ('insert' | 'update')[]; + priority?: number; + tags?: string[]; + severity?: 'error' | 'warning' | 'info'; + [key: string]: unknown; +} + +// ── Book (type) ── +type Book = { + name: string; + label?: string; + description?: string; + slug?: string; + icon?: string; + order?: number; + audience?: BookAudience; + groups: BookGroup[]; +}; + +// ── BuiltinIdentityName (type) ── +type BuiltinIdentityName = (typeof BUILTIN_IDENTITY_NAMES)[number]; + +// ── BuiltinMembershipRole (type) ── +type BuiltinMembershipRole = (typeof BUILTIN_MEMBERSHIP_ROLES)[number]; + +// ── COMPOSE_KEY_DISPOSITIONS (const) ── +declare const COMPOSE_KEY_DISPOSITIONS: Readonly<{ + readonly manifest: "manifest"; + readonly objects: "objects"; + readonly functions: "functions"; + readonly packages: "concat"; + readonly datasources: "concat"; + readonly datasourceMapping: "concat"; + readonly translations: "concat"; + readonly objectExtensions: "concat"; + readonly apps: "concat"; + readonly views: "concat"; + readonly viewItems: "concat"; + readonly pages: "concat"; + readonly dashboards: "concat"; + readonly reports: "concat"; + readonly datasets: "concat"; + readonly actions: "concat"; + readonly flows: "concat"; + readonly jobs: "concat"; + readonly emailTemplates: "concat"; + readonly docs: "concat"; + readonly books: "concat"; + readonly positions: "concat"; + readonly permissions: "concat"; + readonly capabilities: "concat"; + readonly sharingRules: "concat"; + readonly apis: "concat"; + readonly webhooks: "concat"; + readonly agents: "concat"; + readonly tools: "concat"; + readonly skills: "concat"; + readonly hooks: "concat"; + readonly mappings: "concat"; + readonly analyticsCubes: "concat"; + readonly connectors: "concat"; + readonly data: "concat"; + readonly plugins: "concat"; + readonly requires: "concat"; + readonly tiers: "concat"; + readonly devPlugins: "concat"; + readonly api: "single"; + readonly server: "single"; + readonly runtimeModule: "single"; + readonly onEnable: "single"; + readonly i18n: "single"; +}>; + +// ── CONVERSIONS_BY_MAJOR (const) ── +declare const CONVERSIONS_BY_MAJOR: Readonly>; + +// ── CONVERSION_CONFLICT_CODE (const) ── +declare const CONVERSION_CONFLICT_CODE: "OS_METADATA_CONVERSION_CONFLICT"; + +// ── CONVERSION_NOTICE_CODE (const) ── +declare const CONVERSION_NOTICE_CODE: "OS_METADATA_CONVERTED"; + +// ── CapabilityClassification (interface) ── +interface CapabilityClassification { + readonly token: string; + readonly status: CapabilityProviderStatus; + /** Present for every known token (absent only when `status` is `unknown`). */ + readonly provider?: PlatformCapabilityProvider; +} + +// ── CapabilityEdition (type) ── +type CapabilityEdition = 'open' | 'enterprise' | 'cloud'; + +// ── CapabilityProviderStatus (type) ── +type CapabilityProviderStatus = 'ok' | 'installable' | 'unavailable' | 'unknown'; + +// ── ComposeDisposition (type) ── +type ComposeDisposition = 'concat' | 'single' | 'manifest' | 'objects' | 'functions'; + +// ── ComposeStacksOptions (type) ── +type ComposeStacksOptions = z.input; + +// ── ComposeStacksOptionsParsed (type) ── +type ComposeStacksOptionsParsed = z.infer; + +// ── ComposeStacksOptionsSchema (const) ── +declare const ComposeStacksOptionsSchema: z.ZodObject<{ + objectConflict: z.ZodDefault>; + manifest: z.ZodDefault, z.ZodNumber]>>; + namespace: z.ZodOptional; +}, z.core.$strip>; + +// ── ConflictStrategy (type) ── +type ConflictStrategy = z.input; + +// ── ConflictStrategySchema (const) ── +declare const ConflictStrategySchema: z.ZodEnum<{ + override: "override"; + error: "error"; + merge: "merge"; +}>; + +// ── ConversionApplication (interface) ── +interface ConversionApplication { + from: string; + to: string; + path: string; +} + +// ── ConversionConflictDetail (interface) ── +interface ConversionConflictDetail { + /** The reserved/retired token that is currently a live name owned by something else. */ + token: string; + /** Where the conflicting site is, e.g. `flows[0].nodes[2].type`. */ + path: string; + /** Why the rewrite was refused (actionable — tells the owner what to do). */ + reason: string; +} + +// ── ConversionConflictNotice (interface) ── +interface ConversionConflictNotice { + code: typeof CONVERSION_CONFLICT_CODE; + conversionId: string; + surface: string; + token: string; + path: string; + message: string; +} + +// ── ConversionContext (interface) ── +interface ConversionContext { + /** + * Node types that are *live* in this environment (registered executors + + * action descriptors + structural types). A node-type rename whose old token + * is in this set is a conflict, not a conversion. + */ + reservedNodeTypes?: ReadonlySet; + /** Sink for a refused rewrite (see {@link ConversionConflictDetail}). */ + reportConflict?: (detail: ConversionConflictDetail) => void; +} + +// ── ConversionFixture (interface) ── +interface ConversionFixture { + /** A minimal stack authored in the old (N−1) shape. */ + before: Record; + /** The same stack after the conversion runs. */ + after: Record; + /** How many notices `before` is expected to emit (usually the count of old-shape sites). */ + expectedNotices: number; +} + +// ── ConversionNotice (interface) ── +interface ConversionNotice { + code: typeof CONVERSION_NOTICE_CODE; + /** The {@link MetadataConversion.id} that fired. */ + conversionId: string; + /** Dotted surface the conversion governs, e.g. `flow.node.type`. */ + surface: string; + /** The protocol major that introduced the canonical shape (accepts N−1 at load). */ + toMajor: number; + /** The protocol major in which this conversion retires from the load path (`toMajor + 1`). */ + retiresIn: number; + /** The off-spec token/shape actually seen in the source. */ + from: string; + /** The canonical token/shape it was converted to. */ + to: string; + /** Where in the stack it applied, e.g. `flows[0].nodes[2].type`. */ + path: string; + /** Derived, human-facing one-liner (prose is derived, never the source of truth). */ + message: string; +} + +// ── CronExpressionInputSchema (const) ── +declare const CronExpressionInputSchema: z.ZodUnion>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"cron">; +}, z.core.$strip>]>; + +// ── DatasourceMappingRule (type) ── +type DatasourceMappingRule = z.input; + +// ── DatasourceMappingRuleSchema (const) ── +declare const DatasourceMappingRuleSchema: z.ZodObject<{ + namespace: z.ZodOptional; + package: z.ZodOptional; + objectPattern: z.ZodOptional; + default: z.ZodOptional; + datasource: z.ZodString; + priority: z.ZodOptional; +}, z.core.$strip>; + +// ── DefineStackOptions (interface) ── +interface DefineStackOptions { + /** + * When `true` (default), enables strict validation: + * - All Zod schemas are validated (field names, types, etc.) + * - Cross-reference validation runs (views/actions/workflows reference valid objects) + * - Ensures data integrity and catches errors early + * + * When `false`, validation is skipped for maximum flexibility + * (e.g., when views reference objects provided by other plugins). + * Use this ONLY when you need to bypass validation for advanced use cases. + * + * @default true + */ + strict?: boolean; + /** + * Object names provided by the OTHER packages of the same release artifact + * (ADR-0130 D1 — "the release artifact is the co-ownership boundary"). + * + * `defineStack` sees exactly ONE stack, so "defined in objects" and "defined + * in the artifact" are the same question for a single-package app and two + * different questions for a package that co-owns a namespace with its + * siblings. This option is how the second question is asked: the + * ARTIFACT-SCOPED reference classes — `permissions[].objects` and + * `data[].object` — resolve against this stack's own objects PLUS these + * names. + * + * ⚠️ It widens exactly those two classes and nothing else. `hooks[].object` + * and an app's own `navigation` `objectName` stay refused against the + * stack's own objects even when the name appears here, because ADR-0130 §1.5 + * measured both of those refusals and recorded them as the SHAPE of the seam: + * *"navigation crosses only through contributions, and the split must follow + * hook ownership."* Widening them would delete a decision, not honour one. + * + * ## Why the two classes cross + * + * ADR-0130's 2026-09-02 addendum (#14487) rules that **permission sets stay + * whole in the `type: app` package** — a set is authored per ROLE, so no + * module owns one, and ADR-0086 D3 gives a set exactly one owning package. + * Once the app package also owns objects of its own, its sets necessarily + * grant on objects owned by its modules. Seed rows are the same shape: data + * placed into a co-owned object, not a claim on its definition. + * + * ## Why an OPTION and not a metadata key + * + * The addendum is explicit that **no `module` or grouping key is added to a + * permission set**, so the opt-in cannot live on the authored item the way + * an app nav item's `requiresObject` does. It is a property of the + * COMPOSITION this stack is built for, not of the stack's own metadata, and + * it therefore leaves `ObjectStackDefinitionSchema` — and every artifact + * already built from it — untouched. + * + * ## The claim is verified, not trusted — in a composition of two or more packages + * + * A name listed here that no package in the artifact actually defines is + * refused by {@link composeStacks} **in a composition of two or more + * packages**, with the same `STACK_CROSS_REFERENCE_INVALID` envelope and the + * same per-finding message. The qualifier is load-bearing: `composeStacks` + * returns a single input untouched, so a one-package composition — like a + * stack that is never composed — leaves the claim unverified. See + * {@link collectArtifactCrossReferenceErrors}'s known boundary. + * + * Omitting the option keeps `defineStack`'s own behaviour byte-for-byte. It + * does not exempt the stack from the artifact pass, which re-runs the two + * rules over every input: a no-op for anything that passed the strict parse, + * and the first application of those rules to anything that bypassed it. + * + * @example + * ```ts + * const service = defineStack(serviceConfig); // owns crm_case + * const app = defineStack(appConfig, { // owns crm_account … + * artifactObjects: service.objects?.map((o) => o.name), // … grants on crm_case + * }); + * export default composeStacks([service, app], { manifest: 'preserve' }); + * ``` + */ + artifactObjects?: readonly string[]; +} + +// ── EVALUATED_EXPRESSION_SOURCE_REQUIRED (const) ── +declare const EVALUATED_EXPRESSION_SOURCE_REQUIRED: string; + +// ── EVERYONE_POSITION (const) ── +declare const EVERYONE_POSITION = "everyone"; + +// ── EvalUser (type) ── +type EvalUser = z.input; + +// ── EvalUserSchema (const) ── +declare const EvalUserSchema: z.ZodObject<{ + id: z.ZodString; + name: z.ZodOptional; + email: z.ZodOptional; + positions: z.ZodDefault>; + isPlatformAdmin: z.ZodOptional; + organizationId: z.ZodOptional>; +}, z.core.$strip>; + +// ── EvaluatedExpression (type) ── +type EvaluatedExpression = z.input; + +// ── EvaluatedExpressionInput (type) ── +type EvaluatedExpressionInput = z.input; + +// ── EvaluatedExpressionInputSchema (const) ── +declare const EvaluatedExpressionInputSchema: z.ZodUnion>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + source: z.ZodString; +}, z.core.$strip>]>; + +// ── EvaluatedExpressionParsed (type) ── +type EvaluatedExpressionParsed = z.infer; + +// ── EvaluatedExpressionSchema (const) ── +declare const EvaluatedExpressionSchema: z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + source: z.ZodString; +}, z.core.$strip>; + +// ── ExpandViewResult (interface) ── +interface ExpandViewResult { + items: ExpandedViewItem[]; + collisions: ViewKeyCollision[]; +} + +// ── ExpandedViewItem (interface) ── +interface ExpandedViewItem { + name: string; + object: string; + viewKind: 'list' | 'form'; + label?: unknown; + config: any; + isDefault?: boolean; + order: number; + scope: 'package'; + /** Non-blocking expansion diagnostics (MetadataValidationResult wire shape). + * Present only when the item's name had to be rewritten to avoid a + * collision — loaders surface `warnings` in their boot/HMR logs and + * Studio can badge the view. */ + _diagnostics?: { + valid: boolean; + warnings: Array<{ + path: string; + message: string; + }>; + }; +} + +// ── Expression (type) ── +type Expression = z.input; + +// ── ExpressionDialect (const) ── +declare const ExpressionDialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; +}>; + +// ── ExpressionDialect (type) ── +type ExpressionDialect = z.input; + +// ── ExpressionInput (type) ── +type ExpressionInput = z.input; + +// ── ExpressionInputSchema (const) ── +declare const ExpressionInputSchema: z.ZodUnion>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>]>; + +// ── ExpressionMeta (type) ── +type ExpressionMeta = z.input; + +// ── ExpressionMetaSchema (const) ── +declare const ExpressionMetaSchema: z.ZodObject<{ + rationale: z.ZodOptional; + generatedBy: z.ZodOptional; +}, z.core.$strip>; + +// ── ExpressionSchema (const) ── +declare const ExpressionSchema: z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── F (const) ── +declare const F: typeof cel; + +// ── FIELD_KEY_GUIDANCE (const) ── +declare const FIELD_KEY_GUIDANCE: Readonly>; + +// ── FilterCondition (type) ── +type FilterCondition = { + [key: string]: any | z.infer | FilterCondition; +} & { + /** Logical AND - combines all conditions that must be true */ + $and?: FilterCondition[]; + /** Logical OR - at least one condition must be true */ + $or?: FilterCondition[]; + /** + * Logical NOT - negates the condition, **NULL-safely** (#5146). + * + * A row whose compared column is NULL does NOT satisfy the negated condition + * and IS returned. In SQL terms the operand is negated as + * `NOT (…) OR col IS NULL` rather than as a bare `NOT (…)`. + * + * See {@link FilterConditionSchema} for why this is part of the contract + * rather than each backend's own choice. + */ + $not?: FilterCondition; +}; + +// ── FormField (type) ── +type FormField = Omit, 'visibleOn'> & { + /** + * Sub-fields for `composite` / `repeater` / `record` types — declares + * the inner shape of an embedded sub-object (composite), each row of + * an embedded sub-object array (repeater), or each entry of a name-keyed + * map (record). Recursive: any of the three can nest. + * + * Use `lookup` / `master_detail` instead when the children are independent + * records with their own IDs in a separate object/table. + */ + fields?: FormField[]; +}; + +// ── FormFieldInput (type) ── +type FormFieldInput = z.input & { + /** Sub-fields for composite/repeater/record types. Recursive. */ + fields?: FormFieldInput[]; +}; + +// ── GUEST_POSITION (const) ── +declare const GUEST_POSITION = "guest"; + +// ── LintableAuthoringCollection (interface) ── +interface LintableAuthoringCollection { + /** Stack collection key, e.g. `'pages'`. */ + collection: string; + /** Singular metadata type it holds, e.g. `'page'`. */ + type: string; +} + +// ── MAP_SUPPORTED_FIELDS (const) ── +declare const MAP_SUPPORTED_FIELDS: readonly ["objects", "apps", "pages", "dashboards", "reports", "datasets", "actions", "flows", "jobs", "positions", "permissions", "sharingRules", "apis", "webhooks", "agents", "hooks", "mappings", "analyticsCubes", "connectors", "datasources", "emailTemplates"]; + +// ── MEMBERSHIP_ROLE_ADMIN (const) ── +declare const MEMBERSHIP_ROLE_ADMIN = "admin"; + +// ── MEMBERSHIP_ROLE_DELEGATED_ADMIN (const) ── +declare const MEMBERSHIP_ROLE_DELEGATED_ADMIN = "delegated_admin"; + +// ── MEMBERSHIP_ROLE_MEMBER (const) ── +declare const MEMBERSHIP_ROLE_MEMBER = "member"; + +// ── MEMBERSHIP_ROLE_OWNER (const) ── +declare const MEMBERSHIP_ROLE_OWNER = "owner"; + +// ── METADATA_ALIASES (const) ── +declare const METADATA_ALIASES: Record; + +// ── MIGRATIONS_BY_MAJOR (const) ── +declare const MIGRATIONS_BY_MAJOR: Readonly>; + +// ── MIGRATION_MAJORS (const) ── +declare const MIGRATION_MAJORS: readonly number[]; + +// ── MIGRATION_SUPPORT_FLOOR (const) ── +declare const MIGRATION_SUPPORT_FLOOR = 10; + +// ── MapSupportedField (type) ── +type MapSupportedField = (typeof MAP_SUPPORTED_FIELDS)[number]; + +// ── MetadataCollectionInput (type) ── +type MetadataCollectionInput = T[] | Record & { + name?: string; +}>; + +// ── MetadataConversion (interface) ── +interface MetadataConversion { + /** Stable, kebab-case id; also the migration-chain step id when this graduates (P2). */ + id: string; + /** The protocol major that introduced the canonical shape. */ + toMajor: number; + /** + * When `true`, this conversion is **retired from the AUTHORING surface**: the + * authoring funnel (`normalizeStackInput` — `defineStack`, `validate`, + * `lint`, `compile`, `info`, `doctor`) no longer replays it, so an author + * writing the old shape meets the schema's rejection or its tombstone and is + * taught the canonical spelling. This is the ADR-0087 D2 window's second half + * ("retired in N+1 — but never deleted"), and it is also how a pre-launch + * one-step rename (which never had a load window at all) is preserved in the + * chain. + * + * ⚠️ The flag's name says "load path", but its reach is the authoring surface + * only — **data-at-rest load paths replay retired entries on purpose**: + * stored-row rehydration (`applyConversionsToStoredItem`, which pins + * `includeRetired: true` rather than offering it), flow rehydration in the + * automation engine, and the artifact-ingestion door + * (`applyArtifactForwardConversions`, inside its declared-floor window). A + * row, a stored flow or a built artifact has no author for a tombstone to + * teach, and refusing a shape that once worked would only break data — see + * ADR-0087's `## Addendum (2026-07-31)` and the #12772 ruling. `objectstack + * migrate meta` replays it too, against *source* metadata, but by id through + * `applyMetaMigrations` rather than through this flag. + * + * ⇒ Setting this does NOT confine a rewrite to history. For a conversion + * whose old and new shapes are both legal and mean different things (a + * default flip, not a rename), the data-at-rest seams will still apply it. + */ + retiredFromLoadPath?: boolean; + /** Dotted surface, e.g. `flow.node.type`, `page.kind`, `flow.node.config`. */ + surface: string; + /** One-line human summary of the rename/move (the load-bearing prose, kept to one field). */ + summary: string; + /** + * Apply the conversion to a normalized stack, immutably. Returns the (possibly + * new) stack and calls `emit` once per rewritten site. A conversion over an + * open namespace consults `context` (when supplied) to refuse — and report via + * `context.reportConflict` — a rewrite whose old token is a live name; a + * conversion over a closed surface ignores `context`. + */ + apply(stack: Record, emit: (detail: ConversionApplication) => void, context?: ConversionContext): Record; + /** Old→new fixture pair driving the CI check. */ + fixture: ConversionFixture; +} + +// ── MigrationApplication (interface) ── +interface MigrationApplication { + /** The major whose step produced this rewrite. */ + toMajor: number; + /** The graduated conversion id that performed it. */ + conversionId: string; + surface: string; + from: string; + to: string; + /** Where in the stack it applied, e.g. `flows[0].nodes[2].type`. */ + path: string; +} + +// ── MigrationChainResult (interface) ── +interface MigrationChainResult { + fromMajor: number; + toMajor: number; + /** The migrated stack (mechanical transforms applied; semantic TODOs left for the agent). */ + stack: Record; + /** Every mechanical rewrite across all hops, in application order. */ + applied: MigrationApplication[]; + /** Every semantic TODO across all hops — the judgment delegated to the consumer. */ + todos: MigrationTodo[]; + /** Per-hop checkpoints, in order (for `--step` bisection). */ + hops: MigrationHopResult[]; +} + +// ── MigrationFloorError (class) ── +declare class MigrationFloorError extends Error { + readonly fromMajor: number; + readonly floor: number; + constructor(fromMajor: number, floor: number); +} + +// ── MigrationHopResult (interface) ── +interface MigrationHopResult { + toMajor: number; + rationale: string; + stack: Record; + applied: MigrationApplication[]; + todos: MigrationTodo[]; +} + +// ── MigrationStep (interface) ── +interface MigrationStep { + /** The protocol major this step migrates *into* (N; migrates N−1 sources to N). */ + toMajor: number; + /** One-paragraph human rationale — the one place prose is load-bearing (D3). */ + rationale: string; + /** + * Ids of the D2 conversions that graduated into this step. Their declarative + * transforms are replayed against the consumer's source (not just at load). + */ + conversionIds: readonly string[]; + /** Non-lossless changes authored for this major, as structured TODOs. */ + semantic: readonly SemanticMigration[]; +} + +// ── MigrationTodo (interface) ── +interface MigrationTodo extends SemanticMigration { + toMajor: number; +} + +// ── NavigationItem (type) ── +type NavigationItem = (ObjectNavItem & { + children?: NavigationItem[]; +}) | DashboardNavItem | PageNavItem | UrlNavItem | ReportNavItem | ActionNavItem | ComponentNavItem | SeparatorNavItem | GroupNavItem; + +// ── NavigationItemInput (type) ── +type NavigationItemInput = (z.input & { + children?: NavigationItemInput[]; +}) | z.input | z.input | z.input | z.input | z.input | z.input | z.input | (z.input & { + children: NavigationItemInput[]; +}); + +// ── NormalizeStackInputOptions (interface) ── +interface NormalizeStackInputOptions { + /** + * Sink for the structured deprecation notices emitted by the ADR-0087 D2 + * conversion pass (one per rewritten old-shape site). Defaults to a no-op: + * the conversion still runs (zero consumer action is the point), but the + * notice is only *surfaced* when a caller asks — `objectstack validate` + * passes a sink that prints them. + */ + onConversionNotice?: (notice: ConversionNotice) => void; + /** + * Whether to run the D2 conversion pass. Defaults to `true` (the load-time + * behavior). Set `false` to get map→array normalization *only* — used by + * `objectstack migrate meta`, which must replay the conversions itself as + * chain steps against the raw authored source so each rewrite is attributed + * to the chain rather than silently pre-applied here. + */ + convert?: boolean; +} + +// ── OBJECT_KEY_GUIDANCE (const) ── +declare const OBJECT_KEY_GUIDANCE: Readonly>; + +// ── ORGANIZATION_ADMIN (const) ── +declare const ORGANIZATION_ADMIN = "organization_admin"; + +// ── ORGANIZATION_ADMIN_GRANTS (const) ── +declare const ORGANIZATION_ADMIN_GRANTS: readonly string[]; + +// ── ORGANIZATION_ADMIN_NO_BYPASS (const) ── +declare const ORGANIZATION_ADMIN_NO_BYPASS = "organization_admin_no_bypass"; + +// ── ObjectStack (type) ── +type ObjectStack = ObjectStackDefinition; + +// ── ObjectStackDefinition (type) ── +type ObjectStackDefinition = z.input; + +// ── ObjectStackDefinitionInput (type) ── +type ObjectStackDefinitionInput = Omit, MapSupportedField> & { + [K in MapSupportedField]?: MetadataCollectionInput[K]>>>; +}; + +// ── ObjectStackDefinitionParsed (type) ── +type ObjectStackDefinitionParsed = z.infer; + +// ── ObjectStackDefinitionSchema (const) ── +declare const ObjectStackDefinitionSchema: z.ZodObject<{ + datasources: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + driver: z.ZodString; + config: z.ZodRecord; + pool: z.ZodOptional; + max: z.ZodDefault; + idleTimeoutMillis: z.ZodDefault; + connectionTimeoutMillis: z.ZodDefault; + }, z.core.$strict>>; + ssl: z.ZodOptional; + rejectUnauthorized: z.ZodDefault; + ca: z.ZodOptional; + cert: z.ZodOptional; + key: z.ZodOptional; + }, z.core.$strict>>; + description: z.ZodOptional; + active: z.ZodDefault; + autoConnect: z.ZodDefault; + schemaMode: z.ZodDefault>; + external: z.ZodOptional>; + allowWrites: z.ZodDefault; + validation: z.ZodDefault>; + checkOnBoot: z.ZodDefault; + checkIntervalMs: z.ZodOptional; + }, z.core.$strict>>; + credentialsRef: z.ZodOptional; + queryTimeoutMs: z.ZodDefault; + }, z.core.$strict>>; + origin: z.ZodDefault>; + }, z.core.$strict>>>; + datasourceMapping: z.ZodOptional; + package: z.ZodOptional; + objectPattern: z.ZodOptional; + default: z.ZodOptional; + datasource: z.ZodString; + priority: z.ZodOptional; + }, z.core.$strip>>>; + translations: z.ZodOptional; + pluralLabel: z.ZodOptional; + description: z.ZodOptional; + fields: z.ZodOptional; + help: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + _views: z.ZodOptional; + description: z.ZodOptional; + emptyState: z.ZodOptional; + message: z.ZodOptional; + }, z.core.$strict>>; + bulkActions: z.ZodOptional; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + params: z.ZodOptional; + help: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + _actions: z.ZodOptional; + description: z.ZodOptional; + confirmText: z.ZodOptional; + successMessage: z.ZodOptional; + params: z.ZodOptional; + helpText: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + resultDialog: z.ZodOptional; + description: z.ZodOptional; + acknowledge: z.ZodOptional; + fields: z.ZodOptional>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + _sections: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + _tabs: z.ZodOptional; + }, z.core.$strict>>>; + _validations: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + apps: z.ZodOptional; + navigation: z.ZodOptional>>; + }, z.core.$strict>>>; + messages: z.ZodOptional>; + globalActions: z.ZodOptional; + description: z.ZodOptional; + confirmText: z.ZodOptional; + successMessage: z.ZodOptional; + params: z.ZodOptional; + helpText: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + resultDialog: z.ZodOptional; + description: z.ZodOptional; + acknowledge: z.ZodOptional; + fields: z.ZodOptional>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + dashboards: z.ZodOptional; + description: z.ZodOptional; + actions: z.ZodOptional; + }, z.core.$strict>>>; + widgets: z.ZodOptional; + description: z.ZodOptional; + subCaption: z.ZodOptional; + }, z.core.$strict>>>; + globalFilters: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + datasets: z.ZodOptional; + description: z.ZodOptional; + dimensions: z.ZodOptional; + }, z.core.$strict>>>; + measures: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + pages: z.ZodOptional; + description: z.ZodOptional; + title: z.ZodOptional; + subtitle: z.ZodOptional; + components: z.ZodOptional; + description: z.ZodOptional; + label: z.ZodOptional; + placeholder: z.ZodOptional; + emptyText: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + flows: z.ZodOptional; + screens: z.ZodOptional; + fields: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + settings: z.ZodOptional; + description: z.ZodOptional; + groups: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + keys: z.ZodOptional; + help: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + actions: z.ZodOptional; + confirmText: z.ZodOptional; + successMessage: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + metadataForms: z.ZodOptional; + description: z.ZodOptional; + sections: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + fields: z.ZodOptional; + helpText: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + settingsCommon: z.ZodOptional; + global: z.ZodOptional; + tenant: z.ZodOptional; + user: z.ZodOptional; + default: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + }, z.core.$strict>>>>; + i18n: z.ZodOptional; + fallbackLocale: z.ZodOptional; + }, z.core.$strict>>; + objects: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + pluralLabel: z.ZodOptional; + description: z.ZodOptional; + icon: z.ZodOptional; + isSystem: z.ZodDefault>; + managedBy: z.ZodOptional>; + ownership: z.ZodOptional>; + userActions: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + import: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + edit: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + delete: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + exportCsv: z.ZodOptional; + }, z.core.$strict>>; + systemFields: z.ZodOptional, z.ZodObject<{ + tenant: z.ZodOptional; + audit: z.ZodOptional; + }, z.core.$strict>]>>; + datasource: z.ZodDefault>; + external: z.ZodOptional; + remoteSchema: z.ZodOptional; + writable: z.ZodDefault; + columnMap: z.ZodOptional>; + introspectedAt: z.ZodOptional; + ignoreColumns: z.ZodOptional>; + }, z.core.$strict>>; + fields: z.ZodRecord>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + url: "url"; + email: "email"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + description: z.ZodOptional; + format: z.ZodOptional; + required: z.ZodDefault; + storage: z.ZodOptional; + }, z.core.$strict>>; + searchable: z.ZodDefault; + multiple: z.ZodDefault; + unique: z.ZodOptional, z.ZodLiteral<"organization">]>>; + defaultValue: z.ZodOptional; + maxLength: z.ZodOptional; + minLength: z.ZodOptional; + valueDomain: z.ZodOptional>; + rows: z.ZodOptional; + precision: z.ZodOptional; + scale: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + useGrouping: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + options: z.ZodOptional; + color: z.ZodOptional; + default: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + reference: z.ZodOptional; + referenceVia: z.ZodOptional; + deleteBehavior: z.ZodOptional>; + inlineEdit: z.ZodOptional]>>; + inlineTitle: z.ZodOptional; + inlineColumns: z.ZodOptional; + type: z.ZodOptional>; + width: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + prefix: z.ZodOptional; + step: z.ZodOptional; + reference: z.ZodOptional; + displayField: z.ZodOptional; + idField: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + defaultHidden: z.ZodOptional; + computed: z.ZodOptional; + expr: z.ZodOptional; + scale: z.ZodOptional; + autofill: z.ZodOptional; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + inlineAmountField: z.ZodOptional; + relatedList: z.ZodOptional]>>; + relatedListTitle: z.ZodOptional; + relatedListColumns: z.ZodOptional>; + relatedListFilter: z.ZodOptional>>; + displayField: z.ZodOptional; + descriptionField: z.ZodOptional; + lookupColumns: z.ZodOptional; + width: z.ZodOptional; + type: z.ZodOptional; + }, z.core.$strict>]>>>; + lookupPageSize: z.ZodOptional; + lookupFilters: z.ZodOptional; + value: z.ZodAny; + }, z.core.$strict>>>; + dependsOn: z.ZodOptional; + }, z.core.$strict>]>>>; + allowCreate: z.ZodOptional; + expression: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + returnType: z.ZodOptional>; + summaryOperations: z.ZodOptional; + relationshipField: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strict>>; + language: z.ZodOptional; + step: z.ZodOptional; + currencyConfig: z.ZodOptional; + currencyMode: z.ZodDefault>; + defaultCurrency: z.ZodDefault; + }, z.core.$strict>>; + dimensions: z.ZodOptional; + trackHistory: z.ZodOptional; + group: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + conditionalRequired: z.ZodOptional; + widget: z.ZodOptional; + hidden: z.ZodDefault; + internal: z.ZodOptional; + readonly: z.ZodDefault; + requiredPermissions: z.ZodOptional>; + maskingRule: z.ZodOptional, z.ZodObject<{ + keepHead: z.ZodNumber; + keepTail: z.ZodNumber; + }, z.core.$strict>]>>; + ackPlaintextMasking: z.ZodOptional; + system: z.ZodOptional; + sortable: z.ZodDefault>; + inlineHelpText: z.ZodOptional; + placeholder: z.ZodOptional; + autonumberFormat: z.ZodOptional; + externalId: z.ZodDefault; + }, z.core.$strict>>; + indexes: z.ZodOptional; + fields: z.ZodArray; + unique: z.ZodDefault, z.ZodLiteral<"organization">]>>>; + type: z.ZodOptional; + partial: z.ZodOptional; + }, z.core.$strict>>>; + fieldGroups: z.ZodOptional; + description: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + collapse: z.ZodDefault>>; + defaultExpanded: z.ZodOptional; + collapsible: z.ZodOptional; + collapsed: z.ZodOptional; + }, z.core.$strict>>>; + tenancy: z.ZodOptional; + organizationField: z.ZodOptional; + }, z.core.$strict>>; + access: z.ZodOptional>; + }, z.core.$strict>>; + requiredPermissions: z.ZodOptional, z.ZodObject<{ + read: z.ZodOptional>; + create: z.ZodOptional>; + update: z.ZodOptional>; + delete: z.ZodOptional>; + }, z.core.$strict>]>>; + lifecycle: z.ZodOptional; + retention: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + ttl: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + storage: z.ZodOptional; + shards: z.ZodNumber; + unit: z.ZodEnum<{ + month: "month"; + day: "day"; + week: "week"; + }>; + }, z.core.$strict>>; + archive: z.ZodOptional; + }, z.core.$strict>>; + reclaim: z.ZodOptional; + }, z.core.$strict>>; + fileAccessDelegate: z.ZodOptional; + validations: z.ZodOptional>>>; + activityMilestones: z.ZodOptional; + }, z.core.$strict>>>; + nameField: z.ZodOptional; + displayNameField: z.ZodOptional; + titleFormat: z.ZodOptional>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"template">; + }, z.core.$strip>]>>; + highlightFields: z.ZodOptional>; + stageField: z.ZodOptional]>>; + editMode: z.ZodOptional>; + listViews: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + type: z.ZodDefault>; + sort: z.ZodOptional; + }, z.core.$strict>>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + name: z.ZodOptional; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + inlineEdit: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + delete: "delete"; + update: "update"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + url: "url"; + email: "email"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + rowActions: z.ZodOptional>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + none: "none"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + pageName: z.ZodOptional; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + responsive: z.ZodOptional; + performance: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "xlsx" | "csv")[]; + }, ("json" | "xlsx" | "csv")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + resizable: z.ZodOptional; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + compactToolbar: z.ZodOptional; + selection: z.ZodOptional>; + }, z.core.$strict>>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + enable: z.ZodOptional; + searchable: z.ZodDefault; + apiEnabled: z.ZodDefault; + apiMethods: z.ZodOptional>>; + files: z.ZodDefault; + feeds: z.ZodDefault; + activities: z.ZodDefault; + clone: z.ZodDefault; + }, z.core.$strict>>; + sharingModel: z.ZodOptional>; + externalSharingModel: z.ZodOptional>; + publicSharing: z.ZodOptional; + allowedAudiences: z.ZodOptional>>; + allowedPermissions: z.ZodOptional>>; + maxExpiryDays: z.ZodOptional; + redactFields: z.ZodOptional>; + eligibility: z.ZodOptional; + }, z.core.$strict>>; + actions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + objectName: z.ZodOptional; + icon: z.ZodOptional; + locations: z.ZodOptional>>; + component: z.ZodOptional>; + type: z.ZodDefault>; + target: z.ZodOptional; + openIn: z.ZodOptional>; + body: z.ZodOptional; + source: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + language: z.ZodLiteral<"js">; + source: z.ZodString; + capabilities: z.ZodDefault>>; + timeoutMs: z.ZodOptional; + memoryMb: z.ZodOptional; + }, z.core.$strict>], "language">>; + operation: z.ZodOptional>; + patch: z.ZodOptional>; + execution: z.ZodOptional>; + execute: z.ZodOptional; + params: z.ZodOptional; + field: z.ZodOptional; + objectOverride: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + required: z.ZodDefault>; + options: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + value: z.ZodString; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + placeholder: z.ZodOptional; + helpText: z.ZodOptional; + defaultValue: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + reference: z.ZodOptional; + defaultFromRow: z.ZodOptional; + carryOver: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiresFeature: z.ZodOptional>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">, { + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }>>>>; + variant: z.ZodOptional>; + order: z.ZodOptional; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + successMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + errorMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + refreshAfter: z.ZodDefault; + undoable: z.ZodOptional; + resultDialog: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + acknowledge: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiresFeature: z.ZodOptional>; + disabled: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiredPermissions: z.ZodOptional>; + shortcut: z.ZodOptional; + bulkEnabled: z.ZodOptional; + ai: z.ZodOptional; + description: z.ZodOptional; + category: z.ZodOptional>; + paramHints: z.ZodOptional; + enum: z.ZodOptional>>; + examples: z.ZodOptional>; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional>; + requiresConfirmation: z.ZodOptional; + }, z.core.$strict>>; + recordIdParam: z.ZodOptional; + recordIdField: z.ZodOptional; + bodyShape: z.ZodOptional, z.ZodObject<{ + wrap: z.ZodString; + }, z.core.$strict>]>>; + method: z.ZodOptional>; + bodyExtra: z.ZodOptional>; + mode: z.ZodOptional>; + opensInNewTab: z.ZodOptional; + newTabUrl: z.ZodOptional; + onSuccess: z.ZodOptional>; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | undefined; + objectName?: string | undefined; + icon?: string | undefined; + locations?: ("record_header" | "list_toolbar" | "list_item" | "record_more" | "record_related" | "record_section")[] | undefined; + component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("crypto.uuid" | "api.read" | "api.write" | "api.transaction" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "flow" | "data" | "action" | "analytics" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "delete" | "edit" | "create" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">, { + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | undefined; + objectName?: string | undefined; + icon?: string | undefined; + locations?: ("record_header" | "list_toolbar" | "list_item" | "record_more" | "record_related" | "record_section")[] | undefined; + component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("crypto.uuid" | "api.read" | "api.write" | "api.transaction" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "flow" | "data" | "action" | "analytics" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "delete" | "edit" | "create" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict> & { + parse(data: unknown, params?: Parameters<(data: unknown, params?: z.core.ParseContext) => { + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _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; + managedBy?: "platform" | "config" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "none" | "org" | "user" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "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: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "page" | "modal" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | 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; + 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; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "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; + name?: string | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + inlineEdit?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "delete" | "update"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "outline" | "danger" | "ghost" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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: "split" | "none" | "page" | "modal" | "drawer" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + pageName?: undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + responsive?: undefined; + performance?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + exportOptions?: { + formats: ("json" | "xlsx" | "csv")[]; + } | { + formats?: ("json" | "xlsx" | "csv")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "gallery" | "chart" | "kanban" | "gantt" | "timeline" | "calendar")[] | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | undefined; + borderColorField?: string | undefined; + lockField?: string | undefined; + objectField?: string | undefined; + summaryExtent?: "children" | "self" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + rowHeight?: "short" | "medium" | "compact" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + grouping?: { + fields: { + field: string; + order: "asc" | "desc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "modal" | "inline"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "delete" | "bulk" | "update" | "list" | "create")[] | undefined; + } | undefined; + sharingModel?: "public_read" | "public_read_write" | "private" | "controlled_by_parent" | undefined; + externalSharingModel?: "public_read" | "public_read_write" | "private" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("view" | "edit" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | undefined; + objectName?: string | undefined; + icon?: string | undefined; + locations?: ("record_header" | "list_toolbar" | "list_item" | "record_more" | "record_related" | "record_section")[] | undefined; + component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("crypto.uuid" | "api.read" | "api.write" | "api.transaction" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "flow" | "data" | "action" | "analytics" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "delete" | "edit" | "create" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "none" | "no-overlay" | "no-delete" | "full"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }>[1]): { + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _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; + managedBy?: "platform" | "config" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "none" | "org" | "user" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "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: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "page" | "modal" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | 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; + 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; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "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; + name?: string | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + inlineEdit?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "delete" | "update"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "outline" | "danger" | "ghost" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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: "split" | "none" | "page" | "modal" | "drawer" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + pageName?: undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + responsive?: undefined; + performance?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + exportOptions?: { + formats: ("json" | "xlsx" | "csv")[]; + } | { + formats?: ("json" | "xlsx" | "csv")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "gallery" | "chart" | "kanban" | "gantt" | "timeline" | "calendar")[] | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | undefined; + borderColorField?: string | undefined; + lockField?: string | undefined; + objectField?: string | undefined; + summaryExtent?: "children" | "self" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + rowHeight?: "short" | "medium" | "compact" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + grouping?: { + fields: { + field: string; + order: "asc" | "desc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "modal" | "inline"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "delete" | "bulk" | "update" | "list" | "create")[] | undefined; + } | undefined; + sharingModel?: "public_read" | "public_read_write" | "private" | "controlled_by_parent" | undefined; + externalSharingModel?: "public_read" | "public_read_write" | "private" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("view" | "edit" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | undefined; + objectName?: string | undefined; + icon?: string | undefined; + locations?: ("record_header" | "list_toolbar" | "list_item" | "record_more" | "record_related" | "record_section")[] | undefined; + component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("crypto.uuid" | "api.read" | "api.write" | "api.transaction" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "flow" | "data" | "action" | "analytics" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "delete" | "edit" | "create" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "none" | "no-overlay" | "no-delete" | "full"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }; + safeParse(data: unknown, params?: Parameters<(data: unknown, params?: z.core.ParseContext) => z.ZodSafeParseResult<{ + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _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; + managedBy?: "platform" | "config" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "none" | "org" | "user" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "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: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "page" | "modal" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | 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; + 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; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "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; + name?: string | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + inlineEdit?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "delete" | "update"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "outline" | "danger" | "ghost" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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: "split" | "none" | "page" | "modal" | "drawer" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + pageName?: undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + responsive?: undefined; + performance?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + exportOptions?: { + formats: ("json" | "xlsx" | "csv")[]; + } | { + formats?: ("json" | "xlsx" | "csv")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "gallery" | "chart" | "kanban" | "gantt" | "timeline" | "calendar")[] | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | undefined; + borderColorField?: string | undefined; + lockField?: string | undefined; + objectField?: string | undefined; + summaryExtent?: "children" | "self" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + rowHeight?: "short" | "medium" | "compact" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + grouping?: { + fields: { + field: string; + order: "asc" | "desc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "modal" | "inline"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "delete" | "bulk" | "update" | "list" | "create")[] | undefined; + } | undefined; + sharingModel?: "public_read" | "public_read_write" | "private" | "controlled_by_parent" | undefined; + externalSharingModel?: "public_read" | "public_read_write" | "private" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("view" | "edit" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | undefined; + objectName?: string | undefined; + icon?: string | undefined; + locations?: ("record_header" | "list_toolbar" | "list_item" | "record_more" | "record_related" | "record_section")[] | undefined; + component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("crypto.uuid" | "api.read" | "api.write" | "api.transaction" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "flow" | "data" | "action" | "analytics" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "delete" | "edit" | "create" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "none" | "no-overlay" | "no-delete" | "full"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }>>[1]): z.ZodSafeParseResult<{ + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _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; + managedBy?: "platform" | "config" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "none" | "org" | "user" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "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: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "page" | "modal" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | 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; + 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; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "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; + name?: string | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + inlineEdit?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "delete" | "update"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "outline" | "danger" | "ghost" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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: "split" | "none" | "page" | "modal" | "drawer" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + pageName?: undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + responsive?: undefined; + performance?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + exportOptions?: { + formats: ("json" | "xlsx" | "csv")[]; + } | { + formats?: ("json" | "xlsx" | "csv")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "gallery" | "chart" | "kanban" | "gantt" | "timeline" | "calendar")[] | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | undefined; + borderColorField?: string | undefined; + lockField?: string | undefined; + objectField?: string | undefined; + summaryExtent?: "children" | "self" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + rowHeight?: "short" | "medium" | "compact" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + grouping?: { + fields: { + field: string; + order: "asc" | "desc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "modal" | "inline"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "delete" | "bulk" | "update" | "list" | "create")[] | undefined; + } | undefined; + sharingModel?: "public_read" | "public_read_write" | "private" | "controlled_by_parent" | undefined; + externalSharingModel?: "public_read" | "public_read_write" | "private" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("view" | "edit" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | undefined; + objectName?: string | undefined; + icon?: string | undefined; + locations?: ("record_header" | "list_toolbar" | "list_item" | "record_more" | "record_related" | "record_section")[] | undefined; + component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("crypto.uuid" | "api.read" | "api.write" | "api.transaction" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "flow" | "data" | "action" | "analytics" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "delete" | "edit" | "create" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "none" | "no-overlay" | "no-delete" | "full"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }>; + create: >; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + pluralLabel: z.ZodOptional; + description: z.ZodOptional; + icon: z.ZodOptional; + isSystem: z.ZodDefault>; + managedBy: z.ZodOptional>; + ownership: z.ZodOptional>; + userActions: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + import: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + edit: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + delete: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + exportCsv: z.ZodOptional; + }, z.core.$strict>>; + systemFields: z.ZodOptional, z.ZodObject<{ + tenant: z.ZodOptional; + audit: z.ZodOptional; + }, z.core.$strict>]>>; + datasource: z.ZodDefault>; + external: z.ZodOptional; + remoteSchema: z.ZodOptional; + writable: z.ZodDefault; + columnMap: z.ZodOptional>; + introspectedAt: z.ZodOptional; + ignoreColumns: z.ZodOptional>; + }, z.core.$strict>>; + fields: z.ZodRecord>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + url: "url"; + email: "email"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + description: z.ZodOptional; + format: z.ZodOptional; + required: z.ZodDefault; + storage: z.ZodOptional; + }, z.core.$strict>>; + searchable: z.ZodDefault; + multiple: z.ZodDefault; + unique: z.ZodOptional, z.ZodLiteral<"organization">]>>; + defaultValue: z.ZodOptional; + maxLength: z.ZodOptional; + minLength: z.ZodOptional; + valueDomain: z.ZodOptional>; + rows: z.ZodOptional; + precision: z.ZodOptional; + scale: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + useGrouping: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + options: z.ZodOptional; + color: z.ZodOptional; + default: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + reference: z.ZodOptional; + referenceVia: z.ZodOptional; + deleteBehavior: z.ZodOptional>; + inlineEdit: z.ZodOptional]>>; + inlineTitle: z.ZodOptional; + inlineColumns: z.ZodOptional; + type: z.ZodOptional>; + width: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + prefix: z.ZodOptional; + step: z.ZodOptional; + reference: z.ZodOptional; + displayField: z.ZodOptional; + idField: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + defaultHidden: z.ZodOptional; + computed: z.ZodOptional; + expr: z.ZodOptional; + scale: z.ZodOptional; + autofill: z.ZodOptional; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + inlineAmountField: z.ZodOptional; + relatedList: z.ZodOptional]>>; + relatedListTitle: z.ZodOptional; + relatedListColumns: z.ZodOptional>; + relatedListFilter: z.ZodOptional>>; + displayField: z.ZodOptional; + descriptionField: z.ZodOptional; + lookupColumns: z.ZodOptional; + width: z.ZodOptional; + type: z.ZodOptional; + }, z.core.$strict>]>>>; + lookupPageSize: z.ZodOptional; + lookupFilters: z.ZodOptional; + value: z.ZodAny; + }, z.core.$strict>>>; + dependsOn: z.ZodOptional; + }, z.core.$strict>]>>>; + allowCreate: z.ZodOptional; + expression: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + returnType: z.ZodOptional>; + summaryOperations: z.ZodOptional; + relationshipField: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strict>>; + language: z.ZodOptional; + step: z.ZodOptional; + currencyConfig: z.ZodOptional; + currencyMode: z.ZodDefault>; + defaultCurrency: z.ZodDefault; + }, z.core.$strict>>; + dimensions: z.ZodOptional; + trackHistory: z.ZodOptional; + group: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + conditionalRequired: z.ZodOptional; + widget: z.ZodOptional; + hidden: z.ZodDefault; + internal: z.ZodOptional; + readonly: z.ZodDefault; + requiredPermissions: z.ZodOptional>; + maskingRule: z.ZodOptional, z.ZodObject<{ + keepHead: z.ZodNumber; + keepTail: z.ZodNumber; + }, z.core.$strict>]>>; + ackPlaintextMasking: z.ZodOptional; + system: z.ZodOptional; + sortable: z.ZodDefault>; + inlineHelpText: z.ZodOptional; + placeholder: z.ZodOptional; + autonumberFormat: z.ZodOptional; + externalId: z.ZodDefault; + }, z.core.$strict>>; + indexes: z.ZodOptional; + fields: z.ZodArray; + unique: z.ZodDefault, z.ZodLiteral<"organization">]>>>; + type: z.ZodOptional; + partial: z.ZodOptional; + }, z.core.$strict>>>; + fieldGroups: z.ZodOptional; + description: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + collapse: z.ZodDefault>>; + defaultExpanded: z.ZodOptional; + collapsible: z.ZodOptional; + collapsed: z.ZodOptional; + }, z.core.$strict>>>; + tenancy: z.ZodOptional; + organizationField: z.ZodOptional; + }, z.core.$strict>>; + access: z.ZodOptional>; + }, z.core.$strict>>; + requiredPermissions: z.ZodOptional, z.ZodObject<{ + read: z.ZodOptional>; + create: z.ZodOptional>; + update: z.ZodOptional>; + delete: z.ZodOptional>; + }, z.core.$strict>]>>; + lifecycle: z.ZodOptional; + retention: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + ttl: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + storage: z.ZodOptional; + shards: z.ZodNumber; + unit: z.ZodEnum<{ + month: "month"; + day: "day"; + week: "week"; + }>; + }, z.core.$strict>>; + archive: z.ZodOptional; + }, z.core.$strict>>; + reclaim: z.ZodOptional; + }, z.core.$strict>>; + fileAccessDelegate: z.ZodOptional; + validations: z.ZodOptional>>>; + activityMilestones: z.ZodOptional; + }, z.core.$strict>>>; + nameField: z.ZodOptional; + displayNameField: z.ZodOptional; + titleFormat: z.ZodOptional>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"template">; + }, z.core.$strip>]>>; + highlightFields: z.ZodOptional>; + stageField: z.ZodOptional]>>; + editMode: z.ZodOptional>; + listViews: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + type: z.ZodDefault>; + sort: z.ZodOptional; + }, z.core.$strict>>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + name: z.ZodOptional; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + inlineEdit: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + delete: "delete"; + update: "update"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + url: "url"; + email: "email"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + rowActions: z.ZodOptional>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + none: "none"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + pageName: z.ZodOptional; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + responsive: z.ZodOptional; + performance: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "xlsx" | "csv")[]; + }, ("json" | "xlsx" | "csv")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + resizable: z.ZodOptional; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + compactToolbar: z.ZodOptional; + selection: z.ZodOptional>; + }, z.core.$strict>>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + enable: z.ZodOptional; + searchable: z.ZodDefault; + apiEnabled: z.ZodDefault; + apiMethods: z.ZodOptional>>; + files: z.ZodDefault; + feeds: z.ZodDefault; + activities: z.ZodDefault; + clone: z.ZodDefault; + }, z.core.$strict>>; + sharingModel: z.ZodOptional>; + externalSharingModel: z.ZodOptional>; + publicSharing: z.ZodOptional; + allowedAudiences: z.ZodOptional>>; + allowedPermissions: z.ZodOptional>>; + maxExpiryDays: z.ZodOptional; + redactFields: z.ZodOptional>; + eligibility: z.ZodOptional; + }, z.core.$strict>>; + actions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + objectName: z.ZodOptional; + icon: z.ZodOptional; + locations: z.ZodOptional>>; + component: z.ZodOptional>; + type: z.ZodDefault>; + target: z.ZodOptional; + openIn: z.ZodOptional>; + body: z.ZodOptional; + source: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + language: z.ZodLiteral<"js">; + source: z.ZodString; + capabilities: z.ZodDefault>>; + timeoutMs: z.ZodOptional; + memoryMb: z.ZodOptional; + }, z.core.$strict>], "language">>; + operation: z.ZodOptional>; + patch: z.ZodOptional>; + execution: z.ZodOptional>; + execute: z.ZodOptional; + params: z.ZodOptional; + field: z.ZodOptional; + objectOverride: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + required: z.ZodDefault>; + options: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + value: z.ZodString; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + placeholder: z.ZodOptional; + helpText: z.ZodOptional; + defaultValue: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + reference: z.ZodOptional; + defaultFromRow: z.ZodOptional; + carryOver: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiresFeature: z.ZodOptional>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">, { + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }>>>>; + variant: z.ZodOptional>; + order: z.ZodOptional; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + successMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + errorMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + refreshAfter: z.ZodDefault; + undoable: z.ZodOptional; + resultDialog: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + acknowledge: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiresFeature: z.ZodOptional>; + disabled: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiredPermissions: z.ZodOptional>; + shortcut: z.ZodOptional; + bulkEnabled: z.ZodOptional; + ai: z.ZodOptional; + description: z.ZodOptional; + category: z.ZodOptional>; + paramHints: z.ZodOptional; + enum: z.ZodOptional>>; + examples: z.ZodOptional>; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional>; + requiresConfirmation: z.ZodOptional; + }, z.core.$strict>>; + recordIdParam: z.ZodOptional; + recordIdField: z.ZodOptional; + bodyShape: z.ZodOptional, z.ZodObject<{ + wrap: z.ZodString; + }, z.core.$strict>]>>; + method: z.ZodOptional>; + bodyExtra: z.ZodOptional>; + mode: z.ZodOptional>; + opensInNewTab: z.ZodOptional; + newTabUrl: z.ZodOptional; + onSuccess: z.ZodOptional>; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | undefined; + objectName?: string | undefined; + icon?: string | undefined; + locations?: ("record_header" | "list_toolbar" | "list_item" | "record_more" | "record_related" | "record_section")[] | undefined; + component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("crypto.uuid" | "api.read" | "api.write" | "api.transaction" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "flow" | "data" | "action" | "analytics" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "delete" | "edit" | "create" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">, { + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | undefined; + objectName?: string | undefined; + icon?: string | undefined; + locations?: ("record_header" | "list_toolbar" | "list_item" | "record_more" | "record_related" | "record_section")[] | undefined; + component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("crypto.uuid" | "api.read" | "api.write" | "api.transaction" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "flow" | "data" | "action" | "analytics" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "delete" | "edit" | "create" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>(config: T & Record, never> & (T extends { + actions: infer As extends readonly unknown[]; + } ? { + actions: { [I in keyof As]: As[I] extends infer T_1 ? T_1 extends As[I] ? T_1 extends { + params: infer Ps extends readonly unknown[]; + } ? T_1 & { + params: { [I_1 in keyof Ps]: Ps[I_1] & Record, never>; }; + } : T_1 : never : never; }; + } : unknown)) => Omit & Pick; + }>>; + objectExtensions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + url: "url"; + email: "email"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + description: z.ZodOptional; + format: z.ZodOptional; + required: z.ZodDefault; + storage: z.ZodOptional; + }, z.core.$strict>>; + searchable: z.ZodDefault; + multiple: z.ZodDefault; + unique: z.ZodOptional, z.ZodLiteral<"organization">]>>; + defaultValue: z.ZodOptional; + maxLength: z.ZodOptional; + minLength: z.ZodOptional; + valueDomain: z.ZodOptional>; + rows: z.ZodOptional; + precision: z.ZodOptional; + scale: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + useGrouping: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + options: z.ZodOptional; + color: z.ZodOptional; + default: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + reference: z.ZodOptional; + referenceVia: z.ZodOptional; + deleteBehavior: z.ZodOptional>; + inlineEdit: z.ZodOptional]>>; + inlineTitle: z.ZodOptional; + inlineColumns: z.ZodOptional; + type: z.ZodOptional>; + width: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + prefix: z.ZodOptional; + step: z.ZodOptional; + reference: z.ZodOptional; + displayField: z.ZodOptional; + idField: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + defaultHidden: z.ZodOptional; + computed: z.ZodOptional; + expr: z.ZodOptional; + scale: z.ZodOptional; + autofill: z.ZodOptional; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + inlineAmountField: z.ZodOptional; + relatedList: z.ZodOptional]>>; + relatedListTitle: z.ZodOptional; + relatedListColumns: z.ZodOptional>; + relatedListFilter: z.ZodOptional>>; + displayField: z.ZodOptional; + descriptionField: z.ZodOptional; + lookupColumns: z.ZodOptional; + width: z.ZodOptional; + type: z.ZodOptional; + }, z.core.$strict>]>>>; + lookupPageSize: z.ZodOptional; + lookupFilters: z.ZodOptional; + value: z.ZodAny; + }, z.core.$strict>>>; + dependsOn: z.ZodOptional; + }, z.core.$strict>]>>>; + allowCreate: z.ZodOptional; + expression: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + returnType: z.ZodOptional>; + summaryOperations: z.ZodOptional; + relationshipField: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strict>>; + language: z.ZodOptional; + step: z.ZodOptional; + currencyConfig: z.ZodOptional; + currencyMode: z.ZodDefault>; + defaultCurrency: z.ZodDefault; + }, z.core.$strict>>; + dimensions: z.ZodOptional; + trackHistory: z.ZodOptional; + group: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + conditionalRequired: z.ZodOptional; + widget: z.ZodOptional; + hidden: z.ZodDefault; + internal: z.ZodOptional; + readonly: z.ZodDefault; + requiredPermissions: z.ZodOptional>; + maskingRule: z.ZodOptional, z.ZodObject<{ + keepHead: z.ZodNumber; + keepTail: z.ZodNumber; + }, z.core.$strict>]>>; + ackPlaintextMasking: z.ZodOptional; + system: z.ZodOptional; + sortable: z.ZodDefault>; + inlineHelpText: z.ZodOptional; + placeholder: z.ZodOptional; + autonumberFormat: z.ZodOptional; + externalId: z.ZodDefault; + }, z.core.$strict>>>; + label: z.ZodOptional; + pluralLabel: z.ZodOptional; + description: z.ZodOptional; + validations: z.ZodOptional>>>; + indexes: z.ZodOptional; + fields: z.ZodArray; + unique: z.ZodDefault, z.ZodLiteral<"organization">]>>>; + type: z.ZodOptional; + partial: z.ZodOptional; + }, z.core.$strict>>>; + priority: z.ZodDefault; + }, z.core.$strict>>>; + apps: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + version: z.ZodOptional; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + branding: z.ZodOptional; + accentColor: z.ZodOptional; + logo: z.ZodOptional; + favicon: z.ZodOptional; + }, z.core.$strict>>; + active: z.ZodDefault>; + isDefault: z.ZodDefault>; + hidden: z.ZodOptional; + _unpublished: z.ZodOptional; + navigation: z.ZodOptional>>>; + areas: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + icon: z.ZodOptional; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + navigation: z.ZodArray>>; + }, z.core.$strict>>>; + contextSelectors: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + icon: z.ZodOptional; + optionsSource: z.ZodObject<{ + endpoint: z.ZodString; + valueKey: z.ZodDefault; + labelKey: z.ZodDefault; + filter: z.ZodOptional>; + value: z.ZodUnion]>; + }, z.core.$strict>>>; + }, z.core.$strict>; + allValue: z.ZodDefault; + persist: z.ZodDefault>; + }, z.core.$strict>>>; + homePageId: z.ZodOptional; + requiredPermissions: z.ZodOptional>; + objects: z.ZodOptional; + apis: z.ZodOptional; + sharing: z.ZodOptional; + embed: z.ZodOptional; + mobileNavigation: z.ZodOptional; + defaultAgent: z.ZodOptional; + aria: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + views: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + object: z.ZodOptional; + list: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + type: z.ZodDefault>; + sort: z.ZodOptional; + }, z.core.$strict>>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + name: z.ZodOptional; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + inlineEdit: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + delete: "delete"; + update: "update"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + url: "url"; + email: "email"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + rowActions: z.ZodOptional>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + none: "none"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + pageName: z.ZodOptional; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + responsive: z.ZodOptional; + performance: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "xlsx" | "csv")[]; + }, ("json" | "xlsx" | "csv")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + resizable: z.ZodOptional; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + compactToolbar: z.ZodOptional; + selection: z.ZodOptional>; + }, z.core.$strict>>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + }, z.core.$strict>>; + form: z.ZodOptional>; + layout: z.ZodOptional>; + columns: z.ZodOptional; + title: z.ZodOptional; + description: z.ZodOptional; + defaultTab: z.ZodOptional; + tabPosition: z.ZodOptional>; + allowSkip: z.ZodOptional; + showStepIndicator: z.ZodOptional; + splitDirection: z.ZodOptional>; + splitSize: z.ZodOptional; + splitResizable: z.ZodOptional; + drawerSide: z.ZodOptional>; + drawerWidth: z.ZodOptional; + modalSize: z.ZodOptional>; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + sections: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional; + collapsible: z.ZodDefault; + collapsed: z.ZodDefault; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibleOn: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + columns: z.ZodPipe, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>, z.ZodTransform<1 | 2 | 4 | 3, "1" | 1 | 2 | 4 | "2" | "3" | "4" | 3>>; + pane: z.ZodOptional>; + group: z.ZodOptional; + fields: z.ZodOptional>]>>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">, { + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }>>>>; + groups: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional; + collapsible: z.ZodDefault; + collapsed: z.ZodDefault; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibleOn: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + columns: z.ZodPipe, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>, z.ZodTransform<1 | 2 | 4 | 3, "1" | 1 | 2 | 4 | "2" | "3" | "4" | 3>>; + pane: z.ZodOptional>; + group: z.ZodOptional; + fields: z.ZodOptional>]>>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">, { + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }>>>>; + subforms: z.ZodOptional; + columns: z.ZodOptional>; + amountField: z.ZodOptional; + totalField: z.ZodOptional; + title: z.ZodOptional; + addLabel: z.ZodOptional; + minRows: z.ZodOptional; + maxRows: z.ZodOptional; + }, z.core.$strict>>>; + defaultSort: z.ZodOptional; + sharing: z.ZodOptional; + publicLink: z.ZodOptional; + password: z.ZodOptional; + allowedDomains: z.ZodOptional>; + expiresAt: z.ZodOptional; + allowAnonymous: z.ZodDefault>; + }, z.core.$strict>>; + submitBehavior: z.ZodOptional; + title: z.ZodOptional; + message: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"redirect">; + url: z.ZodString; + delayMs: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"continue">; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"next-record">; + }, z.core.$strict>], "kind">>; + buttons: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + cancel: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + reset: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + }, z.core.$strict>>; + defaults: z.ZodOptional>; + aria: z.ZodOptional; + }, z.core.$strict>>; + listViews: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + type: z.ZodDefault>; + sort: z.ZodOptional; + }, z.core.$strict>>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + name: z.ZodOptional; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + inlineEdit: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + delete: "delete"; + update: "update"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + url: "url"; + email: "email"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + rowActions: z.ZodOptional>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + none: "none"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + pageName: z.ZodOptional; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + responsive: z.ZodOptional; + performance: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "xlsx" | "csv")[]; + }, ("json" | "xlsx" | "csv")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + resizable: z.ZodOptional; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + compactToolbar: z.ZodOptional; + selection: z.ZodOptional>; + }, z.core.$strict>>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + formViews: z.ZodOptional>; + layout: z.ZodOptional>; + columns: z.ZodOptional; + title: z.ZodOptional; + description: z.ZodOptional; + defaultTab: z.ZodOptional; + tabPosition: z.ZodOptional>; + allowSkip: z.ZodOptional; + showStepIndicator: z.ZodOptional; + splitDirection: z.ZodOptional>; + splitSize: z.ZodOptional; + splitResizable: z.ZodOptional; + drawerSide: z.ZodOptional>; + drawerWidth: z.ZodOptional; + modalSize: z.ZodOptional>; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + sections: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional; + collapsible: z.ZodDefault; + collapsed: z.ZodDefault; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibleOn: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + columns: z.ZodPipe, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>, z.ZodTransform<1 | 2 | 4 | 3, "1" | 1 | 2 | 4 | "2" | "3" | "4" | 3>>; + pane: z.ZodOptional>; + group: z.ZodOptional; + fields: z.ZodOptional>]>>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">, { + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }>>>>; + groups: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional; + collapsible: z.ZodDefault; + collapsed: z.ZodDefault; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibleOn: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + columns: z.ZodPipe, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>, z.ZodTransform<1 | 2 | 4 | 3, "1" | 1 | 2 | 4 | "2" | "3" | "4" | 3>>; + pane: z.ZodOptional>; + group: z.ZodOptional; + fields: z.ZodOptional>]>>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">, { + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }>>>>; + subforms: z.ZodOptional; + columns: z.ZodOptional>; + amountField: z.ZodOptional; + totalField: z.ZodOptional; + title: z.ZodOptional; + addLabel: z.ZodOptional; + minRows: z.ZodOptional; + maxRows: z.ZodOptional; + }, z.core.$strict>>>; + defaultSort: z.ZodOptional; + sharing: z.ZodOptional; + publicLink: z.ZodOptional; + password: z.ZodOptional; + allowedDomains: z.ZodOptional>; + expiresAt: z.ZodOptional; + allowAnonymous: z.ZodDefault>; + }, z.core.$strict>>; + submitBehavior: z.ZodOptional; + title: z.ZodOptional; + message: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"redirect">; + url: z.ZodString; + delayMs: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"continue">; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"next-record">; + }, z.core.$strict>], "kind">>; + buttons: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + cancel: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + reset: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + }, z.core.$strict>>; + defaults: z.ZodOptional>; + aria: z.ZodOptional; + }, z.core.$strict>>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + viewItems: z.ZodOptional; + pages: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + type: z.ZodDefault>; + variables: z.ZodOptional>; + defaultValue: z.ZodOptional; + source: z.ZodOptional; + }, z.core.$strict>>>; + object: z.ZodOptional; + template: z.ZodDefault; + regions: z.ZodDefault>; + components: z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>>; + }, z.core.$strict>>>>; + isDefault: z.ZodDefault; + assignedProfiles: z.ZodOptional; + interfaceConfig: z.ZodOptional; + columns: z.ZodOptional, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + none: "none"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + filterBy: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + levels: z.ZodOptional; + sourceView: z.ZodOptional; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + showAllRecords: z.ZodOptional; + allowAddTab: z.ZodOptional; + }, z.core.$strict>>; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + buttons: z.ZodOptional>; + recordAction: z.ZodOptional>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + kind: z.ZodDefault>; + slots: z.ZodOptional, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>, z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>]>>; + actions: z.ZodOptional, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>, z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>]>>; + alerts: z.ZodOptional, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>, z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>]>>; + highlights: z.ZodOptional, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>, z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>]>>; + details: z.ZodOptional, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>, z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>]>>; + tabs: z.ZodOptional, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>, z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>]>>; + discussion: z.ZodOptional, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>, z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>]>>; + }, z.core.$strict>>; + source: z.ZodOptional; + requires: z.ZodOptional>; + }, z.core.$strict>>>; + dashboards: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + header: z.ZodOptional; + showDescription: z.ZodDefault; + actions: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + actionUrl: z.ZodString; + actionType: z.ZodOptional>; + icon: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>; + widgets: z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodDefault>; + chartConfig: z.ZodOptional; + title: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + subtitle: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + xAxis: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + stepSize: z.ZodOptional; + showGridLines: z.ZodDefault; + position: z.ZodOptional>; + logarithmic: z.ZodDefault; + }, z.core.$strict>>; + yAxis: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + stepSize: z.ZodOptional; + showGridLines: z.ZodDefault; + position: z.ZodOptional>; + logarithmic: z.ZodDefault; + }, z.core.$strict>>>; + series: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + color: z.ZodOptional; + stack: z.ZodOptional; + yAxis: z.ZodDefault>; + variant: z.ZodOptional>>; + dashArray: z.ZodOptional; + opacity: z.ZodOptional; + }, z.core.$strict>>>; + colors: z.ZodOptional, z.ZodRecord]>>; + height: z.ZodOptional; + showLegend: z.ZodDefault; + showDataLabels: z.ZodDefault; + annotations: z.ZodOptional>; + axis: z.ZodDefault>; + value: z.ZodUnion; + endValue: z.ZodOptional>; + color: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + style: z.ZodDefault>; + }, z.core.$strict>>>; + interaction: z.ZodOptional; + brush: z.ZodDefault; + }, z.core.$strict>>; + aria: z.ZodOptional; + }, z.core.$strict>>; + colorVariant: z.ZodOptional>; + requiresObject: z.ZodOptional; + requiresService: z.ZodOptional; + actionUrl: z.ZodOptional; + actionType: z.ZodOptional; + actionIcon: z.ZodOptional; + filter: z.ZodOptional>>; + compareTo: z.ZodOptional; + dimension: z.ZodOptional; + }, z.core.$strict>>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + layout: z.ZodOptional>; + options: z.ZodOptional>; + sortBy: z.ZodOptional; + sortOrder: z.ZodOptional>; + limit: z.ZodOptional; + stageOrder: z.ZodOptional>>; + }, z.core.$loose>>; + filterBindings: z.ZodOptional]>>>; + suppressWarnings: z.ZodOptional>; + responsive: z.ZodOptional; + aria: z.ZodOptional; + }, z.core.$strict>>; + columns: z.ZodOptional; + gap: z.ZodOptional; + refreshIntervalSeconds: z.ZodOptional; + refreshInterval: z.ZodOptional; + dateRange: z.ZodOptional; + defaultRange: z.ZodDefault>; + allowCustomRange: z.ZodDefault; + }, z.core.$strict>>; + globalFilters: z.ZodOptional; + field: z.ZodString; + object: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + }, z.core.$strict>>>; + optionsFrom: z.ZodOptional>>; + }, z.core.$strict>>; + defaultValue: z.ZodOptional>; + scope: z.ZodDefault>; + targetWidgets: z.ZodOptional>; + }, z.core.$strict>>>; + aria: z.ZodOptional; + performance: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + reports: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodDefault>; + dataset: z.ZodOptional; + rows: z.ZodOptional>; + columns: z.ZodOptional>; + values: z.ZodOptional>; + runtimeFilter: z.ZodOptional>>; + order: z.ZodOptional>; + }, z.core.$strict>>>; + drilldown: z.ZodDefault; + chart: z.ZodOptional; + title: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + subtitle: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + series: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + color: z.ZodOptional; + stack: z.ZodOptional; + yAxis: z.ZodDefault>; + variant: z.ZodOptional>>; + dashArray: z.ZodOptional; + opacity: z.ZodOptional; + }, z.core.$strict>>>; + colors: z.ZodOptional, z.ZodRecord]>>; + height: z.ZodOptional; + showLegend: z.ZodDefault; + showDataLabels: z.ZodDefault; + annotations: z.ZodOptional>; + axis: z.ZodDefault>; + value: z.ZodUnion; + endValue: z.ZodOptional>; + color: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + style: z.ZodDefault>; + }, z.core.$strict>>>; + interaction: z.ZodOptional; + brush: z.ZodDefault; + }, z.core.$strict>>; + aria: z.ZodOptional; + xAxis: z.ZodString; + yAxis: z.ZodString; + }, z.core.$strict>>; + blocks: z.ZodOptional>>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + datasets: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + object: z.ZodString; + include: z.ZodOptional>; + filter: z.ZodOptional>>; + dimensions: z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + field: z.ZodString; + type: z.ZodOptional>; + dateGranularity: z.ZodOptional>; + }, z.core.$strict>>; + measures: z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + aggregate: z.ZodOptional>; + field: z.ZodOptional; + filter: z.ZodOptional>>; + format: z.ZodOptional; + currency: z.ZodOptional; + derived: z.ZodOptional; + of: z.ZodArray; + }, z.core.$strict>>; + }, z.core.$strict>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + actions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + objectName: z.ZodOptional; + icon: z.ZodOptional; + locations: z.ZodOptional>>; + component: z.ZodOptional>; + type: z.ZodDefault>; + target: z.ZodOptional; + openIn: z.ZodOptional>; + body: z.ZodOptional; + source: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + language: z.ZodLiteral<"js">; + source: z.ZodString; + capabilities: z.ZodDefault>>; + timeoutMs: z.ZodOptional; + memoryMb: z.ZodOptional; + }, z.core.$strict>], "language">>; + operation: z.ZodOptional>; + patch: z.ZodOptional>; + execution: z.ZodOptional>; + execute: z.ZodOptional; + params: z.ZodOptional; + field: z.ZodOptional; + objectOverride: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + required: z.ZodDefault>; + options: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + value: z.ZodString; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + placeholder: z.ZodOptional; + helpText: z.ZodOptional; + defaultValue: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + reference: z.ZodOptional; + defaultFromRow: z.ZodOptional; + carryOver: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiresFeature: z.ZodOptional>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">, { + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }>>>>; + variant: z.ZodOptional>; + order: z.ZodOptional; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + successMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + errorMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + refreshAfter: z.ZodDefault; + undoable: z.ZodOptional; + resultDialog: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + acknowledge: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiresFeature: z.ZodOptional>; + disabled: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiredPermissions: z.ZodOptional>; + shortcut: z.ZodOptional; + bulkEnabled: z.ZodOptional; + ai: z.ZodOptional; + description: z.ZodOptional; + category: z.ZodOptional>; + paramHints: z.ZodOptional; + enum: z.ZodOptional>>; + examples: z.ZodOptional>; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional>; + requiresConfirmation: z.ZodOptional; + }, z.core.$strict>>; + recordIdParam: z.ZodOptional; + recordIdField: z.ZodOptional; + bodyShape: z.ZodOptional, z.ZodObject<{ + wrap: z.ZodString; + }, z.core.$strict>]>>; + method: z.ZodOptional>; + bodyExtra: z.ZodOptional>; + mode: z.ZodOptional>; + opensInNewTab: z.ZodOptional; + newTabUrl: z.ZodOptional; + onSuccess: z.ZodOptional>; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | undefined; + objectName?: string | undefined; + icon?: string | undefined; + locations?: ("record_header" | "list_toolbar" | "list_item" | "record_more" | "record_related" | "record_section")[] | undefined; + component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("crypto.uuid" | "api.read" | "api.write" | "api.transaction" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "flow" | "data" | "action" | "analytics" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "delete" | "edit" | "create" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">, { + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | undefined; + objectName?: string | undefined; + icon?: string | undefined; + locations?: ("record_header" | "list_toolbar" | "list_item" | "record_more" | "record_related" | "record_section")[] | undefined; + component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("crypto.uuid" | "api.read" | "api.write" | "api.transaction" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "flow" | "data" | "action" | "analytics" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "delete" | "edit" | "create" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>>; + flows: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + successMessage: z.ZodOptional; + errorMessage: z.ZodOptional; + version: z.ZodDefault; + status: z.ZodDefault>; + template: z.ZodOptional; + type: z.ZodEnum<{ + screen: "screen"; + autolaunched: "autolaunched"; + api: "api"; + record_change: "record_change"; + schedule: "schedule"; + }>; + variables: z.ZodOptional; + isOutput: z.ZodDefault; + defaultValue: z.ZodOptional; + }, z.core.$strict>>>; + nodes: z.ZodArray>; + connectorConfig: z.ZodOptional>; + }, z.core.$strict>>; + position: z.ZodOptional>; + timeoutMs: z.ZodOptional; + inputSchema: z.ZodOptional; + required: z.ZodDefault; + description: z.ZodOptional; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional; + waitEventConfig: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + timeoutMs: z.ZodOptional; + onTimeout: z.ZodOptional; + }, z.core.$strict>>; + boundaryConfig: z.ZodOptional; + interrupting: z.ZodDefault; + errorCode: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform<{ + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "webhook" | "signal" | "timer" | "manual"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "signal" | "timer" | "cancel"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }, { + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "webhook" | "signal" | "timer" | "manual"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "signal" | "timer" | "cancel"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }>>>; + edges: z.ZodArray>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + source: z.ZodString; + }, z.core.$strip>]>>; + type: z.ZodDefault>; + label: z.ZodOptional; + isDefault: z.ZodDefault; + }, z.core.$strict>>; + active: z.ZodOptional; + runAs: z.ZodDefault>; + errorHandling: z.ZodOptional; + fallbackNodeId: z.ZodOptional; + backoffMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; + maxRetryDelayMs: z.ZodDefault; + jitter: z.ZodDefault; + retryDelayMs: z.ZodOptional; + strategy: z.ZodDefault>; + }, z.core.$strict>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + jobs: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{ + type: z.ZodLiteral<"cron">; + expression: z.ZodUnion>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"cron">; + }, z.core.$strip>]>; + timezone: z.ZodDefault>; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"interval">; + intervalMs: z.ZodNumber; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"once">; + at: z.ZodString; + }, z.core.$strip>], "type">; + handler: z.ZodString; + retryPolicy: z.ZodOptional; + backoffMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; + maxRetryDelayMs: z.ZodDefault; + jitter: z.ZodDefault; + retryDelayMs: z.ZodOptional; + }, z.core.$strip>>; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + enabled: z.ZodDefault; + }, z.core.$strict>>>; + emailTemplates: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + category: z.ZodDefault>; + locale: z.ZodDefault; + subject: z.ZodString; + bodyHtml: z.ZodString; + bodyText: z.ZodOptional; + variables: z.ZodDefault>; + required: z.ZodDefault; + description: z.ZodOptional; + }, z.core.$strip>>>; + fromOverride: z.ZodOptional; + address: z.ZodString; + }, z.core.$strip>>; + replyTo: z.ZodOptional; + active: z.ZodDefault; + isSystem: z.ZodDefault; + description: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + docs: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + content: z.ZodString; + order: z.ZodOptional; + group: z.ZodOptional; + tags: z.ZodOptional>; + translations: z.ZodOptional; + description: z.ZodOptional; + content: z.ZodString; + }, z.core.$strip>>>; + }, z.core.$strict>>>; + books: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + slug: z.ZodOptional; + icon: z.ZodOptional; + order: z.ZodOptional; + audience: z.ZodOptional, z.ZodLiteral<"public">, z.ZodObject<{ + permissionSet: z.ZodString; + }, z.core.$strip>]>>; + groups: z.ZodArray; + order: z.ZodOptional; + include: z.ZodOptional]>>; + package: z.ZodOptional; + pages: z.ZodOptional; + href: z.ZodOptional; + label: z.ZodOptional; + badge: z.ZodOptional; + icon: z.ZodOptional; + }, z.core.$strip>]>>>; + }, z.core.$strip>>; + }, z.core.$strict>>>; + positions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + delegatable: z.ZodDefault; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + permissions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + packageId: z.ZodOptional; + managedBy: z.ZodOptional>; + isDefault: z.ZodDefault; + objects: z.ZodRecord> & { + readonly shape: { + allowCreate: z.ZodDefault; + allowRead: z.ZodDefault; + allowEdit: z.ZodDefault; + allowDelete: z.ZodDefault; + allowExport: z.ZodOptional; + allowTransfer: z.ZodDefault; + allowRestore: z.ZodOptional; + allowPurge: z.ZodOptional; + viewAllRecords: z.ZodDefault; + modifyAllRecords: z.ZodDefault; + readScope: z.ZodOptional>; + writeScope: z.ZodOptional>; + }; + }>; + fields: z.ZodOptional; + editable: z.ZodDefault; + }, z.core.$strict>>>; + systemPermissions: z.ZodOptional>; + tabPermissions: z.ZodOptional>>; + rowLevelSecurity: z.ZodOptional; + description: z.ZodOptional; + object: z.ZodString; + operation: z.ZodEnum<{ + delete: "delete"; + select: "select"; + insert: "insert"; + update: "update"; + all: "all"; + }>; + using: z.ZodOptional; + check: z.ZodOptional; + positions: z.ZodOptional>; + enabled: z.ZodDefault; + priority: z.ZodOptional; + tags: z.ZodOptional>; + }, z.core.$strict>>>; + adminScope: z.ZodOptional; + manageAssignments: z.ZodDefault; + manageBindings: z.ZodDefault; + authorEnvironmentSets: z.ZodDefault; + assignablePermissionSets: z.ZodDefault>; + }, z.core.$strict>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + scope: z.ZodDefault>; + packageId: z.ZodOptional; + }, z.core.$strict>>>; + sharingRules: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + object: z.ZodString; + active: z.ZodDefault; + accessLevel: z.ZodDefault>; + sharedWith: z.ZodObject<{ + type: z.ZodEnum<{ + position: "position"; + field: "field"; + user: "user"; + business_unit: "business_unit"; + team: "team"; + unit_and_subordinates: "unit_and_subordinates"; + }>; + value: z.ZodString; + }, z.core.$strict>; + type: z.ZodLiteral<"criteria">; + condition: z.ZodUnion>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + }, z.core.$strict>>>; + apis: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + path: z.ZodString; + method: z.ZodEnum<{ + GET: "GET"; + POST: "POST"; + PUT: "PUT"; + DELETE: "DELETE"; + PATCH: "PATCH"; + HEAD: "HEAD"; + OPTIONS: "OPTIONS"; + }>; + summary: z.ZodOptional; + description: z.ZodOptional; + type: z.ZodEnum<{ + flow: "flow"; + script: "script"; + object_operation: "object_operation"; + proxy: "proxy"; + }>; + target: z.ZodOptional; + objectParams: z.ZodOptional; + operation: z.ZodOptional>; + }, z.core.$strip>>; + inputMapping: z.ZodOptional; + }, z.core.$strip>>>; + outputMapping: z.ZodOptional; + }, z.core.$strip>>>; + authRequired: z.ZodDefault; + rateLimit: z.ZodOptional; + windowMs: z.ZodDefault; + maxRequests: z.ZodDefault; + }, z.core.$strict>>; + cacheTtlSeconds: z.ZodOptional; + cacheTtl: z.ZodOptional; + }, z.core.$strict>>>; + webhooks: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + object: z.ZodOptional; + triggers: z.ZodOptional>>; + url: z.ZodString; + method: z.ZodDefault>; + headers: z.ZodOptional>; + timeoutMs: z.ZodDefault; + secret: z.ZodOptional; + isActive: z.ZodDefault; + description: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + api: z.ZodOptional; + enableProjectScoping: z.ZodOptional; + projectResolution: z.ZodOptional>; + enforceProjectMembership: z.ZodOptional; + }, z.core.$strip>>; + server: z.ZodOptional; + windowMs: z.ZodDefault; + maxRequests: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + trustProxy: z.ZodDefault; + }, z.core.$strict>>; + agents: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + avatar: z.ZodOptional; + role: z.ZodString; + instructions: z.ZodString; + model: z.ZodOptional>; + model: z.ZodString; + temperature: z.ZodDefault; + maxTokens: z.ZodOptional; + topP: z.ZodOptional; + }, z.core.$strict>>; + lifecycle: z.ZodOptional; + contextSchema: z.ZodOptional>; + initial: z.ZodString; + states: z.ZodRecord>>; + on: z.ZodOptional; + cond: z.ZodOptional>; + }, z.core.$strict>]>>; + actions: z.ZodOptional>; + }, z.core.$strict>]>>>; + description: z.ZodOptional; + }, z.core.$strict>, z.ZodArray; + cond: z.ZodOptional>; + }, z.core.$strict>]>>; + actions: z.ZodOptional>; + }, z.core.$strict>]>>>; + description: z.ZodOptional; + }, z.core.$strict>>]>>>; + }, z.core.$strict>>; + surface: z.ZodDefault>; + skills: z.ZodOptional>; + tools: z.ZodOptional; + knowledge: z.ZodOptional; + active: z.ZodDefault; + access: z.ZodOptional>; + permissions: z.ZodOptional>; + planning: z.ZodOptional; + }, z.core.$strict>>; + memory: z.ZodOptional; + store: z.ZodDefault>; + maxEntries: z.ZodOptional; + }, z.core.$strict>>; + reflectionInterval: z.ZodOptional; + }, z.core.$strict>>; + guardrails: z.ZodOptional; + maxExecutionTimeSec: z.ZodOptional; + blockedTopics: z.ZodOptional>; + }, z.core.$strict>>; + structuredOutput: z.ZodOptional; + schema: z.ZodOptional>; + strict: z.ZodDefault; + retryOnValidationFailure: z.ZodDefault; + maxRetries: z.ZodDefault; + fallbackFormat: z.ZodOptional>; + transformPipeline: z.ZodOptional>>; + }, z.core.$strict>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + tools: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + description: z.ZodString; + parameters: z.ZodRecord; + outputSchema: z.ZodOptional>; + objectName: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + skills: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + surface: z.ZodDefault>; + instructions: z.ZodOptional; + tools: z.ZodArray; + triggerPhrases: z.ZodOptional; + triggerConditions: z.ZodOptional; + value: z.ZodUnion]>; + }, z.core.$strip>>>; + active: z.ZodDefault; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + hooks: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + object: z.ZodUnion]>; + events: z.ZodArray>; + handler: z.ZodOptional any, (...args: any[]) => any>]>>; + body: z.ZodOptional; + source: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + language: z.ZodLiteral<"js">; + source: z.ZodString; + capabilities: z.ZodDefault>>; + timeoutMs: z.ZodOptional; + memoryMb: z.ZodOptional; + }, z.core.$strict>], "language">>; + priority: z.ZodDefault; + async: z.ZodDefault; + condition: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + description: z.ZodOptional; + retryPolicy: z.ZodOptional; + backoffMs: z.ZodDefault; + }, z.core.$strict>>; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + onError: z.ZodDefault>; + runAs: z.ZodDefault>; + }, z.core.$strict>>>; + functions: z.ZodOptional, z.ZodObject<{ + handler: z.ZodFunction; + effect: z.ZodDefault>; + }, z.core.$strict>, z.ZodString, z.ZodObject<{ + effect: z.ZodDefault>; + handler: z.ZodString; + }, z.core.$strict>]>>, z.ZodArray, z.ZodString]>; + packageId: z.ZodOptional; + effect: z.ZodOptional>; + }, z.core.$strip>>]>>; + onEnable: z.ZodOptional>; + mappings: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + sourceFormat: z.ZodDefault>; + targetObject: z.ZodString; + fieldMapping: z.ZodArray]>; + target: z.ZodUnion]>; + transform: z.ZodDefault>; + params: z.ZodOptional; + valueMap: z.ZodOptional>; + separator: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + mode: z.ZodDefault>; + upsertKey: z.ZodOptional>; + }, z.core.$strict>>>; + analyticsCubes: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + title: z.ZodOptional; + description: z.ZodOptional; + sql: z.ZodString; + measures: z.ZodRecord; + type: z.ZodEnum<{ + string: "string"; + number: "number"; + boolean: "boolean"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_distinct: "count_distinct"; + }>; + sql: z.ZodString; + format: z.ZodOptional; + }, z.core.$strict>>; + dimensions: z.ZodRecord; + type: z.ZodEnum<{ + string: "string"; + number: "number"; + boolean: "boolean"; + time: "time"; + geo: "geo"; + }>; + sql: z.ZodString; + granularities: z.ZodOptional>>; + }, z.core.$strict>>; + joins: z.ZodOptional>; + sql: z.ZodString; + }, z.core.$strict>>>; + refreshKey: z.ZodOptional; + sql: z.ZodOptional; + }, z.core.$strict>>; + public: z.ZodDefault; + }, z.core.$strict>>>; + connectors: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + type: z.ZodEnum<{ + custom: "custom"; + database: "database"; + api: "api"; + saas: "saas"; + file_storage: "file_storage"; + message_queue: "message_queue"; + }>; + description: z.ZodOptional; + icon: z.ZodOptional; + authentication: z.ZodDefault; + authorizationUrl: z.ZodString; + tokenUrl: z.ZodString; + clientId: z.ZodString; + clientSecret: z.ZodString; + scopes: z.ZodOptional>; + redirectUri: z.ZodOptional; + refreshToken: z.ZodOptional; + tokenExpiry: z.ZodOptional; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"api-key">; + key: z.ZodString; + headerName: z.ZodDefault; + paramName: z.ZodOptional; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"basic">; + username: z.ZodString; + password: z.ZodString; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"bearer">; + token: z.ZodString; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"none">; + }, z.core.$strip>], "type">>>; + provider: z.ZodOptional; + providerConfig: z.ZodOptional>; + auth: z.ZodOptional; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"bearer">; + credentialRef: z.ZodString; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"api-key">; + credentialRef: z.ZodString; + headerName: z.ZodOptional; + paramName: z.ZodOptional; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"basic">; + username: z.ZodString; + credentialRef: z.ZodString; + }, z.core.$strip>], "type">>; + actions: z.ZodOptional; + inputSchema: z.ZodOptional>; + outputSchema: z.ZodOptional>; + effect: z.ZodOptional>; + }, z.core.$strip>>>; + triggers: z.ZodOptional; + type: z.ZodEnum<{ + webhook: "webhook"; + polling: "polling"; + }>; + intervalSeconds: z.ZodOptional; + interval: z.ZodOptional; + }, z.core.$strip>>>; + syncConfig: z.ZodOptional>>; + direction: z.ZodDefault>>; + realtimeSync: z.ZodDefault>; + timestampField: z.ZodOptional; + conflictResolution: z.ZodDefault>>; + batchSize: z.ZodDefault>; + deleteMode: z.ZodDefault>>; + filters: z.ZodOptional>; + }, z.core.$strip>>; + fieldMappings: z.ZodOptional; + defaultValue: z.ZodOptional; + dataType: z.ZodOptional>; + required: z.ZodDefault; + syncMode: z.ZodDefault>; + }, z.core.$strip>>>; + webhooks: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + object: z.ZodOptional; + triggers: z.ZodOptional>>; + url: z.ZodString; + method: z.ZodDefault>; + headers: z.ZodOptional>; + timeoutMs: z.ZodDefault; + secret: z.ZodOptional; + isActive: z.ZodDefault; + description: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + events: z.ZodOptional>>; + signatureAlgorithm: z.ZodDefault>>; + }, z.core.$strict>>>; + rateLimitConfig: z.ZodOptional; + retryConfig: z.ZodOptional>>; + maxAttempts: z.ZodDefault>; + initialDelayMs: z.ZodDefault>; + maxDelayMs: z.ZodDefault>; + backoffMultiplier: z.ZodDefault>; + retryableStatusCodes: z.ZodDefault>>; + retryOnNetworkError: z.ZodDefault>; + jitter: z.ZodDefault>; + }, z.core.$strip>>; + connectionTimeoutMs: z.ZodDefault>; + requestTimeoutMs: z.ZodDefault>; + status: z.ZodDefault>>; + enabled: z.ZodDefault>; + errorMapping: z.ZodOptional; + health: z.ZodOptional>; + timeoutMs: z.ZodDefault>; + endpoint: z.ZodOptional; + method: z.ZodOptional>; + expectedStatus: z.ZodDefault>; + unhealthyThreshold: z.ZodDefault>; + healthyThreshold: z.ZodDefault>; + }, z.core.$strip>>; + circuitBreaker: z.ZodOptional>; + resetTimeoutMs: z.ZodDefault>; + halfOpenMaxRequests: z.ZodDefault>; + monitoringWindowMs: z.ZodDefault>; + monitoringWindow: z.ZodOptional; + fallbackStrategy: z.ZodOptional>; + }, z.core.$strip>>; + }, z.core.$strip>>; + metadata: z.ZodOptional>; + }, z.core.$strip>>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + plugins: z.ZodOptional>; + requires: z.ZodOptional>; + tiers: z.ZodOptional>; + devPlugins: z.ZodOptional; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + app: "app"; + ui: "ui"; + driver: "driver"; + server: "server"; + theme: "theme"; + agent: "agent"; + objectql: "objectql"; + plugin: "plugin"; + module: "module"; + gateway: "gateway"; + adapter: "adapter"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>, z.ZodString]>>>; + runtimeModule: z.ZodOptional; + manifest: z.ZodOptional; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + app: "app"; + ui: "ui"; + driver: "driver"; + server: "server"; + theme: "theme"; + agent: "agent"; + objectql: "objectql"; + plugin: "plugin"; + module: "module"; + gateway: "gateway"; + adapter: "adapter"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>>; + packages: z.ZodOptional, Record, z.core.$ZodTypeInternals, Record>>; + }, z.core.$strict>>>; +}, z.core.$strict>; + +// ── ObjectStackSchema (const) ── +declare const ObjectStackSchema: z.ZodObject<{ + datasources: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + driver: z.ZodString; + config: z.ZodRecord; + pool: z.ZodOptional; + max: z.ZodDefault; + idleTimeoutMillis: z.ZodDefault; + connectionTimeoutMillis: z.ZodDefault; + }, z.core.$strict>>; + ssl: z.ZodOptional; + rejectUnauthorized: z.ZodDefault; + ca: z.ZodOptional; + cert: z.ZodOptional; + key: z.ZodOptional; + }, z.core.$strict>>; + description: z.ZodOptional; + active: z.ZodDefault; + autoConnect: z.ZodDefault; + schemaMode: z.ZodDefault>; + external: z.ZodOptional>; + allowWrites: z.ZodDefault; + validation: z.ZodDefault>; + checkOnBoot: z.ZodDefault; + checkIntervalMs: z.ZodOptional; + }, z.core.$strict>>; + credentialsRef: z.ZodOptional; + queryTimeoutMs: z.ZodDefault; + }, z.core.$strict>>; + origin: z.ZodDefault>; + }, z.core.$strict>>>; + datasourceMapping: z.ZodOptional; + package: z.ZodOptional; + objectPattern: z.ZodOptional; + default: z.ZodOptional; + datasource: z.ZodString; + priority: z.ZodOptional; + }, z.core.$strip>>>; + translations: z.ZodOptional; + pluralLabel: z.ZodOptional; + description: z.ZodOptional; + fields: z.ZodOptional; + help: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + _views: z.ZodOptional; + description: z.ZodOptional; + emptyState: z.ZodOptional; + message: z.ZodOptional; + }, z.core.$strict>>; + bulkActions: z.ZodOptional; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + params: z.ZodOptional; + help: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + _actions: z.ZodOptional; + description: z.ZodOptional; + confirmText: z.ZodOptional; + successMessage: z.ZodOptional; + params: z.ZodOptional; + helpText: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + resultDialog: z.ZodOptional; + description: z.ZodOptional; + acknowledge: z.ZodOptional; + fields: z.ZodOptional>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + _sections: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + _tabs: z.ZodOptional; + }, z.core.$strict>>>; + _validations: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + apps: z.ZodOptional; + navigation: z.ZodOptional>>; + }, z.core.$strict>>>; + messages: z.ZodOptional>; + globalActions: z.ZodOptional; + description: z.ZodOptional; + confirmText: z.ZodOptional; + successMessage: z.ZodOptional; + params: z.ZodOptional; + helpText: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + resultDialog: z.ZodOptional; + description: z.ZodOptional; + acknowledge: z.ZodOptional; + fields: z.ZodOptional>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + dashboards: z.ZodOptional; + description: z.ZodOptional; + actions: z.ZodOptional; + }, z.core.$strict>>>; + widgets: z.ZodOptional; + description: z.ZodOptional; + subCaption: z.ZodOptional; + }, z.core.$strict>>>; + globalFilters: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + datasets: z.ZodOptional; + description: z.ZodOptional; + dimensions: z.ZodOptional; + }, z.core.$strict>>>; + measures: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + pages: z.ZodOptional; + description: z.ZodOptional; + title: z.ZodOptional; + subtitle: z.ZodOptional; + components: z.ZodOptional; + description: z.ZodOptional; + label: z.ZodOptional; + placeholder: z.ZodOptional; + emptyText: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + flows: z.ZodOptional; + screens: z.ZodOptional; + fields: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + settings: z.ZodOptional; + description: z.ZodOptional; + groups: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + keys: z.ZodOptional; + help: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + actions: z.ZodOptional; + confirmText: z.ZodOptional; + successMessage: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + metadataForms: z.ZodOptional; + description: z.ZodOptional; + sections: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + fields: z.ZodOptional; + helpText: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + settingsCommon: z.ZodOptional; + global: z.ZodOptional; + tenant: z.ZodOptional; + user: z.ZodOptional; + default: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + }, z.core.$strict>>>>; + i18n: z.ZodOptional; + fallbackLocale: z.ZodOptional; + }, z.core.$strict>>; + objects: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + pluralLabel: z.ZodOptional; + description: z.ZodOptional; + icon: z.ZodOptional; + isSystem: z.ZodDefault>; + managedBy: z.ZodOptional>; + ownership: z.ZodOptional>; + userActions: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + import: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + edit: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + delete: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + exportCsv: z.ZodOptional; + }, z.core.$strict>>; + systemFields: z.ZodOptional, z.ZodObject<{ + tenant: z.ZodOptional; + audit: z.ZodOptional; + }, z.core.$strict>]>>; + datasource: z.ZodDefault>; + external: z.ZodOptional; + remoteSchema: z.ZodOptional; + writable: z.ZodDefault; + columnMap: z.ZodOptional>; + introspectedAt: z.ZodOptional; + ignoreColumns: z.ZodOptional>; + }, z.core.$strict>>; + fields: z.ZodRecord>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + url: "url"; + email: "email"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + description: z.ZodOptional; + format: z.ZodOptional; + required: z.ZodDefault; + storage: z.ZodOptional; + }, z.core.$strict>>; + searchable: z.ZodDefault; + multiple: z.ZodDefault; + unique: z.ZodOptional, z.ZodLiteral<"organization">]>>; + defaultValue: z.ZodOptional; + maxLength: z.ZodOptional; + minLength: z.ZodOptional; + valueDomain: z.ZodOptional>; + rows: z.ZodOptional; + precision: z.ZodOptional; + scale: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + useGrouping: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + options: z.ZodOptional; + color: z.ZodOptional; + default: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + reference: z.ZodOptional; + referenceVia: z.ZodOptional; + deleteBehavior: z.ZodOptional>; + inlineEdit: z.ZodOptional]>>; + inlineTitle: z.ZodOptional; + inlineColumns: z.ZodOptional; + type: z.ZodOptional>; + width: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + prefix: z.ZodOptional; + step: z.ZodOptional; + reference: z.ZodOptional; + displayField: z.ZodOptional; + idField: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + defaultHidden: z.ZodOptional; + computed: z.ZodOptional; + expr: z.ZodOptional; + scale: z.ZodOptional; + autofill: z.ZodOptional; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + inlineAmountField: z.ZodOptional; + relatedList: z.ZodOptional]>>; + relatedListTitle: z.ZodOptional; + relatedListColumns: z.ZodOptional>; + relatedListFilter: z.ZodOptional>>; + displayField: z.ZodOptional; + descriptionField: z.ZodOptional; + lookupColumns: z.ZodOptional; + width: z.ZodOptional; + type: z.ZodOptional; + }, z.core.$strict>]>>>; + lookupPageSize: z.ZodOptional; + lookupFilters: z.ZodOptional; + value: z.ZodAny; + }, z.core.$strict>>>; + dependsOn: z.ZodOptional; + }, z.core.$strict>]>>>; + allowCreate: z.ZodOptional; + expression: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + returnType: z.ZodOptional>; + summaryOperations: z.ZodOptional; + relationshipField: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strict>>; + language: z.ZodOptional; + step: z.ZodOptional; + currencyConfig: z.ZodOptional; + currencyMode: z.ZodDefault>; + defaultCurrency: z.ZodDefault; + }, z.core.$strict>>; + dimensions: z.ZodOptional; + trackHistory: z.ZodOptional; + group: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + conditionalRequired: z.ZodOptional; + widget: z.ZodOptional; + hidden: z.ZodDefault; + internal: z.ZodOptional; + readonly: z.ZodDefault; + requiredPermissions: z.ZodOptional>; + maskingRule: z.ZodOptional, z.ZodObject<{ + keepHead: z.ZodNumber; + keepTail: z.ZodNumber; + }, z.core.$strict>]>>; + ackPlaintextMasking: z.ZodOptional; + system: z.ZodOptional; + sortable: z.ZodDefault>; + inlineHelpText: z.ZodOptional; + placeholder: z.ZodOptional; + autonumberFormat: z.ZodOptional; + externalId: z.ZodDefault; + }, z.core.$strict>>; + indexes: z.ZodOptional; + fields: z.ZodArray; + unique: z.ZodDefault, z.ZodLiteral<"organization">]>>>; + type: z.ZodOptional; + partial: z.ZodOptional; + }, z.core.$strict>>>; + fieldGroups: z.ZodOptional; + description: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + collapse: z.ZodDefault>>; + defaultExpanded: z.ZodOptional; + collapsible: z.ZodOptional; + collapsed: z.ZodOptional; + }, z.core.$strict>>>; + tenancy: z.ZodOptional; + organizationField: z.ZodOptional; + }, z.core.$strict>>; + access: z.ZodOptional>; + }, z.core.$strict>>; + requiredPermissions: z.ZodOptional, z.ZodObject<{ + read: z.ZodOptional>; + create: z.ZodOptional>; + update: z.ZodOptional>; + delete: z.ZodOptional>; + }, z.core.$strict>]>>; + lifecycle: z.ZodOptional; + retention: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + ttl: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + storage: z.ZodOptional; + shards: z.ZodNumber; + unit: z.ZodEnum<{ + month: "month"; + day: "day"; + week: "week"; + }>; + }, z.core.$strict>>; + archive: z.ZodOptional; + }, z.core.$strict>>; + reclaim: z.ZodOptional; + }, z.core.$strict>>; + fileAccessDelegate: z.ZodOptional; + validations: z.ZodOptional>>>; + activityMilestones: z.ZodOptional; + }, z.core.$strict>>>; + nameField: z.ZodOptional; + displayNameField: z.ZodOptional; + titleFormat: z.ZodOptional>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"template">; + }, z.core.$strip>]>>; + highlightFields: z.ZodOptional>; + stageField: z.ZodOptional]>>; + editMode: z.ZodOptional>; + listViews: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + type: z.ZodDefault>; + sort: z.ZodOptional; + }, z.core.$strict>>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + name: z.ZodOptional; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + inlineEdit: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + delete: "delete"; + update: "update"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + url: "url"; + email: "email"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + rowActions: z.ZodOptional>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + none: "none"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + pageName: z.ZodOptional; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + responsive: z.ZodOptional; + performance: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "xlsx" | "csv")[]; + }, ("json" | "xlsx" | "csv")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + resizable: z.ZodOptional; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + compactToolbar: z.ZodOptional; + selection: z.ZodOptional>; + }, z.core.$strict>>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + enable: z.ZodOptional; + searchable: z.ZodDefault; + apiEnabled: z.ZodDefault; + apiMethods: z.ZodOptional>>; + files: z.ZodDefault; + feeds: z.ZodDefault; + activities: z.ZodDefault; + clone: z.ZodDefault; + }, z.core.$strict>>; + sharingModel: z.ZodOptional>; + externalSharingModel: z.ZodOptional>; + publicSharing: z.ZodOptional; + allowedAudiences: z.ZodOptional>>; + allowedPermissions: z.ZodOptional>>; + maxExpiryDays: z.ZodOptional; + redactFields: z.ZodOptional>; + eligibility: z.ZodOptional; + }, z.core.$strict>>; + actions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + objectName: z.ZodOptional; + icon: z.ZodOptional; + locations: z.ZodOptional>>; + component: z.ZodOptional>; + type: z.ZodDefault>; + target: z.ZodOptional; + openIn: z.ZodOptional>; + body: z.ZodOptional; + source: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + language: z.ZodLiteral<"js">; + source: z.ZodString; + capabilities: z.ZodDefault>>; + timeoutMs: z.ZodOptional; + memoryMb: z.ZodOptional; + }, z.core.$strict>], "language">>; + operation: z.ZodOptional>; + patch: z.ZodOptional>; + execution: z.ZodOptional>; + execute: z.ZodOptional; + params: z.ZodOptional; + field: z.ZodOptional; + objectOverride: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + required: z.ZodDefault>; + options: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + value: z.ZodString; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + placeholder: z.ZodOptional; + helpText: z.ZodOptional; + defaultValue: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + reference: z.ZodOptional; + defaultFromRow: z.ZodOptional; + carryOver: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiresFeature: z.ZodOptional>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">, { + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }>>>>; + variant: z.ZodOptional>; + order: z.ZodOptional; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + successMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + errorMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + refreshAfter: z.ZodDefault; + undoable: z.ZodOptional; + resultDialog: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + acknowledge: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiresFeature: z.ZodOptional>; + disabled: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiredPermissions: z.ZodOptional>; + shortcut: z.ZodOptional; + bulkEnabled: z.ZodOptional; + ai: z.ZodOptional; + description: z.ZodOptional; + category: z.ZodOptional>; + paramHints: z.ZodOptional; + enum: z.ZodOptional>>; + examples: z.ZodOptional>; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional>; + requiresConfirmation: z.ZodOptional; + }, z.core.$strict>>; + recordIdParam: z.ZodOptional; + recordIdField: z.ZodOptional; + bodyShape: z.ZodOptional, z.ZodObject<{ + wrap: z.ZodString; + }, z.core.$strict>]>>; + method: z.ZodOptional>; + bodyExtra: z.ZodOptional>; + mode: z.ZodOptional>; + opensInNewTab: z.ZodOptional; + newTabUrl: z.ZodOptional; + onSuccess: z.ZodOptional>; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | undefined; + objectName?: string | undefined; + icon?: string | undefined; + locations?: ("record_header" | "list_toolbar" | "list_item" | "record_more" | "record_related" | "record_section")[] | undefined; + component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("crypto.uuid" | "api.read" | "api.write" | "api.transaction" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "flow" | "data" | "action" | "analytics" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "delete" | "edit" | "create" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">, { + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | undefined; + objectName?: string | undefined; + icon?: string | undefined; + locations?: ("record_header" | "list_toolbar" | "list_item" | "record_more" | "record_related" | "record_section")[] | undefined; + component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("crypto.uuid" | "api.read" | "api.write" | "api.transaction" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "flow" | "data" | "action" | "analytics" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "delete" | "edit" | "create" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict> & { + parse(data: unknown, params?: Parameters<(data: unknown, params?: z.core.ParseContext) => { + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _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; + managedBy?: "platform" | "config" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "none" | "org" | "user" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "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: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "page" | "modal" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | 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; + 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; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "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; + name?: string | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + inlineEdit?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "delete" | "update"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "outline" | "danger" | "ghost" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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: "split" | "none" | "page" | "modal" | "drawer" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + pageName?: undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + responsive?: undefined; + performance?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + exportOptions?: { + formats: ("json" | "xlsx" | "csv")[]; + } | { + formats?: ("json" | "xlsx" | "csv")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "gallery" | "chart" | "kanban" | "gantt" | "timeline" | "calendar")[] | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | undefined; + borderColorField?: string | undefined; + lockField?: string | undefined; + objectField?: string | undefined; + summaryExtent?: "children" | "self" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + rowHeight?: "short" | "medium" | "compact" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + grouping?: { + fields: { + field: string; + order: "asc" | "desc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "modal" | "inline"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "delete" | "bulk" | "update" | "list" | "create")[] | undefined; + } | undefined; + sharingModel?: "public_read" | "public_read_write" | "private" | "controlled_by_parent" | undefined; + externalSharingModel?: "public_read" | "public_read_write" | "private" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("view" | "edit" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | undefined; + objectName?: string | undefined; + icon?: string | undefined; + locations?: ("record_header" | "list_toolbar" | "list_item" | "record_more" | "record_related" | "record_section")[] | undefined; + component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("crypto.uuid" | "api.read" | "api.write" | "api.transaction" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "flow" | "data" | "action" | "analytics" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "delete" | "edit" | "create" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "none" | "no-overlay" | "no-delete" | "full"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }>[1]): { + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _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; + managedBy?: "platform" | "config" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "none" | "org" | "user" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "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: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "page" | "modal" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | 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; + 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; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "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; + name?: string | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + inlineEdit?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "delete" | "update"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "outline" | "danger" | "ghost" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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: "split" | "none" | "page" | "modal" | "drawer" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + pageName?: undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + responsive?: undefined; + performance?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + exportOptions?: { + formats: ("json" | "xlsx" | "csv")[]; + } | { + formats?: ("json" | "xlsx" | "csv")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "gallery" | "chart" | "kanban" | "gantt" | "timeline" | "calendar")[] | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | undefined; + borderColorField?: string | undefined; + lockField?: string | undefined; + objectField?: string | undefined; + summaryExtent?: "children" | "self" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + rowHeight?: "short" | "medium" | "compact" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + grouping?: { + fields: { + field: string; + order: "asc" | "desc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "modal" | "inline"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "delete" | "bulk" | "update" | "list" | "create")[] | undefined; + } | undefined; + sharingModel?: "public_read" | "public_read_write" | "private" | "controlled_by_parent" | undefined; + externalSharingModel?: "public_read" | "public_read_write" | "private" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("view" | "edit" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | undefined; + objectName?: string | undefined; + icon?: string | undefined; + locations?: ("record_header" | "list_toolbar" | "list_item" | "record_more" | "record_related" | "record_section")[] | undefined; + component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("crypto.uuid" | "api.read" | "api.write" | "api.transaction" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "flow" | "data" | "action" | "analytics" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "delete" | "edit" | "create" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "none" | "no-overlay" | "no-delete" | "full"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }; + safeParse(data: unknown, params?: Parameters<(data: unknown, params?: z.core.ParseContext) => z.ZodSafeParseResult<{ + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _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; + managedBy?: "platform" | "config" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "none" | "org" | "user" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "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: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "page" | "modal" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | 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; + 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; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "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; + name?: string | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + inlineEdit?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "delete" | "update"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "outline" | "danger" | "ghost" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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: "split" | "none" | "page" | "modal" | "drawer" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + pageName?: undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + responsive?: undefined; + performance?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + exportOptions?: { + formats: ("json" | "xlsx" | "csv")[]; + } | { + formats?: ("json" | "xlsx" | "csv")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "gallery" | "chart" | "kanban" | "gantt" | "timeline" | "calendar")[] | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | undefined; + borderColorField?: string | undefined; + lockField?: string | undefined; + objectField?: string | undefined; + summaryExtent?: "children" | "self" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + rowHeight?: "short" | "medium" | "compact" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + grouping?: { + fields: { + field: string; + order: "asc" | "desc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "modal" | "inline"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "delete" | "bulk" | "update" | "list" | "create")[] | undefined; + } | undefined; + sharingModel?: "public_read" | "public_read_write" | "private" | "controlled_by_parent" | undefined; + externalSharingModel?: "public_read" | "public_read_write" | "private" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("view" | "edit" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | undefined; + objectName?: string | undefined; + icon?: string | undefined; + locations?: ("record_header" | "list_toolbar" | "list_item" | "record_more" | "record_related" | "record_section")[] | undefined; + component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("crypto.uuid" | "api.read" | "api.write" | "api.transaction" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "flow" | "data" | "action" | "analytics" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "delete" | "edit" | "create" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "none" | "no-overlay" | "no-delete" | "full"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }>>[1]): z.ZodSafeParseResult<{ + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _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; + managedBy?: "platform" | "config" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "none" | "org" | "user" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "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: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "page" | "modal" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | 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; + 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; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "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; + name?: string | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + inlineEdit?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "delete" | "update"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "outline" | "danger" | "ghost" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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: "split" | "none" | "page" | "modal" | "drawer" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + pageName?: undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + responsive?: undefined; + performance?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + exportOptions?: { + formats: ("json" | "xlsx" | "csv")[]; + } | { + formats?: ("json" | "xlsx" | "csv")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "gallery" | "chart" | "kanban" | "gantt" | "timeline" | "calendar")[] | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | undefined; + borderColorField?: string | undefined; + lockField?: string | undefined; + objectField?: string | undefined; + summaryExtent?: "children" | "self" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + rowHeight?: "short" | "medium" | "compact" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + grouping?: { + fields: { + field: string; + order: "asc" | "desc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "modal" | "inline"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "delete" | "bulk" | "update" | "list" | "create")[] | undefined; + } | undefined; + sharingModel?: "public_read" | "public_read_write" | "private" | "controlled_by_parent" | undefined; + externalSharingModel?: "public_read" | "public_read_write" | "private" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("view" | "edit" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | undefined; + objectName?: string | undefined; + icon?: string | undefined; + locations?: ("record_header" | "list_toolbar" | "list_item" | "record_more" | "record_related" | "record_section")[] | undefined; + component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("crypto.uuid" | "api.read" | "api.write" | "api.transaction" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "flow" | "data" | "action" | "analytics" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "delete" | "edit" | "create" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "none" | "no-overlay" | "no-delete" | "full"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }>; + create: >; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + pluralLabel: z.ZodOptional; + description: z.ZodOptional; + icon: z.ZodOptional; + isSystem: z.ZodDefault>; + managedBy: z.ZodOptional>; + ownership: z.ZodOptional>; + userActions: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + import: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + edit: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + delete: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + exportCsv: z.ZodOptional; + }, z.core.$strict>>; + systemFields: z.ZodOptional, z.ZodObject<{ + tenant: z.ZodOptional; + audit: z.ZodOptional; + }, z.core.$strict>]>>; + datasource: z.ZodDefault>; + external: z.ZodOptional; + remoteSchema: z.ZodOptional; + writable: z.ZodDefault; + columnMap: z.ZodOptional>; + introspectedAt: z.ZodOptional; + ignoreColumns: z.ZodOptional>; + }, z.core.$strict>>; + fields: z.ZodRecord>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + url: "url"; + email: "email"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + description: z.ZodOptional; + format: z.ZodOptional; + required: z.ZodDefault; + storage: z.ZodOptional; + }, z.core.$strict>>; + searchable: z.ZodDefault; + multiple: z.ZodDefault; + unique: z.ZodOptional, z.ZodLiteral<"organization">]>>; + defaultValue: z.ZodOptional; + maxLength: z.ZodOptional; + minLength: z.ZodOptional; + valueDomain: z.ZodOptional>; + rows: z.ZodOptional; + precision: z.ZodOptional; + scale: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + useGrouping: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + options: z.ZodOptional; + color: z.ZodOptional; + default: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + reference: z.ZodOptional; + referenceVia: z.ZodOptional; + deleteBehavior: z.ZodOptional>; + inlineEdit: z.ZodOptional]>>; + inlineTitle: z.ZodOptional; + inlineColumns: z.ZodOptional; + type: z.ZodOptional>; + width: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + prefix: z.ZodOptional; + step: z.ZodOptional; + reference: z.ZodOptional; + displayField: z.ZodOptional; + idField: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + defaultHidden: z.ZodOptional; + computed: z.ZodOptional; + expr: z.ZodOptional; + scale: z.ZodOptional; + autofill: z.ZodOptional; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + inlineAmountField: z.ZodOptional; + relatedList: z.ZodOptional]>>; + relatedListTitle: z.ZodOptional; + relatedListColumns: z.ZodOptional>; + relatedListFilter: z.ZodOptional>>; + displayField: z.ZodOptional; + descriptionField: z.ZodOptional; + lookupColumns: z.ZodOptional; + width: z.ZodOptional; + type: z.ZodOptional; + }, z.core.$strict>]>>>; + lookupPageSize: z.ZodOptional; + lookupFilters: z.ZodOptional; + value: z.ZodAny; + }, z.core.$strict>>>; + dependsOn: z.ZodOptional; + }, z.core.$strict>]>>>; + allowCreate: z.ZodOptional; + expression: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + returnType: z.ZodOptional>; + summaryOperations: z.ZodOptional; + relationshipField: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strict>>; + language: z.ZodOptional; + step: z.ZodOptional; + currencyConfig: z.ZodOptional; + currencyMode: z.ZodDefault>; + defaultCurrency: z.ZodDefault; + }, z.core.$strict>>; + dimensions: z.ZodOptional; + trackHistory: z.ZodOptional; + group: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + conditionalRequired: z.ZodOptional; + widget: z.ZodOptional; + hidden: z.ZodDefault; + internal: z.ZodOptional; + readonly: z.ZodDefault; + requiredPermissions: z.ZodOptional>; + maskingRule: z.ZodOptional, z.ZodObject<{ + keepHead: z.ZodNumber; + keepTail: z.ZodNumber; + }, z.core.$strict>]>>; + ackPlaintextMasking: z.ZodOptional; + system: z.ZodOptional; + sortable: z.ZodDefault>; + inlineHelpText: z.ZodOptional; + placeholder: z.ZodOptional; + autonumberFormat: z.ZodOptional; + externalId: z.ZodDefault; + }, z.core.$strict>>; + indexes: z.ZodOptional; + fields: z.ZodArray; + unique: z.ZodDefault, z.ZodLiteral<"organization">]>>>; + type: z.ZodOptional; + partial: z.ZodOptional; + }, z.core.$strict>>>; + fieldGroups: z.ZodOptional; + description: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + collapse: z.ZodDefault>>; + defaultExpanded: z.ZodOptional; + collapsible: z.ZodOptional; + collapsed: z.ZodOptional; + }, z.core.$strict>>>; + tenancy: z.ZodOptional; + organizationField: z.ZodOptional; + }, z.core.$strict>>; + access: z.ZodOptional>; + }, z.core.$strict>>; + requiredPermissions: z.ZodOptional, z.ZodObject<{ + read: z.ZodOptional>; + create: z.ZodOptional>; + update: z.ZodOptional>; + delete: z.ZodOptional>; + }, z.core.$strict>]>>; + lifecycle: z.ZodOptional; + retention: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + ttl: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + storage: z.ZodOptional; + shards: z.ZodNumber; + unit: z.ZodEnum<{ + month: "month"; + day: "day"; + week: "week"; + }>; + }, z.core.$strict>>; + archive: z.ZodOptional; + }, z.core.$strict>>; + reclaim: z.ZodOptional; + }, z.core.$strict>>; + fileAccessDelegate: z.ZodOptional; + validations: z.ZodOptional>>>; + activityMilestones: z.ZodOptional; + }, z.core.$strict>>>; + nameField: z.ZodOptional; + displayNameField: z.ZodOptional; + titleFormat: z.ZodOptional>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"template">; + }, z.core.$strip>]>>; + highlightFields: z.ZodOptional>; + stageField: z.ZodOptional]>>; + editMode: z.ZodOptional>; + listViews: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + type: z.ZodDefault>; + sort: z.ZodOptional; + }, z.core.$strict>>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + name: z.ZodOptional; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + inlineEdit: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + delete: "delete"; + update: "update"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + url: "url"; + email: "email"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + rowActions: z.ZodOptional>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + none: "none"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + pageName: z.ZodOptional; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + responsive: z.ZodOptional; + performance: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "xlsx" | "csv")[]; + }, ("json" | "xlsx" | "csv")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + resizable: z.ZodOptional; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + compactToolbar: z.ZodOptional; + selection: z.ZodOptional>; + }, z.core.$strict>>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + enable: z.ZodOptional; + searchable: z.ZodDefault; + apiEnabled: z.ZodDefault; + apiMethods: z.ZodOptional>>; + files: z.ZodDefault; + feeds: z.ZodDefault; + activities: z.ZodDefault; + clone: z.ZodDefault; + }, z.core.$strict>>; + sharingModel: z.ZodOptional>; + externalSharingModel: z.ZodOptional>; + publicSharing: z.ZodOptional; + allowedAudiences: z.ZodOptional>>; + allowedPermissions: z.ZodOptional>>; + maxExpiryDays: z.ZodOptional; + redactFields: z.ZodOptional>; + eligibility: z.ZodOptional; + }, z.core.$strict>>; + actions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + objectName: z.ZodOptional; + icon: z.ZodOptional; + locations: z.ZodOptional>>; + component: z.ZodOptional>; + type: z.ZodDefault>; + target: z.ZodOptional; + openIn: z.ZodOptional>; + body: z.ZodOptional; + source: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + language: z.ZodLiteral<"js">; + source: z.ZodString; + capabilities: z.ZodDefault>>; + timeoutMs: z.ZodOptional; + memoryMb: z.ZodOptional; + }, z.core.$strict>], "language">>; + operation: z.ZodOptional>; + patch: z.ZodOptional>; + execution: z.ZodOptional>; + execute: z.ZodOptional; + params: z.ZodOptional; + field: z.ZodOptional; + objectOverride: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + required: z.ZodDefault>; + options: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + value: z.ZodString; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + placeholder: z.ZodOptional; + helpText: z.ZodOptional; + defaultValue: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + reference: z.ZodOptional; + defaultFromRow: z.ZodOptional; + carryOver: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiresFeature: z.ZodOptional>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">, { + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }>>>>; + variant: z.ZodOptional>; + order: z.ZodOptional; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + successMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + errorMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + refreshAfter: z.ZodDefault; + undoable: z.ZodOptional; + resultDialog: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + acknowledge: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiresFeature: z.ZodOptional>; + disabled: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiredPermissions: z.ZodOptional>; + shortcut: z.ZodOptional; + bulkEnabled: z.ZodOptional; + ai: z.ZodOptional; + description: z.ZodOptional; + category: z.ZodOptional>; + paramHints: z.ZodOptional; + enum: z.ZodOptional>>; + examples: z.ZodOptional>; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional>; + requiresConfirmation: z.ZodOptional; + }, z.core.$strict>>; + recordIdParam: z.ZodOptional; + recordIdField: z.ZodOptional; + bodyShape: z.ZodOptional, z.ZodObject<{ + wrap: z.ZodString; + }, z.core.$strict>]>>; + method: z.ZodOptional>; + bodyExtra: z.ZodOptional>; + mode: z.ZodOptional>; + opensInNewTab: z.ZodOptional; + newTabUrl: z.ZodOptional; + onSuccess: z.ZodOptional>; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | undefined; + objectName?: string | undefined; + icon?: string | undefined; + locations?: ("record_header" | "list_toolbar" | "list_item" | "record_more" | "record_related" | "record_section")[] | undefined; + component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("crypto.uuid" | "api.read" | "api.write" | "api.transaction" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "flow" | "data" | "action" | "analytics" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "delete" | "edit" | "create" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">, { + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | undefined; + objectName?: string | undefined; + icon?: string | undefined; + locations?: ("record_header" | "list_toolbar" | "list_item" | "record_more" | "record_related" | "record_section")[] | undefined; + component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("crypto.uuid" | "api.read" | "api.write" | "api.transaction" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "flow" | "data" | "action" | "analytics" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "delete" | "edit" | "create" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>(config: T & Record, never> & (T extends { + actions: infer As extends readonly unknown[]; + } ? { + actions: { [I in keyof As]: As[I] extends infer T_1 ? T_1 extends As[I] ? T_1 extends { + params: infer Ps extends readonly unknown[]; + } ? T_1 & { + params: { [I_1 in keyof Ps]: Ps[I_1] & Record, never>; }; + } : T_1 : never : never; }; + } : unknown)) => Omit & Pick; + }>>; + objectExtensions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + url: "url"; + email: "email"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + description: z.ZodOptional; + format: z.ZodOptional; + required: z.ZodDefault; + storage: z.ZodOptional; + }, z.core.$strict>>; + searchable: z.ZodDefault; + multiple: z.ZodDefault; + unique: z.ZodOptional, z.ZodLiteral<"organization">]>>; + defaultValue: z.ZodOptional; + maxLength: z.ZodOptional; + minLength: z.ZodOptional; + valueDomain: z.ZodOptional>; + rows: z.ZodOptional; + precision: z.ZodOptional; + scale: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + useGrouping: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + options: z.ZodOptional; + color: z.ZodOptional; + default: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + reference: z.ZodOptional; + referenceVia: z.ZodOptional; + deleteBehavior: z.ZodOptional>; + inlineEdit: z.ZodOptional]>>; + inlineTitle: z.ZodOptional; + inlineColumns: z.ZodOptional; + type: z.ZodOptional>; + width: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + prefix: z.ZodOptional; + step: z.ZodOptional; + reference: z.ZodOptional; + displayField: z.ZodOptional; + idField: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + defaultHidden: z.ZodOptional; + computed: z.ZodOptional; + expr: z.ZodOptional; + scale: z.ZodOptional; + autofill: z.ZodOptional; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + inlineAmountField: z.ZodOptional; + relatedList: z.ZodOptional]>>; + relatedListTitle: z.ZodOptional; + relatedListColumns: z.ZodOptional>; + relatedListFilter: z.ZodOptional>>; + displayField: z.ZodOptional; + descriptionField: z.ZodOptional; + lookupColumns: z.ZodOptional; + width: z.ZodOptional; + type: z.ZodOptional; + }, z.core.$strict>]>>>; + lookupPageSize: z.ZodOptional; + lookupFilters: z.ZodOptional; + value: z.ZodAny; + }, z.core.$strict>>>; + dependsOn: z.ZodOptional; + }, z.core.$strict>]>>>; + allowCreate: z.ZodOptional; + expression: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + returnType: z.ZodOptional>; + summaryOperations: z.ZodOptional; + relationshipField: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strict>>; + language: z.ZodOptional; + step: z.ZodOptional; + currencyConfig: z.ZodOptional; + currencyMode: z.ZodDefault>; + defaultCurrency: z.ZodDefault; + }, z.core.$strict>>; + dimensions: z.ZodOptional; + trackHistory: z.ZodOptional; + group: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + conditionalRequired: z.ZodOptional; + widget: z.ZodOptional; + hidden: z.ZodDefault; + internal: z.ZodOptional; + readonly: z.ZodDefault; + requiredPermissions: z.ZodOptional>; + maskingRule: z.ZodOptional, z.ZodObject<{ + keepHead: z.ZodNumber; + keepTail: z.ZodNumber; + }, z.core.$strict>]>>; + ackPlaintextMasking: z.ZodOptional; + system: z.ZodOptional; + sortable: z.ZodDefault>; + inlineHelpText: z.ZodOptional; + placeholder: z.ZodOptional; + autonumberFormat: z.ZodOptional; + externalId: z.ZodDefault; + }, z.core.$strict>>>; + label: z.ZodOptional; + pluralLabel: z.ZodOptional; + description: z.ZodOptional; + validations: z.ZodOptional>>>; + indexes: z.ZodOptional; + fields: z.ZodArray; + unique: z.ZodDefault, z.ZodLiteral<"organization">]>>>; + type: z.ZodOptional; + partial: z.ZodOptional; + }, z.core.$strict>>>; + priority: z.ZodDefault; + }, z.core.$strict>>>; + apps: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + version: z.ZodOptional; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + branding: z.ZodOptional; + accentColor: z.ZodOptional; + logo: z.ZodOptional; + favicon: z.ZodOptional; + }, z.core.$strict>>; + active: z.ZodDefault>; + isDefault: z.ZodDefault>; + hidden: z.ZodOptional; + _unpublished: z.ZodOptional; + navigation: z.ZodOptional>>>; + areas: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + icon: z.ZodOptional; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + navigation: z.ZodArray>>; + }, z.core.$strict>>>; + contextSelectors: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + icon: z.ZodOptional; + optionsSource: z.ZodObject<{ + endpoint: z.ZodString; + valueKey: z.ZodDefault; + labelKey: z.ZodDefault; + filter: z.ZodOptional>; + value: z.ZodUnion]>; + }, z.core.$strict>>>; + }, z.core.$strict>; + allValue: z.ZodDefault; + persist: z.ZodDefault>; + }, z.core.$strict>>>; + homePageId: z.ZodOptional; + requiredPermissions: z.ZodOptional>; + objects: z.ZodOptional; + apis: z.ZodOptional; + sharing: z.ZodOptional; + embed: z.ZodOptional; + mobileNavigation: z.ZodOptional; + defaultAgent: z.ZodOptional; + aria: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + views: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + object: z.ZodOptional; + list: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + type: z.ZodDefault>; + sort: z.ZodOptional; + }, z.core.$strict>>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + name: z.ZodOptional; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + inlineEdit: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + delete: "delete"; + update: "update"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + url: "url"; + email: "email"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + rowActions: z.ZodOptional>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + none: "none"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + pageName: z.ZodOptional; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + responsive: z.ZodOptional; + performance: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "xlsx" | "csv")[]; + }, ("json" | "xlsx" | "csv")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + resizable: z.ZodOptional; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + compactToolbar: z.ZodOptional; + selection: z.ZodOptional>; + }, z.core.$strict>>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + }, z.core.$strict>>; + form: z.ZodOptional>; + layout: z.ZodOptional>; + columns: z.ZodOptional; + title: z.ZodOptional; + description: z.ZodOptional; + defaultTab: z.ZodOptional; + tabPosition: z.ZodOptional>; + allowSkip: z.ZodOptional; + showStepIndicator: z.ZodOptional; + splitDirection: z.ZodOptional>; + splitSize: z.ZodOptional; + splitResizable: z.ZodOptional; + drawerSide: z.ZodOptional>; + drawerWidth: z.ZodOptional; + modalSize: z.ZodOptional>; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + sections: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional; + collapsible: z.ZodDefault; + collapsed: z.ZodDefault; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibleOn: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + columns: z.ZodPipe, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>, z.ZodTransform<1 | 2 | 4 | 3, "1" | 1 | 2 | 4 | "2" | "3" | "4" | 3>>; + pane: z.ZodOptional>; + group: z.ZodOptional; + fields: z.ZodOptional>]>>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">, { + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }>>>>; + groups: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional; + collapsible: z.ZodDefault; + collapsed: z.ZodDefault; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibleOn: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + columns: z.ZodPipe, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>, z.ZodTransform<1 | 2 | 4 | 3, "1" | 1 | 2 | 4 | "2" | "3" | "4" | 3>>; + pane: z.ZodOptional>; + group: z.ZodOptional; + fields: z.ZodOptional>]>>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">, { + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }>>>>; + subforms: z.ZodOptional; + columns: z.ZodOptional>; + amountField: z.ZodOptional; + totalField: z.ZodOptional; + title: z.ZodOptional; + addLabel: z.ZodOptional; + minRows: z.ZodOptional; + maxRows: z.ZodOptional; + }, z.core.$strict>>>; + defaultSort: z.ZodOptional; + sharing: z.ZodOptional; + publicLink: z.ZodOptional; + password: z.ZodOptional; + allowedDomains: z.ZodOptional>; + expiresAt: z.ZodOptional; + allowAnonymous: z.ZodDefault>; + }, z.core.$strict>>; + submitBehavior: z.ZodOptional; + title: z.ZodOptional; + message: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"redirect">; + url: z.ZodString; + delayMs: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"continue">; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"next-record">; + }, z.core.$strict>], "kind">>; + buttons: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + cancel: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + reset: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + }, z.core.$strict>>; + defaults: z.ZodOptional>; + aria: z.ZodOptional; + }, z.core.$strict>>; + listViews: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + type: z.ZodDefault>; + sort: z.ZodOptional; + }, z.core.$strict>>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + name: z.ZodOptional; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + inlineEdit: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + delete: "delete"; + update: "update"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + url: "url"; + email: "email"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + rowActions: z.ZodOptional>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + none: "none"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + pageName: z.ZodOptional; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + responsive: z.ZodOptional; + performance: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "xlsx" | "csv")[]; + }, ("json" | "xlsx" | "csv")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + resizable: z.ZodOptional; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + compactToolbar: z.ZodOptional; + selection: z.ZodOptional>; + }, z.core.$strict>>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + formViews: z.ZodOptional>; + layout: z.ZodOptional>; + columns: z.ZodOptional; + title: z.ZodOptional; + description: z.ZodOptional; + defaultTab: z.ZodOptional; + tabPosition: z.ZodOptional>; + allowSkip: z.ZodOptional; + showStepIndicator: z.ZodOptional; + splitDirection: z.ZodOptional>; + splitSize: z.ZodOptional; + splitResizable: z.ZodOptional; + drawerSide: z.ZodOptional>; + drawerWidth: z.ZodOptional; + modalSize: z.ZodOptional>; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + sections: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional; + collapsible: z.ZodDefault; + collapsed: z.ZodDefault; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibleOn: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + columns: z.ZodPipe, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>, z.ZodTransform<1 | 2 | 4 | 3, "1" | 1 | 2 | 4 | "2" | "3" | "4" | 3>>; + pane: z.ZodOptional>; + group: z.ZodOptional; + fields: z.ZodOptional>]>>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">, { + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }>>>>; + groups: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional; + collapsible: z.ZodDefault; + collapsed: z.ZodDefault; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibleOn: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + columns: z.ZodPipe, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>, z.ZodTransform<1 | 2 | 4 | 3, "1" | 1 | 2 | 4 | "2" | "3" | "4" | 3>>; + pane: z.ZodOptional>; + group: z.ZodOptional; + fields: z.ZodOptional>]>>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">, { + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }>>>>; + subforms: z.ZodOptional; + columns: z.ZodOptional>; + amountField: z.ZodOptional; + totalField: z.ZodOptional; + title: z.ZodOptional; + addLabel: z.ZodOptional; + minRows: z.ZodOptional; + maxRows: z.ZodOptional; + }, z.core.$strict>>>; + defaultSort: z.ZodOptional; + sharing: z.ZodOptional; + publicLink: z.ZodOptional; + password: z.ZodOptional; + allowedDomains: z.ZodOptional>; + expiresAt: z.ZodOptional; + allowAnonymous: z.ZodDefault>; + }, z.core.$strict>>; + submitBehavior: z.ZodOptional; + title: z.ZodOptional; + message: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"redirect">; + url: z.ZodString; + delayMs: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"continue">; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"next-record">; + }, z.core.$strict>], "kind">>; + buttons: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + cancel: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + reset: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + }, z.core.$strict>>; + defaults: z.ZodOptional>; + aria: z.ZodOptional; + }, z.core.$strict>>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + viewItems: z.ZodOptional; + pages: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + type: z.ZodDefault>; + variables: z.ZodOptional>; + defaultValue: z.ZodOptional; + source: z.ZodOptional; + }, z.core.$strict>>>; + object: z.ZodOptional; + template: z.ZodDefault; + regions: z.ZodDefault>; + components: z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>>; + }, z.core.$strict>>>>; + isDefault: z.ZodDefault; + assignedProfiles: z.ZodOptional; + interfaceConfig: z.ZodOptional; + columns: z.ZodOptional, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + none: "none"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + filterBy: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + levels: z.ZodOptional; + sourceView: z.ZodOptional; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + showAllRecords: z.ZodOptional; + allowAddTab: z.ZodOptional; + }, z.core.$strict>>; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + buttons: z.ZodOptional>; + recordAction: z.ZodOptional>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + kind: z.ZodDefault>; + slots: z.ZodOptional, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>, z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>]>>; + actions: z.ZodOptional, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>, z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>]>>; + alerts: z.ZodOptional, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>, z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>]>>; + highlights: z.ZodOptional, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>, z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>]>>; + details: z.ZodOptional, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>, z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>]>>; + tabs: z.ZodOptional, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>, z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>]>>; + discussion: z.ZodOptional, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>, z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>]>>; + }, z.core.$strict>>; + source: z.ZodOptional; + requires: z.ZodOptional>; + }, z.core.$strict>>>; + dashboards: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + header: z.ZodOptional; + showDescription: z.ZodDefault; + actions: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + actionUrl: z.ZodString; + actionType: z.ZodOptional>; + icon: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>; + widgets: z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodDefault>; + chartConfig: z.ZodOptional; + title: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + subtitle: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + xAxis: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + stepSize: z.ZodOptional; + showGridLines: z.ZodDefault; + position: z.ZodOptional>; + logarithmic: z.ZodDefault; + }, z.core.$strict>>; + yAxis: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + stepSize: z.ZodOptional; + showGridLines: z.ZodDefault; + position: z.ZodOptional>; + logarithmic: z.ZodDefault; + }, z.core.$strict>>>; + series: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + color: z.ZodOptional; + stack: z.ZodOptional; + yAxis: z.ZodDefault>; + variant: z.ZodOptional>>; + dashArray: z.ZodOptional; + opacity: z.ZodOptional; + }, z.core.$strict>>>; + colors: z.ZodOptional, z.ZodRecord]>>; + height: z.ZodOptional; + showLegend: z.ZodDefault; + showDataLabels: z.ZodDefault; + annotations: z.ZodOptional>; + axis: z.ZodDefault>; + value: z.ZodUnion; + endValue: z.ZodOptional>; + color: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + style: z.ZodDefault>; + }, z.core.$strict>>>; + interaction: z.ZodOptional; + brush: z.ZodDefault; + }, z.core.$strict>>; + aria: z.ZodOptional; + }, z.core.$strict>>; + colorVariant: z.ZodOptional>; + requiresObject: z.ZodOptional; + requiresService: z.ZodOptional; + actionUrl: z.ZodOptional; + actionType: z.ZodOptional; + actionIcon: z.ZodOptional; + filter: z.ZodOptional>>; + compareTo: z.ZodOptional; + dimension: z.ZodOptional; + }, z.core.$strict>>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + layout: z.ZodOptional>; + options: z.ZodOptional>; + sortBy: z.ZodOptional; + sortOrder: z.ZodOptional>; + limit: z.ZodOptional; + stageOrder: z.ZodOptional>>; + }, z.core.$loose>>; + filterBindings: z.ZodOptional]>>>; + suppressWarnings: z.ZodOptional>; + responsive: z.ZodOptional; + aria: z.ZodOptional; + }, z.core.$strict>>; + columns: z.ZodOptional; + gap: z.ZodOptional; + refreshIntervalSeconds: z.ZodOptional; + refreshInterval: z.ZodOptional; + dateRange: z.ZodOptional; + defaultRange: z.ZodDefault>; + allowCustomRange: z.ZodDefault; + }, z.core.$strict>>; + globalFilters: z.ZodOptional; + field: z.ZodString; + object: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + }, z.core.$strict>>>; + optionsFrom: z.ZodOptional>>; + }, z.core.$strict>>; + defaultValue: z.ZodOptional>; + scope: z.ZodDefault>; + targetWidgets: z.ZodOptional>; + }, z.core.$strict>>>; + aria: z.ZodOptional; + performance: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + reports: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodDefault>; + dataset: z.ZodOptional; + rows: z.ZodOptional>; + columns: z.ZodOptional>; + values: z.ZodOptional>; + runtimeFilter: z.ZodOptional>>; + order: z.ZodOptional>; + }, z.core.$strict>>>; + drilldown: z.ZodDefault; + chart: z.ZodOptional; + title: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + subtitle: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + series: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + color: z.ZodOptional; + stack: z.ZodOptional; + yAxis: z.ZodDefault>; + variant: z.ZodOptional>>; + dashArray: z.ZodOptional; + opacity: z.ZodOptional; + }, z.core.$strict>>>; + colors: z.ZodOptional, z.ZodRecord]>>; + height: z.ZodOptional; + showLegend: z.ZodDefault; + showDataLabels: z.ZodDefault; + annotations: z.ZodOptional>; + axis: z.ZodDefault>; + value: z.ZodUnion; + endValue: z.ZodOptional>; + color: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + style: z.ZodDefault>; + }, z.core.$strict>>>; + interaction: z.ZodOptional; + brush: z.ZodDefault; + }, z.core.$strict>>; + aria: z.ZodOptional; + xAxis: z.ZodString; + yAxis: z.ZodString; + }, z.core.$strict>>; + blocks: z.ZodOptional>>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + datasets: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + object: z.ZodString; + include: z.ZodOptional>; + filter: z.ZodOptional>>; + dimensions: z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + field: z.ZodString; + type: z.ZodOptional>; + dateGranularity: z.ZodOptional>; + }, z.core.$strict>>; + measures: z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + aggregate: z.ZodOptional>; + field: z.ZodOptional; + filter: z.ZodOptional>>; + format: z.ZodOptional; + currency: z.ZodOptional; + derived: z.ZodOptional; + of: z.ZodArray; + }, z.core.$strict>>; + }, z.core.$strict>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + actions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + objectName: z.ZodOptional; + icon: z.ZodOptional; + locations: z.ZodOptional>>; + component: z.ZodOptional>; + type: z.ZodDefault>; + target: z.ZodOptional; + openIn: z.ZodOptional>; + body: z.ZodOptional; + source: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + language: z.ZodLiteral<"js">; + source: z.ZodString; + capabilities: z.ZodDefault>>; + timeoutMs: z.ZodOptional; + memoryMb: z.ZodOptional; + }, z.core.$strict>], "language">>; + operation: z.ZodOptional>; + patch: z.ZodOptional>; + execution: z.ZodOptional>; + execute: z.ZodOptional; + params: z.ZodOptional; + field: z.ZodOptional; + objectOverride: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + required: z.ZodDefault>; + options: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + value: z.ZodString; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + placeholder: z.ZodOptional; + helpText: z.ZodOptional; + defaultValue: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + reference: z.ZodOptional; + defaultFromRow: z.ZodOptional; + carryOver: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiresFeature: z.ZodOptional>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">, { + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }>>>>; + variant: z.ZodOptional>; + order: z.ZodOptional; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + successMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + errorMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + refreshAfter: z.ZodDefault; + undoable: z.ZodOptional; + resultDialog: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + acknowledge: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiresFeature: z.ZodOptional>; + disabled: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiredPermissions: z.ZodOptional>; + shortcut: z.ZodOptional; + bulkEnabled: z.ZodOptional; + ai: z.ZodOptional; + description: z.ZodOptional; + category: z.ZodOptional>; + paramHints: z.ZodOptional; + enum: z.ZodOptional>>; + examples: z.ZodOptional>; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional>; + requiresConfirmation: z.ZodOptional; + }, z.core.$strict>>; + recordIdParam: z.ZodOptional; + recordIdField: z.ZodOptional; + bodyShape: z.ZodOptional, z.ZodObject<{ + wrap: z.ZodString; + }, z.core.$strict>]>>; + method: z.ZodOptional>; + bodyExtra: z.ZodOptional>; + mode: z.ZodOptional>; + opensInNewTab: z.ZodOptional; + newTabUrl: z.ZodOptional; + onSuccess: z.ZodOptional>; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | undefined; + objectName?: string | undefined; + icon?: string | undefined; + locations?: ("record_header" | "list_toolbar" | "list_item" | "record_more" | "record_related" | "record_section")[] | undefined; + component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("crypto.uuid" | "api.read" | "api.write" | "api.transaction" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "flow" | "data" | "action" | "analytics" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "delete" | "edit" | "create" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">, { + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | undefined; + objectName?: string | undefined; + icon?: string | undefined; + locations?: ("record_header" | "list_toolbar" | "list_item" | "record_more" | "record_related" | "record_section")[] | undefined; + component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("crypto.uuid" | "api.read" | "api.write" | "api.transaction" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "flow" | "data" | "action" | "analytics" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "delete" | "edit" | "create" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>>; + flows: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + successMessage: z.ZodOptional; + errorMessage: z.ZodOptional; + version: z.ZodDefault; + status: z.ZodDefault>; + template: z.ZodOptional; + type: z.ZodEnum<{ + screen: "screen"; + autolaunched: "autolaunched"; + api: "api"; + record_change: "record_change"; + schedule: "schedule"; + }>; + variables: z.ZodOptional; + isOutput: z.ZodDefault; + defaultValue: z.ZodOptional; + }, z.core.$strict>>>; + nodes: z.ZodArray>; + connectorConfig: z.ZodOptional>; + }, z.core.$strict>>; + position: z.ZodOptional>; + timeoutMs: z.ZodOptional; + inputSchema: z.ZodOptional; + required: z.ZodDefault; + description: z.ZodOptional; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional; + waitEventConfig: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + timeoutMs: z.ZodOptional; + onTimeout: z.ZodOptional; + }, z.core.$strict>>; + boundaryConfig: z.ZodOptional; + interrupting: z.ZodDefault; + errorCode: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform<{ + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "webhook" | "signal" | "timer" | "manual"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "signal" | "timer" | "cancel"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }, { + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "condition" | "webhook" | "signal" | "timer" | "manual"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "signal" | "timer" | "cancel"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }>>>; + edges: z.ZodArray>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + source: z.ZodString; + }, z.core.$strip>]>>; + type: z.ZodDefault>; + label: z.ZodOptional; + isDefault: z.ZodDefault; + }, z.core.$strict>>; + active: z.ZodOptional; + runAs: z.ZodDefault>; + errorHandling: z.ZodOptional; + fallbackNodeId: z.ZodOptional; + backoffMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; + maxRetryDelayMs: z.ZodDefault; + jitter: z.ZodDefault; + retryDelayMs: z.ZodOptional; + strategy: z.ZodDefault>; + }, z.core.$strict>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + jobs: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{ + type: z.ZodLiteral<"cron">; + expression: z.ZodUnion>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"cron">; + }, z.core.$strip>]>; + timezone: z.ZodDefault>; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"interval">; + intervalMs: z.ZodNumber; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"once">; + at: z.ZodString; + }, z.core.$strip>], "type">; + handler: z.ZodString; + retryPolicy: z.ZodOptional; + backoffMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; + maxRetryDelayMs: z.ZodDefault; + jitter: z.ZodDefault; + retryDelayMs: z.ZodOptional; + }, z.core.$strip>>; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + enabled: z.ZodDefault; + }, z.core.$strict>>>; + emailTemplates: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + category: z.ZodDefault>; + locale: z.ZodDefault; + subject: z.ZodString; + bodyHtml: z.ZodString; + bodyText: z.ZodOptional; + variables: z.ZodDefault>; + required: z.ZodDefault; + description: z.ZodOptional; + }, z.core.$strip>>>; + fromOverride: z.ZodOptional; + address: z.ZodString; + }, z.core.$strip>>; + replyTo: z.ZodOptional; + active: z.ZodDefault; + isSystem: z.ZodDefault; + description: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + docs: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + content: z.ZodString; + order: z.ZodOptional; + group: z.ZodOptional; + tags: z.ZodOptional>; + translations: z.ZodOptional; + description: z.ZodOptional; + content: z.ZodString; + }, z.core.$strip>>>; + }, z.core.$strict>>>; + books: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + slug: z.ZodOptional; + icon: z.ZodOptional; + order: z.ZodOptional; + audience: z.ZodOptional, z.ZodLiteral<"public">, z.ZodObject<{ + permissionSet: z.ZodString; + }, z.core.$strip>]>>; + groups: z.ZodArray; + order: z.ZodOptional; + include: z.ZodOptional]>>; + package: z.ZodOptional; + pages: z.ZodOptional; + href: z.ZodOptional; + label: z.ZodOptional; + badge: z.ZodOptional; + icon: z.ZodOptional; + }, z.core.$strip>]>>>; + }, z.core.$strip>>; + }, z.core.$strict>>>; + positions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + delegatable: z.ZodDefault; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + permissions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + packageId: z.ZodOptional; + managedBy: z.ZodOptional>; + isDefault: z.ZodDefault; + objects: z.ZodRecord> & { + readonly shape: { + allowCreate: z.ZodDefault; + allowRead: z.ZodDefault; + allowEdit: z.ZodDefault; + allowDelete: z.ZodDefault; + allowExport: z.ZodOptional; + allowTransfer: z.ZodDefault; + allowRestore: z.ZodOptional; + allowPurge: z.ZodOptional; + viewAllRecords: z.ZodDefault; + modifyAllRecords: z.ZodDefault; + readScope: z.ZodOptional>; + writeScope: z.ZodOptional>; + }; + }>; + fields: z.ZodOptional; + editable: z.ZodDefault; + }, z.core.$strict>>>; + systemPermissions: z.ZodOptional>; + tabPermissions: z.ZodOptional>>; + rowLevelSecurity: z.ZodOptional; + description: z.ZodOptional; + object: z.ZodString; + operation: z.ZodEnum<{ + delete: "delete"; + select: "select"; + insert: "insert"; + update: "update"; + all: "all"; + }>; + using: z.ZodOptional; + check: z.ZodOptional; + positions: z.ZodOptional>; + enabled: z.ZodDefault; + priority: z.ZodOptional; + tags: z.ZodOptional>; + }, z.core.$strict>>>; + adminScope: z.ZodOptional; + manageAssignments: z.ZodDefault; + manageBindings: z.ZodDefault; + authorEnvironmentSets: z.ZodDefault; + assignablePermissionSets: z.ZodDefault>; + }, z.core.$strict>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + scope: z.ZodDefault>; + packageId: z.ZodOptional; + }, z.core.$strict>>>; + sharingRules: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + object: z.ZodString; + active: z.ZodDefault; + accessLevel: z.ZodDefault>; + sharedWith: z.ZodObject<{ + type: z.ZodEnum<{ + position: "position"; + field: "field"; + user: "user"; + business_unit: "business_unit"; + team: "team"; + unit_and_subordinates: "unit_and_subordinates"; + }>; + value: z.ZodString; + }, z.core.$strict>; + type: z.ZodLiteral<"criteria">; + condition: z.ZodUnion>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + }, z.core.$strict>>>; + apis: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + path: z.ZodString; + method: z.ZodEnum<{ + GET: "GET"; + POST: "POST"; + PUT: "PUT"; + DELETE: "DELETE"; + PATCH: "PATCH"; + HEAD: "HEAD"; + OPTIONS: "OPTIONS"; + }>; + summary: z.ZodOptional; + description: z.ZodOptional; + type: z.ZodEnum<{ + flow: "flow"; + script: "script"; + object_operation: "object_operation"; + proxy: "proxy"; + }>; + target: z.ZodOptional; + objectParams: z.ZodOptional; + operation: z.ZodOptional>; + }, z.core.$strip>>; + inputMapping: z.ZodOptional; + }, z.core.$strip>>>; + outputMapping: z.ZodOptional; + }, z.core.$strip>>>; + authRequired: z.ZodDefault; + rateLimit: z.ZodOptional; + windowMs: z.ZodDefault; + maxRequests: z.ZodDefault; + }, z.core.$strict>>; + cacheTtlSeconds: z.ZodOptional; + cacheTtl: z.ZodOptional; + }, z.core.$strict>>>; + webhooks: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + object: z.ZodOptional; + triggers: z.ZodOptional>>; + url: z.ZodString; + method: z.ZodDefault>; + headers: z.ZodOptional>; + timeoutMs: z.ZodDefault; + secret: z.ZodOptional; + isActive: z.ZodDefault; + description: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + api: z.ZodOptional; + enableProjectScoping: z.ZodOptional; + projectResolution: z.ZodOptional>; + enforceProjectMembership: z.ZodOptional; + }, z.core.$strip>>; + server: z.ZodOptional; + windowMs: z.ZodDefault; + maxRequests: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + trustProxy: z.ZodDefault; + }, z.core.$strict>>; + agents: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + avatar: z.ZodOptional; + role: z.ZodString; + instructions: z.ZodString; + model: z.ZodOptional>; + model: z.ZodString; + temperature: z.ZodDefault; + maxTokens: z.ZodOptional; + topP: z.ZodOptional; + }, z.core.$strict>>; + lifecycle: z.ZodOptional; + contextSchema: z.ZodOptional>; + initial: z.ZodString; + states: z.ZodRecord>>; + on: z.ZodOptional; + cond: z.ZodOptional>; + }, z.core.$strict>]>>; + actions: z.ZodOptional>; + }, z.core.$strict>]>>>; + description: z.ZodOptional; + }, z.core.$strict>, z.ZodArray; + cond: z.ZodOptional>; + }, z.core.$strict>]>>; + actions: z.ZodOptional>; + }, z.core.$strict>]>>>; + description: z.ZodOptional; + }, z.core.$strict>>]>>>; + }, z.core.$strict>>; + surface: z.ZodDefault>; + skills: z.ZodOptional>; + tools: z.ZodOptional; + knowledge: z.ZodOptional; + active: z.ZodDefault; + access: z.ZodOptional>; + permissions: z.ZodOptional>; + planning: z.ZodOptional; + }, z.core.$strict>>; + memory: z.ZodOptional; + store: z.ZodDefault>; + maxEntries: z.ZodOptional; + }, z.core.$strict>>; + reflectionInterval: z.ZodOptional; + }, z.core.$strict>>; + guardrails: z.ZodOptional; + maxExecutionTimeSec: z.ZodOptional; + blockedTopics: z.ZodOptional>; + }, z.core.$strict>>; + structuredOutput: z.ZodOptional; + schema: z.ZodOptional>; + strict: z.ZodDefault; + retryOnValidationFailure: z.ZodDefault; + maxRetries: z.ZodDefault; + fallbackFormat: z.ZodOptional>; + transformPipeline: z.ZodOptional>>; + }, z.core.$strict>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + tools: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + description: z.ZodString; + parameters: z.ZodRecord; + outputSchema: z.ZodOptional>; + objectName: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + skills: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + surface: z.ZodDefault>; + instructions: z.ZodOptional; + tools: z.ZodArray; + triggerPhrases: z.ZodOptional; + triggerConditions: z.ZodOptional; + value: z.ZodUnion]>; + }, z.core.$strip>>>; + active: z.ZodDefault; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + hooks: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + object: z.ZodUnion]>; + events: z.ZodArray>; + handler: z.ZodOptional any, (...args: any[]) => any>]>>; + body: z.ZodOptional; + source: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + language: z.ZodLiteral<"js">; + source: z.ZodString; + capabilities: z.ZodDefault>>; + timeoutMs: z.ZodOptional; + memoryMb: z.ZodOptional; + }, z.core.$strict>], "language">>; + priority: z.ZodDefault; + async: z.ZodDefault; + condition: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + description: z.ZodOptional; + retryPolicy: z.ZodOptional; + backoffMs: z.ZodDefault; + }, z.core.$strict>>; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + onError: z.ZodDefault>; + runAs: z.ZodDefault>; + }, z.core.$strict>>>; + functions: z.ZodOptional, z.ZodObject<{ + handler: z.ZodFunction; + effect: z.ZodDefault>; + }, z.core.$strict>, z.ZodString, z.ZodObject<{ + effect: z.ZodDefault>; + handler: z.ZodString; + }, z.core.$strict>]>>, z.ZodArray, z.ZodString]>; + packageId: z.ZodOptional; + effect: z.ZodOptional>; + }, z.core.$strip>>]>>; + onEnable: z.ZodOptional>; + mappings: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + sourceFormat: z.ZodDefault>; + targetObject: z.ZodString; + fieldMapping: z.ZodArray]>; + target: z.ZodUnion]>; + transform: z.ZodDefault>; + params: z.ZodOptional; + valueMap: z.ZodOptional>; + separator: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + mode: z.ZodDefault>; + upsertKey: z.ZodOptional>; + }, z.core.$strict>>>; + analyticsCubes: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + title: z.ZodOptional; + description: z.ZodOptional; + sql: z.ZodString; + measures: z.ZodRecord; + type: z.ZodEnum<{ + string: "string"; + number: "number"; + boolean: "boolean"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_distinct: "count_distinct"; + }>; + sql: z.ZodString; + format: z.ZodOptional; + }, z.core.$strict>>; + dimensions: z.ZodRecord; + type: z.ZodEnum<{ + string: "string"; + number: "number"; + boolean: "boolean"; + time: "time"; + geo: "geo"; + }>; + sql: z.ZodString; + granularities: z.ZodOptional>>; + }, z.core.$strict>>; + joins: z.ZodOptional>; + sql: z.ZodString; + }, z.core.$strict>>>; + refreshKey: z.ZodOptional; + sql: z.ZodOptional; + }, z.core.$strict>>; + public: z.ZodDefault; + }, z.core.$strict>>>; + connectors: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + type: z.ZodEnum<{ + custom: "custom"; + database: "database"; + api: "api"; + saas: "saas"; + file_storage: "file_storage"; + message_queue: "message_queue"; + }>; + description: z.ZodOptional; + icon: z.ZodOptional; + authentication: z.ZodDefault; + authorizationUrl: z.ZodString; + tokenUrl: z.ZodString; + clientId: z.ZodString; + clientSecret: z.ZodString; + scopes: z.ZodOptional>; + redirectUri: z.ZodOptional; + refreshToken: z.ZodOptional; + tokenExpiry: z.ZodOptional; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"api-key">; + key: z.ZodString; + headerName: z.ZodDefault; + paramName: z.ZodOptional; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"basic">; + username: z.ZodString; + password: z.ZodString; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"bearer">; + token: z.ZodString; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"none">; + }, z.core.$strip>], "type">>>; + provider: z.ZodOptional; + providerConfig: z.ZodOptional>; + auth: z.ZodOptional; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"bearer">; + credentialRef: z.ZodString; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"api-key">; + credentialRef: z.ZodString; + headerName: z.ZodOptional; + paramName: z.ZodOptional; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"basic">; + username: z.ZodString; + credentialRef: z.ZodString; + }, z.core.$strip>], "type">>; + actions: z.ZodOptional; + inputSchema: z.ZodOptional>; + outputSchema: z.ZodOptional>; + effect: z.ZodOptional>; + }, z.core.$strip>>>; + triggers: z.ZodOptional; + type: z.ZodEnum<{ + webhook: "webhook"; + polling: "polling"; + }>; + intervalSeconds: z.ZodOptional; + interval: z.ZodOptional; + }, z.core.$strip>>>; + syncConfig: z.ZodOptional>>; + direction: z.ZodDefault>>; + realtimeSync: z.ZodDefault>; + timestampField: z.ZodOptional; + conflictResolution: z.ZodDefault>>; + batchSize: z.ZodDefault>; + deleteMode: z.ZodDefault>>; + filters: z.ZodOptional>; + }, z.core.$strip>>; + fieldMappings: z.ZodOptional; + defaultValue: z.ZodOptional; + dataType: z.ZodOptional>; + required: z.ZodDefault; + syncMode: z.ZodDefault>; + }, z.core.$strip>>>; + webhooks: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + object: z.ZodOptional; + triggers: z.ZodOptional>>; + url: z.ZodString; + method: z.ZodDefault>; + headers: z.ZodOptional>; + timeoutMs: z.ZodDefault; + secret: z.ZodOptional; + isActive: z.ZodDefault; + description: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + events: z.ZodOptional>>; + signatureAlgorithm: z.ZodDefault>>; + }, z.core.$strict>>>; + rateLimitConfig: z.ZodOptional; + retryConfig: z.ZodOptional>>; + maxAttempts: z.ZodDefault>; + initialDelayMs: z.ZodDefault>; + maxDelayMs: z.ZodDefault>; + backoffMultiplier: z.ZodDefault>; + retryableStatusCodes: z.ZodDefault>>; + retryOnNetworkError: z.ZodDefault>; + jitter: z.ZodDefault>; + }, z.core.$strip>>; + connectionTimeoutMs: z.ZodDefault>; + requestTimeoutMs: z.ZodDefault>; + status: z.ZodDefault>>; + enabled: z.ZodDefault>; + errorMapping: z.ZodOptional; + health: z.ZodOptional>; + timeoutMs: z.ZodDefault>; + endpoint: z.ZodOptional; + method: z.ZodOptional>; + expectedStatus: z.ZodDefault>; + unhealthyThreshold: z.ZodDefault>; + healthyThreshold: z.ZodDefault>; + }, z.core.$strip>>; + circuitBreaker: z.ZodOptional>; + resetTimeoutMs: z.ZodDefault>; + halfOpenMaxRequests: z.ZodDefault>; + monitoringWindowMs: z.ZodDefault>; + monitoringWindow: z.ZodOptional; + fallbackStrategy: z.ZodOptional>; + }, z.core.$strip>>; + }, z.core.$strip>>; + metadata: z.ZodOptional>; + }, z.core.$strip>>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + plugins: z.ZodOptional>; + requires: z.ZodOptional>; + tiers: z.ZodOptional>; + devPlugins: z.ZodOptional; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + app: "app"; + ui: "ui"; + driver: "driver"; + server: "server"; + theme: "theme"; + agent: "agent"; + objectql: "objectql"; + plugin: "plugin"; + module: "module"; + gateway: "gateway"; + adapter: "adapter"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>, z.ZodString]>>>; + runtimeModule: z.ZodOptional; + manifest: z.ZodOptional; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + app: "app"; + ui: "ui"; + driver: "driver"; + server: "server"; + theme: "theme"; + agent: "agent"; + objectql: "objectql"; + plugin: "plugin"; + module: "module"; + gateway: "gateway"; + adapter: "adapter"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>>; + packages: z.ZodOptional, Record, z.core.$ZodTypeInternals, Record>>; + }, z.core.$strict>>>; +}, z.core.$strict>; + +// ── P (const) ── +declare const P: typeof cel; + +// ── PLATFORM_ALWAYS_ON_CAPABILITIES (const) ── +declare const PLATFORM_ALWAYS_ON_CAPABILITIES: readonly string[]; + +// ── PLATFORM_CAPABILITY_PROVIDERS (const) ── +declare const PLATFORM_CAPABILITY_PROVIDERS: Readonly>; + +// ── PLATFORM_CAPABILITY_TOKENS (const) ── +declare const PLATFORM_CAPABILITY_TOKENS: readonly string[]; + +// ── PLATFORM_PLUGIN_WIRED_RUNTIMES (const) ── +declare const PLATFORM_PLUGIN_WIRED_RUNTIMES: Readonly>; + +// ── PlatformCapabilityProvider (interface) ── +interface PlatformCapabilityProvider { + /** + * npm package whose plugin the runtime loads to satisfy this capability, or + * `null` when the capability is a cloud-runtime tier with no standalone + * package to install (`ai-seat` / `governance`). + */ + readonly package: string | null; + /** Which edition ships an installable version of {@link package}. */ + readonly edition: CapabilityEdition; + /** + * Short human note on the edition boundary, surfaced verbatim inside the + * preflight / boot error so the message carries its own context. + */ + readonly note?: string; +} + +// ── PlatformPluginWiredRuntime (interface) ── +interface PlatformPluginWiredRuntime { + /** + * Which edition ships the runtime. Never `open` — an open-edition package is + * part of the public framework distribution and is resolved through a + * `requires` token, so it belongs in {@link PLATFORM_CAPABILITY_PROVIDERS}, + * not here. The exclusion is type-level so a mis-filed row cannot compile. + */ + readonly edition: Exclude; + /** + * Short human note on where the runtime ships from and how it is loaded. + * Required, not optional: recording that provenance is this roster's entire + * job — a row without it answers nothing. + */ + readonly note: string; +} + +// ── PluginContext (type) ── +type PluginContext = PluginContextData; + +// ── Predicate (type) ── +type Predicate = z.input; + +// ── PredicateInput (type) ── +type PredicateInput = z.input; + +// ── PredicateInputSchema (const) ── +declare const PredicateInputSchema: z.ZodUnion>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>]>; + +// ── PredicateSchema (const) ── +declare const PredicateSchema: z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── RETIRED_DEFS_BY_MAJOR (const) ── +declare const RETIRED_DEFS_BY_MAJOR: Readonly>; + +// ── RETIRED_KEYS_BY_MAJOR (const) ── +declare const RETIRED_KEYS_BY_MAJOR: Readonly>; + +// ── STACK_DEFINITION_KEYS (const) ── +declare const STACK_DEFINITION_KEYS: readonly StackDefinitionKey[]; + +// ── STACK_KEY_GUIDANCE (const) ── +declare const STACK_KEY_GUIDANCE: Readonly>; + +// ── STACK_RUNTIME_MEMBERS (const) ── +declare const STACK_RUNTIME_MEMBERS: readonly ["onEnable", "functions"]; + +// ── SemanticMigration (interface) ── +interface SemanticMigration { + /** Stable, kebab-case id. */ + id: string; + /** Dotted surface the change governs, e.g. `object.titleFormat`. */ + surface: string; + /** The canonical replacement the author should move to. */ + replacement: string; + /** Why this is not losslessly convertible (the one load-bearing prose field). */ + reason: string; + /** How the consumer proves the hand-migration correct (their own verify loop). */ + acceptanceCriteria: string; +} + +// ── Skill (type) ── +type Skill = z.input; + +// ── SpecChanges (type) ── +type SpecChanges = z.infer; + +// ── SpecChangesSchema (const) ── +declare const SpecChangesSchema: z.ZodObject<{ + from: z.ZodNumber; + to: z.ZodNumber; + added: z.ZodArray>; + converted: z.ZodArray>; + migrated: z.ZodArray>; + removed: z.ZodArray; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── SpecConverted (type) ── +type SpecConverted = z.infer; + +// ── SpecConvertedSchema (const) ── +declare const SpecConvertedSchema: z.ZodObject<{ + surface: z.ZodString; + to: z.ZodString; + conversionId: z.ZodString; + toMajor: z.ZodNumber; +}, z.core.$strip>; + +// ── SpecMigrated (type) ── +type SpecMigrated = z.infer; + +// ── SpecMigratedSchema (const) ── +declare const SpecMigratedSchema: z.ZodObject<{ + surface: z.ZodString; + replacement: z.ZodString; + migrationId: z.ZodString; + toMajor: z.ZodNumber; + rationale: z.ZodString; +}, z.core.$strip>; + +// ── SpecSurfaceAdd (type) ── +type SpecSurfaceAdd = z.infer; + +// ── SpecSurfaceAddSchema (const) ── +declare const SpecSurfaceAddSchema: z.ZodObject<{ + surface: z.ZodString; + since: z.ZodNumber; +}, z.core.$strip>; + +// ── SpecSurfaceRemove (type) ── +type SpecSurfaceRemove = z.infer; + +// ── SpecSurfaceRemoveSchema (const) ── +declare const SpecSurfaceRemoveSchema: z.ZodObject<{ + surface: z.ZodString; + removedIn: z.ZodNumber; + replacement: z.ZodOptional; +}, z.core.$strip>; + +// ── StackDefinitionKey (type) ── +type StackDefinitionKey = 'manifest' | 'packages' | keyof typeof STACK_DEFINITION_COLLECTIONS_SHAPE; + +// ── StateNodeConfig (type) ── +type StateNodeConfig = { + type?: 'atomic' | 'compound' | 'parallel' | 'final' | 'history'; + entry?: ActionRef[]; + exit?: ActionRef[]; + on?: Record; + always?: Transition[]; + initial?: string; + states?: Record; + meta?: { + label?: string; + description?: string; + color?: string; + aiInstructions?: string; + }; +}; + +// ── StoredConversionOptions (type) ── +type StoredConversionOptions = Omit; + +// ── SurfaceDiff (interface) ── +interface SurfaceDiff { + added?: SpecSurfaceAdd[]; + removed?: SpecSurfaceRemove[]; +} + +// ── TemplateExpressionInputSchema (const) ── +declare const TemplateExpressionInputSchema: z.ZodUnion>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"template">; +}, z.core.$strip>]>; + +// ── Tool (type) ── +type Tool = z.input; + +// ── UnknownAuthoringKeyFinding (interface) ── +interface UnknownAuthoringKeyFinding { + /** Dotted path to the offending key, e.g. `objects.crm_case.fields.owner.pii`. */ + path: string; + surface: AuthoringKeySurface; + /** The key the schema does not declare. */ + key: string; + /** + * The canonical key this is a recognisable spelling of, when one is known. + * Comes from {@link FIELD_KEY_GUIDANCE} / {@link OBJECT_KEY_GUIDANCE} first, + * then from an edit-distance match against the declared keys. + */ + suggestion?: string; + /** + * Prescriptive sentence for a key that was RETIRED rather than renamed — + * where "did you mean X" would be wrong because there is no X. + */ + guidance?: string; +} + +// ── ViewKeyCollision (interface) ── +interface ViewKeyCollision { + /** The `.` name that was already registered by an earlier view. */ + requested: string; + /** The disambiguated name the colliding view was renamed to (e.g. `…_2`). */ + renamedTo: string; + /** Which family the renamed (losing) view belongs to. */ + viewKind: 'list' | 'form'; + /** The raw author-supplied key that collided. */ + key: string; +} + +// ── applyConversions (function) ── +declare function applyConversions(stack: Record, options?: ApplyConversionsOptions): Record; + +// ── applyConversionsToFlow (function) ── +declare function applyConversionsToFlow(flow: T, options?: ApplyConversionsOptions): T; + +// ── applyConversionsToStoredItem (function) ── +declare function applyConversionsToStoredItem(type: string, item: T, options?: StoredConversionOptions): T; + +// ── applyMetaMigrations (function) ── +declare function applyMetaMigrations(stack: Record, fromMajor: number, toMajor?: number): MigrationChainResult; + +// ── cel (function) ── +declare function cel(strings: TemplateStringsArray, ...values: unknown[]): Expression; + +// ── classifyRequiredCapability (function) ── +declare function classifyRequiredCapability(token: string, isInstalled: (pkg: string) => boolean): CapabilityClassification; + +// ── collectConversionNotices (function) ── +declare function collectConversionNotices(stack: Record, options?: Omit): { + stack: Record; + notices: ConversionNotice[]; +}; + +// ── composeMigrationChain (function) ── +declare function composeMigrationChain(fromMajor: number, toMajor?: number): MigrationStep[]; + +// ── composeSpecChanges (function) ── +declare function composeSpecChanges(fromMajor: number, toMajor: number, surfaceDiff?: SurfaceDiff): SpecChanges; + +// ── composeStacks (function) ── +declare function composeStacks(stacks: ObjectStackDefinition[], options?: ComposeStacksOptions): ObjectStackDefinition; + +// ── createEvalUser (function) ── +declare function createEvalUser(input: { + id: string; + name?: string | null; + email?: string | null; + positions?: readonly string[] | null; + organizationId?: string | null; +}): EvalUserParsed; + +// ── cron (function) ── +declare function cron(strings: TemplateStringsArray, ...values: unknown[]): Expression; + +// ── defineAction (function) ── +declare function defineAction(config: z.input): ActionParsed; + +// ── defineAgent (function) ── +declare function defineAgent(config: z.input): AgentParsed; + +// ── defineApp (function) ── +declare function defineApp(config: z.input): AppParsed; + +// ── defineBook (function) ── +declare function defineBook(book: Book): Book; + +// ── defineCapability (function) ── +declare function defineCapability(config: CapabilityDeclarationInput): CapabilityDeclaration; + +// ── defineConnector (function) ── +declare function defineConnector(config: z.input): ConnectorParsed; + +// ── defineCube (function) ── +declare function defineCube(config: z.input): CubeParsed; + +// ── defineDatasource (function) ── +declare function defineDatasource(config: z.input): DatasourceParsed; + +// ── defineEmailTemplateDefinition (function) ── +declare function defineEmailTemplateDefinition(config: z.input): EmailTemplateDefinitionParsed; + +// ── defineFlow (function) ── +declare function defineFlow(config: z.input): FlowParsed; + +// ── defineForm (function) ── +declare function defineForm(config: Omit, 'data'> & { + schemaId: string; +}): FormViewParsed; + +// ── defineHook (function) ── +declare function defineHook(config: Hook): ResolvedHook; + +// ── defineJob (function) ── +declare function defineJob(config: z.input): JobParsed; + +// ── defineMapping (function) ── +declare function defineMapping(config: z.input): MappingParsed; + +// ── defineObjectExtension (function) ── +declare function defineObjectExtension(config: z.input): ObjectExtensionParsed; + +// ── definePage (function) ── +declare function definePage(config: z.input): PageParsed; + +// ── definePermissionSet (function) ── +declare function definePermissionSet(config: z.input): PermissionSetParsed; + +// ── definePosition (function) ── +declare function definePosition(config: z.input): PositionParsed; + +// ── defineReport (function) ── +declare function defineReport(config: z.input): ReportParsed; + +// ── defineSharingRule (function) ── +declare function defineSharingRule(config: z.input): SharingRuleParsed; + +// ── defineSkill (function) ── +declare function defineSkill(config: z.input): SkillParsed; + +// ── defineStack (function) ── +declare function defineStack(config: ObjectStackDefinitionInput, options?: DefineStackOptions): ObjectStackDefinition; + +// ── defineTool (function) ── +declare function defineTool(config: z.input): Tool; + +// ── defineTranslationBundle (function) ── +declare function defineTranslationBundle(config: z.input): TranslationBundle; + +// ── defineView (function) ── +declare function defineView(config: z.input): ViewParsed; + +// ── defineViewItem (function) ── +declare function defineViewItem(config: z.input): ViewItem; + +// ── defineWebhook (function) ── +declare function defineWebhook(config: z.input): WebhookParsed; + +// ── expandViewContainer (function) ── +declare function expandViewContainer(object: string, container: any): ExpandedViewItem[]; + +// ── expandViewContainerWithDiagnostics (function) ── +declare function expandViewContainerWithDiagnostics(object: string, container: any): ExpandViewResult; + +// ── expression (function) ── +declare function expression(source: string, dialect?: ExpressionDialect, meta?: ExpressionMeta): Expression; + +// ── findClosestMatches (function) ── +declare function findClosestMatches(input: string, candidates: readonly string[], maxDistance?: number, maxResults?: number): string[]; + +// ── formatSuggestion (function) ── +declare function formatSuggestion(suggestions: string[]): string; + +// ── formatUnknownAuthoringKey (function) ── +declare function formatUnknownAuthoringKey(f: UnknownAuthoringKeyFinding): string; + +// ── formatZodError (function) ── +declare function formatZodError(error: z.ZodError, label?: string): string; + +// ── formatZodIssue (function) ── +declare function formatZodIssue(issue: ZodIssueMinimal): string; + +// ── isAggregatedViewContainer (function) ── +declare function isAggregatedViewContainer(item: any): boolean; + +// ── isKnownPlatformCapability (function) ── +declare function isKnownPlatformCapability(token: string): boolean; + +// ── isViewContainerShaped (function) ── +declare function isViewContainerShaped(item: unknown): boolean; + +// ── lintUnknownAuthoringKeys (function) ── +declare function lintUnknownAuthoringKeys(rawStack: unknown, stackSchema: unknown): UnknownAuthoringKeyFinding[]; + +// ── lintUnknownKeysAgainstSchema (function) ── +declare function lintUnknownKeysAgainstSchema(schema: unknown, value: unknown, surface: string, basePath: string, guidance?: Readonly>): UnknownAuthoringKeyFinding[]; + +// ── lintUnknownStackKeys (function) ── +declare function lintUnknownStackKeys(rawStack: unknown, stackSchema: unknown): UnknownAuthoringKeyFinding[]; + +// ── listLintableAuthoringCollections (function) ── +declare function listLintableAuthoringCollections(stackSchema: unknown): LintableAuthoringCollection[]; + +// ── mapMembershipRole (function) ── +declare function mapMembershipRole(raw: string): string; + +// ── normalizeMetadataCollection (function) ── +declare function normalizeMetadataCollection(value: unknown, keyField?: string): unknown; + +// ── normalizePluginMetadata (function) ── +declare function normalizePluginMetadata>(metadata: T): T; + +// ── normalizeStackInput (function) ── +declare function normalizeStackInput>(input: T, options?: NormalizeStackInputOptions): T; + +// ── objectStackErrorMap (const) ── +declare const objectStackErrorMap: (issue: ObjectStackRawIssue) => { + message: string; +} | null; + +// ── partitionAssembledViewArtifacts (function) ── +declare function partitionAssembledViewArtifacts(items: readonly Record[]): AssembledViewPartition; + +// ── safeParsePretty (function) ── +declare function safeParsePretty(schema: T, data: unknown, label?: string): { + success: true; + data: z.infer; +} | { + success: false; + error: z.ZodError; + formatted: string; +}; + +// ── suggestFieldType (function) ── +declare function suggestFieldType(input: string): string[]; + +// ── tmpl (function) ── +declare function tmpl(strings: TemplateStringsArray, ...values: unknown[]): Expression; diff --git a/packages/spec/api-surface-declarations/security.txt b/packages/spec/api-surface-declarations/security.txt new file mode 100644 index 00000000000..66baafcac93 --- /dev/null +++ b/packages/spec/api-surface-declarations/security.txt @@ -0,0 +1,1418 @@ +# @objectstack/spec — the .d.ts DECLARATION TEXT of every export of `./security`. +# +# The SHAPE half of the ADR-0059 public-API pin, and the readable counterpart of +# api-surface/security.json's breadth half. That file pins each export by +# `name (kind)`, which a signature change, a renamed interface field and a dropped +# union member all leave untouched. This file pins the declaration text, so each of +# those moves a line here. Text and NOT a hash, deliberately: a diff a reviewer can +# read is what makes contract review a guard rather than a rubber stamp. +# +# Verbatim from the PACKED `.d.ts` reached through this package's `exports` map — the +# declarations a consumer installs, never `src/`. A declaration's leading TSDoc is +# excluded: documentation drift is `check:docs`'s axis, not this one. +# +# entry: ./security +# exported names: 90 +# declarations: 95 +# +# GENERATED — ⛔ never hand-edited. Regenerate after a real build: +# pnpm --filter @objectstack/spec build && pnpm --filter @objectstack/spec gen:api-surface-declarations +# Gated by `check:api-surface-declarations`; a hand edit is a red gate, not a change. + +// ── AccessMatrix (type) ── +type AccessMatrix = z.input; + +// ── AccessMatrixEntry (type) ── +type AccessMatrixEntry = z.input; + +// ── AccessMatrixEntrySchema (const) ── +declare const AccessMatrixEntrySchema: z.ZodObject<{ + permissionSet: z.ZodString; + object: z.ZodString; + create: z.ZodBoolean; + read: z.ZodBoolean; + edit: z.ZodBoolean; + delete: z.ZodBoolean; + viewAllRecords: z.ZodBoolean; + modifyAllRecords: z.ZodBoolean; + readScope: z.ZodOptional; + writeScope: z.ZodOptional; + sharingModel: z.ZodOptional; +}, z.core.$strip>; + +// ── AccessMatrixParsed (type) ── +type AccessMatrixParsed = z.infer; + +// ── AccessMatrixSchema (const) ── +declare const AccessMatrixSchema: z.ZodObject<{ + version: z.ZodDefault>; + entries: z.ZodDefault; + writeScope: z.ZodOptional; + sharingModel: z.ZodOptional; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── AdminScope (type) ── +type AdminScope = z.input; + +// ── AdminScopeParsed (type) ── +type AdminScopeParsed = z.infer; + +// ── AdminScopeSchema (const) ── +declare const AdminScopeSchema: z.ZodObject<{ + businessUnit: z.ZodString; + includeSubtree: z.ZodDefault; + manageAssignments: z.ZodDefault; + manageBindings: z.ZodDefault; + authorEnvironmentSets: z.ZodDefault; + assignablePermissionSets: z.ZodDefault>; +}, z.core.$strict>; + +// ── AnchorBindingContext (interface) ── +interface AnchorBindingContext { + /** + * Capability names declared by the packages installed in this stack — plain + * names, or declarations/`sys_capability` rows carrying a `name` (every other + * field on such a row is ignored, so a caller hands over what it already has + * and never transcribes). Omit it (or pass an empty list) and the predicates + * refuse exactly as they did before the input existed. + */ + declaredCapabilities?: Iterable; +} + +// ── AuthzPosture (type) ── +type AuthzPosture = z.input; + +// ── AuthzPostureSchema (const) ── +declare const AuthzPostureSchema: z.ZodEnum<{ + MEMBER: "MEMBER"; + PLATFORM_ADMIN: "PLATFORM_ADMIN"; + TENANT_ADMIN: "TENANT_ADMIN"; + EXTERNAL: "EXTERNAL"; +}>; + +// ── CapabilityDeclaration (type) ── +type CapabilityDeclaration = z.infer; + +// ── CapabilityDeclarationInput (type) ── +type CapabilityDeclarationInput = z.input; + +// ── CapabilityDeclarationSchema (const) ── +declare const CapabilityDeclarationSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + scope: z.ZodDefault>; + packageId: z.ZodOptional; +}, z.core.$strict>; + +// ── CriteriaSharingRule (type) ── +type CriteriaSharingRule = z.input; + +// ── CriteriaSharingRuleParsed (type) ── +type CriteriaSharingRuleParsed = z.infer; + +// ── CriteriaSharingRuleSchema (const) ── +declare const CriteriaSharingRuleSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + object: z.ZodString; + active: z.ZodDefault; + accessLevel: z.ZodDefault>; + sharedWith: z.ZodObject<{ + type: z.ZodEnum<{ + position: "position"; + field: "field"; + user: "user"; + business_unit: "business_unit"; + team: "team"; + unit_and_subordinates: "unit_and_subordinates"; + }>; + value: z.ZodString; + }, z.core.$strict>; + type: z.ZodLiteral<"criteria">; + condition: z.ZodUnion>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; +}, z.core.$strict>; + +// ── EXPLAIN_BATCH_MAX_RECORD_IDS (const) ── +declare const EXPLAIN_BATCH_MAX_RECORD_IDS = 200; + +// ── EffectiveObjectPermission (type) ── +type EffectiveObjectPermission = z.input; + +// ── EffectiveObjectPermissionSchema (const) ── +declare const EffectiveObjectPermissionSchema: z.ZodType, Record, z.core.$ZodTypeInternals, Record>> & { + readonly shape: { + readonly [x: string]: z.core.$ZodType>; + apiOperations: z.ZodOptional>>; + }; +}; + +// ── ExplainDecision (type) ── +type ExplainDecision = z.input; + +// ── ExplainDecisionParsed (type) ── +type ExplainDecisionParsed = z.infer; + +// ── ExplainDecisionSchema (const) ── +declare const ExplainDecisionSchema: z.ZodObject<{ + allowed: z.ZodBoolean; + object: z.ZodString; + operation: z.ZodEnum<{ + delete: "delete"; + update: "update"; + read: "read"; + create: "create"; + restore: "restore"; + purge: "purge"; + export: "export"; + transfer: "transfer"; + }>; + principal: z.ZodObject<{ + userId: z.ZodNullable; + positions: z.ZodDefault>; + permissionSets: z.ZodDefault>; + principalKind: z.ZodOptional>; + onBehalfOf: z.ZodOptional>; + posture: z.ZodOptional>; + }, z.core.$strip>; + layers: z.ZodArray; + kernelTier: z.ZodOptional>; + verdict: z.ZodEnum<{ + grants: "grants"; + neutral: "neutral"; + denies: "denies"; + narrows: "narrows"; + widens: "widens"; + not_applicable: "not_applicable"; + }>; + detail: z.ZodString; + contributors: z.ZodDefault; + name: z.ZodString; + via: z.ZodOptional; + state: z.ZodOptional>; + }, z.core.$strip>>>; + record: z.ZodOptional; + rowFilter: z.ZodOptional; + matchesRecord: z.ZodOptional; + rules: z.ZodDefault; + name: z.ZodString; + grants: z.ZodOptional>; + via: z.ZodOptional; + predicate: z.ZodOptional; + effect: z.ZodEnum<{ + admits: "admits"; + excludes: "excludes"; + neutral: "neutral"; + }>; + }, z.core.$strip>>>; + detail: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + readFilter: z.ZodOptional; + record: z.ZodOptional>; + }, z.core.$strip>>; + records: z.ZodOptional>; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── ExplainLayer (type) ── +type ExplainLayer = z.input; + +// ── ExplainLayerParsed (type) ── +type ExplainLayerParsed = z.infer; + +// ── ExplainLayerSchema (const) ── +declare const ExplainLayerSchema: z.ZodObject<{ + layer: z.ZodEnum<{ + sharing: "sharing"; + fls: "fls"; + rls: "rls"; + owd_baseline: "owd_baseline"; + tenant_isolation: "tenant_isolation"; + principal: "principal"; + required_permissions: "required_permissions"; + object_crud: "object_crud"; + depth: "depth"; + vama_bypass: "vama_bypass"; + }>; + kernelTier: z.ZodOptional>; + verdict: z.ZodEnum<{ + grants: "grants"; + neutral: "neutral"; + denies: "denies"; + narrows: "narrows"; + widens: "widens"; + not_applicable: "not_applicable"; + }>; + detail: z.ZodString; + contributors: z.ZodDefault; + name: z.ZodString; + via: z.ZodOptional; + state: z.ZodOptional>; + }, z.core.$strip>>>; + record: z.ZodOptional; + rowFilter: z.ZodOptional; + matchesRecord: z.ZodOptional; + rules: z.ZodDefault; + name: z.ZodString; + grants: z.ZodOptional>; + via: z.ZodOptional; + predicate: z.ZodOptional; + effect: z.ZodEnum<{ + admits: "admits"; + excludes: "excludes"; + neutral: "neutral"; + }>; + }, z.core.$strip>>>; + detail: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── ExplainMatchedRule (type) ── +type ExplainMatchedRule = z.input; + +// ── ExplainMatchedRuleSchema (const) ── +declare const ExplainMatchedRuleSchema: z.ZodObject<{ + kind: z.ZodEnum<{ + sharing_rule: "sharing_rule"; + ownership: "ownership"; + team: "team"; + tenant_filter: "tenant_filter"; + owd_baseline: "owd_baseline"; + record_share: "record_share"; + territory: "territory"; + rls_policy: "rls_policy"; + }>; + name: z.ZodString; + grants: z.ZodOptional>; + via: z.ZodOptional; + predicate: z.ZodOptional; + effect: z.ZodEnum<{ + admits: "admits"; + excludes: "excludes"; + neutral: "neutral"; + }>; +}, z.core.$strip>; + +// ── ExplainOperation (type) ── +type ExplainOperation = z.input; + +// ── ExplainOperationSchema (const) ── +declare const ExplainOperationSchema: z.ZodEnum<{ + delete: "delete"; + update: "update"; + read: "read"; + create: "create"; + restore: "restore"; + purge: "purge"; + export: "export"; + transfer: "transfer"; +}>; + +// ── ExplainRecordAttribution (type) ── +type ExplainRecordAttribution = z.input; + +// ── ExplainRecordAttributionParsed (type) ── +type ExplainRecordAttributionParsed = z.infer; + +// ── ExplainRecordAttributionSchema (const) ── +declare const ExplainRecordAttributionSchema: z.ZodObject<{ + outcome: z.ZodEnum<{ + admitted: "admitted"; + excluded: "excluded"; + not_evaluated: "not_evaluated"; + }>; + rowFilter: z.ZodOptional; + matchesRecord: z.ZodOptional; + rules: z.ZodDefault; + name: z.ZodString; + grants: z.ZodOptional>; + via: z.ZodOptional; + predicate: z.ZodOptional; + effect: z.ZodEnum<{ + admits: "admits"; + excludes: "excludes"; + neutral: "neutral"; + }>; + }, z.core.$strip>>>; + detail: z.ZodOptional; +}, z.core.$strip>; + +// ── ExplainRequest (type) ── +type ExplainRequest = z.input; + +// ── ExplainRequestSchema (const) ── +declare const ExplainRequestSchema: z.ZodObject<{ + object: z.ZodString; + operation: z.ZodEnum<{ + delete: "delete"; + update: "update"; + read: "read"; + create: "create"; + restore: "restore"; + purge: "purge"; + export: "export"; + transfer: "transfer"; + }>; + recordId: z.ZodOptional; + recordIds: z.ZodOptional>; + userId: z.ZodOptional; +}, z.core.$strip>; + +// ── FieldPermission (type) ── +type FieldPermission = z.input; + +// ── FieldPermissionParsed (type) ── +type FieldPermissionParsed = z.infer; + +// ── FieldPermissionSchema (const) ── +declare const FieldPermissionSchema: z.ZodObject<{ + readable: z.ZodDefault; + editable: z.ZodDefault; +}, z.core.$strict>; + +// ── OBJECT_PERMISSION_VERBS (const) ── +declare const OBJECT_PERMISSION_VERBS: Readonly>; + +// ── OBJECT_PERMISSION_VERB_NAMES (const) ── +declare const OBJECT_PERMISSION_VERB_NAMES: readonly string[]; + +// ── OWDModel (const) ── +declare const OWDModel: z.ZodEnum<{ + public_read: "public_read"; + public_read_write: "public_read_write"; + private: "private"; + controlled_by_parent: "controlled_by_parent"; +}>; + +// ── OWDModel (type) ── +type OWDModel = z.input; + +// ── ObjectAccessScope (type) ── +type ObjectAccessScope = z.input; + +// ── ObjectAccessScopeSchema (const) ── +declare const ObjectAccessScopeSchema: z.ZodEnum<{ + org: "org"; + unit: "unit"; + own: "own"; + own_and_reports: "own_and_reports"; + unit_and_below: "unit_and_below"; +}>; + +// ── ObjectPermission (type) ── +type ObjectPermission = z.input; + +// ── ObjectPermissionParsed (type) ── +type ObjectPermissionParsed = z.infer; + +// ── ObjectPermissionSchema (const) ── +declare const ObjectPermissionSchema: z.ZodType<{ + allowCreate: boolean; + allowRead: boolean; + allowEdit: boolean; + allowDelete: boolean; + allowTransfer: boolean; + viewAllRecords: boolean; + modifyAllRecords: boolean; + allowExport?: boolean | undefined; + allowRestore?: undefined; + allowPurge?: undefined; + readScope?: "org" | "unit" | "own" | "own_and_reports" | "unit_and_below" | undefined; + writeScope?: "org" | "unit" | "own" | "own_and_reports" | "unit_and_below" | undefined; +}, { + allowCreate?: boolean | undefined; + allowRead?: boolean | undefined; + allowEdit?: boolean | undefined; + allowDelete?: boolean | undefined; + allowExport?: boolean | undefined; + allowTransfer?: boolean | undefined; + allowRestore?: undefined; + allowPurge?: undefined; + viewAllRecords?: boolean | undefined; + modifyAllRecords?: boolean | undefined; + readScope?: "org" | "unit" | "own" | "own_and_reports" | "unit_and_below" | undefined; + writeScope?: "org" | "unit" | "own" | "own_and_reports" | "unit_and_below" | undefined; +}, z.core.$ZodTypeInternals<{ + allowCreate: boolean; + allowRead: boolean; + allowEdit: boolean; + allowDelete: boolean; + allowTransfer: boolean; + viewAllRecords: boolean; + modifyAllRecords: boolean; + allowExport?: boolean | undefined; + allowRestore?: undefined; + allowPurge?: undefined; + readScope?: "org" | "unit" | "own" | "own_and_reports" | "unit_and_below" | undefined; + writeScope?: "org" | "unit" | "own" | "own_and_reports" | "unit_and_below" | undefined; +}, { + allowCreate?: boolean | undefined; + allowRead?: boolean | undefined; + allowEdit?: boolean | undefined; + allowDelete?: boolean | undefined; + allowExport?: boolean | undefined; + allowTransfer?: boolean | undefined; + allowRestore?: undefined; + allowPurge?: undefined; + viewAllRecords?: boolean | undefined; + modifyAllRecords?: boolean | undefined; + readScope?: "org" | "unit" | "own" | "own_and_reports" | "unit_and_below" | undefined; + writeScope?: "org" | "unit" | "own" | "own_and_reports" | "unit_and_below" | undefined; +}>> & { + readonly shape: { + allowCreate: z.ZodDefault; + allowRead: z.ZodDefault; + allowEdit: z.ZodDefault; + allowDelete: z.ZodDefault; + allowExport: z.ZodOptional; + allowTransfer: z.ZodDefault; + allowRestore: z.ZodOptional; + allowPurge: z.ZodOptional; + viewAllRecords: z.ZodDefault; + modifyAllRecords: z.ZodDefault; + readScope: z.ZodOptional>; + writeScope: z.ZodOptional>; + }; +}; + +// ── ObjectPermissionVerbTarget (type) ── +type ObjectPermissionVerbTarget = 'allowRead' | 'allowCreate' | 'allowEdit' | 'allowDelete' | 'allowExport' | 'allowTransfer'; + +// ── OrgScopingEntitlement (interface) ── +interface OrgScopingEntitlement { + readonly supportedPostures?: readonly TenancyPosture[]; + /** + * Objects THIS deployment declares platform-global: Layer 0 must not wall + * them here, exactly as if the object had declared + * `tenancy: { enabled: false }` — but only on this deployment. Consumed by + * plugin-security when arming the Layer 0 organization wall; it composes + * with (never replaces) the object-level authoring channel. + * + * Entries are exact object machine names ({@link PlatformGlobalObjectsSchema} + * — no wildcards: a pattern would let one declaration unwall an open-ended + * set, and the whole point of the seam is an explicit, auditable carve-out). + * + * Fail closed: absent ⇒ every object walls exactly as its own declaration + * says; a junk shape is refused loudly at the consuming seam (the + * `MembershipPolicy` precedent — never coerced), which also resolves to + * "absent". + */ + readonly platformGlobalObjects?: readonly string[]; + /** + * When `true`, arming a walled posture must NOT auto-grant the + * `organization_admin` role's unbounded `viewAllRecords`/`modifyAllRecords` + * superbits: the membership-driven auto-grant hands out + * `organization_admin_no_bypass` (the de-VAMA'd variant) instead, on walled + * postures too. The ADR-0105 D4 rationale for granting the unbounded set + * under a wall — "Layer 0 bounds it" — stops holding on a deployment that + * carves platform-global objects OUT of the wall with + * {@link platformGlobalObjects}, so the same runtime that declares the + * carve-out declares this suppression. + * + * Fail closed: absent or `false` ⇒ today's posture-keyed grant; junk is + * refused loudly and resolves to "absent". + */ + readonly suppressUnboundedOrgAdminGrant?: boolean; +} + +// ── OrgScopingEntitlementSchema (const) ── +declare const OrgScopingEntitlementSchema: z.ZodObject<{ + supportedPostures: z.ZodOptional>>>; + platformGlobalObjects: z.ZodOptional>>; + suppressUnboundedOrgAdminGrant: z.ZodOptional; +}, z.core.$strip>; + +// ── PLATFORM_CAPABILITIES (const) ── +declare const PLATFORM_CAPABILITIES: readonly PlatformCapability[]; + +// ── PLATFORM_CAPABILITY_NAMES (const) ── +declare const PLATFORM_CAPABILITY_NAMES: ReadonlySet; + +// ── PUBLIC_FORM_SERVER_MANAGED_FIELDS (const) ── +declare const PUBLIC_FORM_SERVER_MANAGED_FIELDS: ReadonlySet; + +// ── PermissionSet (type) ── +type PermissionSet = z.input; + +// ── PermissionSetParsed (type) ── +type PermissionSetParsed = z.infer; + +// ── PermissionSetSchema (const) ── +declare const PermissionSetSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + packageId: z.ZodOptional; + managedBy: z.ZodOptional>; + isDefault: z.ZodDefault; + objects: z.ZodRecord> & { + readonly shape: { + allowCreate: z.ZodDefault; + allowRead: z.ZodDefault; + allowEdit: z.ZodDefault; + allowDelete: z.ZodDefault; + allowExport: z.ZodOptional; + allowTransfer: z.ZodDefault; + allowRestore: z.ZodOptional; + allowPurge: z.ZodOptional; + viewAllRecords: z.ZodDefault; + modifyAllRecords: z.ZodDefault; + readScope: z.ZodOptional>; + writeScope: z.ZodOptional>; + }; + }>; + fields: z.ZodOptional; + editable: z.ZodDefault; + }, z.core.$strict>>>; + systemPermissions: z.ZodOptional>; + tabPermissions: z.ZodOptional>>; + rowLevelSecurity: z.ZodOptional; + description: z.ZodOptional; + object: z.ZodString; + operation: z.ZodEnum<{ + delete: "delete"; + select: "select"; + insert: "insert"; + update: "update"; + all: "all"; + }>; + using: z.ZodOptional; + check: z.ZodOptional; + positions: z.ZodOptional>; + enabled: z.ZodDefault; + priority: z.ZodOptional; + tags: z.ZodOptional>; + }, z.core.$strict>>>; + adminScope: z.ZodOptional; + manageAssignments: z.ZodDefault; + manageBindings: z.ZodDefault; + authorEnvironmentSets: z.ZodDefault; + assignablePermissionSets: z.ZodDefault>; + }, z.core.$strict>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── PlatformCapability (interface) ── +interface PlatformCapability { + /** Stable capability name referenced by `systemPermissions` / `requiredPermissions`. */ + name: string; + /** Human label shown in Setup. */ + label: string; + /** What holding the capability permits. */ + description: string; + /** `platform` = global; `org` = scoped to the caller's organization. */ + scope: 'platform' | 'org'; +} + +// ── PlatformGlobalObjects (type) ── +type PlatformGlobalObjects = z.infer; + +// ── PlatformGlobalObjectsSchema (const) ── +declare const PlatformGlobalObjectsSchema: z.ZodReadonly>; + +// ── RLS (const) ── +declare const RLS: { + /** + * Create a simple owner-based policy + */ + readonly ownerPolicy: (object: string, ownerField?: string) => RowLevelSecurityPolicy; + /** + * Create a tenant isolation policy. + * + * The default `tenantField` is `organization_id` to match better-auth's + * organization plugin and the canonical platform schema. The + * `current_user.organization_id` placeholder is resolved by + * `RLSCompiler` from `ExecutionContext.tenantId` at request time. + * Pass a custom field name if your schema uses a different column. + */ + readonly tenantPolicy: (object: string, tenantField?: string) => RowLevelSecurityPolicy; + /** + * Create a position-scoped policy + */ + readonly positionPolicy: (object: string, positions: string[], condition: string) => RowLevelSecurityPolicy; + /** + * Create a permissive policy (allow all for specific positions) + */ + readonly allowAllPolicy: (object: string, positions: string[]) => RowLevelSecurityPolicy; +}; + +// ── RLSEvaluationResult (type) ── +type RLSEvaluationResult = z.input; + +// ── RLSEvaluationResultSchema (const) ── +declare const RLSEvaluationResultSchema: z.ZodObject<{ + policyName: z.ZodString; + granted: z.ZodBoolean; + durationMs: z.ZodOptional; + error: z.ZodOptional; + usingResult: z.ZodOptional; + checkResult: z.ZodOptional; +}, z.core.$strip>; + +// ── RLSOperation (const) ── +declare const RLSOperation: z.ZodEnum<{ + delete: "delete"; + select: "select"; + insert: "insert"; + update: "update"; + all: "all"; +}>; + +// ── RLSOperation (type) ── +type RLSOperation = z.input; + +// ── RLSUserContext (type) ── +type RLSUserContext = z.input; + +// ── RLSUserContextSchema (const) ── +declare const RLSUserContextSchema: z.ZodObject<{ + id: z.ZodString; + email: z.ZodOptional; + tenantId: z.ZodOptional; + positions: z.ZodOptional>; + department: z.ZodOptional; + attributes: z.ZodOptional>; +}, z.core.$strip>; + +// ── RowLevelSecurityPolicy (type) ── +type RowLevelSecurityPolicy = z.input; + +// ── RowLevelSecurityPolicyParsed (type) ── +type RowLevelSecurityPolicyParsed = z.infer; + +// ── RowLevelSecurityPolicySchema (const) ── +declare const RowLevelSecurityPolicySchema: z.ZodObject<{ + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + object: z.ZodString; + operation: z.ZodEnum<{ + delete: "delete"; + select: "select"; + insert: "insert"; + update: "update"; + all: "all"; + }>; + using: z.ZodOptional; + check: z.ZodOptional; + positions: z.ZodOptional>; + enabled: z.ZodDefault; + priority: z.ZodOptional; + tags: z.ZodOptional>; +}, z.core.$strict>; + +// ── ShareRecipientType (const) ── +declare const ShareRecipientType: z.ZodEnum<{ + position: "position"; + field: "field"; + user: "user"; + business_unit: "business_unit"; + team: "team"; + unit_and_subordinates: "unit_and_subordinates"; +}>; + +// ── ShareRecipientType (type) ── +type ShareRecipientType = z.input; + +// ── SharingLevel (const) ── +declare const SharingLevel: z.ZodEnum<{ + edit: "edit"; + read: "read"; +}>; + +// ── SharingLevel (type) ── +type SharingLevel = z.input; + +// ── SharingRule (type) ── +type SharingRule = z.input; + +// ── SharingRuleParsed (type) ── +type SharingRuleParsed = z.infer; + +// ── SharingRuleSchema (const) ── +declare const SharingRuleSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + object: z.ZodString; + active: z.ZodDefault; + accessLevel: z.ZodDefault>; + sharedWith: z.ZodObject<{ + type: z.ZodEnum<{ + position: "position"; + field: "field"; + user: "user"; + business_unit: "business_unit"; + team: "team"; + unit_and_subordinates: "unit_and_subordinates"; + }>; + value: z.ZodString; + }, z.core.$strict>; + type: z.ZodLiteral<"criteria">; + condition: z.ZodUnion>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; +}, z.core.$strict>; + +// ── SharingRuleType (const) ── +declare const SharingRuleType: z.ZodEnum<{ + criteria: "criteria"; +}>; + +// ── SharingRuleType (type) ── +type SharingRuleType = z.input; + +// ── TENANCY_POSTURES (const) ── +declare const TENANCY_POSTURES: readonly TenancyPosture[]; + +// ── TenancyPosture (type) ── +type TenancyPosture = z.infer; + +// ── TenancyPostureSchema (const) ── +declare const TenancyPostureSchema: z.ZodEnum<{ + group: "group"; + single: "single"; + isolated: "isolated"; +}>; + +// ── TenantLayer0Verdict (type) ── +type TenantLayer0Verdict = z.infer; + +// ── TenantLayer0VerdictSchema (const) ── +declare const TenantLayer0VerdictSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ + kind: z.ZodLiteral<"none">; +}, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"organization">; + organizationId: z.ZodString; +}, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"organizations">; + organizationIds: z.ZodReadonly>; +}, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"deny">; +}, z.core.$strict>], "kind">; + +// ── defineCapability (function) ── +declare function defineCapability(config: CapabilityDeclarationInput): CapabilityDeclaration; + +// ── definePermissionSet (function) ── +declare function definePermissionSet(config: z.input): PermissionSetParsed; + +// ── defineSharingRule (function) ── +declare function defineSharingRule(config: z.input): SharingRuleParsed; + +// ── describeAnchorForbiddenBits (function) ── +declare function describeAnchorForbiddenBits(def: any, anchor: 'everyone' | 'guest', context?: AnchorBindingContext): string | null; + +// ── describeHighPrivilegeBits (function) ── +declare function describeHighPrivilegeBits(def: any, context?: AnchorBindingContext): string | null; + +// ── normalizeTenancyPosture (function) ── +declare function normalizeTenancyPosture(value: unknown): TenancyPosture | undefined; + +// ── objectPermissionGrants (function) ── +declare function objectPermissionGrants(permission: EffectiveObjectPermission | undefined, target: ObjectPermissionVerbTarget): boolean; + +// ── permissionForm (const) ── +declare const permissionForm: { + type: "split" | "modal" | "drawer" | "simple" | "tabbed" | "wizard"; + layout?: "grid" | "inline" | "vertical" | "horizontal" | undefined; + columns?: number | undefined; + title?: string | undefined; + description?: string | undefined; + defaultTab?: string | undefined; + tabPosition?: "left" | "right" | "top" | "bottom" | undefined; + allowSkip?: boolean | undefined; + showStepIndicator?: boolean | undefined; + splitDirection?: "vertical" | "horizontal" | undefined; + splitSize?: number | undefined; + splitResizable?: boolean | undefined; + drawerSide?: "left" | "right" | "top" | "bottom" | undefined; + drawerWidth?: string | undefined; + modalSize?: "default" | "full" | "sm" | "lg" | "xl" | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "POST" | "PATCH" | "PUT" | "DELETE" | "GET"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "POST" | "PATCH" | "PUT" | "DELETE" | "GET"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + sections?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + groups?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + subforms?: { + childObject: string; + relationshipField?: string | undefined; + columns?: any[] | undefined; + amountField?: string | undefined; + totalField?: string | undefined; + title?: string | undefined; + addLabel?: string | undefined; + minRows?: number | undefined; + maxRows?: number | undefined; + }[] | undefined; + defaultSort?: undefined; + sharing?: { + enabled: boolean; + allowAnonymous: boolean; + publicLink?: string | undefined; + password?: string | undefined; + allowedDomains?: string[] | undefined; + expiresAt?: string | undefined; + } | undefined; + submitBehavior?: { + kind: "thank-you"; + title?: string | undefined; + message?: string | undefined; + } | { + kind: "redirect"; + url: string; + delayMs?: number | undefined; + } | { + kind: "continue"; + } | { + kind: "next-record"; + } | undefined; + buttons?: { + submit?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + cancel?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + reset?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + } | undefined; + defaults?: Record | undefined; + aria?: undefined; +}; + +// ── postureEnforcesWall (function) ── +declare function postureEnforcesWall(posture: TenancyPosture): boolean; + +// ── postureStampsOrganization (function) ── +declare function postureStampsOrganization(posture: TenancyPosture): boolean; + +// ── postureUsesUnionScope (function) ── +declare function postureUsesUnionScope(posture: TenancyPosture): boolean; + +// ── resolveObjectPermissionVerb (function) ── +declare function resolveObjectPermissionVerb(verb: string): ObjectPermissionVerbTarget | undefined; diff --git a/packages/spec/api-surface-declarations/shared.txt b/packages/spec/api-surface-declarations/shared.txt new file mode 100644 index 00000000000..6ab21e0a69a --- /dev/null +++ b/packages/spec/api-surface-declarations/shared.txt @@ -0,0 +1,819 @@ +# @objectstack/spec — the .d.ts DECLARATION TEXT of every export of `./shared`. +# +# The SHAPE half of the ADR-0059 public-API pin, and the readable counterpart of +# api-surface/shared.json's breadth half. That file pins each export by +# `name (kind)`, which a signature change, a renamed interface field and a dropped +# union member all leave untouched. This file pins the declaration text, so each of +# those moves a line here. Text and NOT a hash, deliberately: a diff a reviewer can +# read is what makes contract review a guard rather than a rubber stamp. +# +# Verbatim from the PACKED `.d.ts` reached through this package's `exports` map — the +# declarations a consumer installs, never `src/`. A declaration's leading TSDoc is +# excluded: documentation drift is `check:docs`'s axis, not this one. +# +# entry: ./shared +# exported names: 121 +# declarations: 126 +# +# GENERATED — ⛔ never hand-edited. Regenerate after a real build: +# pnpm --filter @objectstack/spec build && pnpm --filter @objectstack/spec gen:api-surface-declarations +# Gated by `check:api-surface-declarations`; a hand edit is a red gate, not a change. + +// ── ApplyProtectionContext (interface) ── +interface ApplyProtectionContext { + /** Owning package id (e.g. `com.objectstack.platform-objects`). */ + packageId?: string; + /** Owning package semver. */ + packageVersion?: string; + /** + * `'package'` for items introduced by a package loader (default). + * Pass `'env-forced'` when the runtime is materialising an + * emergency override. + */ + provenance?: 'package' | 'env-forced'; +} + +// ── BaseMetadataRecord (type) ── +type BaseMetadataRecord = z.input; + +// ── BaseMetadataRecordSchema (const) ── +declare const BaseMetadataRecordSchema: z.ZodObject<{ + id: z.ZodString; + type: z.ZodString; + name: z.ZodString; + format: z.ZodOptional>; +}, z.core.$strip>; + +// ── CorsConfig (type) ── +type CorsConfig = z.input; + +// ── CorsConfigParsed (type) ── +type CorsConfigParsed = z.infer; + +// ── CorsConfigSchema (const) ── +declare const CorsConfigSchema: z.ZodObject<{ + enabled: z.ZodDefault; + origins: z.ZodDefault]>>; + methods: z.ZodOptional>>; + credentials: z.ZodDefault; + maxAge: z.ZodOptional; +}, z.core.$strip>; + +// ── CronExpressionInput (type) ── +type CronExpressionInput = z.input; + +// ── CronExpressionInputSchema (const) ── +declare const CronExpressionInputSchema: z.ZodUnion>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"cron">; +}, z.core.$strip>]>; + +// ── DurationMs (const) ── +declare const DurationMs: z.ZodNumber; + +// ── DurationMs (type) ── +type DurationMs = z.input; + +// ── DurationSeconds (const) ── +declare const DurationSeconds: z.ZodNumber; + +// ── DurationSeconds (type) ── +type DurationSeconds = z.input; + +// ── EVALUATED_EXPRESSION_SOURCE_REQUIRED (const) ── +declare const EVALUATED_EXPRESSION_SOURCE_REQUIRED: string; + +// ── EXTERNAL_ERROR_CODES (const) ── +declare const EXTERNAL_ERROR_CODES: { + readonly schemaMismatch: "EXTERNAL_SCHEMA_MISMATCH"; + readonly writeForbidden: "EXTERNAL_WRITE_FORBIDDEN"; + readonly schemaModeViolation: "EXTERNAL_SCHEMA_MODE_VIOLATION"; +}; + +// ── EXTERNAL_ERROR_HTTP_STATUS (const) ── +declare const EXTERNAL_ERROR_HTTP_STATUS: { + readonly EXTERNAL_SCHEMA_MISMATCH: 503; + readonly EXTERNAL_WRITE_FORBIDDEN: 403; + readonly EXTERNAL_SCHEMA_MODE_VIOLATION: 403; +}; + +// ── EpochMs (const) ── +declare const EpochMs: z.ZodNumber; + +// ── EpochMs (type) ── +type EpochMs = z.input; + +// ── EvaluatedExpression (type) ── +type EvaluatedExpression = z.input; + +// ── EvaluatedExpressionInput (type) ── +type EvaluatedExpressionInput = z.input; + +// ── EvaluatedExpressionInputSchema (const) ── +declare const EvaluatedExpressionInputSchema: z.ZodUnion>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + source: z.ZodString; +}, z.core.$strip>]>; + +// ── EvaluatedExpressionParsed (type) ── +type EvaluatedExpressionParsed = z.infer; + +// ── EvaluatedExpressionSchema (const) ── +declare const EvaluatedExpressionSchema: z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + source: z.ZodString; +}, z.core.$strip>; + +// ── Expression (type) ── +type Expression = z.input; + +// ── ExpressionDialect (const) ── +declare const ExpressionDialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; +}>; + +// ── ExpressionDialect (type) ── +type ExpressionDialect = z.input; + +// ── ExpressionInput (type) ── +type ExpressionInput = z.input; + +// ── ExpressionInputSchema (const) ── +declare const ExpressionInputSchema: z.ZodUnion>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>]>; + +// ── ExpressionMeta (type) ── +type ExpressionMeta = z.input; + +// ── ExpressionMetaSchema (const) ── +declare const ExpressionMetaSchema: z.ZodObject<{ + rationale: z.ZodOptional; + generatedBy: z.ZodOptional; +}, z.core.$strip>; + +// ── ExpressionSchema (const) ── +declare const ExpressionSchema: z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── ExternalErrorCode (type) ── +type ExternalErrorCode = (typeof EXTERNAL_ERROR_CODES)[keyof typeof EXTERNAL_ERROR_CODES]; + +// ── ExternalSchemaMismatchError (class) ── +declare class ExternalSchemaMismatchError extends Error { + readonly datasource: string; + readonly object: string; + readonly diffs: SchemaDiffEntry[]; + readonly code: "EXTERNAL_SCHEMA_MISMATCH"; + /** [#7739] See {@link EXTERNAL_ERROR_HTTP_STATUS} — 503, not a client error. */ + readonly status: 503; + constructor(datasource: string, object: string, diffs: SchemaDiffEntry[]); +} + +// ── ExternalSchemaModeViolationError (class) ── +declare class ExternalSchemaModeViolationError extends Error { + readonly code: "EXTERNAL_SCHEMA_MODE_VIOLATION"; + /** [#7739] See {@link EXTERNAL_ERROR_HTTP_STATUS} — 403, a policy refusal. */ + readonly status: 403; + constructor(message?: string); +} + +// ── ExternalWriteForbiddenError (class) ── +declare class ExternalWriteForbiddenError extends Error { + readonly code: "EXTERNAL_WRITE_FORBIDDEN"; + /** [#7739] See {@link EXTERNAL_ERROR_HTTP_STATUS} — 403, a policy refusal. */ + readonly status: 403; + constructor(message?: string); +} + +// ── F (const) ── +declare const F: typeof cel; + +// ── FieldMapping (type) ── +type FieldMapping = z.input; + +// ── FieldMappingSchema (const) ── +declare const FieldMappingSchema: z.ZodObject<{ + source: z.ZodString; + target: z.ZodString; + transform: z.ZodOptional; + defaultValue: z.ZodOptional; +}, z.core.$strip>; + +// ── HttpMethod (const) ── +declare const HttpMethod: z.ZodEnum<{ + GET: "GET"; + POST: "POST"; + PUT: "PUT"; + DELETE: "DELETE"; + PATCH: "PATCH"; + HEAD: "HEAD"; + OPTIONS: "OPTIONS"; +}>; + +// ── HttpMethod (type) ── +type HttpMethod = z.input; + +// ── HttpMethodSubset (type) ── +type HttpMethodSubset = z.input; + +// ── HttpMethodSubsetSchema (const) ── +declare const HttpMethodSubsetSchema: z.ZodEnum<{ + GET: "GET"; + POST: "POST"; + PUT: "PUT"; + DELETE: "DELETE"; + PATCH: "PATCH"; +}>; + +// ── HttpRequest (type) ── +type HttpRequest = z.input; + +// ── HttpRequestParsed (type) ── +type HttpRequestParsed = z.infer; + +// ── HttpRequestSchema (const) ── +declare const HttpRequestSchema: z.ZodObject<{ + url: z.ZodString; + method: z.ZodDefault>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; +}, z.core.$strip>; + +// ── ISO_3166_ALPHA2_CODES (const) ── +declare const ISO_3166_ALPHA2_CODES: ReadonlySet; + +// ── IsolationLevel (type) ── +type IsolationLevel = z.input; + +// ── IsolationLevelEnum (const) ── +declare const IsolationLevelEnum: z.ZodEnum<{ + read_uncommitted: "read_uncommitted"; + read_committed: "read_committed"; + repeatable_read: "repeatable_read"; + serializable: "serializable"; + snapshot: "snapshot"; +}>; + +// ── KeySetGuidance (interface) ── +interface KeySetGuidance { + /** + * The set's name — the constant an author greps for + * (`LEGACY_WIDGET_ANALYTICS_KEYS`). Deliberately **not** rendered into the + * message: an author-facing rejection should name the KEYS, not the array + * that holds them, and each prescription below already spells its family out + * in prose (that is what makes it legible). The name is for the declaration + * and for the audit's failure text. + */ + readonly name: string; + /** + * Membership: an enumerated family, or a pattern for the open case. Matched + * against the authored spelling **case-sensitively** (an enumerated list is + * tested with `includes`; a pattern with its own flags), the same exactness + * `guidance` uses — case folding is the rename channel's job. + */ + readonly keys: readonly string[] | RegExp; + /** + * Required when {@link keys} is a pattern, ignored otherwise: spellings this + * pattern exists for. The audit asserts each one matches, and that none of + * them is a key the shape declares. + */ + readonly examples?: readonly string[]; + /** The prescription, emitted verbatim as one bullet line. */ + readonly prescription: string; +} + +// ── MAP_SUPPORTED_FIELDS (const) ── +declare const MAP_SUPPORTED_FIELDS: readonly ["objects", "apps", "pages", "dashboards", "reports", "datasets", "actions", "flows", "jobs", "positions", "permissions", "sharingRules", "apis", "webhooks", "agents", "hooks", "mappings", "analyticsCubes", "connectors", "datasources", "emailTemplates"]; + +// ── METADATA_ALIASES (const) ── +declare const METADATA_ALIASES: Record; + +// ── METADATA_ITEM_NAME_PATTERN (const) ── +declare const METADATA_ITEM_NAME_PATTERN: RegExp; + +// ── META_URL_TO_SINGULAR (const) ── +declare const META_URL_TO_SINGULAR: Readonly>; + +// ── MapSupportedField (type) ── +type MapSupportedField = (typeof MAP_SUPPORTED_FIELDS)[number]; + +// ── MetadataCollectionInput (type) ── +type MetadataCollectionInput = T[] | Record & { + name?: string; +}>; + +// ── MetadataFormat (type) ── +type MetadataFormat = z.input; + +// ── MetadataFormatSchema (const) ── +declare const MetadataFormatSchema: z.ZodEnum<{ + json: "json"; + yaml: "yaml"; + typescript: "typescript"; + javascript: "javascript"; +}>; + +// ── MetadataItemName (type) ── +type MetadataItemName = z.input; + +// ── MetadataItemNameSchema (const) ── +declare const MetadataItemNameSchema: z.ZodString; + +// ── MutationEvent (type) ── +type MutationEvent = z.input; + +// ── MutationEventEnum (const) ── +declare const MutationEventEnum: z.ZodEnum<{ + delete: "delete"; + insert: "insert"; + update: "update"; + upsert: "upsert"; +}>; + +// ── NormalizeStackInputOptions (interface) ── +interface NormalizeStackInputOptions { + /** + * Sink for the structured deprecation notices emitted by the ADR-0087 D2 + * conversion pass (one per rewritten old-shape site). Defaults to a no-op: + * the conversion still runs (zero consumer action is the point), but the + * notice is only *surfaced* when a caller asks — `objectstack validate` + * passes a sink that prints them. + */ + onConversionNotice?: (notice: ConversionNotice) => void; + /** + * Whether to run the D2 conversion pass. Defaults to `true` (the load-time + * behavior). Set `false` to get map→array normalization *only* — used by + * `objectstack migrate meta`, which must replay the conversions itself as + * chain steps against the raw authored source so each rewrite is attributed + * to the chain rather than silently pre-applied here. + */ + convert?: boolean; +} + +// ── ObjectStackRawIssue (type) ── +type ObjectStackRawIssue = z.core.$ZodRawIssue; + +// ── P (const) ── +declare const P: typeof cel; + +// ── PLURAL_TO_SINGULAR (const) ── +declare const PLURAL_TO_SINGULAR: Record; + +// ── Predicate (type) ── +type Predicate = z.input; + +// ── PredicateInput (type) ── +type PredicateInput = z.input; + +// ── PredicateInputSchema (const) ── +declare const PredicateInputSchema: z.ZodUnion>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>]>; + +// ── PredicateSchema (const) ── +declare const PredicateSchema: z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── Protection (type) ── +type Protection = z.input; + +// ── ProtectionSchema (const) ── +declare const ProtectionSchema: z.ZodObject<{ + lock: z.ZodEnum<{ + none: "none"; + "no-overlay": "no-overlay"; + "no-delete": "no-delete"; + full: "full"; + }>; + reason: z.ZodString; + docsUrl: z.ZodOptional; +}, z.core.$strict>; + +// ── QUALIFIED_ITEM_NAME_PATTERN (const) ── +declare const QUALIFIED_ITEM_NAME_PATTERN: RegExp; + +// ── RateLimitConfig (type) ── +type RateLimitConfig = z.input; + +// ── RateLimitConfigParsed (type) ── +type RateLimitConfigParsed = z.infer; + +// ── RateLimitConfigSchema (const) ── +declare const RateLimitConfigSchema: z.ZodObject<{ + enabled: z.ZodDefault; + windowMs: z.ZodDefault; + maxRequests: z.ZodDefault; +}, z.core.$strict>; + +// ── ResilientFetchOptions (interface) ── +interface ResilientFetchOptions { + /** fetch implementation (injectable for tests / non-global runtimes). */ + fetchImpl?: typeof fetch; + /** Per-attempt timeout in ms. Default 30000. */ + timeoutMs?: number; + /** Total attempts including the first. Default 3. */ + retries?: number; + /** Base backoff in ms; doubled each retry, plus jitter. Default 300. */ + backoffBaseMs?: number; + /** Predicate for retryable HTTP statuses. Default: 429 or >= 500. */ + retryableStatus?: (status: number) => boolean; + /** Sleep impl (injectable for deterministic tests). */ + sleep?: (ms: number) => Promise; +} + +// ── SINGULAR_TO_PLURAL (const) ── +declare const SINGULAR_TO_PLURAL: Record; + +// ── SchemaDiffEntry (interface) ── +interface SchemaDiffEntry { + kind: SchemaDiffEntryKind; + /** Remote schema/database qualifier, when known. */ + remoteSchema?: string; + /** Remote table/view name, when known. */ + remoteName?: string; + /** Affected column/field name, for column-scoped diffs. */ + column?: string; + /** What the local object declared. */ + expected?: string; + /** What the remote table actually has. */ + actual?: string; + severity: 'error' | 'warning'; +} + +// ── SchemaDiffEntryKind (type) ── +type SchemaDiffEntryKind = 'missing_table' | 'missing_column' | 'type_mismatch' | 'nullability_mismatch' | 'unmapped_column' | 'pk_mismatch' +/** A declared index is absent, or the index under that name has a different + * definition than metadata declares (#3728). */ + | 'index_mismatch' +/** A physical index ObjectStack generated that metadata no longer declares. */ + | 'unmapped_index' +/** + * The column's physical DEFAULT is not the one metadata calls for — including + * "metadata calls for none". A column DEFAULT is data the DATABASE writes on + * the platform's behalf, so a wrong one is silently wrong rows, not a + * rejected write: a `defaultValue` runtime token emitted as a literal DEFAULT + * stamped the token's own spelling into every omitted insert (#4560). + */ + | 'default_mismatch' +/** + * The validator COULD NOT READ what the comparison needs — remote schema + * introspection failed (connection refused, DNS, expired credentials, a + * timeout), or the object/datasource definition vanished mid-sweep — so the + * comparison never ran. + * + * Unlike every other kind, this entry asserts **nothing about the remote + * schema**: it is "validation was indeterminate", a condition that is often + * TRANSIENT (the remote table may be perfectly intact and the next attempt + * may succeed), where the other kinds each state a measured FACT about a + * schema that was successfully read. Consumers must keep the two apart: + * treating an unreachable remote as a mismatch tells an operator (or an AI) + * to "repair" a schema nobody has seen — e.g. recreate a table that was + * never dropped. The boot gate logs it loudly and continues rather than + * applying `onMismatch`, and drift consumers should surface it as "cannot + * watch", never as "schema changed" (maintainer ruling 2026-08-23). + * + * The throwing error's message is carried as free text in `actual`. + */ + | 'unreachable'; + +// ── SnakeCaseIdentifier (type) ── +type SnakeCaseIdentifier = z.input; + +// ── SnakeCaseIdentifierSchema (const) ── +declare const SnakeCaseIdentifierSchema: z.ZodString; + +// ── SortDirection (type) ── +type SortDirection = z.input; + +// ── SortDirectionEnum (const) ── +declare const SortDirectionEnum: z.ZodEnum<{ + asc: "asc"; + desc: "desc"; +}>; + +// ── SortItem (type) ── +type SortItem = z.input; + +// ── SortItemSchema (const) ── +declare const SortItemSchema: z.ZodObject<{ + field: z.ZodString; + order: z.ZodEnum<{ + asc: "asc"; + desc: "desc"; + }>; +}, z.core.$strip>; + +// ── StaticMount (type) ── +type StaticMount = z.input; + +// ── StaticMountSchema (const) ── +declare const StaticMountSchema: z.ZodObject<{ + path: z.ZodString; + directory: z.ZodString; + cacheControl: z.ZodOptional; +}, z.core.$strip>; + +// ── StrictUnknownKeyErrorOptions (interface) ── +interface StrictUnknownKeyErrorOptions { + /** Prose name of the authoring surface the key was written on (e.g. `'this permission set'`). */ + surface: string; + /** The schema's declared keys — candidates for the edit-distance fallback. */ + knownKeys: readonly string[]; + /** + * Semantic near-misses: a different *word* for the same intent, usually + * borrowed from a neighbouring schema or product where that word is correct. + * Consulted BEFORE {@link findClosestMatches} and preferred over it, so an + * entry answers both the near-miss distance cannot reach AND the one it + * reaches and gets wrong — `hosts → network` is 2 edits from the declared + * `hooks` against a budget of 2, and the entry is what keeps the author off + * lifecycle hooks (#16859; this line asserted only the first half until + * #17361 measured 41 overruling entries across the spec). Plain + * case/underscore slips are still left to the fallback, which folds them. + * Map keys are matched case-insensitively with `_` / `-` / space separators + * removed. + */ + aliases?: Readonly>; + /** + * Exact-key prescriptions, appended verbatim as bullet lines: tombstones for + * retired keys (the rejection must carry the upgrade — see the Post-Task + * Checklist in AGENTS.md), or wrong-layer pointers for keys that belong to a + * different surface. An entry here suppresses the rename suggestion for that + * key. Matched case-sensitively (exact authored spelling). + */ + guidance?: Readonly>; + /** + * The set-keyed half of the same channel: one prescription shared by a named + * family of keys, emitted once per message however many members were written. + * Consulted only after {@link guidance} has had its exact say — see + * {@link KeySetGuidance} for the full precedence rule and why the form exists. + */ + guidanceSets?: readonly KeySetGuidance[]; + /** + * One sentence of history: why this key would previously have failed + * silently. Rendered **last**, after both fix channels (`Did you mean` and + * the `guidance` bullets) — see the ordering note on + * {@link strictUnknownKeyError}. + */ + history: string; +} + +// ── SystemIdentifier (type) ── +type SystemIdentifier = z.input; + +// ── SystemIdentifierSchema (const) ── +declare const SystemIdentifierSchema: z.ZodString; + +// ── TYPED_EXPRESSION_DIALECT_ONLY (const) ── +declare const TYPED_EXPRESSION_DIALECT_ONLY: Readonly>; + +// ── TYPED_EXPRESSION_SOURCE_REQUIRED (const) ── +declare const TYPED_EXPRESSION_SOURCE_REQUIRED: Readonly>; + +// ── TemplateExpressionInput (type) ── +type TemplateExpressionInput = z.input; + +// ── TemplateExpressionInputSchema (const) ── +declare const TemplateExpressionInputSchema: z.ZodUnion>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"template">; +}, z.core.$strip>]>; + +// ── TypedExpressionDialect (type) ── +type TypedExpressionDialect = Extract; + +// ── VISIBILITY_ALIAS_KEYS (const) ── +declare const VISIBILITY_ALIAS_KEYS: readonly ["visibleOn", "visibility"]; + +// ── VISIBILITY_STRICT_OPTIONS (const) ── +declare const VISIBILITY_STRICT_OPTIONS: StrictObjectOptions; + +// ── ValueDomain (type) ── +type ValueDomain = z.input; + +// ── ValueDomainSchema (const) ── +declare const ValueDomainSchema: z.ZodEnum<{ + iana_time_zone: "iana_time_zone"; + iso_4217_currency: "iso_4217_currency"; + iso_3166_alpha2: "iso_3166_alpha2"; +}>; + +// ── applyProtection (function) ── +declare function applyProtection>(item: T, ctx?: ApplyProtectionContext): T; + +// ── canonicalMetaUrlType (function) ── +declare function canonicalMetaUrlType(type: string): string; + +// ── cel (function) ── +declare function cel(strings: TemplateStringsArray, ...values: unknown[]): Expression; + +// ── cron (function) ── +declare function cron(strings: TemplateStringsArray, ...values: unknown[]): Expression; + +// ── expression (function) ── +declare function expression(source: string, dialect?: ExpressionDialect, meta?: ExpressionMeta): Expression; + +// ── findClosestMatches (function) ── +declare function findClosestMatches(input: string, candidates: readonly string[], maxDistance?: number, maxResults?: number): string[]; + +// ── formatSuggestion (function) ── +declare function formatSuggestion(suggestions: string[]): string; + +// ── formatZodError (function) ── +declare function formatZodError(error: z.ZodError, label?: string): string; + +// ── formatZodIssue (function) ── +declare function formatZodIssue(issue: ZodIssueMinimal): string; + +// ── isValueDomainMember (function) ── +declare function isValueDomainMember(domain: ValueDomain, value: string): boolean; + +// ── keySetMatches (function) ── +declare function keySetMatches(set: KeySetGuidance, key: string): boolean; + +// ── lazySchema (function) ── +declare function lazySchema(factory: () => T): T; + +// ── levenshteinDistance (function) ── +declare function levenshteinDistance(a: string, b: string): number; + +// ── metaUrlSpellingRefusal (function) ── +declare function metaUrlSpellingRefusal(urlType: string): { + declared: string; + hint: string; +} | null; + +// ── normalizeMetadataCollection (function) ── +declare function normalizeMetadataCollection(value: unknown, keyField?: string): unknown; + +// ── normalizePluginMetadata (function) ── +declare function normalizePluginMetadata>(metadata: T): T; + +// ── normalizeStackInput (function) ── +declare function normalizeStackInput>(input: T, options?: NormalizeStackInputOptions): T; + +// ── normalizeVisibleWhen (function) ── +declare function normalizeVisibleWhen(input: T): Omit; + +// ── objectStackErrorMap (const) ── +declare const objectStackErrorMap: (issue: ObjectStackRawIssue) => { + message: string; +} | null; + +// ── pluralToSingular (function) ── +declare function pluralToSingular(key: string): string; + +// ── renderDiffMessage (function) ── +declare function renderDiffMessage(datasource: string, object: string, diffs: SchemaDiffEntry[]): string; + +// ── resilientFetch (function) ── +declare function resilientFetch(input: string | URL, init?: RequestInit, opts?: ResilientFetchOptions): Promise; + +// ── safeParsePretty (function) ── +declare function safeParsePretty(schema: T, data: unknown, label?: string): { + success: true; + data: z.infer; +} | { + success: false; + error: z.ZodError; + formatted: string; +}; + +// ── singularToPlural (function) ── +declare function singularToPlural(key: string): string; + +// ── strictUnknownKeyError (function) ── +declare function strictUnknownKeyError(options: StrictUnknownKeyErrorOptions): z.core.$ZodErrorMap; + +// ── suggestFieldType (function) ── +declare function suggestFieldType(input: string): string[]; + +// ── tmpl (function) ── +declare function tmpl(strings: TemplateStringsArray, ...values: unknown[]): Expression; + +// ── unrecognisedMetaTypeRefusal (function) ── +declare function unrecognisedMetaTypeRefusal(urlType: string): { + type: string; +} | null; diff --git a/packages/spec/api-surface-declarations/studio.txt b/packages/spec/api-surface-declarations/studio.txt new file mode 100644 index 00000000000..a566fe1e641 --- /dev/null +++ b/packages/spec/api-surface-declarations/studio.txt @@ -0,0 +1,860 @@ +# @objectstack/spec — the .d.ts DECLARATION TEXT of every export of `./studio`. +# +# The SHAPE half of the ADR-0059 public-API pin, and the readable counterpart of +# api-surface/studio.json's breadth half. That file pins each export by +# `name (kind)`, which a signature change, a renamed interface field and a dropped +# union member all leave untouched. This file pins the declaration text, so each of +# those moves a line here. Text and NOT a hash, deliberately: a diff a reviewer can +# read is what makes contract review a guard rather than a rubber stamp. +# +# Verbatim from the PACKED `.d.ts` reached through this package's `exports` map — the +# declarations a consumer installs, never `src/`. A declaration's leading TSDoc is +# excluded: documentation drift is `check:docs`'s axis, not this one. +# +# entry: ./studio +# exported names: 74 +# declarations: 74 +# +# GENERATED — ⛔ never hand-edited. Regenerate after a real build: +# pnpm --filter @objectstack/spec build && pnpm --filter @objectstack/spec gen:api-surface-declarations +# Gated by `check:api-surface-declarations`; a hand edit is a red gate, not a change. + +// ── ActionContribution (type) ── +type ActionContribution = z.input; + +// ── ActionContributionLocation (type) ── +type ActionContributionLocation = z.input; + +// ── ActionContributionLocationSchema (const) ── +declare const ActionContributionLocationSchema: z.ZodEnum<{ + toolbar: "toolbar"; + contextMenu: "contextMenu"; + commandPalette: "commandPalette"; +}>; + +// ── ActionContributionSchema (const) ── +declare const ActionContributionSchema: z.ZodObject<{ + id: z.ZodString; + label: z.ZodString; + icon: z.ZodOptional; + location: z.ZodEnum<{ + toolbar: "toolbar"; + contextMenu: "contextMenu"; + commandPalette: "commandPalette"; + }>; + metadataTypes: z.ZodDefault>; +}, z.core.$strict>; + +// ── BUILT_IN_NODE_DESCRIPTORS (const) ── +declare const BUILT_IN_NODE_DESCRIPTORS: FlowNodeRenderDescriptor[]; + +// ── CommandContribution (type) ── +type CommandContribution = z.input; + +// ── CommandContributionSchema (const) ── +declare const CommandContributionSchema: z.ZodObject<{ + id: z.ZodString; + label: z.ZodString; + shortcut: z.ZodOptional; + icon: z.ZodOptional; +}, z.core.$strict>; + +// ── ERDiagramConfig (type) ── +type ERDiagramConfig = z.input; + +// ── ERDiagramConfigSchema (const) ── +declare const ERDiagramConfigSchema: z.ZodObject<{ + enabled: z.ZodDefault; + layout: z.ZodDefault>; + nodeDisplay: z.ZodDefault; + maxFieldsVisible: z.ZodDefault; + showFieldTypes: z.ZodDefault; + showRequiredIndicator: z.ZodDefault; + showRecordCount: z.ZodDefault; + showIcon: z.ZodDefault; + showDescription: z.ZodDefault; + }, z.core.$strict>>; + showMinimap: z.ZodDefault; + zoomControls: z.ZodDefault; + minZoom: z.ZodDefault; + maxZoom: z.ZodDefault; + showEdgeLabels: z.ZodDefault; + highlightOnHover: z.ZodDefault; + clickToNavigate: z.ZodDefault; + dragToConnect: z.ZodDefault; + hideOrphans: z.ZodDefault; + autoFit: z.ZodDefault; + exportFormats: z.ZodDefault>>; +}, z.core.$strict>; + +// ── ERLayoutAlgorithm (type) ── +type ERLayoutAlgorithm = z.input; + +// ── ERLayoutAlgorithmSchema (const) ── +declare const ERLayoutAlgorithmSchema: z.ZodEnum<{ + grid: "grid"; + force: "force"; + hierarchy: "hierarchy"; + circular: "circular"; +}>; + +// ── ERNodeDisplay (type) ── +type ERNodeDisplay = z.input; + +// ── ERNodeDisplaySchema (const) ── +declare const ERNodeDisplaySchema: z.ZodObject<{ + showFields: z.ZodDefault; + maxFieldsVisible: z.ZodDefault; + showFieldTypes: z.ZodDefault; + showRequiredIndicator: z.ZodDefault; + showRecordCount: z.ZodDefault; + showIcon: z.ZodDefault; + showDescription: z.ZodDefault; +}, z.core.$strict>; + +// ── FieldEditorConfig (type) ── +type FieldEditorConfig = z.input; + +// ── FieldEditorConfigSchema (const) ── +declare const FieldEditorConfigSchema: z.ZodObject<{ + inlineEditing: z.ZodDefault; + dragReorder: z.ZodDefault; + showFieldGroups: z.ZodDefault; + showPropertyPanel: z.ZodDefault; + propertySections: z.ZodDefault; + defaultExpanded: z.ZodDefault; + order: z.ZodDefault; + }, z.core.$strict>>>; + fieldGroups: z.ZodDefault; + defaultExpanded: z.ZodDefault; + order: z.ZodDefault; + }, z.core.$strict>>>; + paginationThreshold: z.ZodDefault; + batchOperations: z.ZodDefault; + showUsageStats: z.ZodDefault; +}, z.core.$strict>; + +// ── FieldGroup (type) ── +type FieldGroup = z.input; + +// ── FieldGroupSchema (const) ── +declare const FieldGroupSchema: z.ZodObject<{ + key: z.ZodString; + label: z.ZodString; + icon: z.ZodOptional; + defaultExpanded: z.ZodDefault; + order: z.ZodDefault; +}, z.core.$strict>; + +// ── FieldPropertySection (type) ── +type FieldPropertySection = z.input; + +// ── FieldPropertySectionSchema (const) ── +declare const FieldPropertySectionSchema: z.ZodObject<{ + key: z.ZodString; + label: z.ZodString; + icon: z.ZodOptional; + defaultExpanded: z.ZodDefault; + order: z.ZodDefault; +}, z.core.$strict>; + +// ── FlowBuilderConfig (type) ── +type FlowBuilderConfig = z.input; + +// ── FlowBuilderConfigSchema (const) ── +declare const FlowBuilderConfigSchema: z.ZodObject<{ + snap: z.ZodDefault; + gridSize: z.ZodDefault; + showGrid: z.ZodDefault; + }, z.core.$strict>>; + zoom: z.ZodDefault; + max: z.ZodDefault; + default: z.ZodDefault; + step: z.ZodDefault; + }, z.core.$strict>>; + layoutAlgorithm: z.ZodDefault>; + layoutDirection: z.ZodDefault>; + nodeDescriptors: z.ZodOptional; + icon: z.ZodString; + defaultLabel: z.ZodString; + defaultWidth: z.ZodDefault; + defaultHeight: z.ZodDefault; + fillColor: z.ZodDefault; + borderColor: z.ZodDefault; + allowBoundaryEvents: z.ZodDefault; + paletteCategory: z.ZodEnum<{ + data: "data"; + event: "event"; + gateway: "gateway"; + activity: "activity"; + subflow: "subflow"; + }>; + }, z.core.$strict>>>; + showMinimap: z.ZodDefault; + showPropertyPanel: z.ZodDefault; + showPalette: z.ZodDefault; + undoLimit: z.ZodDefault; + animateExecution: z.ZodDefault; + connectionValidation: z.ZodDefault; +}, z.core.$strict>; + +// ── FlowCanvasEdge (type) ── +type FlowCanvasEdge = z.input; + +// ── FlowCanvasEdgeSchema (const) ── +declare const FlowCanvasEdgeSchema: z.ZodObject<{ + edgeId: z.ZodString; + style: z.ZodDefault>; + color: z.ZodDefault; + labelPosition: z.ZodDefault; + waypoints: z.ZodOptional>>; + animated: z.ZodDefault; +}, z.core.$strict>; + +// ── FlowCanvasEdgeStyle (type) ── +type FlowCanvasEdgeStyle = z.input; + +// ── FlowCanvasEdgeStyleSchema (const) ── +declare const FlowCanvasEdgeStyleSchema: z.ZodEnum<{ + bold: "bold"; + solid: "solid"; + dashed: "dashed"; + dotted: "dotted"; + back: "back"; +}>; + +// ── FlowCanvasNode (type) ── +type FlowCanvasNode = z.input; + +// ── FlowCanvasNodeSchema (const) ── +declare const FlowCanvasNodeSchema: z.ZodObject<{ + nodeId: z.ZodString; + x: z.ZodNumber; + y: z.ZodNumber; + width: z.ZodOptional; + height: z.ZodOptional; + collapsed: z.ZodDefault; + fillColor: z.ZodOptional; + borderColor: z.ZodOptional; + annotation: z.ZodOptional; +}, z.core.$strict>; + +// ── FlowLayoutAlgorithm (type) ── +type FlowLayoutAlgorithm = z.input; + +// ── FlowLayoutAlgorithmSchema (const) ── +declare const FlowLayoutAlgorithmSchema: z.ZodEnum<{ + force: "force"; + dagre: "dagre"; + elk: "elk"; + manual: "manual"; +}>; + +// ── FlowLayoutDirection (type) ── +type FlowLayoutDirection = z.input; + +// ── FlowLayoutDirectionSchema (const) ── +declare const FlowLayoutDirectionSchema: z.ZodEnum<{ + TB: "TB"; + BT: "BT"; + LR: "LR"; + RL: "RL"; +}>; + +// ── FlowNodeRenderDescriptor (type) ── +type FlowNodeRenderDescriptor = z.input; + +// ── FlowNodeRenderDescriptorSchema (const) ── +declare const FlowNodeRenderDescriptorSchema: z.ZodObject<{ + action: z.ZodString; + shape: z.ZodEnum<{ + rounded_rect: "rounded_rect"; + circle: "circle"; + diamond: "diamond"; + parallelogram: "parallelogram"; + hexagon: "hexagon"; + diamond_thick: "diamond_thick"; + attached_circle: "attached_circle"; + screen_rect: "screen_rect"; + }>; + icon: z.ZodString; + defaultLabel: z.ZodString; + defaultWidth: z.ZodDefault; + defaultHeight: z.ZodDefault; + fillColor: z.ZodDefault; + borderColor: z.ZodDefault; + allowBoundaryEvents: z.ZodDefault; + paletteCategory: z.ZodEnum<{ + data: "data"; + event: "event"; + gateway: "gateway"; + activity: "activity"; + subflow: "subflow"; + }>; +}, z.core.$strict>; + +// ── FlowNodeShape (type) ── +type FlowNodeShape = z.input; + +// ── FlowNodeShapeSchema (const) ── +declare const FlowNodeShapeSchema: z.ZodEnum<{ + rounded_rect: "rounded_rect"; + circle: "circle"; + diamond: "diamond"; + parallelogram: "parallelogram"; + hexagon: "hexagon"; + diamond_thick: "diamond_thick"; + attached_circle: "attached_circle"; + screen_rect: "screen_rect"; +}>; + +// ── MetadataIconContribution (type) ── +type MetadataIconContribution = z.input; + +// ── MetadataIconContributionSchema (const) ── +declare const MetadataIconContributionSchema: z.ZodObject<{ + metadataType: z.ZodString; + label: z.ZodString; + icon: z.ZodString; +}, z.core.$strict>; + +// ── MetadataViewerContribution (type) ── +type MetadataViewerContribution = z.input; + +// ── MetadataViewerContributionSchema (const) ── +declare const MetadataViewerContributionSchema: z.ZodObject<{ + id: z.ZodString; + metadataTypes: z.ZodArray; + label: z.ZodString; + priority: z.ZodDefault; + modes: z.ZodDefault>>; +}, z.core.$strict>; + +// ── ObjectDesignerConfig (type) ── +type ObjectDesignerConfig = z.input; + +// ── ObjectDesignerConfigSchema (const) ── +declare const ObjectDesignerConfigSchema: z.ZodObject<{ + defaultView: z.ZodDefault>; + fieldEditor: z.ZodDefault; + dragReorder: z.ZodDefault; + showFieldGroups: z.ZodDefault; + showPropertyPanel: z.ZodDefault; + propertySections: z.ZodDefault; + defaultExpanded: z.ZodDefault; + order: z.ZodDefault; + }, z.core.$strict>>>; + fieldGroups: z.ZodDefault; + defaultExpanded: z.ZodDefault; + order: z.ZodDefault; + }, z.core.$strict>>>; + paginationThreshold: z.ZodDefault; + batchOperations: z.ZodDefault; + showUsageStats: z.ZodDefault; + }, z.core.$strict>>; + relationshipMapper: z.ZodDefault; + showReverseRelationships: z.ZodDefault; + showCascadeWarnings: z.ZodDefault; + displayConfig: z.ZodDefault; + lineStyle: z.ZodDefault>; + color: z.ZodDefault; + highlightColor: z.ZodDefault; + cardinalityLabel: z.ZodDefault; + }, z.core.$strict>>>; + }, z.core.$strict>>; + erDiagram: z.ZodDefault; + layout: z.ZodDefault>; + nodeDisplay: z.ZodDefault; + maxFieldsVisible: z.ZodDefault; + showFieldTypes: z.ZodDefault; + showRequiredIndicator: z.ZodDefault; + showRecordCount: z.ZodDefault; + showIcon: z.ZodDefault; + showDescription: z.ZodDefault; + }, z.core.$strict>>; + showMinimap: z.ZodDefault; + zoomControls: z.ZodDefault; + minZoom: z.ZodDefault; + maxZoom: z.ZodDefault; + showEdgeLabels: z.ZodDefault; + highlightOnHover: z.ZodDefault; + clickToNavigate: z.ZodDefault; + dragToConnect: z.ZodDefault; + hideOrphans: z.ZodDefault; + autoFit: z.ZodDefault; + exportFormats: z.ZodDefault>>; + }, z.core.$strict>>; + objectManager: z.ZodDefault>; + defaultSortField: z.ZodDefault>; + defaultSortDirection: z.ZodDefault>; + defaultFilter: z.ZodDefault; + tags: z.ZodOptional>; + includeSystem: z.ZodDefault; + includeAbstract: z.ZodDefault; + hasFieldType: z.ZodOptional; + hasRelationships: z.ZodOptional; + searchQuery: z.ZodOptional; + }, z.core.$strict>>; + showFieldCount: z.ZodDefault; + showRelationshipCount: z.ZodDefault; + showQuickPreview: z.ZodDefault; + enableComparison: z.ZodDefault; + showERDiagramToggle: z.ZodDefault; + showCreateAction: z.ZodDefault; + showStatsSummary: z.ZodDefault; + }, z.core.$strict>>; + objectPreview: z.ZodDefault; + enabled: z.ZodDefault; + order: z.ZodDefault; + }, z.core.$strict>>>; + defaultTab: z.ZodDefault; + showHeader: z.ZodDefault; + showBreadcrumbs: z.ZodDefault; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── ObjectDesignerDefaultView (type) ── +type ObjectDesignerDefaultView = z.input; + +// ── ObjectDesignerDefaultViewSchema (const) ── +declare const ObjectDesignerDefaultViewSchema: z.ZodEnum<{ + "field-editor": "field-editor"; + "relationship-mapper": "relationship-mapper"; + "er-diagram": "er-diagram"; + "object-manager": "object-manager"; +}>; + +// ── ObjectFilter (type) ── +type ObjectFilter = z.input; + +// ── ObjectFilterSchema (const) ── +declare const ObjectFilterSchema: z.ZodObject<{ + package: z.ZodOptional; + tags: z.ZodOptional>; + includeSystem: z.ZodDefault; + includeAbstract: z.ZodDefault; + hasFieldType: z.ZodOptional; + hasRelationships: z.ZodOptional; + searchQuery: z.ZodOptional; +}, z.core.$strict>; + +// ── ObjectListDisplayMode (type) ── +type ObjectListDisplayMode = z.input; + +// ── ObjectListDisplayModeSchema (const) ── +declare const ObjectListDisplayModeSchema: z.ZodEnum<{ + tree: "tree"; + table: "table"; + cards: "cards"; +}>; + +// ── ObjectManagerConfig (type) ── +type ObjectManagerConfig = z.input; + +// ── ObjectManagerConfigSchema (const) ── +declare const ObjectManagerConfigSchema: z.ZodObject<{ + defaultDisplayMode: z.ZodDefault>; + defaultSortField: z.ZodDefault>; + defaultSortDirection: z.ZodDefault>; + defaultFilter: z.ZodDefault; + tags: z.ZodOptional>; + includeSystem: z.ZodDefault; + includeAbstract: z.ZodDefault; + hasFieldType: z.ZodOptional; + hasRelationships: z.ZodOptional; + searchQuery: z.ZodOptional; + }, z.core.$strict>>; + showFieldCount: z.ZodDefault; + showRelationshipCount: z.ZodDefault; + showQuickPreview: z.ZodDefault; + enableComparison: z.ZodDefault; + showERDiagramToggle: z.ZodDefault; + showCreateAction: z.ZodDefault; + showStatsSummary: z.ZodDefault; +}, z.core.$strict>; + +// ── ObjectPreviewConfig (type) ── +type ObjectPreviewConfig = z.input; + +// ── ObjectPreviewConfigSchema (const) ── +declare const ObjectPreviewConfigSchema: z.ZodObject<{ + tabs: z.ZodDefault; + enabled: z.ZodDefault; + order: z.ZodDefault; + }, z.core.$strict>>>; + defaultTab: z.ZodDefault; + showHeader: z.ZodDefault; + showBreadcrumbs: z.ZodDefault; +}, z.core.$strict>; + +// ── ObjectPreviewTab (type) ── +type ObjectPreviewTab = z.input; + +// ── ObjectPreviewTabSchema (const) ── +declare const ObjectPreviewTabSchema: z.ZodObject<{ + key: z.ZodString; + label: z.ZodString; + icon: z.ZodOptional; + enabled: z.ZodDefault; + order: z.ZodDefault; +}, z.core.$strict>; + +// ── ObjectSortField (type) ── +type ObjectSortField = z.input; + +// ── ObjectSortFieldSchema (const) ── +declare const ObjectSortFieldSchema: z.ZodEnum<{ + name: "name"; + label: "label"; + fieldCount: "fieldCount"; + updatedAt: "updatedAt"; +}>; + +// ── PanelContribution (type) ── +type PanelContribution = z.input; + +// ── PanelContributionSchema (const) ── +declare const PanelContributionSchema: z.ZodObject<{ + id: z.ZodString; + label: z.ZodString; + icon: z.ZodOptional; + location: z.ZodDefault>; +}, z.core.$strict>; + +// ── PanelLocation (type) ── +type PanelLocation = z.input; + +// ── PanelLocationSchema (const) ── +declare const PanelLocationSchema: z.ZodEnum<{ + bottom: "bottom"; + right: "right"; + modal: "modal"; +}>; + +// ── RelationshipDisplay (type) ── +type RelationshipDisplay = z.input; + +// ── RelationshipDisplaySchema (const) ── +declare const RelationshipDisplaySchema: z.ZodObject<{ + type: z.ZodEnum<{ + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + }>; + lineStyle: z.ZodDefault>; + color: z.ZodDefault; + highlightColor: z.ZodDefault; + cardinalityLabel: z.ZodDefault; +}, z.core.$strict>; + +// ── RelationshipMapperConfig (type) ── +type RelationshipMapperConfig = z.input; + +// ── RelationshipMapperConfigSchema (const) ── +declare const RelationshipMapperConfigSchema: z.ZodObject<{ + visualCreation: z.ZodDefault; + showReverseRelationships: z.ZodDefault; + showCascadeWarnings: z.ZodDefault; + displayConfig: z.ZodDefault; + lineStyle: z.ZodDefault>; + color: z.ZodDefault; + highlightColor: z.ZodDefault; + cardinalityLabel: z.ZodDefault; + }, z.core.$strict>>>; +}, z.core.$strict>; + +// ── SidebarGroupContribution (type) ── +type SidebarGroupContribution = z.input; + +// ── SidebarGroupContributionSchema (const) ── +declare const SidebarGroupContributionSchema: z.ZodObject<{ + key: z.ZodString; + label: z.ZodString; + icon: z.ZodOptional; + metadataTypes: z.ZodArray; + order: z.ZodDefault; +}, z.core.$strict>; + +// ── StudioPluginContributions (type) ── +type StudioPluginContributions = z.input; + +// ── StudioPluginContributionsSchema (const) ── +declare const StudioPluginContributionsSchema: z.ZodObject<{ + metadataViewers: z.ZodDefault; + label: z.ZodString; + priority: z.ZodDefault; + modes: z.ZodDefault>>; + }, z.core.$strict>>>; + sidebarGroups: z.ZodDefault; + metadataTypes: z.ZodArray; + order: z.ZodDefault; + }, z.core.$strict>>>; + actions: z.ZodDefault; + location: z.ZodEnum<{ + toolbar: "toolbar"; + contextMenu: "contextMenu"; + commandPalette: "commandPalette"; + }>; + metadataTypes: z.ZodDefault>; + }, z.core.$strict>>>; + metadataIcons: z.ZodDefault>>; + panels: z.ZodDefault; + location: z.ZodDefault>; + }, z.core.$strict>>>; + commands: z.ZodDefault; + icon: z.ZodOptional; + }, z.core.$strict>>>; +}, z.core.$strict>; + +// ── StudioPluginManifest (type) ── +type StudioPluginManifest = z.input; + +// ── StudioPluginManifestSchema (const) ── +declare const StudioPluginManifestSchema: z.ZodObject<{ + id: z.ZodString; + name: z.ZodString; + version: z.ZodDefault; + description: z.ZodOptional; + author: z.ZodOptional; + contributes: z.ZodDefault; + label: z.ZodString; + priority: z.ZodDefault; + modes: z.ZodDefault>>; + }, z.core.$strict>>>; + sidebarGroups: z.ZodDefault; + metadataTypes: z.ZodArray; + order: z.ZodDefault; + }, z.core.$strict>>>; + actions: z.ZodDefault; + location: z.ZodEnum<{ + toolbar: "toolbar"; + contextMenu: "contextMenu"; + commandPalette: "commandPalette"; + }>; + metadataTypes: z.ZodDefault>; + }, z.core.$strict>>>; + metadataIcons: z.ZodDefault>>; + panels: z.ZodDefault; + location: z.ZodDefault>; + }, z.core.$strict>>>; + commands: z.ZodDefault; + icon: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── ViewMode (type) ── +type ViewMode = z.input; + +// ── ViewModeSchema (const) ── +declare const ViewModeSchema: z.ZodEnum<{ + code: "code"; + history: "history"; + preview: "preview"; + design: "design"; + data: "data"; +}>; + +// ── defineFlowBuilderConfig (function) ── +declare function defineFlowBuilderConfig(input: z.input): FlowBuilderConfigParsed; + +// ── defineObjectDesignerConfig (function) ── +declare function defineObjectDesignerConfig(input: z.input): ObjectDesignerConfigParsed; + +// ── defineStudioPlugin (function) ── +declare function defineStudioPlugin(input: z.input): StudioPluginManifestParsed; diff --git a/packages/spec/api-surface-declarations/system.txt b/packages/spec/api-surface-declarations/system.txt new file mode 100644 index 00000000000..4ebfda01bfb --- /dev/null +++ b/packages/spec/api-surface-declarations/system.txt @@ -0,0 +1,73283 @@ +# @objectstack/spec — the .d.ts DECLARATION TEXT of every export of `./system`. +# +# The SHAPE half of the ADR-0059 public-API pin, and the readable counterpart of +# api-surface/system.json's breadth half. That file pins each export by +# `name (kind)`, which a signature change, a renamed interface field and a dropped +# union member all leave untouched. This file pins the declaration text, so each of +# those moves a line here. Text and NOT a hash, deliberately: a diff a reviewer can +# read is what makes contract review a guard rather than a rubber stamp. +# +# Verbatim from the PACKED `.d.ts` reached through this package's `exports` map — the +# declarations a consumer installs, never `src/`. A declaration's leading TSDoc is +# excluded: documentation drift is `check:docs`'s axis, not this one. +# +# entry: ./system +# exported names: 805 +# declarations: 844 +# +# GENERATED — ⛔ never hand-edited. Regenerate after a real build: +# pnpm --filter @objectstack/spec build && pnpm --filter @objectstack/spec gen:api-surface-declarations +# Gated by `check:api-surface-declarations`; a hand edit is a red gate, not a change. + +// ── AUDIENCE_POSTURES (const) ── +declare const AUDIENCE_POSTURES: readonly ["invite_only", "email_domain", "open"]; + +// ── AccessControlConfig (type) ── +type AccessControlConfig = z.input; + +// ── AccessControlConfigParsed (type) ── +type AccessControlConfigParsed = z.infer; + +// ── AccessControlConfigSchema (const) ── +declare const AccessControlConfigSchema: z.ZodObject<{ + acl: z.ZodDefault>; + allowedOrigins: z.ZodOptional>; + allowedMethods: z.ZodOptional>>; + allowedHeaders: z.ZodOptional>; + exposeHeaders: z.ZodOptional>; + maxAgeSeconds: z.ZodOptional; + maxAge: z.ZodOptional; + corsEnabled: z.ZodDefault; + publicAccess: z.ZodOptional; + allowPublicWrite: z.ZodDefault; + allowPublicList: z.ZodDefault; + }, z.core.$strip>>; + allowedIps: z.ZodOptional>; + blockedIps: z.ZodOptional>; +}, z.core.$strip>; + +// ── ActionLike (interface) ── +interface ActionLike { + name: string; + label?: string; + /** + * `ActionSchema.description` — the explanatory line under the title in the + * action's param dialog. Narrowed to `string` for the same reason `label` is: + * a resolver answers with ONE locale's string. + */ + description?: string; + confirmText?: string; + successMessage?: string; + /** `ActionSchema.params` — the param dialog's own copy. */ + params?: ActionParamLike[]; + /** When omitted, the action is treated as global. */ + objectName?: string; + /** Post-success reveal dialog (see `Action.resultDialog` in ui/action.zod). */ + resultDialog?: ResultDialogLike; +} + +// ── ActionParamLike (interface) ── +interface ActionParamLike { + /** `ActionParamSchema.name` — the `params` translation key. */ + name?: string; + /** `ActionParamSchema.field` — the translation key when `name` is omitted. */ + field?: string; + label?: string; + /** An ACTION param spells its hint `helpText`; a BULK param spells it `help`. */ + helpText?: string; + placeholder?: string; + /** + * `ActionParamSchema.options[]` is an ARRAY of entries while the translation + * side is a `value -> label` MAP, so the overlay matches on `value` — the + * same shape mismatch `translateObject`'s field options resolve across. + */ + options?: Array<{ + value?: string | number | boolean; + label?: string; + [key: string]: unknown; + }>; + [key: string]: unknown; +} + +// ── ActionResultDialogTranslation (type) ── +type ActionResultDialogTranslation = z.input; + +// ── ActionResultDialogTranslationSchema (const) ── +declare const ActionResultDialogTranslationSchema: z.ZodObject<{ + title: z.ZodOptional; + description: z.ZodOptional; + acknowledge: z.ZodOptional; + fields: z.ZodOptional>; +}, z.core.$strict>; + +// ── AddFieldOperation (const) ── +declare const AddFieldOperation: z.ZodObject<{ + type: z.ZodLiteral<"add_field">; + objectName: z.ZodString; + fieldName: z.ZodString; + field: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + tags: "tags"; + email: "email"; + phone: "phone"; + user: "user"; + datetime: "datetime"; + location: "location"; + text: "text"; + url: "url"; + time: "time"; + formula: "formula"; + textarea: "textarea"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + vector: "vector"; + }>; + description: z.ZodOptional; + format: z.ZodOptional; + required: z.ZodDefault; + storage: z.ZodOptional; + }, z.core.$strict>>; + searchable: z.ZodDefault; + multiple: z.ZodDefault; + unique: z.ZodOptional, z.ZodLiteral<"organization">]>>; + defaultValue: z.ZodOptional; + maxLength: z.ZodOptional; + minLength: z.ZodOptional; + valueDomain: z.ZodOptional>; + rows: z.ZodOptional; + precision: z.ZodOptional; + scale: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + useGrouping: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + options: z.ZodOptional; + color: z.ZodOptional; + default: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + reference: z.ZodOptional; + referenceVia: z.ZodOptional; + deleteBehavior: z.ZodOptional>; + inlineEdit: z.ZodOptional]>>; + inlineTitle: z.ZodOptional; + inlineColumns: z.ZodOptional; + type: z.ZodOptional>; + width: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + prefix: z.ZodOptional; + step: z.ZodOptional; + reference: z.ZodOptional; + displayField: z.ZodOptional; + idField: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + defaultHidden: z.ZodOptional; + computed: z.ZodOptional; + expr: z.ZodOptional; + scale: z.ZodOptional; + autofill: z.ZodOptional; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + inlineAmountField: z.ZodOptional; + relatedList: z.ZodOptional]>>; + relatedListTitle: z.ZodOptional; + relatedListColumns: z.ZodOptional>; + relatedListFilter: z.ZodOptional>>; + displayField: z.ZodOptional; + descriptionField: z.ZodOptional; + lookupColumns: z.ZodOptional; + width: z.ZodOptional; + type: z.ZodOptional; + }, z.core.$strict>]>>>; + lookupPageSize: z.ZodOptional; + lookupFilters: z.ZodOptional; + value: z.ZodAny; + }, z.core.$strict>>>; + dependsOn: z.ZodOptional; + }, z.core.$strict>]>>>; + allowCreate: z.ZodOptional; + expression: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + returnType: z.ZodOptional>; + summaryOperations: z.ZodOptional; + relationshipField: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strict>>; + language: z.ZodOptional; + step: z.ZodOptional; + currencyConfig: z.ZodOptional; + currencyMode: z.ZodDefault>; + defaultCurrency: z.ZodDefault; + }, z.core.$strict>>; + dimensions: z.ZodOptional; + trackHistory: z.ZodOptional; + group: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + conditionalRequired: z.ZodOptional; + widget: z.ZodOptional; + hidden: z.ZodDefault; + internal: z.ZodOptional; + readonly: z.ZodDefault; + requiredPermissions: z.ZodOptional>; + maskingRule: z.ZodOptional, z.ZodObject<{ + keepHead: z.ZodNumber; + keepTail: z.ZodNumber; + }, z.core.$strict>]>>; + ackPlaintextMasking: z.ZodOptional; + system: z.ZodOptional; + sortable: z.ZodDefault>; + inlineHelpText: z.ZodOptional; + placeholder: z.ZodOptional; + autonumberFormat: z.ZodOptional; + externalId: z.ZodDefault; + }, z.core.$strict>; +}, z.core.$strip>; + +// ── AddressedPageComponentContext (interface) ── +interface AddressedPageComponentContext { + /** + * The id this component is addressed by (`pages..components.`, + * #6080), or `undefined` when it carries none. + */ + id: string | undefined; + /** + * `true` below root level — the component was reached through a container's + * declared `properties.children`, or through a `properties.items[].children` + * panel of a `page:tabs` / `page:accordion` (#16772). + */ + nested: boolean; + /** + * Levels below root level; root-level components — an entry of + * `regions[].components[]` or of `slots.` — sit at `0`. An `items[]` + * panel costs one level exactly as a `children` slot does. + */ + depth: number; + /** + * `true` when this component OWNS its id's `pages..components.` + * entry under the ruled collision arbitration (#12961): a root-level + * component carrying the id wins outright — even over a nested match seen + * earlier in document order — and among nested components the depth-first + * document-order FIRST sighting takes it. At most one visited component is + * `addressed` per id, so a consumer keyed on it can never double-count. + */ + addressed: boolean; +} + +// ── AddressedPageRoots (type) ── +type AddressedPageRoots = Pick; + +// ── AdvancedAuthConfig (type) ── +type AdvancedAuthConfig = z.input; + +// ── AdvancedAuthConfigSchema (const) ── +declare const AdvancedAuthConfigSchema: z.ZodOptional>; + domain: z.ZodOptional; + }, z.core.$strip>>; + useSecureCookies: z.ZodOptional; + disableCSRFCheck: z.ZodOptional; + cookiePrefix: z.ZodOptional; +}, z.core.$strip>>; + +// ── AnalyzerConfig (type) ── +type AnalyzerConfig = z.input; + +// ── AnalyzerConfigSchema (const) ── +declare const AnalyzerConfigSchema: z.ZodObject<{ + type: z.ZodEnum<{ + pattern: "pattern"; + standard: "standard"; + simple: "simple"; + whitespace: "whitespace"; + keyword: "keyword"; + language: "language"; + }>; + language: z.ZodOptional; + stopwords: z.ZodOptional>; + customFilters: z.ZodOptional>; +}, z.core.$strip>; + +// ── AppCompatibilityCheck (type) ── +type AppCompatibilityCheck = z.input; + +// ── AppCompatibilityCheckParsed (type) ── +type AppCompatibilityCheckParsed = z.infer; + +// ── AppCompatibilityCheckSchema (const) ── +declare const AppCompatibilityCheckSchema: z.ZodObject<{ + compatible: z.ZodBoolean; + issues: z.ZodDefault; + message: z.ZodString; + category: z.ZodEnum<{ + kernel_version: "kernel_version"; + object_conflict: "object_conflict"; + dependency_missing: "dependency_missing"; + quota_exceeded: "quota_exceeded"; + }>; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── AppInstallRequest (type) ── +type AppInstallRequest = z.input; + +// ── AppInstallRequestParsed (type) ── +type AppInstallRequestParsed = z.infer; + +// ── AppInstallRequestSchema (const) ── +declare const AppInstallRequestSchema: z.ZodObject<{ + tenantId: z.ZodString; + appId: z.ZodString; + configOverrides: z.ZodOptional>; + skipSeedData: z.ZodDefault; +}, z.core.$strip>; + +// ── AppInstallResult (type) ── +type AppInstallResult = z.input; + +// ── AppInstallResultParsed (type) ── +type AppInstallResultParsed = z.infer; + +// ── AppInstallResultSchema (const) ── +declare const AppInstallResultSchema: z.ZodObject<{ + success: z.ZodBoolean; + appId: z.ZodString; + version: z.ZodString; + installedObjects: z.ZodDefault>; + createdTables: z.ZodDefault>; + seededRecords: z.ZodDefault; + durationMs: z.ZodOptional; + error: z.ZodOptional; +}, z.core.$strip>; + +// ── AppLike (interface) ── +interface AppLike { + name: string; + label?: string; + description?: string; + navigation?: NavNodeLike[]; + [key: string]: any; +} + +// ── AppManifest (type) ── +type AppManifest = z.input; + +// ── AppManifestParsed (type) ── +type AppManifestParsed = z.infer; + +// ── AppManifestSchema (const) ── +declare const AppManifestSchema: z.ZodObject<{ + name: z.ZodString; + label: z.ZodString; + version: z.ZodString; + description: z.ZodOptional; + minKernelVersion: z.ZodOptional; + objects: z.ZodDefault>; + views: z.ZodDefault>; + flows: z.ZodDefault>; + hasSeedData: z.ZodDefault; + seedData: z.ZodDefault>>; + dependencies: z.ZodDefault>; +}, z.core.$strip>; + +// ── AudienceBook (interface) ── +interface AudienceBook extends Book { + /** Owning package id (stamped `_packageId` by the metadata layer). */ + packageId?: string; +} + +// ── AudienceCaller (interface) ── +interface AudienceCaller { + /** True when the request carries an authenticated principal. */ + authenticated: boolean; + /** + * Names of the permission sets the caller effectively holds (positions + * expanded, baseline included — the security plugin's resolution). + * Absent/undefined means "unknown" and permission-set-gated audiences + * DENY (fail closed, ADR-0049) — pass an empty array only when resolution + * genuinely returned nothing. + */ + permissionSets?: readonly string[]; +} + +// ── AudienceConfig (type) ── +type AudienceConfig = z.input; + +// ── AudienceConfigParsed (type) ── +type AudienceConfigParsed = z.infer; + +// ── AudienceConfigSchema (const) ── +declare const AudienceConfigSchema: z.ZodObject<{ + posture: z.ZodDefault>; + allowedEmailDomains: z.ZodOptional>; + selfRegistrationPermissionSet: z.ZodOptional; +}, z.core.$strip>; + +// ── AudiencePosture (type) ── +type AudiencePosture = (typeof AUDIENCE_POSTURES)[number]; + +// ── AuthConfig (type) ── +type AuthConfig = z.input; + +// ── AuthConfigParsed (type) ── +type AuthConfigParsed = z.infer; + +// ── AuthConfigSchema (const) ── +declare const AuthConfigSchema: z.ZodObject<{ + secret: z.ZodOptional; + baseUrl: z.ZodOptional; + uiBasePath: z.ZodDefault; + databaseUrl: z.ZodOptional; + providers: z.ZodOptional>; + }, z.core.$strip>>>; + plugins: z.ZodOptional; + twoFactor: z.ZodDefault; + passkeys: z.ZodDefault; + passwordRejectBreached: z.ZodDefault; + magicLink: z.ZodDefault; + oidcProvider: z.ZodDefault; + dynamicClientRegistration: z.ZodOptional; + deviceAuthorization: z.ZodDefault; + admin: z.ZodOptional; + phoneNumber: z.ZodDefault; + scim: z.ZodOptional; + sso: z.ZodOptional; + ssoDomainVerification: z.ZodOptional; + }, z.core.$strip>>; + session: z.ZodOptional; + updateAge: z.ZodDefault; + }, z.core.$strip>>; + trustedOrigins: z.ZodOptional>; + socialProviders: z.ZodOptional; + scope: z.ZodOptional>; + }, z.core.$catchall>>>; + oidcProviders: z.ZodOptional; + discoveryUrl: z.ZodOptional; + issuer: z.ZodOptional; + authorizationUrl: z.ZodOptional; + tokenUrl: z.ZodOptional; + userInfoUrl: z.ZodOptional; + clientId: z.ZodString; + clientSecret: z.ZodString; + scopes: z.ZodOptional>; + pkce: z.ZodOptional; + }, z.core.$strip>>>; + emailAndPassword: z.ZodOptional; + disableSignUp: z.ZodOptional; + requireEmailVerification: z.ZodOptional; + minPasswordLength: z.ZodOptional; + maxPasswordLength: z.ZodOptional; + resetPasswordTokenExpiresIn: z.ZodOptional; + autoSignIn: z.ZodOptional; + revokeSessionsOnPasswordReset: z.ZodOptional; + }, z.core.$strip>>; + emailVerification: z.ZodOptional; + sendOnSignIn: z.ZodOptional; + autoSignInAfterVerification: z.ZodOptional; + expiresIn: z.ZodOptional; + }, z.core.$strip>>; + audience: z.ZodOptional>; + allowedEmailDomains: z.ZodOptional>; + selfRegistrationPermissionSet: z.ZodOptional; + }, z.core.$strip>>; + advanced: z.ZodOptional>; + domain: z.ZodOptional; + }, z.core.$strip>>; + useSecureCookies: z.ZodOptional; + disableCSRFCheck: z.ZodOptional; + cookiePrefix: z.ZodOptional; + }, z.core.$strip>>; + ssoOnlyMode: z.ZodOptional; + mutualTls: z.ZodOptional; + clientCertRequired: z.ZodDefault; + trustedCAs: z.ZodArray; + crlUrl: z.ZodOptional; + ocspUrl: z.ZodOptional; + certificateValidation: z.ZodEnum<{ + strict: "strict"; + none: "none"; + relaxed: "relaxed"; + }>; + allowedCNs: z.ZodOptional>; + allowedOUs: z.ZodOptional>; + pinning: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; +}, z.core.$catchall>; + +// ── AuthPluginConfig (type) ── +type AuthPluginConfig = z.input; + +// ── AuthPluginConfigParsed (type) ── +type AuthPluginConfigParsed = z.infer; + +// ── AuthPluginConfigSchema (const) ── +declare const AuthPluginConfigSchema: z.ZodObject<{ + organization: z.ZodDefault; + twoFactor: z.ZodDefault; + passkeys: z.ZodDefault; + passwordRejectBreached: z.ZodDefault; + magicLink: z.ZodDefault; + oidcProvider: z.ZodDefault; + dynamicClientRegistration: z.ZodOptional; + deviceAuthorization: z.ZodDefault; + admin: z.ZodOptional; + phoneNumber: z.ZodDefault; + scim: z.ZodOptional; + sso: z.ZodOptional; + ssoDomainVerification: z.ZodOptional; +}, z.core.$strip>; + +// ── AuthProviderConfig (type) ── +type AuthProviderConfig = z.input; + +// ── AuthProviderConfigSchema (const) ── +declare const AuthProviderConfigSchema: z.ZodObject<{ + id: z.ZodString; + clientId: z.ZodString; + clientSecret: z.ZodString; + scope: z.ZodOptional>; +}, z.core.$strip>; + +// ── AwarenessEvent (type) ── +type AwarenessEvent = z.input; + +// ── AwarenessEventSchema (const) ── +declare const AwarenessEventSchema: z.ZodObject<{ + eventId: z.ZodString; + sessionId: z.ZodString; + eventType: z.ZodEnum<{ + "user.joined": "user.joined"; + "user.left": "user.left"; + "user.updated": "user.updated"; + "session.created": "session.created"; + "session.ended": "session.ended"; + }>; + userId: z.ZodOptional; + timestamp: z.ZodString; + payload: z.ZodUnknown; +}, z.core.$strip>; + +// ── AwarenessSession (type) ── +type AwarenessSession = z.input; + +// ── AwarenessSessionSchema (const) ── +declare const AwarenessSessionSchema: z.ZodObject<{ + sessionId: z.ZodString; + documentId: z.ZodOptional; + users: z.ZodArray; + status: z.ZodEnum<{ + active: "active"; + idle: "idle"; + viewing: "viewing"; + disconnected: "disconnected"; + }>; + currentDocument: z.ZodOptional; + currentView: z.ZodOptional; + lastActivity: z.ZodString; + joinedAt: z.ZodString; + permissions: z.ZodOptional>; + metadata: z.ZodOptional>; + }, z.core.$strip>>; + startedAt: z.ZodString; + lastUpdate: z.ZodString; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── AwarenessUpdate (type) ── +type AwarenessUpdate = z.input; + +// ── AwarenessUpdateSchema (const) ── +declare const AwarenessUpdateSchema: z.ZodObject<{ + status: z.ZodOptional>; + currentDocument: z.ZodOptional; + currentView: z.ZodOptional; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── AwarenessUserState (type) ── +type AwarenessUserState = z.input; + +// ── AwarenessUserStateSchema (const) ── +declare const AwarenessUserStateSchema: z.ZodObject<{ + userId: z.ZodString; + sessionId: z.ZodString; + userName: z.ZodString; + userAvatar: z.ZodOptional; + status: z.ZodEnum<{ + active: "active"; + idle: "idle"; + viewing: "viewing"; + disconnected: "disconnected"; + }>; + currentDocument: z.ZodOptional; + currentView: z.ZodOptional; + lastActivity: z.ZodString; + joinedAt: z.ZodString; + permissions: z.ZodOptional>; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── BUILTIN_OPERATION_MESSAGES (const) ── +declare const BUILTIN_OPERATION_MESSAGES: Record>; + +// ── BUILTIN_VALIDATION_MESSAGES (const) ── +declare const BUILTIN_VALIDATION_MESSAGES: Record>; + +// ── BackupConfig (type) ── +type BackupConfig = z.input; + +// ── BackupConfigParsed (type) ── +type BackupConfigParsed = z.infer; + +// ── BackupConfigSchema (const) ── +declare const BackupConfigSchema: z.ZodObject<{ + strategy: z.ZodDefault>; + retention: z.ZodObject<{ + days: z.ZodNumber; + minCopies: z.ZodDefault; + maxCopies: z.ZodOptional; + }, z.core.$strip>; + destination: z.ZodObject<{ + type: z.ZodEnum<{ + s3: "s3"; + gcs: "gcs"; + azure_blob: "azure_blob"; + local: "local"; + }>; + bucket: z.ZodOptional; + path: z.ZodOptional; + region: z.ZodOptional; + }, z.core.$strip>; + encryption: z.ZodOptional; + algorithm: z.ZodDefault>; + keyId: z.ZodOptional; + }, z.core.$strip>>; + compression: z.ZodOptional; + algorithm: z.ZodDefault>; + }, z.core.$strip>>; + verifyAfterBackup: z.ZodDefault; +}, z.core.$strip>; + +// ── BackupRetention (type) ── +type BackupRetention = z.input; + +// ── BackupRetentionParsed (type) ── +type BackupRetentionParsed = z.infer; + +// ── BackupRetentionSchema (const) ── +declare const BackupRetentionSchema: z.ZodObject<{ + days: z.ZodNumber; + minCopies: z.ZodDefault; + maxCopies: z.ZodOptional; +}, z.core.$strip>; + +// ── BackupStrategy (type) ── +type BackupStrategy = z.input; + +// ── BackupStrategySchema (const) ── +declare const BackupStrategySchema: z.ZodEnum<{ + full: "full"; + incremental: "incremental"; + differential: "differential"; +}>; + +// ── BatchProgress (type) ── +type BatchProgress = z.input; + +// ── BatchProgressParsed (type) ── +type BatchProgressParsed = z.infer; + +// ── BatchProgressSchema (const) ── +declare const BatchProgressSchema: z.ZodObject<{ + batchId: z.ZodString; + total: z.ZodNumber; + processed: z.ZodDefault; + succeeded: z.ZodDefault; + failed: z.ZodDefault; + percentage: z.ZodNumber; + status: z.ZodEnum<{ + failed: "failed"; + completed: "completed"; + pending: "pending"; + running: "running"; + cancelled: "cancelled"; + }>; + startedAt: z.ZodOptional; + completedAt: z.ZodOptional; +}, z.core.$strip>; + +// ── BatchTask (const) ── +declare const BatchTask: z.ZodObject<{ + id: z.ZodString; + type: z.ZodString; + items: z.ZodArray; + batchSize: z.ZodDefault; + queue: z.ZodDefault; + priority: z.ZodDefault>; + parallel: z.ZodDefault; + stopOnError: z.ZodDefault; + onProgress: z.ZodOptional], null>, z.ZodVoid>>; +}, z.core.$strip> & { + create: >(batch: T) => T; +}; + +// ── BatchTask (type) ── +type BatchTask = z.input; + +// ── BatchTaskParsed (type) ── +type BatchTaskParsed = z.infer; + +// ── BatchTaskSchema (const) ── +declare const BatchTaskSchema: z.ZodObject<{ + id: z.ZodString; + type: z.ZodString; + items: z.ZodArray; + batchSize: z.ZodDefault; + queue: z.ZodDefault; + priority: z.ZodDefault>; + parallel: z.ZodDefault; + stopOnError: z.ZodDefault; + onProgress: z.ZodOptional], null>, z.ZodVoid>>; +}, z.core.$strip>; + +// ── Book (type) ── +type Book = { + name: string; + label?: string; + description?: string; + slug?: string; + icon?: string; + order?: number; + audience?: BookAudience; + groups: BookGroup[]; +}; + +// ── BookAudience (type) ── +type BookAudience = 'org' | 'public' | { + permissionSet: string; +}; + +// ── BookAudienceSchema (const) ── +declare const BookAudienceSchema: z.ZodUnion, z.ZodLiteral<"public">, z.ZodObject<{ + permissionSet: z.ZodString; +}, z.core.$strip>]>; + +// ── BookGroup (type) ── +type BookGroup = { + key: string; + label: string; + order?: number; + include?: BookInclude; + package?: string; + pages?: BookNode[]; +}; + +// ── BookGroupSchema (const) ── +declare const BookGroupSchema: z.ZodObject<{ + key: z.ZodString; + label: z.ZodString; + translations: z.ZodOptional; + order: z.ZodOptional; + include: z.ZodOptional]>>; + package: z.ZodOptional; + pages: z.ZodOptional; + href: z.ZodOptional; + label: z.ZodOptional; + badge: z.ZodOptional; + icon: z.ZodOptional; + }, z.core.$strip>]>>>; +}, z.core.$strip>; + +// ── BookInclude (type) ── +type BookInclude = string | { + tag: string; +}; + +// ── BookIncludeSchema (const) ── +declare const BookIncludeSchema: z.ZodUnion]>; + +// ── BookNode (type) ── +type BookNode = string | { + doc?: string; + href?: string; + label?: string; + badge?: string; + icon?: string; +}; + +// ── BookNodeSchema (const) ── +declare const BookNodeSchema: z.ZodUnion; + href: z.ZodOptional; + label: z.ZodOptional; + badge: z.ZodOptional; + icon: z.ZodOptional; +}, z.core.$strip>]>; + +// ── BookSchema (const) ── +declare const BookSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + slug: z.ZodOptional; + icon: z.ZodOptional; + order: z.ZodOptional; + audience: z.ZodOptional, z.ZodLiteral<"public">, z.ZodObject<{ + permissionSet: z.ZodString; + }, z.core.$strip>]>>; + groups: z.ZodArray; + order: z.ZodOptional; + include: z.ZodOptional]>>; + package: z.ZodOptional; + pages: z.ZodOptional; + href: z.ZodOptional; + label: z.ZodOptional; + badge: z.ZodOptional; + icon: z.ZodOptional; + }, z.core.$strip>]>>>; + }, z.core.$strip>>; +}, z.core.$strict>; + +// ── BucketConfig (type) ── +type BucketConfig = z.input; + +// ── BucketConfigParsed (type) ── +type BucketConfigParsed = z.infer; + +// ── BucketConfigSchema (const) ── +declare const BucketConfigSchema: z.ZodObject<{ + name: z.ZodString; + label: z.ZodString; + bucketName: z.ZodString; + region: z.ZodOptional; + provider: z.ZodEnum<{ + local: "local"; + s3: "s3"; + azure_blob: "azure_blob"; + gcs: "gcs"; + minio: "minio"; + r2: "r2"; + spaces: "spaces"; + wasabi: "wasabi"; + backblaze: "backblaze"; + }>; + endpoint: z.ZodOptional; + pathStyle: z.ZodDefault; + versioning: z.ZodDefault; + encryption: z.ZodOptional; + algorithm: z.ZodDefault>; + kmsKeyId: z.ZodOptional; + }, z.core.$strip>>; + accessControl: z.ZodOptional>; + allowedOrigins: z.ZodOptional>; + allowedMethods: z.ZodOptional>>; + allowedHeaders: z.ZodOptional>; + exposeHeaders: z.ZodOptional>; + maxAgeSeconds: z.ZodOptional; + maxAge: z.ZodOptional; + corsEnabled: z.ZodDefault; + publicAccess: z.ZodOptional; + allowPublicWrite: z.ZodDefault; + allowPublicList: z.ZodDefault; + }, z.core.$strip>>; + allowedIps: z.ZodOptional>; + blockedIps: z.ZodOptional>; + }, z.core.$strip>>; + lifecyclePolicy: z.ZodOptional; + rules: z.ZodDefault; + action: z.ZodEnum<{ + abort: "abort"; + delete: "delete"; + transition: "transition"; + }>; + prefix: z.ZodOptional; + tags: z.ZodOptional>; + daysAfterCreation: z.ZodOptional; + daysAfterModification: z.ZodOptional; + targetStorageClass: z.ZodOptional>; + }, z.core.$strip>>>; + }, z.core.$strip>>; + multipartConfig: z.ZodOptional; + partSize: z.ZodDefault; + maxParts: z.ZodDefault; + threshold: z.ZodDefault; + maxConcurrent: z.ZodDefault; + abortIncompleteAfterDays: z.ZodOptional; + }, z.core.$strip>>; + tags: z.ZodOptional>; + description: z.ZodOptional; + enabled: z.ZodDefault; +}, z.core.$strip>; + +// ── BulkActionDefLike (interface) ── +interface BulkActionDefLike { + /** `BulkActionDefSchema.name` — the `bulkActions` key. */ + name?: string; + label?: string; + confirmText?: string; + confirmLabel?: string; + params?: Array; + [key: string]: unknown; +} + +// ── BulkActionParamLike (interface) ── +interface BulkActionParamLike { + /** `BulkActionParamSchema.name` — the `params` key. */ + name?: string; + label?: string; + /** A bulk param spells its hint `help`; an ACTION param spells it `helpText`. */ + help?: string; + placeholder?: string; + [key: string]: unknown; +} + +// ── CLOUD_PROVIDED_OBJECT_NAMES (const) ── +declare const CLOUD_PROVIDED_OBJECT_NAMES: readonly string[]; + +// ── CORE_SERVICE_PROVIDER (const) ── +declare const CORE_SERVICE_PROVIDER: Readonly>; + +// ── CRDTMergeResult (type) ── +type CRDTMergeResult = z.input; + +// ── CRDTMergeResultParsed (type) ── +type CRDTMergeResultParsed = z.infer; + +// ── CRDTMergeResultSchema (const) ── +declare const CRDTMergeResultSchema: z.ZodObject<{ + state: z.ZodDiscriminatedUnion<[z.ZodObject<{ + type: z.ZodLiteral<"lww-register">; + value: z.ZodUnknown; + timestamp: z.ZodString; + replicaId: z.ZodString; + vectorClock: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"g-counter">; + counts: z.ZodRecord; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"pn-counter">; + positive: z.ZodRecord; + negative: z.ZodRecord; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"or-set">; + elements: z.ZodArray>; + }, z.core.$strip>>; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"text">; + documentId: z.ZodString; + content: z.ZodString; + operations: z.ZodArray; + delete: z.ZodOptional; + timestamp: z.ZodString; + lamportTimestamp: z.ZodNumber; + }, z.core.$strip>>; + lamportClock: z.ZodNumber; + vectorClock: z.ZodObject<{ + clock: z.ZodRecord; + }, z.core.$strip>; + }, z.core.$strip>], "type">; + conflicts: z.ZodOptional>>; +}, z.core.$strip>; + +// ── CRDTState (type) ── +type CRDTState = z.input; + +// ── CRDTStateParsed (type) ── +type CRDTStateParsed = z.infer; + +// ── CRDTStateSchema (const) ── +declare const CRDTStateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ + type: z.ZodLiteral<"lww-register">; + value: z.ZodUnknown; + timestamp: z.ZodString; + replicaId: z.ZodString; + vectorClock: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"g-counter">; + counts: z.ZodRecord; +}, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"pn-counter">; + positive: z.ZodRecord; + negative: z.ZodRecord; +}, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"or-set">; + elements: z.ZodArray>; + }, z.core.$strip>>; +}, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"text">; + documentId: z.ZodString; + content: z.ZodString; + operations: z.ZodArray; + delete: z.ZodOptional; + timestamp: z.ZodString; + lamportTimestamp: z.ZodNumber; + }, z.core.$strip>>; + lamportClock: z.ZodNumber; + vectorClock: z.ZodObject<{ + clock: z.ZodRecord; + }, z.core.$strip>; +}, z.core.$strip>], "type">; + +// ── CRDTType (const) ── +declare const CRDTType: z.ZodEnum<{ + text: "text"; + tree: "tree"; + json: "json"; + "lww-register": "lww-register"; + "g-counter": "g-counter"; + "pn-counter": "pn-counter"; + "g-set": "g-set"; + "or-set": "or-set"; + "lww-map": "lww-map"; +}>; + +// ── CRDTType (type) ── +type CRDTType = z.input; + +// ── CREATION_ATTESTED_MIGRATION_IDS (const) ── +declare const CREATION_ATTESTED_MIGRATION_IDS: readonly ["adr-0104-file-references", "adr-0104-value-shapes"]; + +// ── CacheAvalanchePrevention (type) ── +type CacheAvalanchePrevention = z.input; + +// ── CacheAvalanchePreventionParsed (type) ── +type CacheAvalanchePreventionParsed = z.infer; + +// ── CacheAvalanchePreventionSchema (const) ── +declare const CacheAvalanchePreventionSchema: z.ZodObject<{ + jitterTtl: z.ZodOptional; + maxJitterSeconds: z.ZodDefault; + }, z.core.$strip>>; + circuitBreaker: z.ZodOptional; + failureThreshold: z.ZodDefault; + resetTimeoutSeconds: z.ZodDefault; + resetTimeout: z.ZodOptional; + }, z.core.$strip>>; + lockout: z.ZodOptional; + lockTimeoutMs: z.ZodDefault; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── CacheConfig (type) ── +type CacheConfig = z.input; + +// ── CacheConfigParsed (type) ── +type CacheConfigParsed = z.infer; + +// ── CacheConfigSchema (const) ── +declare const CacheConfigSchema: z.ZodObject<{ + enabled: z.ZodDefault; + tiers: z.ZodArray; + maxSize: z.ZodOptional; + ttlSeconds: z.ZodDefault; + ttl: z.ZodOptional; + strategy: z.ZodDefault>; + warmup: z.ZodDefault; + }, z.core.$strip>>; + invalidation: z.ZodArray; + scope: z.ZodEnum<{ + pattern: "pattern"; + key: "key"; + tag: "tag"; + all: "all"; + }>; + pattern: z.ZodOptional; + tags: z.ZodOptional>; + }, z.core.$strip>>; + prefetch: z.ZodDefault; + compression: z.ZodDefault; + encryption: z.ZodDefault; +}, z.core.$strip>; + +// ── CacheConsistency (type) ── +type CacheConsistency = z.input; + +// ── CacheConsistencySchema (const) ── +declare const CacheConsistencySchema: z.ZodEnum<{ + write_through: "write_through"; + write_behind: "write_behind"; + write_around: "write_around"; + refresh_ahead: "refresh_ahead"; +}>; + +// ── CacheInvalidation (type) ── +type CacheInvalidation = z.input; + +// ── CacheInvalidationSchema (const) ── +declare const CacheInvalidationSchema: z.ZodObject<{ + trigger: z.ZodEnum<{ + create: "create"; + update: "update"; + delete: "delete"; + manual: "manual"; + }>; + scope: z.ZodEnum<{ + pattern: "pattern"; + key: "key"; + tag: "tag"; + all: "all"; + }>; + pattern: z.ZodOptional; + tags: z.ZodOptional>; +}, z.core.$strip>; + +// ── CacheStrategy (type) ── +type CacheStrategy = z.input; + +// ── CacheStrategySchema (const) ── +declare const CacheStrategySchema: z.ZodEnum<{ + lru: "lru"; + lfu: "lfu"; + fifo: "fifo"; + ttl: "ttl"; +}>; + +// ── CacheTier (type) ── +type CacheTier = z.input; + +// ── CacheTierParsed (type) ── +type CacheTierParsed = z.infer; + +// ── CacheTierSchema (const) ── +declare const CacheTierSchema: z.ZodObject<{ + name: z.ZodString; + type: z.ZodEnum<{ + memory: "memory"; + redis: "redis"; + memcached: "memcached"; + cdn: "cdn"; + }>; + maxSize: z.ZodOptional; + ttlSeconds: z.ZodDefault; + ttl: z.ZodOptional; + strategy: z.ZodDefault>; + warmup: z.ZodDefault; +}, z.core.$strip>; + +// ── CacheWarmup (type) ── +type CacheWarmup = z.input; + +// ── CacheWarmupParsed (type) ── +type CacheWarmupParsed = z.infer; + +// ── CacheWarmupSchema (const) ── +declare const CacheWarmupSchema: z.ZodObject<{ + enabled: z.ZodDefault; + strategy: z.ZodDefault>; + patterns: z.ZodOptional>; + concurrency: z.ZodDefault; +}, z.core.$strip>; + +// ── ChangeSet (type) ── +type ChangeSet = z.input; + +// ── ChangeSetParsed (type) ── +type ChangeSetParsed = z.infer; + +// ── ChangeSetSchema (const) ── +declare const ChangeSetSchema: z.ZodObject<{ + id: z.ZodString; + name: z.ZodString; + description: z.ZodOptional; + author: z.ZodOptional; + createdAt: z.ZodOptional; + dependencies: z.ZodOptional; + }, z.core.$strip>>>; + operations: z.ZodArray; + objectName: z.ZodString; + fieldName: z.ZodString; + field: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + tags: "tags"; + email: "email"; + phone: "phone"; + user: "user"; + datetime: "datetime"; + location: "location"; + text: "text"; + url: "url"; + time: "time"; + formula: "formula"; + textarea: "textarea"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + vector: "vector"; + }>; + description: z.ZodOptional; + format: z.ZodOptional; + required: z.ZodDefault; + storage: z.ZodOptional; + }, z.core.$strict>>; + searchable: z.ZodDefault; + multiple: z.ZodDefault; + unique: z.ZodOptional, z.ZodLiteral<"organization">]>>; + defaultValue: z.ZodOptional; + maxLength: z.ZodOptional; + minLength: z.ZodOptional; + valueDomain: z.ZodOptional>; + rows: z.ZodOptional; + precision: z.ZodOptional; + scale: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + useGrouping: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + options: z.ZodOptional; + color: z.ZodOptional; + default: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + reference: z.ZodOptional; + referenceVia: z.ZodOptional; + deleteBehavior: z.ZodOptional>; + inlineEdit: z.ZodOptional]>>; + inlineTitle: z.ZodOptional; + inlineColumns: z.ZodOptional; + type: z.ZodOptional>; + width: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + prefix: z.ZodOptional; + step: z.ZodOptional; + reference: z.ZodOptional; + displayField: z.ZodOptional; + idField: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + defaultHidden: z.ZodOptional; + computed: z.ZodOptional; + expr: z.ZodOptional; + scale: z.ZodOptional; + autofill: z.ZodOptional; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + inlineAmountField: z.ZodOptional; + relatedList: z.ZodOptional]>>; + relatedListTitle: z.ZodOptional; + relatedListColumns: z.ZodOptional>; + relatedListFilter: z.ZodOptional>>; + displayField: z.ZodOptional; + descriptionField: z.ZodOptional; + lookupColumns: z.ZodOptional; + width: z.ZodOptional; + type: z.ZodOptional; + }, z.core.$strict>]>>>; + lookupPageSize: z.ZodOptional; + lookupFilters: z.ZodOptional; + value: z.ZodAny; + }, z.core.$strict>>>; + dependsOn: z.ZodOptional; + }, z.core.$strict>]>>>; + allowCreate: z.ZodOptional; + expression: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + returnType: z.ZodOptional>; + summaryOperations: z.ZodOptional; + relationshipField: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strict>>; + language: z.ZodOptional; + step: z.ZodOptional; + currencyConfig: z.ZodOptional; + currencyMode: z.ZodDefault>; + defaultCurrency: z.ZodDefault; + }, z.core.$strict>>; + dimensions: z.ZodOptional; + trackHistory: z.ZodOptional; + group: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + conditionalRequired: z.ZodOptional; + widget: z.ZodOptional; + hidden: z.ZodDefault; + internal: z.ZodOptional; + readonly: z.ZodDefault; + requiredPermissions: z.ZodOptional>; + maskingRule: z.ZodOptional, z.ZodObject<{ + keepHead: z.ZodNumber; + keepTail: z.ZodNumber; + }, z.core.$strict>]>>; + ackPlaintextMasking: z.ZodOptional; + system: z.ZodOptional; + sortable: z.ZodDefault>; + inlineHelpText: z.ZodOptional; + placeholder: z.ZodOptional; + autonumberFormat: z.ZodOptional; + externalId: z.ZodDefault; + }, z.core.$strict>; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"modify_field">; + objectName: z.ZodString; + fieldName: z.ZodString; + changes: z.ZodRecord; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"remove_field">; + objectName: z.ZodString; + fieldName: z.ZodString; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"create_object">; + object: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + pluralLabel: z.ZodOptional; + description: z.ZodOptional; + icon: z.ZodOptional; + isSystem: z.ZodDefault>; + managedBy: z.ZodOptional>; + ownership: z.ZodOptional>; + userActions: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + import: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + edit: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + delete: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + exportCsv: z.ZodOptional; + }, z.core.$strict>>; + systemFields: z.ZodOptional, z.ZodObject<{ + tenant: z.ZodOptional; + audit: z.ZodOptional; + }, z.core.$strict>]>>; + datasource: z.ZodDefault>; + external: z.ZodOptional; + remoteSchema: z.ZodOptional; + writable: z.ZodDefault; + columnMap: z.ZodOptional>; + introspectedAt: z.ZodOptional; + ignoreColumns: z.ZodOptional>; + }, z.core.$strict>>; + fields: z.ZodRecord>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + tags: "tags"; + email: "email"; + phone: "phone"; + user: "user"; + datetime: "datetime"; + location: "location"; + text: "text"; + url: "url"; + time: "time"; + formula: "formula"; + textarea: "textarea"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + vector: "vector"; + }>; + description: z.ZodOptional; + format: z.ZodOptional; + required: z.ZodDefault; + storage: z.ZodOptional; + }, z.core.$strict>>; + searchable: z.ZodDefault; + multiple: z.ZodDefault; + unique: z.ZodOptional, z.ZodLiteral<"organization">]>>; + defaultValue: z.ZodOptional; + maxLength: z.ZodOptional; + minLength: z.ZodOptional; + valueDomain: z.ZodOptional>; + rows: z.ZodOptional; + precision: z.ZodOptional; + scale: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + useGrouping: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + options: z.ZodOptional; + color: z.ZodOptional; + default: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + reference: z.ZodOptional; + referenceVia: z.ZodOptional; + deleteBehavior: z.ZodOptional>; + inlineEdit: z.ZodOptional]>>; + inlineTitle: z.ZodOptional; + inlineColumns: z.ZodOptional; + type: z.ZodOptional>; + width: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + prefix: z.ZodOptional; + step: z.ZodOptional; + reference: z.ZodOptional; + displayField: z.ZodOptional; + idField: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + defaultHidden: z.ZodOptional; + computed: z.ZodOptional; + expr: z.ZodOptional; + scale: z.ZodOptional; + autofill: z.ZodOptional; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + inlineAmountField: z.ZodOptional; + relatedList: z.ZodOptional]>>; + relatedListTitle: z.ZodOptional; + relatedListColumns: z.ZodOptional>; + relatedListFilter: z.ZodOptional>>; + displayField: z.ZodOptional; + descriptionField: z.ZodOptional; + lookupColumns: z.ZodOptional; + width: z.ZodOptional; + type: z.ZodOptional; + }, z.core.$strict>]>>>; + lookupPageSize: z.ZodOptional; + lookupFilters: z.ZodOptional; + value: z.ZodAny; + }, z.core.$strict>>>; + dependsOn: z.ZodOptional; + }, z.core.$strict>]>>>; + allowCreate: z.ZodOptional; + expression: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + returnType: z.ZodOptional>; + summaryOperations: z.ZodOptional; + relationshipField: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strict>>; + language: z.ZodOptional; + step: z.ZodOptional; + currencyConfig: z.ZodOptional; + currencyMode: z.ZodDefault>; + defaultCurrency: z.ZodDefault; + }, z.core.$strict>>; + dimensions: z.ZodOptional; + trackHistory: z.ZodOptional; + group: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + conditionalRequired: z.ZodOptional; + widget: z.ZodOptional; + hidden: z.ZodDefault; + internal: z.ZodOptional; + readonly: z.ZodDefault; + requiredPermissions: z.ZodOptional>; + maskingRule: z.ZodOptional, z.ZodObject<{ + keepHead: z.ZodNumber; + keepTail: z.ZodNumber; + }, z.core.$strict>]>>; + ackPlaintextMasking: z.ZodOptional; + system: z.ZodOptional; + sortable: z.ZodDefault>; + inlineHelpText: z.ZodOptional; + placeholder: z.ZodOptional; + autonumberFormat: z.ZodOptional; + externalId: z.ZodDefault; + }, z.core.$strict>>; + indexes: z.ZodOptional; + fields: z.ZodArray; + unique: z.ZodDefault, z.ZodLiteral<"organization">]>>>; + type: z.ZodOptional; + partial: z.ZodOptional; + }, z.core.$strict>>>; + fieldGroups: z.ZodOptional; + description: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + collapse: z.ZodDefault>>; + defaultExpanded: z.ZodOptional; + collapsible: z.ZodOptional; + collapsed: z.ZodOptional; + }, z.core.$strict>>>; + tenancy: z.ZodOptional; + organizationField: z.ZodOptional; + }, z.core.$strict>>; + access: z.ZodOptional>; + }, z.core.$strict>>; + requiredPermissions: z.ZodOptional, z.ZodObject<{ + read: z.ZodOptional>; + create: z.ZodOptional>; + update: z.ZodOptional>; + delete: z.ZodOptional>; + }, z.core.$strict>]>>; + lifecycle: z.ZodOptional; + retention: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + ttl: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + storage: z.ZodOptional; + shards: z.ZodNumber; + unit: z.ZodEnum<{ + month: "month"; + day: "day"; + week: "week"; + }>; + }, z.core.$strict>>; + archive: z.ZodOptional; + }, z.core.$strict>>; + reclaim: z.ZodOptional; + }, z.core.$strict>>; + fileAccessDelegate: z.ZodOptional; + validations: z.ZodOptional>>>; + activityMilestones: z.ZodOptional; + }, z.core.$strict>>>; + nameField: z.ZodOptional; + displayNameField: z.ZodOptional; + titleFormat: z.ZodOptional>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"template">; + }, z.core.$strip>]>>; + highlightFields: z.ZodOptional>; + stageField: z.ZodOptional]>>; + editMode: z.ZodOptional>; + listViews: z.ZodOptional>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + map: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + sort: z.ZodOptional; + }, z.core.$strict>>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + name: z.ZodOptional; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + inlineEdit: z.ZodOptional; + performance: z.ZodOptional; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + count: "count"; + none: "none"; + min: "min"; + max: "max"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + resizable: z.ZodOptional; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + compactToolbar: z.ZodOptional; + selection: z.ZodOptional>; + }, z.core.$strict>>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + pageName: z.ZodOptional; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + rowActions: z.ZodOptional>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + update: "update"; + delete: "delete"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + tags: "tags"; + email: "email"; + phone: "phone"; + user: "user"; + datetime: "datetime"; + location: "location"; + text: "text"; + url: "url"; + time: "time"; + formula: "formula"; + textarea: "textarea"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "csv" | "xlsx")[]; + }, ("json" | "csv" | "xlsx")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + enable: z.ZodOptional; + searchable: z.ZodDefault; + apiEnabled: z.ZodDefault; + apiMethods: z.ZodOptional>>; + files: z.ZodDefault; + feeds: z.ZodDefault; + activities: z.ZodDefault; + clone: z.ZodDefault; + }, z.core.$strict>>; + sharingModel: z.ZodOptional>; + externalSharingModel: z.ZodOptional>; + publicSharing: z.ZodOptional; + allowedAudiences: z.ZodOptional>>; + allowedPermissions: z.ZodOptional>>; + maxExpiryDays: z.ZodOptional; + redactFields: z.ZodOptional>; + eligibility: z.ZodOptional; + }, z.core.$strict>>; + actions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + objectName: z.ZodOptional; + icon: z.ZodOptional; + locations: z.ZodOptional>>; + component: z.ZodOptional>; + type: z.ZodDefault>; + target: z.ZodOptional; + openIn: z.ZodOptional>; + body: z.ZodOptional; + source: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + language: z.ZodLiteral<"js">; + source: z.ZodString; + capabilities: z.ZodDefault>>; + timeoutMs: z.ZodOptional; + memoryMb: z.ZodOptional; + }, z.core.$strict>], "language">>; + operation: z.ZodOptional>; + patch: z.ZodOptional>; + execution: z.ZodOptional>; + execute: z.ZodOptional; + params: z.ZodOptional; + field: z.ZodOptional; + objectOverride: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + required: z.ZodDefault>; + options: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + value: z.ZodString; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + placeholder: z.ZodOptional; + helpText: z.ZodOptional; + defaultValue: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + reference: z.ZodOptional; + defaultFromRow: z.ZodOptional; + carryOver: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiresFeature: z.ZodOptional>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">, { + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }>>>>; + variant: z.ZodOptional>; + order: z.ZodOptional; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + successMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + errorMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + refreshAfter: z.ZodDefault; + undoable: z.ZodOptional; + resultDialog: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + acknowledge: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiresFeature: z.ZodOptional>; + disabled: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiredPermissions: z.ZodOptional>; + shortcut: z.ZodOptional; + bulkEnabled: z.ZodOptional; + ai: z.ZodOptional; + description: z.ZodOptional; + category: z.ZodOptional>; + paramHints: z.ZodOptional; + enum: z.ZodOptional>>; + examples: z.ZodOptional>; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional>; + requiresConfirmation: z.ZodOptional; + }, z.core.$strict>>; + recordIdParam: z.ZodOptional; + recordIdField: z.ZodOptional; + bodyShape: z.ZodOptional, z.ZodObject<{ + wrap: z.ZodString; + }, z.core.$strict>]>>; + method: z.ZodOptional>; + bodyExtra: z.ZodOptional>; + mode: z.ZodOptional>; + opensInNewTab: z.ZodOptional; + newTabUrl: z.ZodOptional; + onSuccess: z.ZodOptional>; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">, { + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict> & { + parse(data: unknown, params?: Parameters<(data: unknown, params?: z.core.ParseContext) => { + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "user" | "none" | "org" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "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: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "modal" | "page" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | undefined; + hidden?: boolean | undefined; + sortable?: boolean | undefined; + resizable?: boolean | undefined; + wrap?: boolean | undefined; + type?: string | undefined; + pinned?: "left" | "right" | undefined; + summary?: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled" | { + type: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled"; + field?: string | undefined; + } | undefined; + prefix?: { + field: string; + type: "text" | "badge"; + } | undefined; + link?: boolean | undefined; + action?: string | undefined; + }[]; + description?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + name?: string | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + inlineEdit?: boolean | undefined; + performance?: undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "calendar" | "kanban" | "gantt" | "timeline" | "gallery" | "chart")[] | undefined; + } | undefined; + navigation?: { + mode: "split" | "none" | "modal" | "drawer" | "page" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + rowHeight?: "short" | "compact" | "medium" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + pageName?: undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + grouping?: { + fields: { + field: string; + order: "desc" | "asc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + rowActions?: string[] | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "update" | "delete"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + maxRecords?: number | undefined; + batchSize?: number | undefined; + }[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + exportOptions?: { + formats: ("json" | "csv" | "xlsx")[]; + } | { + formats?: ("json" | "csv" | "xlsx")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "modal" | "inline"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + responsive?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "create" | "update" | "delete" | "list" | "bulk")[] | undefined; + } | undefined; + sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("edit" | "view" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "full" | "none" | "no-overlay" | "no-delete"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }>[1]): { + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "user" | "none" | "org" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "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: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "modal" | "page" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | undefined; + hidden?: boolean | undefined; + sortable?: boolean | undefined; + resizable?: boolean | undefined; + wrap?: boolean | undefined; + type?: string | undefined; + pinned?: "left" | "right" | undefined; + summary?: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled" | { + type: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled"; + field?: string | undefined; + } | undefined; + prefix?: { + field: string; + type: "text" | "badge"; + } | undefined; + link?: boolean | undefined; + action?: string | undefined; + }[]; + description?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + name?: string | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + inlineEdit?: boolean | undefined; + performance?: undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "calendar" | "kanban" | "gantt" | "timeline" | "gallery" | "chart")[] | undefined; + } | undefined; + navigation?: { + mode: "split" | "none" | "modal" | "drawer" | "page" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + rowHeight?: "short" | "compact" | "medium" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + pageName?: undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + grouping?: { + fields: { + field: string; + order: "desc" | "asc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + rowActions?: string[] | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "update" | "delete"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + maxRecords?: number | undefined; + batchSize?: number | undefined; + }[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + exportOptions?: { + formats: ("json" | "csv" | "xlsx")[]; + } | { + formats?: ("json" | "csv" | "xlsx")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "modal" | "inline"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + responsive?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "create" | "update" | "delete" | "list" | "bulk")[] | undefined; + } | undefined; + sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("edit" | "view" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "full" | "none" | "no-overlay" | "no-delete"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }; + safeParse(data: unknown, params?: Parameters<(data: unknown, params?: z.core.ParseContext) => z.ZodSafeParseResult<{ + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "user" | "none" | "org" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "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: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "modal" | "page" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | undefined; + hidden?: boolean | undefined; + sortable?: boolean | undefined; + resizable?: boolean | undefined; + wrap?: boolean | undefined; + type?: string | undefined; + pinned?: "left" | "right" | undefined; + summary?: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled" | { + type: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled"; + field?: string | undefined; + } | undefined; + prefix?: { + field: string; + type: "text" | "badge"; + } | undefined; + link?: boolean | undefined; + action?: string | undefined; + }[]; + description?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + name?: string | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + inlineEdit?: boolean | undefined; + performance?: undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "calendar" | "kanban" | "gantt" | "timeline" | "gallery" | "chart")[] | undefined; + } | undefined; + navigation?: { + mode: "split" | "none" | "modal" | "drawer" | "page" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + rowHeight?: "short" | "compact" | "medium" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + pageName?: undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + grouping?: { + fields: { + field: string; + order: "desc" | "asc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + rowActions?: string[] | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "update" | "delete"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + maxRecords?: number | undefined; + batchSize?: number | undefined; + }[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + exportOptions?: { + formats: ("json" | "csv" | "xlsx")[]; + } | { + formats?: ("json" | "csv" | "xlsx")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "modal" | "inline"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + responsive?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "create" | "update" | "delete" | "list" | "bulk")[] | undefined; + } | undefined; + sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("edit" | "view" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "full" | "none" | "no-overlay" | "no-delete"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }>>[1]): z.ZodSafeParseResult<{ + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "user" | "none" | "org" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "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: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "modal" | "page" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | undefined; + hidden?: boolean | undefined; + sortable?: boolean | undefined; + resizable?: boolean | undefined; + wrap?: boolean | undefined; + type?: string | undefined; + pinned?: "left" | "right" | undefined; + summary?: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled" | { + type: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled"; + field?: string | undefined; + } | undefined; + prefix?: { + field: string; + type: "text" | "badge"; + } | undefined; + link?: boolean | undefined; + action?: string | undefined; + }[]; + description?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + name?: string | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + inlineEdit?: boolean | undefined; + performance?: undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "calendar" | "kanban" | "gantt" | "timeline" | "gallery" | "chart")[] | undefined; + } | undefined; + navigation?: { + mode: "split" | "none" | "modal" | "drawer" | "page" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + rowHeight?: "short" | "compact" | "medium" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + pageName?: undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + grouping?: { + fields: { + field: string; + order: "desc" | "asc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + rowActions?: string[] | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "update" | "delete"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + maxRecords?: number | undefined; + batchSize?: number | undefined; + }[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + exportOptions?: { + formats: ("json" | "csv" | "xlsx")[]; + } | { + formats?: ("json" | "csv" | "xlsx")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "modal" | "inline"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + responsive?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "create" | "update" | "delete" | "list" | "bulk")[] | undefined; + } | undefined; + sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("edit" | "view" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "full" | "none" | "no-overlay" | "no-delete"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }>; + create: >; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + pluralLabel: z.ZodOptional; + description: z.ZodOptional; + icon: z.ZodOptional; + isSystem: z.ZodDefault>; + managedBy: z.ZodOptional>; + ownership: z.ZodOptional>; + userActions: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + import: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + edit: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + delete: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + exportCsv: z.ZodOptional; + }, z.core.$strict>>; + systemFields: z.ZodOptional, z.ZodObject<{ + tenant: z.ZodOptional; + audit: z.ZodOptional; + }, z.core.$strict>]>>; + datasource: z.ZodDefault>; + external: z.ZodOptional; + remoteSchema: z.ZodOptional; + writable: z.ZodDefault; + columnMap: z.ZodOptional>; + introspectedAt: z.ZodOptional; + ignoreColumns: z.ZodOptional>; + }, z.core.$strict>>; + fields: z.ZodRecord>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + tags: "tags"; + email: "email"; + phone: "phone"; + user: "user"; + datetime: "datetime"; + location: "location"; + text: "text"; + url: "url"; + time: "time"; + formula: "formula"; + textarea: "textarea"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + vector: "vector"; + }>; + description: z.ZodOptional; + format: z.ZodOptional; + required: z.ZodDefault; + storage: z.ZodOptional; + }, z.core.$strict>>; + searchable: z.ZodDefault; + multiple: z.ZodDefault; + unique: z.ZodOptional, z.ZodLiteral<"organization">]>>; + defaultValue: z.ZodOptional; + maxLength: z.ZodOptional; + minLength: z.ZodOptional; + valueDomain: z.ZodOptional>; + rows: z.ZodOptional; + precision: z.ZodOptional; + scale: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + useGrouping: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + options: z.ZodOptional; + color: z.ZodOptional; + default: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + reference: z.ZodOptional; + referenceVia: z.ZodOptional; + deleteBehavior: z.ZodOptional>; + inlineEdit: z.ZodOptional]>>; + inlineTitle: z.ZodOptional; + inlineColumns: z.ZodOptional; + type: z.ZodOptional>; + width: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + prefix: z.ZodOptional; + step: z.ZodOptional; + reference: z.ZodOptional; + displayField: z.ZodOptional; + idField: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + defaultHidden: z.ZodOptional; + computed: z.ZodOptional; + expr: z.ZodOptional; + scale: z.ZodOptional; + autofill: z.ZodOptional; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + inlineAmountField: z.ZodOptional; + relatedList: z.ZodOptional]>>; + relatedListTitle: z.ZodOptional; + relatedListColumns: z.ZodOptional>; + relatedListFilter: z.ZodOptional>>; + displayField: z.ZodOptional; + descriptionField: z.ZodOptional; + lookupColumns: z.ZodOptional; + width: z.ZodOptional; + type: z.ZodOptional; + }, z.core.$strict>]>>>; + lookupPageSize: z.ZodOptional; + lookupFilters: z.ZodOptional; + value: z.ZodAny; + }, z.core.$strict>>>; + dependsOn: z.ZodOptional; + }, z.core.$strict>]>>>; + allowCreate: z.ZodOptional; + expression: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + returnType: z.ZodOptional>; + summaryOperations: z.ZodOptional; + relationshipField: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strict>>; + language: z.ZodOptional; + step: z.ZodOptional; + currencyConfig: z.ZodOptional; + currencyMode: z.ZodDefault>; + defaultCurrency: z.ZodDefault; + }, z.core.$strict>>; + dimensions: z.ZodOptional; + trackHistory: z.ZodOptional; + group: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + conditionalRequired: z.ZodOptional; + widget: z.ZodOptional; + hidden: z.ZodDefault; + internal: z.ZodOptional; + readonly: z.ZodDefault; + requiredPermissions: z.ZodOptional>; + maskingRule: z.ZodOptional, z.ZodObject<{ + keepHead: z.ZodNumber; + keepTail: z.ZodNumber; + }, z.core.$strict>]>>; + ackPlaintextMasking: z.ZodOptional; + system: z.ZodOptional; + sortable: z.ZodDefault>; + inlineHelpText: z.ZodOptional; + placeholder: z.ZodOptional; + autonumberFormat: z.ZodOptional; + externalId: z.ZodDefault; + }, z.core.$strict>>; + indexes: z.ZodOptional; + fields: z.ZodArray; + unique: z.ZodDefault, z.ZodLiteral<"organization">]>>>; + type: z.ZodOptional; + partial: z.ZodOptional; + }, z.core.$strict>>>; + fieldGroups: z.ZodOptional; + description: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + collapse: z.ZodDefault>>; + defaultExpanded: z.ZodOptional; + collapsible: z.ZodOptional; + collapsed: z.ZodOptional; + }, z.core.$strict>>>; + tenancy: z.ZodOptional; + organizationField: z.ZodOptional; + }, z.core.$strict>>; + access: z.ZodOptional>; + }, z.core.$strict>>; + requiredPermissions: z.ZodOptional, z.ZodObject<{ + read: z.ZodOptional>; + create: z.ZodOptional>; + update: z.ZodOptional>; + delete: z.ZodOptional>; + }, z.core.$strict>]>>; + lifecycle: z.ZodOptional; + retention: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + ttl: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + storage: z.ZodOptional; + shards: z.ZodNumber; + unit: z.ZodEnum<{ + month: "month"; + day: "day"; + week: "week"; + }>; + }, z.core.$strict>>; + archive: z.ZodOptional; + }, z.core.$strict>>; + reclaim: z.ZodOptional; + }, z.core.$strict>>; + fileAccessDelegate: z.ZodOptional; + validations: z.ZodOptional>>>; + activityMilestones: z.ZodOptional; + }, z.core.$strict>>>; + nameField: z.ZodOptional; + displayNameField: z.ZodOptional; + titleFormat: z.ZodOptional>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"template">; + }, z.core.$strip>]>>; + highlightFields: z.ZodOptional>; + stageField: z.ZodOptional]>>; + editMode: z.ZodOptional>; + listViews: z.ZodOptional>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + map: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + sort: z.ZodOptional; + }, z.core.$strict>>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + name: z.ZodOptional; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + inlineEdit: z.ZodOptional; + performance: z.ZodOptional; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + count: "count"; + none: "none"; + min: "min"; + max: "max"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + resizable: z.ZodOptional; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + compactToolbar: z.ZodOptional; + selection: z.ZodOptional>; + }, z.core.$strict>>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + pageName: z.ZodOptional; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + rowActions: z.ZodOptional>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + update: "update"; + delete: "delete"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + tags: "tags"; + email: "email"; + phone: "phone"; + user: "user"; + datetime: "datetime"; + location: "location"; + text: "text"; + url: "url"; + time: "time"; + formula: "formula"; + textarea: "textarea"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "csv" | "xlsx")[]; + }, ("json" | "csv" | "xlsx")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + enable: z.ZodOptional; + searchable: z.ZodDefault; + apiEnabled: z.ZodDefault; + apiMethods: z.ZodOptional>>; + files: z.ZodDefault; + feeds: z.ZodDefault; + activities: z.ZodDefault; + clone: z.ZodDefault; + }, z.core.$strict>>; + sharingModel: z.ZodOptional>; + externalSharingModel: z.ZodOptional>; + publicSharing: z.ZodOptional; + allowedAudiences: z.ZodOptional>>; + allowedPermissions: z.ZodOptional>>; + maxExpiryDays: z.ZodOptional; + redactFields: z.ZodOptional>; + eligibility: z.ZodOptional; + }, z.core.$strict>>; + actions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + objectName: z.ZodOptional; + icon: z.ZodOptional; + locations: z.ZodOptional>>; + component: z.ZodOptional>; + type: z.ZodDefault>; + target: z.ZodOptional; + openIn: z.ZodOptional>; + body: z.ZodOptional; + source: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + language: z.ZodLiteral<"js">; + source: z.ZodString; + capabilities: z.ZodDefault>>; + timeoutMs: z.ZodOptional; + memoryMb: z.ZodOptional; + }, z.core.$strict>], "language">>; + operation: z.ZodOptional>; + patch: z.ZodOptional>; + execution: z.ZodOptional>; + execute: z.ZodOptional; + params: z.ZodOptional; + field: z.ZodOptional; + objectOverride: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + required: z.ZodDefault>; + options: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + value: z.ZodString; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + placeholder: z.ZodOptional; + helpText: z.ZodOptional; + defaultValue: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + reference: z.ZodOptional; + defaultFromRow: z.ZodOptional; + carryOver: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiresFeature: z.ZodOptional>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">, { + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }>>>>; + variant: z.ZodOptional>; + order: z.ZodOptional; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + successMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + errorMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + refreshAfter: z.ZodDefault; + undoable: z.ZodOptional; + resultDialog: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + acknowledge: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiresFeature: z.ZodOptional>; + disabled: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiredPermissions: z.ZodOptional>; + shortcut: z.ZodOptional; + bulkEnabled: z.ZodOptional; + ai: z.ZodOptional; + description: z.ZodOptional; + category: z.ZodOptional>; + paramHints: z.ZodOptional; + enum: z.ZodOptional>>; + examples: z.ZodOptional>; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional>; + requiresConfirmation: z.ZodOptional; + }, z.core.$strict>>; + recordIdParam: z.ZodOptional; + recordIdField: z.ZodOptional; + bodyShape: z.ZodOptional, z.ZodObject<{ + wrap: z.ZodString; + }, z.core.$strict>]>>; + method: z.ZodOptional>; + bodyExtra: z.ZodOptional>; + mode: z.ZodOptional>; + opensInNewTab: z.ZodOptional; + newTabUrl: z.ZodOptional; + onSuccess: z.ZodOptional>; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">, { + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>(config: T & Record, never> & (T extends { + actions: infer As extends readonly unknown[]; + } ? { + actions: { [I in keyof As]: As[I] extends infer T_1 ? T_1 extends As[I] ? T_1 extends { + params: infer Ps extends readonly unknown[]; + } ? T_1 & { + params: { [I_1 in keyof Ps]: Ps[I_1] & Record, never>; }; + } : T_1 : never : never; }; + } : unknown)) => Omit & Pick; + }; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"rename_object">; + oldName: z.ZodString; + newName: z.ZodString; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"delete_object">; + objectName: z.ZodString; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"execute_sql">; + sql: z.ZodString; + description: z.ZodOptional; + }, z.core.$strip>], "type">>; + rollback: z.ZodOptional; + objectName: z.ZodString; + fieldName: z.ZodString; + field: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + tags: "tags"; + email: "email"; + phone: "phone"; + user: "user"; + datetime: "datetime"; + location: "location"; + text: "text"; + url: "url"; + time: "time"; + formula: "formula"; + textarea: "textarea"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + vector: "vector"; + }>; + description: z.ZodOptional; + format: z.ZodOptional; + required: z.ZodDefault; + storage: z.ZodOptional; + }, z.core.$strict>>; + searchable: z.ZodDefault; + multiple: z.ZodDefault; + unique: z.ZodOptional, z.ZodLiteral<"organization">]>>; + defaultValue: z.ZodOptional; + maxLength: z.ZodOptional; + minLength: z.ZodOptional; + valueDomain: z.ZodOptional>; + rows: z.ZodOptional; + precision: z.ZodOptional; + scale: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + useGrouping: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + options: z.ZodOptional; + color: z.ZodOptional; + default: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + reference: z.ZodOptional; + referenceVia: z.ZodOptional; + deleteBehavior: z.ZodOptional>; + inlineEdit: z.ZodOptional]>>; + inlineTitle: z.ZodOptional; + inlineColumns: z.ZodOptional; + type: z.ZodOptional>; + width: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + prefix: z.ZodOptional; + step: z.ZodOptional; + reference: z.ZodOptional; + displayField: z.ZodOptional; + idField: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + defaultHidden: z.ZodOptional; + computed: z.ZodOptional; + expr: z.ZodOptional; + scale: z.ZodOptional; + autofill: z.ZodOptional; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + inlineAmountField: z.ZodOptional; + relatedList: z.ZodOptional]>>; + relatedListTitle: z.ZodOptional; + relatedListColumns: z.ZodOptional>; + relatedListFilter: z.ZodOptional>>; + displayField: z.ZodOptional; + descriptionField: z.ZodOptional; + lookupColumns: z.ZodOptional; + width: z.ZodOptional; + type: z.ZodOptional; + }, z.core.$strict>]>>>; + lookupPageSize: z.ZodOptional; + lookupFilters: z.ZodOptional; + value: z.ZodAny; + }, z.core.$strict>>>; + dependsOn: z.ZodOptional; + }, z.core.$strict>]>>>; + allowCreate: z.ZodOptional; + expression: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + returnType: z.ZodOptional>; + summaryOperations: z.ZodOptional; + relationshipField: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strict>>; + language: z.ZodOptional; + step: z.ZodOptional; + currencyConfig: z.ZodOptional; + currencyMode: z.ZodDefault>; + defaultCurrency: z.ZodDefault; + }, z.core.$strict>>; + dimensions: z.ZodOptional; + trackHistory: z.ZodOptional; + group: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + conditionalRequired: z.ZodOptional; + widget: z.ZodOptional; + hidden: z.ZodDefault; + internal: z.ZodOptional; + readonly: z.ZodDefault; + requiredPermissions: z.ZodOptional>; + maskingRule: z.ZodOptional, z.ZodObject<{ + keepHead: z.ZodNumber; + keepTail: z.ZodNumber; + }, z.core.$strict>]>>; + ackPlaintextMasking: z.ZodOptional; + system: z.ZodOptional; + sortable: z.ZodDefault>; + inlineHelpText: z.ZodOptional; + placeholder: z.ZodOptional; + autonumberFormat: z.ZodOptional; + externalId: z.ZodDefault; + }, z.core.$strict>; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"modify_field">; + objectName: z.ZodString; + fieldName: z.ZodString; + changes: z.ZodRecord; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"remove_field">; + objectName: z.ZodString; + fieldName: z.ZodString; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"create_object">; + object: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + pluralLabel: z.ZodOptional; + description: z.ZodOptional; + icon: z.ZodOptional; + isSystem: z.ZodDefault>; + managedBy: z.ZodOptional>; + ownership: z.ZodOptional>; + userActions: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + import: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + edit: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + delete: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + exportCsv: z.ZodOptional; + }, z.core.$strict>>; + systemFields: z.ZodOptional, z.ZodObject<{ + tenant: z.ZodOptional; + audit: z.ZodOptional; + }, z.core.$strict>]>>; + datasource: z.ZodDefault>; + external: z.ZodOptional; + remoteSchema: z.ZodOptional; + writable: z.ZodDefault; + columnMap: z.ZodOptional>; + introspectedAt: z.ZodOptional; + ignoreColumns: z.ZodOptional>; + }, z.core.$strict>>; + fields: z.ZodRecord>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + tags: "tags"; + email: "email"; + phone: "phone"; + user: "user"; + datetime: "datetime"; + location: "location"; + text: "text"; + url: "url"; + time: "time"; + formula: "formula"; + textarea: "textarea"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + vector: "vector"; + }>; + description: z.ZodOptional; + format: z.ZodOptional; + required: z.ZodDefault; + storage: z.ZodOptional; + }, z.core.$strict>>; + searchable: z.ZodDefault; + multiple: z.ZodDefault; + unique: z.ZodOptional, z.ZodLiteral<"organization">]>>; + defaultValue: z.ZodOptional; + maxLength: z.ZodOptional; + minLength: z.ZodOptional; + valueDomain: z.ZodOptional>; + rows: z.ZodOptional; + precision: z.ZodOptional; + scale: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + useGrouping: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + options: z.ZodOptional; + color: z.ZodOptional; + default: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + reference: z.ZodOptional; + referenceVia: z.ZodOptional; + deleteBehavior: z.ZodOptional>; + inlineEdit: z.ZodOptional]>>; + inlineTitle: z.ZodOptional; + inlineColumns: z.ZodOptional; + type: z.ZodOptional>; + width: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + prefix: z.ZodOptional; + step: z.ZodOptional; + reference: z.ZodOptional; + displayField: z.ZodOptional; + idField: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + defaultHidden: z.ZodOptional; + computed: z.ZodOptional; + expr: z.ZodOptional; + scale: z.ZodOptional; + autofill: z.ZodOptional; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + inlineAmountField: z.ZodOptional; + relatedList: z.ZodOptional]>>; + relatedListTitle: z.ZodOptional; + relatedListColumns: z.ZodOptional>; + relatedListFilter: z.ZodOptional>>; + displayField: z.ZodOptional; + descriptionField: z.ZodOptional; + lookupColumns: z.ZodOptional; + width: z.ZodOptional; + type: z.ZodOptional; + }, z.core.$strict>]>>>; + lookupPageSize: z.ZodOptional; + lookupFilters: z.ZodOptional; + value: z.ZodAny; + }, z.core.$strict>>>; + dependsOn: z.ZodOptional; + }, z.core.$strict>]>>>; + allowCreate: z.ZodOptional; + expression: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + returnType: z.ZodOptional>; + summaryOperations: z.ZodOptional; + relationshipField: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strict>>; + language: z.ZodOptional; + step: z.ZodOptional; + currencyConfig: z.ZodOptional; + currencyMode: z.ZodDefault>; + defaultCurrency: z.ZodDefault; + }, z.core.$strict>>; + dimensions: z.ZodOptional; + trackHistory: z.ZodOptional; + group: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + conditionalRequired: z.ZodOptional; + widget: z.ZodOptional; + hidden: z.ZodDefault; + internal: z.ZodOptional; + readonly: z.ZodDefault; + requiredPermissions: z.ZodOptional>; + maskingRule: z.ZodOptional, z.ZodObject<{ + keepHead: z.ZodNumber; + keepTail: z.ZodNumber; + }, z.core.$strict>]>>; + ackPlaintextMasking: z.ZodOptional; + system: z.ZodOptional; + sortable: z.ZodDefault>; + inlineHelpText: z.ZodOptional; + placeholder: z.ZodOptional; + autonumberFormat: z.ZodOptional; + externalId: z.ZodDefault; + }, z.core.$strict>>; + indexes: z.ZodOptional; + fields: z.ZodArray; + unique: z.ZodDefault, z.ZodLiteral<"organization">]>>>; + type: z.ZodOptional; + partial: z.ZodOptional; + }, z.core.$strict>>>; + fieldGroups: z.ZodOptional; + description: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + collapse: z.ZodDefault>>; + defaultExpanded: z.ZodOptional; + collapsible: z.ZodOptional; + collapsed: z.ZodOptional; + }, z.core.$strict>>>; + tenancy: z.ZodOptional; + organizationField: z.ZodOptional; + }, z.core.$strict>>; + access: z.ZodOptional>; + }, z.core.$strict>>; + requiredPermissions: z.ZodOptional, z.ZodObject<{ + read: z.ZodOptional>; + create: z.ZodOptional>; + update: z.ZodOptional>; + delete: z.ZodOptional>; + }, z.core.$strict>]>>; + lifecycle: z.ZodOptional; + retention: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + ttl: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + storage: z.ZodOptional; + shards: z.ZodNumber; + unit: z.ZodEnum<{ + month: "month"; + day: "day"; + week: "week"; + }>; + }, z.core.$strict>>; + archive: z.ZodOptional; + }, z.core.$strict>>; + reclaim: z.ZodOptional; + }, z.core.$strict>>; + fileAccessDelegate: z.ZodOptional; + validations: z.ZodOptional>>>; + activityMilestones: z.ZodOptional; + }, z.core.$strict>>>; + nameField: z.ZodOptional; + displayNameField: z.ZodOptional; + titleFormat: z.ZodOptional>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"template">; + }, z.core.$strip>]>>; + highlightFields: z.ZodOptional>; + stageField: z.ZodOptional]>>; + editMode: z.ZodOptional>; + listViews: z.ZodOptional>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + map: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + sort: z.ZodOptional; + }, z.core.$strict>>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + name: z.ZodOptional; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + inlineEdit: z.ZodOptional; + performance: z.ZodOptional; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + count: "count"; + none: "none"; + min: "min"; + max: "max"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + resizable: z.ZodOptional; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + compactToolbar: z.ZodOptional; + selection: z.ZodOptional>; + }, z.core.$strict>>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + pageName: z.ZodOptional; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + rowActions: z.ZodOptional>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + update: "update"; + delete: "delete"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + tags: "tags"; + email: "email"; + phone: "phone"; + user: "user"; + datetime: "datetime"; + location: "location"; + text: "text"; + url: "url"; + time: "time"; + formula: "formula"; + textarea: "textarea"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "csv" | "xlsx")[]; + }, ("json" | "csv" | "xlsx")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + enable: z.ZodOptional; + searchable: z.ZodDefault; + apiEnabled: z.ZodDefault; + apiMethods: z.ZodOptional>>; + files: z.ZodDefault; + feeds: z.ZodDefault; + activities: z.ZodDefault; + clone: z.ZodDefault; + }, z.core.$strict>>; + sharingModel: z.ZodOptional>; + externalSharingModel: z.ZodOptional>; + publicSharing: z.ZodOptional; + allowedAudiences: z.ZodOptional>>; + allowedPermissions: z.ZodOptional>>; + maxExpiryDays: z.ZodOptional; + redactFields: z.ZodOptional>; + eligibility: z.ZodOptional; + }, z.core.$strict>>; + actions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + objectName: z.ZodOptional; + icon: z.ZodOptional; + locations: z.ZodOptional>>; + component: z.ZodOptional>; + type: z.ZodDefault>; + target: z.ZodOptional; + openIn: z.ZodOptional>; + body: z.ZodOptional; + source: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + language: z.ZodLiteral<"js">; + source: z.ZodString; + capabilities: z.ZodDefault>>; + timeoutMs: z.ZodOptional; + memoryMb: z.ZodOptional; + }, z.core.$strict>], "language">>; + operation: z.ZodOptional>; + patch: z.ZodOptional>; + execution: z.ZodOptional>; + execute: z.ZodOptional; + params: z.ZodOptional; + field: z.ZodOptional; + objectOverride: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + required: z.ZodDefault>; + options: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + value: z.ZodString; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + placeholder: z.ZodOptional; + helpText: z.ZodOptional; + defaultValue: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + reference: z.ZodOptional; + defaultFromRow: z.ZodOptional; + carryOver: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiresFeature: z.ZodOptional>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">, { + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }>>>>; + variant: z.ZodOptional>; + order: z.ZodOptional; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + successMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + errorMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + refreshAfter: z.ZodDefault; + undoable: z.ZodOptional; + resultDialog: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + acknowledge: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiresFeature: z.ZodOptional>; + disabled: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiredPermissions: z.ZodOptional>; + shortcut: z.ZodOptional; + bulkEnabled: z.ZodOptional; + ai: z.ZodOptional; + description: z.ZodOptional; + category: z.ZodOptional>; + paramHints: z.ZodOptional; + enum: z.ZodOptional>>; + examples: z.ZodOptional>; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional>; + requiresConfirmation: z.ZodOptional; + }, z.core.$strict>>; + recordIdParam: z.ZodOptional; + recordIdField: z.ZodOptional; + bodyShape: z.ZodOptional, z.ZodObject<{ + wrap: z.ZodString; + }, z.core.$strict>]>>; + method: z.ZodOptional>; + bodyExtra: z.ZodOptional>; + mode: z.ZodOptional>; + opensInNewTab: z.ZodOptional; + newTabUrl: z.ZodOptional; + onSuccess: z.ZodOptional>; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">, { + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict> & { + parse(data: unknown, params?: Parameters<(data: unknown, params?: z.core.ParseContext) => { + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "user" | "none" | "org" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "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: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "modal" | "page" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | undefined; + hidden?: boolean | undefined; + sortable?: boolean | undefined; + resizable?: boolean | undefined; + wrap?: boolean | undefined; + type?: string | undefined; + pinned?: "left" | "right" | undefined; + summary?: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled" | { + type: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled"; + field?: string | undefined; + } | undefined; + prefix?: { + field: string; + type: "text" | "badge"; + } | undefined; + link?: boolean | undefined; + action?: string | undefined; + }[]; + description?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + name?: string | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + inlineEdit?: boolean | undefined; + performance?: undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "calendar" | "kanban" | "gantt" | "timeline" | "gallery" | "chart")[] | undefined; + } | undefined; + navigation?: { + mode: "split" | "none" | "modal" | "drawer" | "page" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + rowHeight?: "short" | "compact" | "medium" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + pageName?: undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + grouping?: { + fields: { + field: string; + order: "desc" | "asc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + rowActions?: string[] | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "update" | "delete"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + maxRecords?: number | undefined; + batchSize?: number | undefined; + }[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + exportOptions?: { + formats: ("json" | "csv" | "xlsx")[]; + } | { + formats?: ("json" | "csv" | "xlsx")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "modal" | "inline"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + responsive?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "create" | "update" | "delete" | "list" | "bulk")[] | undefined; + } | undefined; + sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("edit" | "view" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "full" | "none" | "no-overlay" | "no-delete"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }>[1]): { + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "user" | "none" | "org" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "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: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "modal" | "page" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | undefined; + hidden?: boolean | undefined; + sortable?: boolean | undefined; + resizable?: boolean | undefined; + wrap?: boolean | undefined; + type?: string | undefined; + pinned?: "left" | "right" | undefined; + summary?: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled" | { + type: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled"; + field?: string | undefined; + } | undefined; + prefix?: { + field: string; + type: "text" | "badge"; + } | undefined; + link?: boolean | undefined; + action?: string | undefined; + }[]; + description?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + name?: string | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + inlineEdit?: boolean | undefined; + performance?: undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "calendar" | "kanban" | "gantt" | "timeline" | "gallery" | "chart")[] | undefined; + } | undefined; + navigation?: { + mode: "split" | "none" | "modal" | "drawer" | "page" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + rowHeight?: "short" | "compact" | "medium" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + pageName?: undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + grouping?: { + fields: { + field: string; + order: "desc" | "asc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + rowActions?: string[] | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "update" | "delete"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + maxRecords?: number | undefined; + batchSize?: number | undefined; + }[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + exportOptions?: { + formats: ("json" | "csv" | "xlsx")[]; + } | { + formats?: ("json" | "csv" | "xlsx")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "modal" | "inline"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + responsive?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "create" | "update" | "delete" | "list" | "bulk")[] | undefined; + } | undefined; + sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("edit" | "view" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "full" | "none" | "no-overlay" | "no-delete"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }; + safeParse(data: unknown, params?: Parameters<(data: unknown, params?: z.core.ParseContext) => z.ZodSafeParseResult<{ + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "user" | "none" | "org" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "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: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "modal" | "page" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | undefined; + hidden?: boolean | undefined; + sortable?: boolean | undefined; + resizable?: boolean | undefined; + wrap?: boolean | undefined; + type?: string | undefined; + pinned?: "left" | "right" | undefined; + summary?: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled" | { + type: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled"; + field?: string | undefined; + } | undefined; + prefix?: { + field: string; + type: "text" | "badge"; + } | undefined; + link?: boolean | undefined; + action?: string | undefined; + }[]; + description?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + name?: string | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + inlineEdit?: boolean | undefined; + performance?: undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "calendar" | "kanban" | "gantt" | "timeline" | "gallery" | "chart")[] | undefined; + } | undefined; + navigation?: { + mode: "split" | "none" | "modal" | "drawer" | "page" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + rowHeight?: "short" | "compact" | "medium" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + pageName?: undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + grouping?: { + fields: { + field: string; + order: "desc" | "asc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + rowActions?: string[] | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "update" | "delete"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + maxRecords?: number | undefined; + batchSize?: number | undefined; + }[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + exportOptions?: { + formats: ("json" | "csv" | "xlsx")[]; + } | { + formats?: ("json" | "csv" | "xlsx")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "modal" | "inline"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + responsive?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "create" | "update" | "delete" | "list" | "bulk")[] | undefined; + } | undefined; + sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("edit" | "view" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "full" | "none" | "no-overlay" | "no-delete"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }>>[1]): z.ZodSafeParseResult<{ + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "user" | "none" | "org" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "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: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "modal" | "page" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | undefined; + hidden?: boolean | undefined; + sortable?: boolean | undefined; + resizable?: boolean | undefined; + wrap?: boolean | undefined; + type?: string | undefined; + pinned?: "left" | "right" | undefined; + summary?: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled" | { + type: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled"; + field?: string | undefined; + } | undefined; + prefix?: { + field: string; + type: "text" | "badge"; + } | undefined; + link?: boolean | undefined; + action?: string | undefined; + }[]; + description?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + name?: string | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + inlineEdit?: boolean | undefined; + performance?: undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "calendar" | "kanban" | "gantt" | "timeline" | "gallery" | "chart")[] | undefined; + } | undefined; + navigation?: { + mode: "split" | "none" | "modal" | "drawer" | "page" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + rowHeight?: "short" | "compact" | "medium" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + pageName?: undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + grouping?: { + fields: { + field: string; + order: "desc" | "asc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + rowActions?: string[] | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "update" | "delete"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + maxRecords?: number | undefined; + batchSize?: number | undefined; + }[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + exportOptions?: { + formats: ("json" | "csv" | "xlsx")[]; + } | { + formats?: ("json" | "csv" | "xlsx")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "modal" | "inline"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + responsive?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "create" | "update" | "delete" | "list" | "bulk")[] | undefined; + } | undefined; + sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("edit" | "view" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "full" | "none" | "no-overlay" | "no-delete"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }>; + create: >; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + pluralLabel: z.ZodOptional; + description: z.ZodOptional; + icon: z.ZodOptional; + isSystem: z.ZodDefault>; + managedBy: z.ZodOptional>; + ownership: z.ZodOptional>; + userActions: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + import: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + edit: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + delete: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + exportCsv: z.ZodOptional; + }, z.core.$strict>>; + systemFields: z.ZodOptional, z.ZodObject<{ + tenant: z.ZodOptional; + audit: z.ZodOptional; + }, z.core.$strict>]>>; + datasource: z.ZodDefault>; + external: z.ZodOptional; + remoteSchema: z.ZodOptional; + writable: z.ZodDefault; + columnMap: z.ZodOptional>; + introspectedAt: z.ZodOptional; + ignoreColumns: z.ZodOptional>; + }, z.core.$strict>>; + fields: z.ZodRecord>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + tags: "tags"; + email: "email"; + phone: "phone"; + user: "user"; + datetime: "datetime"; + location: "location"; + text: "text"; + url: "url"; + time: "time"; + formula: "formula"; + textarea: "textarea"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + vector: "vector"; + }>; + description: z.ZodOptional; + format: z.ZodOptional; + required: z.ZodDefault; + storage: z.ZodOptional; + }, z.core.$strict>>; + searchable: z.ZodDefault; + multiple: z.ZodDefault; + unique: z.ZodOptional, z.ZodLiteral<"organization">]>>; + defaultValue: z.ZodOptional; + maxLength: z.ZodOptional; + minLength: z.ZodOptional; + valueDomain: z.ZodOptional>; + rows: z.ZodOptional; + precision: z.ZodOptional; + scale: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + useGrouping: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + options: z.ZodOptional; + color: z.ZodOptional; + default: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + reference: z.ZodOptional; + referenceVia: z.ZodOptional; + deleteBehavior: z.ZodOptional>; + inlineEdit: z.ZodOptional]>>; + inlineTitle: z.ZodOptional; + inlineColumns: z.ZodOptional; + type: z.ZodOptional>; + width: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + prefix: z.ZodOptional; + step: z.ZodOptional; + reference: z.ZodOptional; + displayField: z.ZodOptional; + idField: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + defaultHidden: z.ZodOptional; + computed: z.ZodOptional; + expr: z.ZodOptional; + scale: z.ZodOptional; + autofill: z.ZodOptional; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + inlineAmountField: z.ZodOptional; + relatedList: z.ZodOptional]>>; + relatedListTitle: z.ZodOptional; + relatedListColumns: z.ZodOptional>; + relatedListFilter: z.ZodOptional>>; + displayField: z.ZodOptional; + descriptionField: z.ZodOptional; + lookupColumns: z.ZodOptional; + width: z.ZodOptional; + type: z.ZodOptional; + }, z.core.$strict>]>>>; + lookupPageSize: z.ZodOptional; + lookupFilters: z.ZodOptional; + value: z.ZodAny; + }, z.core.$strict>>>; + dependsOn: z.ZodOptional; + }, z.core.$strict>]>>>; + allowCreate: z.ZodOptional; + expression: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + returnType: z.ZodOptional>; + summaryOperations: z.ZodOptional; + relationshipField: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strict>>; + language: z.ZodOptional; + step: z.ZodOptional; + currencyConfig: z.ZodOptional; + currencyMode: z.ZodDefault>; + defaultCurrency: z.ZodDefault; + }, z.core.$strict>>; + dimensions: z.ZodOptional; + trackHistory: z.ZodOptional; + group: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + conditionalRequired: z.ZodOptional; + widget: z.ZodOptional; + hidden: z.ZodDefault; + internal: z.ZodOptional; + readonly: z.ZodDefault; + requiredPermissions: z.ZodOptional>; + maskingRule: z.ZodOptional, z.ZodObject<{ + keepHead: z.ZodNumber; + keepTail: z.ZodNumber; + }, z.core.$strict>]>>; + ackPlaintextMasking: z.ZodOptional; + system: z.ZodOptional; + sortable: z.ZodDefault>; + inlineHelpText: z.ZodOptional; + placeholder: z.ZodOptional; + autonumberFormat: z.ZodOptional; + externalId: z.ZodDefault; + }, z.core.$strict>>; + indexes: z.ZodOptional; + fields: z.ZodArray; + unique: z.ZodDefault, z.ZodLiteral<"organization">]>>>; + type: z.ZodOptional; + partial: z.ZodOptional; + }, z.core.$strict>>>; + fieldGroups: z.ZodOptional; + description: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + collapse: z.ZodDefault>>; + defaultExpanded: z.ZodOptional; + collapsible: z.ZodOptional; + collapsed: z.ZodOptional; + }, z.core.$strict>>>; + tenancy: z.ZodOptional; + organizationField: z.ZodOptional; + }, z.core.$strict>>; + access: z.ZodOptional>; + }, z.core.$strict>>; + requiredPermissions: z.ZodOptional, z.ZodObject<{ + read: z.ZodOptional>; + create: z.ZodOptional>; + update: z.ZodOptional>; + delete: z.ZodOptional>; + }, z.core.$strict>]>>; + lifecycle: z.ZodOptional; + retention: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + ttl: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + storage: z.ZodOptional; + shards: z.ZodNumber; + unit: z.ZodEnum<{ + month: "month"; + day: "day"; + week: "week"; + }>; + }, z.core.$strict>>; + archive: z.ZodOptional; + }, z.core.$strict>>; + reclaim: z.ZodOptional; + }, z.core.$strict>>; + fileAccessDelegate: z.ZodOptional; + validations: z.ZodOptional>>>; + activityMilestones: z.ZodOptional; + }, z.core.$strict>>>; + nameField: z.ZodOptional; + displayNameField: z.ZodOptional; + titleFormat: z.ZodOptional>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"template">; + }, z.core.$strip>]>>; + highlightFields: z.ZodOptional>; + stageField: z.ZodOptional]>>; + editMode: z.ZodOptional>; + listViews: z.ZodOptional>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + map: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + sort: z.ZodOptional; + }, z.core.$strict>>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + name: z.ZodOptional; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + inlineEdit: z.ZodOptional; + performance: z.ZodOptional; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + count: "count"; + none: "none"; + min: "min"; + max: "max"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + resizable: z.ZodOptional; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + compactToolbar: z.ZodOptional; + selection: z.ZodOptional>; + }, z.core.$strict>>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + pageName: z.ZodOptional; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + rowActions: z.ZodOptional>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + update: "update"; + delete: "delete"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + tags: "tags"; + email: "email"; + phone: "phone"; + user: "user"; + datetime: "datetime"; + location: "location"; + text: "text"; + url: "url"; + time: "time"; + formula: "formula"; + textarea: "textarea"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "csv" | "xlsx")[]; + }, ("json" | "csv" | "xlsx")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + enable: z.ZodOptional; + searchable: z.ZodDefault; + apiEnabled: z.ZodDefault; + apiMethods: z.ZodOptional>>; + files: z.ZodDefault; + feeds: z.ZodDefault; + activities: z.ZodDefault; + clone: z.ZodDefault; + }, z.core.$strict>>; + sharingModel: z.ZodOptional>; + externalSharingModel: z.ZodOptional>; + publicSharing: z.ZodOptional; + allowedAudiences: z.ZodOptional>>; + allowedPermissions: z.ZodOptional>>; + maxExpiryDays: z.ZodOptional; + redactFields: z.ZodOptional>; + eligibility: z.ZodOptional; + }, z.core.$strict>>; + actions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + objectName: z.ZodOptional; + icon: z.ZodOptional; + locations: z.ZodOptional>>; + component: z.ZodOptional>; + type: z.ZodDefault>; + target: z.ZodOptional; + openIn: z.ZodOptional>; + body: z.ZodOptional; + source: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + language: z.ZodLiteral<"js">; + source: z.ZodString; + capabilities: z.ZodDefault>>; + timeoutMs: z.ZodOptional; + memoryMb: z.ZodOptional; + }, z.core.$strict>], "language">>; + operation: z.ZodOptional>; + patch: z.ZodOptional>; + execution: z.ZodOptional>; + execute: z.ZodOptional; + params: z.ZodOptional; + field: z.ZodOptional; + objectOverride: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + required: z.ZodDefault>; + options: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + value: z.ZodString; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + placeholder: z.ZodOptional; + helpText: z.ZodOptional; + defaultValue: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + reference: z.ZodOptional; + defaultFromRow: z.ZodOptional; + carryOver: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiresFeature: z.ZodOptional>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">, { + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }>>>>; + variant: z.ZodOptional>; + order: z.ZodOptional; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + successMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + errorMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + refreshAfter: z.ZodDefault; + undoable: z.ZodOptional; + resultDialog: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + acknowledge: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiresFeature: z.ZodOptional>; + disabled: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiredPermissions: z.ZodOptional>; + shortcut: z.ZodOptional; + bulkEnabled: z.ZodOptional; + ai: z.ZodOptional; + description: z.ZodOptional; + category: z.ZodOptional>; + paramHints: z.ZodOptional; + enum: z.ZodOptional>>; + examples: z.ZodOptional>; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional>; + requiresConfirmation: z.ZodOptional; + }, z.core.$strict>>; + recordIdParam: z.ZodOptional; + recordIdField: z.ZodOptional; + bodyShape: z.ZodOptional, z.ZodObject<{ + wrap: z.ZodString; + }, z.core.$strict>]>>; + method: z.ZodOptional>; + bodyExtra: z.ZodOptional>; + mode: z.ZodOptional>; + opensInNewTab: z.ZodOptional; + newTabUrl: z.ZodOptional; + onSuccess: z.ZodOptional>; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">, { + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>(config: T & Record, never> & (T extends { + actions: infer As extends readonly unknown[]; + } ? { + actions: { [I in keyof As]: As[I] extends infer T_1 ? T_1 extends As[I] ? T_1 extends { + params: infer Ps extends readonly unknown[]; + } ? T_1 & { + params: { [I_1 in keyof Ps]: Ps[I_1] & Record, never>; }; + } : T_1 : never : never; }; + } : unknown)) => Omit & Pick; + }; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"rename_object">; + oldName: z.ZodString; + newName: z.ZodString; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"delete_object">; + objectName: z.ZodString; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"execute_sql">; + sql: z.ZodString; + description: z.ZodOptional; + }, z.core.$strip>], "type">>>; +}, z.core.$strip>; + +// ── CollaborationMode (const) ── +declare const CollaborationMode: z.ZodEnum<{ + lock: "lock"; + ot: "ot"; + crdt: "crdt"; + hybrid: "hybrid"; +}>; + +// ── CollaborationMode (type) ── +type CollaborationMode = z.input; + +// ── CollaborationSession (type) ── +type CollaborationSession = z.input; + +// ── CollaborationSessionConfig (type) ── +type CollaborationSessionConfig = z.input; + +// ── CollaborationSessionConfigParsed (type) ── +type CollaborationSessionConfigParsed = z.infer; + +// ── CollaborationSessionConfigSchema (const) ── +declare const CollaborationSessionConfigSchema: z.ZodObject<{ + mode: z.ZodEnum<{ + lock: "lock"; + ot: "ot"; + crdt: "crdt"; + hybrid: "hybrid"; + }>; + enableCursorSharing: z.ZodDefault>; + enablePresence: z.ZodDefault>; + enableAwareness: z.ZodDefault>; + maxUsers: z.ZodOptional; + idleTimeoutMs: z.ZodDefault>; + idleTimeout: z.ZodOptional; + conflictResolution: z.ZodDefault>>; + persistence: z.ZodDefault>; + snapshot: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── CollaborationSessionParsed (type) ── +type CollaborationSessionParsed = z.infer; + +// ── CollaborationSessionSchema (const) ── +declare const CollaborationSessionSchema: z.ZodObject<{ + sessionId: z.ZodString; + documentId: z.ZodString; + config: z.ZodObject<{ + mode: z.ZodEnum<{ + lock: "lock"; + ot: "ot"; + crdt: "crdt"; + hybrid: "hybrid"; + }>; + enableCursorSharing: z.ZodDefault>; + enablePresence: z.ZodDefault>; + enableAwareness: z.ZodDefault>; + maxUsers: z.ZodOptional; + idleTimeoutMs: z.ZodDefault>; + idleTimeout: z.ZodOptional; + conflictResolution: z.ZodDefault>>; + persistence: z.ZodDefault>; + snapshot: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + users: z.ZodArray; + status: z.ZodEnum<{ + active: "active"; + idle: "idle"; + viewing: "viewing"; + disconnected: "disconnected"; + }>; + currentDocument: z.ZodOptional; + currentView: z.ZodOptional; + lastActivity: z.ZodString; + joinedAt: z.ZodString; + permissions: z.ZodOptional>; + metadata: z.ZodOptional>; + }, z.core.$strip>>; + cursors: z.ZodArray; + selection: z.ZodOptional; + focus: z.ZodObject<{ + line: z.ZodNumber; + column: z.ZodNumber; + }, z.core.$strip>; + direction: z.ZodOptional>; + }, z.core.$strip>>; + style: z.ZodObject<{ + color: z.ZodUnion, z.ZodString]>; + opacity: z.ZodDefault>; + label: z.ZodOptional; + showLabel: z.ZodDefault>; + pulseOnUpdate: z.ZodDefault>; + }, z.core.$strip>; + isTyping: z.ZodDefault>; + lastUpdate: z.ZodString; + metadata: z.ZodOptional>; + }, z.core.$strip>>; + version: z.ZodNumber; + operations: z.ZodOptional; + text: z.ZodString; + attributes: z.ZodOptional>; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"delete">; + count: z.ZodNumber; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"retain">; + count: z.ZodNumber; + attributes: z.ZodOptional>; + }, z.core.$strip>], "type">>; + baseVersion: z.ZodNumber; + timestamp: z.ZodString; + metadata: z.ZodOptional>; + }, z.core.$strip>, z.ZodObject<{ + operationId: z.ZodString; + replicaId: z.ZodString; + position: z.ZodNumber; + insert: z.ZodOptional; + delete: z.ZodOptional; + timestamp: z.ZodString; + lamportTimestamp: z.ZodNumber; + }, z.core.$strip>]>>>; + createdAt: z.ZodString; + lastActivity: z.ZodString; + status: z.ZodEnum<{ + active: "active"; + idle: "idle"; + ended: "ended"; + }>; +}, z.core.$strip>; + +// ── CollaborativeCursor (type) ── +type CollaborativeCursor = z.input; + +// ── CollaborativeCursorParsed (type) ── +type CollaborativeCursorParsed = z.infer; + +// ── CollaborativeCursorSchema (const) ── +declare const CollaborativeCursorSchema: z.ZodObject<{ + userId: z.ZodString; + sessionId: z.ZodString; + documentId: z.ZodString; + userName: z.ZodString; + position: z.ZodObject<{ + line: z.ZodNumber; + column: z.ZodNumber; + }, z.core.$strip>; + selection: z.ZodOptional; + focus: z.ZodObject<{ + line: z.ZodNumber; + column: z.ZodNumber; + }, z.core.$strip>; + direction: z.ZodOptional>; + }, z.core.$strip>>; + style: z.ZodObject<{ + color: z.ZodUnion, z.ZodString]>; + opacity: z.ZodDefault>; + label: z.ZodOptional; + showLabel: z.ZodDefault>; + pulseOnUpdate: z.ZodDefault>; + }, z.core.$strip>; + isTyping: z.ZodDefault>; + lastUpdate: z.ZodString; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── ComplianceAuditRequirement (type) ── +type ComplianceAuditRequirement = z.input; + +// ── ComplianceAuditRequirementParsed (type) ── +type ComplianceAuditRequirementParsed = z.infer; + +// ── ComplianceAuditRequirementSchema (const) ── +declare const ComplianceAuditRequirementSchema: z.ZodObject<{ + framework: z.ZodEnum<{ + gdpr: "gdpr"; + hipaa: "hipaa"; + sox: "sox"; + pci_dss: "pci_dss"; + ccpa: "ccpa"; + iso27001: "iso27001"; + }>; + requiredEvents: z.ZodArray; + retentionDays: z.ZodNumber; + alertOnMissing: z.ZodDefault; +}, z.core.$strip>; + +// ── ComplianceEncryptionRequirement (type) ── +type ComplianceEncryptionRequirement = z.input; + +// ── ComplianceEncryptionRequirementParsed (type) ── +type ComplianceEncryptionRequirementParsed = z.infer; + +// ── ComplianceEncryptionRequirementSchema (const) ── +declare const ComplianceEncryptionRequirementSchema: z.ZodObject<{ + framework: z.ZodEnum<{ + gdpr: "gdpr"; + hipaa: "hipaa"; + sox: "sox"; + pci_dss: "pci_dss"; + ccpa: "ccpa"; + iso27001: "iso27001"; + }>; + dataClassifications: z.ZodArray>; + minimumAlgorithm: z.ZodDefault>; + keyRotationMaxDays: z.ZodDefault; +}, z.core.$strip>; + +// ── ComplianceFramework (type) ── +type ComplianceFramework = z.input; + +// ── ComplianceFrameworkSchema (const) ── +declare const ComplianceFrameworkSchema: z.ZodEnum<{ + gdpr: "gdpr"; + hipaa: "hipaa"; + sox: "sox"; + pci_dss: "pci_dss"; + ccpa: "ccpa"; + iso27001: "iso27001"; +}>; + +// ── ConsoleDestinationConfig (type) ── +type ConsoleDestinationConfig = z.input; + +// ── ConsoleDestinationConfigParsed (type) ── +type ConsoleDestinationConfigParsed = z.infer; + +// ── ConsoleDestinationConfigSchema (const) ── +declare const ConsoleDestinationConfigSchema: z.ZodObject<{ + stream: z.ZodDefault>>; + colors: z.ZodDefault>; + prettyPrint: z.ZodDefault>; +}, z.core.$strip>; + +// ── CoreServiceName (const) ── +declare const CoreServiceName: z.ZodEnum<{ + metadata: "metadata"; + search: "search"; + storage: "storage"; + data: "data"; + auth: "auth"; + cache: "cache"; + realtime: "realtime"; + ui: "ui"; + automation: "automation"; + analytics: "analytics"; + ai: "ai"; + i18n: "i18n"; + job: "job"; + "file-storage": "file-storage"; + queue: "queue"; + notification: "notification"; +}>; + +// ── CoreServiceName (type) ── +type CoreServiceName = z.input; + +// ── CounterOperation (type) ── +type CounterOperation = z.input; + +// ── CounterOperationSchema (const) ── +declare const CounterOperationSchema: z.ZodObject<{ + replicaId: z.ZodString; + delta: z.ZodNumber; + timestamp: z.ZodString; +}, z.core.$strip>; + +// ── CoverageBreakdownEntry (type) ── +type CoverageBreakdownEntry = z.input; + +// ── CoverageBreakdownEntrySchema (const) ── +declare const CoverageBreakdownEntrySchema: z.ZodObject<{ + group: z.ZodString; + totalKeys: z.ZodNumber; + translatedKeys: z.ZodNumber; + coveragePercent: z.ZodNumber; +}, z.core.$strip>; + +// ── CreateObjectOperation (const) ── +declare const CreateObjectOperation: z.ZodObject<{ + type: z.ZodLiteral<"create_object">; + object: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + pluralLabel: z.ZodOptional; + description: z.ZodOptional; + icon: z.ZodOptional; + isSystem: z.ZodDefault>; + managedBy: z.ZodOptional>; + ownership: z.ZodOptional>; + userActions: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + import: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + edit: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + delete: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + exportCsv: z.ZodOptional; + }, z.core.$strict>>; + systemFields: z.ZodOptional, z.ZodObject<{ + tenant: z.ZodOptional; + audit: z.ZodOptional; + }, z.core.$strict>]>>; + datasource: z.ZodDefault>; + external: z.ZodOptional; + remoteSchema: z.ZodOptional; + writable: z.ZodDefault; + columnMap: z.ZodOptional>; + introspectedAt: z.ZodOptional; + ignoreColumns: z.ZodOptional>; + }, z.core.$strict>>; + fields: z.ZodRecord>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + tags: "tags"; + email: "email"; + phone: "phone"; + user: "user"; + datetime: "datetime"; + location: "location"; + text: "text"; + url: "url"; + time: "time"; + formula: "formula"; + textarea: "textarea"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + vector: "vector"; + }>; + description: z.ZodOptional; + format: z.ZodOptional; + required: z.ZodDefault; + storage: z.ZodOptional; + }, z.core.$strict>>; + searchable: z.ZodDefault; + multiple: z.ZodDefault; + unique: z.ZodOptional, z.ZodLiteral<"organization">]>>; + defaultValue: z.ZodOptional; + maxLength: z.ZodOptional; + minLength: z.ZodOptional; + valueDomain: z.ZodOptional>; + rows: z.ZodOptional; + precision: z.ZodOptional; + scale: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + useGrouping: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + options: z.ZodOptional; + color: z.ZodOptional; + default: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + reference: z.ZodOptional; + referenceVia: z.ZodOptional; + deleteBehavior: z.ZodOptional>; + inlineEdit: z.ZodOptional]>>; + inlineTitle: z.ZodOptional; + inlineColumns: z.ZodOptional; + type: z.ZodOptional>; + width: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + prefix: z.ZodOptional; + step: z.ZodOptional; + reference: z.ZodOptional; + displayField: z.ZodOptional; + idField: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + defaultHidden: z.ZodOptional; + computed: z.ZodOptional; + expr: z.ZodOptional; + scale: z.ZodOptional; + autofill: z.ZodOptional; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + inlineAmountField: z.ZodOptional; + relatedList: z.ZodOptional]>>; + relatedListTitle: z.ZodOptional; + relatedListColumns: z.ZodOptional>; + relatedListFilter: z.ZodOptional>>; + displayField: z.ZodOptional; + descriptionField: z.ZodOptional; + lookupColumns: z.ZodOptional; + width: z.ZodOptional; + type: z.ZodOptional; + }, z.core.$strict>]>>>; + lookupPageSize: z.ZodOptional; + lookupFilters: z.ZodOptional; + value: z.ZodAny; + }, z.core.$strict>>>; + dependsOn: z.ZodOptional; + }, z.core.$strict>]>>>; + allowCreate: z.ZodOptional; + expression: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + returnType: z.ZodOptional>; + summaryOperations: z.ZodOptional; + relationshipField: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strict>>; + language: z.ZodOptional; + step: z.ZodOptional; + currencyConfig: z.ZodOptional; + currencyMode: z.ZodDefault>; + defaultCurrency: z.ZodDefault; + }, z.core.$strict>>; + dimensions: z.ZodOptional; + trackHistory: z.ZodOptional; + group: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + conditionalRequired: z.ZodOptional; + widget: z.ZodOptional; + hidden: z.ZodDefault; + internal: z.ZodOptional; + readonly: z.ZodDefault; + requiredPermissions: z.ZodOptional>; + maskingRule: z.ZodOptional, z.ZodObject<{ + keepHead: z.ZodNumber; + keepTail: z.ZodNumber; + }, z.core.$strict>]>>; + ackPlaintextMasking: z.ZodOptional; + system: z.ZodOptional; + sortable: z.ZodDefault>; + inlineHelpText: z.ZodOptional; + placeholder: z.ZodOptional; + autonumberFormat: z.ZodOptional; + externalId: z.ZodDefault; + }, z.core.$strict>>; + indexes: z.ZodOptional; + fields: z.ZodArray; + unique: z.ZodDefault, z.ZodLiteral<"organization">]>>>; + type: z.ZodOptional; + partial: z.ZodOptional; + }, z.core.$strict>>>; + fieldGroups: z.ZodOptional; + description: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + collapse: z.ZodDefault>>; + defaultExpanded: z.ZodOptional; + collapsible: z.ZodOptional; + collapsed: z.ZodOptional; + }, z.core.$strict>>>; + tenancy: z.ZodOptional; + organizationField: z.ZodOptional; + }, z.core.$strict>>; + access: z.ZodOptional>; + }, z.core.$strict>>; + requiredPermissions: z.ZodOptional, z.ZodObject<{ + read: z.ZodOptional>; + create: z.ZodOptional>; + update: z.ZodOptional>; + delete: z.ZodOptional>; + }, z.core.$strict>]>>; + lifecycle: z.ZodOptional; + retention: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + ttl: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + storage: z.ZodOptional; + shards: z.ZodNumber; + unit: z.ZodEnum<{ + month: "month"; + day: "day"; + week: "week"; + }>; + }, z.core.$strict>>; + archive: z.ZodOptional; + }, z.core.$strict>>; + reclaim: z.ZodOptional; + }, z.core.$strict>>; + fileAccessDelegate: z.ZodOptional; + validations: z.ZodOptional>>>; + activityMilestones: z.ZodOptional; + }, z.core.$strict>>>; + nameField: z.ZodOptional; + displayNameField: z.ZodOptional; + titleFormat: z.ZodOptional>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"template">; + }, z.core.$strip>]>>; + highlightFields: z.ZodOptional>; + stageField: z.ZodOptional]>>; + editMode: z.ZodOptional>; + listViews: z.ZodOptional>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + map: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + sort: z.ZodOptional; + }, z.core.$strict>>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + name: z.ZodOptional; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + inlineEdit: z.ZodOptional; + performance: z.ZodOptional; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + count: "count"; + none: "none"; + min: "min"; + max: "max"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + resizable: z.ZodOptional; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + compactToolbar: z.ZodOptional; + selection: z.ZodOptional>; + }, z.core.$strict>>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + pageName: z.ZodOptional; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + rowActions: z.ZodOptional>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + update: "update"; + delete: "delete"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + tags: "tags"; + email: "email"; + phone: "phone"; + user: "user"; + datetime: "datetime"; + location: "location"; + text: "text"; + url: "url"; + time: "time"; + formula: "formula"; + textarea: "textarea"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "csv" | "xlsx")[]; + }, ("json" | "csv" | "xlsx")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + enable: z.ZodOptional; + searchable: z.ZodDefault; + apiEnabled: z.ZodDefault; + apiMethods: z.ZodOptional>>; + files: z.ZodDefault; + feeds: z.ZodDefault; + activities: z.ZodDefault; + clone: z.ZodDefault; + }, z.core.$strict>>; + sharingModel: z.ZodOptional>; + externalSharingModel: z.ZodOptional>; + publicSharing: z.ZodOptional; + allowedAudiences: z.ZodOptional>>; + allowedPermissions: z.ZodOptional>>; + maxExpiryDays: z.ZodOptional; + redactFields: z.ZodOptional>; + eligibility: z.ZodOptional; + }, z.core.$strict>>; + actions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + objectName: z.ZodOptional; + icon: z.ZodOptional; + locations: z.ZodOptional>>; + component: z.ZodOptional>; + type: z.ZodDefault>; + target: z.ZodOptional; + openIn: z.ZodOptional>; + body: z.ZodOptional; + source: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + language: z.ZodLiteral<"js">; + source: z.ZodString; + capabilities: z.ZodDefault>>; + timeoutMs: z.ZodOptional; + memoryMb: z.ZodOptional; + }, z.core.$strict>], "language">>; + operation: z.ZodOptional>; + patch: z.ZodOptional>; + execution: z.ZodOptional>; + execute: z.ZodOptional; + params: z.ZodOptional; + field: z.ZodOptional; + objectOverride: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + required: z.ZodDefault>; + options: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + value: z.ZodString; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + placeholder: z.ZodOptional; + helpText: z.ZodOptional; + defaultValue: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + reference: z.ZodOptional; + defaultFromRow: z.ZodOptional; + carryOver: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiresFeature: z.ZodOptional>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">, { + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }>>>>; + variant: z.ZodOptional>; + order: z.ZodOptional; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + successMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + errorMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + refreshAfter: z.ZodDefault; + undoable: z.ZodOptional; + resultDialog: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + acknowledge: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiresFeature: z.ZodOptional>; + disabled: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiredPermissions: z.ZodOptional>; + shortcut: z.ZodOptional; + bulkEnabled: z.ZodOptional; + ai: z.ZodOptional; + description: z.ZodOptional; + category: z.ZodOptional>; + paramHints: z.ZodOptional; + enum: z.ZodOptional>>; + examples: z.ZodOptional>; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional>; + requiresConfirmation: z.ZodOptional; + }, z.core.$strict>>; + recordIdParam: z.ZodOptional; + recordIdField: z.ZodOptional; + bodyShape: z.ZodOptional, z.ZodObject<{ + wrap: z.ZodString; + }, z.core.$strict>]>>; + method: z.ZodOptional>; + bodyExtra: z.ZodOptional>; + mode: z.ZodOptional>; + opensInNewTab: z.ZodOptional; + newTabUrl: z.ZodOptional; + onSuccess: z.ZodOptional>; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">, { + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict> & { + parse(data: unknown, params?: Parameters<(data: unknown, params?: z.core.ParseContext) => { + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "user" | "none" | "org" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "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: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "modal" | "page" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | undefined; + hidden?: boolean | undefined; + sortable?: boolean | undefined; + resizable?: boolean | undefined; + wrap?: boolean | undefined; + type?: string | undefined; + pinned?: "left" | "right" | undefined; + summary?: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled" | { + type: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled"; + field?: string | undefined; + } | undefined; + prefix?: { + field: string; + type: "text" | "badge"; + } | undefined; + link?: boolean | undefined; + action?: string | undefined; + }[]; + description?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + name?: string | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + inlineEdit?: boolean | undefined; + performance?: undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "calendar" | "kanban" | "gantt" | "timeline" | "gallery" | "chart")[] | undefined; + } | undefined; + navigation?: { + mode: "split" | "none" | "modal" | "drawer" | "page" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + rowHeight?: "short" | "compact" | "medium" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + pageName?: undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + grouping?: { + fields: { + field: string; + order: "desc" | "asc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + rowActions?: string[] | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "update" | "delete"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + maxRecords?: number | undefined; + batchSize?: number | undefined; + }[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + exportOptions?: { + formats: ("json" | "csv" | "xlsx")[]; + } | { + formats?: ("json" | "csv" | "xlsx")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "modal" | "inline"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + responsive?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "create" | "update" | "delete" | "list" | "bulk")[] | undefined; + } | undefined; + sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("edit" | "view" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "full" | "none" | "no-overlay" | "no-delete"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }>[1]): { + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "user" | "none" | "org" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "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: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "modal" | "page" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | undefined; + hidden?: boolean | undefined; + sortable?: boolean | undefined; + resizable?: boolean | undefined; + wrap?: boolean | undefined; + type?: string | undefined; + pinned?: "left" | "right" | undefined; + summary?: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled" | { + type: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled"; + field?: string | undefined; + } | undefined; + prefix?: { + field: string; + type: "text" | "badge"; + } | undefined; + link?: boolean | undefined; + action?: string | undefined; + }[]; + description?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + name?: string | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + inlineEdit?: boolean | undefined; + performance?: undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "calendar" | "kanban" | "gantt" | "timeline" | "gallery" | "chart")[] | undefined; + } | undefined; + navigation?: { + mode: "split" | "none" | "modal" | "drawer" | "page" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + rowHeight?: "short" | "compact" | "medium" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + pageName?: undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + grouping?: { + fields: { + field: string; + order: "desc" | "asc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + rowActions?: string[] | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "update" | "delete"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + maxRecords?: number | undefined; + batchSize?: number | undefined; + }[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + exportOptions?: { + formats: ("json" | "csv" | "xlsx")[]; + } | { + formats?: ("json" | "csv" | "xlsx")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "modal" | "inline"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + responsive?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "create" | "update" | "delete" | "list" | "bulk")[] | undefined; + } | undefined; + sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("edit" | "view" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "full" | "none" | "no-overlay" | "no-delete"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }; + safeParse(data: unknown, params?: Parameters<(data: unknown, params?: z.core.ParseContext) => z.ZodSafeParseResult<{ + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "user" | "none" | "org" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "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: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "modal" | "page" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | undefined; + hidden?: boolean | undefined; + sortable?: boolean | undefined; + resizable?: boolean | undefined; + wrap?: boolean | undefined; + type?: string | undefined; + pinned?: "left" | "right" | undefined; + summary?: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled" | { + type: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled"; + field?: string | undefined; + } | undefined; + prefix?: { + field: string; + type: "text" | "badge"; + } | undefined; + link?: boolean | undefined; + action?: string | undefined; + }[]; + description?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + name?: string | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + inlineEdit?: boolean | undefined; + performance?: undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "calendar" | "kanban" | "gantt" | "timeline" | "gallery" | "chart")[] | undefined; + } | undefined; + navigation?: { + mode: "split" | "none" | "modal" | "drawer" | "page" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + rowHeight?: "short" | "compact" | "medium" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + pageName?: undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + grouping?: { + fields: { + field: string; + order: "desc" | "asc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + rowActions?: string[] | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "update" | "delete"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + maxRecords?: number | undefined; + batchSize?: number | undefined; + }[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + exportOptions?: { + formats: ("json" | "csv" | "xlsx")[]; + } | { + formats?: ("json" | "csv" | "xlsx")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "modal" | "inline"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + responsive?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "create" | "update" | "delete" | "list" | "bulk")[] | undefined; + } | undefined; + sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("edit" | "view" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "full" | "none" | "no-overlay" | "no-delete"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }>>[1]): z.ZodSafeParseResult<{ + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "user" | "none" | "org" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "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: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "modal" | "page" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | undefined; + hidden?: boolean | undefined; + sortable?: boolean | undefined; + resizable?: boolean | undefined; + wrap?: boolean | undefined; + type?: string | undefined; + pinned?: "left" | "right" | undefined; + summary?: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled" | { + type: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled"; + field?: string | undefined; + } | undefined; + prefix?: { + field: string; + type: "text" | "badge"; + } | undefined; + link?: boolean | undefined; + action?: string | undefined; + }[]; + description?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + name?: string | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + inlineEdit?: boolean | undefined; + performance?: undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "calendar" | "kanban" | "gantt" | "timeline" | "gallery" | "chart")[] | undefined; + } | undefined; + navigation?: { + mode: "split" | "none" | "modal" | "drawer" | "page" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + rowHeight?: "short" | "compact" | "medium" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + pageName?: undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + grouping?: { + fields: { + field: string; + order: "desc" | "asc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + rowActions?: string[] | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "update" | "delete"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + maxRecords?: number | undefined; + batchSize?: number | undefined; + }[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + exportOptions?: { + formats: ("json" | "csv" | "xlsx")[]; + } | { + formats?: ("json" | "csv" | "xlsx")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "modal" | "inline"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + responsive?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "create" | "update" | "delete" | "list" | "bulk")[] | undefined; + } | undefined; + sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("edit" | "view" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "full" | "none" | "no-overlay" | "no-delete"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }>; + create: >; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + pluralLabel: z.ZodOptional; + description: z.ZodOptional; + icon: z.ZodOptional; + isSystem: z.ZodDefault>; + managedBy: z.ZodOptional>; + ownership: z.ZodOptional>; + userActions: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + import: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + edit: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + delete: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + exportCsv: z.ZodOptional; + }, z.core.$strict>>; + systemFields: z.ZodOptional, z.ZodObject<{ + tenant: z.ZodOptional; + audit: z.ZodOptional; + }, z.core.$strict>]>>; + datasource: z.ZodDefault>; + external: z.ZodOptional; + remoteSchema: z.ZodOptional; + writable: z.ZodDefault; + columnMap: z.ZodOptional>; + introspectedAt: z.ZodOptional; + ignoreColumns: z.ZodOptional>; + }, z.core.$strict>>; + fields: z.ZodRecord>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + tags: "tags"; + email: "email"; + phone: "phone"; + user: "user"; + datetime: "datetime"; + location: "location"; + text: "text"; + url: "url"; + time: "time"; + formula: "formula"; + textarea: "textarea"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + vector: "vector"; + }>; + description: z.ZodOptional; + format: z.ZodOptional; + required: z.ZodDefault; + storage: z.ZodOptional; + }, z.core.$strict>>; + searchable: z.ZodDefault; + multiple: z.ZodDefault; + unique: z.ZodOptional, z.ZodLiteral<"organization">]>>; + defaultValue: z.ZodOptional; + maxLength: z.ZodOptional; + minLength: z.ZodOptional; + valueDomain: z.ZodOptional>; + rows: z.ZodOptional; + precision: z.ZodOptional; + scale: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + useGrouping: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + options: z.ZodOptional; + color: z.ZodOptional; + default: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + reference: z.ZodOptional; + referenceVia: z.ZodOptional; + deleteBehavior: z.ZodOptional>; + inlineEdit: z.ZodOptional]>>; + inlineTitle: z.ZodOptional; + inlineColumns: z.ZodOptional; + type: z.ZodOptional>; + width: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + prefix: z.ZodOptional; + step: z.ZodOptional; + reference: z.ZodOptional; + displayField: z.ZodOptional; + idField: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + defaultHidden: z.ZodOptional; + computed: z.ZodOptional; + expr: z.ZodOptional; + scale: z.ZodOptional; + autofill: z.ZodOptional; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + inlineAmountField: z.ZodOptional; + relatedList: z.ZodOptional]>>; + relatedListTitle: z.ZodOptional; + relatedListColumns: z.ZodOptional>; + relatedListFilter: z.ZodOptional>>; + displayField: z.ZodOptional; + descriptionField: z.ZodOptional; + lookupColumns: z.ZodOptional; + width: z.ZodOptional; + type: z.ZodOptional; + }, z.core.$strict>]>>>; + lookupPageSize: z.ZodOptional; + lookupFilters: z.ZodOptional; + value: z.ZodAny; + }, z.core.$strict>>>; + dependsOn: z.ZodOptional; + }, z.core.$strict>]>>>; + allowCreate: z.ZodOptional; + expression: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + returnType: z.ZodOptional>; + summaryOperations: z.ZodOptional; + relationshipField: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strict>>; + language: z.ZodOptional; + step: z.ZodOptional; + currencyConfig: z.ZodOptional; + currencyMode: z.ZodDefault>; + defaultCurrency: z.ZodDefault; + }, z.core.$strict>>; + dimensions: z.ZodOptional; + trackHistory: z.ZodOptional; + group: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + conditionalRequired: z.ZodOptional; + widget: z.ZodOptional; + hidden: z.ZodDefault; + internal: z.ZodOptional; + readonly: z.ZodDefault; + requiredPermissions: z.ZodOptional>; + maskingRule: z.ZodOptional, z.ZodObject<{ + keepHead: z.ZodNumber; + keepTail: z.ZodNumber; + }, z.core.$strict>]>>; + ackPlaintextMasking: z.ZodOptional; + system: z.ZodOptional; + sortable: z.ZodDefault>; + inlineHelpText: z.ZodOptional; + placeholder: z.ZodOptional; + autonumberFormat: z.ZodOptional; + externalId: z.ZodDefault; + }, z.core.$strict>>; + indexes: z.ZodOptional; + fields: z.ZodArray; + unique: z.ZodDefault, z.ZodLiteral<"organization">]>>>; + type: z.ZodOptional; + partial: z.ZodOptional; + }, z.core.$strict>>>; + fieldGroups: z.ZodOptional; + description: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + collapse: z.ZodDefault>>; + defaultExpanded: z.ZodOptional; + collapsible: z.ZodOptional; + collapsed: z.ZodOptional; + }, z.core.$strict>>>; + tenancy: z.ZodOptional; + organizationField: z.ZodOptional; + }, z.core.$strict>>; + access: z.ZodOptional>; + }, z.core.$strict>>; + requiredPermissions: z.ZodOptional, z.ZodObject<{ + read: z.ZodOptional>; + create: z.ZodOptional>; + update: z.ZodOptional>; + delete: z.ZodOptional>; + }, z.core.$strict>]>>; + lifecycle: z.ZodOptional; + retention: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + ttl: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + storage: z.ZodOptional; + shards: z.ZodNumber; + unit: z.ZodEnum<{ + month: "month"; + day: "day"; + week: "week"; + }>; + }, z.core.$strict>>; + archive: z.ZodOptional; + }, z.core.$strict>>; + reclaim: z.ZodOptional; + }, z.core.$strict>>; + fileAccessDelegate: z.ZodOptional; + validations: z.ZodOptional>>>; + activityMilestones: z.ZodOptional; + }, z.core.$strict>>>; + nameField: z.ZodOptional; + displayNameField: z.ZodOptional; + titleFormat: z.ZodOptional>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"template">; + }, z.core.$strip>]>>; + highlightFields: z.ZodOptional>; + stageField: z.ZodOptional]>>; + editMode: z.ZodOptional>; + listViews: z.ZodOptional>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + map: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + sort: z.ZodOptional; + }, z.core.$strict>>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + name: z.ZodOptional; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + inlineEdit: z.ZodOptional; + performance: z.ZodOptional; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + count: "count"; + none: "none"; + min: "min"; + max: "max"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + resizable: z.ZodOptional; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + compactToolbar: z.ZodOptional; + selection: z.ZodOptional>; + }, z.core.$strict>>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + pageName: z.ZodOptional; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + rowActions: z.ZodOptional>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + update: "update"; + delete: "delete"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + tags: "tags"; + email: "email"; + phone: "phone"; + user: "user"; + datetime: "datetime"; + location: "location"; + text: "text"; + url: "url"; + time: "time"; + formula: "formula"; + textarea: "textarea"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "csv" | "xlsx")[]; + }, ("json" | "csv" | "xlsx")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + enable: z.ZodOptional; + searchable: z.ZodDefault; + apiEnabled: z.ZodDefault; + apiMethods: z.ZodOptional>>; + files: z.ZodDefault; + feeds: z.ZodDefault; + activities: z.ZodDefault; + clone: z.ZodDefault; + }, z.core.$strict>>; + sharingModel: z.ZodOptional>; + externalSharingModel: z.ZodOptional>; + publicSharing: z.ZodOptional; + allowedAudiences: z.ZodOptional>>; + allowedPermissions: z.ZodOptional>>; + maxExpiryDays: z.ZodOptional; + redactFields: z.ZodOptional>; + eligibility: z.ZodOptional; + }, z.core.$strict>>; + actions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + objectName: z.ZodOptional; + icon: z.ZodOptional; + locations: z.ZodOptional>>; + component: z.ZodOptional>; + type: z.ZodDefault>; + target: z.ZodOptional; + openIn: z.ZodOptional>; + body: z.ZodOptional; + source: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + language: z.ZodLiteral<"js">; + source: z.ZodString; + capabilities: z.ZodDefault>>; + timeoutMs: z.ZodOptional; + memoryMb: z.ZodOptional; + }, z.core.$strict>], "language">>; + operation: z.ZodOptional>; + patch: z.ZodOptional>; + execution: z.ZodOptional>; + execute: z.ZodOptional; + params: z.ZodOptional; + field: z.ZodOptional; + objectOverride: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + required: z.ZodDefault>; + options: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + value: z.ZodString; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + placeholder: z.ZodOptional; + helpText: z.ZodOptional; + defaultValue: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + reference: z.ZodOptional; + defaultFromRow: z.ZodOptional; + carryOver: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiresFeature: z.ZodOptional>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">, { + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }>>>>; + variant: z.ZodOptional>; + order: z.ZodOptional; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + successMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + errorMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + refreshAfter: z.ZodDefault; + undoable: z.ZodOptional; + resultDialog: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + acknowledge: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiresFeature: z.ZodOptional>; + disabled: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiredPermissions: z.ZodOptional>; + shortcut: z.ZodOptional; + bulkEnabled: z.ZodOptional; + ai: z.ZodOptional; + description: z.ZodOptional; + category: z.ZodOptional>; + paramHints: z.ZodOptional; + enum: z.ZodOptional>>; + examples: z.ZodOptional>; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional>; + requiresConfirmation: z.ZodOptional; + }, z.core.$strict>>; + recordIdParam: z.ZodOptional; + recordIdField: z.ZodOptional; + bodyShape: z.ZodOptional, z.ZodObject<{ + wrap: z.ZodString; + }, z.core.$strict>]>>; + method: z.ZodOptional>; + bodyExtra: z.ZodOptional>; + mode: z.ZodOptional>; + opensInNewTab: z.ZodOptional; + newTabUrl: z.ZodOptional; + onSuccess: z.ZodOptional>; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">, { + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>(config: T & Record, never> & (T extends { + actions: infer As extends readonly unknown[]; + } ? { + actions: { [I in keyof As]: As[I] extends infer T_1 ? T_1 extends As[I] ? T_1 extends { + params: infer Ps extends readonly unknown[]; + } ? T_1 & { + params: { [I_1 in keyof Ps]: Ps[I_1] & Record, never>; }; + } : T_1 : never : never; }; + } : unknown)) => Omit & Pick; + }; +}, z.core.$strip>; + +// ── CronSchedule (type) ── +type CronSchedule = z.input; + +// ── CronScheduleParsed (type) ── +type CronScheduleParsed = z.infer; + +// ── CronScheduleSchema (const) ── +declare const CronScheduleSchema: z.ZodObject<{ + type: z.ZodLiteral<"cron">; + expression: z.ZodUnion>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"cron">; + }, z.core.$strip>]>; + timezone: z.ZodDefault>; +}, z.core.$strip>; + +// ── CursorColorPreset (const) ── +declare const CursorColorPreset: z.ZodEnum<{ + blue: "blue"; + teal: "teal"; + orange: "orange"; + purple: "purple"; + green: "green"; + red: "red"; + yellow: "yellow"; + pink: "pink"; + indigo: "indigo"; + cyan: "cyan"; +}>; + +// ── CursorColorPreset (type) ── +type CursorColorPreset = z.input; + +// ── CursorSelection (type) ── +type CursorSelection = z.input; + +// ── CursorSelectionSchema (const) ── +declare const CursorSelectionSchema: z.ZodObject<{ + anchor: z.ZodObject<{ + line: z.ZodNumber; + column: z.ZodNumber; + }, z.core.$strip>; + focus: z.ZodObject<{ + line: z.ZodNumber; + column: z.ZodNumber; + }, z.core.$strip>; + direction: z.ZodOptional>; +}, z.core.$strip>; + +// ── CursorStyle (type) ── +type CursorStyle = z.input; + +// ── CursorStyleParsed (type) ── +type CursorStyleParsed = z.infer; + +// ── CursorStyleSchema (const) ── +declare const CursorStyleSchema: z.ZodObject<{ + color: z.ZodUnion, z.ZodString]>; + opacity: z.ZodDefault>; + label: z.ZodOptional; + showLabel: z.ZodDefault>; + pulseOnUpdate: z.ZodDefault>; +}, z.core.$strip>; + +// ── CursorUpdate (type) ── +type CursorUpdate = z.input; + +// ── CursorUpdateSchema (const) ── +declare const CursorUpdateSchema: z.ZodObject<{ + position: z.ZodOptional>; + selection: z.ZodOptional; + focus: z.ZodObject<{ + line: z.ZodNumber; + column: z.ZodNumber; + }, z.core.$strip>; + direction: z.ZodOptional>; + }, z.core.$strip>>; + isTyping: z.ZodOptional; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── DATA_MIGRATION_FLAG_OBJECT (const) ── +declare const DATA_MIGRATION_FLAG_OBJECT = "sys_migration"; + +// ── DashboardLike (interface) ── +interface DashboardLike { + name: string; + label?: string; + description?: string; + widgets?: WidgetLike[]; + globalFilters?: GlobalFilterLike[]; + [key: string]: any; +} + +// ── DataClassification (type) ── +type DataClassification = z.input; + +// ── DataClassificationPolicy (type) ── +type DataClassificationPolicy = z.input; + +// ── DataClassificationPolicyParsed (type) ── +type DataClassificationPolicyParsed = z.infer; + +// ── DataClassificationPolicySchema (const) ── +declare const DataClassificationPolicySchema: z.ZodObject<{ + classification: z.ZodEnum<{ + public: "public"; + pii: "pii"; + internal: "internal"; + phi: "phi"; + pci: "pci"; + financial: "financial"; + confidential: "confidential"; + }>; + requireEncryption: z.ZodDefault; + requireMasking: z.ZodDefault; + requireAudit: z.ZodDefault; + retentionDays: z.ZodOptional; +}, z.core.$strip>; + +// ── DataClassificationSchema (const) ── +declare const DataClassificationSchema: z.ZodEnum<{ + public: "public"; + pii: "pii"; + internal: "internal"; + phi: "phi"; + pci: "pci"; + financial: "financial"; + confidential: "confidential"; +}>; + +// ── DataMigrationFlag (type) ── +type DataMigrationFlag = z.input; + +// ── DataMigrationFlagSchema (const) ── +declare const DataMigrationFlagSchema: z.ZodObject<{ + id: z.ZodString; + last_run_at: z.ZodString; + verified_at: z.ZodOptional>; + applied_at: z.ZodOptional>; + blocking: z.ZodNumber; + advisory: z.ZodOptional; + details: z.ZodOptional; + deviation_observed_at: z.ZodOptional>; + deviation_detail: z.ZodOptional>; + columns_moved_at: z.ZodOptional>; +}, z.core.$strip>; + +// ── DatabaseLevelIsolationStrategy (type) ── +type DatabaseLevelIsolationStrategy = z.input; + +// ── DatabaseLevelIsolationStrategyParsed (type) ── +type DatabaseLevelIsolationStrategyParsed = z.infer; + +// ── DatabaseLevelIsolationStrategySchema (const) ── +declare const DatabaseLevelIsolationStrategySchema: z.ZodObject<{ + strategy: z.ZodLiteral<"isolated_db">; + database: z.ZodOptional; + serverStrategy: z.ZodDefault>; + separateCredentials: z.ZodDefault; + autoCreateDatabase: z.ZodDefault; + }, z.core.$strip>>; + connectionPool: z.ZodOptional; + maxActivePools: z.ZodDefault; + idleTimeoutSeconds: z.ZodDefault; + idleTimeout: z.ZodOptional; + usePooler: z.ZodDefault; + }, z.core.$strip>>; + backup: z.ZodOptional>; + frequencyHours: z.ZodDefault; + retentionDays: z.ZodDefault; + }, z.core.$strip>>; + encryption: z.ZodOptional; + algorithm: z.ZodDefault; + keyManagement: z.ZodOptional>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── DatabaseProvider (type) ── +type DatabaseProvider = z.input; + +// ── DatabaseProviderSchema (const) ── +declare const DatabaseProviderSchema: z.ZodEnum<{ + memory: "memory"; + turso: "turso"; + postgres: "postgres"; +}>; + +// ── DatasetLike (interface) ── +interface DatasetLike { + name: string; + label?: unknown; + description?: unknown; + dimensions?: DatasetMemberLike[]; + measures?: DatasetMemberLike[]; + [key: string]: any; +} + +// ── DatasetMemberLike (interface) ── +interface DatasetMemberLike { + /** `DatasetDimensionSchema.name` / `DatasetMeasureSchema.name`. */ + name?: string; + /** `I18nLabelSchema` — a plain string OR an inline locale map (#5728). */ + label?: unknown; + [key: string]: unknown; +} + +// ── DeleteObjectOperation (const) ── +declare const DeleteObjectOperation: z.ZodObject<{ + type: z.ZodLiteral<"delete_object">; + objectName: z.ZodString; +}, z.core.$strip>; + +// ── DeleteObjectOperation (type) ── +type DeleteObjectOperation = z.input; + +// ── DeployBundle (type) ── +type DeployBundle = z.input; + +// ── DeployBundleParsed (type) ── +type DeployBundleParsed = z.infer; + +// ── DeployBundleSchema (const) ── +declare const DeployBundleSchema: z.ZodObject<{ + manifest: z.ZodObject<{ + version: z.ZodString; + checksum: z.ZodOptional; + objects: z.ZodDefault>; + views: z.ZodDefault>; + flows: z.ZodDefault>; + permissions: z.ZodDefault>; + createdAt: z.ZodOptional; + }, z.core.$strip>; + objects: z.ZodDefault>>; + views: z.ZodDefault>>; + flows: z.ZodDefault>>; + permissions: z.ZodDefault>>; + seedData: z.ZodDefault>>; +}, z.core.$strip>; + +// ── DeployDiff (type) ── +type DeployDiff = z.input; + +// ── DeployDiffParsed (type) ── +type DeployDiffParsed = z.infer; + +// ── DeployDiffSchema (const) ── +declare const DeployDiffSchema: z.ZodObject<{ + changes: z.ZodDefault; + entityName: z.ZodString; + parentEntity: z.ZodOptional; + changeType: z.ZodEnum<{ + modified: "modified"; + added: "added"; + removed: "removed"; + }>; + oldValue: z.ZodOptional; + newValue: z.ZodOptional; + }, z.core.$strip>>>; + summary: z.ZodObject<{ + added: z.ZodDefault; + modified: z.ZodDefault; + removed: z.ZodDefault; + }, z.core.$strip>; + hasBreakingChanges: z.ZodDefault; +}, z.core.$strip>; + +// ── DeployManifest (type) ── +type DeployManifest = z.input; + +// ── DeployManifestParsed (type) ── +type DeployManifestParsed = z.infer; + +// ── DeployManifestSchema (const) ── +declare const DeployManifestSchema: z.ZodObject<{ + version: z.ZodString; + checksum: z.ZodOptional; + objects: z.ZodDefault>; + views: z.ZodDefault>; + flows: z.ZodDefault>; + permissions: z.ZodDefault>; + createdAt: z.ZodOptional; +}, z.core.$strip>; + +// ── DeployStatus (type) ── +type DeployStatus = z.input; + +// ── DeployStatusEnum (const) ── +declare const DeployStatusEnum: z.ZodEnum<{ + failed: "failed"; + validating: "validating"; + diffing: "diffing"; + migrating: "migrating"; + registering: "registering"; + ready: "ready"; + rolling_back: "rolling_back"; +}>; + +// ── DeployValidationIssue (type) ── +type DeployValidationIssue = z.input; + +// ── DeployValidationIssueSchema (const) ── +declare const DeployValidationIssueSchema: z.ZodObject<{ + severity: z.ZodEnum<{ + error: "error"; + info: "info"; + warning: "warning"; + }>; + path: z.ZodString; + message: z.ZodString; + code: z.ZodOptional; +}, z.core.$strip>; + +// ── DeployValidationResult (type) ── +type DeployValidationResult = z.input; + +// ── DeployValidationResultParsed (type) ── +type DeployValidationResultParsed = z.infer; + +// ── DeployValidationResultSchema (const) ── +declare const DeployValidationResultSchema: z.ZodObject<{ + valid: z.ZodBoolean; + issues: z.ZodDefault; + path: z.ZodString; + message: z.ZodString; + code: z.ZodOptional; + }, z.core.$strip>>>; + errorCount: z.ZodDefault; + warningCount: z.ZodDefault; +}, z.core.$strip>; + +// ── DisasterRecoveryPlan (type) ── +type DisasterRecoveryPlan = z.input; + +// ── DisasterRecoveryPlanParsed (type) ── +type DisasterRecoveryPlanParsed = z.infer; + +// ── DisasterRecoveryPlanSchema (const) ── +declare const DisasterRecoveryPlanSchema: z.ZodObject<{ + enabled: z.ZodDefault; + rpo: z.ZodObject<{ + value: z.ZodNumber; + unit: z.ZodDefault>; + }, z.core.$strip>; + rto: z.ZodObject<{ + value: z.ZodNumber; + unit: z.ZodDefault>; + }, z.core.$strip>; + backup: z.ZodObject<{ + strategy: z.ZodDefault>; + retention: z.ZodObject<{ + days: z.ZodNumber; + minCopies: z.ZodDefault; + maxCopies: z.ZodOptional; + }, z.core.$strip>; + destination: z.ZodObject<{ + type: z.ZodEnum<{ + s3: "s3"; + gcs: "gcs"; + azure_blob: "azure_blob"; + local: "local"; + }>; + bucket: z.ZodOptional; + path: z.ZodOptional; + region: z.ZodOptional; + }, z.core.$strip>; + encryption: z.ZodOptional; + algorithm: z.ZodDefault>; + keyId: z.ZodOptional; + }, z.core.$strip>>; + compression: z.ZodOptional; + algorithm: z.ZodDefault>; + }, z.core.$strip>>; + verifyAfterBackup: z.ZodDefault; + }, z.core.$strip>; + failover: z.ZodOptional>; + autoFailover: z.ZodDefault; + healthCheckIntervalSeconds: z.ZodDefault; + healthCheckInterval: z.ZodOptional; + failureThreshold: z.ZodDefault; + regions: z.ZodArray; + endpoint: z.ZodOptional; + priority: z.ZodOptional; + }, z.core.$strip>>; + dns: z.ZodOptional; + provider: z.ZodOptional>; + }, z.core.$strip>>; + }, z.core.$strip>>; + replication: z.ZodOptional>; + maxLagSeconds: z.ZodOptional; + includeObjects: z.ZodOptional>; + excludeObjects: z.ZodOptional>; + }, z.core.$strip>>; + testing: z.ZodOptional; + notificationChannel: z.ZodOptional; + }, z.core.$strip>>; + runbookUrl: z.ZodOptional; + contacts: z.ZodOptional; + phone: z.ZodOptional; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── DistributedCacheConfig (type) ── +type DistributedCacheConfig = z.input; + +// ── DistributedCacheConfigParsed (type) ── +type DistributedCacheConfigParsed = z.infer; + +// ── DistributedCacheConfigSchema (const) ── +declare const DistributedCacheConfigSchema: z.ZodObject<{ + enabled: z.ZodDefault; + tiers: z.ZodArray; + maxSize: z.ZodOptional; + ttlSeconds: z.ZodDefault; + ttl: z.ZodOptional; + strategy: z.ZodDefault>; + warmup: z.ZodDefault; + }, z.core.$strip>>; + invalidation: z.ZodArray; + scope: z.ZodEnum<{ + pattern: "pattern"; + key: "key"; + tag: "tag"; + all: "all"; + }>; + pattern: z.ZodOptional; + tags: z.ZodOptional>; + }, z.core.$strip>>; + prefetch: z.ZodDefault; + compression: z.ZodDefault; + encryption: z.ZodDefault; + consistency: z.ZodOptional>; + avalanchePrevention: z.ZodOptional; + maxJitterSeconds: z.ZodDefault; + }, z.core.$strip>>; + circuitBreaker: z.ZodOptional; + failureThreshold: z.ZodDefault; + resetTimeoutSeconds: z.ZodDefault; + resetTimeout: z.ZodOptional; + }, z.core.$strip>>; + lockout: z.ZodOptional; + lockTimeoutMs: z.ZodDefault; + }, z.core.$strip>>; + }, z.core.$strip>>; + warmup: z.ZodOptional; + strategy: z.ZodDefault>; + patterns: z.ZodOptional>; + concurrency: z.ZodDefault; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── Doc (type) ── +type Doc = z.input; + +// ── DocSchema (const) ── +declare const DocSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + content: z.ZodString; + order: z.ZodOptional; + group: z.ZodOptional; + tags: z.ZodOptional>; + translations: z.ZodOptional; + description: z.ZodOptional; + content: z.ZodString; + }, z.core.$strip>>>; +}, z.core.$strict>; + +// ── DocTranslation (type) ── +type DocTranslation = NonNullable[string]; + +// ── EMAIL_TEMPLATE_FLOOR_LOCALE (const) ── +declare const EMAIL_TEMPLATE_FLOOR_LOCALE = "en-US"; + +// ── ENVIRONMENT_ARTIFACT_SCHEMA_VERSION (const) ── +declare const ENVIRONMENT_ARTIFACT_SCHEMA_VERSION: "0.1"; + +// ── EmailAddressConfig (type) ── +type EmailAddressConfig = z.input; + +// ── EmailAddressConfigSchema (const) ── +declare const EmailAddressConfigSchema: z.ZodObject<{ + name: z.ZodOptional; + address: z.ZodString; +}, z.core.$strip>; + +// ── EmailAndPasswordConfig (type) ── +type EmailAndPasswordConfig = z.input; + +// ── EmailAndPasswordConfigParsed (type) ── +type EmailAndPasswordConfigParsed = z.infer; + +// ── EmailAndPasswordConfigSchema (const) ── +declare const EmailAndPasswordConfigSchema: z.ZodOptional; + disableSignUp: z.ZodOptional; + requireEmailVerification: z.ZodOptional; + minPasswordLength: z.ZodOptional; + maxPasswordLength: z.ZodOptional; + resetPasswordTokenExpiresIn: z.ZodOptional; + autoSignIn: z.ZodOptional; + revokeSessionsOnPasswordReset: z.ZodOptional; +}, z.core.$strip>>; + +// ── EmailProvider (type) ── +type EmailProvider = z.input; + +// ── EmailProviderSchema (const) ── +declare const EmailProviderSchema: z.ZodEnum<{ + log: "log"; + resend: "resend"; + postmark: "postmark"; + smtp: "smtp"; +}>; + +// ── EmailServiceConfig (type) ── +type EmailServiceConfig = z.input; + +// ── EmailServiceConfigParsed (type) ── +type EmailServiceConfigParsed = z.infer; + +// ── EmailServiceConfigSchema (const) ── +declare const EmailServiceConfigSchema: z.ZodObject<{ + provider: z.ZodDefault>; + apiKey: z.ZodOptional; + defaultFrom: z.ZodOptional; + address: z.ZodString; + }, z.core.$strip>>; + retries: z.ZodOptional; + persist: z.ZodOptional; + queueDelivery: z.ZodOptional; + options: z.ZodOptional>; + appName: z.ZodOptional; + defaultTemplateContext: z.ZodOptional>; +}, z.core.$strip>; + +// ── EmailTemplateDefinition (type) ── +type EmailTemplateDefinition = z.input; + +// ── EmailTemplateDefinitionCategory (type) ── +type EmailTemplateDefinitionCategory = z.input; + +// ── EmailTemplateDefinitionCategorySchema (const) ── +declare const EmailTemplateDefinitionCategorySchema: z.ZodEnum<{ + custom: "custom"; + auth: "auth"; + workflow: "workflow"; + notification: "notification"; + marketing: "marketing"; +}>; + +// ── EmailTemplateDefinitionParsed (type) ── +type EmailTemplateDefinitionParsed = z.infer; + +// ── EmailTemplateDefinitionSchema (const) ── +declare const EmailTemplateDefinitionSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + category: z.ZodDefault>; + locale: z.ZodDefault; + subject: z.ZodString; + bodyHtml: z.ZodString; + bodyText: z.ZodOptional; + variables: z.ZodDefault>; + required: z.ZodDefault; + description: z.ZodOptional; + }, z.core.$strip>>>; + fromOverride: z.ZodOptional; + address: z.ZodString; + }, z.core.$strip>>; + replyTo: z.ZodOptional; + active: z.ZodDefault; + isSystem: z.ZodDefault; + description: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── EmailTemplateDefinitionVariable (type) ── +type EmailTemplateDefinitionVariable = z.input; + +// ── EmailTemplateDefinitionVariableParsed (type) ── +type EmailTemplateDefinitionVariableParsed = z.infer; + +// ── EmailTemplateDefinitionVariableSchema (const) ── +declare const EmailTemplateDefinitionVariableSchema: z.ZodObject<{ + name: z.ZodString; + type: z.ZodDefault>; + required: z.ZodDefault; + description: z.ZodOptional; +}, z.core.$strip>; + +// ── EmailVerificationConfig (type) ── +type EmailVerificationConfig = z.input; + +// ── EmailVerificationConfigSchema (const) ── +declare const EmailVerificationConfigSchema: z.ZodOptional; + sendOnSignIn: z.ZodOptional; + autoSignInAfterVerification: z.ZodOptional; + expiresIn: z.ZodOptional; +}, z.core.$strip>>; + +// ── EncryptionAlgorithm (type) ── +type EncryptionAlgorithm = z.input; + +// ── EncryptionAlgorithmSchema (const) ── +declare const EncryptionAlgorithmSchema: z.ZodEnum<{ + "aes-256-gcm": "aes-256-gcm"; + "aes-256-cbc": "aes-256-cbc"; + "chacha20-poly1305": "chacha20-poly1305"; +}>; + +// ── EncryptionConfig (type) ── +type EncryptionConfig = z.input; + +// ── EncryptionConfigParsed (type) ── +type EncryptionConfigParsed = z.infer; + +// ── EncryptionConfigSchema (const) ── +declare const EncryptionConfigSchema: z.ZodObject<{ + enabled: z.ZodDefault; + algorithm: z.ZodDefault>; + keyManagement: z.ZodObject<{ + provider: z.ZodEnum<{ + local: "local"; + "aws-kms": "aws-kms"; + "azure-key-vault": "azure-key-vault"; + "gcp-kms": "gcp-kms"; + "hashicorp-vault": "hashicorp-vault"; + }>; + keyId: z.ZodOptional; + rotationPolicy: z.ZodOptional; + frequencyDays: z.ZodDefault; + retainOldVersions: z.ZodDefault; + autoRotate: z.ZodDefault; + }, z.core.$strip>>; + }, z.core.$strip>; + scope: z.ZodEnum<{ + record: "record"; + field: "field"; + table: "table"; + database: "database"; + }>; + deterministicEncryption: z.ZodDefault; + searchableEncryption: z.ZodDefault; +}, z.core.$strip>; + +// ── EnvironmentArtifact (type) ── +type EnvironmentArtifact = z.input; + +// ── EnvironmentArtifactParsed (type) ── +type EnvironmentArtifactParsed = z.infer; + +// ── EnvironmentArtifactSchema (const) ── +declare const EnvironmentArtifactSchema: z.ZodObject<{ + schemaVersion: z.ZodDefault>; + environmentId: z.ZodString; + commitId: z.ZodString; + checksum: z.ZodString; + builtAt: z.ZodOptional; + builtWith: z.ZodOptional; + metadata: z.ZodObject<{ + datasources: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + driver: z.ZodString; + config: z.ZodRecord; + pool: z.ZodOptional; + max: z.ZodDefault; + idleTimeoutMillis: z.ZodDefault; + connectionTimeoutMillis: z.ZodDefault; + }, z.core.$strict>>; + ssl: z.ZodOptional; + rejectUnauthorized: z.ZodDefault; + ca: z.ZodOptional; + cert: z.ZodOptional; + key: z.ZodOptional; + }, z.core.$strict>>; + description: z.ZodOptional; + active: z.ZodDefault; + autoConnect: z.ZodDefault; + schemaMode: z.ZodDefault>; + external: z.ZodOptional>; + allowWrites: z.ZodDefault; + validation: z.ZodDefault>; + checkOnBoot: z.ZodDefault; + checkIntervalMs: z.ZodOptional; + }, z.core.$strict>>; + credentialsRef: z.ZodOptional; + queryTimeoutMs: z.ZodDefault; + }, z.core.$strict>>; + origin: z.ZodDefault>; + }, z.core.$strict>>>; + datasourceMapping: z.ZodOptional; + package: z.ZodOptional; + objectPattern: z.ZodOptional; + default: z.ZodOptional; + datasource: z.ZodString; + priority: z.ZodOptional; + }, z.core.$strip>>>; + translations: z.ZodOptional; + pluralLabel: z.ZodOptional; + description: z.ZodOptional; + fields: z.ZodOptional; + help: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + _views: z.ZodOptional; + description: z.ZodOptional; + emptyState: z.ZodOptional; + message: z.ZodOptional; + }, z.core.$strict>>; + bulkActions: z.ZodOptional; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + params: z.ZodOptional; + help: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + _actions: z.ZodOptional; + description: z.ZodOptional; + confirmText: z.ZodOptional; + successMessage: z.ZodOptional; + params: z.ZodOptional; + helpText: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + resultDialog: z.ZodOptional; + description: z.ZodOptional; + acknowledge: z.ZodOptional; + fields: z.ZodOptional>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + _sections: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + _tabs: z.ZodOptional; + }, z.core.$strict>>>; + _validations: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + apps: z.ZodOptional; + navigation: z.ZodOptional>>; + }, z.core.$strict>>>; + messages: z.ZodOptional>; + globalActions: z.ZodOptional; + description: z.ZodOptional; + confirmText: z.ZodOptional; + successMessage: z.ZodOptional; + params: z.ZodOptional; + helpText: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + resultDialog: z.ZodOptional; + description: z.ZodOptional; + acknowledge: z.ZodOptional; + fields: z.ZodOptional>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + dashboards: z.ZodOptional; + description: z.ZodOptional; + actions: z.ZodOptional; + }, z.core.$strict>>>; + widgets: z.ZodOptional; + description: z.ZodOptional; + subCaption: z.ZodOptional; + }, z.core.$strict>>>; + globalFilters: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + datasets: z.ZodOptional; + description: z.ZodOptional; + dimensions: z.ZodOptional; + }, z.core.$strict>>>; + measures: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + pages: z.ZodOptional; + description: z.ZodOptional; + title: z.ZodOptional; + subtitle: z.ZodOptional; + components: z.ZodOptional; + description: z.ZodOptional; + label: z.ZodOptional; + placeholder: z.ZodOptional; + emptyText: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + flows: z.ZodOptional; + screens: z.ZodOptional; + fields: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + settings: z.ZodOptional; + description: z.ZodOptional; + groups: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + keys: z.ZodOptional; + help: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + actions: z.ZodOptional; + confirmText: z.ZodOptional; + successMessage: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + metadataForms: z.ZodOptional; + description: z.ZodOptional; + sections: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + fields: z.ZodOptional; + helpText: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + settingsCommon: z.ZodOptional; + global: z.ZodOptional; + tenant: z.ZodOptional; + user: z.ZodOptional; + default: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + }, z.core.$strict>>>>; + i18n: z.ZodOptional; + fallbackLocale: z.ZodOptional; + }, z.core.$strict>>; + objects: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + pluralLabel: z.ZodOptional; + description: z.ZodOptional; + icon: z.ZodOptional; + isSystem: z.ZodDefault>; + managedBy: z.ZodOptional>; + ownership: z.ZodOptional>; + userActions: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + import: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + edit: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + delete: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + exportCsv: z.ZodOptional; + }, z.core.$strict>>; + systemFields: z.ZodOptional, z.ZodObject<{ + tenant: z.ZodOptional; + audit: z.ZodOptional; + }, z.core.$strict>]>>; + datasource: z.ZodDefault>; + external: z.ZodOptional; + remoteSchema: z.ZodOptional; + writable: z.ZodDefault; + columnMap: z.ZodOptional>; + introspectedAt: z.ZodOptional; + ignoreColumns: z.ZodOptional>; + }, z.core.$strict>>; + fields: z.ZodRecord>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + tags: "tags"; + email: "email"; + phone: "phone"; + user: "user"; + datetime: "datetime"; + location: "location"; + text: "text"; + url: "url"; + time: "time"; + formula: "formula"; + textarea: "textarea"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + vector: "vector"; + }>; + description: z.ZodOptional; + format: z.ZodOptional; + required: z.ZodDefault; + storage: z.ZodOptional; + }, z.core.$strict>>; + searchable: z.ZodDefault; + multiple: z.ZodDefault; + unique: z.ZodOptional, z.ZodLiteral<"organization">]>>; + defaultValue: z.ZodOptional; + maxLength: z.ZodOptional; + minLength: z.ZodOptional; + valueDomain: z.ZodOptional>; + rows: z.ZodOptional; + precision: z.ZodOptional; + scale: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + useGrouping: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + options: z.ZodOptional; + color: z.ZodOptional; + default: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + reference: z.ZodOptional; + referenceVia: z.ZodOptional; + deleteBehavior: z.ZodOptional>; + inlineEdit: z.ZodOptional]>>; + inlineTitle: z.ZodOptional; + inlineColumns: z.ZodOptional; + type: z.ZodOptional>; + width: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + prefix: z.ZodOptional; + step: z.ZodOptional; + reference: z.ZodOptional; + displayField: z.ZodOptional; + idField: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + defaultHidden: z.ZodOptional; + computed: z.ZodOptional; + expr: z.ZodOptional; + scale: z.ZodOptional; + autofill: z.ZodOptional; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + inlineAmountField: z.ZodOptional; + relatedList: z.ZodOptional]>>; + relatedListTitle: z.ZodOptional; + relatedListColumns: z.ZodOptional>; + relatedListFilter: z.ZodOptional>>; + displayField: z.ZodOptional; + descriptionField: z.ZodOptional; + lookupColumns: z.ZodOptional; + width: z.ZodOptional; + type: z.ZodOptional; + }, z.core.$strict>]>>>; + lookupPageSize: z.ZodOptional; + lookupFilters: z.ZodOptional; + value: z.ZodAny; + }, z.core.$strict>>>; + dependsOn: z.ZodOptional; + }, z.core.$strict>]>>>; + allowCreate: z.ZodOptional; + expression: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + returnType: z.ZodOptional>; + summaryOperations: z.ZodOptional; + relationshipField: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strict>>; + language: z.ZodOptional; + step: z.ZodOptional; + currencyConfig: z.ZodOptional; + currencyMode: z.ZodDefault>; + defaultCurrency: z.ZodDefault; + }, z.core.$strict>>; + dimensions: z.ZodOptional; + trackHistory: z.ZodOptional; + group: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + conditionalRequired: z.ZodOptional; + widget: z.ZodOptional; + hidden: z.ZodDefault; + internal: z.ZodOptional; + readonly: z.ZodDefault; + requiredPermissions: z.ZodOptional>; + maskingRule: z.ZodOptional, z.ZodObject<{ + keepHead: z.ZodNumber; + keepTail: z.ZodNumber; + }, z.core.$strict>]>>; + ackPlaintextMasking: z.ZodOptional; + system: z.ZodOptional; + sortable: z.ZodDefault>; + inlineHelpText: z.ZodOptional; + placeholder: z.ZodOptional; + autonumberFormat: z.ZodOptional; + externalId: z.ZodDefault; + }, z.core.$strict>>; + indexes: z.ZodOptional; + fields: z.ZodArray; + unique: z.ZodDefault, z.ZodLiteral<"organization">]>>>; + type: z.ZodOptional; + partial: z.ZodOptional; + }, z.core.$strict>>>; + fieldGroups: z.ZodOptional; + description: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + collapse: z.ZodDefault>>; + defaultExpanded: z.ZodOptional; + collapsible: z.ZodOptional; + collapsed: z.ZodOptional; + }, z.core.$strict>>>; + tenancy: z.ZodOptional; + organizationField: z.ZodOptional; + }, z.core.$strict>>; + access: z.ZodOptional>; + }, z.core.$strict>>; + requiredPermissions: z.ZodOptional, z.ZodObject<{ + read: z.ZodOptional>; + create: z.ZodOptional>; + update: z.ZodOptional>; + delete: z.ZodOptional>; + }, z.core.$strict>]>>; + lifecycle: z.ZodOptional; + retention: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + ttl: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + storage: z.ZodOptional; + shards: z.ZodNumber; + unit: z.ZodEnum<{ + month: "month"; + day: "day"; + week: "week"; + }>; + }, z.core.$strict>>; + archive: z.ZodOptional; + }, z.core.$strict>>; + reclaim: z.ZodOptional; + }, z.core.$strict>>; + fileAccessDelegate: z.ZodOptional; + validations: z.ZodOptional>>>; + activityMilestones: z.ZodOptional; + }, z.core.$strict>>>; + nameField: z.ZodOptional; + displayNameField: z.ZodOptional; + titleFormat: z.ZodOptional>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"template">; + }, z.core.$strip>]>>; + highlightFields: z.ZodOptional>; + stageField: z.ZodOptional]>>; + editMode: z.ZodOptional>; + listViews: z.ZodOptional>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + map: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + sort: z.ZodOptional; + }, z.core.$strict>>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + name: z.ZodOptional; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + inlineEdit: z.ZodOptional; + performance: z.ZodOptional; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + count: "count"; + none: "none"; + min: "min"; + max: "max"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + resizable: z.ZodOptional; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + compactToolbar: z.ZodOptional; + selection: z.ZodOptional>; + }, z.core.$strict>>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + pageName: z.ZodOptional; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + rowActions: z.ZodOptional>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + update: "update"; + delete: "delete"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + tags: "tags"; + email: "email"; + phone: "phone"; + user: "user"; + datetime: "datetime"; + location: "location"; + text: "text"; + url: "url"; + time: "time"; + formula: "formula"; + textarea: "textarea"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "csv" | "xlsx")[]; + }, ("json" | "csv" | "xlsx")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + enable: z.ZodOptional; + searchable: z.ZodDefault; + apiEnabled: z.ZodDefault; + apiMethods: z.ZodOptional>>; + files: z.ZodDefault; + feeds: z.ZodDefault; + activities: z.ZodDefault; + clone: z.ZodDefault; + }, z.core.$strict>>; + sharingModel: z.ZodOptional>; + externalSharingModel: z.ZodOptional>; + publicSharing: z.ZodOptional; + allowedAudiences: z.ZodOptional>>; + allowedPermissions: z.ZodOptional>>; + maxExpiryDays: z.ZodOptional; + redactFields: z.ZodOptional>; + eligibility: z.ZodOptional; + }, z.core.$strict>>; + actions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + objectName: z.ZodOptional; + icon: z.ZodOptional; + locations: z.ZodOptional>>; + component: z.ZodOptional>; + type: z.ZodDefault>; + target: z.ZodOptional; + openIn: z.ZodOptional>; + body: z.ZodOptional; + source: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + language: z.ZodLiteral<"js">; + source: z.ZodString; + capabilities: z.ZodDefault>>; + timeoutMs: z.ZodOptional; + memoryMb: z.ZodOptional; + }, z.core.$strict>], "language">>; + operation: z.ZodOptional>; + patch: z.ZodOptional>; + execution: z.ZodOptional>; + execute: z.ZodOptional; + params: z.ZodOptional; + field: z.ZodOptional; + objectOverride: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + required: z.ZodDefault>; + options: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + value: z.ZodString; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + placeholder: z.ZodOptional; + helpText: z.ZodOptional; + defaultValue: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + reference: z.ZodOptional; + defaultFromRow: z.ZodOptional; + carryOver: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiresFeature: z.ZodOptional>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">, { + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }>>>>; + variant: z.ZodOptional>; + order: z.ZodOptional; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + successMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + errorMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + refreshAfter: z.ZodDefault; + undoable: z.ZodOptional; + resultDialog: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + acknowledge: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiresFeature: z.ZodOptional>; + disabled: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiredPermissions: z.ZodOptional>; + shortcut: z.ZodOptional; + bulkEnabled: z.ZodOptional; + ai: z.ZodOptional; + description: z.ZodOptional; + category: z.ZodOptional>; + paramHints: z.ZodOptional; + enum: z.ZodOptional>>; + examples: z.ZodOptional>; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional>; + requiresConfirmation: z.ZodOptional; + }, z.core.$strict>>; + recordIdParam: z.ZodOptional; + recordIdField: z.ZodOptional; + bodyShape: z.ZodOptional, z.ZodObject<{ + wrap: z.ZodString; + }, z.core.$strict>]>>; + method: z.ZodOptional>; + bodyExtra: z.ZodOptional>; + mode: z.ZodOptional>; + opensInNewTab: z.ZodOptional; + newTabUrl: z.ZodOptional; + onSuccess: z.ZodOptional>; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">, { + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict> & { + parse(data: unknown, params?: Parameters<(data: unknown, params?: z.core.ParseContext) => { + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "user" | "none" | "org" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "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: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "modal" | "page" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | undefined; + hidden?: boolean | undefined; + sortable?: boolean | undefined; + resizable?: boolean | undefined; + wrap?: boolean | undefined; + type?: string | undefined; + pinned?: "left" | "right" | undefined; + summary?: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled" | { + type: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled"; + field?: string | undefined; + } | undefined; + prefix?: { + field: string; + type: "text" | "badge"; + } | undefined; + link?: boolean | undefined; + action?: string | undefined; + }[]; + description?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + name?: string | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + inlineEdit?: boolean | undefined; + performance?: undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "calendar" | "kanban" | "gantt" | "timeline" | "gallery" | "chart")[] | undefined; + } | undefined; + navigation?: { + mode: "split" | "none" | "modal" | "drawer" | "page" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + rowHeight?: "short" | "compact" | "medium" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + pageName?: undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + grouping?: { + fields: { + field: string; + order: "desc" | "asc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + rowActions?: string[] | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "update" | "delete"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + maxRecords?: number | undefined; + batchSize?: number | undefined; + }[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + exportOptions?: { + formats: ("json" | "csv" | "xlsx")[]; + } | { + formats?: ("json" | "csv" | "xlsx")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "modal" | "inline"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + responsive?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "create" | "update" | "delete" | "list" | "bulk")[] | undefined; + } | undefined; + sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("edit" | "view" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "full" | "none" | "no-overlay" | "no-delete"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }>[1]): { + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "user" | "none" | "org" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "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: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "modal" | "page" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | undefined; + hidden?: boolean | undefined; + sortable?: boolean | undefined; + resizable?: boolean | undefined; + wrap?: boolean | undefined; + type?: string | undefined; + pinned?: "left" | "right" | undefined; + summary?: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled" | { + type: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled"; + field?: string | undefined; + } | undefined; + prefix?: { + field: string; + type: "text" | "badge"; + } | undefined; + link?: boolean | undefined; + action?: string | undefined; + }[]; + description?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + name?: string | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + inlineEdit?: boolean | undefined; + performance?: undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "calendar" | "kanban" | "gantt" | "timeline" | "gallery" | "chart")[] | undefined; + } | undefined; + navigation?: { + mode: "split" | "none" | "modal" | "drawer" | "page" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + rowHeight?: "short" | "compact" | "medium" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + pageName?: undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + grouping?: { + fields: { + field: string; + order: "desc" | "asc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + rowActions?: string[] | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "update" | "delete"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + maxRecords?: number | undefined; + batchSize?: number | undefined; + }[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + exportOptions?: { + formats: ("json" | "csv" | "xlsx")[]; + } | { + formats?: ("json" | "csv" | "xlsx")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "modal" | "inline"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + responsive?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "create" | "update" | "delete" | "list" | "bulk")[] | undefined; + } | undefined; + sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("edit" | "view" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "full" | "none" | "no-overlay" | "no-delete"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }; + safeParse(data: unknown, params?: Parameters<(data: unknown, params?: z.core.ParseContext) => z.ZodSafeParseResult<{ + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "user" | "none" | "org" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "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: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "modal" | "page" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | undefined; + hidden?: boolean | undefined; + sortable?: boolean | undefined; + resizable?: boolean | undefined; + wrap?: boolean | undefined; + type?: string | undefined; + pinned?: "left" | "right" | undefined; + summary?: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled" | { + type: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled"; + field?: string | undefined; + } | undefined; + prefix?: { + field: string; + type: "text" | "badge"; + } | undefined; + link?: boolean | undefined; + action?: string | undefined; + }[]; + description?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + name?: string | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + inlineEdit?: boolean | undefined; + performance?: undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "calendar" | "kanban" | "gantt" | "timeline" | "gallery" | "chart")[] | undefined; + } | undefined; + navigation?: { + mode: "split" | "none" | "modal" | "drawer" | "page" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + rowHeight?: "short" | "compact" | "medium" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + pageName?: undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + grouping?: { + fields: { + field: string; + order: "desc" | "asc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + rowActions?: string[] | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "update" | "delete"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + maxRecords?: number | undefined; + batchSize?: number | undefined; + }[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + exportOptions?: { + formats: ("json" | "csv" | "xlsx")[]; + } | { + formats?: ("json" | "csv" | "xlsx")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "modal" | "inline"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + responsive?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "create" | "update" | "delete" | "list" | "bulk")[] | undefined; + } | undefined; + sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("edit" | "view" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "full" | "none" | "no-overlay" | "no-delete"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }>>[1]): z.ZodSafeParseResult<{ + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "user" | "none" | "org" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "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: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "modal" | "page" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | undefined; + hidden?: boolean | undefined; + sortable?: boolean | undefined; + resizable?: boolean | undefined; + wrap?: boolean | undefined; + type?: string | undefined; + pinned?: "left" | "right" | undefined; + summary?: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled" | { + type: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled"; + field?: string | undefined; + } | undefined; + prefix?: { + field: string; + type: "text" | "badge"; + } | undefined; + link?: boolean | undefined; + action?: string | undefined; + }[]; + description?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + name?: string | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + inlineEdit?: boolean | undefined; + performance?: undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "calendar" | "kanban" | "gantt" | "timeline" | "gallery" | "chart")[] | undefined; + } | undefined; + navigation?: { + mode: "split" | "none" | "modal" | "drawer" | "page" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + rowHeight?: "short" | "compact" | "medium" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + pageName?: undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + grouping?: { + fields: { + field: string; + order: "desc" | "asc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + rowActions?: string[] | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "update" | "delete"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + maxRecords?: number | undefined; + batchSize?: number | undefined; + }[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + exportOptions?: { + formats: ("json" | "csv" | "xlsx")[]; + } | { + formats?: ("json" | "csv" | "xlsx")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "modal" | "inline"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + responsive?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "create" | "update" | "delete" | "list" | "bulk")[] | undefined; + } | undefined; + sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("edit" | "view" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "full" | "none" | "no-overlay" | "no-delete"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }>; + create: >; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + pluralLabel: z.ZodOptional; + description: z.ZodOptional; + icon: z.ZodOptional; + isSystem: z.ZodDefault>; + managedBy: z.ZodOptional>; + ownership: z.ZodOptional>; + userActions: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + import: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + edit: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + delete: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + exportCsv: z.ZodOptional; + }, z.core.$strict>>; + systemFields: z.ZodOptional, z.ZodObject<{ + tenant: z.ZodOptional; + audit: z.ZodOptional; + }, z.core.$strict>]>>; + datasource: z.ZodDefault>; + external: z.ZodOptional; + remoteSchema: z.ZodOptional; + writable: z.ZodDefault; + columnMap: z.ZodOptional>; + introspectedAt: z.ZodOptional; + ignoreColumns: z.ZodOptional>; + }, z.core.$strict>>; + fields: z.ZodRecord>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + tags: "tags"; + email: "email"; + phone: "phone"; + user: "user"; + datetime: "datetime"; + location: "location"; + text: "text"; + url: "url"; + time: "time"; + formula: "formula"; + textarea: "textarea"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + vector: "vector"; + }>; + description: z.ZodOptional; + format: z.ZodOptional; + required: z.ZodDefault; + storage: z.ZodOptional; + }, z.core.$strict>>; + searchable: z.ZodDefault; + multiple: z.ZodDefault; + unique: z.ZodOptional, z.ZodLiteral<"organization">]>>; + defaultValue: z.ZodOptional; + maxLength: z.ZodOptional; + minLength: z.ZodOptional; + valueDomain: z.ZodOptional>; + rows: z.ZodOptional; + precision: z.ZodOptional; + scale: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + useGrouping: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + options: z.ZodOptional; + color: z.ZodOptional; + default: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + reference: z.ZodOptional; + referenceVia: z.ZodOptional; + deleteBehavior: z.ZodOptional>; + inlineEdit: z.ZodOptional]>>; + inlineTitle: z.ZodOptional; + inlineColumns: z.ZodOptional; + type: z.ZodOptional>; + width: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + prefix: z.ZodOptional; + step: z.ZodOptional; + reference: z.ZodOptional; + displayField: z.ZodOptional; + idField: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + defaultHidden: z.ZodOptional; + computed: z.ZodOptional; + expr: z.ZodOptional; + scale: z.ZodOptional; + autofill: z.ZodOptional; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + inlineAmountField: z.ZodOptional; + relatedList: z.ZodOptional]>>; + relatedListTitle: z.ZodOptional; + relatedListColumns: z.ZodOptional>; + relatedListFilter: z.ZodOptional>>; + displayField: z.ZodOptional; + descriptionField: z.ZodOptional; + lookupColumns: z.ZodOptional; + width: z.ZodOptional; + type: z.ZodOptional; + }, z.core.$strict>]>>>; + lookupPageSize: z.ZodOptional; + lookupFilters: z.ZodOptional; + value: z.ZodAny; + }, z.core.$strict>>>; + dependsOn: z.ZodOptional; + }, z.core.$strict>]>>>; + allowCreate: z.ZodOptional; + expression: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + returnType: z.ZodOptional>; + summaryOperations: z.ZodOptional; + relationshipField: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strict>>; + language: z.ZodOptional; + step: z.ZodOptional; + currencyConfig: z.ZodOptional; + currencyMode: z.ZodDefault>; + defaultCurrency: z.ZodDefault; + }, z.core.$strict>>; + dimensions: z.ZodOptional; + trackHistory: z.ZodOptional; + group: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + conditionalRequired: z.ZodOptional; + widget: z.ZodOptional; + hidden: z.ZodDefault; + internal: z.ZodOptional; + readonly: z.ZodDefault; + requiredPermissions: z.ZodOptional>; + maskingRule: z.ZodOptional, z.ZodObject<{ + keepHead: z.ZodNumber; + keepTail: z.ZodNumber; + }, z.core.$strict>]>>; + ackPlaintextMasking: z.ZodOptional; + system: z.ZodOptional; + sortable: z.ZodDefault>; + inlineHelpText: z.ZodOptional; + placeholder: z.ZodOptional; + autonumberFormat: z.ZodOptional; + externalId: z.ZodDefault; + }, z.core.$strict>>; + indexes: z.ZodOptional; + fields: z.ZodArray; + unique: z.ZodDefault, z.ZodLiteral<"organization">]>>>; + type: z.ZodOptional; + partial: z.ZodOptional; + }, z.core.$strict>>>; + fieldGroups: z.ZodOptional; + description: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + collapse: z.ZodDefault>>; + defaultExpanded: z.ZodOptional; + collapsible: z.ZodOptional; + collapsed: z.ZodOptional; + }, z.core.$strict>>>; + tenancy: z.ZodOptional; + organizationField: z.ZodOptional; + }, z.core.$strict>>; + access: z.ZodOptional>; + }, z.core.$strict>>; + requiredPermissions: z.ZodOptional, z.ZodObject<{ + read: z.ZodOptional>; + create: z.ZodOptional>; + update: z.ZodOptional>; + delete: z.ZodOptional>; + }, z.core.$strict>]>>; + lifecycle: z.ZodOptional; + retention: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + ttl: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + storage: z.ZodOptional; + shards: z.ZodNumber; + unit: z.ZodEnum<{ + month: "month"; + day: "day"; + week: "week"; + }>; + }, z.core.$strict>>; + archive: z.ZodOptional; + }, z.core.$strict>>; + reclaim: z.ZodOptional; + }, z.core.$strict>>; + fileAccessDelegate: z.ZodOptional; + validations: z.ZodOptional>>>; + activityMilestones: z.ZodOptional; + }, z.core.$strict>>>; + nameField: z.ZodOptional; + displayNameField: z.ZodOptional; + titleFormat: z.ZodOptional>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"template">; + }, z.core.$strip>]>>; + highlightFields: z.ZodOptional>; + stageField: z.ZodOptional]>>; + editMode: z.ZodOptional>; + listViews: z.ZodOptional>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + map: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + sort: z.ZodOptional; + }, z.core.$strict>>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + name: z.ZodOptional; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + inlineEdit: z.ZodOptional; + performance: z.ZodOptional; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + count: "count"; + none: "none"; + min: "min"; + max: "max"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + resizable: z.ZodOptional; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + compactToolbar: z.ZodOptional; + selection: z.ZodOptional>; + }, z.core.$strict>>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + pageName: z.ZodOptional; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + rowActions: z.ZodOptional>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + update: "update"; + delete: "delete"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + tags: "tags"; + email: "email"; + phone: "phone"; + user: "user"; + datetime: "datetime"; + location: "location"; + text: "text"; + url: "url"; + time: "time"; + formula: "formula"; + textarea: "textarea"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "csv" | "xlsx")[]; + }, ("json" | "csv" | "xlsx")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + enable: z.ZodOptional; + searchable: z.ZodDefault; + apiEnabled: z.ZodDefault; + apiMethods: z.ZodOptional>>; + files: z.ZodDefault; + feeds: z.ZodDefault; + activities: z.ZodDefault; + clone: z.ZodDefault; + }, z.core.$strict>>; + sharingModel: z.ZodOptional>; + externalSharingModel: z.ZodOptional>; + publicSharing: z.ZodOptional; + allowedAudiences: z.ZodOptional>>; + allowedPermissions: z.ZodOptional>>; + maxExpiryDays: z.ZodOptional; + redactFields: z.ZodOptional>; + eligibility: z.ZodOptional; + }, z.core.$strict>>; + actions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + objectName: z.ZodOptional; + icon: z.ZodOptional; + locations: z.ZodOptional>>; + component: z.ZodOptional>; + type: z.ZodDefault>; + target: z.ZodOptional; + openIn: z.ZodOptional>; + body: z.ZodOptional; + source: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + language: z.ZodLiteral<"js">; + source: z.ZodString; + capabilities: z.ZodDefault>>; + timeoutMs: z.ZodOptional; + memoryMb: z.ZodOptional; + }, z.core.$strict>], "language">>; + operation: z.ZodOptional>; + patch: z.ZodOptional>; + execution: z.ZodOptional>; + execute: z.ZodOptional; + params: z.ZodOptional; + field: z.ZodOptional; + objectOverride: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + required: z.ZodDefault>; + options: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + value: z.ZodString; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + placeholder: z.ZodOptional; + helpText: z.ZodOptional; + defaultValue: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + reference: z.ZodOptional; + defaultFromRow: z.ZodOptional; + carryOver: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiresFeature: z.ZodOptional>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">, { + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }>>>>; + variant: z.ZodOptional>; + order: z.ZodOptional; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + successMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + errorMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + refreshAfter: z.ZodDefault; + undoable: z.ZodOptional; + resultDialog: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + acknowledge: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiresFeature: z.ZodOptional>; + disabled: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiredPermissions: z.ZodOptional>; + shortcut: z.ZodOptional; + bulkEnabled: z.ZodOptional; + ai: z.ZodOptional; + description: z.ZodOptional; + category: z.ZodOptional>; + paramHints: z.ZodOptional; + enum: z.ZodOptional>>; + examples: z.ZodOptional>; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional>; + requiresConfirmation: z.ZodOptional; + }, z.core.$strict>>; + recordIdParam: z.ZodOptional; + recordIdField: z.ZodOptional; + bodyShape: z.ZodOptional, z.ZodObject<{ + wrap: z.ZodString; + }, z.core.$strict>]>>; + method: z.ZodOptional>; + bodyExtra: z.ZodOptional>; + mode: z.ZodOptional>; + opensInNewTab: z.ZodOptional; + newTabUrl: z.ZodOptional; + onSuccess: z.ZodOptional>; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">, { + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>(config: T & Record, never> & (T extends { + actions: infer As extends readonly unknown[]; + } ? { + actions: { [I in keyof As]: As[I] extends infer T_1 ? T_1 extends As[I] ? T_1 extends { + params: infer Ps extends readonly unknown[]; + } ? T_1 & { + params: { [I_1 in keyof Ps]: Ps[I_1] & Record, never>; }; + } : T_1 : never : never; }; + } : unknown)) => Omit & Pick; + }>>; + objectExtensions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + tags: "tags"; + email: "email"; + phone: "phone"; + user: "user"; + datetime: "datetime"; + location: "location"; + text: "text"; + url: "url"; + time: "time"; + formula: "formula"; + textarea: "textarea"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + vector: "vector"; + }>; + description: z.ZodOptional; + format: z.ZodOptional; + required: z.ZodDefault; + storage: z.ZodOptional; + }, z.core.$strict>>; + searchable: z.ZodDefault; + multiple: z.ZodDefault; + unique: z.ZodOptional, z.ZodLiteral<"organization">]>>; + defaultValue: z.ZodOptional; + maxLength: z.ZodOptional; + minLength: z.ZodOptional; + valueDomain: z.ZodOptional>; + rows: z.ZodOptional; + precision: z.ZodOptional; + scale: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + useGrouping: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + options: z.ZodOptional; + color: z.ZodOptional; + default: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + reference: z.ZodOptional; + referenceVia: z.ZodOptional; + deleteBehavior: z.ZodOptional>; + inlineEdit: z.ZodOptional]>>; + inlineTitle: z.ZodOptional; + inlineColumns: z.ZodOptional; + type: z.ZodOptional>; + width: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + prefix: z.ZodOptional; + step: z.ZodOptional; + reference: z.ZodOptional; + displayField: z.ZodOptional; + idField: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + defaultHidden: z.ZodOptional; + computed: z.ZodOptional; + expr: z.ZodOptional; + scale: z.ZodOptional; + autofill: z.ZodOptional; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + inlineAmountField: z.ZodOptional; + relatedList: z.ZodOptional]>>; + relatedListTitle: z.ZodOptional; + relatedListColumns: z.ZodOptional>; + relatedListFilter: z.ZodOptional>>; + displayField: z.ZodOptional; + descriptionField: z.ZodOptional; + lookupColumns: z.ZodOptional; + width: z.ZodOptional; + type: z.ZodOptional; + }, z.core.$strict>]>>>; + lookupPageSize: z.ZodOptional; + lookupFilters: z.ZodOptional; + value: z.ZodAny; + }, z.core.$strict>>>; + dependsOn: z.ZodOptional; + }, z.core.$strict>]>>>; + allowCreate: z.ZodOptional; + expression: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + returnType: z.ZodOptional>; + summaryOperations: z.ZodOptional; + relationshipField: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strict>>; + language: z.ZodOptional; + step: z.ZodOptional; + currencyConfig: z.ZodOptional; + currencyMode: z.ZodDefault>; + defaultCurrency: z.ZodDefault; + }, z.core.$strict>>; + dimensions: z.ZodOptional; + trackHistory: z.ZodOptional; + group: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + conditionalRequired: z.ZodOptional; + widget: z.ZodOptional; + hidden: z.ZodDefault; + internal: z.ZodOptional; + readonly: z.ZodDefault; + requiredPermissions: z.ZodOptional>; + maskingRule: z.ZodOptional, z.ZodObject<{ + keepHead: z.ZodNumber; + keepTail: z.ZodNumber; + }, z.core.$strict>]>>; + ackPlaintextMasking: z.ZodOptional; + system: z.ZodOptional; + sortable: z.ZodDefault>; + inlineHelpText: z.ZodOptional; + placeholder: z.ZodOptional; + autonumberFormat: z.ZodOptional; + externalId: z.ZodDefault; + }, z.core.$strict>>>; + label: z.ZodOptional; + pluralLabel: z.ZodOptional; + description: z.ZodOptional; + validations: z.ZodOptional>>>; + indexes: z.ZodOptional; + fields: z.ZodArray; + unique: z.ZodDefault, z.ZodLiteral<"organization">]>>>; + type: z.ZodOptional; + partial: z.ZodOptional; + }, z.core.$strict>>>; + priority: z.ZodDefault; + }, z.core.$strict>>>; + apps: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + version: z.ZodOptional; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + branding: z.ZodOptional; + accentColor: z.ZodOptional; + logo: z.ZodOptional; + favicon: z.ZodOptional; + }, z.core.$strict>>; + active: z.ZodDefault>; + isDefault: z.ZodDefault>; + hidden: z.ZodOptional; + _unpublished: z.ZodOptional; + navigation: z.ZodOptional>>>; + areas: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + icon: z.ZodOptional; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + navigation: z.ZodArray>>; + }, z.core.$strict>>>; + contextSelectors: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + icon: z.ZodOptional; + optionsSource: z.ZodObject<{ + endpoint: z.ZodString; + valueKey: z.ZodDefault; + labelKey: z.ZodDefault; + filter: z.ZodOptional>; + value: z.ZodUnion]>; + }, z.core.$strict>>>; + }, z.core.$strict>; + allValue: z.ZodDefault; + persist: z.ZodDefault>; + }, z.core.$strict>>>; + homePageId: z.ZodOptional; + requiredPermissions: z.ZodOptional>; + objects: z.ZodOptional; + apis: z.ZodOptional; + sharing: z.ZodOptional; + embed: z.ZodOptional; + mobileNavigation: z.ZodOptional; + defaultAgent: z.ZodOptional; + aria: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + views: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + object: z.ZodOptional; + list: z.ZodOptional>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + map: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + sort: z.ZodOptional; + }, z.core.$strict>>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + name: z.ZodOptional; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + inlineEdit: z.ZodOptional; + performance: z.ZodOptional; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + count: "count"; + none: "none"; + min: "min"; + max: "max"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + resizable: z.ZodOptional; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + compactToolbar: z.ZodOptional; + selection: z.ZodOptional>; + }, z.core.$strict>>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + pageName: z.ZodOptional; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + rowActions: z.ZodOptional>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + update: "update"; + delete: "delete"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + tags: "tags"; + email: "email"; + phone: "phone"; + user: "user"; + datetime: "datetime"; + location: "location"; + text: "text"; + url: "url"; + time: "time"; + formula: "formula"; + textarea: "textarea"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "csv" | "xlsx")[]; + }, ("json" | "csv" | "xlsx")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + }, z.core.$strict>>; + form: z.ZodOptional>; + layout: z.ZodOptional>; + columns: z.ZodOptional; + title: z.ZodOptional; + description: z.ZodOptional; + defaultTab: z.ZodOptional; + tabPosition: z.ZodOptional>; + allowSkip: z.ZodOptional; + showStepIndicator: z.ZodOptional; + splitDirection: z.ZodOptional>; + splitSize: z.ZodOptional; + splitResizable: z.ZodOptional; + drawerSide: z.ZodOptional>; + drawerWidth: z.ZodOptional; + modalSize: z.ZodOptional>; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + sections: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional; + collapsible: z.ZodDefault; + collapsed: z.ZodDefault; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibleOn: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + columns: z.ZodPipe, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>, z.ZodTransform<1 | 2 | 4 | 3, "1" | 1 | 2 | "2" | "3" | 4 | 3 | "4">>; + pane: z.ZodOptional>; + group: z.ZodOptional; + fields: z.ZodOptional>]>>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">, { + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }>>>>; + groups: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional; + collapsible: z.ZodDefault; + collapsed: z.ZodDefault; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibleOn: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + columns: z.ZodPipe, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>, z.ZodTransform<1 | 2 | 4 | 3, "1" | 1 | 2 | "2" | "3" | 4 | 3 | "4">>; + pane: z.ZodOptional>; + group: z.ZodOptional; + fields: z.ZodOptional>]>>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">, { + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }>>>>; + subforms: z.ZodOptional; + columns: z.ZodOptional>; + amountField: z.ZodOptional; + totalField: z.ZodOptional; + title: z.ZodOptional; + addLabel: z.ZodOptional; + minRows: z.ZodOptional; + maxRows: z.ZodOptional; + }, z.core.$strict>>>; + defaultSort: z.ZodOptional; + sharing: z.ZodOptional; + publicLink: z.ZodOptional; + password: z.ZodOptional; + allowedDomains: z.ZodOptional>; + expiresAt: z.ZodOptional; + allowAnonymous: z.ZodDefault>; + }, z.core.$strict>>; + submitBehavior: z.ZodOptional; + title: z.ZodOptional; + message: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"redirect">; + url: z.ZodString; + delayMs: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"continue">; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"next-record">; + }, z.core.$strict>], "kind">>; + buttons: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + cancel: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + reset: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + }, z.core.$strict>>; + defaults: z.ZodOptional>; + aria: z.ZodOptional; + }, z.core.$strict>>; + listViews: z.ZodOptional>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + map: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + sort: z.ZodOptional; + }, z.core.$strict>>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + name: z.ZodOptional; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + inlineEdit: z.ZodOptional; + performance: z.ZodOptional; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + count: "count"; + none: "none"; + min: "min"; + max: "max"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + resizable: z.ZodOptional; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + compactToolbar: z.ZodOptional; + selection: z.ZodOptional>; + }, z.core.$strict>>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + pageName: z.ZodOptional; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + rowActions: z.ZodOptional>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + update: "update"; + delete: "delete"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + tags: "tags"; + email: "email"; + phone: "phone"; + user: "user"; + datetime: "datetime"; + location: "location"; + text: "text"; + url: "url"; + time: "time"; + formula: "formula"; + textarea: "textarea"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "csv" | "xlsx")[]; + }, ("json" | "csv" | "xlsx")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + formViews: z.ZodOptional>; + layout: z.ZodOptional>; + columns: z.ZodOptional; + title: z.ZodOptional; + description: z.ZodOptional; + defaultTab: z.ZodOptional; + tabPosition: z.ZodOptional>; + allowSkip: z.ZodOptional; + showStepIndicator: z.ZodOptional; + splitDirection: z.ZodOptional>; + splitSize: z.ZodOptional; + splitResizable: z.ZodOptional; + drawerSide: z.ZodOptional>; + drawerWidth: z.ZodOptional; + modalSize: z.ZodOptional>; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + sections: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional; + collapsible: z.ZodDefault; + collapsed: z.ZodDefault; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibleOn: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + columns: z.ZodPipe, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>, z.ZodTransform<1 | 2 | 4 | 3, "1" | 1 | 2 | "2" | "3" | 4 | 3 | "4">>; + pane: z.ZodOptional>; + group: z.ZodOptional; + fields: z.ZodOptional>]>>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">, { + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }>>>>; + groups: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional; + collapsible: z.ZodDefault; + collapsed: z.ZodDefault; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibleOn: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + columns: z.ZodPipe, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>, z.ZodTransform<1 | 2 | 4 | 3, "1" | 1 | 2 | "2" | "3" | 4 | 3 | "4">>; + pane: z.ZodOptional>; + group: z.ZodOptional; + fields: z.ZodOptional>]>>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">, { + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }>>>>; + subforms: z.ZodOptional; + columns: z.ZodOptional>; + amountField: z.ZodOptional; + totalField: z.ZodOptional; + title: z.ZodOptional; + addLabel: z.ZodOptional; + minRows: z.ZodOptional; + maxRows: z.ZodOptional; + }, z.core.$strict>>>; + defaultSort: z.ZodOptional; + sharing: z.ZodOptional; + publicLink: z.ZodOptional; + password: z.ZodOptional; + allowedDomains: z.ZodOptional>; + expiresAt: z.ZodOptional; + allowAnonymous: z.ZodDefault>; + }, z.core.$strict>>; + submitBehavior: z.ZodOptional; + title: z.ZodOptional; + message: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"redirect">; + url: z.ZodString; + delayMs: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"continue">; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"next-record">; + }, z.core.$strict>], "kind">>; + buttons: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + cancel: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + reset: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + }, z.core.$strict>>; + defaults: z.ZodOptional>; + aria: z.ZodOptional; + }, z.core.$strict>>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + viewItems: z.ZodOptional; + pages: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + type: z.ZodDefault>; + variables: z.ZodOptional>; + defaultValue: z.ZodOptional; + source: z.ZodOptional; + }, z.core.$strict>>>; + object: z.ZodOptional; + template: z.ZodDefault; + regions: z.ZodDefault>; + components: z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>>; + }, z.core.$strict>>>>; + isDefault: z.ZodDefault; + assignedProfiles: z.ZodOptional; + interfaceConfig: z.ZodOptional; + columns: z.ZodOptional, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + count: "count"; + none: "none"; + min: "min"; + max: "max"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + filterBy: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + levels: z.ZodOptional; + sourceView: z.ZodOptional; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + showAllRecords: z.ZodOptional; + allowAddTab: z.ZodOptional; + }, z.core.$strict>>; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + buttons: z.ZodOptional>; + recordAction: z.ZodOptional>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + kind: z.ZodDefault>; + slots: z.ZodOptional, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>, z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>]>>; + actions: z.ZodOptional, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>, z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>]>>; + alerts: z.ZodOptional, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>, z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>]>>; + highlights: z.ZodOptional, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>, z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>]>>; + details: z.ZodOptional, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>, z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>]>>; + tabs: z.ZodOptional, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>, z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>]>>; + discussion: z.ZodOptional, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>, z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>]>>; + }, z.core.$strict>>; + source: z.ZodOptional; + requires: z.ZodOptional>; + }, z.core.$strict>>>; + dashboards: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + header: z.ZodOptional; + showDescription: z.ZodDefault; + actions: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + actionUrl: z.ZodString; + actionType: z.ZodOptional>; + icon: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>; + widgets: z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodDefault>; + chartConfig: z.ZodOptional; + title: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + subtitle: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + xAxis: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + stepSize: z.ZodOptional; + showGridLines: z.ZodDefault; + position: z.ZodOptional>; + logarithmic: z.ZodDefault; + }, z.core.$strict>>; + yAxis: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + stepSize: z.ZodOptional; + showGridLines: z.ZodDefault; + position: z.ZodOptional>; + logarithmic: z.ZodDefault; + }, z.core.$strict>>>; + series: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + color: z.ZodOptional; + stack: z.ZodOptional; + yAxis: z.ZodDefault>; + variant: z.ZodOptional>>; + dashArray: z.ZodOptional; + opacity: z.ZodOptional; + }, z.core.$strict>>>; + colors: z.ZodOptional, z.ZodRecord]>>; + height: z.ZodOptional; + showLegend: z.ZodDefault; + showDataLabels: z.ZodDefault; + annotations: z.ZodOptional>; + axis: z.ZodDefault>; + value: z.ZodUnion; + endValue: z.ZodOptional>; + color: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + style: z.ZodDefault>; + }, z.core.$strict>>>; + interaction: z.ZodOptional; + brush: z.ZodDefault; + }, z.core.$strict>>; + aria: z.ZodOptional; + }, z.core.$strict>>; + colorVariant: z.ZodOptional>; + requiresObject: z.ZodOptional; + requiresService: z.ZodOptional; + actionUrl: z.ZodOptional; + actionType: z.ZodOptional; + actionIcon: z.ZodOptional; + filter: z.ZodOptional>>; + compareTo: z.ZodOptional; + dimension: z.ZodOptional; + }, z.core.$strict>>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + layout: z.ZodOptional>; + options: z.ZodOptional>; + sortBy: z.ZodOptional; + sortOrder: z.ZodOptional>; + limit: z.ZodOptional; + stageOrder: z.ZodOptional>>; + }, z.core.$loose>>; + filterBindings: z.ZodOptional]>>>; + suppressWarnings: z.ZodOptional>; + responsive: z.ZodOptional; + aria: z.ZodOptional; + }, z.core.$strict>>; + columns: z.ZodOptional; + gap: z.ZodOptional; + refreshIntervalSeconds: z.ZodOptional; + refreshInterval: z.ZodOptional; + dateRange: z.ZodOptional; + defaultRange: z.ZodDefault>; + allowCustomRange: z.ZodDefault; + }, z.core.$strict>>; + globalFilters: z.ZodOptional; + field: z.ZodString; + object: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + }, z.core.$strict>>>; + optionsFrom: z.ZodOptional>>; + }, z.core.$strict>>; + defaultValue: z.ZodOptional>; + scope: z.ZodDefault>; + targetWidgets: z.ZodOptional>; + }, z.core.$strict>>>; + aria: z.ZodOptional; + performance: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + reports: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodDefault>; + dataset: z.ZodOptional; + rows: z.ZodOptional>; + columns: z.ZodOptional>; + values: z.ZodOptional>; + runtimeFilter: z.ZodOptional>>; + order: z.ZodOptional>; + }, z.core.$strict>>>; + drilldown: z.ZodDefault; + chart: z.ZodOptional; + title: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + subtitle: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + series: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + color: z.ZodOptional; + stack: z.ZodOptional; + yAxis: z.ZodDefault>; + variant: z.ZodOptional>>; + dashArray: z.ZodOptional; + opacity: z.ZodOptional; + }, z.core.$strict>>>; + colors: z.ZodOptional, z.ZodRecord]>>; + height: z.ZodOptional; + showLegend: z.ZodDefault; + showDataLabels: z.ZodDefault; + annotations: z.ZodOptional>; + axis: z.ZodDefault>; + value: z.ZodUnion; + endValue: z.ZodOptional>; + color: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + style: z.ZodDefault>; + }, z.core.$strict>>>; + interaction: z.ZodOptional; + brush: z.ZodDefault; + }, z.core.$strict>>; + aria: z.ZodOptional; + xAxis: z.ZodString; + yAxis: z.ZodString; + }, z.core.$strict>>; + blocks: z.ZodOptional>>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + datasets: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + object: z.ZodString; + include: z.ZodOptional>; + filter: z.ZodOptional>>; + dimensions: z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + field: z.ZodString; + type: z.ZodOptional>; + dateGranularity: z.ZodOptional>; + }, z.core.$strict>>; + measures: z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + aggregate: z.ZodOptional>; + field: z.ZodOptional; + filter: z.ZodOptional>>; + format: z.ZodOptional; + currency: z.ZodOptional; + derived: z.ZodOptional; + of: z.ZodArray; + }, z.core.$strict>>; + }, z.core.$strict>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + actions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + objectName: z.ZodOptional; + icon: z.ZodOptional; + locations: z.ZodOptional>>; + component: z.ZodOptional>; + type: z.ZodDefault>; + target: z.ZodOptional; + openIn: z.ZodOptional>; + body: z.ZodOptional; + source: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + language: z.ZodLiteral<"js">; + source: z.ZodString; + capabilities: z.ZodDefault>>; + timeoutMs: z.ZodOptional; + memoryMb: z.ZodOptional; + }, z.core.$strict>], "language">>; + operation: z.ZodOptional>; + patch: z.ZodOptional>; + execution: z.ZodOptional>; + execute: z.ZodOptional; + params: z.ZodOptional; + field: z.ZodOptional; + objectOverride: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + required: z.ZodDefault>; + options: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + value: z.ZodString; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + placeholder: z.ZodOptional; + helpText: z.ZodOptional; + defaultValue: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + reference: z.ZodOptional; + defaultFromRow: z.ZodOptional; + carryOver: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiresFeature: z.ZodOptional>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">, { + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }>>>>; + variant: z.ZodOptional>; + order: z.ZodOptional; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + successMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + errorMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + refreshAfter: z.ZodDefault; + undoable: z.ZodOptional; + resultDialog: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + acknowledge: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiresFeature: z.ZodOptional>; + disabled: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiredPermissions: z.ZodOptional>; + shortcut: z.ZodOptional; + bulkEnabled: z.ZodOptional; + ai: z.ZodOptional; + description: z.ZodOptional; + category: z.ZodOptional>; + paramHints: z.ZodOptional; + enum: z.ZodOptional>>; + examples: z.ZodOptional>; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional>; + requiresConfirmation: z.ZodOptional; + }, z.core.$strict>>; + recordIdParam: z.ZodOptional; + recordIdField: z.ZodOptional; + bodyShape: z.ZodOptional, z.ZodObject<{ + wrap: z.ZodString; + }, z.core.$strict>]>>; + method: z.ZodOptional>; + bodyExtra: z.ZodOptional>; + mode: z.ZodOptional>; + opensInNewTab: z.ZodOptional; + newTabUrl: z.ZodOptional; + onSuccess: z.ZodOptional>; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">, { + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>>; + flows: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + successMessage: z.ZodOptional; + errorMessage: z.ZodOptional; + version: z.ZodDefault; + status: z.ZodDefault>; + template: z.ZodOptional; + type: z.ZodEnum<{ + api: "api"; + screen: "screen"; + autolaunched: "autolaunched"; + record_change: "record_change"; + schedule: "schedule"; + }>; + variables: z.ZodOptional; + isOutput: z.ZodDefault; + defaultValue: z.ZodOptional; + }, z.core.$strict>>>; + nodes: z.ZodArray>; + connectorConfig: z.ZodOptional>; + }, z.core.$strict>>; + position: z.ZodOptional>; + timeoutMs: z.ZodOptional; + inputSchema: z.ZodOptional; + required: z.ZodDefault; + description: z.ZodOptional; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional; + waitEventConfig: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + timeoutMs: z.ZodOptional; + onTimeout: z.ZodOptional; + }, z.core.$strict>>; + boundaryConfig: z.ZodOptional; + interrupting: z.ZodDefault; + errorCode: z.ZodOptional; + timerDuration: z.ZodOptional; + signalName: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform<{ + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "manual" | "condition" | "timer" | "signal" | "webhook"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "cancel" | "timer" | "signal"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }, { + id: string; + type: string; + label: string; + config?: Record | undefined; + connectorConfig?: { + connectorId: string; + actionId: string; + input?: Record | undefined; + } | undefined; + position?: { + x: number; + y: number; + } | undefined; + timeoutMs?: number | undefined; + inputSchema?: Record | undefined; + outputSchema?: undefined; + waitEventConfig?: { + eventType: "manual" | "condition" | "timer" | "signal" | "webhook"; + timerDuration?: string | undefined; + signalName?: string | undefined; + timeoutMs?: undefined; + onTimeout?: undefined; + } | undefined; + boundaryConfig?: { + attachedToNodeId: string; + eventType: "error" | "cancel" | "timer" | "signal"; + interrupting: boolean; + errorCode?: string | undefined; + timerDuration?: string | undefined; + signalName?: string | undefined; + } | undefined; + }>>>; + edges: z.ZodArray>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + source: z.ZodString; + }, z.core.$strip>]>>; + type: z.ZodDefault>; + label: z.ZodOptional; + isDefault: z.ZodDefault; + }, z.core.$strict>>; + active: z.ZodOptional; + runAs: z.ZodDefault>; + errorHandling: z.ZodOptional; + fallbackNodeId: z.ZodOptional; + backoffMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; + maxRetryDelayMs: z.ZodDefault; + jitter: z.ZodDefault; + retryDelayMs: z.ZodOptional; + strategy: z.ZodDefault>; + }, z.core.$strict>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + jobs: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{ + type: z.ZodLiteral<"cron">; + expression: z.ZodUnion>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"cron">; + }, z.core.$strip>]>; + timezone: z.ZodDefault>; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"interval">; + intervalMs: z.ZodNumber; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"once">; + at: z.ZodString; + }, z.core.$strip>], "type">; + handler: z.ZodString; + retryPolicy: z.ZodOptional; + backoffMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; + maxRetryDelayMs: z.ZodDefault; + jitter: z.ZodDefault; + retryDelayMs: z.ZodOptional; + }, z.core.$strip>>; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + enabled: z.ZodDefault; + }, z.core.$strict>>>; + emailTemplates: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + category: z.ZodDefault>; + locale: z.ZodDefault; + subject: z.ZodString; + bodyHtml: z.ZodString; + bodyText: z.ZodOptional; + variables: z.ZodDefault>; + required: z.ZodDefault; + description: z.ZodOptional; + }, z.core.$strip>>>; + fromOverride: z.ZodOptional; + address: z.ZodString; + }, z.core.$strip>>; + replyTo: z.ZodOptional; + active: z.ZodDefault; + isSystem: z.ZodDefault; + description: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + docs: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + content: z.ZodString; + order: z.ZodOptional; + group: z.ZodOptional; + tags: z.ZodOptional>; + translations: z.ZodOptional; + description: z.ZodOptional; + content: z.ZodString; + }, z.core.$strip>>>; + }, z.core.$strict>>>; + books: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + slug: z.ZodOptional; + icon: z.ZodOptional; + order: z.ZodOptional; + audience: z.ZodOptional, z.ZodLiteral<"public">, z.ZodObject<{ + permissionSet: z.ZodString; + }, z.core.$strip>]>>; + groups: z.ZodArray; + order: z.ZodOptional; + include: z.ZodOptional]>>; + package: z.ZodOptional; + pages: z.ZodOptional; + href: z.ZodOptional; + label: z.ZodOptional; + badge: z.ZodOptional; + icon: z.ZodOptional; + }, z.core.$strip>]>>>; + }, z.core.$strip>>; + }, z.core.$strict>>>; + positions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + delegatable: z.ZodDefault; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + permissions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + packageId: z.ZodOptional; + managedBy: z.ZodOptional>; + isDefault: z.ZodDefault; + objects: z.ZodRecord> & { + readonly shape: { + allowCreate: z.ZodDefault; + allowRead: z.ZodDefault; + allowEdit: z.ZodDefault; + allowDelete: z.ZodDefault; + allowExport: z.ZodOptional; + allowTransfer: z.ZodDefault; + allowRestore: z.ZodOptional; + allowPurge: z.ZodOptional; + viewAllRecords: z.ZodDefault; + modifyAllRecords: z.ZodDefault; + readScope: z.ZodOptional>; + writeScope: z.ZodOptional>; + }; + }>; + fields: z.ZodOptional; + editable: z.ZodDefault; + }, z.core.$strict>>>; + systemPermissions: z.ZodOptional>; + tabPermissions: z.ZodOptional>>; + rowLevelSecurity: z.ZodOptional; + description: z.ZodOptional; + object: z.ZodString; + operation: z.ZodEnum<{ + update: "update"; + delete: "delete"; + all: "all"; + select: "select"; + insert: "insert"; + }>; + using: z.ZodOptional; + check: z.ZodOptional; + positions: z.ZodOptional>; + enabled: z.ZodDefault; + priority: z.ZodOptional; + tags: z.ZodOptional>; + }, z.core.$strict>>>; + adminScope: z.ZodOptional; + manageAssignments: z.ZodDefault; + manageBindings: z.ZodDefault; + authorEnvironmentSets: z.ZodDefault; + assignablePermissionSets: z.ZodDefault>; + }, z.core.$strict>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + scope: z.ZodDefault>; + packageId: z.ZodOptional; + }, z.core.$strict>>>; + sharingRules: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + object: z.ZodString; + active: z.ZodDefault; + accessLevel: z.ZodDefault>; + sharedWith: z.ZodObject<{ + type: z.ZodEnum<{ + user: "user"; + field: "field"; + position: "position"; + business_unit: "business_unit"; + team: "team"; + unit_and_subordinates: "unit_and_subordinates"; + }>; + value: z.ZodString; + }, z.core.$strict>; + type: z.ZodLiteral<"criteria">; + condition: z.ZodUnion>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + }, z.core.$strict>>>; + apis: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + path: z.ZodString; + method: z.ZodEnum<{ + GET: "GET"; + PUT: "PUT"; + POST: "POST"; + DELETE: "DELETE"; + HEAD: "HEAD"; + PATCH: "PATCH"; + OPTIONS: "OPTIONS"; + }>; + summary: z.ZodOptional; + description: z.ZodOptional; + type: z.ZodEnum<{ + script: "script"; + flow: "flow"; + proxy: "proxy"; + object_operation: "object_operation"; + }>; + target: z.ZodOptional; + objectParams: z.ZodOptional; + operation: z.ZodOptional>; + }, z.core.$strip>>; + inputMapping: z.ZodOptional; + }, z.core.$strip>>>; + outputMapping: z.ZodOptional; + }, z.core.$strip>>>; + authRequired: z.ZodDefault; + rateLimit: z.ZodOptional; + windowMs: z.ZodDefault; + maxRequests: z.ZodDefault; + }, z.core.$strict>>; + cacheTtlSeconds: z.ZodOptional; + cacheTtl: z.ZodOptional; + }, z.core.$strict>>>; + webhooks: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + object: z.ZodOptional; + triggers: z.ZodOptional>>; + url: z.ZodString; + method: z.ZodDefault>; + headers: z.ZodOptional>; + timeoutMs: z.ZodDefault; + secret: z.ZodOptional; + isActive: z.ZodDefault; + description: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + api: z.ZodOptional; + enableProjectScoping: z.ZodOptional; + projectResolution: z.ZodOptional>; + enforceProjectMembership: z.ZodOptional; + }, z.core.$strip>>; + server: z.ZodOptional; + windowMs: z.ZodDefault; + maxRequests: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + trustProxy: z.ZodDefault; + }, z.core.$strict>>; + agents: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + avatar: z.ZodOptional; + role: z.ZodString; + instructions: z.ZodString; + model: z.ZodOptional>; + model: z.ZodString; + temperature: z.ZodDefault; + maxTokens: z.ZodOptional; + topP: z.ZodOptional; + }, z.core.$strict>>; + lifecycle: z.ZodOptional; + contextSchema: z.ZodOptional>; + initial: z.ZodString; + states: z.ZodRecord>>; + on: z.ZodOptional; + cond: z.ZodOptional>; + }, z.core.$strict>]>>; + actions: z.ZodOptional>; + }, z.core.$strict>]>>>; + description: z.ZodOptional; + }, z.core.$strict>, z.ZodArray; + cond: z.ZodOptional>; + }, z.core.$strict>]>>; + actions: z.ZodOptional>; + }, z.core.$strict>]>>>; + description: z.ZodOptional; + }, z.core.$strict>>]>>>; + }, z.core.$strict>>; + surface: z.ZodDefault>; + skills: z.ZodOptional>; + tools: z.ZodOptional; + knowledge: z.ZodOptional; + active: z.ZodDefault; + access: z.ZodOptional>; + permissions: z.ZodOptional>; + planning: z.ZodOptional; + }, z.core.$strict>>; + memory: z.ZodOptional; + store: z.ZodDefault>; + maxEntries: z.ZodOptional; + }, z.core.$strict>>; + reflectionInterval: z.ZodOptional; + }, z.core.$strict>>; + guardrails: z.ZodOptional; + maxExecutionTimeSec: z.ZodOptional; + blockedTopics: z.ZodOptional>; + }, z.core.$strict>>; + structuredOutput: z.ZodOptional; + schema: z.ZodOptional>; + strict: z.ZodDefault; + retryOnValidationFailure: z.ZodDefault; + maxRetries: z.ZodDefault; + fallbackFormat: z.ZodOptional>; + transformPipeline: z.ZodOptional>>; + }, z.core.$strict>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + tools: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + description: z.ZodString; + parameters: z.ZodRecord; + outputSchema: z.ZodOptional>; + objectName: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + skills: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + surface: z.ZodDefault>; + instructions: z.ZodOptional; + tools: z.ZodArray; + triggerPhrases: z.ZodOptional; + triggerConditions: z.ZodOptional; + value: z.ZodUnion]>; + }, z.core.$strip>>>; + active: z.ZodDefault; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>; + hooks: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + object: z.ZodUnion]>; + events: z.ZodArray>; + handler: z.ZodOptional any, (...args: any[]) => any>]>>; + body: z.ZodOptional; + source: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + language: z.ZodLiteral<"js">; + source: z.ZodString; + capabilities: z.ZodDefault>>; + timeoutMs: z.ZodOptional; + memoryMb: z.ZodOptional; + }, z.core.$strict>], "language">>; + priority: z.ZodDefault; + async: z.ZodDefault; + condition: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + description: z.ZodOptional; + retryPolicy: z.ZodOptional; + backoffMs: z.ZodDefault; + }, z.core.$strict>>; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + onError: z.ZodDefault>; + runAs: z.ZodDefault>; + }, z.core.$strict>>>; + functions: z.ZodOptional, z.ZodObject<{ + handler: z.ZodFunction; + effect: z.ZodDefault>; + }, z.core.$strict>, z.ZodString, z.ZodObject<{ + effect: z.ZodDefault>; + handler: z.ZodString; + }, z.core.$strict>]>>, z.ZodArray, z.ZodString]>; + packageId: z.ZodOptional; + effect: z.ZodOptional>; + }, z.core.$strip>>]>>; + onEnable: z.ZodOptional>; + mappings: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + sourceFormat: z.ZodDefault>; + targetObject: z.ZodString; + fieldMapping: z.ZodArray]>; + target: z.ZodUnion]>; + transform: z.ZodDefault>; + params: z.ZodOptional; + valueMap: z.ZodOptional>; + separator: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + mode: z.ZodDefault>; + upsertKey: z.ZodOptional>; + }, z.core.$strict>>>; + analyticsCubes: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + title: z.ZodOptional; + description: z.ZodOptional; + sql: z.ZodString; + measures: z.ZodRecord; + type: z.ZodEnum<{ + string: "string"; + number: "number"; + boolean: "boolean"; + count: "count"; + min: "min"; + max: "max"; + sum: "sum"; + avg: "avg"; + count_distinct: "count_distinct"; + }>; + sql: z.ZodString; + format: z.ZodOptional; + }, z.core.$strict>>; + dimensions: z.ZodRecord; + type: z.ZodEnum<{ + string: "string"; + number: "number"; + boolean: "boolean"; + geo: "geo"; + time: "time"; + }>; + sql: z.ZodString; + granularities: z.ZodOptional>>; + }, z.core.$strict>>; + joins: z.ZodOptional>; + sql: z.ZodString; + }, z.core.$strict>>>; + refreshKey: z.ZodOptional; + sql: z.ZodOptional; + }, z.core.$strict>>; + public: z.ZodDefault; + }, z.core.$strict>>>; + connectors: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodString; + type: z.ZodEnum<{ + custom: "custom"; + api: "api"; + database: "database"; + saas: "saas"; + file_storage: "file_storage"; + message_queue: "message_queue"; + }>; + description: z.ZodOptional; + icon: z.ZodOptional; + authentication: z.ZodDefault; + authorizationUrl: z.ZodString; + tokenUrl: z.ZodString; + clientId: z.ZodString; + clientSecret: z.ZodString; + scopes: z.ZodOptional>; + redirectUri: z.ZodOptional; + refreshToken: z.ZodOptional; + tokenExpiry: z.ZodOptional; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"api-key">; + key: z.ZodString; + headerName: z.ZodDefault; + paramName: z.ZodOptional; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"basic">; + username: z.ZodString; + password: z.ZodString; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"bearer">; + token: z.ZodString; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"none">; + }, z.core.$strip>], "type">>>; + provider: z.ZodOptional; + providerConfig: z.ZodOptional>; + auth: z.ZodOptional; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"bearer">; + credentialRef: z.ZodString; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"api-key">; + credentialRef: z.ZodString; + headerName: z.ZodOptional; + paramName: z.ZodOptional; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"basic">; + username: z.ZodString; + credentialRef: z.ZodString; + }, z.core.$strip>], "type">>; + actions: z.ZodOptional; + inputSchema: z.ZodOptional>; + outputSchema: z.ZodOptional>; + effect: z.ZodOptional>; + }, z.core.$strip>>>; + triggers: z.ZodOptional; + type: z.ZodEnum<{ + webhook: "webhook"; + polling: "polling"; + }>; + intervalSeconds: z.ZodOptional; + interval: z.ZodOptional; + }, z.core.$strip>>>; + syncConfig: z.ZodOptional>>; + direction: z.ZodDefault>>; + realtimeSync: z.ZodDefault>; + timestampField: z.ZodOptional; + conflictResolution: z.ZodDefault>>; + batchSize: z.ZodDefault>; + deleteMode: z.ZodDefault>>; + filters: z.ZodOptional>; + }, z.core.$strip>>; + fieldMappings: z.ZodOptional; + defaultValue: z.ZodOptional; + dataType: z.ZodOptional>; + required: z.ZodDefault; + syncMode: z.ZodDefault>; + }, z.core.$strip>>>; + webhooks: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + object: z.ZodOptional; + triggers: z.ZodOptional>>; + url: z.ZodString; + method: z.ZodDefault>; + headers: z.ZodOptional>; + timeoutMs: z.ZodDefault; + secret: z.ZodOptional; + isActive: z.ZodDefault; + description: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + events: z.ZodOptional>>; + signatureAlgorithm: z.ZodDefault>>; + }, z.core.$strict>>>; + rateLimitConfig: z.ZodOptional; + retryConfig: z.ZodOptional>>; + maxAttempts: z.ZodDefault>; + initialDelayMs: z.ZodDefault>; + maxDelayMs: z.ZodDefault>; + backoffMultiplier: z.ZodDefault>; + retryableStatusCodes: z.ZodDefault>>; + retryOnNetworkError: z.ZodDefault>; + jitter: z.ZodDefault>; + }, z.core.$strip>>; + connectionTimeoutMs: z.ZodDefault>; + requestTimeoutMs: z.ZodDefault>; + status: z.ZodDefault>>; + enabled: z.ZodDefault>; + errorMapping: z.ZodOptional; + health: z.ZodOptional>; + timeoutMs: z.ZodDefault>; + endpoint: z.ZodOptional; + method: z.ZodOptional>; + expectedStatus: z.ZodDefault>; + unhealthyThreshold: z.ZodDefault>; + healthyThreshold: z.ZodDefault>; + }, z.core.$strip>>; + circuitBreaker: z.ZodOptional>; + resetTimeoutMs: z.ZodDefault>; + halfOpenMaxRequests: z.ZodDefault>; + monitoringWindowMs: z.ZodDefault>; + monitoringWindow: z.ZodOptional; + fallbackStrategy: z.ZodOptional>; + }, z.core.$strip>>; + }, z.core.$strip>>; + metadata: z.ZodOptional>; + }, z.core.$strip>>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + plugins: z.ZodOptional>; + requires: z.ZodOptional>; + tiers: z.ZodOptional>; + devPlugins: z.ZodOptional; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + agent: "agent"; + app: "app"; + adapter: "adapter"; + driver: "driver"; + theme: "theme"; + plugin: "plugin"; + ui: "ui"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>, z.ZodString]>>>; + runtimeModule: z.ZodOptional; + manifest: z.ZodOptional; + defaultDatasource: z.ZodDefault>; + version: z.ZodString; + type: z.ZodEnum<{ + server: "server"; + agent: "agent"; + app: "app"; + adapter: "adapter"; + driver: "driver"; + theme: "theme"; + plugin: "plugin"; + ui: "ui"; + objectql: "objectql"; + module: "module"; + gateway: "gateway"; + }>; + scope: z.ZodDefault>; + name: z.ZodString; + description: z.ZodOptional; + permissions: z.ZodOptional, z.ZodObject<{ + services: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>]>>; + objects: z.ZodOptional>; + datasources: z.ZodOptional>; + dependencies: z.ZodOptional>; + configuration: z.ZodOptional; + contributes: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + events: z.ZodOptional; + menus: z.ZodOptional; + themes: z.ZodOptional; + translations: z.ZodOptional; + actions: z.ZodOptional; + drivers: z.ZodOptional; + fieldTypes: z.ZodOptional; + functions: z.ZodOptional; + routes: z.ZodOptional; + commands: z.ZodOptional; + }, z.core.$strict>>; + data: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + object: z.ZodString; + externalId: z.ZodDefault]>>; + mode: z.ZodDefault>; + env: z.ZodDefault>>; + locale: z.ZodOptional>; + records: z.ZodArray>; + }, z.core.$strict>>>; + capabilities: z.ZodOptional; + extensions: z.ZodOptional; + navigationContributions: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; + }, z.core.$strict>>>; + loading: z.ZodOptional; + engine: z.ZodOptional>; + engines: z.ZodOptional; + protocol: z.ZodOptional; + }, z.core.$strict>>; + runtime: z.ZodOptional>; + packaging: z.ZodOptional>; + main: z.ZodOptional; + integrity: z.ZodOptional>; + }, z.core.$strict>>; + packages: z.ZodOptional, Record, z.core.$ZodTypeInternals, Record>>; + }, z.core.$strict>>>; + }, z.core.$strict>; + grantedPermissions: z.ZodOptional>; + hooks: z.ZodOptional>; + network: z.ZodOptional>; + fs: z.ZodOptional>; + }, z.core.$strict>>>; + functions: z.ZodOptional; + manifest: z.ZodOptional; + payloadRef: z.ZodOptional; +}, z.core.$strip>; + +// ── ExecuteSqlOperation (const) ── +declare const ExecuteSqlOperation: z.ZodObject<{ + type: z.ZodLiteral<"execute_sql">; + sql: z.ZodString; + description: z.ZodOptional; +}, z.core.$strip>; + +// ── ExecuteSqlOperation (type) ── +type ExecuteSqlOperation = z.input; + +// ── ExtendedLogLevel (const) ── +declare const ExtendedLogLevel: z.ZodEnum<{ + error: "error"; + debug: "debug"; + info: "info"; + warn: "warn"; + fatal: "fatal"; + trace: "trace"; +}>; + +// ── ExtendedLogLevel (type) ── +type ExtendedLogLevel = z.input; + +// ── ExternalServiceDestinationConfig (type) ── +type ExternalServiceDestinationConfig = z.input; + +// ── ExternalServiceDestinationConfigSchema (const) ── +declare const ExternalServiceDestinationConfigSchema: z.ZodObject<{ + endpoint: z.ZodOptional; + region: z.ZodOptional; + credentials: z.ZodOptional; + secretAccessKey: z.ZodOptional; + apiKey: z.ZodOptional; + environmentId: z.ZodOptional; + }, z.core.$strip>>; + logGroup: z.ZodOptional; + logStream: z.ZodOptional; + index: z.ZodOptional; + config: z.ZodOptional>; +}, z.core.$strip>; + +// ── FILE_REFERENCES_MIGRATION_ID (const) ── +declare const FILE_REFERENCES_MIGRATION_ID = "adr-0104-file-references"; + +// ── FLOW_SCREEN_COPY_KEYS (const) ── +declare const FLOW_SCREEN_COPY_KEYS: readonly ["title"]; + +// ── FLOW_SCREEN_FIELD_COPY_KEYS (const) ── +declare const FLOW_SCREEN_FIELD_COPY_KEYS: readonly ["label", "placeholder"]; + +// ── FacetConfig (type) ── +type FacetConfig = z.input; + +// ── FacetConfigParsed (type) ── +type FacetConfigParsed = z.infer; + +// ── FacetConfigSchema (const) ── +declare const FacetConfigSchema: z.ZodObject<{ + field: z.ZodString; + maxValues: z.ZodDefault; + sort: z.ZodDefault>; +}, z.core.$strip>; + +// ── FailoverConfig (type) ── +type FailoverConfig = z.input; + +// ── FailoverConfigParsed (type) ── +type FailoverConfigParsed = z.infer; + +// ── FailoverConfigSchema (const) ── +declare const FailoverConfigSchema: z.ZodObject<{ + mode: z.ZodDefault>; + autoFailover: z.ZodDefault; + healthCheckIntervalSeconds: z.ZodDefault; + healthCheckInterval: z.ZodOptional; + failureThreshold: z.ZodDefault; + regions: z.ZodArray; + endpoint: z.ZodOptional; + priority: z.ZodOptional; + }, z.core.$strip>>; + dns: z.ZodOptional; + provider: z.ZodOptional>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── FailoverMode (type) ── +type FailoverMode = z.input; + +// ── FailoverModeSchema (const) ── +declare const FailoverModeSchema: z.ZodEnum<{ + active_passive: "active_passive"; + active_active: "active_active"; + pilot_light: "pilot_light"; + warm_standby: "warm_standby"; +}>; + +// ── Feature (type) ── +type Feature = z.input; + +// ── FeatureParsed (type) ── +type FeatureParsed = z.infer; + +// ── FeatureSchema (const) ── +declare const FeatureSchema: z.ZodObject<{ + code: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + type: z.ZodDefault>; + unit: z.ZodOptional>; + requires: z.ZodOptional>; +}, z.core.$strip>; + +// ── FieldEncryption (type) ── +type FieldEncryption = z.input; + +// ── FieldEncryptionParsed (type) ── +type FieldEncryptionParsed = z.infer; + +// ── FieldEncryptionSchema (const) ── +declare const FieldEncryptionSchema: z.ZodObject<{ + fieldName: z.ZodString; + encryptionConfig: z.ZodObject<{ + enabled: z.ZodDefault; + algorithm: z.ZodDefault>; + keyManagement: z.ZodObject<{ + provider: z.ZodEnum<{ + local: "local"; + "aws-kms": "aws-kms"; + "azure-key-vault": "azure-key-vault"; + "gcp-kms": "gcp-kms"; + "hashicorp-vault": "hashicorp-vault"; + }>; + keyId: z.ZodOptional; + rotationPolicy: z.ZodOptional; + frequencyDays: z.ZodDefault; + retainOldVersions: z.ZodDefault; + autoRotate: z.ZodDefault; + }, z.core.$strip>>; + }, z.core.$strip>; + scope: z.ZodEnum<{ + record: "record"; + field: "field"; + table: "table"; + database: "database"; + }>; + deterministicEncryption: z.ZodDefault; + searchableEncryption: z.ZodDefault; + }, z.core.$strip>; + indexable: z.ZodDefault; +}, z.core.$strip>; + +// ── FieldTranslation (type) ── +type FieldTranslation = z.input; + +// ── FieldTranslationSchema (const) ── +declare const FieldTranslationSchema: z.ZodObject<{ + label: z.ZodOptional; + help: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; +}, z.core.$strict>; + +// ── FileDestinationConfig (type) ── +type FileDestinationConfig = z.input; + +// ── FileDestinationConfigParsed (type) ── +type FileDestinationConfigParsed = z.infer; + +// ── FileDestinationConfigSchema (const) ── +declare const FileDestinationConfigSchema: z.ZodObject<{ + path: z.ZodString; + rotation: z.ZodOptional>; + maxFiles: z.ZodDefault>; + compress: z.ZodDefault>; + interval: z.ZodOptional>; + }, z.core.$strip>>; + encoding: z.ZodDefault>; + append: z.ZodDefault>; +}, z.core.$strip>; + +// ── FileMetadata (type) ── +type FileMetadata = z.input; + +// ── FileMetadataSchema (const) ── +declare const FileMetadataSchema: z.ZodObject<{ + path: z.ZodString; + name: z.ZodString; + size: z.ZodNumber; + mimeType: z.ZodString; + lastModified: z.ZodString; + created: z.ZodString; + etag: z.ZodOptional; + fileId: z.ZodOptional; +}, z.core.$strip>; + +// ── FlowLike (interface) ── +interface FlowLike { + /** `Flow.name` — the machine name the `flows` group is keyed by. */ + name: string; + label?: string; + nodes?: FlowNodeLike[]; + [key: string]: any; +} + +// ── FlowNodeLike (interface) ── +interface FlowNodeLike { + /** `FlowNode.id` — the `screens` translation key (the client's `ScreenSpec.nodeId`). */ + id?: string; + /** Node action type; only `'screen'` nodes carry the copy this family overlays. */ + type?: string; + /** Designer-canvas node label — NOT overlaid; see {@link translateFlow}. */ + label?: string; + /** Node configuration (`ScreenConfigSchema` for screen nodes). */ + config?: Record; + [key: string]: any; +} + +// ── FlowScreenCopyKey (type) ── +type FlowScreenCopyKey = typeof FLOW_SCREEN_COPY_KEYS[number]; + +// ── FlowScreenFieldCopyKey (type) ── +type FlowScreenFieldCopyKey = typeof FLOW_SCREEN_FIELD_COPY_KEYS[number]; + +// ── FlowScreenFieldLike (interface) ── +interface FlowScreenFieldLike { + /** + * Field name (`ScreenFieldConfig.name`) — the `fields` translation key, + * forwarded to the client verbatim as `ScreenFieldSpec.name`. A field + * without a name is skipped, matching the executor (which drops it). + */ + name?: string; + label?: string; + placeholder?: string; + [key: string]: unknown; +} + +// ── FlowScreenLike (interface) ── +interface FlowScreenLike { + /** The screen node's id (`FlowNode.id`) — the `screens` translation key. */ + nodeId: string; + /** The authored heading the runner would draw untranslated (`ScreenSpec.title`). */ + title?: string; + [key: string]: unknown; +} + +// ── GCounter (type) ── +type GCounter = z.input; + +// ── GCounterSchema (const) ── +declare const GCounterSchema: z.ZodObject<{ + type: z.ZodLiteral<"g-counter">; + counts: z.ZodRecord; +}, z.core.$strip>; + +// ── GlobalFilterLike (interface) ── +interface GlobalFilterLike { + /** + * `GlobalFilterSchema.name` — the stable filter key, declared as defaulting + * to `field`. The bundle addresses the filter by whichever of the two the + * document carries first: see {@link globalFilterKey}. + */ + name?: string; + field?: string; + /** `I18nLabelSchema` — a plain string OR an inline locale map. */ + label?: unknown; + /** Static options — `value` is `string | number | boolean`, `label` an `I18nLabelSchema`. */ + options?: Array<{ + value?: unknown; + label?: unknown; + [key: string]: any; + }>; + [key: string]: any; +} + +// ── HistogramBucketConfig (type) ── +type HistogramBucketConfig = z.input; + +// ── HistogramBucketConfigSchema (const) ── +declare const HistogramBucketConfigSchema: z.ZodObject<{ + type: z.ZodEnum<{ + linear: "linear"; + exponential: "exponential"; + explicit: "explicit"; + }>; + linear: z.ZodOptional>; + exponential: z.ZodOptional>; + explicit: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── HttpDestinationConfig (type) ── +type HttpDestinationConfig = z.input; + +// ── HttpDestinationConfigParsed (type) ── +type HttpDestinationConfigParsed = z.infer; + +// ── HttpDestinationConfigSchema (const) ── +declare const HttpDestinationConfigSchema: z.ZodObject<{ + url: z.ZodString; + method: z.ZodDefault>>; + headers: z.ZodOptional>; + auth: z.ZodOptional; + username: z.ZodOptional; + password: z.ZodOptional; + token: z.ZodOptional; + apiKey: z.ZodOptional; + apiKeyHeader: z.ZodDefault>; + }, z.core.$strip>>; + batch: z.ZodOptional>; + flushIntervalMs: z.ZodDefault>; + flushInterval: z.ZodOptional; + }, z.core.$strip>>; + retry: z.ZodOptional>; + initialDelayMs: z.ZodDefault>; + initialDelay: z.ZodOptional; + backoffMultiplier: z.ZodDefault>; + }, z.core.$strip>>; + timeoutMs: z.ZodDefault>; + timeout: z.ZodOptional; +}, z.core.$strip>; + +// ── ISettingsCapability (interface) ── +interface ISettingsCapability { + /** + * Bind a namespace to a Zod schema and return a typed reactive client. + * + * @param namespace Settings namespace (matches `SettingsManifest.namespace`) + * @param schema Zod schema for the namespace's full value object + */ + bind(namespace: string, schema: S): ISettingsClient & Record>; +} + +// ── ISettingsClient (interface) ── +interface ISettingsClient> { + /** Namespace this client is bound to. Immutable. */ + readonly namespace: string; + /** + * The current effective snapshot. Reading is O(1); the underlying + * map is replaced atomically on every change so prior references + * stay valid (use the latest `current` to read fresh state). + */ + readonly current: T; + /** Resolve a single key. Equivalent to `client.current[key]`. */ + get(key: K): T[K]; + /** + * Subscribe to changes within this namespace. The handler fires + * after `current` has been swapped, so reading `current` inside the + * handler observes the new value. + */ + onChange(handler: SettingsChangeHandler): SettingsUnsubscribe; +} + +// ── IntervalSchedule (type) ── +type IntervalSchedule = z.input; + +// ── IntervalScheduleSchema (const) ── +declare const IntervalScheduleSchema: z.ZodObject<{ + type: z.ZodLiteral<"interval">; + intervalMs: z.ZodNumber; +}, z.core.$strip>; + +// ── Job (type) ── +type Job = z.input; + +// ── JobExecution (type) ── +type JobExecution = z.input; + +// ── JobExecutionSchema (const) ── +declare const JobExecutionSchema: z.ZodObject<{ + jobId: z.ZodString; + startedAt: z.ZodString; + completedAt: z.ZodOptional; + status: z.ZodEnum<{ + success: "success"; + timeout: "timeout"; + running: "running"; + failed: "failed"; + degraded: "degraded"; + }>; + error: z.ZodOptional; + durationMs: z.ZodOptional; +}, z.core.$strip>; + +// ── JobExecutionStatus (const) ── +declare const JobExecutionStatus: z.ZodEnum<{ + success: "success"; + timeout: "timeout"; + running: "running"; + failed: "failed"; + degraded: "degraded"; +}>; + +// ── JobExecutionStatus (type) ── +type JobExecutionStatus = z.input; + +// ── JobParsed (type) ── +type JobParsed = z.infer; + +// ── JobSchema (const) ── +declare const JobSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + description: z.ZodOptional; + schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{ + type: z.ZodLiteral<"cron">; + expression: z.ZodUnion>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"cron">; + }, z.core.$strip>]>; + timezone: z.ZodDefault>; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"interval">; + intervalMs: z.ZodNumber; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"once">; + at: z.ZodString; + }, z.core.$strip>], "type">; + handler: z.ZodString; + retryPolicy: z.ZodOptional; + backoffMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; + maxRetryDelayMs: z.ZodDefault; + jitter: z.ZodDefault; + retryDelayMs: z.ZodOptional; + }, z.core.$strip>>; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + enabled: z.ZodDefault; +}, z.core.$strict>; + +// ── KernelServiceMap (type) ── +type KernelServiceMap = z.input; + +// ── KernelServiceMapSchema (const) ── +declare const KernelServiceMapSchema: z.ZodRecord, z.ZodUnknown>; + +// ── KernelServiceStatus (type) ── +type KernelServiceStatus = z.input; + +// ── KernelServiceStatusSchema (const) ── +declare const KernelServiceStatusSchema: z.ZodObject<{ + name: z.ZodEnum<{ + metadata: "metadata"; + search: "search"; + storage: "storage"; + data: "data"; + auth: "auth"; + cache: "cache"; + realtime: "realtime"; + ui: "ui"; + automation: "automation"; + analytics: "analytics"; + ai: "ai"; + i18n: "i18n"; + job: "job"; + "file-storage": "file-storage"; + queue: "queue"; + notification: "notification"; + }>; + enabled: z.ZodBoolean; + status: z.ZodEnum<{ + degraded: "degraded"; + running: "running"; + stopped: "stopped"; + initializing: "initializing"; + }>; + version: z.ZodOptional; + provider: z.ZodOptional; + features: z.ZodOptional>; +}, z.core.$strip>; + +// ── KeyManagementProvider (type) ── +type KeyManagementProvider = z.input; + +// ── KeyManagementProviderSchema (const) ── +declare const KeyManagementProviderSchema: z.ZodEnum<{ + local: "local"; + "aws-kms": "aws-kms"; + "azure-key-vault": "azure-key-vault"; + "gcp-kms": "gcp-kms"; + "hashicorp-vault": "hashicorp-vault"; +}>; + +// ── KeyRotationPolicy (type) ── +type KeyRotationPolicy = z.input; + +// ── KeyRotationPolicyParsed (type) ── +type KeyRotationPolicyParsed = z.infer; + +// ── KeyRotationPolicySchema (const) ── +declare const KeyRotationPolicySchema: z.ZodObject<{ + enabled: z.ZodDefault; + frequencyDays: z.ZodDefault; + retainOldVersions: z.ZodDefault; + autoRotate: z.ZodDefault; +}, z.core.$strip>; + +// ── LEGACY_OBJECT_FIRST_KEYS (const) ── +declare const LEGACY_OBJECT_FIRST_KEYS: readonly ["o", "app", "nav", "dashboard", "reports", "notifications", "errors", "_globalOptions", "_meta", "namespace"]; + +// ── LWWRegister (type) ── +type LWWRegister = z.input; + +// ── LWWRegisterSchema (const) ── +declare const LWWRegisterSchema: z.ZodObject<{ + type: z.ZodLiteral<"lww-register">; + value: z.ZodUnknown; + timestamp: z.ZodString; + replicaId: z.ZodString; + vectorClock: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── LegacyObjectFirstKey (type) ── +type LegacyObjectFirstKey = (typeof LEGACY_OBJECT_FIRST_KEYS)[number]; + +// ── License (type) ── +type License = z.input; + +// ── LicenseMetricType (const) ── +declare const LicenseMetricType: z.ZodEnum<{ + boolean: "boolean"; + counter: "counter"; + gauge: "gauge"; +}>; + +// ── LicenseMetricType (type) ── +type LicenseMetricType = z.input; + +// ── LicenseSchema (const) ── +declare const LicenseSchema: z.ZodObject<{ + spaceId: z.ZodString; + planCode: z.ZodString; + issuedAt: z.ZodString; + expiresAt: z.ZodOptional; + status: z.ZodEnum<{ + active: "active"; + expired: "expired"; + suspended: "suspended"; + trial: "trial"; + }>; + customFeatures: z.ZodOptional>; + customLimits: z.ZodOptional>; + plugins: z.ZodOptional>; + signature: z.ZodOptional; +}, z.core.$strip>; + +// ── LifecycleAction (type) ── +type LifecycleAction = z.input; + +// ── LifecycleActionSchema (const) ── +declare const LifecycleActionSchema: z.ZodEnum<{ + abort: "abort"; + delete: "delete"; + transition: "transition"; +}>; + +// ── LifecyclePolicyConfig (type) ── +type LifecyclePolicyConfig = z.input; + +// ── LifecyclePolicyConfigParsed (type) ── +type LifecyclePolicyConfigParsed = z.infer; + +// ── LifecyclePolicyConfigSchema (const) ── +declare const LifecyclePolicyConfigSchema: z.ZodObject<{ + enabled: z.ZodDefault; + rules: z.ZodDefault; + action: z.ZodEnum<{ + abort: "abort"; + delete: "delete"; + transition: "transition"; + }>; + prefix: z.ZodOptional; + tags: z.ZodOptional>; + daysAfterCreation: z.ZodOptional; + daysAfterModification: z.ZodOptional; + targetStorageClass: z.ZodOptional>; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── LifecyclePolicyRule (type) ── +type LifecyclePolicyRule = z.input; + +// ── LifecyclePolicyRuleParsed (type) ── +type LifecyclePolicyRuleParsed = z.infer; + +// ── LifecyclePolicyRuleSchema (const) ── +declare const LifecyclePolicyRuleSchema: z.ZodObject<{ + id: z.ZodString; + enabled: z.ZodDefault; + action: z.ZodEnum<{ + abort: "abort"; + delete: "delete"; + transition: "transition"; + }>; + prefix: z.ZodOptional; + tags: z.ZodOptional>; + daysAfterCreation: z.ZodOptional; + daysAfterModification: z.ZodOptional; + targetStorageClass: z.ZodOptional>; +}, z.core.$strip>; + +// ── Locale (type) ── +type Locale = z.input; + +// ── LocaleDescriptor (interface) ── +interface LocaleDescriptor { + /** BCP-47 locale code. */ + code: string; + /** + * Locale label — the CODE, echoed back, not a display name. Nothing in the + * tree carries a locale name to set it from, and naming a locale for a UI is + * the client's job (#7634); `GetLocalesResponseSchema` declares it that way. + */ + label: string; + /** Whether this is the stack's default locale. */ + isDefault: boolean; +} + +// ── LocaleSchema (const) ── +declare const LocaleSchema: z.ZodString; + +// ── LogDestination (type) ── +type LogDestination = z.input; + +// ── LogDestinationParsed (type) ── +type LogDestinationParsed = z.infer; + +// ── LogDestinationSchema (const) ── +declare const LogDestinationSchema: z.ZodObject<{ + name: z.ZodString; + type: z.ZodEnum<{ + file: "file"; + custom: "custom"; + redis: "redis"; + elasticsearch: "elasticsearch"; + console: "console"; + syslog: "syslog"; + cloudwatch: "cloudwatch"; + stackdriver: "stackdriver"; + azure_monitor: "azure_monitor"; + datadog: "datadog"; + splunk: "splunk"; + loki: "loki"; + http: "http"; + kafka: "kafka"; + }>; + level: z.ZodDefault>>; + enabled: z.ZodDefault>; + console: z.ZodOptional>>; + colors: z.ZodDefault>; + prettyPrint: z.ZodDefault>; + }, z.core.$strip>>; + file: z.ZodOptional>; + maxFiles: z.ZodDefault>; + compress: z.ZodDefault>; + interval: z.ZodOptional>; + }, z.core.$strip>>; + encoding: z.ZodDefault>; + append: z.ZodDefault>; + }, z.core.$strip>>; + http: z.ZodOptional>>; + headers: z.ZodOptional>; + auth: z.ZodOptional; + username: z.ZodOptional; + password: z.ZodOptional; + token: z.ZodOptional; + apiKey: z.ZodOptional; + apiKeyHeader: z.ZodDefault>; + }, z.core.$strip>>; + batch: z.ZodOptional>; + flushIntervalMs: z.ZodDefault>; + flushInterval: z.ZodOptional; + }, z.core.$strip>>; + retry: z.ZodOptional>; + initialDelayMs: z.ZodDefault>; + initialDelay: z.ZodOptional; + backoffMultiplier: z.ZodDefault>; + }, z.core.$strip>>; + timeoutMs: z.ZodDefault>; + timeout: z.ZodOptional; + }, z.core.$strip>>; + externalService: z.ZodOptional; + region: z.ZodOptional; + credentials: z.ZodOptional; + secretAccessKey: z.ZodOptional; + apiKey: z.ZodOptional; + environmentId: z.ZodOptional; + }, z.core.$strip>>; + logGroup: z.ZodOptional; + logStream: z.ZodOptional; + index: z.ZodOptional; + config: z.ZodOptional>; + }, z.core.$strip>>; + format: z.ZodDefault>>; + filterId: z.ZodOptional; +}, z.core.$strip>; + +// ── LogDestinationType (const) ── +declare const LogDestinationType: z.ZodEnum<{ + file: "file"; + custom: "custom"; + redis: "redis"; + elasticsearch: "elasticsearch"; + console: "console"; + syslog: "syslog"; + cloudwatch: "cloudwatch"; + stackdriver: "stackdriver"; + azure_monitor: "azure_monitor"; + datadog: "datadog"; + splunk: "splunk"; + loki: "loki"; + http: "http"; + kafka: "kafka"; +}>; + +// ── LogDestinationType (type) ── +type LogDestinationType = z.input; + +// ── LogEnrichmentConfig (type) ── +type LogEnrichmentConfig = z.input; + +// ── LogEnrichmentConfigParsed (type) ── +type LogEnrichmentConfigParsed = z.infer; + +// ── LogEnrichmentConfigSchema (const) ── +declare const LogEnrichmentConfigSchema: z.ZodObject<{ + staticFields: z.ZodOptional>; + dynamicEnrichers: z.ZodOptional>; + addHostname: z.ZodDefault>; + addProcessId: z.ZodDefault>; + addEnvironment: z.ZodDefault>; + addTimestampFormats: z.ZodOptional>; + iso: z.ZodDefault>; + }, z.core.$strip>>; + addCaller: z.ZodDefault>; + addCorrelationIds: z.ZodDefault>; +}, z.core.$strip>; + +// ── LogEntry (type) ── +type LogEntry = z.input; + +// ── LogEntrySchema (const) ── +declare const LogEntrySchema: z.ZodObject<{ + timestamp: z.ZodString; + level: z.ZodEnum<{ + error: "error"; + debug: "debug"; + info: "info"; + warn: "warn"; + fatal: "fatal"; + silent: "silent"; + }>; + message: z.ZodString; + context: z.ZodOptional>; + error: z.ZodOptional>; + traceId: z.ZodOptional; + spanId: z.ZodOptional; + service: z.ZodOptional; + component: z.ZodOptional; +}, z.core.$strip>; + +// ── LogFormat (const) ── +declare const LogFormat: z.ZodEnum<{ + text: "text"; + json: "json"; + pretty: "pretty"; +}>; + +// ── LogFormat (type) ── +type LogFormat = z.input; + +// ── LogLevel (const) ── +declare const LogLevel: z.ZodEnum<{ + error: "error"; + debug: "debug"; + info: "info"; + warn: "warn"; + fatal: "fatal"; + silent: "silent"; +}>; + +// ── LogLevel (type) ── +type LogLevel = z.input; + +// ── LoggerConfig (type) ── +type LoggerConfig = z.input; + +// ── LoggerConfigParsed (type) ── +type LoggerConfigParsed = z.infer; + +// ── LoggerConfigSchema (const) ── +declare const LoggerConfigSchema: z.ZodObject<{ + name: z.ZodOptional; + level: z.ZodDefault>>; + format: z.ZodDefault>>; + redact: z.ZodDefault>>; + sourceLocation: z.ZodDefault>; + file: z.ZodOptional; + rotation: z.ZodOptional>; + maxFiles: z.ZodDefault>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── LoggingConfig (type) ── +type LoggingConfig = z.input; + +// ── LoggingConfigParsed (type) ── +type LoggingConfigParsed = z.infer; + +// ── LoggingConfigSchema (const) ── +declare const LoggingConfigSchema: z.ZodObject<{ + name: z.ZodString; + label: z.ZodString; + enabled: z.ZodDefault>; + level: z.ZodDefault>>; + default: z.ZodOptional; + level: z.ZodDefault>>; + format: z.ZodDefault>>; + redact: z.ZodDefault>>; + sourceLocation: z.ZodDefault>; + file: z.ZodOptional; + rotation: z.ZodOptional>; + maxFiles: z.ZodDefault>; + }, z.core.$strip>>; + }, z.core.$strip>>; + loggers: z.ZodOptional; + level: z.ZodDefault>>; + format: z.ZodDefault>>; + redact: z.ZodDefault>>; + sourceLocation: z.ZodDefault>; + file: z.ZodOptional; + rotation: z.ZodOptional>; + maxFiles: z.ZodDefault>; + }, z.core.$strip>>; + }, z.core.$strip>>>; + destinations: z.ZodArray; + level: z.ZodDefault>>; + enabled: z.ZodDefault>; + console: z.ZodOptional>>; + colors: z.ZodDefault>; + prettyPrint: z.ZodDefault>; + }, z.core.$strip>>; + file: z.ZodOptional>; + maxFiles: z.ZodDefault>; + compress: z.ZodDefault>; + interval: z.ZodOptional>; + }, z.core.$strip>>; + encoding: z.ZodDefault>; + append: z.ZodDefault>; + }, z.core.$strip>>; + http: z.ZodOptional>>; + headers: z.ZodOptional>; + auth: z.ZodOptional; + username: z.ZodOptional; + password: z.ZodOptional; + token: z.ZodOptional; + apiKey: z.ZodOptional; + apiKeyHeader: z.ZodDefault>; + }, z.core.$strip>>; + batch: z.ZodOptional>; + flushIntervalMs: z.ZodDefault>; + flushInterval: z.ZodOptional; + }, z.core.$strip>>; + retry: z.ZodOptional>; + initialDelayMs: z.ZodDefault>; + initialDelay: z.ZodOptional; + backoffMultiplier: z.ZodDefault>; + }, z.core.$strip>>; + timeoutMs: z.ZodDefault>; + timeout: z.ZodOptional; + }, z.core.$strip>>; + externalService: z.ZodOptional; + region: z.ZodOptional; + credentials: z.ZodOptional; + secretAccessKey: z.ZodOptional; + apiKey: z.ZodOptional; + environmentId: z.ZodOptional; + }, z.core.$strip>>; + logGroup: z.ZodOptional; + logStream: z.ZodOptional; + index: z.ZodOptional; + config: z.ZodOptional>; + }, z.core.$strip>>; + format: z.ZodDefault>>; + filterId: z.ZodOptional; + }, z.core.$strip>>; + enrichment: z.ZodOptional>; + dynamicEnrichers: z.ZodOptional>; + addHostname: z.ZodDefault>; + addProcessId: z.ZodDefault>; + addEnvironment: z.ZodDefault>; + addTimestampFormats: z.ZodOptional>; + iso: z.ZodDefault>; + }, z.core.$strip>>; + addCaller: z.ZodDefault>; + addCorrelationIds: z.ZodDefault>; + }, z.core.$strip>>; + redact: z.ZodDefault>>; + sampling: z.ZodOptional>; + rate: z.ZodDefault>; + rateByLevel: z.ZodOptional>; + }, z.core.$strip>>; + buffer: z.ZodOptional>; + size: z.ZodDefault>; + flushIntervalMs: z.ZodDefault>; + flushInterval: z.ZodOptional; + flushOnShutdown: z.ZodDefault>; + }, z.core.$strip>>; + performance: z.ZodOptional>; + workers: z.ZodDefault>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── METADATA_FORM_REGISTRY (const) ── +declare const METADATA_FORM_REGISTRY: Readonly>; + +// ── MIGRATION_JOURNAL_KINDS (const) ── +declare const MIGRATION_JOURNAL_KINDS: readonly ["run_started", "chunk_started", "chunk_done", "compensated", "run_done", "run_failed"]; + +// ── MIGRATION_JOURNAL_OBJECT (const) ── +declare const MIGRATION_JOURNAL_OBJECT = "sys_migration_journal"; + +// ── MaskingVisibilityRule (type) ── +type MaskingVisibilityRule = z.input; + +// ── MaskingVisibilityRuleParsed (type) ── +type MaskingVisibilityRuleParsed = z.infer; + +// ── MaskingVisibilityRuleSchema (const) ── +declare const MaskingVisibilityRuleSchema: z.ZodObject<{ + dataClassification: z.ZodEnum<{ + public: "public"; + pii: "pii"; + internal: "internal"; + phi: "phi"; + pci: "pci"; + financial: "financial"; + confidential: "confidential"; + }>; + defaultMasked: z.ZodDefault; + unmaskRoles: z.ZodOptional>; + auditUnmask: z.ZodDefault; + requireApproval: z.ZodDefault; + approvalRoles: z.ZodOptional>; +}, z.core.$strip>; + +// ── MetadataCollectionInfo (type) ── +type MetadataCollectionInfo = z.input; + +// ── MetadataCollectionInfoSchema (const) ── +declare const MetadataCollectionInfoSchema: z.ZodObject<{ + type: z.ZodString; + count: z.ZodNumber; + namespaces: z.ZodArray; +}, z.core.$strip>; + +// ── MetadataDiffResult (type) ── +type MetadataDiffResult = z.input; + +// ── MetadataDiffResultSchema (const) ── +declare const MetadataDiffResultSchema: z.ZodObject<{ + type: z.ZodString; + name: z.ZodString; + version1: z.ZodNumber; + version2: z.ZodNumber; + checksum1: z.ZodString; + checksum2: z.ZodString; + identical: z.ZodBoolean; + patch: z.ZodOptional>; + summary: z.ZodOptional; +}, z.core.$strip>; + +// ── MetadataFallbackStrategy (type) ── +type MetadataFallbackStrategy = z.input; + +// ── MetadataFallbackStrategySchema (const) ── +declare const MetadataFallbackStrategySchema: z.ZodEnum<{ + none: "none"; + memory: "memory"; + filesystem: "filesystem"; +}>; + +// ── MetadataFormType (type) ── +type MetadataFormType = keyof typeof METADATA_FORM_REGISTRY; + +// ── MetadataFormat (type) ── +type MetadataFormat = z.input; + +// ── MetadataFormatSchema (const) ── +declare const MetadataFormatSchema: z.ZodEnum<{ + json: "json"; + yaml: "yaml"; + typescript: "typescript"; + javascript: "javascript"; +}>; + +// ── MetadataHistoryQueryOptions (type) ── +type MetadataHistoryQueryOptions = z.input; + +// ── MetadataHistoryQueryOptionsParsed (type) ── +type MetadataHistoryQueryOptionsParsed = z.infer; + +// ── MetadataHistoryQueryOptionsSchema (const) ── +declare const MetadataHistoryQueryOptionsSchema: z.ZodObject<{ + limit: z.ZodOptional; + offset: z.ZodOptional; + since: z.ZodOptional; + until: z.ZodOptional; + operationType: z.ZodOptional>; + includeMetadata: z.ZodDefault>; +}, z.core.$strip>; + +// ── MetadataHistoryQueryResult (type) ── +type MetadataHistoryQueryResult = z.input; + +// ── MetadataHistoryQueryResultSchema (const) ── +declare const MetadataHistoryQueryResultSchema: z.ZodObject<{ + records: z.ZodArray; + metadata: z.ZodOptional]>>>; + checksum: z.ZodString; + previousChecksum: z.ZodOptional; + changeNote: z.ZodOptional; + organizationId: z.ZodOptional; + environmentId: z.ZodOptional; + recordedBy: z.ZodOptional; + recordedAt: z.ZodString; + }, z.core.$strip>>; + total: z.ZodNumber; + hasMore: z.ZodBoolean; +}, z.core.$strip>; + +// ── MetadataHistoryRecord (type) ── +type MetadataHistoryRecord = z.input; + +// ── MetadataHistoryRecordSchema (const) ── +declare const MetadataHistoryRecordSchema: z.ZodObject<{ + id: z.ZodString; + name: z.ZodString; + type: z.ZodString; + version: z.ZodNumber; + operationType: z.ZodEnum<{ + create: "create"; + update: "update"; + delete: "delete"; + publish: "publish"; + revert: "revert"; + }>; + metadata: z.ZodOptional]>>>; + checksum: z.ZodString; + previousChecksum: z.ZodOptional; + changeNote: z.ZodOptional; + organizationId: z.ZodOptional; + environmentId: z.ZodOptional; + recordedBy: z.ZodOptional; + recordedAt: z.ZodString; +}, z.core.$strip>; + +// ── MetadataHistoryRetentionPolicy (type) ── +type MetadataHistoryRetentionPolicy = z.input; + +// ── MetadataHistoryRetentionPolicyParsed (type) ── +type MetadataHistoryRetentionPolicyParsed = z.infer; + +// ── MetadataHistoryRetentionPolicySchema (const) ── +declare const MetadataHistoryRetentionPolicySchema: z.ZodObject<{ + maxVersions: z.ZodOptional; + maxAgeDays: z.ZodOptional; + autoCleanup: z.ZodDefault; + cleanupIntervalHours: z.ZodDefault; +}, z.core.$strip>; + +// ── MetadataLoadOptions (type) ── +type MetadataLoadOptions = z.input; + +// ── MetadataLoadOptionsSchema (const) ── +declare const MetadataLoadOptionsSchema: z.ZodObject<{ + scope: z.ZodOptional>; + namespace: z.ZodOptional; + raw: z.ZodOptional; + cache: z.ZodOptional; + useCache: z.ZodOptional; + validate: z.ZodOptional; + ifNoneMatch: z.ZodOptional; + recursive: z.ZodOptional; + limit: z.ZodOptional; + patterns: z.ZodOptional>; + loader: z.ZodOptional; +}, z.core.$strip>; + +// ── MetadataLoadResult (type) ── +type MetadataLoadResult = z.input; + +// ── MetadataLoadResultSchema (const) ── +declare const MetadataLoadResultSchema: z.ZodObject<{ + data: z.ZodUnknown; + stats: z.ZodOptional; + size: z.ZodOptional; + mtime: z.ZodOptional; + hash: z.ZodOptional; + etag: z.ZodOptional; + modifiedAt: z.ZodOptional; + format: z.ZodOptional>; + }, z.core.$strip>>; + format: z.ZodOptional>; + source: z.ZodOptional; + fromCache: z.ZodOptional; + etag: z.ZodOptional; + notModified: z.ZodOptional; + loadTime: z.ZodOptional; +}, z.core.$strip>; + +// ── MetadataLoaderContract (type) ── +type MetadataLoaderContract = z.input; + +// ── MetadataLoaderContractParsed (type) ── +type MetadataLoaderContractParsed = z.infer; + +// ── MetadataLoaderContractSchema (const) ── +declare const MetadataLoaderContractSchema: z.ZodObject<{ + name: z.ZodString; + protocol: z.ZodEnum<{ + "file:": "file:"; + "http:": "http:"; + "s3:": "s3:"; + "datasource:": "datasource:"; + "memory:": "memory:"; + }>; + description: z.ZodOptional; + supportedFormats: z.ZodOptional>; + supportsWatch: z.ZodOptional; + supportsWrite: z.ZodOptional; + supportsCache: z.ZodOptional; + capabilities: z.ZodObject<{ + read: z.ZodDefault; + write: z.ZodDefault; + watch: z.ZodDefault; + list: z.ZodDefault; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── MetadataManagerConfig (type) ── +type MetadataManagerConfig = z.input; + +// ── MetadataManagerConfigSchema (const) ── +declare const MetadataManagerConfigSchema: z.ZodObject<{ + datasource: z.ZodOptional; + tableName: z.ZodDefault; + fallback: z.ZodDefault>; + rootDir: z.ZodOptional; + formats: z.ZodDefault>>; + cache: z.ZodOptional; + ttlSeconds: z.ZodOptional; + ttl: z.ZodOptional; + maxSize: z.ZodOptional; + databaseLoader: z.ZodOptional; + maxSize: z.ZodDefault; + ttlMs: z.ZodDefault; + ttl: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + watch: z.ZodDefault; + watchOptions: z.ZodOptional>; + persistent: z.ZodDefault; + ignoreInitial: z.ZodDefault; + }, z.core.$strip>>; + validation: z.ZodOptional; + throwOnError: z.ZodDefault; + }, z.core.$strip>>; + loaderOptions: z.ZodOptional>; + persistence: z.ZodOptional; + overlayWritable: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── MetadataRecord (type) ── +type MetadataRecord = z.input; + +// ── MetadataRecordParsed (type) ── +type MetadataRecordParsed = z.infer; + +// ── MetadataRecordSchema (const) ── +declare const MetadataRecordSchema: z.ZodObject<{ + id: z.ZodString; + name: z.ZodString; + type: z.ZodString; + namespace: z.ZodDefault; + packageId: z.ZodOptional; + managedBy: z.ZodOptional>; + scope: z.ZodDefault>; + metadata: z.ZodRecord; + extends: z.ZodOptional; + strategy: z.ZodDefault>; + owner: z.ZodOptional; + state: z.ZodDefault>; + organizationId: z.ZodOptional; + tenantId: z.ZodOptional; + environmentId: z.ZodOptional; + version: z.ZodDefault; + checksum: z.ZodOptional; + source: z.ZodOptional>; + tags: z.ZodOptional>; + publishedDefinition: z.ZodOptional; + publishedAt: z.ZodOptional; + publishedBy: z.ZodOptional; + createdBy: z.ZodOptional; + createdAt: z.ZodOptional; + updatedBy: z.ZodOptional; + updatedAt: z.ZodOptional; +}, z.core.$strip>; + +// ── MetadataSaveOptions (type) ── +type MetadataSaveOptions = z.input; + +// ── MetadataSaveOptionsParsed (type) ── +type MetadataSaveOptionsParsed = z.infer; + +// ── MetadataSaveOptionsSchema (const) ── +declare const MetadataSaveOptionsSchema: z.ZodObject<{ + format: z.ZodOptional>; + create: z.ZodDefault; + overwrite: z.ZodDefault; + path: z.ZodOptional; + prettify: z.ZodOptional; + indent: z.ZodOptional; + sortKeys: z.ZodOptional; + backup: z.ZodOptional; + atomic: z.ZodOptional; + loader: z.ZodOptional; +}, z.core.$strip>; + +// ── MetadataSaveResult (type) ── +type MetadataSaveResult = z.input; + +// ── MetadataSaveResultSchema (const) ── +declare const MetadataSaveResultSchema: z.ZodObject<{ + success: z.ZodBoolean; + path: z.ZodOptional; + stats: z.ZodOptional; + size: z.ZodOptional; + mtime: z.ZodOptional; + hash: z.ZodOptional; + etag: z.ZodOptional; + modifiedAt: z.ZodOptional; + format: z.ZodOptional>; + }, z.core.$strip>>; + etag: z.ZodOptional; + size: z.ZodOptional; + saveTime: z.ZodOptional; + backupPath: z.ZodOptional; +}, z.core.$strip>; + +// ── MetadataScope (type) ── +type MetadataScope = z.input; + +// ── MetadataScopeSchema (const) ── +declare const MetadataScopeSchema: z.ZodEnum<{ + user: "user"; + system: "system"; + platform: "platform"; +}>; + +// ── MetadataSource (type) ── +type MetadataSource = z.input; + +// ── MetadataSourceSchema (const) ── +declare const MetadataSourceSchema: z.ZodEnum<{ + api: "api"; + filesystem: "filesystem"; + database: "database"; + migration: "migration"; +}>; + +// ── MetadataState (type) ── +type MetadataState = z.input; + +// ── MetadataStateSchema (const) ── +declare const MetadataStateSchema: z.ZodEnum<{ + deprecated: "deprecated"; + active: "active"; + draft: "draft"; + archived: "archived"; +}>; + +// ── MetadataStats (type) ── +type MetadataStats = z.input; + +// ── MetadataStatsSchema (const) ── +declare const MetadataStatsSchema: z.ZodObject<{ + path: z.ZodOptional; + size: z.ZodOptional; + mtime: z.ZodOptional; + hash: z.ZodOptional; + etag: z.ZodOptional; + modifiedAt: z.ZodOptional; + format: z.ZodOptional>; +}, z.core.$strip>; + +// ── MetadataWatchEvent (type) ── +type MetadataWatchEvent = z.input; + +// ── MetadataWatchEventSchema (const) ── +declare const MetadataWatchEventSchema: z.ZodObject<{ + type: z.ZodEnum<{ + deleted: "deleted"; + added: "added"; + changed: "changed"; + }>; + path: z.ZodString; + name: z.ZodOptional; + stats: z.ZodOptional; + size: z.ZodOptional; + mtime: z.ZodOptional; + hash: z.ZodOptional; + etag: z.ZodOptional; + modifiedAt: z.ZodOptional; + format: z.ZodOptional>; + }, z.core.$strip>>; + metadataType: z.ZodOptional; + data: z.ZodOptional; + timestamp: z.ZodOptional; +}, z.core.$strip>; + +// ── MetricAggregationConfig (type) ── +type MetricAggregationConfig = z.input; + +// ── MetricAggregationConfigParsed (type) ── +type MetricAggregationConfigParsed = z.infer; + +// ── MetricAggregationConfigSchema (const) ── +declare const MetricAggregationConfigSchema: z.ZodObject<{ + type: z.ZodEnum<{ + count: "count"; + min: "min"; + max: "max"; + sum: "sum"; + avg: "avg"; + rate: "rate"; + p50: "p50"; + p75: "p75"; + p90: "p90"; + p95: "p95"; + p99: "p99"; + p999: "p999"; + stddev: "stddev"; + }>; + window: z.ZodOptional; + sliding: z.ZodDefault>; + slideInterval: z.ZodOptional; + }, z.core.$strip>>; + groupBy: z.ZodOptional>; + filters: z.ZodOptional>; +}, z.core.$strip>; + +// ── MetricAggregationType (const) ── +declare const MetricAggregationType: z.ZodEnum<{ + count: "count"; + min: "min"; + max: "max"; + sum: "sum"; + avg: "avg"; + rate: "rate"; + p50: "p50"; + p75: "p75"; + p90: "p90"; + p95: "p95"; + p99: "p99"; + p999: "p999"; + stddev: "stddev"; +}>; + +// ── MetricAggregationType (type) ── +type MetricAggregationType = z.input; + +// ── MetricDataPoint (type) ── +type MetricDataPoint = z.input; + +// ── MetricDataPointSchema (const) ── +declare const MetricDataPointSchema: z.ZodObject<{ + name: z.ZodString; + type: z.ZodEnum<{ + summary: "summary"; + counter: "counter"; + gauge: "gauge"; + histogram: "histogram"; + }>; + timestamp: z.ZodString; + value: z.ZodOptional; + labels: z.ZodOptional>; + histogram: z.ZodOptional>; + }, z.core.$strip>>; + summary: z.ZodOptional>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── MetricDefinition (type) ── +type MetricDefinition = z.input; + +// ── MetricDefinitionParsed (type) ── +type MetricDefinitionParsed = z.infer; + +// ── MetricDefinitionSchema (const) ── +declare const MetricDefinitionSchema: z.ZodObject<{ + name: z.ZodString; + label: z.ZodOptional; + type: z.ZodEnum<{ + summary: "summary"; + counter: "counter"; + gauge: "gauge"; + histogram: "histogram"; + }>; + unit: z.ZodOptional>; + description: z.ZodOptional; + labelNames: z.ZodDefault>>; + histogram: z.ZodOptional; + linear: z.ZodOptional>; + exponential: z.ZodOptional>; + explicit: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + summary: z.ZodOptional>>; + maxAgeSeconds: z.ZodDefault>; + maxAge: z.ZodOptional; + ageBuckets: z.ZodDefault>; + }, z.core.$strip>>; + enabled: z.ZodDefault>; +}, z.core.$strip>; + +// ── MetricExportConfig (type) ── +type MetricExportConfig = z.input; + +// ── MetricExportConfigParsed (type) ── +type MetricExportConfigParsed = z.infer; + +// ── MetricExportConfigSchema (const) ── +declare const MetricExportConfigSchema: z.ZodObject<{ + type: z.ZodEnum<{ + custom: "custom"; + cloudwatch: "cloudwatch"; + stackdriver: "stackdriver"; + azure_monitor: "azure_monitor"; + datadog: "datadog"; + http: "http"; + prometheus: "prometheus"; + openmetrics: "openmetrics"; + graphite: "graphite"; + statsd: "statsd"; + influxdb: "influxdb"; + }>; + endpoint: z.ZodOptional; + intervalSeconds: z.ZodDefault>; + interval: z.ZodOptional; + batch: z.ZodOptional>; + size: z.ZodDefault>; + }, z.core.$strip>>; + auth: z.ZodOptional; + username: z.ZodOptional; + password: z.ZodOptional; + token: z.ZodOptional; + apiKey: z.ZodOptional; + }, z.core.$strip>>; + config: z.ZodOptional>; +}, z.core.$strip>; + +// ── MetricLabels (type) ── +type MetricLabels = z.input; + +// ── MetricLabelsSchema (const) ── +declare const MetricLabelsSchema: z.ZodRecord; + +// ── MetricType (const) ── +declare const MetricType: z.ZodEnum<{ + summary: "summary"; + counter: "counter"; + gauge: "gauge"; + histogram: "histogram"; +}>; + +// ── MetricType (type) ── +type MetricType = z.input; + +// ── MetricUnit (const) ── +declare const MetricUnit: z.ZodEnum<{ + custom: "custom"; + days: "days"; + seconds: "seconds"; + minutes: "minutes"; + hours: "hours"; + count: "count"; + percent: "percent"; + nanoseconds: "nanoseconds"; + microseconds: "microseconds"; + milliseconds: "milliseconds"; + bytes: "bytes"; + kilobytes: "kilobytes"; + megabytes: "megabytes"; + gigabytes: "gigabytes"; + terabytes: "terabytes"; + requests_per_second: "requests_per_second"; + events_per_second: "events_per_second"; + bytes_per_second: "bytes_per_second"; + ratio: "ratio"; + operations: "operations"; +}>; + +// ── MetricUnit (type) ── +type MetricUnit = z.input; + +// ── MetricsConfig (type) ── +type MetricsConfig = z.input; + +// ── MetricsConfigParsed (type) ── +type MetricsConfigParsed = z.infer; + +// ── MetricsConfigSchema (const) ── +declare const MetricsConfigSchema: z.ZodObject<{ + name: z.ZodString; + label: z.ZodString; + enabled: z.ZodDefault>; + metrics: z.ZodDefault; + type: z.ZodEnum<{ + summary: "summary"; + counter: "counter"; + gauge: "gauge"; + histogram: "histogram"; + }>; + unit: z.ZodOptional>; + description: z.ZodOptional; + labelNames: z.ZodDefault>>; + histogram: z.ZodOptional; + linear: z.ZodOptional>; + exponential: z.ZodOptional>; + explicit: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; + summary: z.ZodOptional>>; + maxAgeSeconds: z.ZodDefault>; + maxAge: z.ZodOptional; + ageBuckets: z.ZodDefault>; + }, z.core.$strip>>; + enabled: z.ZodDefault>; + }, z.core.$strip>>>>; + defaultLabels: z.ZodDefault>>; + aggregations: z.ZodDefault; + window: z.ZodOptional; + sliding: z.ZodDefault>; + slideInterval: z.ZodOptional; + }, z.core.$strip>>; + groupBy: z.ZodOptional>; + filters: z.ZodOptional>; + }, z.core.$strip>>>>; + slis: z.ZodDefault; + metric: z.ZodString; + type: z.ZodEnum<{ + custom: "custom"; + availability: "availability"; + latency: "latency"; + throughput: "throughput"; + error_rate: "error_rate"; + saturation: "saturation"; + }>; + successCriteria: z.ZodUnion; + percentile: z.ZodOptional; + }, z.core.$strip>, z.ZodUnion>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>; + window: z.ZodObject<{ + durationSeconds: z.ZodNumber; + size: z.ZodOptional; + rolling: z.ZodDefault>; + }, z.core.$strip>; + enabled: z.ZodDefault>; + }, z.core.$strip>>>>; + slos: z.ZodDefault; + sli: z.ZodString; + target: z.ZodNumber; + period: z.ZodObject<{ + type: z.ZodEnum<{ + rolling: "rolling"; + calendar: "calendar"; + }>; + durationSeconds: z.ZodOptional; + duration: z.ZodOptional; + calendar: z.ZodOptional>; + }, z.core.$strip>; + errorBudget: z.ZodOptional>; + alertThreshold: z.ZodDefault>; + burnRateWindows: z.ZodOptional; + threshold: z.ZodNumber; + }, z.core.$strip>>>; + }, z.core.$strip>>; + alerts: z.ZodDefault; + condition: z.ZodObject<{ + type: z.ZodEnum<{ + slo_breach: "slo_breach"; + error_budget: "error_budget"; + burn_rate: "burn_rate"; + }>; + threshold: z.ZodOptional; + }, z.core.$strip>; + }, z.core.$strip>>>>; + enabled: z.ZodDefault>; + }, z.core.$strip>>>>; + exports: z.ZodDefault; + endpoint: z.ZodOptional; + intervalSeconds: z.ZodDefault>; + interval: z.ZodOptional; + batch: z.ZodOptional>; + size: z.ZodDefault>; + }, z.core.$strip>>; + auth: z.ZodOptional; + username: z.ZodOptional; + password: z.ZodOptional; + token: z.ZodOptional; + apiKey: z.ZodOptional; + }, z.core.$strip>>; + config: z.ZodOptional>; + }, z.core.$strip>>>>; + collectionIntervalSeconds: z.ZodDefault>; + collectionInterval: z.ZodOptional; + retention: z.ZodOptional>; + period: z.ZodOptional; + downsampling: z.ZodOptional>>; + }, z.core.$strip>>; + cardinalityLimits: z.ZodOptional>; + onLimitExceeded: z.ZodDefault>>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── MiddlewareConfig (const) ── +declare const MiddlewareConfig: z.ZodObject<{ + name: z.ZodString; + type: z.ZodEnum<{ + error: "error"; + custom: "custom"; + validation: "validation"; + authentication: "authentication"; + authorization: "authorization"; + logging: "logging"; + transformation: "transformation"; + }>; + enabled: z.ZodDefault; + order: z.ZodDefault; + config: z.ZodOptional>; + paths: z.ZodOptional>; + exclude: z.ZodOptional>; + }, z.core.$strip>>; +}, z.core.$strip> & { + create: >(config: T) => T; +}; + +// ── MiddlewareConfig (type) ── +type MiddlewareConfig = z.input; + +// ── MiddlewareConfigParsed (type) ── +type MiddlewareConfigParsed = z.infer; + +// ── MiddlewareConfigSchema (const) ── +declare const MiddlewareConfigSchema: z.ZodObject<{ + name: z.ZodString; + type: z.ZodEnum<{ + error: "error"; + custom: "custom"; + validation: "validation"; + authentication: "authentication"; + authorization: "authorization"; + logging: "logging"; + transformation: "transformation"; + }>; + enabled: z.ZodDefault; + order: z.ZodDefault; + config: z.ZodOptional>; + paths: z.ZodOptional>; + exclude: z.ZodOptional>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── MiddlewareType (const) ── +declare const MiddlewareType: z.ZodEnum<{ + error: "error"; + custom: "custom"; + validation: "validation"; + authentication: "authentication"; + authorization: "authorization"; + logging: "logging"; + transformation: "transformation"; +}>; + +// ── MiddlewareType (type) ── +type MiddlewareType = z.input; + +// ── MigrationDependency (type) ── +type MigrationDependency = z.input; + +// ── MigrationDependencySchema (const) ── +declare const MigrationDependencySchema: z.ZodObject<{ + migrationId: z.ZodString; + package: z.ZodOptional; +}, z.core.$strip>; + +// ── MigrationJournalEvent (type) ── +type MigrationJournalEvent = z.input; + +// ── MigrationJournalEventSchema (const) ── +declare const MigrationJournalEventSchema: z.ZodObject<{ + run_id: z.ZodString; + seq: z.ZodNumber; + kind: z.ZodEnum<{ + run_started: "run_started"; + chunk_started: "chunk_started"; + chunk_done: "chunk_done"; + compensated: "compensated"; + run_done: "run_done"; + run_failed: "run_failed"; + }>; + migration_id: z.ZodOptional; + plan_hash: z.ZodOptional; + chunk_index: z.ZodOptional; + attempt: z.ZodOptional; + detail: z.ZodOptional; + created_at: z.ZodOptional; +}, z.core.$strip>; + +// ── MigrationJournalKind (type) ── +type MigrationJournalKind = (typeof MIGRATION_JOURNAL_KINDS)[number]; + +// ── MigrationOnCrashPolicy (type) ── +type MigrationOnCrashPolicy = 'resume' | 'compensate'; + +// ── MigrationOperation (type) ── +type MigrationOperation = z.input; + +// ── MigrationOperationParsed (type) ── +type MigrationOperationParsed = z.infer; + +// ── MigrationOperationSchema (const) ── +declare const MigrationOperationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ + type: z.ZodLiteral<"add_field">; + objectName: z.ZodString; + fieldName: z.ZodString; + field: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + tags: "tags"; + email: "email"; + phone: "phone"; + user: "user"; + datetime: "datetime"; + location: "location"; + text: "text"; + url: "url"; + time: "time"; + formula: "formula"; + textarea: "textarea"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + vector: "vector"; + }>; + description: z.ZodOptional; + format: z.ZodOptional; + required: z.ZodDefault; + storage: z.ZodOptional; + }, z.core.$strict>>; + searchable: z.ZodDefault; + multiple: z.ZodDefault; + unique: z.ZodOptional, z.ZodLiteral<"organization">]>>; + defaultValue: z.ZodOptional; + maxLength: z.ZodOptional; + minLength: z.ZodOptional; + valueDomain: z.ZodOptional>; + rows: z.ZodOptional; + precision: z.ZodOptional; + scale: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + useGrouping: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + options: z.ZodOptional; + color: z.ZodOptional; + default: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + reference: z.ZodOptional; + referenceVia: z.ZodOptional; + deleteBehavior: z.ZodOptional>; + inlineEdit: z.ZodOptional]>>; + inlineTitle: z.ZodOptional; + inlineColumns: z.ZodOptional; + type: z.ZodOptional>; + width: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + prefix: z.ZodOptional; + step: z.ZodOptional; + reference: z.ZodOptional; + displayField: z.ZodOptional; + idField: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + defaultHidden: z.ZodOptional; + computed: z.ZodOptional; + expr: z.ZodOptional; + scale: z.ZodOptional; + autofill: z.ZodOptional; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + inlineAmountField: z.ZodOptional; + relatedList: z.ZodOptional]>>; + relatedListTitle: z.ZodOptional; + relatedListColumns: z.ZodOptional>; + relatedListFilter: z.ZodOptional>>; + displayField: z.ZodOptional; + descriptionField: z.ZodOptional; + lookupColumns: z.ZodOptional; + width: z.ZodOptional; + type: z.ZodOptional; + }, z.core.$strict>]>>>; + lookupPageSize: z.ZodOptional; + lookupFilters: z.ZodOptional; + value: z.ZodAny; + }, z.core.$strict>>>; + dependsOn: z.ZodOptional; + }, z.core.$strict>]>>>; + allowCreate: z.ZodOptional; + expression: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + returnType: z.ZodOptional>; + summaryOperations: z.ZodOptional; + relationshipField: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strict>>; + language: z.ZodOptional; + step: z.ZodOptional; + currencyConfig: z.ZodOptional; + currencyMode: z.ZodDefault>; + defaultCurrency: z.ZodDefault; + }, z.core.$strict>>; + dimensions: z.ZodOptional; + trackHistory: z.ZodOptional; + group: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + conditionalRequired: z.ZodOptional; + widget: z.ZodOptional; + hidden: z.ZodDefault; + internal: z.ZodOptional; + readonly: z.ZodDefault; + requiredPermissions: z.ZodOptional>; + maskingRule: z.ZodOptional, z.ZodObject<{ + keepHead: z.ZodNumber; + keepTail: z.ZodNumber; + }, z.core.$strict>]>>; + ackPlaintextMasking: z.ZodOptional; + system: z.ZodOptional; + sortable: z.ZodDefault>; + inlineHelpText: z.ZodOptional; + placeholder: z.ZodOptional; + autonumberFormat: z.ZodOptional; + externalId: z.ZodDefault; + }, z.core.$strict>; +}, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"modify_field">; + objectName: z.ZodString; + fieldName: z.ZodString; + changes: z.ZodRecord; +}, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"remove_field">; + objectName: z.ZodString; + fieldName: z.ZodString; +}, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"create_object">; + object: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + pluralLabel: z.ZodOptional; + description: z.ZodOptional; + icon: z.ZodOptional; + isSystem: z.ZodDefault>; + managedBy: z.ZodOptional>; + ownership: z.ZodOptional>; + userActions: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + import: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + edit: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + delete: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + exportCsv: z.ZodOptional; + }, z.core.$strict>>; + systemFields: z.ZodOptional, z.ZodObject<{ + tenant: z.ZodOptional; + audit: z.ZodOptional; + }, z.core.$strict>]>>; + datasource: z.ZodDefault>; + external: z.ZodOptional; + remoteSchema: z.ZodOptional; + writable: z.ZodDefault; + columnMap: z.ZodOptional>; + introspectedAt: z.ZodOptional; + ignoreColumns: z.ZodOptional>; + }, z.core.$strict>>; + fields: z.ZodRecord>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + tags: "tags"; + email: "email"; + phone: "phone"; + user: "user"; + datetime: "datetime"; + location: "location"; + text: "text"; + url: "url"; + time: "time"; + formula: "formula"; + textarea: "textarea"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + vector: "vector"; + }>; + description: z.ZodOptional; + format: z.ZodOptional; + required: z.ZodDefault; + storage: z.ZodOptional; + }, z.core.$strict>>; + searchable: z.ZodDefault; + multiple: z.ZodDefault; + unique: z.ZodOptional, z.ZodLiteral<"organization">]>>; + defaultValue: z.ZodOptional; + maxLength: z.ZodOptional; + minLength: z.ZodOptional; + valueDomain: z.ZodOptional>; + rows: z.ZodOptional; + precision: z.ZodOptional; + scale: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + useGrouping: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + options: z.ZodOptional; + color: z.ZodOptional; + default: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + reference: z.ZodOptional; + referenceVia: z.ZodOptional; + deleteBehavior: z.ZodOptional>; + inlineEdit: z.ZodOptional]>>; + inlineTitle: z.ZodOptional; + inlineColumns: z.ZodOptional; + type: z.ZodOptional>; + width: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + prefix: z.ZodOptional; + step: z.ZodOptional; + reference: z.ZodOptional; + displayField: z.ZodOptional; + idField: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + defaultHidden: z.ZodOptional; + computed: z.ZodOptional; + expr: z.ZodOptional; + scale: z.ZodOptional; + autofill: z.ZodOptional; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + inlineAmountField: z.ZodOptional; + relatedList: z.ZodOptional]>>; + relatedListTitle: z.ZodOptional; + relatedListColumns: z.ZodOptional>; + relatedListFilter: z.ZodOptional>>; + displayField: z.ZodOptional; + descriptionField: z.ZodOptional; + lookupColumns: z.ZodOptional; + width: z.ZodOptional; + type: z.ZodOptional; + }, z.core.$strict>]>>>; + lookupPageSize: z.ZodOptional; + lookupFilters: z.ZodOptional; + value: z.ZodAny; + }, z.core.$strict>>>; + dependsOn: z.ZodOptional; + }, z.core.$strict>]>>>; + allowCreate: z.ZodOptional; + expression: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + returnType: z.ZodOptional>; + summaryOperations: z.ZodOptional; + relationshipField: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strict>>; + language: z.ZodOptional; + step: z.ZodOptional; + currencyConfig: z.ZodOptional; + currencyMode: z.ZodDefault>; + defaultCurrency: z.ZodDefault; + }, z.core.$strict>>; + dimensions: z.ZodOptional; + trackHistory: z.ZodOptional; + group: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + conditionalRequired: z.ZodOptional; + widget: z.ZodOptional; + hidden: z.ZodDefault; + internal: z.ZodOptional; + readonly: z.ZodDefault; + requiredPermissions: z.ZodOptional>; + maskingRule: z.ZodOptional, z.ZodObject<{ + keepHead: z.ZodNumber; + keepTail: z.ZodNumber; + }, z.core.$strict>]>>; + ackPlaintextMasking: z.ZodOptional; + system: z.ZodOptional; + sortable: z.ZodDefault>; + inlineHelpText: z.ZodOptional; + placeholder: z.ZodOptional; + autonumberFormat: z.ZodOptional; + externalId: z.ZodDefault; + }, z.core.$strict>>; + indexes: z.ZodOptional; + fields: z.ZodArray; + unique: z.ZodDefault, z.ZodLiteral<"organization">]>>>; + type: z.ZodOptional; + partial: z.ZodOptional; + }, z.core.$strict>>>; + fieldGroups: z.ZodOptional; + description: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + collapse: z.ZodDefault>>; + defaultExpanded: z.ZodOptional; + collapsible: z.ZodOptional; + collapsed: z.ZodOptional; + }, z.core.$strict>>>; + tenancy: z.ZodOptional; + organizationField: z.ZodOptional; + }, z.core.$strict>>; + access: z.ZodOptional>; + }, z.core.$strict>>; + requiredPermissions: z.ZodOptional, z.ZodObject<{ + read: z.ZodOptional>; + create: z.ZodOptional>; + update: z.ZodOptional>; + delete: z.ZodOptional>; + }, z.core.$strict>]>>; + lifecycle: z.ZodOptional; + retention: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + ttl: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + storage: z.ZodOptional; + shards: z.ZodNumber; + unit: z.ZodEnum<{ + month: "month"; + day: "day"; + week: "week"; + }>; + }, z.core.$strict>>; + archive: z.ZodOptional; + }, z.core.$strict>>; + reclaim: z.ZodOptional; + }, z.core.$strict>>; + fileAccessDelegate: z.ZodOptional; + validations: z.ZodOptional>>>; + activityMilestones: z.ZodOptional; + }, z.core.$strict>>>; + nameField: z.ZodOptional; + displayNameField: z.ZodOptional; + titleFormat: z.ZodOptional>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"template">; + }, z.core.$strip>]>>; + highlightFields: z.ZodOptional>; + stageField: z.ZodOptional]>>; + editMode: z.ZodOptional>; + listViews: z.ZodOptional>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + map: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + sort: z.ZodOptional; + }, z.core.$strict>>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + name: z.ZodOptional; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + inlineEdit: z.ZodOptional; + performance: z.ZodOptional; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + count: "count"; + none: "none"; + min: "min"; + max: "max"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + resizable: z.ZodOptional; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + compactToolbar: z.ZodOptional; + selection: z.ZodOptional>; + }, z.core.$strict>>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + pageName: z.ZodOptional; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + rowActions: z.ZodOptional>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + update: "update"; + delete: "delete"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + tags: "tags"; + email: "email"; + phone: "phone"; + user: "user"; + datetime: "datetime"; + location: "location"; + text: "text"; + url: "url"; + time: "time"; + formula: "formula"; + textarea: "textarea"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "csv" | "xlsx")[]; + }, ("json" | "csv" | "xlsx")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + enable: z.ZodOptional; + searchable: z.ZodDefault; + apiEnabled: z.ZodDefault; + apiMethods: z.ZodOptional>>; + files: z.ZodDefault; + feeds: z.ZodDefault; + activities: z.ZodDefault; + clone: z.ZodDefault; + }, z.core.$strict>>; + sharingModel: z.ZodOptional>; + externalSharingModel: z.ZodOptional>; + publicSharing: z.ZodOptional; + allowedAudiences: z.ZodOptional>>; + allowedPermissions: z.ZodOptional>>; + maxExpiryDays: z.ZodOptional; + redactFields: z.ZodOptional>; + eligibility: z.ZodOptional; + }, z.core.$strict>>; + actions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + objectName: z.ZodOptional; + icon: z.ZodOptional; + locations: z.ZodOptional>>; + component: z.ZodOptional>; + type: z.ZodDefault>; + target: z.ZodOptional; + openIn: z.ZodOptional>; + body: z.ZodOptional; + source: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + language: z.ZodLiteral<"js">; + source: z.ZodString; + capabilities: z.ZodDefault>>; + timeoutMs: z.ZodOptional; + memoryMb: z.ZodOptional; + }, z.core.$strict>], "language">>; + operation: z.ZodOptional>; + patch: z.ZodOptional>; + execution: z.ZodOptional>; + execute: z.ZodOptional; + params: z.ZodOptional; + field: z.ZodOptional; + objectOverride: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + required: z.ZodDefault>; + options: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + value: z.ZodString; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + placeholder: z.ZodOptional; + helpText: z.ZodOptional; + defaultValue: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + reference: z.ZodOptional; + defaultFromRow: z.ZodOptional; + carryOver: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiresFeature: z.ZodOptional>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">, { + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }>>>>; + variant: z.ZodOptional>; + order: z.ZodOptional; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + successMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + errorMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + refreshAfter: z.ZodDefault; + undoable: z.ZodOptional; + resultDialog: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + acknowledge: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiresFeature: z.ZodOptional>; + disabled: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiredPermissions: z.ZodOptional>; + shortcut: z.ZodOptional; + bulkEnabled: z.ZodOptional; + ai: z.ZodOptional; + description: z.ZodOptional; + category: z.ZodOptional>; + paramHints: z.ZodOptional; + enum: z.ZodOptional>>; + examples: z.ZodOptional>; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional>; + requiresConfirmation: z.ZodOptional; + }, z.core.$strict>>; + recordIdParam: z.ZodOptional; + recordIdField: z.ZodOptional; + bodyShape: z.ZodOptional, z.ZodObject<{ + wrap: z.ZodString; + }, z.core.$strict>]>>; + method: z.ZodOptional>; + bodyExtra: z.ZodOptional>; + mode: z.ZodOptional>; + opensInNewTab: z.ZodOptional; + newTabUrl: z.ZodOptional; + onSuccess: z.ZodOptional>; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">, { + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict> & { + parse(data: unknown, params?: Parameters<(data: unknown, params?: z.core.ParseContext) => { + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "user" | "none" | "org" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "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: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "modal" | "page" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | undefined; + hidden?: boolean | undefined; + sortable?: boolean | undefined; + resizable?: boolean | undefined; + wrap?: boolean | undefined; + type?: string | undefined; + pinned?: "left" | "right" | undefined; + summary?: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled" | { + type: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled"; + field?: string | undefined; + } | undefined; + prefix?: { + field: string; + type: "text" | "badge"; + } | undefined; + link?: boolean | undefined; + action?: string | undefined; + }[]; + description?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + name?: string | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + inlineEdit?: boolean | undefined; + performance?: undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "calendar" | "kanban" | "gantt" | "timeline" | "gallery" | "chart")[] | undefined; + } | undefined; + navigation?: { + mode: "split" | "none" | "modal" | "drawer" | "page" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + rowHeight?: "short" | "compact" | "medium" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + pageName?: undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + grouping?: { + fields: { + field: string; + order: "desc" | "asc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + rowActions?: string[] | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "update" | "delete"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + maxRecords?: number | undefined; + batchSize?: number | undefined; + }[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + exportOptions?: { + formats: ("json" | "csv" | "xlsx")[]; + } | { + formats?: ("json" | "csv" | "xlsx")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "modal" | "inline"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + responsive?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "create" | "update" | "delete" | "list" | "bulk")[] | undefined; + } | undefined; + sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("edit" | "view" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "full" | "none" | "no-overlay" | "no-delete"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }>[1]): { + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "user" | "none" | "org" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "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: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "modal" | "page" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | undefined; + hidden?: boolean | undefined; + sortable?: boolean | undefined; + resizable?: boolean | undefined; + wrap?: boolean | undefined; + type?: string | undefined; + pinned?: "left" | "right" | undefined; + summary?: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled" | { + type: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled"; + field?: string | undefined; + } | undefined; + prefix?: { + field: string; + type: "text" | "badge"; + } | undefined; + link?: boolean | undefined; + action?: string | undefined; + }[]; + description?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + name?: string | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + inlineEdit?: boolean | undefined; + performance?: undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "calendar" | "kanban" | "gantt" | "timeline" | "gallery" | "chart")[] | undefined; + } | undefined; + navigation?: { + mode: "split" | "none" | "modal" | "drawer" | "page" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + rowHeight?: "short" | "compact" | "medium" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + pageName?: undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + grouping?: { + fields: { + field: string; + order: "desc" | "asc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + rowActions?: string[] | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "update" | "delete"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + maxRecords?: number | undefined; + batchSize?: number | undefined; + }[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + exportOptions?: { + formats: ("json" | "csv" | "xlsx")[]; + } | { + formats?: ("json" | "csv" | "xlsx")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "modal" | "inline"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + responsive?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "create" | "update" | "delete" | "list" | "bulk")[] | undefined; + } | undefined; + sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("edit" | "view" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "full" | "none" | "no-overlay" | "no-delete"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }; + safeParse(data: unknown, params?: Parameters<(data: unknown, params?: z.core.ParseContext) => z.ZodSafeParseResult<{ + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "user" | "none" | "org" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "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: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "modal" | "page" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | undefined; + hidden?: boolean | undefined; + sortable?: boolean | undefined; + resizable?: boolean | undefined; + wrap?: boolean | undefined; + type?: string | undefined; + pinned?: "left" | "right" | undefined; + summary?: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled" | { + type: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled"; + field?: string | undefined; + } | undefined; + prefix?: { + field: string; + type: "text" | "badge"; + } | undefined; + link?: boolean | undefined; + action?: string | undefined; + }[]; + description?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + name?: string | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + inlineEdit?: boolean | undefined; + performance?: undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "calendar" | "kanban" | "gantt" | "timeline" | "gallery" | "chart")[] | undefined; + } | undefined; + navigation?: { + mode: "split" | "none" | "modal" | "drawer" | "page" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + rowHeight?: "short" | "compact" | "medium" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + pageName?: undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + grouping?: { + fields: { + field: string; + order: "desc" | "asc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + rowActions?: string[] | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "update" | "delete"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + maxRecords?: number | undefined; + batchSize?: number | undefined; + }[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + exportOptions?: { + formats: ("json" | "csv" | "xlsx")[]; + } | { + formats?: ("json" | "csv" | "xlsx")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "modal" | "inline"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + responsive?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "create" | "update" | "delete" | "list" | "bulk")[] | undefined; + } | undefined; + sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("edit" | "view" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "full" | "none" | "no-overlay" | "no-delete"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }>>[1]): z.ZodSafeParseResult<{ + name: string; + isSystem: boolean; + datasource: string; + fields: Record; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + managedBy?: "config" | "platform" | "system-data" | "engine-owned" | "append-only" | "better-auth" | undefined; + ownership?: "user" | "none" | "org" | "business_unit" | undefined; + userActions?: { + create?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + import?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + edit?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + } | undefined; + delete?: boolean | { + enabled?: boolean | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + disabledWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + 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; + external?: { + writable: boolean; + remoteName?: string | undefined; + remoteSchema?: string | undefined; + columnMap?: Record | undefined; + introspectedAt?: string | undefined; + ignoreColumns?: string[] | undefined; + } | undefined; + indexes?: { + fields: string[]; + unique: boolean | "global" | "organization"; + name?: string | undefined; + type?: undefined; + partial?: undefined; + }[] | undefined; + fieldGroups?: { + key: string; + label: string; + collapse: "none" | "expanded" | "collapsed"; + icon?: string | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + defaultExpanded?: boolean | undefined; + collapsible?: boolean | undefined; + collapsed?: boolean | undefined; + }[] | undefined; + tenancy?: { + enabled: boolean; + tenantField?: string | undefined; + organizationField?: string | undefined; + } | undefined; + access?: { + default: "public" | "private"; + } | undefined; + requiredPermissions?: string[] | { + read?: string[] | undefined; + create?: string[] | undefined; + update?: string[] | undefined; + delete?: string[] | undefined; + } | undefined; + lifecycle?: { + class: "record" | "audit" | "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: "month" | "day" | "week"; + } | undefined; + archive?: { + after: string; + to: string; + keep?: string | undefined; + } | undefined; + reclaim?: boolean | undefined; + } | undefined; + fileAccessDelegate?: string | undefined; + validations?: BaseValidationRuleShape[] | undefined; + activityMilestones?: { + field: string; + value: string; + summary: string; + type?: string | undefined; + }[] | undefined; + nameField?: string | undefined; + displayNameField?: string | undefined; + titleFormat?: { + dialect: "template"; + source: string; + } | { + dialect: "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + highlightFields?: string[] | undefined; + stageField?: string | false | undefined; + editMode?: "modal" | "page" | undefined; + listViews?: Record & { + key?: never; + defaultValue?: never; + }) | undefined; + width?: number | undefined; + align?: "left" | "right" | "center" | undefined; + hidden?: boolean | undefined; + sortable?: boolean | undefined; + resizable?: boolean | undefined; + wrap?: boolean | undefined; + type?: string | undefined; + pinned?: "left" | "right" | undefined; + summary?: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled" | { + type: "count" | "none" | "min" | "max" | "sum" | "avg" | "count_empty" | "count_filled" | "count_unique" | "percent_empty" | "percent_filled"; + field?: string | undefined; + } | undefined; + prefix?: { + field: string; + type: "text" | "badge"; + } | undefined; + link?: boolean | undefined; + action?: string | undefined; + }[]; + description?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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; + sort?: { + field: string; + order: "desc" | "asc"; + }[] | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + name?: string | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + tree?: { + parentField?: string | undefined; + labelField?: string | undefined; + fields?: string[] | undefined; + defaultExpandedDepth?: number | undefined; + } | undefined; + inlineEdit?: boolean | undefined; + performance?: undefined; + calendar?: { + startDateField: string; + endDateField?: string | undefined; + titleField?: string | undefined; + colorField?: string | undefined; + allDayField?: string | undefined; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + appearance?: { + showDescription: boolean; + allowedVisualizations?: ("map" | "tree" | "grid" | "calendar" | "kanban" | "gantt" | "timeline" | "gallery" | "chart")[] | undefined; + } | undefined; + navigation?: { + mode: "split" | "none" | "modal" | "drawer" | "page" | "popover" | "new_window"; + preventNavigation: boolean; + openNewTab: boolean; + size: "full" | "md" | "auto" | "sm" | "lg" | "xl"; + view?: undefined; + width?: string | number | undefined; + } | undefined; + resizable?: boolean | undefined; + kanban?: { + groupByField: string; + columns: string[]; + 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?: "year" | "month" | "day" | "week" | "quarter" | 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; + scale: "year" | "month" | "day" | "hour" | "week" | "quarter"; + endDateField?: string | undefined; + groupByField?: string | undefined; + colorField?: string | undefined; + } | undefined; + gallery?: { + coverFit: "cover" | "contain"; + cardSize: "small" | "medium" | "large"; + coverField?: string | undefined; + titleField?: string | undefined; + visibleFields?: string[] | undefined; + } | undefined; + chart?: { + chartType: "line" | "bar" | "area" | "pie" | "scatter"; + dataset: string; + values: string[]; + dimensions?: string[] | undefined; + } | undefined; + rowHeight?: "short" | "compact" | "medium" | "tall" | "extra_tall" | undefined; + rowColor?: { + field: string; + colors?: Record | undefined; + } | undefined; + tabs?: { + name: string; + pinned: boolean; + isDefault: boolean; + visible: boolean; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + order?: number | undefined; + }[] | undefined; + searchableFields?: string[] | undefined; + filterableFields?: string[] | undefined; + compactToolbar?: boolean | undefined; + selection?: { + type: "none" | "multiple" | "single"; + } | undefined; + pagination?: { + pageSize: number; + pageSizeOptions?: number[] | undefined; + } | undefined; + pageName?: undefined; + sharing?: { + type: "personal" | "collaborative"; + lockedBy?: string | undefined; + } | undefined; + grouping?: { + fields: { + field: string; + order: "desc" | "asc"; + collapsed: boolean; + }[]; + } | undefined; + hiddenFields?: string[] | undefined; + fieldOrder?: string[] | undefined; + rowActions?: string[] | undefined; + bulkActions?: string[] | undefined; + bulkActionDefs?: { + name: string; + operation: "custom" | "update" | "delete"; + label?: string | undefined; + icon?: string | undefined; + variant?: "primary" | "secondary" | "danger" | "ghost" | "outline" | undefined; + execution?: "aggregate" | "perRecord" | undefined; + patch?: Record | undefined; + params?: { + [x: string]: unknown; + name: string; + type: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "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; + }[] | undefined; + confirmText?: string | undefined; + confirmLabel?: string | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + maxRecords?: number | undefined; + batchSize?: number | undefined; + }[] | undefined; + conditionalFormatting?: { + condition: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + }; + style: Record; + }[] | undefined; + exportOptions?: { + formats: ("json" | "csv" | "xlsx")[]; + } | { + formats?: ("json" | "csv" | "xlsx")[] | undefined; + maxRecords?: number | undefined; + includeHeaders?: boolean | undefined; + fileNamePrefix?: string | undefined; + streaming?: boolean | undefined; + } | undefined; + userActions?: { + sort: boolean; + search: boolean; + filter: boolean; + refresh: boolean; + rowHeight: boolean; + group: boolean; + addRecordForm: boolean; + editInline: boolean; + hideFields: boolean; + rowColor: boolean; + buttons?: string[] | undefined; + } | undefined; + addRecord?: { + enabled: boolean; + position: "top" | "bottom" | "both"; + mode: "form" | "modal" | "inline"; + formView?: string | undefined; + } | undefined; + showRecordCount?: boolean | undefined; + allowPrinting?: boolean | undefined; + emptyState?: { + title?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + message?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + icon?: string | undefined; + } | undefined; + responsive?: undefined; + striped?: undefined; + bordered?: undefined; + virtualScroll?: undefined; + userFilters?: { + element: "toggle" | "dropdown"; + 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; + searchable: boolean; + apiEnabled: boolean; + files: boolean; + feeds: boolean; + activities: boolean; + clone: boolean; + apiMethods?: ("get" | "create" | "update" | "delete" | "list" | "bulk")[] | undefined; + } | undefined; + sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined; + publicSharing?: { + enabled: boolean; + allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined; + allowedPermissions?: ("edit" | "view" | "comment")[] | undefined; + maxExpiryDays?: number | undefined; + redactFields?: string[] | undefined; + eligibility?: string | undefined; + } | undefined; + actions?: Omit<{ + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">[] | undefined; + protection?: { + lock: "full" | "none" | "no-overlay" | "no-delete"; + reason: string; + docsUrl?: string | undefined; + } | undefined; + }>; + create: >; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodOptional; + pluralLabel: z.ZodOptional; + description: z.ZodOptional; + icon: z.ZodOptional; + isSystem: z.ZodDefault>; + managedBy: z.ZodOptional>; + ownership: z.ZodOptional>; + userActions: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + import: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + edit: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + delete: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + disabledWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>]>>; + exportCsv: z.ZodOptional; + }, z.core.$strict>>; + systemFields: z.ZodOptional, z.ZodObject<{ + tenant: z.ZodOptional; + audit: z.ZodOptional; + }, z.core.$strict>]>>; + datasource: z.ZodDefault>; + external: z.ZodOptional; + remoteSchema: z.ZodOptional; + writable: z.ZodDefault; + columnMap: z.ZodOptional>; + introspectedAt: z.ZodOptional; + ignoreColumns: z.ZodOptional>; + }, z.core.$strict>>; + fields: z.ZodRecord>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + tags: "tags"; + email: "email"; + phone: "phone"; + user: "user"; + datetime: "datetime"; + location: "location"; + text: "text"; + url: "url"; + time: "time"; + formula: "formula"; + textarea: "textarea"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + vector: "vector"; + }>; + description: z.ZodOptional; + format: z.ZodOptional; + required: z.ZodDefault; + storage: z.ZodOptional; + }, z.core.$strict>>; + searchable: z.ZodDefault; + multiple: z.ZodDefault; + unique: z.ZodOptional, z.ZodLiteral<"organization">]>>; + defaultValue: z.ZodOptional; + maxLength: z.ZodOptional; + minLength: z.ZodOptional; + valueDomain: z.ZodOptional>; + rows: z.ZodOptional; + precision: z.ZodOptional; + scale: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + useGrouping: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + options: z.ZodOptional; + color: z.ZodOptional; + default: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + reference: z.ZodOptional; + referenceVia: z.ZodOptional; + deleteBehavior: z.ZodOptional>; + inlineEdit: z.ZodOptional]>>; + inlineTitle: z.ZodOptional; + inlineColumns: z.ZodOptional; + type: z.ZodOptional>; + width: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + prefix: z.ZodOptional; + step: z.ZodOptional; + reference: z.ZodOptional; + displayField: z.ZodOptional; + idField: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + defaultHidden: z.ZodOptional; + computed: z.ZodOptional; + expr: z.ZodOptional; + scale: z.ZodOptional; + autofill: z.ZodOptional; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + inlineAmountField: z.ZodOptional; + relatedList: z.ZodOptional]>>; + relatedListTitle: z.ZodOptional; + relatedListColumns: z.ZodOptional>; + relatedListFilter: z.ZodOptional>>; + displayField: z.ZodOptional; + descriptionField: z.ZodOptional; + lookupColumns: z.ZodOptional; + width: z.ZodOptional; + type: z.ZodOptional; + }, z.core.$strict>]>>>; + lookupPageSize: z.ZodOptional; + lookupFilters: z.ZodOptional; + value: z.ZodAny; + }, z.core.$strict>>>; + dependsOn: z.ZodOptional; + }, z.core.$strict>]>>>; + allowCreate: z.ZodOptional; + expression: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + returnType: z.ZodOptional>; + summaryOperations: z.ZodOptional; + relationshipField: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strict>>; + language: z.ZodOptional; + step: z.ZodOptional; + currencyConfig: z.ZodOptional; + currencyMode: z.ZodDefault>; + defaultCurrency: z.ZodDefault; + }, z.core.$strict>>; + dimensions: z.ZodOptional; + trackHistory: z.ZodOptional; + group: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + conditionalRequired: z.ZodOptional; + widget: z.ZodOptional; + hidden: z.ZodDefault; + internal: z.ZodOptional; + readonly: z.ZodDefault; + requiredPermissions: z.ZodOptional>; + maskingRule: z.ZodOptional, z.ZodObject<{ + keepHead: z.ZodNumber; + keepTail: z.ZodNumber; + }, z.core.$strict>]>>; + ackPlaintextMasking: z.ZodOptional; + system: z.ZodOptional; + sortable: z.ZodDefault>; + inlineHelpText: z.ZodOptional; + placeholder: z.ZodOptional; + autonumberFormat: z.ZodOptional; + externalId: z.ZodDefault; + }, z.core.$strict>>; + indexes: z.ZodOptional; + fields: z.ZodArray; + unique: z.ZodDefault, z.ZodLiteral<"organization">]>>>; + type: z.ZodOptional; + partial: z.ZodOptional; + }, z.core.$strict>>>; + fieldGroups: z.ZodOptional; + description: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + collapse: z.ZodDefault>>; + defaultExpanded: z.ZodOptional; + collapsible: z.ZodOptional; + collapsed: z.ZodOptional; + }, z.core.$strict>>>; + tenancy: z.ZodOptional; + organizationField: z.ZodOptional; + }, z.core.$strict>>; + access: z.ZodOptional>; + }, z.core.$strict>>; + requiredPermissions: z.ZodOptional, z.ZodObject<{ + read: z.ZodOptional>; + create: z.ZodOptional>; + update: z.ZodOptional>; + delete: z.ZodOptional>; + }, z.core.$strict>]>>; + lifecycle: z.ZodOptional; + retention: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + ttl: z.ZodOptional>; + }, z.core.$strict>, z.ZodObject<{ + $null: z.ZodBoolean; + }, z.core.$strict>]>>>; + }, z.core.$strict>>; + storage: z.ZodOptional; + shards: z.ZodNumber; + unit: z.ZodEnum<{ + month: "month"; + day: "day"; + week: "week"; + }>; + }, z.core.$strict>>; + archive: z.ZodOptional; + }, z.core.$strict>>; + reclaim: z.ZodOptional; + }, z.core.$strict>>; + fileAccessDelegate: z.ZodOptional; + validations: z.ZodOptional>>>; + activityMilestones: z.ZodOptional; + }, z.core.$strict>>>; + nameField: z.ZodOptional; + displayNameField: z.ZodOptional; + titleFormat: z.ZodOptional>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"template">; + }, z.core.$strip>]>>; + highlightFields: z.ZodOptional>; + stageField: z.ZodOptional]>>; + editMode: z.ZodOptional>; + listViews: z.ZodOptional>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + map: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + sort: z.ZodOptional; + }, z.core.$strict>>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + name: z.ZodOptional; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + inlineEdit: z.ZodOptional; + performance: z.ZodOptional; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + count: "count"; + none: "none"; + min: "min"; + max: "max"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + resizable: z.ZodOptional; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + compactToolbar: z.ZodOptional; + selection: z.ZodOptional>; + }, z.core.$strict>>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + pageName: z.ZodOptional; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + rowActions: z.ZodOptional>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + update: "update"; + delete: "delete"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + tags: "tags"; + email: "email"; + phone: "phone"; + user: "user"; + datetime: "datetime"; + location: "location"; + text: "text"; + url: "url"; + time: "time"; + formula: "formula"; + textarea: "textarea"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "csv" | "xlsx")[]; + }, ("json" | "csv" | "xlsx")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + enable: z.ZodOptional; + searchable: z.ZodDefault; + apiEnabled: z.ZodDefault; + apiMethods: z.ZodOptional>>; + files: z.ZodDefault; + feeds: z.ZodDefault; + activities: z.ZodDefault; + clone: z.ZodDefault; + }, z.core.$strict>>; + sharingModel: z.ZodOptional>; + externalSharingModel: z.ZodOptional>; + publicSharing: z.ZodOptional; + allowedAudiences: z.ZodOptional>>; + allowedPermissions: z.ZodOptional>>; + maxExpiryDays: z.ZodOptional; + redactFields: z.ZodOptional>; + eligibility: z.ZodOptional; + }, z.core.$strict>>; + actions: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + objectName: z.ZodOptional; + icon: z.ZodOptional; + locations: z.ZodOptional>>; + component: z.ZodOptional>; + type: z.ZodDefault>; + target: z.ZodOptional; + openIn: z.ZodOptional>; + body: z.ZodOptional; + source: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + language: z.ZodLiteral<"js">; + source: z.ZodString; + capabilities: z.ZodDefault>>; + timeoutMs: z.ZodOptional; + memoryMb: z.ZodOptional; + }, z.core.$strict>], "language">>; + operation: z.ZodOptional>; + patch: z.ZodOptional>; + execution: z.ZodOptional>; + execute: z.ZodOptional; + params: z.ZodOptional; + field: z.ZodOptional; + objectOverride: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + required: z.ZodDefault>; + options: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + value: z.ZodString; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + placeholder: z.ZodOptional; + helpText: z.ZodOptional; + defaultValue: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + reference: z.ZodOptional; + defaultFromRow: z.ZodOptional; + carryOver: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiresFeature: z.ZodOptional>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">, { + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }>>>>; + variant: z.ZodOptional>; + order: z.ZodOptional; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + successMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + errorMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + refreshAfter: z.ZodDefault; + undoable: z.ZodOptional; + resultDialog: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + acknowledge: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiresFeature: z.ZodOptional>; + disabled: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiredPermissions: z.ZodOptional>; + shortcut: z.ZodOptional; + bulkEnabled: z.ZodOptional; + ai: z.ZodOptional; + description: z.ZodOptional; + category: z.ZodOptional>; + paramHints: z.ZodOptional; + enum: z.ZodOptional>>; + examples: z.ZodOptional>; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional>; + requiresConfirmation: z.ZodOptional; + }, z.core.$strict>>; + recordIdParam: z.ZodOptional; + recordIdField: z.ZodOptional; + bodyShape: z.ZodOptional, z.ZodObject<{ + wrap: z.ZodString; + }, z.core.$strict>]>>; + method: z.ZodOptional>; + bodyExtra: z.ZodOptional>; + mode: z.ZodOptional>; + opensInNewTab: z.ZodOptional; + newTabUrl: z.ZodOptional; + onSuccess: z.ZodOptional>; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "requiresFeature">, { + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "script" | "modal" | "flow" | "api"; + refreshAfter: boolean; + _lock?: "full" | "none" | "no-overlay" | "no-delete" | 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; + }) | 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; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("api.read" | "api.write" | "api.transaction" | "crypto.uuid" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "data" | "action" | "flow" | "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?: "PUT" | "POST" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "create" | "delete" | "edit" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>>(config: T & Record, never> & (T extends { + actions: infer As extends readonly unknown[]; + } ? { + actions: { [I in keyof As]: As[I] extends infer T_1 ? T_1 extends As[I] ? T_1 extends { + params: infer Ps extends readonly unknown[]; + } ? T_1 & { + params: { [I_1 in keyof Ps]: Ps[I_1] & Record, never>; }; + } : T_1 : never : never; }; + } : unknown)) => Omit & Pick; + }; +}, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"rename_object">; + oldName: z.ZodString; + newName: z.ZodString; +}, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"delete_object">; + objectName: z.ZodString; +}, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"execute_sql">; + sql: z.ZodString; + description: z.ZodOptional; +}, z.core.$strip>], "type">; + +// ── MigrationPlan (type) ── +type MigrationPlan = z.input; + +// ── MigrationPlanParsed (type) ── +type MigrationPlanParsed = z.infer; + +// ── MigrationPlanSchema (const) ── +declare const MigrationPlanSchema: z.ZodObject<{ + statements: z.ZodDefault; + rollbackSql: z.ZodOptional; + order: z.ZodNumber; + }, z.core.$strip>>>; + dialect: z.ZodString; + reversible: z.ZodDefault; + estimatedDurationMs: z.ZodOptional; +}, z.core.$strip>; + +// ── MigrationStatement (type) ── +type MigrationStatement = z.input; + +// ── MigrationStatementParsed (type) ── +type MigrationStatementParsed = z.infer; + +// ── MigrationStatementSchema (const) ── +declare const MigrationStatementSchema: z.ZodObject<{ + sql: z.ZodString; + reversible: z.ZodDefault; + rollbackSql: z.ZodOptional; + order: z.ZodNumber; +}, z.core.$strip>; + +// ── ModifyFieldOperation (const) ── +declare const ModifyFieldOperation: z.ZodObject<{ + type: z.ZodLiteral<"modify_field">; + objectName: z.ZodString; + fieldName: z.ZodString; + changes: z.ZodRecord; +}, z.core.$strip>; + +// ── ModifyFieldOperation (type) ── +type ModifyFieldOperation = z.input; + +// ── MultipartUploadConfig (type) ── +type MultipartUploadConfig = z.input; + +// ── MultipartUploadConfigParsed (type) ── +type MultipartUploadConfigParsed = z.infer; + +// ── MultipartUploadConfigSchema (const) ── +declare const MultipartUploadConfigSchema: z.ZodObject<{ + enabled: z.ZodDefault; + partSize: z.ZodDefault; + maxParts: z.ZodDefault; + threshold: z.ZodDefault; + maxConcurrent: z.ZodDefault; + abortIncompleteAfterDays: z.ZodOptional; +}, z.core.$strip>; + +// ── MutualTLSConfig (type) ── +type MutualTLSConfig = z.input; + +// ── MutualTLSConfigParsed (type) ── +type MutualTLSConfigParsed = z.infer; + +// ── MutualTLSConfigSchema (const) ── +declare const MutualTLSConfigSchema: z.ZodObject<{ + enabled: z.ZodDefault; + clientCertRequired: z.ZodDefault; + trustedCAs: z.ZodArray; + crlUrl: z.ZodOptional; + ocspUrl: z.ZodOptional; + certificateValidation: z.ZodEnum<{ + strict: "strict"; + none: "none"; + relaxed: "relaxed"; + }>; + allowedCNs: z.ZodOptional>; + allowedOUs: z.ZodOptional>; + pinning: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── NOTIFICATION_EVENT_MIGRATION_ID (const) ── +declare const NOTIFICATION_EVENT_MIGRATION_ID = "adr-0030-notification-event"; + +// ── NavNodeLike (interface) ── +interface NavNodeLike { + id?: string; + label?: string; + children?: NavNodeLike[]; + [key: string]: any; +} + +// ── NotificationChannel (type) ── +type NotificationChannel = z.input; + +// ── NotificationChannelSchema (const) ── +declare const NotificationChannelSchema: z.ZodEnum<{ + push: "push"; + email: "email"; + sms: "sms"; + "in-app": "in-app"; + slack: "slack"; + teams: "teams"; + webhook: "webhook"; +}>; + +// ── OPERATION_MESSAGE_FALLBACK_LOCALE (const) ── +declare const OPERATION_MESSAGE_FALLBACK_LOCALE = "en"; + +// ── OPERATION_MESSAGE_KEY_PREFIX (const) ── +declare const OPERATION_MESSAGE_KEY_PREFIX = "errors"; + +// ── ORSet (type) ── +type ORSet = z.input; + +// ── ORSetElement (type) ── +type ORSetElement = z.input; + +// ── ORSetElementParsed (type) ── +type ORSetElementParsed = z.infer; + +// ── ORSetElementSchema (const) ── +declare const ORSetElementSchema: z.ZodObject<{ + value: z.ZodUnknown; + timestamp: z.ZodString; + replicaId: z.ZodString; + uid: z.ZodString; + removed: z.ZodDefault>; +}, z.core.$strip>; + +// ── ORSetParsed (type) ── +type ORSetParsed = z.infer; + +// ── ORSetSchema (const) ── +declare const ORSetSchema: z.ZodObject<{ + type: z.ZodLiteral<"or-set">; + elements: z.ZodArray>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── OTComponent (type) ── +type OTComponent = z.input; + +// ── OTComponentSchema (const) ── +declare const OTComponentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ + type: z.ZodLiteral<"insert">; + text: z.ZodString; + attributes: z.ZodOptional>; +}, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"delete">; + count: z.ZodNumber; +}, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"retain">; + count: z.ZodNumber; + attributes: z.ZodOptional>; +}, z.core.$strip>], "type">; + +// ── OTOperation (type) ── +type OTOperation = z.input; + +// ── OTOperationSchema (const) ── +declare const OTOperationSchema: z.ZodObject<{ + operationId: z.ZodString; + documentId: z.ZodString; + userId: z.ZodString; + sessionId: z.ZodString; + components: z.ZodArray; + text: z.ZodString; + attributes: z.ZodOptional>; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"delete">; + count: z.ZodNumber; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"retain">; + count: z.ZodNumber; + attributes: z.ZodOptional>; + }, z.core.$strip>], "type">>; + baseVersion: z.ZodNumber; + timestamp: z.ZodString; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── OTOperationType (const) ── +declare const OTOperationType: z.ZodEnum<{ + delete: "delete"; + insert: "insert"; + retain: "retain"; +}>; + +// ── OTOperationType (type) ── +type OTOperationType = z.input; + +// ── OTTransformResult (type) ── +type OTTransformResult = z.input; + +// ── OTTransformResultSchema (const) ── +declare const OTTransformResultSchema: z.ZodObject<{ + operation: z.ZodObject<{ + operationId: z.ZodString; + documentId: z.ZodString; + userId: z.ZodString; + sessionId: z.ZodString; + components: z.ZodArray; + text: z.ZodString; + attributes: z.ZodOptional>; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"delete">; + count: z.ZodNumber; + }, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"retain">; + count: z.ZodNumber; + attributes: z.ZodOptional>; + }, z.core.$strip>], "type">>; + baseVersion: z.ZodNumber; + timestamp: z.ZodString; + metadata: z.ZodOptional>; + }, z.core.$strip>; + transformed: z.ZodBoolean; + conflicts: z.ZodOptional>; +}, z.core.$strip>; + +// ── ObjectFieldLike (interface) ── +interface ObjectFieldLike { + name?: string; + label?: string; + help?: string; + description?: string; + options?: Array<{ + label?: string; + value: string | number | boolean; + }>; + [key: string]: any; +} + +// ── ObjectLike (interface) ── +interface ObjectLike { + name: string; + label?: string; + pluralLabel?: string; + description?: string; + fields?: Record | ObjectFieldLike[]; + /** Actions declared inline on the object (`Object.actions`). */ + actions?: ActionLike[]; +} + +// ── ObjectMetadata (type) ── +type ObjectMetadata = z.input; + +// ── ObjectMetadataSchema (const) ── +declare const ObjectMetadataSchema: z.ZodObject<{ + contentType: z.ZodString; + contentLength: z.ZodNumber; + contentEncoding: z.ZodOptional; + contentDisposition: z.ZodOptional; + contentLanguage: z.ZodOptional; + cacheControl: z.ZodOptional; + etag: z.ZodOptional; + lastModified: z.ZodOptional; + versionId: z.ZodOptional; + storageClass: z.ZodOptional>; + encryption: z.ZodOptional; + }, z.core.$strip>>; + custom: z.ZodOptional>; +}, z.core.$strip>; + +// ── ObjectStorageConfig (type) ── +type ObjectStorageConfig = z.input; + +// ── ObjectStorageConfigParsed (type) ── +type ObjectStorageConfigParsed = z.infer; + +// ── ObjectStorageConfigSchema (const) ── +declare const ObjectStorageConfigSchema: z.ZodObject<{ + name: z.ZodString; + label: z.ZodString; + provider: z.ZodEnum<{ + local: "local"; + s3: "s3"; + azure_blob: "azure_blob"; + gcs: "gcs"; + minio: "minio"; + r2: "r2"; + spaces: "spaces"; + wasabi: "wasabi"; + backblaze: "backblaze"; + }>; + scope: z.ZodDefault>>; + connection: z.ZodObject<{ + accessKeyId: z.ZodOptional; + secretAccessKey: z.ZodOptional; + sessionToken: z.ZodOptional; + accountName: z.ZodOptional; + accountKey: z.ZodOptional; + sasToken: z.ZodOptional; + environmentId: z.ZodOptional; + credentials: z.ZodOptional; + endpoint: z.ZodOptional; + region: z.ZodOptional; + useSSL: z.ZodDefault; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; + }, z.core.$strip>; + buckets: z.ZodDefault; + provider: z.ZodEnum<{ + local: "local"; + s3: "s3"; + azure_blob: "azure_blob"; + gcs: "gcs"; + minio: "minio"; + r2: "r2"; + spaces: "spaces"; + wasabi: "wasabi"; + backblaze: "backblaze"; + }>; + endpoint: z.ZodOptional; + pathStyle: z.ZodDefault; + versioning: z.ZodDefault; + encryption: z.ZodOptional; + algorithm: z.ZodDefault>; + kmsKeyId: z.ZodOptional; + }, z.core.$strip>>; + accessControl: z.ZodOptional>; + allowedOrigins: z.ZodOptional>; + allowedMethods: z.ZodOptional>>; + allowedHeaders: z.ZodOptional>; + exposeHeaders: z.ZodOptional>; + maxAgeSeconds: z.ZodOptional; + maxAge: z.ZodOptional; + corsEnabled: z.ZodDefault; + publicAccess: z.ZodOptional; + allowPublicWrite: z.ZodDefault; + allowPublicList: z.ZodDefault; + }, z.core.$strip>>; + allowedIps: z.ZodOptional>; + blockedIps: z.ZodOptional>; + }, z.core.$strip>>; + lifecyclePolicy: z.ZodOptional; + rules: z.ZodDefault; + action: z.ZodEnum<{ + abort: "abort"; + delete: "delete"; + transition: "transition"; + }>; + prefix: z.ZodOptional; + tags: z.ZodOptional>; + daysAfterCreation: z.ZodOptional; + daysAfterModification: z.ZodOptional; + targetStorageClass: z.ZodOptional>; + }, z.core.$strip>>>; + }, z.core.$strip>>; + multipartConfig: z.ZodOptional; + partSize: z.ZodDefault; + maxParts: z.ZodDefault; + threshold: z.ZodDefault; + maxConcurrent: z.ZodDefault; + abortIncompleteAfterDays: z.ZodOptional; + }, z.core.$strip>>; + tags: z.ZodOptional>; + description: z.ZodOptional; + enabled: z.ZodDefault; + }, z.core.$strip>>>; + defaultBucket: z.ZodOptional; + location: z.ZodOptional; + quota: z.ZodOptional; + options: z.ZodOptional>; + enabled: z.ZodDefault; + description: z.ZodOptional; +}, z.core.$strip>; + +// ── ObjectTranslationData (type) ── +type ObjectTranslationData = z.input; + +// ── ObjectTranslationDataSchema (const) ── +declare const ObjectTranslationDataSchema: z.ZodObject<{ + label: z.ZodOptional; + pluralLabel: z.ZodOptional; + description: z.ZodOptional; + fields: z.ZodOptional; + help: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + _views: z.ZodOptional; + description: z.ZodOptional; + emptyState: z.ZodOptional; + message: z.ZodOptional; + }, z.core.$strict>>; + bulkActions: z.ZodOptional; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + params: z.ZodOptional; + help: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + _actions: z.ZodOptional; + description: z.ZodOptional; + confirmText: z.ZodOptional; + successMessage: z.ZodOptional; + params: z.ZodOptional; + helpText: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + resultDialog: z.ZodOptional; + description: z.ZodOptional; + acknowledge: z.ZodOptional; + fields: z.ZodOptional>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + _sections: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + _tabs: z.ZodOptional; + }, z.core.$strict>>>; + _validations: z.ZodOptional; + }, z.core.$strict>>>; +}, z.core.$strict>; + +// ── OidcProviderConfig (type) ── +type OidcProviderConfig = z.input; + +// ── OidcProviderConfigSchema (const) ── +declare const OidcProviderConfigSchema: z.ZodObject<{ + providerId: z.ZodString; + name: z.ZodOptional; + discoveryUrl: z.ZodOptional; + issuer: z.ZodOptional; + authorizationUrl: z.ZodOptional; + tokenUrl: z.ZodOptional; + userInfoUrl: z.ZodOptional; + clientId: z.ZodString; + clientSecret: z.ZodString; + scopes: z.ZodOptional>; + pkce: z.ZodOptional; +}, z.core.$strip>; + +// ── OidcProvidersConfig (type) ── +type OidcProvidersConfig = z.input; + +// ── OidcProvidersConfigSchema (const) ── +declare const OidcProvidersConfigSchema: z.ZodOptional; + discoveryUrl: z.ZodOptional; + issuer: z.ZodOptional; + authorizationUrl: z.ZodOptional; + tokenUrl: z.ZodOptional; + userInfoUrl: z.ZodOptional; + clientId: z.ZodString; + clientSecret: z.ZodString; + scopes: z.ZodOptional>; + pkce: z.ZodOptional; +}, z.core.$strip>>>; + +// ── OnceSchedule (type) ── +type OnceSchedule = z.input; + +// ── OnceScheduleSchema (const) ── +declare const OnceScheduleSchema: z.ZodObject<{ + type: z.ZodLiteral<"once">; + at: z.ZodString; +}, z.core.$strip>; + +// ── OpenTelemetryCompatibility (type) ── +type OpenTelemetryCompatibility = z.input; + +// ── OpenTelemetryCompatibilityParsed (type) ── +type OpenTelemetryCompatibilityParsed = z.infer; + +// ── OpenTelemetryCompatibilitySchema (const) ── +declare const OpenTelemetryCompatibilitySchema: z.ZodObject<{ + sdkVersion: z.ZodOptional; + exporter: z.ZodObject<{ + type: z.ZodEnum<{ + custom: "custom"; + console: "console"; + datadog: "datadog"; + jaeger: "jaeger"; + otlp_http: "otlp_http"; + otlp_grpc: "otlp_grpc"; + zipkin: "zipkin"; + honeycomb: "honeycomb"; + lightstep: "lightstep"; + newrelic: "newrelic"; + }>; + endpoint: z.ZodOptional; + protocol: z.ZodOptional; + headers: z.ZodOptional>; + timeoutMs: z.ZodDefault>; + timeout: z.ZodOptional; + compression: z.ZodDefault>>; + batch: z.ZodOptional>; + maxQueueSize: z.ZodDefault>; + exportTimeoutMs: z.ZodDefault>; + scheduledDelayMs: z.ZodDefault>; + exportTimeout: z.ZodOptional; + scheduledDelay: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + resource: z.ZodObject<{ + serviceName: z.ZodString; + serviceVersion: z.ZodOptional; + serviceInstanceId: z.ZodOptional; + serviceNamespace: z.ZodOptional; + deploymentEnvironment: z.ZodOptional; + attributes: z.ZodOptional, z.ZodArray, z.ZodArray]>>>; + }, z.core.$strip>; + instrumentation: z.ZodOptional>; + libraries: z.ZodOptional>; + disabledLibraries: z.ZodOptional>; + }, z.core.$strip>>; + semanticConventionsVersion: z.ZodOptional; +}, z.core.$strip>; + +// ── OtelExporterType (const) ── +declare const OtelExporterType: z.ZodEnum<{ + custom: "custom"; + console: "console"; + datadog: "datadog"; + jaeger: "jaeger"; + otlp_http: "otlp_http"; + otlp_grpc: "otlp_grpc"; + zipkin: "zipkin"; + honeycomb: "honeycomb"; + lightstep: "lightstep"; + newrelic: "newrelic"; +}>; + +// ── OtelExporterType (type) ── +type OtelExporterType = z.input; + +// ── PAGE_COMPONENT_COPY_KEYS (const) ── +declare const PAGE_COMPONENT_COPY_KEYS: readonly ["title", "description", "label", "placeholder", "emptyText"]; + +// ── PKG_CONVENTIONS (const) ── +declare const PKG_CONVENTIONS: { + /** + * Standard directories within ObjectStack packages. + * All packages MUST follow these conventions for the runtime to locate resources. + */ + readonly DIRS: { + /** + * Location for schema definitions (Zod schemas, JSON schemas). + * Path: src/schemas + */ + readonly SCHEMA: "src/schemas"; + /** + * Location for server-side code and triggers. + * Path: src/server + */ + readonly SERVER: "src/server"; + /** + * Location for server-side trigger functions. + * Path: src/triggers + */ + readonly TRIGGERS: "src/triggers"; + /** + * Location for client-side code. + * Path: src/client + */ + readonly CLIENT: "src/client"; + /** + * Location for client-side page components. + * Path: src/client/pages + */ + readonly PAGES: "src/client/pages"; + /** + * Location for static assets (images, fonts, etc.). + * Path: assets + */ + readonly ASSETS: "assets"; + }; + /** + * Standard file names within ObjectStack packages. + */ + readonly FILES: { + /** + * Package manifest configuration file. + * File: objectstack.config.ts + */ + readonly MANIFEST: "objectstack.config.ts"; + /** + * Main entry point for the package. + * File: src/index.ts + */ + readonly ENTRY: "src/index.ts"; + }; +}; + +// ── PLATFORM_OBJECTS_BY_PACKAGE (const) ── +declare const PLATFORM_OBJECTS_BY_PACKAGE: Readonly>; + +// ── PLATFORM_OBJECT_PREFIXES (const) ── +declare const PLATFORM_OBJECT_PREFIXES: readonly string[]; + +// ── PLATFORM_PROVIDED_OBJECT_NAMES (const) ── +declare const PLATFORM_PROVIDED_OBJECT_NAMES: ReadonlySet; + +// ── PLATFORM_PROVIDED_TOOL_NAMES (const) ── +declare const PLATFORM_PROVIDED_TOOL_NAMES: ReadonlySet; + +// ── PLATFORM_TOOLS_BY_PACKAGE (const) ── +declare const PLATFORM_TOOLS_BY_PACKAGE: Readonly>; + +// ── PLATFORM_TOOL_FAMILY_PREFIXES (const) ── +declare const PLATFORM_TOOL_FAMILY_PREFIXES: readonly string[]; + +// ── PNCounter (type) ── +type PNCounter = z.input; + +// ── PNCounterSchema (const) ── +declare const PNCounterSchema: z.ZodObject<{ + type: z.ZodLiteral<"pn-counter">; + positive: z.ZodRecord; + negative: z.ZodRecord; +}, z.core.$strip>; + +// ── PackageDirectory (type) ── +type PackageDirectory = typeof PKG_CONVENTIONS.DIRS[keyof typeof PKG_CONVENTIONS.DIRS]; + +// ── PackageFile (type) ── +type PackageFile = typeof PKG_CONVENTIONS.FILES[keyof typeof PKG_CONVENTIONS.FILES]; + +// ── PackagePublishResult (type) ── +type PackagePublishResult = z.input; + +// ── PackagePublishResultSchema (const) ── +declare const PackagePublishResultSchema: z.ZodObject<{ + success: z.ZodBoolean; + packageId: z.ZodString; + version: z.ZodNumber; + publishedAt: z.ZodString; + itemsPublished: z.ZodNumber; + validationErrors: z.ZodOptional>>; +}, z.core.$strip>; + +// ── PageComponentCopyKey (type) ── +type PageComponentCopyKey = typeof PAGE_COMPONENT_COPY_KEYS[number]; + +// ── PageComponentLike (interface) ── +interface PageComponentLike { + type?: string; + /** `PageComponentSchema.id` — the key `pages..components` addresses (#6080). */ + id?: string; + /** The component's own top-level label, where `label` copy lands when present. */ + label?: string; + properties?: Record; + [key: string]: any; +} + +// ── PageLike (interface) ── +interface PageLike { + name: string; + label?: string; + description?: string; + regions?: PageRegionLike[]; + /** + * `PageSchema.slots` — where a `kind: 'slotted'` record page authors its + * components (#16772). Each slot holds one component or an array of them + * (`PageSchema` declares the union per slot); the walk tolerates either and + * passes any other value through untouched. Walked as a ROOT alongside + * `regions[].components[]` — see {@link walkAddressedPageComponents}. + */ + slots?: Record; + /** Bound object for a record page — the `_tabs` fallback binding (#5377). */ + object?: string; + /** + * List/interface page config (`InterfacePageConfigSchema`). Carries the + * `userFilters.tabs` preset bar this resolver translates, and the `source` + * object those presets filter. + */ + interfaceConfig?: { + source?: string; + userFilters?: { + tabs?: ViewTabLike[]; + [key: string]: unknown; + }; + [key: string]: unknown; + }; + [key: string]: any; +} + +// ── PageRegionLike (interface) ── +interface PageRegionLike { + name?: string; + components?: PageComponentLike[]; + [key: string]: any; +} + +// ── Plan (type) ── +type Plan = z.input; + +// ── PlanParsed (type) ── +type PlanParsed = z.infer; + +// ── PlanSchema (const) ── +declare const PlanSchema: z.ZodObject<{ + code: z.ZodString; + label: z.ZodString; + active: z.ZodDefault; + features: z.ZodArray; + limits: z.ZodRecord; + currency: z.ZodOptional>; + priceMonthly: z.ZodOptional; + priceYearly: z.ZodOptional; +}, z.core.$strip>; + +// ── PresignedUrlConfig (type) ── +type PresignedUrlConfig = z.input; + +// ── PresignedUrlConfigSchema (const) ── +declare const PresignedUrlConfigSchema: z.ZodObject<{ + operation: z.ZodEnum<{ + get: "get"; + head: "head"; + delete: "delete"; + put: "put"; + }>; + expiresIn: z.ZodNumber; + contentType: z.ZodOptional; + maxSize: z.ZodOptional; + responseContentType: z.ZodOptional; + responseContentDisposition: z.ZodOptional; +}, z.core.$strip>; + +// ── QueueConfig (const) ── +declare const QueueConfig: z.ZodObject<{ + name: z.ZodString; + concurrency: z.ZodDefault; + rateLimit: z.ZodOptional; + }, z.core.$strip>>; + defaultRetryPolicy: z.ZodOptional; + backoffStrategy: z.ZodDefault>; + initialDelayMs: z.ZodDefault; + maxDelayMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; + }, z.core.$strip>>; + deadLetterQueue: z.ZodOptional; + priority: z.ZodDefault; + autoScale: z.ZodOptional; + minWorkers: z.ZodDefault; + maxWorkers: z.ZodDefault; + scaleUpThreshold: z.ZodDefault; + scaleDownThreshold: z.ZodDefault; + }, z.core.$strip>>; +}, z.core.$strip> & { + create: >(config: T) => T; +}; + +// ── QueueConfig (type) ── +type QueueConfig = z.input; + +// ── QueueConfigParsed (type) ── +type QueueConfigParsed = z.infer; + +// ── QueueConfigSchema (const) ── +declare const QueueConfigSchema: z.ZodObject<{ + name: z.ZodString; + concurrency: z.ZodDefault; + rateLimit: z.ZodOptional; + }, z.core.$strip>>; + defaultRetryPolicy: z.ZodOptional; + backoffStrategy: z.ZodDefault>; + initialDelayMs: z.ZodDefault; + maxDelayMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; + }, z.core.$strip>>; + deadLetterQueue: z.ZodOptional; + priority: z.ZodDefault; + autoScale: z.ZodOptional; + minWorkers: z.ZodDefault; + maxWorkers: z.ZodDefault; + scaleUpThreshold: z.ZodDefault; + scaleDownThreshold: z.ZodDefault; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── QuotaEnforcementResult (type) ── +type QuotaEnforcementResult = z.input; + +// ── QuotaEnforcementResultSchema (const) ── +declare const QuotaEnforcementResultSchema: z.ZodObject<{ + allowed: z.ZodBoolean; + exceededQuota: z.ZodOptional; + currentUsage: z.ZodOptional; + limit: z.ZodOptional; + message: z.ZodOptional; +}, z.core.$strip>; + +// ── RPO (type) ── +type RPO = z.input; + +// ── RPOParsed (type) ── +type RPOParsed = z.infer; + +// ── RPOSchema (const) ── +declare const RPOSchema: z.ZodObject<{ + value: z.ZodNumber; + unit: z.ZodDefault>; +}, z.core.$strip>; + +// ── RTO (type) ── +type RTO = z.input; + +// ── RTOParsed (type) ── +type RTOParsed = z.infer; + +// ── RTOSchema (const) ── +declare const RTOSchema: z.ZodObject<{ + value: z.ZodNumber; + unit: z.ZodDefault>; +}, z.core.$strip>; + +// ── RegistryConfig (type) ── +type RegistryConfig = z.input; + +// ── RegistryConfigParsed (type) ── +type RegistryConfigParsed = z.infer; + +// ── RegistryConfigSchema (const) ── +declare const RegistryConfigSchema: z.ZodObject<{ + type: z.ZodEnum<{ + public: "public"; + private: "private"; + hybrid: "hybrid"; + }>; + upstream: z.ZodOptional>; + syncIntervalSeconds: z.ZodOptional; + syncInterval: z.ZodOptional; + auth: z.ZodOptional>; + username: z.ZodOptional; + password: z.ZodOptional; + token: z.ZodOptional; + apiKey: z.ZodOptional; + }, z.core.$strip>>; + tls: z.ZodOptional; + verifyCertificate: z.ZodDefault; + certificate: z.ZodOptional; + privateKey: z.ZodOptional; + }, z.core.$strip>>; + timeoutMs: z.ZodDefault; + timeout: z.ZodOptional; + retry: z.ZodOptional; + backoff: z.ZodDefault>; + }, z.core.$strip>>; + }, z.core.$strip>>>; + scope: z.ZodOptional>; + defaultScope: z.ZodOptional; + storage: z.ZodOptional>; + path: z.ZodOptional; + credentials: z.ZodOptional>; + }, z.core.$strip>>; + visibility: z.ZodDefault>; + accessControl: z.ZodOptional; + requireAuthForWrite: z.ZodDefault; + allowedPrincipals: z.ZodOptional>; + }, z.core.$strip>>; + cache: z.ZodOptional; + ttlSeconds: z.ZodDefault; + ttl: z.ZodOptional; + maxSize: z.ZodOptional; + }, z.core.$strip>>; + mirrors: z.ZodOptional; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── RegistrySyncPolicy (type) ── +type RegistrySyncPolicy = z.input; + +// ── RegistrySyncPolicySchema (const) ── +declare const RegistrySyncPolicySchema: z.ZodEnum<{ + manual: "manual"; + auto: "auto"; + proxy: "proxy"; +}>; + +// ── RegistryUpstream (type) ── +type RegistryUpstream = z.input; + +// ── RegistryUpstreamParsed (type) ── +type RegistryUpstreamParsed = z.infer; + +// ── RegistryUpstreamSchema (const) ── +declare const RegistryUpstreamSchema: z.ZodObject<{ + url: z.ZodString; + syncPolicy: z.ZodDefault>; + syncIntervalSeconds: z.ZodOptional; + syncInterval: z.ZodOptional; + auth: z.ZodOptional>; + username: z.ZodOptional; + password: z.ZodOptional; + token: z.ZodOptional; + apiKey: z.ZodOptional; + }, z.core.$strip>>; + tls: z.ZodOptional; + verifyCertificate: z.ZodDefault; + certificate: z.ZodOptional; + privateKey: z.ZodOptional; + }, z.core.$strip>>; + timeoutMs: z.ZodDefault; + timeout: z.ZodOptional; + retry: z.ZodOptional; + backoff: z.ZodDefault>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── RemoveFieldOperation (const) ── +declare const RemoveFieldOperation: z.ZodObject<{ + type: z.ZodLiteral<"remove_field">; + objectName: z.ZodString; + fieldName: z.ZodString; +}, z.core.$strip>; + +// ── RemoveFieldOperation (type) ── +type RemoveFieldOperation = z.input; + +// ── RenameObjectOperation (const) ── +declare const RenameObjectOperation: z.ZodObject<{ + type: z.ZodLiteral<"rename_object">; + oldName: z.ZodString; + newName: z.ZodString; +}, z.core.$strip>; + +// ── RenameObjectOperation (type) ── +type RenameObjectOperation = z.input; + +// ── RenderOperationMessageInput (interface) ── +interface RenderOperationMessageInput { + /** Catalog key, e.g. `delete_restricted`. */ + messageKey: string; + /** Placeholder values — labels, counts. */ + params?: Record; +} + +// ── RenderOperationMessageOptions (interface) ── +interface RenderOperationMessageOptions { + /** BCP-47 locale; defaults to `en`. */ + locale?: string; + /** Deployment override hook — an `II18nService.t`-compatible lookup. */ + translate?: ValidationMessageTranslator; +} + +// ── RenderValidationMessageInput (interface) ── +interface RenderValidationMessageInput { + /** Catalog key — a `FieldValidationCode` or one of the finer variants. */ + messageKey: string; + /** Field display label in the caller's locale; falls back to the API name. */ + label: string; + /** API field name, exposed to templates as `{{field}}`. */ + field?: string; + /** Discrete constraint values (`FieldValidationParams`). */ + params?: Record; +} + +// ── RenderValidationMessageOptions (interface) ── +interface RenderValidationMessageOptions { + /** BCP-47 locale; defaults to `en`. */ + locale?: string; + /** Deployment override hook — an `II18nService.t`-compatible lookup. */ + translate?: ValidationMessageTranslator; +} + +// ── ResolveOptions (interface) ── +interface ResolveOptions { + /** BCP-47 locale code; defaults to `'en'`. */ + locale?: string; + /** + * Ordered fallback locales to consult after `locale` and before returning + * the literal label. + * + * [#14882] This is the deployment's DECLARED chain, supplied by the caller + * that can see the declaration: the serving layer reads + * `II18nService.getFallbackLocale()` (`i18n.fallbackLocale`, else + * `defaultLocale` — the collapse both boot paths perform) and passes it + * here, so a `zh-CN` workspace resolves `zh-CN → zh-CN → authored label` + * and a courtesy `en` bundle is consulted only when `en` is requested. + * Every entry is consulted BEFORE the authored label, so an entry the + * deployment did not declare is a locale that can outrank the author — + * for every NON-default request. A request for {@link defaultLocale} never + * reaches the chain (#15711). + * + * [#15711] Defaults to `[]` — "requested locale, then the authored label" + * — when the caller declares nothing at all (no `fallbackChain` key), and + * an explicit `[]` reads the same. Nothing falls to `en` because a literal + * said so: a chain is consulted only when someone declared it. (Before + * #15711 a chain-less caller got a literal `['en']`.) + */ + fallbackChain?: string[]; + /** + * [#15711] The deployment's DEFAULT locale — the language its metadata + * labels are authored in (`i18n.defaultLocale`). When `locale` names it + * (BCP-47 tags compare case-insensitively, the same rule + * {@link resolveBundleLocale} applies), the resolvers consult the requested + * locale's own bundle and then answer with the authored label: the chain + * is NOT walked, because the authored label IS the default locale's text. + * That is what `os i18n check` already claims when it reports the default + * locale as fully covered by authored text, and what a stack declaring + * `defaultLocale: 'zh-CN'` with a reflexive `fallbackLocale: 'en'` needs so + * its courtesy `en` bundle cannot outrank the author for a `zh-CN` request + * (ruled on #15711 — the contract question #14882 left open). + * + * Supplied by the caller that can see the declaration: the serving layer + * reads `II18nService.getDefaultLocale()`. Absent, no request is the + * default one and every request walks `locale → fallbackChain → authored`. + * A bundle entry for the default locale still wins when one is shipped + * (`os i18n extract --locales=` keeps working; it is optional). + */ + defaultLocale?: string; +} + +// ── ResolvedBook (interface) ── +interface ResolvedBook { + name: string; + label?: string; + groups: ResolvedGroup[]; +} + +// ── ResolvedBookSchema (const) ── +declare const ResolvedBookSchema: z.ZodObject<{ + name: z.ZodString; + label: z.ZodOptional; + groups: z.ZodArray; + href: z.ZodOptional; + label: z.ZodOptional; + description: z.ZodOptional; + badge: z.ZodOptional; + icon: z.ZodOptional; + separator: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── ResolvedEntry (interface) ── +interface ResolvedEntry { + /** Doc name, or undefined for an external link / separator. */ + doc?: string; + href?: string; + label?: string; + description?: string; + badge?: string; + icon?: string; + /** True for a `---` separator node. */ + separator?: boolean; +} + +// ── ResolvedEntrySchema (const) ── +declare const ResolvedEntrySchema: z.ZodObject<{ + doc: z.ZodOptional; + href: z.ZodOptional; + label: z.ZodOptional; + description: z.ZodOptional; + badge: z.ZodOptional; + icon: z.ZodOptional; + separator: z.ZodOptional; +}, z.core.$strip>; + +// ── ResolvedFieldLabel (interface) ── +interface ResolvedFieldLabel { + /** Translated field label. Required — an entry exists only because it has one. */ + label: string; + /** Translated help text, when the bundle carries one. */ + help?: string; + /** Option value → translated option label, when the bundle carries them. */ + options?: Record; +} + +// ── ResolvedGroup (interface) ── +interface ResolvedGroup { + key: string; + label: string; + entries: ResolvedEntry[]; +} + +// ── ResolvedGroupSchema (const) ── +declare const ResolvedGroupSchema: z.ZodObject<{ + key: z.ZodString; + label: z.ZodString; + entries: z.ZodArray; + href: z.ZodOptional; + label: z.ZodOptional; + description: z.ZodOptional; + badge: z.ZodOptional; + icon: z.ZodOptional; + separator: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── ResolvedSettingValue (type) ── +type ResolvedSettingValue = Omit, 'value'> & { + value: T; +}; + +// ── ResolvedSettingValueSchema (const) ── +declare const ResolvedSettingValueSchema: z.ZodObject<{ + value: z.ZodUnknown; + source: z.ZodEnum<{ + default: "default"; + global: "global"; + tenant: "tenant"; + user: "user"; + env: "env"; + }>; + locked: z.ZodBoolean; + lockedReason: z.ZodOptional; + cascadeChain: z.ZodOptional; + value: z.ZodUnknown; + locked: z.ZodOptional; + lockedReason: z.ZodOptional; + effective: z.ZodOptional; + }, z.core.$strip>>>; +}, z.core.$strip>; + +// ── ResolverDoc (interface) ── +interface ResolverDoc { + name: string; + label?: string; + description?: string; + order?: number; + /** Explicit placement: the `key` of the group this doc belongs to. */ + group?: string; + /** Tags for `include: { tag }` matching — `DocSchema.tags` (declared #4509). */ + tags?: string[]; + /** Owning package id (stamped as `_packageId`); used to scope `include`. */ + packageId?: string; +} + +// ── ResultDialogLike (interface) ── +interface ResultDialogLike { + title?: string; + description?: string; + acknowledge?: string; + fields?: Array<{ + path: string; + label?: string; + [key: string]: unknown; + }>; + [key: string]: unknown; +} + +// ── RetryPolicy (type) ── +type RetryPolicy = z.input; + +// ── RetryPolicyParsed (type) ── +type RetryPolicyParsed = z.infer; + +// ── RetryPolicySchema (const) ── +declare const RetryPolicySchema: z.ZodObject<{ + maxRetries: z.ZodDefault; + backoffMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; + maxRetryDelayMs: z.ZodDefault; + jitter: z.ZodDefault; + retryDelayMs: z.ZodOptional; +}, z.core.$strip>; + +// ── RouteHandlerMetadata (type) ── +type RouteHandlerMetadata = z.input; + +// ── RouteHandlerMetadataParsed (type) ── +type RouteHandlerMetadataParsed = z.infer; + +// ── RouteHandlerMetadataSchema (const) ── +declare const RouteHandlerMetadataSchema: z.ZodObject<{ + method: z.ZodEnum<{ + GET: "GET"; + POST: "POST"; + PUT: "PUT"; + DELETE: "DELETE"; + PATCH: "PATCH"; + HEAD: "HEAD"; + OPTIONS: "OPTIONS"; + }>; + path: z.ZodString; + handler: z.ZodString; + metadata: z.ZodOptional; + description: z.ZodOptional; + tags: z.ZodOptional>; + operationId: z.ZodOptional; + }, z.core.$strip>>; + security: z.ZodOptional; + permissions: z.ZodOptional>; + rateLimit: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── RowLevelIsolationStrategy (type) ── +type RowLevelIsolationStrategy = z.input; + +// ── RowLevelIsolationStrategyParsed (type) ── +type RowLevelIsolationStrategyParsed = z.infer; + +// ── RowLevelIsolationStrategySchema (const) ── +declare const RowLevelIsolationStrategySchema: z.ZodObject<{ + strategy: z.ZodLiteral<"shared_schema">; + database: z.ZodOptional; + contextMethod: z.ZodDefault>; + contextVariable: z.ZodDefault; + applicationValidation: z.ZodDefault; + }, z.core.$strip>>; + performance: z.ZodOptional; + usePartitioning: z.ZodDefault; + poolSizePerTenant: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── SETTINGS_CHANGE_EVENT (const) ── +declare const SETTINGS_CHANGE_EVENT: "settings:changed"; + +// ── SamplingDecision (const) ── +declare const SamplingDecision: z.ZodEnum<{ + drop: "drop"; + record_only: "record_only"; + record_and_sample: "record_and_sample"; +}>; + +// ── SamplingDecision (type) ── +type SamplingDecision = z.input; + +// ── SamplingStrategyType (const) ── +declare const SamplingStrategyType: z.ZodEnum<{ + custom: "custom"; + composite: "composite"; + always_on: "always_on"; + always_off: "always_off"; + trace_id_ratio: "trace_id_ratio"; + rate_limiting: "rate_limiting"; + parent_based: "parent_based"; + probability: "probability"; +}>; + +// ── SamplingStrategyType (type) ── +type SamplingStrategyType = z.input; + +// ── Schedule (type) ── +type Schedule = z.input; + +// ── ScheduleParsed (type) ── +type ScheduleParsed = z.infer; + +// ── ScheduleSchema (const) ── +declare const ScheduleSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ + type: z.ZodLiteral<"cron">; + expression: z.ZodUnion>, z.ZodObject<{ + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + dialect: z.ZodLiteral<"cron">; + }, z.core.$strip>]>; + timezone: z.ZodDefault>; +}, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"interval">; + intervalMs: z.ZodNumber; +}, z.core.$strip>, z.ZodObject<{ + type: z.ZodLiteral<"once">; + at: z.ZodString; +}, z.core.$strip>], "type">; + +// ── SchemaChange (type) ── +type SchemaChange = z.input; + +// ── SchemaChangeSchema (const) ── +declare const SchemaChangeSchema: z.ZodObject<{ + entityType: z.ZodEnum<{ + object: "object"; + field: "field"; + index: "index"; + flow: "flow"; + view: "view"; + permission: "permission"; + }>; + entityName: z.ZodString; + parentEntity: z.ZodOptional; + changeType: z.ZodEnum<{ + modified: "modified"; + added: "added"; + removed: "removed"; + }>; + oldValue: z.ZodOptional; + newValue: z.ZodOptional; +}, z.core.$strip>; + +// ── SchemaLevelIsolationStrategy (type) ── +type SchemaLevelIsolationStrategy = z.input; + +// ── SchemaLevelIsolationStrategyParsed (type) ── +type SchemaLevelIsolationStrategyParsed = z.infer; + +// ── SchemaLevelIsolationStrategySchema (const) ── +declare const SchemaLevelIsolationStrategySchema: z.ZodObject<{ + strategy: z.ZodLiteral<"isolated_schema">; + schema: z.ZodOptional; + includePublicSchema: z.ZodDefault; + sharedSchema: z.ZodDefault; + autoCreateSchema: z.ZodDefault; + }, z.core.$strip>>; + migrations: z.ZodOptional>; + maxConcurrent: z.ZodDefault; + rollbackOnError: z.ZodDefault; + }, z.core.$strip>>; + performance: z.ZodOptional; + schemaCacheTtlSeconds: z.ZodDefault; + schemaCacheTTL: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── SearchConfig (type) ── +type SearchConfig = z.input; + +// ── SearchConfigParsed (type) ── +type SearchConfigParsed = z.infer; + +// ── SearchConfigSchema (const) ── +declare const SearchConfigSchema: z.ZodObject<{ + provider: z.ZodEnum<{ + elasticsearch: "elasticsearch"; + algolia: "algolia"; + meilisearch: "meilisearch"; + typesense: "typesense"; + opensearch: "opensearch"; + }>; + indexes: z.ZodArray; + analyzer: z.ZodOptional; + searchable: z.ZodDefault; + filterable: z.ZodDefault; + sortable: z.ZodDefault; + boost: z.ZodDefault; + }, z.core.$strip>>; + replicas: z.ZodDefault; + shards: z.ZodDefault; + }, z.core.$strip>>; + analyzers: z.ZodOptional; + language: z.ZodOptional; + stopwords: z.ZodOptional>; + customFilters: z.ZodOptional>; + }, z.core.$strip>>>; + facets: z.ZodOptional; + sort: z.ZodDefault>; + }, z.core.$strip>>>; + typoTolerance: z.ZodDefault; + synonyms: z.ZodOptional>>; + ranking: z.ZodOptional>>; +}, z.core.$strip>; + +// ── SearchIndexConfig (type) ── +type SearchIndexConfig = z.input; + +// ── SearchIndexConfigParsed (type) ── +type SearchIndexConfigParsed = z.infer; + +// ── SearchIndexConfigSchema (const) ── +declare const SearchIndexConfigSchema: z.ZodObject<{ + indexName: z.ZodString; + objectName: z.ZodString; + fields: z.ZodArray; + analyzer: z.ZodOptional; + searchable: z.ZodDefault; + filterable: z.ZodDefault; + sortable: z.ZodDefault; + boost: z.ZodDefault; + }, z.core.$strip>>; + replicas: z.ZodDefault; + shards: z.ZodDefault; +}, z.core.$strip>; + +// ── SearchProvider (type) ── +type SearchProvider = z.input; + +// ── SearchProviderSchema (const) ── +declare const SearchProviderSchema: z.ZodEnum<{ + elasticsearch: "elasticsearch"; + algolia: "algolia"; + meilisearch: "meilisearch"; + typesense: "typesense"; + opensearch: "opensearch"; +}>; + +// ── SecurityContextConfig (type) ── +type SecurityContextConfig = z.input; + +// ── SecurityContextConfigParsed (type) ── +type SecurityContextConfigParsed = z.infer; + +// ── SecurityContextConfigSchema (const) ── +declare const SecurityContextConfigSchema: z.ZodObject<{ + enabled: z.ZodDefault; + complianceAuditRequirements: z.ZodOptional; + requiredEvents: z.ZodArray; + retentionDays: z.ZodNumber; + alertOnMissing: z.ZodDefault; + }, z.core.$strip>>>; + complianceEncryptionRequirements: z.ZodOptional; + dataClassifications: z.ZodArray>; + minimumAlgorithm: z.ZodDefault>; + keyRotationMaxDays: z.ZodDefault; + }, z.core.$strip>>>; + maskingVisibility: z.ZodOptional; + defaultMasked: z.ZodDefault; + unmaskRoles: z.ZodOptional>; + auditUnmask: z.ZodDefault; + requireApproval: z.ZodDefault; + approvalRoles: z.ZodOptional>; + }, z.core.$strip>>>; + dataClassifications: z.ZodOptional; + requireEncryption: z.ZodDefault; + requireMasking: z.ZodDefault; + requireAudit: z.ZodDefault; + retentionDays: z.ZodOptional; + }, z.core.$strip>>>; + eventCorrelation: z.ZodOptional; + correlationId: z.ZodDefault; + linkAuthToAudit: z.ZodDefault; + linkEncryptionToAudit: z.ZodDefault; + linkMaskingToAudit: z.ZodDefault; + }, z.core.$strip>>; + enforceOnWrite: z.ZodDefault; + enforceOnRead: z.ZodDefault; + failOpen: z.ZodDefault; +}, z.core.$strip>; + +// ── SecurityEventCorrelation (type) ── +type SecurityEventCorrelation = z.input; + +// ── SecurityEventCorrelationParsed (type) ── +type SecurityEventCorrelationParsed = z.infer; + +// ── SecurityEventCorrelationSchema (const) ── +declare const SecurityEventCorrelationSchema: z.ZodObject<{ + enabled: z.ZodDefault; + correlationId: z.ZodDefault; + linkAuthToAudit: z.ZodDefault; + linkEncryptionToAudit: z.ZodDefault; + linkMaskingToAudit: z.ZodDefault; +}, z.core.$strip>; + +// ── ServerRateLimitConfig (type) ── +type ServerRateLimitConfig = z.input; + +// ── ServerRateLimitConfigParsed (type) ── +type ServerRateLimitConfigParsed = z.infer; + +// ── ServerRateLimitConfigSchema (const) ── +declare const ServerRateLimitConfigSchema: z.ZodObject<{ + enabled: z.ZodDefault; + windowMs: z.ZodDefault; + maxRequests: z.ZodDefault; +}, z.core.$strict>; + +// ── ServiceConfig (type) ── +type ServiceConfig = z.input; + +// ── ServiceConfigSchema (const) ── +declare const ServiceConfigSchema: z.ZodObject<{ + id: z.ZodString; + name: z.ZodEnum<{ + metadata: "metadata"; + search: "search"; + storage: "storage"; + data: "data"; + auth: "auth"; + cache: "cache"; + realtime: "realtime"; + ui: "ui"; + automation: "automation"; + analytics: "analytics"; + ai: "ai"; + i18n: "i18n"; + job: "job"; + "file-storage": "file-storage"; + queue: "queue"; + notification: "notification"; + }>; + options: z.ZodOptional>; +}, z.core.$strip>; + +// ── ServiceCriticality (type) ── +type ServiceCriticality = z.input; + +// ── ServiceCriticalitySchema (const) ── +declare const ServiceCriticalitySchema: z.ZodEnum<{ + optional: "optional"; + required: "required"; + core: "core"; +}>; + +// ── ServiceLevelIndicator (type) ── +type ServiceLevelIndicator = z.input; + +// ── ServiceLevelIndicatorParsed (type) ── +type ServiceLevelIndicatorParsed = z.infer; + +// ── ServiceLevelIndicatorSchema (const) ── +declare const ServiceLevelIndicatorSchema: z.ZodObject<{ + name: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + metric: z.ZodString; + type: z.ZodEnum<{ + custom: "custom"; + availability: "availability"; + latency: "latency"; + throughput: "throughput"; + error_rate: "error_rate"; + saturation: "saturation"; + }>; + successCriteria: z.ZodUnion; + percentile: z.ZodOptional; + }, z.core.$strip>, z.ZodUnion>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>; + window: z.ZodObject<{ + durationSeconds: z.ZodNumber; + size: z.ZodOptional; + rolling: z.ZodDefault>; + }, z.core.$strip>; + enabled: z.ZodDefault>; +}, z.core.$strip>; + +// ── ServiceLevelObjective (type) ── +type ServiceLevelObjective = z.input; + +// ── ServiceLevelObjectiveParsed (type) ── +type ServiceLevelObjectiveParsed = z.infer; + +// ── ServiceLevelObjectiveSchema (const) ── +declare const ServiceLevelObjectiveSchema: z.ZodObject<{ + name: z.ZodString; + label: z.ZodString; + description: z.ZodOptional; + sli: z.ZodString; + target: z.ZodNumber; + period: z.ZodObject<{ + type: z.ZodEnum<{ + rolling: "rolling"; + calendar: "calendar"; + }>; + durationSeconds: z.ZodOptional; + duration: z.ZodOptional; + calendar: z.ZodOptional>; + }, z.core.$strip>; + errorBudget: z.ZodOptional>; + alertThreshold: z.ZodDefault>; + burnRateWindows: z.ZodOptional; + threshold: z.ZodNumber; + }, z.core.$strip>>>; + }, z.core.$strip>>; + alerts: z.ZodDefault; + condition: z.ZodObject<{ + type: z.ZodEnum<{ + slo_breach: "slo_breach"; + error_budget: "error_budget"; + burn_rate: "burn_rate"; + }>; + threshold: z.ZodOptional; + }, z.core.$strip>; + }, z.core.$strip>>>>; + enabled: z.ZodDefault>; +}, z.core.$strip>; + +// ── ServiceRequirementDef (const) ── +declare const ServiceRequirementDef: { + readonly data: "required"; + readonly metadata: "core"; + readonly auth: "core"; + readonly cache: "core"; + readonly queue: "core"; + readonly job: "core"; + readonly i18n: "core"; + readonly storage: "optional"; + readonly 'file-storage': "optional"; + readonly search: "optional"; + readonly automation: "optional"; + readonly analytics: "optional"; + readonly realtime: "optional"; + readonly notification: "optional"; + readonly ai: "optional"; + readonly ui: "optional"; +}; + +// ── SettingsActionResult (type) ── +type SettingsActionResult = z.input; + +// ── SettingsActionResultSchema (const) ── +declare const SettingsActionResultSchema: z.ZodObject<{ + ok: z.ZodBoolean; + message: z.ZodOptional; + severity: z.ZodOptional>; + details: z.ZodOptional; +}, z.core.$strip>; + +// ── SettingsChangeEvent (type) ── +type SettingsChangeEvent = z.input; + +// ── SettingsChangeEventName (type) ── +type SettingsChangeEventName = typeof SETTINGS_CHANGE_EVENT; + +// ── SettingsChangeEventSchema (const) ── +declare const SettingsChangeEventSchema: z.ZodObject<{ + namespace: z.ZodString; + key: z.ZodString; + scope: z.ZodEnum<{ + global: "global"; + tenant: "tenant"; + user: "user"; + }>; + action: z.ZodEnum<{ + set: "set"; + reset: "reset"; + }>; + at: z.ZodString; +}, z.core.$strip>; + +// ── SettingsChangeHandler (type) ── +type SettingsChangeHandler = (event: SettingsChangeEvent) => void; + +// ── SettingsManifest (type) ── +type SettingsManifest = z.input; + +// ── SettingsManifestParsed (type) ── +type SettingsManifestParsed = z.infer; + +// ── SettingsManifestSchema (const) ── +declare const SettingsManifestSchema: z.ZodObject<{ + namespace: z.ZodString; + version: z.ZodDefault; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + icon: z.ZodOptional; + description: z.ZodOptional; + helpText: z.ZodOptional; + scope: z.ZodDefault>; + readPermission: z.ZodDefault; + writePermission: z.ZodDefault; + category: z.ZodOptional; + order: z.ZodOptional; + specifiers: z.ZodArray; + id: z.ZodOptional; + key: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional; + icon: z.ZodOptional; + default: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + required: z.ZodDefault; + encrypted: z.ZodOptional; + scope: z.ZodOptional>; + availableScopes: z.ZodOptional>>; + lockable: z.ZodOptional; + readPermission: z.ZodOptional; + writePermission: z.ZodOptional; + deprecated: z.ZodOptional; + replacedBy: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional; + icon: z.ZodOptional; + }, z.core.$strip>>>; + valueDomain: z.ZodOptional>; + min: z.ZodOptional; + max: z.ZodOptional; + step: z.ZodOptional; + minLength: z.ZodOptional; + maxLength: z.ZodOptional; + pattern: z.ZodOptional; + rows: z.ZodOptional; + handler: z.ZodOptional; + method: z.ZodDefault>; + url: z.ZodString; + body: z.ZodOptional>; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strip>, z.ZodObject<{ + kind: z.ZodLiteral<"action">; + name: z.ZodString; + params: z.ZodOptional>; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strip>, z.ZodObject<{ + kind: z.ZodLiteral<"navigate">; + url: z.ZodString; + target: z.ZodDefault>; + }, z.core.$strip>], "kind">>; + childNamespace: z.ZodOptional; + bannerText: z.ZodOptional; + bannerSeverity: z.ZodOptional>; + }, z.core.$strip>>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + featureFlag: z.ZodOptional; + beta: z.ZodOptional; +}, z.core.$strip>; + +// ── SettingsNamespacePayload (type) ── +type SettingsNamespacePayload = z.input; + +// ── SettingsNamespacePayloadParsed (type) ── +type SettingsNamespacePayloadParsed = z.infer; + +// ── SettingsNamespacePayloadSchema (const) ── +declare const SettingsNamespacePayloadSchema: z.ZodObject<{ + manifest: z.ZodObject<{ + namespace: z.ZodString; + version: z.ZodDefault; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + icon: z.ZodOptional; + description: z.ZodOptional; + helpText: z.ZodOptional; + scope: z.ZodDefault>; + readPermission: z.ZodDefault; + writePermission: z.ZodDefault; + category: z.ZodOptional; + order: z.ZodOptional; + specifiers: z.ZodArray; + id: z.ZodOptional; + key: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional; + icon: z.ZodOptional; + default: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + required: z.ZodDefault; + encrypted: z.ZodOptional; + scope: z.ZodOptional>; + availableScopes: z.ZodOptional>>; + lockable: z.ZodOptional; + readPermission: z.ZodOptional; + writePermission: z.ZodOptional; + deprecated: z.ZodOptional; + replacedBy: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional; + icon: z.ZodOptional; + }, z.core.$strip>>>; + valueDomain: z.ZodOptional>; + min: z.ZodOptional; + max: z.ZodOptional; + step: z.ZodOptional; + minLength: z.ZodOptional; + maxLength: z.ZodOptional; + pattern: z.ZodOptional; + rows: z.ZodOptional; + handler: z.ZodOptional; + method: z.ZodDefault>; + url: z.ZodString; + body: z.ZodOptional>; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strip>, z.ZodObject<{ + kind: z.ZodLiteral<"action">; + name: z.ZodString; + params: z.ZodOptional>; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strip>, z.ZodObject<{ + kind: z.ZodLiteral<"navigate">; + url: z.ZodString; + target: z.ZodDefault>; + }, z.core.$strip>], "kind">>; + childNamespace: z.ZodOptional; + bannerText: z.ZodOptional; + bannerSeverity: z.ZodOptional>; + }, z.core.$strip>>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + featureFlag: z.ZodOptional; + beta: z.ZodOptional; + }, z.core.$strip>; + values: z.ZodRecord; + locked: z.ZodBoolean; + lockedReason: z.ZodOptional; + cascadeChain: z.ZodOptional; + value: z.ZodUnknown; + locked: z.ZodOptional; + lockedReason: z.ZodOptional; + effective: z.ZodOptional; + }, z.core.$strip>>>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── SettingsUnsubscribe (type) ── +type SettingsUnsubscribe = () => void; + +// ── Sha256Digest (type) ── +type Sha256Digest = z.input; + +// ── Sha256DigestSchema (const) ── +declare const Sha256DigestSchema: z.ZodString; + +// ── SocialProviderConfig (type) ── +type SocialProviderConfig = z.input; + +// ── SocialProviderConfigParsed (type) ── +type SocialProviderConfigParsed = z.infer; + +// ── SocialProviderConfigSchema (const) ── +declare const SocialProviderConfigSchema: z.ZodOptional; + scope: z.ZodOptional>; +}, z.core.$catchall>>>; + +// ── Span (type) ── +type Span = z.input; + +// ── SpanAttributeValue (type) ── +type SpanAttributeValue = z.input; + +// ── SpanAttributeValueSchema (const) ── +declare const SpanAttributeValueSchema: z.ZodUnion, z.ZodArray, z.ZodArray]>; + +// ── SpanAttributes (type) ── +type SpanAttributes = z.input; + +// ── SpanAttributesSchema (const) ── +declare const SpanAttributesSchema: z.ZodRecord, z.ZodArray, z.ZodArray]>>; + +// ── SpanEvent (type) ── +type SpanEvent = z.input; + +// ── SpanEventSchema (const) ── +declare const SpanEventSchema: z.ZodObject<{ + name: z.ZodString; + timestamp: z.ZodString; + attributes: z.ZodOptional, z.ZodArray, z.ZodArray]>>>; +}, z.core.$strip>; + +// ── SpanKind (const) ── +declare const SpanKind: z.ZodEnum<{ + internal: "internal"; + server: "server"; + client: "client"; + producer: "producer"; + consumer: "consumer"; +}>; + +// ── SpanKind (type) ── +type SpanKind = z.input; + +// ── SpanLink (type) ── +type SpanLink = z.input; + +// ── SpanLinkParsed (type) ── +type SpanLinkParsed = z.infer; + +// ── SpanLinkSchema (const) ── +declare const SpanLinkSchema: z.ZodObject<{ + context: z.ZodObject<{ + traceId: z.ZodString; + spanId: z.ZodString; + traceFlags: z.ZodDefault>; + traceState: z.ZodOptional; + }, z.core.$strip>>; + parentSpanId: z.ZodOptional; + sampled: z.ZodDefault>; + remote: z.ZodDefault>; + }, z.core.$strip>; + attributes: z.ZodOptional, z.ZodArray, z.ZodArray]>>>; +}, z.core.$strip>; + +// ── SpanParsed (type) ── +type SpanParsed = z.infer; + +// ── SpanSchema (const) ── +declare const SpanSchema: z.ZodObject<{ + context: z.ZodObject<{ + traceId: z.ZodString; + spanId: z.ZodString; + traceFlags: z.ZodDefault>; + traceState: z.ZodOptional; + }, z.core.$strip>>; + parentSpanId: z.ZodOptional; + sampled: z.ZodDefault>; + remote: z.ZodDefault>; + }, z.core.$strip>; + name: z.ZodString; + kind: z.ZodDefault>>; + startTime: z.ZodString; + endTime: z.ZodOptional; + durationMs: z.ZodOptional; + duration: z.ZodOptional; + status: z.ZodOptional; + message: z.ZodOptional; + }, z.core.$strip>>; + attributes: z.ZodDefault, z.ZodArray, z.ZodArray]>>>>; + events: z.ZodDefault, z.ZodArray, z.ZodArray]>>>; + }, z.core.$strip>>>>; + links: z.ZodDefault>; + traceState: z.ZodOptional; + }, z.core.$strip>>; + parentSpanId: z.ZodOptional; + sampled: z.ZodDefault>; + remote: z.ZodDefault>; + }, z.core.$strip>; + attributes: z.ZodOptional, z.ZodArray, z.ZodArray]>>>; + }, z.core.$strip>>>>; + resource: z.ZodOptional, z.ZodArray, z.ZodArray]>>>; + instrumentationLibrary: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── SpanStatus (const) ── +declare const SpanStatus: z.ZodEnum<{ + error: "error"; + unset: "unset"; + ok: "ok"; +}>; + +// ── SpanStatus (type) ── +type SpanStatus = z.input; + +// ── Specifier (type) ── +type Specifier = z.input; + +// ── SpecifierHandler (type) ── +type SpecifierHandler = z.input; + +// ── SpecifierHandlerParsed (type) ── +type SpecifierHandlerParsed = z.infer; + +// ── SpecifierHandlerSchema (const) ── +declare const SpecifierHandlerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ + kind: z.ZodLiteral<"http">; + method: z.ZodDefault>; + url: z.ZodString; + body: z.ZodOptional>; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; +}, z.core.$strip>, z.ZodObject<{ + kind: z.ZodLiteral<"action">; + name: z.ZodString; + params: z.ZodOptional>; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; +}, z.core.$strip>, z.ZodObject<{ + kind: z.ZodLiteral<"navigate">; + url: z.ZodString; + target: z.ZodDefault>; +}, z.core.$strip>], "kind">; + +// ── SpecifierOption (type) ── +type SpecifierOption = z.input; + +// ── SpecifierOptionSchema (const) ── +declare const SpecifierOptionSchema: z.ZodObject<{ + value: z.ZodUnion; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional; + icon: z.ZodOptional; +}, z.core.$strip>; + +// ── SpecifierParsed (type) ── +type SpecifierParsed = z.infer; + +// ── SpecifierSchema (const) ── +declare const SpecifierSchema: z.ZodObject<{ + type: z.ZodEnum<{ + number: "number"; + email: "email"; + phone: "phone"; + text: "text"; + url: "url"; + textarea: "textarea"; + password: "password"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + json: "json"; + color: "color"; + slider: "slider"; + group: "group"; + child_pane: "child_pane"; + info_banner: "info_banner"; + title_value: "title_value"; + action_button: "action_button"; + }>; + id: z.ZodOptional; + key: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional; + icon: z.ZodOptional; + default: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + required: z.ZodDefault; + encrypted: z.ZodOptional; + scope: z.ZodOptional>; + availableScopes: z.ZodOptional>>; + lockable: z.ZodOptional; + readPermission: z.ZodOptional; + writePermission: z.ZodOptional; + deprecated: z.ZodOptional; + replacedBy: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional; + icon: z.ZodOptional; + }, z.core.$strip>>>; + valueDomain: z.ZodOptional>; + min: z.ZodOptional; + max: z.ZodOptional; + step: z.ZodOptional; + minLength: z.ZodOptional; + maxLength: z.ZodOptional; + pattern: z.ZodOptional; + rows: z.ZodOptional; + handler: z.ZodOptional; + method: z.ZodDefault>; + url: z.ZodString; + body: z.ZodOptional>; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strip>, z.ZodObject<{ + kind: z.ZodLiteral<"action">; + name: z.ZodString; + params: z.ZodOptional>; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strip>, z.ZodObject<{ + kind: z.ZodLiteral<"navigate">; + url: z.ZodString; + target: z.ZodDefault>; + }, z.core.$strip>], "kind">>; + childNamespace: z.ZodOptional; + bannerText: z.ZodOptional; + bannerSeverity: z.ZodOptional>; +}, z.core.$strip>; + +// ── SpecifierScope (type) ── +type SpecifierScope = z.input; + +// ── SpecifierScopeSchema (const) ── +declare const SpecifierScopeSchema: z.ZodEnum<{ + global: "global"; + tenant: "tenant"; + user: "user"; +}>; + +// ── SpecifierType (const) ── +declare const SpecifierType: z.ZodEnum<{ + number: "number"; + email: "email"; + phone: "phone"; + text: "text"; + url: "url"; + textarea: "textarea"; + password: "password"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + json: "json"; + color: "color"; + slider: "slider"; + group: "group"; + child_pane: "child_pane"; + info_banner: "info_banner"; + title_value: "title_value"; + action_button: "action_button"; +}>; + +// ── SpecifierType (type) ── +type SpecifierType = z.input; + +// ── SpecifierValueDomain (type) ── +type SpecifierValueDomain = z.input; + +// ── SpecifierValueDomainSchema (const) ── +declare const SpecifierValueDomainSchema: z.ZodEnum<{ + iana_time_zone: "iana_time_zone"; + iso_4217_currency: "iso_4217_currency"; + iso_3166_alpha2: "iso_3166_alpha2"; +}>; + +// ── StackServerConfig (type) ── +type StackServerConfig = z.input; + +// ── StackServerConfigParsed (type) ── +type StackServerConfigParsed = z.infer; + +// ── StackServerConfigSchema (const) ── +declare const StackServerConfigSchema: z.ZodObject<{ + security: z.ZodOptional; + windowMs: z.ZodDefault; + maxRequests: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + trustProxy: z.ZodDefault; +}, z.core.$strict>; + +// ── StackServerSecurity (type) ── +type StackServerSecurity = z.input; + +// ── StackServerSecurityParsed (type) ── +type StackServerSecurityParsed = z.infer; + +// ── StackServerSecuritySchema (const) ── +declare const StackServerSecuritySchema: z.ZodObject<{ + rateLimit: z.ZodOptional; + windowMs: z.ZodDefault; + maxRequests: z.ZodDefault; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── StorageAcl (type) ── +type StorageAcl = z.input; + +// ── StorageAclSchema (const) ── +declare const StorageAclSchema: z.ZodEnum<{ + private: "private"; + public_read: "public_read"; + public_read_write: "public_read_write"; + authenticated_read: "authenticated_read"; + bucket_owner_read: "bucket_owner_read"; + bucket_owner_full_control: "bucket_owner_full_control"; +}>; + +// ── StorageClass (type) ── +type StorageClass = z.input; + +// ── StorageClassSchema (const) ── +declare const StorageClassSchema: z.ZodEnum<{ + standard: "standard"; + intelligent: "intelligent"; + infrequent_access: "infrequent_access"; + glacier: "glacier"; + deep_archive: "deep_archive"; +}>; + +// ── StorageConnection (type) ── +type StorageConnection = z.input; + +// ── StorageConnectionParsed (type) ── +type StorageConnectionParsed = z.infer; + +// ── StorageConnectionSchema (const) ── +declare const StorageConnectionSchema: z.ZodObject<{ + accessKeyId: z.ZodOptional; + secretAccessKey: z.ZodOptional; + sessionToken: z.ZodOptional; + accountName: z.ZodOptional; + accountKey: z.ZodOptional; + sasToken: z.ZodOptional; + environmentId: z.ZodOptional; + credentials: z.ZodOptional; + endpoint: z.ZodOptional; + region: z.ZodOptional; + useSSL: z.ZodDefault; + timeoutMs: z.ZodOptional; + timeout: z.ZodOptional; +}, z.core.$strip>; + +// ── StorageNameMapping (const) ── +declare const StorageNameMapping: { + /** + * Resolve the physical table name for an object. + * + * The full prefixed object name IS the physical table name. Since every + * object in a stack is required by `defineStack()` to start with the + * package namespace (e.g. `todo_task`, `crm_account`), tables for + * different packages cannot collide even when installed into the same + * database. + * + * Legacy compatibility: if `object.name` is in the old FQN form + * `{namespace}__{shortName}` (double underscore), the namespace prefix + * is stripped to recover the historical table name. New code should + * not produce that shape — `defineStack()` validates against it. + * + * @param object - Object definition (at minimum `{ name: string }`) + * @returns The physical table / collection name to use in storage operations. + * + * @example resolveTableName({ name: 'todo_task' }) // 'todo_task' + * @example resolveTableName({ name: 'crm_account' }) // 'crm_account' + * @example resolveTableName({ name: 'sys_user' }) // 'sys_user' + * @example resolveTableName({ name: 'crm__account' }) // 'account' (legacy) + */ + readonly resolveTableName: (object: { + name: string; + }) => string; +}; + +// ── StorageProvider (type) ── +type StorageProvider = z.input; + +// ── StorageProviderSchema (const) ── +declare const StorageProviderSchema: z.ZodEnum<{ + local: "local"; + s3: "s3"; + azure_blob: "azure_blob"; + gcs: "gcs"; + minio: "minio"; + r2: "r2"; + spaces: "spaces"; + wasabi: "wasabi"; + backblaze: "backblaze"; +}>; + +// ── StorageScope (type) ── +type StorageScope = z.input; + +// ── StorageScopeSchema (const) ── +declare const StorageScopeSchema: z.ZodEnum<{ + user: "user"; + tenant: "tenant"; + global: "global"; + data: "data"; + cache: "cache"; + public: "public"; + config: "config"; + session: "session"; + temp: "temp"; + logs: "logs"; +}>; + +// ── StrictObjectTranslation (type) ── +type StrictObjectTranslation; +}> = { + label: string; + pluralLabel?: string; + fields: StrictFieldTranslations; + /** + * View translations keyed by view name — the `_views` slot + * `ObjectTranslationDataSchema` already permits. Not derivable from `Obj` + * (views are declared separately from the object), so it stays optional and + * loosely keyed rather than enumerated like `fields`. Without it, `satisfies + * StrictObjectTranslation<…>` rejects the very translations the view + * coverage gate asks for. + */ + _views?: Record; +}; + +// ── StructuredLogEntry (type) ── +type StructuredLogEntry = z.input; + +// ── StructuredLogEntrySchema (const) ── +declare const StructuredLogEntrySchema: z.ZodObject<{ + timestamp: z.ZodString; + level: z.ZodEnum<{ + error: "error"; + debug: "debug"; + info: "info"; + warn: "warn"; + fatal: "fatal"; + trace: "trace"; + }>; + message: z.ZodString; + context: z.ZodOptional>; + error: z.ZodOptional; + message: z.ZodOptional; + stack: z.ZodOptional; + code: z.ZodOptional; + details: z.ZodOptional>; + }, z.core.$strip>>; + trace: z.ZodOptional; + traceFlags: z.ZodOptional; + }, z.core.$strip>>; + source: z.ZodOptional; + component: z.ZodOptional; + file: z.ZodOptional; + line: z.ZodOptional; + function: z.ZodOptional; + }, z.core.$strip>>; + host: z.ZodOptional; + pid: z.ZodOptional; + ip: z.ZodOptional; + }, z.core.$strip>>; + environment: z.ZodOptional; + user: z.ZodOptional; + username: z.ZodOptional; + email: z.ZodOptional; + }, z.core.$strip>>; + request: z.ZodOptional; + method: z.ZodOptional; + path: z.ZodOptional; + userAgent: z.ZodOptional; + ip: z.ZodOptional; + }, z.core.$strip>>; + labels: z.ZodOptional>; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── SupplierAssessmentStatus (type) ── +type SupplierAssessmentStatus = z.input; + +// ── SupplierAssessmentStatusSchema (const) ── +declare const SupplierAssessmentStatusSchema: z.ZodEnum<{ + failed: "failed"; + expired: "expired"; + completed: "completed"; + pending: "pending"; + in_progress: "in_progress"; +}>; + +// ── SupplierRiskLevel (type) ── +type SupplierRiskLevel = z.input; + +// ── SupplierRiskLevelSchema (const) ── +declare const SupplierRiskLevelSchema: z.ZodEnum<{ + critical: "critical"; + medium: "medium"; + low: "low"; + high: "high"; +}>; + +// ── SupplierSecurityAssessment (type) ── +type SupplierSecurityAssessment = z.input; + +// ── SupplierSecurityAssessmentParsed (type) ── +type SupplierSecurityAssessmentParsed = z.infer; + +// ── SupplierSecurityAssessmentSchema (const) ── +declare const SupplierSecurityAssessmentSchema: z.ZodObject<{ + supplierId: z.ZodString; + supplierName: z.ZodString; + riskLevel: z.ZodEnum<{ + critical: "critical"; + medium: "medium"; + low: "low"; + high: "high"; + }>; + status: z.ZodEnum<{ + failed: "failed"; + expired: "expired"; + completed: "completed"; + pending: "pending"; + in_progress: "in_progress"; + }>; + assessedBy: z.ZodString; + assessedAt: z.ZodNumber; + validUntil: z.ZodNumber; + requirements: z.ZodArray; + mandatory: z.ZodDefault; + compliant: z.ZodOptional; + evidence: z.ZodOptional; + }, z.core.$strip>>; + overallCompliant: z.ZodBoolean; + dataClassificationsShared: z.ZodOptional>>; + servicesProvided: z.ZodOptional>; + certifications: z.ZodOptional>; + remediationItems: z.ZodOptional>; + }, z.core.$strip>>>; + metadata: z.ZodOptional>; +}, z.core.$strip>; + +// ── SupplierSecurityPolicy (type) ── +type SupplierSecurityPolicy = z.input; + +// ── SupplierSecurityPolicyParsed (type) ── +type SupplierSecurityPolicyParsed = z.infer; + +// ── SupplierSecurityPolicySchema (const) ── +declare const SupplierSecurityPolicySchema: z.ZodObject<{ + enabled: z.ZodDefault; + reassessmentIntervalDays: z.ZodDefault; + requirePreOnboardingAssessment: z.ZodDefault; + formalAssessmentThreshold: z.ZodDefault>; + monitorChanges: z.ZodDefault; + requiredCertifications: z.ZodDefault>; +}, z.core.$strip>; + +// ── SupplierSecurityRequirement (type) ── +type SupplierSecurityRequirement = z.input; + +// ── SupplierSecurityRequirementParsed (type) ── +type SupplierSecurityRequirementParsed = z.infer; + +// ── SupplierSecurityRequirementSchema (const) ── +declare const SupplierSecurityRequirementSchema: z.ZodObject<{ + id: z.ZodString; + description: z.ZodString; + controlReference: z.ZodOptional; + mandatory: z.ZodDefault; + compliant: z.ZodOptional; + evidence: z.ZodOptional; +}, z.core.$strip>; + +// ── SystemFieldName (const) ── +declare const SystemFieldName: { + /** Primary key. Provisioned by the driver, not by `applySystemFields`. */ + readonly ID: "id"; + /** Record creation timestamp. INJECTED (audit provenance). */ + readonly CREATED_AT: "created_at"; + /** User who created the record (lookup to user). INJECTED (audit provenance). */ + readonly CREATED_BY: "created_by"; + /** Record last-updated timestamp. INJECTED (audit provenance). */ + readonly UPDATED_AT: "updated_at"; + /** User who last modified the record (lookup to user). INJECTED (audit provenance). */ + readonly UPDATED_BY: "updated_by"; + /** Record owner (lookup to user). INJECTED unless `ownership: 'business_unit' | 'org' | 'none'`. */ + readonly OWNER_ID: "owner_id"; + /** + * Record-level business-unit ownership — the middle tier between + * {@link SystemFieldName.OWNER_ID} (a person) and + * {@link SystemFieldName.ORGANIZATION_ID} (the tenant wall): *which department + * / legal entity does this row belong to*. A lookup to `sys_business_unit`. + * + * **INJECTED** (ADR-0117 D1, landed in #5677) — `applySystemFields` provisions + * the column on every ownership-eligible object. Withheld on `managedBy` / + * `sys_*` tables and under `ownership: 'org' | 'none'`. Note its reach is + * WIDER than {@link SystemFieldName.OWNER_ID}'s rather than identical to it: + * it also covers `ownership: 'business_unit'`, the tier that carries this + * anchor and deliberately no owning person. The per-object derivation both the + * engine and author-time lint read is `resolveInjectedSystemColumns` + * (`@objectstack/spec/data`) — its table, not this sentence, is the authority + * on the per-tier answer. + * + * The unit-owned TIER is **authorable** as of #5678: `ObjectSchema`'s + * `ownership` enum reads `'user' | 'business_unit' | 'org' | 'none'`, so an + * author can declare `ownership: 'business_unit'` and get this column with no + * `owner_id` — D1's row, end to end. It was deliberately REJECTED until then, + * and the ordering mattered: #5677 had to flip the injection judgement to an + * allow-list FIRST, or the tier's first appearance would have been stamped + * `owner_id` — the inverse of what it means. Both directions of that sequence + * are pinned in `packages/spec/src/data/object.test.ts`. + * + * The column is still provisioned but **inert**: it is shaped after + * `organization_id` (`readonly`, `hidden`), not after `owner_id`, because it + * is a server-stamped scope anchor — and the stamping middleware (ADR-0117 + * D2/D4) has not landed, so nothing writes a value yet. See + * `applySystemFields`' injection site (`packages/objectql/src/registry.ts`) + * for why that shape presumes nothing about the undecided D2 policy. + * + * The NAME was reserved here by ADR-0117 (Accepted, D1/D3 scoped) ahead of the + * injection so the canonical spelling had one reference from the start, and so + * consumers stopped inventing their own (`business_unit_id`, `bu_id`, + * `dept_id` …) — the drift mode framework#4330 / cloud#982 already paid for + * with `tenant_id`/`org_id`/`space`. + * + * It is on the public-form denylist as defense-in-depth: it is a kernel-owned + * ownership anchor, and a forged value on the anonymous surface would move the + * row behind another department's wall — the same forge class + * `owner_id`/`organization_id` are denied for. Denying it before it existed + * was free and fail-closed; adding it only now that open-core injects it would + * have been a hole with a release in it. + * + * @see docs/adr/0117-owning-business-unit-record-stamp.md + */ + readonly OWNING_BUSINESS_UNIT_ID: "owning_business_unit_id"; + /** + * THE tenant isolation key — a lookup to `sys_organization`. INJECTED unless + * tenancy is disabled for the object; org-scoping populates it on insert and + * it stays NULL on single-tenant stacks. + */ + readonly ORGANIZATION_ID: "organization_id"; + /** + * Legacy / enterprise tenant alias. **NOT injected by open-core** — nothing + * provisions this column. It is stamped (from the session's *organization* + * id, `objectql` plugin) only on an object that DECLARES it, and it stays on + * the public-form denylist as defense-in-depth. Use + * {@link SystemFieldName.ORGANIZATION_ID} for tenant scoping; this constant + * exists so the legacy spelling still has one canonical reference. + */ + readonly TENANT_ID: "tenant_id"; + /** + * Foreign key to user on session / account objects. **Authored**, not + * injected — an ordinary business object may legitimately declare its own + * `user_id` lookup, so this name must never be used to classify a column as + * system-managed. + */ + readonly USER_ID: "user_id"; + /** + * Soft-delete timestamp. **NOT injected by `applySystemFields`** — written by + * the lifecycle / trash layer at runtime. + */ + readonly DELETED_AT: "deleted_at"; +}; + +// ── SystemFieldName (type) ── +type SystemFieldName = typeof SystemFieldName[keyof typeof SystemFieldName]; + +// ── SystemObjectName (const) ── +declare const SystemObjectName: { + /** Authentication: user identity */ + readonly USER: "sys_user"; + /** Authentication: active session */ + readonly SESSION: "sys_session"; + /** Authentication: OAuth / credential account */ + readonly ACCOUNT: "sys_account"; + /** Authentication: email / phone verification */ + readonly VERIFICATION: "sys_verification"; + /** Authentication: organization (multi-org support) */ + readonly ORGANIZATION: "sys_organization"; + /** Authentication: organization member */ + readonly MEMBER: "sys_member"; + /** Authentication: organization invitation */ + readonly INVITATION: "sys_invitation"; + /** Authentication: team within an organization */ + readonly TEAM: "sys_team"; + /** Authentication: team membership */ + readonly TEAM_MEMBER: "sys_team_member"; + /** Authentication: API key for programmatic access */ + readonly API_KEY: "sys_api_key"; + /** Authentication: two-factor authentication credentials */ + readonly TWO_FACTOR: "sys_two_factor"; + /** Authentication: registered OAuth/OIDC client application (when this server acts as an IdP) */ + readonly OAUTH_APPLICATION: "sys_oauth_application"; + /** Authentication: issued OAuth/OIDC access token */ + readonly OAUTH_ACCESS_TOKEN: "sys_oauth_access_token"; + /** Authentication: issued OAuth/OIDC refresh token (linked to a session) */ + readonly OAUTH_REFRESH_TOKEN: "sys_oauth_refresh_token"; + /** Authentication: recorded user consent for a given OAuth client + scopes */ + readonly OAUTH_CONSENT: "sys_oauth_consent"; + /** Authentication: registered OAuth protected resource (RFC 8707 resource indicator) */ + readonly OAUTH_RESOURCE: "sys_oauth_resource"; + /** Authentication: client ↔ protected-resource grant (RFC 8707) */ + readonly OAUTH_CLIENT_RESOURCE: "sys_oauth_client_resource"; + /** Authentication: consumed client-assertion JTI (RFC 7523 replay prevention) */ + readonly OAUTH_CLIENT_ASSERTION: "sys_oauth_client_assertion"; + /** Authentication: pending device-authorization (RFC 8628) request */ + readonly DEVICE_CODE: "sys_device_code"; + /** Authentication: JWKS key pair used to sign OIDC ID tokens / JWT access tokens */ + readonly JWKS: "sys_jwks"; + /** Authentication: user preferences (theme, locale, etc.) */ + readonly USER_PREFERENCE: "sys_user_preference"; + /** Security: position definition (flat capability-distribution group, ADR-0090 D3) */ + readonly POSITION: "sys_position"; + /** Security: permission set grouping */ + readonly PERMISSION_SET: "sys_permission_set"; + /** Audit: system audit log */ + readonly AUDIT_LOG: "sys_audit_log"; + /** System metadata storage */ + readonly METADATA: "sys_metadata"; + /** Realtime: user presence state */ + readonly PRESENCE: "sys_presence"; +}; + +// ── SystemObjectName (type) ── +type SystemObjectName = typeof SystemObjectName[keyof typeof SystemObjectName]; + +// ── SystemUserId (const) ── +declare const SystemUserId: { + /** + * Reserved well-known id for the legacy non-loginable system service account. + * + * NO LONGER AUTO-PROVISIONED. Ownership now works without it: seeds leave + * `owner_id` NULL (and `cel`os.user.id`` resolves to NULL at seed time, since + * the owning admin does not exist yet), and the first-admin bootstrap + * (`claimSeedOwnership`) re-owns those NULL rows to the promoted human admin. + * The runtime never mints a `usr_system` row. + * + * This constant survives only for backward compatibility: DBs created by an + * older runtime may still contain a `usr_system` row, so the first-admin + * exclusion guards (it must never be mistaken for a human admin) and the + * ownership handoff (which also claims any `owner_id = usr_system` rows) keep + * referencing it. On a fresh boot no such row exists and those references are + * harmless no-ops. + */ + readonly SYSTEM: "usr_system"; +}; + +// ── SystemUserId (type) ── +type SystemUserId = typeof SystemUserId[keyof typeof SystemUserId]; + +// ── TASK_PRIORITY_VALUES (const) ── +declare const TASK_PRIORITY_VALUES: Record; + +// ── TRANSLATABLE_METADATA_TYPES (const) ── +declare const TRANSLATABLE_METADATA_TYPES: ReadonlySet; + +// ── TRANSLATE_PLACEHOLDER (const) ── +declare const TRANSLATE_PLACEHOLDER = "__TRANSLATE__"; + +// ── Task (const) ── +declare const Task: z.ZodObject<{ + id: z.ZodString; + type: z.ZodString; + payload: z.ZodUnknown; + queue: z.ZodDefault; + priority: z.ZodDefault>; + retryPolicy: z.ZodOptional; + backoffStrategy: z.ZodDefault>; + initialDelayMs: z.ZodDefault; + maxDelayMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; + }, z.core.$strip>>; + timeoutMs: z.ZodOptional; + scheduledAt: z.ZodOptional; + attempts: z.ZodDefault; + status: z.ZodDefault>; + metadata: z.ZodOptional; + updatedAt: z.ZodOptional; + createdBy: z.ZodOptional; + tags: z.ZodOptional>; + }, z.core.$strip>>; +}, z.core.$strip> & { + create: >(task: T) => T; +}; + +// ── Task (type) ── +type Task = z.input; + +// ── TaskExecutionResult (type) ── +type TaskExecutionResult = z.input; + +// ── TaskExecutionResultSchema (const) ── +declare const TaskExecutionResultSchema: z.ZodObject<{ + taskId: z.ZodString; + status: z.ZodEnum<{ + timeout: "timeout"; + failed: "failed"; + completed: "completed"; + pending: "pending"; + cancelled: "cancelled"; + queued: "queued"; + processing: "processing"; + dead: "dead"; + }>; + result: z.ZodOptional; + error: z.ZodOptional; + code: z.ZodOptional; + }, z.core.$strip>>; + durationMs: z.ZodOptional; + startedAt: z.ZodString; + completedAt: z.ZodOptional; + attempt: z.ZodNumber; + willRetry: z.ZodBoolean; +}, z.core.$strip>; + +// ── TaskParsed (type) ── +type TaskParsed = z.infer; + +// ── TaskPriority (const) ── +declare const TaskPriority: z.ZodEnum<{ + critical: "critical"; + background: "background"; + low: "low"; + high: "high"; + normal: "normal"; +}>; + +// ── TaskPriority (type) ── +type TaskPriority = z.input; + +// ── TaskRetryPolicy (type) ── +type TaskRetryPolicy = z.input; + +// ── TaskRetryPolicyParsed (type) ── +type TaskRetryPolicyParsed = z.infer; + +// ── TaskRetryPolicySchema (const) ── +declare const TaskRetryPolicySchema: z.ZodObject<{ + maxRetries: z.ZodDefault; + backoffStrategy: z.ZodDefault>; + initialDelayMs: z.ZodDefault; + maxDelayMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; +}, z.core.$strip>; + +// ── TaskSchema (const) ── +declare const TaskSchema: z.ZodObject<{ + id: z.ZodString; + type: z.ZodString; + payload: z.ZodUnknown; + queue: z.ZodDefault; + priority: z.ZodDefault>; + retryPolicy: z.ZodOptional; + backoffStrategy: z.ZodDefault>; + initialDelayMs: z.ZodDefault; + maxDelayMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; + }, z.core.$strip>>; + timeoutMs: z.ZodOptional; + scheduledAt: z.ZodOptional; + attempts: z.ZodDefault; + status: z.ZodDefault>; + metadata: z.ZodOptional; + updatedAt: z.ZodOptional; + createdBy: z.ZodOptional; + tags: z.ZodOptional>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── TaskStatus (const) ── +declare const TaskStatus: z.ZodEnum<{ + timeout: "timeout"; + failed: "failed"; + completed: "completed"; + pending: "pending"; + cancelled: "cancelled"; + queued: "queued"; + processing: "processing"; + dead: "dead"; +}>; + +// ── TaskStatus (type) ── +type TaskStatus = z.input; + +// ── Tenant (type) ── +type Tenant = z.input; + +// ── TenantConnectionConfig (type) ── +type TenantConnectionConfig = z.input; + +// ── TenantConnectionConfigSchema (const) ── +declare const TenantConnectionConfigSchema: z.ZodObject<{ + url: z.ZodString; + authToken: z.ZodOptional; + group: z.ZodOptional; +}, z.core.$strip>; + +// ── TenantIsolationConfig (type) ── +type TenantIsolationConfig = z.input; + +// ── TenantIsolationConfigParsed (type) ── +type TenantIsolationConfigParsed = z.infer; + +// ── TenantIsolationConfigSchema (const) ── +declare const TenantIsolationConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ + strategy: z.ZodLiteral<"shared_schema">; + database: z.ZodOptional; + contextMethod: z.ZodDefault>; + contextVariable: z.ZodDefault; + applicationValidation: z.ZodDefault; + }, z.core.$strip>>; + performance: z.ZodOptional; + usePartitioning: z.ZodDefault; + poolSizePerTenant: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>, z.ZodObject<{ + strategy: z.ZodLiteral<"isolated_schema">; + schema: z.ZodOptional; + includePublicSchema: z.ZodDefault; + sharedSchema: z.ZodDefault; + autoCreateSchema: z.ZodDefault; + }, z.core.$strip>>; + migrations: z.ZodOptional>; + maxConcurrent: z.ZodDefault; + rollbackOnError: z.ZodDefault; + }, z.core.$strip>>; + performance: z.ZodOptional; + schemaCacheTtlSeconds: z.ZodDefault; + schemaCacheTTL: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>, z.ZodObject<{ + strategy: z.ZodLiteral<"isolated_db">; + database: z.ZodOptional; + serverStrategy: z.ZodDefault>; + separateCredentials: z.ZodDefault; + autoCreateDatabase: z.ZodDefault; + }, z.core.$strip>>; + connectionPool: z.ZodOptional; + maxActivePools: z.ZodDefault; + idleTimeoutSeconds: z.ZodDefault; + idleTimeout: z.ZodOptional; + usePooler: z.ZodDefault; + }, z.core.$strip>>; + backup: z.ZodOptional>; + frequencyHours: z.ZodDefault; + retentionDays: z.ZodDefault; + }, z.core.$strip>>; + encryption: z.ZodOptional; + algorithm: z.ZodDefault; + keyManagement: z.ZodOptional>; + }, z.core.$strip>>; +}, z.core.$strip>], "strategy">; + +// ── TenantIsolationLevel (const) ── +declare const TenantIsolationLevel: z.ZodEnum<{ + shared_schema: "shared_schema"; + isolated_schema: "isolated_schema"; + isolated_db: "isolated_db"; +}>; + +// ── TenantIsolationLevel (type) ── +type TenantIsolationLevel = z.input; + +// ── TenantQuota (type) ── +type TenantQuota = z.input; + +// ── TenantQuotaSchema (const) ── +declare const TenantQuotaSchema: z.ZodObject<{ + maxUsers: z.ZodOptional; + maxStorage: z.ZodOptional; + apiRateLimit: z.ZodOptional; + maxObjects: z.ZodOptional; + maxRecordsPerObject: z.ZodOptional; + maxDeploymentsPerDay: z.ZodOptional; + maxStorageBytes: z.ZodOptional; +}, z.core.$strip>; + +// ── TenantSchema (const) ── +declare const TenantSchema: z.ZodObject<{ + id: z.ZodString; + name: z.ZodString; + isolationLevel: z.ZodEnum<{ + shared_schema: "shared_schema"; + isolated_schema: "isolated_schema"; + isolated_db: "isolated_db"; + }>; + databaseProvider: z.ZodOptional>; + connectionConfig: z.ZodOptional; + group: z.ZodOptional; + }, z.core.$strip>>; + provisioningStatus: z.ZodOptional>; + plan: z.ZodOptional>; + customizations: z.ZodOptional>; + quotas: z.ZodOptional; + maxStorage: z.ZodOptional; + apiRateLimit: z.ZodOptional; + maxObjects: z.ZodOptional; + maxRecordsPerObject: z.ZodOptional; + maxDeploymentsPerDay: z.ZodOptional; + maxStorageBytes: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── TenantSecurityPolicy (type) ── +type TenantSecurityPolicy = z.input; + +// ── TenantSecurityPolicyParsed (type) ── +type TenantSecurityPolicyParsed = z.infer; + +// ── TenantSecurityPolicySchema (const) ── +declare const TenantSecurityPolicySchema: z.ZodObject<{ + encryption: z.ZodOptional; + inTransit: z.ZodDefault; + fieldLevel: z.ZodDefault; + }, z.core.$strip>>; + accessControl: z.ZodOptional; + requireSSO: z.ZodDefault; + ipWhitelist: z.ZodOptional>; + sessionTimeoutSeconds: z.ZodDefault; + sessionTimeout: z.ZodOptional; + }, z.core.$strip>>; + compliance: z.ZodOptional>>; + requireAuditLog: z.ZodDefault; + auditRetentionDays: z.ZodDefault; + dataResidency: z.ZodOptional; + excludeRegions: z.ZodOptional>; + }, z.core.$strip>>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── TenantUsage (type) ── +type TenantUsage = z.input; + +// ── TenantUsageParsed (type) ── +type TenantUsageParsed = z.infer; + +// ── TenantUsageSchema (const) ── +declare const TenantUsageSchema: z.ZodObject<{ + currentObjectCount: z.ZodDefault; + currentRecordCount: z.ZodDefault; + currentStorageBytes: z.ZodDefault; + deploymentsToday: z.ZodDefault; + currentUsers: z.ZodDefault; + apiRequestsThisMinute: z.ZodDefault; + lastUpdatedAt: z.ZodOptional; +}, z.core.$strip>; + +// ── TextCRDTOperation (type) ── +type TextCRDTOperation = z.input; + +// ── TextCRDTOperationSchema (const) ── +declare const TextCRDTOperationSchema: z.ZodObject<{ + operationId: z.ZodString; + replicaId: z.ZodString; + position: z.ZodNumber; + insert: z.ZodOptional; + delete: z.ZodOptional; + timestamp: z.ZodString; + lamportTimestamp: z.ZodNumber; +}, z.core.$strip>; + +// ── TextCRDTState (type) ── +type TextCRDTState = z.input; + +// ── TextCRDTStateSchema (const) ── +declare const TextCRDTStateSchema: z.ZodObject<{ + type: z.ZodLiteral<"text">; + documentId: z.ZodString; + content: z.ZodString; + operations: z.ZodArray; + delete: z.ZodOptional; + timestamp: z.ZodString; + lamportTimestamp: z.ZodNumber; + }, z.core.$strip>>; + lamportClock: z.ZodNumber; + vectorClock: z.ZodObject<{ + clock: z.ZodRecord; + }, z.core.$strip>; +}, z.core.$strip>; + +// ── TimeSeries (type) ── +type TimeSeries = z.input; + +// ── TimeSeriesDataPoint (type) ── +type TimeSeriesDataPoint = z.input; + +// ── TimeSeriesDataPointSchema (const) ── +declare const TimeSeriesDataPointSchema: z.ZodObject<{ + timestamp: z.ZodString; + value: z.ZodNumber; + labels: z.ZodOptional>; +}, z.core.$strip>; + +// ── TimeSeriesSchema (const) ── +declare const TimeSeriesSchema: z.ZodObject<{ + name: z.ZodString; + labels: z.ZodOptional>; + dataPoints: z.ZodArray>; + }, z.core.$strip>>; + startTime: z.ZodOptional; + endTime: z.ZodOptional; +}, z.core.$strip>; + +// ── TraceContext (type) ── +type TraceContext = z.input; + +// ── TraceContextParsed (type) ── +type TraceContextParsed = z.infer; + +// ── TraceContextPropagation (type) ── +type TraceContextPropagation = z.input; + +// ── TraceContextPropagationParsed (type) ── +type TraceContextPropagationParsed = z.infer; + +// ── TraceContextPropagationSchema (const) ── +declare const TraceContextPropagationSchema: z.ZodObject<{ + formats: z.ZodDefault>>>; + extract: z.ZodDefault>; + inject: z.ZodDefault>; + headers: z.ZodOptional; + spanId: z.ZodOptional; + traceFlags: z.ZodOptional; + traceState: z.ZodOptional; + }, z.core.$strip>>; + baggage: z.ZodOptional>; + maxSize: z.ZodDefault>; + allowedKeys: z.ZodOptional>; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── TraceContextSchema (const) ── +declare const TraceContextSchema: z.ZodObject<{ + traceId: z.ZodString; + spanId: z.ZodString; + traceFlags: z.ZodDefault>; + traceState: z.ZodOptional; + }, z.core.$strip>>; + parentSpanId: z.ZodOptional; + sampled: z.ZodDefault>; + remote: z.ZodDefault>; +}, z.core.$strip>; + +// ── TraceFlags (type) ── +type TraceFlags = z.input; + +// ── TraceFlagsSchema (const) ── +declare const TraceFlagsSchema: z.ZodNumber; + +// ── TracePropagationFormat (const) ── +declare const TracePropagationFormat: z.ZodEnum<{ + custom: "custom"; + w3c: "w3c"; + b3: "b3"; + b3_multi: "b3_multi"; + jaeger: "jaeger"; + xray: "xray"; + ottrace: "ottrace"; +}>; + +// ── TracePropagationFormat (type) ── +type TracePropagationFormat = z.input; + +// ── TraceSamplingConfig (type) ── +type TraceSamplingConfig = z.input; + +// ── TraceSamplingConfigParsed (type) ── +type TraceSamplingConfigParsed = z.infer; + +// ── TraceSamplingConfigSchema (const) ── +declare const TraceSamplingConfigSchema: z.ZodObject<{ + type: z.ZodEnum<{ + custom: "custom"; + composite: "composite"; + always_on: "always_on"; + always_off: "always_off"; + trace_id_ratio: "trace_id_ratio"; + rate_limiting: "rate_limiting"; + parent_based: "parent_based"; + probability: "probability"; + }>; + ratio: z.ZodOptional; + rateLimit: z.ZodOptional; + parentBased: z.ZodOptional>>; + whenParentNotSampled: z.ZodDefault>>; + root: z.ZodDefault>>; + rootRatio: z.ZodDefault>; + }, z.core.$strip>>; + composite: z.ZodOptional; + ratio: z.ZodOptional; + condition: z.ZodOptional, z.ZodUnion>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + }, z.core.$strip>>>; + rules: z.ZodDefault; + spanName: z.ZodOptional; + attributes: z.ZodOptional>; + }, z.core.$strip>>; + decision: z.ZodEnum<{ + drop: "drop"; + record_only: "record_only"; + record_and_sample: "record_and_sample"; + }>; + rate: z.ZodOptional; + }, z.core.$strip>>>>; + customSamplerId: z.ZodOptional; +}, z.core.$strip>; + +// ── TraceState (type) ── +type TraceState = z.input; + +// ── TraceStateSchema (const) ── +declare const TraceStateSchema: z.ZodObject<{ + entries: z.ZodRecord; +}, z.core.$strip>; + +// ── TracingConfig (type) ── +type TracingConfig = z.input; + +// ── TracingConfigParsed (type) ── +type TracingConfigParsed = z.infer; + +// ── TracingConfigSchema (const) ── +declare const TracingConfigSchema: z.ZodObject<{ + name: z.ZodString; + label: z.ZodString; + enabled: z.ZodDefault>; + sampling: z.ZodDefault; + ratio: z.ZodOptional; + rateLimit: z.ZodOptional; + parentBased: z.ZodOptional>>; + whenParentNotSampled: z.ZodDefault>>; + root: z.ZodDefault>>; + rootRatio: z.ZodDefault>; + }, z.core.$strip>>; + composite: z.ZodOptional; + ratio: z.ZodOptional; + condition: z.ZodOptional, z.ZodUnion>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + }, z.core.$strip>>>; + rules: z.ZodDefault; + spanName: z.ZodOptional; + attributes: z.ZodOptional>; + }, z.core.$strip>>; + decision: z.ZodEnum<{ + drop: "drop"; + record_only: "record_only"; + record_and_sample: "record_and_sample"; + }>; + rate: z.ZodOptional; + }, z.core.$strip>>>>; + customSamplerId: z.ZodOptional; + }, z.core.$strip>>>; + propagation: z.ZodDefault>>>; + extract: z.ZodDefault>; + inject: z.ZodDefault>; + headers: z.ZodOptional; + spanId: z.ZodOptional; + traceFlags: z.ZodOptional; + traceState: z.ZodOptional; + }, z.core.$strip>>; + baggage: z.ZodOptional>; + maxSize: z.ZodDefault>; + allowedKeys: z.ZodOptional>; + }, z.core.$strip>>; + }, z.core.$strip>>>; + openTelemetry: z.ZodOptional; + exporter: z.ZodObject<{ + type: z.ZodEnum<{ + custom: "custom"; + console: "console"; + datadog: "datadog"; + jaeger: "jaeger"; + otlp_http: "otlp_http"; + otlp_grpc: "otlp_grpc"; + zipkin: "zipkin"; + honeycomb: "honeycomb"; + lightstep: "lightstep"; + newrelic: "newrelic"; + }>; + endpoint: z.ZodOptional; + protocol: z.ZodOptional; + headers: z.ZodOptional>; + timeoutMs: z.ZodDefault>; + timeout: z.ZodOptional; + compression: z.ZodDefault>>; + batch: z.ZodOptional>; + maxQueueSize: z.ZodDefault>; + exportTimeoutMs: z.ZodDefault>; + scheduledDelayMs: z.ZodDefault>; + exportTimeout: z.ZodOptional; + scheduledDelay: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>; + resource: z.ZodObject<{ + serviceName: z.ZodString; + serviceVersion: z.ZodOptional; + serviceInstanceId: z.ZodOptional; + serviceNamespace: z.ZodOptional; + deploymentEnvironment: z.ZodOptional; + attributes: z.ZodOptional, z.ZodArray, z.ZodArray]>>>; + }, z.core.$strip>; + instrumentation: z.ZodOptional>; + libraries: z.ZodOptional>; + disabledLibraries: z.ZodOptional>; + }, z.core.$strip>>; + semanticConventionsVersion: z.ZodOptional; + }, z.core.$strip>>; + spanLimits: z.ZodOptional>; + maxEvents: z.ZodDefault>; + maxLinks: z.ZodDefault>; + maxAttributeValueLength: z.ZodDefault>; + }, z.core.$strip>>; + traceIdGenerator: z.ZodDefault>>; + customTraceIdGeneratorId: z.ZodOptional; + performance: z.ZodOptional>; + exportIntervalMs: z.ZodDefault>; + exportInterval: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strip>; + +// ── TranslateDocumentOptions (interface) ── +interface TranslateDocumentOptions extends ResolveOptions { + /** + * The PACKAGED (code-layer) base document this one was resolved from — the + * owner's own declaration, BEFORE `objectExtensions` are folded on + * (ADR-0029 D9.2) and before any tenant `sys_metadata` overlay. + * + * Supplied by the serving layer, which is the only one that knows it; when + * it is absent the translators behave exactly as they did before #8284 (the + * catalog applies unconditionally), because "no baseline known" is not + * evidence that a value was authored. + * + * See {@link translateObject} for the rule it feeds. + */ + packagedBase?: unknown; +} + +// ── TranslationBundle (type) ── +type TranslationBundle = z.input; + +// ── TranslationBundleSchema (const) ── +declare const TranslationBundleSchema: z.ZodRecord; + pluralLabel: z.ZodOptional; + description: z.ZodOptional; + fields: z.ZodOptional; + help: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + _views: z.ZodOptional; + description: z.ZodOptional; + emptyState: z.ZodOptional; + message: z.ZodOptional; + }, z.core.$strict>>; + bulkActions: z.ZodOptional; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + params: z.ZodOptional; + help: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + _actions: z.ZodOptional; + description: z.ZodOptional; + confirmText: z.ZodOptional; + successMessage: z.ZodOptional; + params: z.ZodOptional; + helpText: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + resultDialog: z.ZodOptional; + description: z.ZodOptional; + acknowledge: z.ZodOptional; + fields: z.ZodOptional>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + _sections: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + _tabs: z.ZodOptional; + }, z.core.$strict>>>; + _validations: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + apps: z.ZodOptional; + navigation: z.ZodOptional>>; + }, z.core.$strict>>>; + messages: z.ZodOptional>; + globalActions: z.ZodOptional; + description: z.ZodOptional; + confirmText: z.ZodOptional; + successMessage: z.ZodOptional; + params: z.ZodOptional; + helpText: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + resultDialog: z.ZodOptional; + description: z.ZodOptional; + acknowledge: z.ZodOptional; + fields: z.ZodOptional>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + dashboards: z.ZodOptional; + description: z.ZodOptional; + actions: z.ZodOptional; + }, z.core.$strict>>>; + widgets: z.ZodOptional; + description: z.ZodOptional; + subCaption: z.ZodOptional; + }, z.core.$strict>>>; + globalFilters: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + datasets: z.ZodOptional; + description: z.ZodOptional; + dimensions: z.ZodOptional; + }, z.core.$strict>>>; + measures: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + pages: z.ZodOptional; + description: z.ZodOptional; + title: z.ZodOptional; + subtitle: z.ZodOptional; + components: z.ZodOptional; + description: z.ZodOptional; + label: z.ZodOptional; + placeholder: z.ZodOptional; + emptyText: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + flows: z.ZodOptional; + screens: z.ZodOptional; + fields: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + settings: z.ZodOptional; + description: z.ZodOptional; + groups: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + keys: z.ZodOptional; + help: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + actions: z.ZodOptional; + confirmText: z.ZodOptional; + successMessage: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + metadataForms: z.ZodOptional; + description: z.ZodOptional; + sections: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + fields: z.ZodOptional; + helpText: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + settingsCommon: z.ZodOptional; + global: z.ZodOptional; + tenant: z.ZodOptional; + user: z.ZodOptional; + default: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; +}, z.core.$strict>>; + +// ── TranslationConfig (type) ── +type TranslationConfig = z.input; + +// ── TranslationConfigSchema (const) ── +declare const TranslationConfigSchema: z.ZodObject<{ + defaultLocale: z.ZodString; + supportedLocales: z.ZodArray; + fallbackLocale: z.ZodOptional; +}, z.core.$strict>; + +// ── TranslationCoverageResult (type) ── +type TranslationCoverageResult = z.input; + +// ── TranslationCoverageResultSchema (const) ── +declare const TranslationCoverageResultSchema: z.ZodObject<{ + locale: z.ZodString; + objectName: z.ZodOptional; + totalKeys: z.ZodNumber; + translatedKeys: z.ZodNumber; + missingKeys: z.ZodNumber; + redundantKeys: z.ZodNumber; + staleKeys: z.ZodNumber; + coveragePercent: z.ZodNumber; + items: z.ZodArray; + objectName: z.ZodOptional; + locale: z.ZodString; + sourceHash: z.ZodOptional; + aiSuggested: z.ZodOptional; + aiConfidence: z.ZodOptional; + }, z.core.$strip>>; + breakdown: z.ZodOptional>>; +}, z.core.$strip>; + +// ── TranslationData (type) ── +type TranslationData = z.input; + +// ── TranslationDataSchema (const) ── +declare const TranslationDataSchema: z.ZodObject<{ + objects: z.ZodOptional; + pluralLabel: z.ZodOptional; + description: z.ZodOptional; + fields: z.ZodOptional; + help: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + _views: z.ZodOptional; + description: z.ZodOptional; + emptyState: z.ZodOptional; + message: z.ZodOptional; + }, z.core.$strict>>; + bulkActions: z.ZodOptional; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + params: z.ZodOptional; + help: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + _actions: z.ZodOptional; + description: z.ZodOptional; + confirmText: z.ZodOptional; + successMessage: z.ZodOptional; + params: z.ZodOptional; + helpText: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + resultDialog: z.ZodOptional; + description: z.ZodOptional; + acknowledge: z.ZodOptional; + fields: z.ZodOptional>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + _sections: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + _tabs: z.ZodOptional; + }, z.core.$strict>>>; + _validations: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + apps: z.ZodOptional; + navigation: z.ZodOptional>>; + }, z.core.$strict>>>; + messages: z.ZodOptional>; + globalActions: z.ZodOptional; + description: z.ZodOptional; + confirmText: z.ZodOptional; + successMessage: z.ZodOptional; + params: z.ZodOptional; + helpText: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + resultDialog: z.ZodOptional; + description: z.ZodOptional; + acknowledge: z.ZodOptional; + fields: z.ZodOptional>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + dashboards: z.ZodOptional; + description: z.ZodOptional; + actions: z.ZodOptional; + }, z.core.$strict>>>; + widgets: z.ZodOptional; + description: z.ZodOptional; + subCaption: z.ZodOptional; + }, z.core.$strict>>>; + globalFilters: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + datasets: z.ZodOptional; + description: z.ZodOptional; + dimensions: z.ZodOptional; + }, z.core.$strict>>>; + measures: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + pages: z.ZodOptional; + description: z.ZodOptional; + title: z.ZodOptional; + subtitle: z.ZodOptional; + components: z.ZodOptional; + description: z.ZodOptional; + label: z.ZodOptional; + placeholder: z.ZodOptional; + emptyText: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + flows: z.ZodOptional; + screens: z.ZodOptional; + fields: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + settings: z.ZodOptional; + description: z.ZodOptional; + groups: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + keys: z.ZodOptional; + help: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + actions: z.ZodOptional; + confirmText: z.ZodOptional; + successMessage: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + metadataForms: z.ZodOptional; + description: z.ZodOptional; + sections: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + fields: z.ZodOptional; + helpText: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + settingsCommon: z.ZodOptional; + global: z.ZodOptional; + tenant: z.ZodOptional; + user: z.ZodOptional; + default: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── TranslationDiffItem (type) ── +type TranslationDiffItem = z.input; + +// ── TranslationDiffItemSchema (const) ── +declare const TranslationDiffItemSchema: z.ZodObject<{ + key: z.ZodString; + status: z.ZodEnum<{ + missing: "missing"; + redundant: "redundant"; + stale: "stale"; + }>; + objectName: z.ZodOptional; + locale: z.ZodString; + sourceHash: z.ZodOptional; + aiSuggested: z.ZodOptional; + aiConfidence: z.ZodOptional; +}, z.core.$strip>; + +// ── TranslationDiffStatus (type) ── +type TranslationDiffStatus = z.input; + +// ── TranslationDiffStatusSchema (const) ── +declare const TranslationDiffStatusSchema: z.ZodEnum<{ + missing: "missing"; + redundant: "redundant"; + stale: "stale"; +}>; + +// ── TranslationItem (type) ── +type TranslationItem = z.input; + +// ── TranslationItemSchema (const) ── +declare const TranslationItemSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + locale: z.ZodString; + name: z.ZodOptional; + label: z.ZodOptional; + objects: z.ZodOptional; + pluralLabel: z.ZodOptional; + description: z.ZodOptional; + fields: z.ZodOptional; + help: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + _views: z.ZodOptional; + description: z.ZodOptional; + emptyState: z.ZodOptional; + message: z.ZodOptional; + }, z.core.$strict>>; + bulkActions: z.ZodOptional; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + params: z.ZodOptional; + help: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + _actions: z.ZodOptional; + description: z.ZodOptional; + confirmText: z.ZodOptional; + successMessage: z.ZodOptional; + params: z.ZodOptional; + helpText: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + resultDialog: z.ZodOptional; + description: z.ZodOptional; + acknowledge: z.ZodOptional; + fields: z.ZodOptional>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + _sections: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + _tabs: z.ZodOptional; + }, z.core.$strict>>>; + _validations: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + apps: z.ZodOptional; + navigation: z.ZodOptional>>; + }, z.core.$strict>>>; + messages: z.ZodOptional>; + globalActions: z.ZodOptional; + description: z.ZodOptional; + confirmText: z.ZodOptional; + successMessage: z.ZodOptional; + params: z.ZodOptional; + helpText: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + resultDialog: z.ZodOptional; + description: z.ZodOptional; + acknowledge: z.ZodOptional; + fields: z.ZodOptional>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + dashboards: z.ZodOptional; + description: z.ZodOptional; + actions: z.ZodOptional; + }, z.core.$strict>>>; + widgets: z.ZodOptional; + description: z.ZodOptional; + subCaption: z.ZodOptional; + }, z.core.$strict>>>; + globalFilters: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + datasets: z.ZodOptional; + description: z.ZodOptional; + dimensions: z.ZodOptional; + }, z.core.$strict>>>; + measures: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + pages: z.ZodOptional; + description: z.ZodOptional; + title: z.ZodOptional; + subtitle: z.ZodOptional; + components: z.ZodOptional; + description: z.ZodOptional; + label: z.ZodOptional; + placeholder: z.ZodOptional; + emptyText: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + flows: z.ZodOptional; + screens: z.ZodOptional; + fields: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + settings: z.ZodOptional; + description: z.ZodOptional; + groups: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + keys: z.ZodOptional; + help: z.ZodOptional; + placeholder: z.ZodOptional; + options: z.ZodOptional>; + }, z.core.$strict>>>; + actions: z.ZodOptional; + confirmText: z.ZodOptional; + successMessage: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + metadataForms: z.ZodOptional; + description: z.ZodOptional; + sections: z.ZodOptional; + description: z.ZodOptional; + }, z.core.$strict>>>; + fields: z.ZodOptional; + helpText: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>>; + settingsCommon: z.ZodOptional; + global: z.ZodOptional; + tenant: z.ZodOptional; + user: z.ZodOptional; + default: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── UserActivityStatus (const) ── +declare const UserActivityStatus: z.ZodEnum<{ + active: "active"; + idle: "idle"; + viewing: "viewing"; + disconnected: "disconnected"; +}>; + +// ── UserActivityStatus (type) ── +type UserActivityStatus = z.input; + +// ── VALIDATION_MESSAGE_FALLBACK_LOCALE (const) ── +declare const VALIDATION_MESSAGE_FALLBACK_LOCALE = "en"; + +// ── VALIDATION_MESSAGE_KEY_PREFIX (const) ── +declare const VALIDATION_MESSAGE_KEY_PREFIX = "validation.field"; + +// ── VALUE_SHAPES_MIGRATION_ID (const) ── +declare const VALUE_SHAPES_MIGRATION_ID = "adr-0104-value-shapes"; + +// ── ValidationMessageTranslator (type) ── +type ValidationMessageTranslator = (key: string, locale: string, params?: Record) => string; + +// ── VectorClock (type) ── +type VectorClock = z.input; + +// ── VectorClockSchema (const) ── +declare const VectorClockSchema: z.ZodObject<{ + clock: z.ZodRecord; +}, z.core.$strip>; + +// ── ViewLike (interface) ── +interface ViewLike { + /** + * View identity. The served document namespaces this to `.` + * (`crm_account.account_gallery`); translations key on the bare ``, + * so the object prefix is stripped before lookup — see + * {@link viewTranslationKey}. + */ + name: string; + label?: string; + description?: string; + /** Object the view is bound to. Required for translation lookup. */ + objectName?: string; + /** + * The bound object as the SERVED document spells it. `expandViewContainer` + * stamps `object` (never `objectName`) onto every expanded ViewItem, so this + * — not `objectName` — is the field a real `/meta/view` response carries. + */ + object?: string; + /** Some view definitions name the bound object via `data.object`. */ + data?: { + object?: string; + }; + /** + * Served ViewItems nest the authored view config here, which carries its own + * `data.object` for views that retarget another object. Read only as a last + * resort — a default `form` config carries no `data` at all, which is why + * top-level `object` is the load-bearing field. + * + * It is also where a list view's `bulkActionDefs[]` live — `ViewItemSchema` + * puts the whole `ListViewSchema` under `config`, and `expandViewContainer` + * does the same for a container-authored view, so `config.bulkActionDefs` is + * the ONE address a served def has. See {@link translateView}. + */ + config?: { + data?: { + object?: string; + }; + bulkActionDefs?: unknown; + [key: string]: unknown; + }; +} + +// ── ViewTabLike (interface) ── +interface ViewTabLike { + /** Tab identifier (snake_case) — the `_tabs` key. */ + name: string; + label?: string; + /** Referenced list view name, when the tab is a saved-view shortcut. */ + view?: string; + [key: string]: unknown; +} + +// ── WidgetLike (interface) ── +interface WidgetLike { + id?: string; + title?: string; + description?: string; + /** + * The renderer-extras bag (`DashboardWidgetOptionsSchema`). `translateDashboard` + * writes exactly one key into it — `description`, the metric widget's + * sub-caption slot — when the bundle carries a + * `dashboards..widgets..subCaption` entry (#5428 item 4, #7862). + */ + options?: Record; + [key: string]: any; +} + +// ── WorkerConfig (const) ── +declare const WorkerConfig: z.ZodObject<{ + name: z.ZodString; + queues: z.ZodArray; + queueConfigs: z.ZodOptional; + rateLimit: z.ZodOptional; + }, z.core.$strip>>; + defaultRetryPolicy: z.ZodOptional; + backoffStrategy: z.ZodDefault>; + initialDelayMs: z.ZodDefault; + maxDelayMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; + }, z.core.$strip>>; + deadLetterQueue: z.ZodOptional; + priority: z.ZodDefault; + autoScale: z.ZodOptional; + minWorkers: z.ZodDefault; + maxWorkers: z.ZodDefault; + scaleUpThreshold: z.ZodDefault; + scaleDownThreshold: z.ZodDefault; + }, z.core.$strip>>; + }, z.core.$strip>>>; + pollIntervalMs: z.ZodDefault; + visibilityTimeoutMs: z.ZodDefault; + defaultTimeoutMs: z.ZodDefault; + shutdownTimeoutMs: z.ZodDefault; + handlers: z.ZodOptional>>; +}, z.core.$strip> & { + create: >(config: T) => T; +}; + +// ── WorkerConfig (type) ── +type WorkerConfig = z.input; + +// ── WorkerConfigParsed (type) ── +type WorkerConfigParsed = z.infer; + +// ── WorkerConfigSchema (const) ── +declare const WorkerConfigSchema: z.ZodObject<{ + name: z.ZodString; + queues: z.ZodArray; + queueConfigs: z.ZodOptional; + rateLimit: z.ZodOptional; + }, z.core.$strip>>; + defaultRetryPolicy: z.ZodOptional; + backoffStrategy: z.ZodDefault>; + initialDelayMs: z.ZodDefault; + maxDelayMs: z.ZodDefault; + backoffMultiplier: z.ZodDefault; + }, z.core.$strip>>; + deadLetterQueue: z.ZodOptional; + priority: z.ZodDefault; + autoScale: z.ZodOptional; + minWorkers: z.ZodDefault; + maxWorkers: z.ZodDefault; + scaleUpThreshold: z.ZodDefault; + scaleDownThreshold: z.ZodDefault; + }, z.core.$strip>>; + }, z.core.$strip>>>; + pollIntervalMs: z.ZodDefault; + visibilityTimeoutMs: z.ZodDefault; + defaultTimeoutMs: z.ZodDefault; + shutdownTimeoutMs: z.ZodDefault; + handlers: z.ZodOptional>>; +}, z.core.$strip>; + +// ── WorkerStats (type) ── +type WorkerStats = z.input; + +// ── WorkerStatsSchema (const) ── +declare const WorkerStatsSchema: z.ZodObject<{ + workerName: z.ZodString; + totalProcessed: z.ZodNumber; + succeeded: z.ZodNumber; + failed: z.ZodNumber; + active: z.ZodNumber; + avgExecutionMs: z.ZodOptional; + uptimeMs: z.ZodNumber; + queues: z.ZodOptional>>; +}, z.core.$strip>; + +// ── audienceAllows (function) ── +declare function audienceAllows(audience: BookAudience | undefined, caller: AudienceCaller): boolean; + +// ── audiencePermitsSelfRegistration (function) ── +declare function audiencePermitsSelfRegistration(posture: AudiencePosture): boolean; + +// ── authorisesIrreversibleAction (function) ── +declare function authorisesIrreversibleAction(flag: DataMigrationFlag | null | undefined): boolean; + +// ── azureBlobStorageExample (const) ── +declare const azureBlobStorageExample: { + name: string; + label: string; + provider: "local" | "s3" | "azure_blob" | "gcs" | "minio" | "r2" | "spaces" | "wasabi" | "backblaze"; + scope: "user" | "tenant" | "global" | "data" | "cache" | "public" | "config" | "session" | "temp" | "logs"; + connection: { + useSSL: boolean; + accessKeyId?: string | undefined; + secretAccessKey?: string | undefined; + sessionToken?: string | undefined; + accountName?: string | undefined; + accountKey?: string | undefined; + sasToken?: string | undefined; + environmentId?: string | undefined; + credentials?: string | undefined; + endpoint?: string | undefined; + region?: string | undefined; + timeoutMs?: number | undefined; + timeout?: undefined; + }; + buckets: { + name: string; + label: string; + bucketName: string; + provider: "local" | "s3" | "azure_blob" | "gcs" | "minio" | "r2" | "spaces" | "wasabi" | "backblaze"; + pathStyle: boolean; + versioning: boolean; + enabled: boolean; + region?: string | undefined; + endpoint?: string | undefined; + encryption?: { + enabled: boolean; + algorithm: "AES256" | "aws:kms" | "azure:kms" | "gcp:kms"; + kmsKeyId?: string | undefined; + } | undefined; + accessControl?: { + acl: "private" | "public_read" | "public_read_write" | "authenticated_read" | "bucket_owner_read" | "bucket_owner_full_control"; + corsEnabled: boolean; + allowedOrigins?: string[] | undefined; + allowedMethods?: ("GET" | "POST" | "PUT" | "DELETE" | "HEAD")[] | undefined; + allowedHeaders?: string[] | undefined; + exposeHeaders?: string[] | undefined; + maxAgeSeconds?: number | undefined; + maxAge?: undefined; + publicAccess?: { + allowPublicRead: boolean; + allowPublicWrite: boolean; + allowPublicList: boolean; + } | undefined; + allowedIps?: string[] | undefined; + blockedIps?: string[] | undefined; + } | undefined; + lifecyclePolicy?: { + enabled: boolean; + rules: { + id: string; + enabled: boolean; + action: "abort" | "delete" | "transition"; + prefix?: string | undefined; + tags?: Record | undefined; + daysAfterCreation?: number | undefined; + daysAfterModification?: number | undefined; + targetStorageClass?: "standard" | "intelligent" | "infrequent_access" | "glacier" | "deep_archive" | undefined; + }[]; + } | undefined; + multipartConfig?: { + enabled: boolean; + partSize: number; + maxParts: number; + threshold: number; + maxConcurrent: number; + abortIncompleteAfterDays?: number | undefined; + } | undefined; + tags?: Record | undefined; + description?: string | undefined; + }[]; + enabled: boolean; + defaultBucket?: string | undefined; + location?: string | undefined; + quota?: number | undefined; + options?: Record | undefined; + description?: string | undefined; +}; + +// ── defineBook (function) ── +declare function defineBook(book: Book): Book; + +// ── defineEmailTemplateDefinition (function) ── +declare function defineEmailTemplateDefinition(config: z.input): EmailTemplateDefinitionParsed; + +// ── defineJob (function) ── +declare function defineJob(config: z.input): JobParsed; + +// ── defineTranslation (function) ── +declare function defineTranslation(config: z.input): TranslationItem; + +// ── defineTranslationBundle (function) ── +declare function defineTranslationBundle(config: z.input): TranslationBundle; + +// ── deriveImplicitPackageBook (function) ── +declare function deriveImplicitPackageBook(packageId: string, label?: string): Book; + +// ── docAudienceAllows (function) ── +declare function docAudienceAllows(audiences: readonly BookAudience[] | undefined, caller: AudienceCaller): boolean; + +// ── emailTemplateForm (const) ── +declare const emailTemplateForm: { + type: "split" | "simple" | "modal" | "drawer" | "tabbed" | "wizard"; + layout?: "grid" | "inline" | "vertical" | "horizontal" | undefined; + columns?: number | undefined; + title?: string | undefined; + description?: string | undefined; + defaultTab?: string | undefined; + tabPosition?: "left" | "right" | "top" | "bottom" | undefined; + allowSkip?: boolean | undefined; + showStepIndicator?: boolean | undefined; + splitDirection?: "vertical" | "horizontal" | undefined; + splitSize?: number | undefined; + splitResizable?: boolean | undefined; + drawerSide?: "left" | "right" | "top" | "bottom" | undefined; + drawerWidth?: string | undefined; + modalSize?: "default" | "full" | "sm" | "lg" | "xl" | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + sections?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + groups?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + subforms?: { + childObject: string; + relationshipField?: string | undefined; + columns?: any[] | undefined; + amountField?: string | undefined; + totalField?: string | undefined; + title?: string | undefined; + addLabel?: string | undefined; + minRows?: number | undefined; + maxRows?: number | undefined; + }[] | undefined; + defaultSort?: undefined; + sharing?: { + enabled: boolean; + allowAnonymous: boolean; + publicLink?: string | undefined; + password?: string | undefined; + allowedDomains?: string[] | undefined; + expiresAt?: string | undefined; + } | undefined; + submitBehavior?: { + kind: "thank-you"; + title?: string | undefined; + message?: string | undefined; + } | { + kind: "redirect"; + url: string; + delayMs?: number | undefined; + } | { + kind: "continue"; + } | { + kind: "next-record"; + } | undefined; + buttons?: { + submit?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + cancel?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + reset?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + } | undefined; + defaults?: Record | undefined; + aria?: undefined; +}; + +// ── gcsStorageExample (const) ── +declare const gcsStorageExample: { + name: string; + label: string; + provider: "local" | "s3" | "azure_blob" | "gcs" | "minio" | "r2" | "spaces" | "wasabi" | "backblaze"; + scope: "user" | "tenant" | "global" | "data" | "cache" | "public" | "config" | "session" | "temp" | "logs"; + connection: { + useSSL: boolean; + accessKeyId?: string | undefined; + secretAccessKey?: string | undefined; + sessionToken?: string | undefined; + accountName?: string | undefined; + accountKey?: string | undefined; + sasToken?: string | undefined; + environmentId?: string | undefined; + credentials?: string | undefined; + endpoint?: string | undefined; + region?: string | undefined; + timeoutMs?: number | undefined; + timeout?: undefined; + }; + buckets: { + name: string; + label: string; + bucketName: string; + provider: "local" | "s3" | "azure_blob" | "gcs" | "minio" | "r2" | "spaces" | "wasabi" | "backblaze"; + pathStyle: boolean; + versioning: boolean; + enabled: boolean; + region?: string | undefined; + endpoint?: string | undefined; + encryption?: { + enabled: boolean; + algorithm: "AES256" | "aws:kms" | "azure:kms" | "gcp:kms"; + kmsKeyId?: string | undefined; + } | undefined; + accessControl?: { + acl: "private" | "public_read" | "public_read_write" | "authenticated_read" | "bucket_owner_read" | "bucket_owner_full_control"; + corsEnabled: boolean; + allowedOrigins?: string[] | undefined; + allowedMethods?: ("GET" | "POST" | "PUT" | "DELETE" | "HEAD")[] | undefined; + allowedHeaders?: string[] | undefined; + exposeHeaders?: string[] | undefined; + maxAgeSeconds?: number | undefined; + maxAge?: undefined; + publicAccess?: { + allowPublicRead: boolean; + allowPublicWrite: boolean; + allowPublicList: boolean; + } | undefined; + allowedIps?: string[] | undefined; + blockedIps?: string[] | undefined; + } | undefined; + lifecyclePolicy?: { + enabled: boolean; + rules: { + id: string; + enabled: boolean; + action: "abort" | "delete" | "transition"; + prefix?: string | undefined; + tags?: Record | undefined; + daysAfterCreation?: number | undefined; + daysAfterModification?: number | undefined; + targetStorageClass?: "standard" | "intelligent" | "infrequent_access" | "glacier" | "deep_archive" | undefined; + }[]; + } | undefined; + multipartConfig?: { + enabled: boolean; + partSize: number; + maxParts: number; + threshold: number; + maxConcurrent: number; + abortIncompleteAfterDays?: number | undefined; + } | undefined; + tags?: Record | undefined; + description?: string | undefined; + }[]; + enabled: boolean; + defaultBucket?: string | undefined; + location?: string | undefined; + quota?: number | undefined; + options?: Record | undefined; + description?: string | undefined; +}; + +// ── globalFilterKey (function) ── +declare function globalFilterKey(filter: Pick): string | undefined; + +// ── hasMovedFileColumns (function) ── +declare function hasMovedFileColumns(flag: DataMigrationFlag | null | undefined): boolean; + +// ── hasObservedDeviation (function) ── +declare function hasObservedDeviation(flag: DataMigrationFlag | null | undefined): boolean; + +// ── hasPlatformObjectPrefix (function) ── +declare function hasPlatformObjectPrefix(name: string): boolean; + +// ── inProcessServiceMessage (function) ── +declare function inProcessServiceMessage(slot: string): string; + +// ── interpolateValidationMessage (function) ── +declare function interpolateValidationMessage(template: string, params: Record | undefined): string; + +// ── isAudiencePosture (function) ── +declare function isAudiencePosture(value: unknown): value is AudiencePosture; + +// ── isDataMigrationFlagVerified (function) ── +declare function isDataMigrationFlagVerified(flag: DataMigrationFlag | null | undefined): boolean; + +// ── isPlatformProvidedObjectName (function) ── +declare function isPlatformProvidedObjectName(name: string): boolean; + +// ── isPlatformProvidedToolName (function) ── +declare function isPlatformProvidedToolName(name: string): boolean; + +// ── isPublicAudience (function) ── +declare function isPublicAudience(audience?: BookAudience): boolean; + +// ── minioStorageExample (const) ── +declare const minioStorageExample: { + name: string; + label: string; + provider: "local" | "s3" | "azure_blob" | "gcs" | "minio" | "r2" | "spaces" | "wasabi" | "backblaze"; + scope: "user" | "tenant" | "global" | "data" | "cache" | "public" | "config" | "session" | "temp" | "logs"; + connection: { + useSSL: boolean; + accessKeyId?: string | undefined; + secretAccessKey?: string | undefined; + sessionToken?: string | undefined; + accountName?: string | undefined; + accountKey?: string | undefined; + sasToken?: string | undefined; + environmentId?: string | undefined; + credentials?: string | undefined; + endpoint?: string | undefined; + region?: string | undefined; + timeoutMs?: number | undefined; + timeout?: undefined; + }; + buckets: { + name: string; + label: string; + bucketName: string; + provider: "local" | "s3" | "azure_blob" | "gcs" | "minio" | "r2" | "spaces" | "wasabi" | "backblaze"; + pathStyle: boolean; + versioning: boolean; + enabled: boolean; + region?: string | undefined; + endpoint?: string | undefined; + encryption?: { + enabled: boolean; + algorithm: "AES256" | "aws:kms" | "azure:kms" | "gcp:kms"; + kmsKeyId?: string | undefined; + } | undefined; + accessControl?: { + acl: "private" | "public_read" | "public_read_write" | "authenticated_read" | "bucket_owner_read" | "bucket_owner_full_control"; + corsEnabled: boolean; + allowedOrigins?: string[] | undefined; + allowedMethods?: ("GET" | "POST" | "PUT" | "DELETE" | "HEAD")[] | undefined; + allowedHeaders?: string[] | undefined; + exposeHeaders?: string[] | undefined; + maxAgeSeconds?: number | undefined; + maxAge?: undefined; + publicAccess?: { + allowPublicRead: boolean; + allowPublicWrite: boolean; + allowPublicList: boolean; + } | undefined; + allowedIps?: string[] | undefined; + blockedIps?: string[] | undefined; + } | undefined; + lifecyclePolicy?: { + enabled: boolean; + rules: { + id: string; + enabled: boolean; + action: "abort" | "delete" | "transition"; + prefix?: string | undefined; + tags?: Record | undefined; + daysAfterCreation?: number | undefined; + daysAfterModification?: number | undefined; + targetStorageClass?: "standard" | "intelligent" | "infrequent_access" | "glacier" | "deep_archive" | undefined; + }[]; + } | undefined; + multipartConfig?: { + enabled: boolean; + partSize: number; + maxParts: number; + threshold: number; + maxConcurrent: number; + abortIncompleteAfterDays?: number | undefined; + } | undefined; + tags?: Record | undefined; + description?: string | undefined; + }[]; + enabled: boolean; + defaultBucket?: string | undefined; + location?: string | undefined; + quota?: number | undefined; + options?: Record | undefined; + description?: string | undefined; +}; + +// ── normalizeSupportedLocales (function) ── +declare function normalizeSupportedLocales(locales: readonly string[] | undefined): string[] | undefined; + +// ── objectFieldLabelKey (function) ── +declare function objectFieldLabelKey(objectName: string, fieldName: string): string; + +// ── objectLabelKey (function) ── +declare function objectLabelKey(objectName: string): string; + +// ── objectValidationMessageKey (function) ── +declare function objectValidationMessageKey(objectName: string, ruleName: string): string; + +// ── operationMessageTranslationKey (function) ── +declare function operationMessageTranslationKey(messageKey: string): string; + +// ── preferredLocaleFromHeader (function) ── +declare function preferredLocaleFromHeader(header: string | null | undefined): string | undefined; + +// ── renderOperationMessage (function) ── +declare function renderOperationMessage(input: RenderOperationMessageInput, opts?: RenderOperationMessageOptions): string; + +// ── renderValidationMessage (function) ── +declare function renderValidationMessage(input: RenderValidationMessageInput, opts?: RenderValidationMessageOptions): string; + +// ── resolveActionConfirm (function) ── +declare function resolveActionConfirm(bundle: TranslationBundle | undefined, action: ActionLike, opts?: ResolveOptions): string | undefined; + +// ── resolveActionLabel (function) ── +declare function resolveActionLabel(bundle: TranslationBundle | undefined, action: ActionLike, opts?: ResolveOptions): string; + +// ── resolveActionResultDialog (function) ── +declare function resolveActionResultDialog(bundle: TranslationBundle | undefined, action: ActionLike & { + resultDialog?: T; +}, opts?: ResolveOptions): T | undefined; + +// ── resolveActionSuccess (function) ── +declare function resolveActionSuccess(bundle: TranslationBundle | undefined, action: ActionLike, opts?: ResolveOptions): string | undefined; + +// ── resolveBookClaimedDocs (function) ── +declare function resolveBookClaimedDocs(book: Book, docs: ResolverDoc[], bookPackage?: string): Set; + +// ── resolveBookTree (function) ── +declare function resolveBookTree(book: Book, docs: ResolverDoc[], bookPackage?: string): ResolvedBook; + +// ── resolveBundleLocale (function) ── +declare function resolveBundleLocale(bundle: Record, requested: string): string | undefined; + +// ── resolveDocAudiences (function) ── +declare function resolveDocAudiences(books: readonly AudienceBook[], docs: ResolverDoc[]): Map; + +// ── resolveDocLocale (function) ── +declare function resolveDocLocale(doc: Doc, locale?: string | null): Doc; + +// ── resolveFlowScreenTitle (function) ── +declare function resolveFlowScreenTitle(bundle: TranslationBundle | undefined, flowName: string, screen: FlowScreenLike, opts?: ResolveOptions): string | undefined; + +// ── resolveMetadataFormLabels (function) ── +declare function resolveMetadataFormLabels>(form: T, type: string, bundle: TranslationBundle | undefined, opts?: ResolveOptions): T; + +// ── resolveMetadataFormSchemaTitles (function) ── +declare function resolveMetadataFormSchemaTitles>(schema: T, type: string, bundle: TranslationBundle | undefined, opts?: ResolveOptions): T; + +// ── resolveMetadataTypeDescription (function) ── +declare function resolveMetadataTypeDescription(bundle: TranslationBundle | undefined, type: string, fallback: string | undefined, opts?: ResolveOptions): string | undefined; + +// ── resolveMetadataTypeLabel (function) ── +declare function resolveMetadataTypeLabel(bundle: TranslationBundle | undefined, type: string, fallback: string, opts?: ResolveOptions): string; + +// ── resolveObjectFieldLabels (function) ── +declare function resolveObjectFieldLabels(data: TranslationData | undefined, objectName: string): Record; + +// ── resolveSettingsActionConfirm (function) ── +declare function resolveSettingsActionConfirm(bundle: TranslationBundle | undefined, namespace: string, actionId: string, fallback: string | undefined, opts?: ResolveOptions): string | undefined; + +// ── resolveSettingsActionLabel (function) ── +declare function resolveSettingsActionLabel(bundle: TranslationBundle | undefined, namespace: string, actionId: string, fallback: string, opts?: ResolveOptions): string; + +// ── resolveSettingsActionSuccess (function) ── +declare function resolveSettingsActionSuccess(bundle: TranslationBundle | undefined, namespace: string, actionId: string, fallback: string | undefined, opts?: ResolveOptions): string | undefined; + +// ── resolveSettingsDescription (function) ── +declare function resolveSettingsDescription(bundle: TranslationBundle | undefined, namespace: string, fallback: string | undefined, opts?: ResolveOptions): string | undefined; + +// ── resolveSettingsFieldHelp (function) ── +declare function resolveSettingsFieldHelp(bundle: TranslationBundle | undefined, namespace: string, key: string, fallback: string | undefined, opts?: ResolveOptions): string | undefined; + +// ── resolveSettingsFieldLabel (function) ── +declare function resolveSettingsFieldLabel(bundle: TranslationBundle | undefined, namespace: string, key: string, fallback: string, opts?: ResolveOptions): string; + +// ── resolveSettingsFieldPlaceholder (function) ── +declare function resolveSettingsFieldPlaceholder(bundle: TranslationBundle | undefined, namespace: string, key: string, fallback: string | undefined, opts?: ResolveOptions): string | undefined; + +// ── resolveSettingsGroupDescription (function) ── +declare function resolveSettingsGroupDescription(bundle: TranslationBundle | undefined, namespace: string, groupKey: string, fallback: string | undefined, opts?: ResolveOptions): string | undefined; + +// ── resolveSettingsGroupTitle (function) ── +declare function resolveSettingsGroupTitle(bundle: TranslationBundle | undefined, namespace: string, groupKey: string, fallback: string, opts?: ResolveOptions): string; + +// ── resolveSettingsOptionLabel (function) ── +declare function resolveSettingsOptionLabel(bundle: TranslationBundle | undefined, namespace: string, key: string, optionValue: string, fallback: string, opts?: ResolveOptions): string; + +// ── resolveSettingsSourceLabel (function) ── +declare function resolveSettingsSourceLabel(bundle: TranslationBundle | undefined, source: 'env' | 'global' | 'tenant' | 'user' | 'default', fallback: string, opts?: ResolveOptions): string; + +// ── resolveSettingsTitle (function) ── +declare function resolveSettingsTitle(bundle: TranslationBundle | undefined, namespace: string, fallback: string, opts?: ResolveOptions): string; + +// ── resolveTabLabel (function) ── +declare function resolveTabLabel(bundle: TranslationBundle | undefined, objectName: string | undefined, tab: ViewTabLike, opts?: ResolveOptions): string; + +// ── resolveViewDescription (function) ── +declare function resolveViewDescription(bundle: TranslationBundle | undefined, view: ViewLike, opts?: ResolveOptions): string | undefined; + +// ── resolveViewLabel (function) ── +declare function resolveViewLabel(bundle: TranslationBundle | undefined, view: ViewLike, opts?: ResolveOptions): string; + +// ── s3StorageExample (const) ── +declare const s3StorageExample: { + name: string; + label: string; + provider: "local" | "s3" | "azure_blob" | "gcs" | "minio" | "r2" | "spaces" | "wasabi" | "backblaze"; + scope: "user" | "tenant" | "global" | "data" | "cache" | "public" | "config" | "session" | "temp" | "logs"; + connection: { + useSSL: boolean; + accessKeyId?: string | undefined; + secretAccessKey?: string | undefined; + sessionToken?: string | undefined; + accountName?: string | undefined; + accountKey?: string | undefined; + sasToken?: string | undefined; + environmentId?: string | undefined; + credentials?: string | undefined; + endpoint?: string | undefined; + region?: string | undefined; + timeoutMs?: number | undefined; + timeout?: undefined; + }; + buckets: { + name: string; + label: string; + bucketName: string; + provider: "local" | "s3" | "azure_blob" | "gcs" | "minio" | "r2" | "spaces" | "wasabi" | "backblaze"; + pathStyle: boolean; + versioning: boolean; + enabled: boolean; + region?: string | undefined; + endpoint?: string | undefined; + encryption?: { + enabled: boolean; + algorithm: "AES256" | "aws:kms" | "azure:kms" | "gcp:kms"; + kmsKeyId?: string | undefined; + } | undefined; + accessControl?: { + acl: "private" | "public_read" | "public_read_write" | "authenticated_read" | "bucket_owner_read" | "bucket_owner_full_control"; + corsEnabled: boolean; + allowedOrigins?: string[] | undefined; + allowedMethods?: ("GET" | "POST" | "PUT" | "DELETE" | "HEAD")[] | undefined; + allowedHeaders?: string[] | undefined; + exposeHeaders?: string[] | undefined; + maxAgeSeconds?: number | undefined; + maxAge?: undefined; + publicAccess?: { + allowPublicRead: boolean; + allowPublicWrite: boolean; + allowPublicList: boolean; + } | undefined; + allowedIps?: string[] | undefined; + blockedIps?: string[] | undefined; + } | undefined; + lifecyclePolicy?: { + enabled: boolean; + rules: { + id: string; + enabled: boolean; + action: "abort" | "delete" | "transition"; + prefix?: string | undefined; + tags?: Record | undefined; + daysAfterCreation?: number | undefined; + daysAfterModification?: number | undefined; + targetStorageClass?: "standard" | "intelligent" | "infrequent_access" | "glacier" | "deep_archive" | undefined; + }[]; + } | undefined; + multipartConfig?: { + enabled: boolean; + partSize: number; + maxParts: number; + threshold: number; + maxConcurrent: number; + abortIncompleteAfterDays?: number | undefined; + } | undefined; + tags?: Record | undefined; + description?: string | undefined; + }[]; + enabled: boolean; + defaultBucket?: string | undefined; + location?: string | undefined; + quota?: number | undefined; + options?: Record | undefined; + description?: string | undefined; +}; + +// ── scalarOverridesPackagedBase (function) ── +declare function scalarOverridesPackagedBase(base: unknown, key: 'label' | 'pluralLabel' | 'description', value: unknown): boolean; + +// ── serviceUnavailableMessage (function) ── +declare function serviceUnavailableMessage(slot: string): string; + +// ── toLocaleDescriptors (function) ── +declare function toLocaleDescriptors(codes: readonly string[] | undefined, defaultLocale?: string): LocaleDescriptor[]; + +// ── translateAction (function) ── +declare function translateAction(action: T, bundle: TranslationBundle | undefined, opts?: ResolveOptions): T; + +// ── translateApp (function) ── +declare function translateApp(doc: T, bundle: TranslationBundle | undefined, opts?: ResolveOptions): T; + +// ── translateDashboard (function) ── +declare function translateDashboard(doc: T, bundle: TranslationBundle | undefined, opts?: ResolveOptions): T; + +// ── translateDataset (function) ── +declare function translateDataset(doc: T, bundle: TranslationBundle | undefined, opts?: ResolveOptions): T; + +// ── translateFlow (function) ── +declare function translateFlow(flow: T, bundle: TranslationBundle | undefined, opts?: ResolveOptions): T; + +// ── translateMetadataDocument (function) ── +declare function translateMetadataDocument(type: string, doc: any, bundle: TranslationBundle | undefined, opts?: TranslateDocumentOptions): any; + +// ── translateObject (function) ── +declare function translateObject(doc: T, bundle: TranslationBundle | undefined, opts?: TranslateDocumentOptions): T; + +// ── translatePage (function) ── +declare function translatePage(doc: T, bundle: TranslationBundle | undefined, opts?: ResolveOptions): T; + +// ── translateView (function) ── +declare function translateView(view: T, bundle: TranslationBundle | undefined, opts?: ResolveOptions): T; + +// ── validationMessageTranslationKey (function) ── +declare function validationMessageTranslationKey(messageKey: string): string; + +// ── walkAddressedPageComponents (function) ── +declare function walkAddressedPageComponents(doc: AddressedPageRoots, visit: (component: PageComponentLike, context: AddressedPageComponentContext) => PageComponentLike): AddressedPageRoots; diff --git a/packages/spec/api-surface-declarations/ui.txt b/packages/spec/api-surface-declarations/ui.txt new file mode 100644 index 00000000000..6046c1c8b74 --- /dev/null +++ b/packages/spec/api-surface-declarations/ui.txt @@ -0,0 +1,28581 @@ +# @objectstack/spec — the .d.ts DECLARATION TEXT of every export of `./ui`. +# +# The SHAPE half of the ADR-0059 public-API pin, and the readable counterpart of +# api-surface/ui.json's breadth half. That file pins each export by +# `name (kind)`, which a signature change, a renamed interface field and a dropped +# union member all leave untouched. This file pins the declaration text, so each of +# those moves a line here. Text and NOT a hash, deliberately: a diff a reviewer can +# read is what makes contract review a guard rather than a rubber stamp. +# +# Verbatim from the PACKED `.d.ts` reached through this package's `exports` map — the +# declarations a consumer installs, never `src/`. A declaration's leading TSDoc is +# excluded: documentation drift is `check:docs`'s axis, not this one. +# +# entry: ./ui +# exported names: 471 +# declarations: 485 +# +# GENERATED — ⛔ never hand-edited. Regenerate after a real build: +# pnpm --filter @objectstack/spec build && pnpm --filter @objectstack/spec gen:api-surface-declarations +# Gated by `check:api-surface-declarations`; a hand edit is a red gate, not a change. + +// ── ACTION_LOCATIONS (const) ── +declare const ACTION_LOCATIONS: readonly ["list_toolbar", "list_item", "record_header", "record_more", "record_related", "record_section"]; + +// ── ACTION_PARAM_BUILTIN_KEYS (const) ── +declare const ACTION_PARAM_BUILTIN_KEYS: readonly string[]; + +// ── AIChatWindowProps (const) ── +declare const AIChatWindowProps: z.ZodObject<{ + mode: z.ZodDefault>; + agentId: z.ZodOptional; + context: z.ZodOptional>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── ASSEMBLED_VIEW_ITEMS_KEY (const) ── +declare const ASSEMBLED_VIEW_ITEMS_KEY: "viewItems"; + +// ── Action (const) ── +declare const Action: { + readonly create: (config: z.input) => Action; +}; + +// ── Action (type) ── +type Action = z.input; + +// ── ActionAi (type) ── +type ActionAi = z.input; + +// ── ActionAiParsed (type) ── +type ActionAiParsed = z.infer; + +// ── ActionAiSchema (const) ── +declare const ActionAiSchema: z.ZodObject<{ + exposed: z.ZodDefault; + description: z.ZodOptional; + category: z.ZodOptional>; + paramHints: z.ZodOptional; + enum: z.ZodOptional>>; + examples: z.ZodOptional>; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional>; + requiresConfirmation: z.ZodOptional; +}, z.core.$strict>; + +// ── ActionEngineFacade (interface) ── +interface ActionEngineFacade { + insert(object: string, data: Record): Promise<{ + id: string; + }>; + update(object: string, id: string, data: Record): Promise; + /** + * Delete rows of `object` by id. + * + * ## Which convention is the contract: BOTH — one id, or an array of them + * + * `idOrIds` takes a SINGLE id or an ARRAY of ids, and both spellings are + * contract, not a runtime tolerance a handler author has to discover by + * reading `packages/runtime`. Deleting one row is `delete(object, id)`; + * deleting a set is `delete(object, ids)` — a handler that already holds a + * list does NOT have to unroll it into a loop to stay on the contract. + * + * What the array form is, exactly: a convenience over the SAME per-row path, + * never a bulk or atomic delete. The `delete` arm of + * `packages/runtime/src/action-execution.ts#buildActionEngineFacade` + * normalises the argument to a list and issues one `ql.delete` per id, in + * order, under the caller's execution context. There is no transaction + * around the set: a failure part-way through leaves the ids before it + * deleted and the ids after it untouched, and the rejection a caller sees is + * the one that stopped it. An empty array deletes nothing and resolves. + * + * Until #15117 this slot declared `id: string` while the runtime had been + * accepting both forms all along, described in a comment there as an + * accident of the two handler suites that happened to use them. It was + * neither: it is this declaration. The one first-party suite on the array + * form (`examples/app-todo/src/actions/task.handlers.ts`) could only reach + * it by hand-rolling a copy of this interface — the same hand-written-fake + * pattern #14175 found on `find`, one member over — and that copy drifted, + * exactly as a copy does. Widening the declaration is what retired it. + * + * Both accepted forms, and the argument types that stay refused, are pinned + * in `action-params.test.ts`. + */ + delete(object: string, idOrIds: string | string[]): Promise; + /** + * Read the rows of `object` that match `filter`. + * + * `filter` is a FILTER — the `where` HALF of an ObjectQL query, the same + * {@link FilterCondition} that `QueryAST.where` carries: implicit equality + * `{ field: value }`, explicit operators `{ field: { $in: [...] } }`, + * `$and` / `$or` / `$not`. It is NOT the query ENVELOPE + * (`{ where, fields, orderBy, limit }`) that `DataEngine.find` and ObjectQL's + * own `engine.find` take — the shape this parameter's former name, `query`, + * invited. The runtime builds the envelope itself: `buildActionEngineFacade`'s + * `find` arm (`packages/runtime/src/action-execution.ts`, `:1183` on + * `369da918`) wraps a non-empty filter as `{ where: filter }` and passes an + * EMPTY filter (`{}`) through unwrapped — the unfiltered read. + * + * Two consequences, both silent (#14175): + * + * - An envelope passed here becomes `{ where: { where: … } }`. No object has + * a field named `where`, so the read matches nothing and resolves to `[]` + * with no error. A handler that made this mistake ran to completion over + * zero rows for as long as it shipped, and its own hand-written test + * double — written to the same belief, reading `query.where` — passed + * every assertion. + * - Because `{}` skips the wrap, an unfiltered call works under EITHER + * reading, so a handler mixing one unfiltered read with envelope-shaped + * ones looks partially alive rather than uniformly dead. + * + * What the type buys, exactly: `FilterCondition` refuses a primitive and a + * mistyped logical operator (`$and` / `$or` not arrays, `$not` not a + * filter). It does NOT refuse `{ where: … }` — its string index signature is + * what lets any field name stand as a key, and `where` is a string — so the + * envelope mistake still compiles, and this doc comment, not the type, is + * the contract of record. Both halves are pinned in `action-params.test.ts`. + */ + find(object: string, filter: FilterCondition): Promise>>; +} + +// ── ActionHandler (type) ── +type ActionHandler = Record> = (ctx: ActionHandlerContext) => unknown | Promise; + +// ── ActionHandlerContext (interface) ── +interface ActionHandlerContext = Record, TRecord extends Record = Record> { + /** The subject record (loaded under the caller's read scope), or `{}`. */ + record: TRecord; + /** The validated action params (plus dispatcher-injected recordId/objectName). */ + params: TParams; + /** The invoking principal. */ + user: { + id: string; + name?: string; + email?: string; + organizationId?: string; + [k: string]: unknown; + }; + /** + * Caller session — {@link ActionSessionSchema}, the declared contract for + * what `buildActionSession()` produces. Absent entirely for a call with no + * identity envelope. + * + * Previously an inline literal carrying a `[k: string]: unknown` catch-all + * and the claim that it mirrors the hook `ctx.session`. Both are gone: the + * shape now has ONE declaration (#5697), and it does not mirror the hook + * session — see the schema's docblock. Dropping the catch-all narrows no + * live call site (measured across objectstack / objectui / cloud: this + * interface has zero importers outside its own module today); the SCHEMA + * stays non-strict, so an extra key at runtime still parses — it just stops + * being something the type invites an author to invent. + */ + session?: ActionSession; + /** Trusted engine facade for cross-object writes (see {@link ActionEngineFacade}). */ + engine: ActionEngineFacade; +} + +// ── ActionLocation (type) ── +type ActionLocation = z.input; + +// ── ActionLocationSchema (const) ── +declare const ActionLocationSchema: z.ZodEnum<{ + record_header: "record_header"; + list_toolbar: "list_toolbar"; + list_item: "list_item"; + record_more: "record_more"; + record_related: "record_related"; + record_section: "record_section"; +}>; + +// ── ActionNavItem (type) ── +type ActionNavItem = z.input; + +// ── ActionNavItemParsed (type) ── +type ActionNavItemParsed = z.infer; + +// ── ActionNavItemSchema (const) ── +declare const ActionNavItemSchema: z.ZodObject<{ + type: z.ZodLiteral<"action">; + actionDef: z.ZodObject<{ + actionName: z.ZodString; + params: z.ZodOptional>; + }, z.core.$strict>; + id: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + icon: z.ZodOptional; + order: z.ZodOptional; + badge: z.ZodOptional>; + badgeVariant: z.ZodOptional>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + requiresObject: z.ZodOptional; + requiresService: z.ZodOptional; +}, z.core.$strict>; + +// ── ActionParam (type) ── +type ActionParam = z.input; + +// ── ActionParamIssue (interface) ── +interface ActionParamIssue { + /** The offending param key. */ + param: string; + /** + * Which constraint the value violated, from the field-level catalog + * (ADR-0114). Typed as `FieldErrorCode` rather than a local literal union so + * an action param and a record field cannot drift into two vocabularies for + * the same three conditions — `required` and `invalid_shape` were already + * shared verbatim before the catalog existed. + * + * `unknown_param` folded into `unknown_field` (ADR-0114 D2): the `param` key + * beside it already says what was addressed, so the code did not need to. + */ + code: FieldErrorCode; + message: string; +} + +// ── ActionParamParsed (type) ── +type ActionParamParsed = z.infer; + +// ── ActionParamSchema (const) ── +declare const ActionParamSchema: z.ZodPipe; + field: z.ZodOptional; + objectOverride: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + required: z.ZodDefault>; + options: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + value: z.ZodString; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + placeholder: z.ZodOptional; + helpText: z.ZodOptional; + defaultValue: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + reference: z.ZodOptional; + defaultFromRow: z.ZodOptional; + carryOver: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiresFeature: z.ZodOptional>; +}, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; +}, "requiresFeature">, { + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; +}>>; + +// ── ActionParsed (type) ── +type ActionParsed = z.infer; + +// ── ActionSchema (const) ── +declare const ActionSchema: z.ZodPipe>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + objectName: z.ZodOptional; + icon: z.ZodOptional; + locations: z.ZodOptional>>; + component: z.ZodOptional>; + type: z.ZodDefault>; + target: z.ZodOptional; + openIn: z.ZodOptional>; + body: z.ZodOptional; + source: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + language: z.ZodLiteral<"js">; + source: z.ZodString; + capabilities: z.ZodDefault>>; + timeoutMs: z.ZodOptional; + memoryMb: z.ZodOptional; + }, z.core.$strict>], "language">>; + operation: z.ZodOptional>; + patch: z.ZodOptional>; + execution: z.ZodOptional>; + execute: z.ZodOptional; + params: z.ZodOptional; + field: z.ZodOptional; + objectOverride: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + required: z.ZodDefault>; + options: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + value: z.ZodString; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + placeholder: z.ZodOptional; + helpText: z.ZodOptional; + defaultValue: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + reference: z.ZodOptional; + defaultFromRow: z.ZodOptional; + carryOver: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiresFeature: z.ZodOptional>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">, { + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }>>>>; + variant: z.ZodOptional>; + order: z.ZodOptional; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + successMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + errorMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + refreshAfter: z.ZodDefault; + undoable: z.ZodOptional; + resultDialog: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + acknowledge: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiresFeature: z.ZodOptional>; + disabled: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + requiredPermissions: z.ZodOptional>; + shortcut: z.ZodOptional; + bulkEnabled: z.ZodOptional; + ai: z.ZodOptional; + description: z.ZodOptional; + category: z.ZodOptional>; + paramHints: z.ZodOptional; + enum: z.ZodOptional>>; + examples: z.ZodOptional>; + }, z.core.$strict>>>; + outputSchema: z.ZodOptional>; + requiresConfirmation: z.ZodOptional; + }, z.core.$strict>>; + recordIdParam: z.ZodOptional; + recordIdField: z.ZodOptional; + bodyShape: z.ZodOptional, z.ZodObject<{ + wrap: z.ZodString; + }, z.core.$strict>]>>; + method: z.ZodOptional>; + bodyExtra: z.ZodOptional>; + mode: z.ZodOptional>; + opensInNewTab: z.ZodOptional; + newTabUrl: z.ZodOptional; + onSuccess: z.ZodOptional>; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | undefined; + objectName?: string | undefined; + icon?: string | undefined; + locations?: ("record_header" | "list_toolbar" | "list_item" | "record_more" | "record_related" | "record_section")[] | undefined; + component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("crypto.uuid" | "api.read" | "api.write" | "api.transaction" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "flow" | "data" | "action" | "analytics" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "delete" | "edit" | "create" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; +}, "requiresFeature">, { + name: string; + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + type: "url" | "form" | "flow" | "script" | "api" | "modal"; + refreshAfter: boolean; + _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; + }) | undefined; + objectName?: string | undefined; + icon?: string | undefined; + locations?: ("record_header" | "list_toolbar" | "list_item" | "record_more" | "record_related" | "record_section")[] | undefined; + component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined; + target?: string | undefined; + openIn?: "self" | "new-tab" | undefined; + body?: { + language: "js"; + source: string; + capabilities: ("crypto.uuid" | "api.read" | "api.write" | "api.transaction" | "log")[]; + timeoutMs?: number | undefined; + memoryMb?: number | undefined; + } | { + language: "expression"; + source: string; + } | undefined; + operation?: "update" | undefined; + patch?: Record | undefined; + execution?: "aggregate" | "perRecord" | undefined; + execute?: undefined; + params?: Omit<{ + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">[] | undefined; + variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined; + order?: number | undefined; + confirmText?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + successMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + errorMessage?: string | (Record & { + key?: never; + defaultValue?: never; + }) | 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" | undefined; + }[] | undefined; + } | undefined; + visible?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + disabled?: boolean | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiredPermissions?: string[] | undefined; + shortcut?: undefined; + bulkEnabled?: undefined; + ai?: { + exposed: boolean; + description?: string | undefined; + category?: "flow" | "data" | "action" | "analytics" | "integration" | "vector_search" | "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" | "PUT" | "DELETE" | "PATCH" | undefined; + bodyExtra?: Record | undefined; + mode?: "custom" | "delete" | "edit" | "create" | undefined; + opensInNewTab?: boolean | undefined; + newTabUrl?: string | undefined; + onSuccess?: { + navigate: string; + openIn: "self" | "newTab"; + } | undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; +}>>; + +// ── ActionSession (type) ── +type ActionSession = z.input; + +// ── ActionSessionSchema (const) ── +declare const ActionSessionSchema: z.ZodObject<{ + userId: z.ZodOptional; + organizationId: z.ZodOptional; + positions: z.ZodOptional>; + roles: z.ZodOptional>; +}, z.core.$strip>; + +// ── ActionType (const) ── +declare const ActionType: z.ZodEnum<{ + url: "url"; + form: "form"; + flow: "flow"; + script: "script"; + api: "api"; + modal: "modal"; +}>; + +// ── ActionType (type) ── +type ActionType = z.input; + +// ── AddRecordConfig (type) ── +type AddRecordConfig = z.input; + +// ── AddRecordConfigParsed (type) ── +type AddRecordConfigParsed = z.infer; + +// ── AddRecordConfigSchema (const) ── +declare const AddRecordConfigSchema: z.ZodObject<{ + enabled: z.ZodDefault; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; +}, z.core.$strict>; + +// ── App (const) ── +declare const App: { + readonly create: (config: z.input) => App; +}; + +// ── App (type) ── +type App = z.input; + +// ── AppBranding (type) ── +type AppBranding = z.input; + +// ── AppBrandingSchema (const) ── +declare const AppBrandingSchema: z.ZodObject<{ + primaryColor: z.ZodOptional; + accentColor: z.ZodOptional; + logo: z.ZodOptional; + favicon: z.ZodOptional; +}, z.core.$strict>; + +// ── AppContextSelector (type) ── +type AppContextSelector = z.input; + +// ── AppContextSelectorParsed (type) ── +type AppContextSelectorParsed = z.infer; + +// ── AppContextSelectorSchema (const) ── +declare const AppContextSelectorSchema: z.ZodObject<{ + id: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + icon: z.ZodOptional; + optionsSource: z.ZodObject<{ + endpoint: z.ZodString; + valueKey: z.ZodDefault; + labelKey: z.ZodDefault; + filter: z.ZodOptional>; + value: z.ZodUnion]>; + }, z.core.$strict>>>; + }, z.core.$strict>; + allValue: z.ZodDefault; + persist: z.ZodDefault>; +}, z.core.$strict>; + +// ── AppParsed (type) ── +type AppParsed = z.infer; + +// ── AppSchema (const) ── +declare const AppSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + version: z.ZodOptional; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + branding: z.ZodOptional; + accentColor: z.ZodOptional; + logo: z.ZodOptional; + favicon: z.ZodOptional; + }, z.core.$strict>>; + active: z.ZodDefault>; + isDefault: z.ZodDefault>; + hidden: z.ZodOptional; + _unpublished: z.ZodOptional; + navigation: z.ZodOptional>>>; + areas: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + icon: z.ZodOptional; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + navigation: z.ZodArray>>; + }, z.core.$strict>>>; + contextSelectors: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + icon: z.ZodOptional; + optionsSource: z.ZodObject<{ + endpoint: z.ZodString; + valueKey: z.ZodDefault; + labelKey: z.ZodDefault; + filter: z.ZodOptional>; + value: z.ZodUnion]>; + }, z.core.$strict>>>; + }, z.core.$strict>; + allValue: z.ZodDefault; + persist: z.ZodDefault>; + }, z.core.$strict>>>; + homePageId: z.ZodOptional; + requiredPermissions: z.ZodOptional>; + objects: z.ZodOptional; + apis: z.ZodOptional; + sharing: z.ZodOptional; + embed: z.ZodOptional; + mobileNavigation: z.ZodOptional; + defaultAgent: z.ZodOptional; + aria: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── AppearanceConfig (type) ── +type AppearanceConfig = z.input; + +// ── AppearanceConfigParsed (type) ── +type AppearanceConfigParsed = z.infer; + +// ── AppearanceConfigSchema (const) ── +declare const AppearanceConfigSchema: z.ZodObject<{ + showDescription: z.ZodDefault; + allowedVisualizations: z.ZodOptional>>; +}, z.core.$strict>; + +// ── AriaProps (type) ── +type AriaProps = z.input; + +// ── AriaPropsSchema (const) ── +declare const AriaPropsSchema: z.ZodObject<{ + ariaLabel: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; +}, z.core.$strict>; + +// ── AssembledViewArtifact (type) ── +type AssembledViewArtifact = z.input; + +// ── AssembledViewArtifactParsed (type) ── +type AssembledViewArtifactParsed = z.infer; + +// ── AssembledViewArtifactSchema (const) ── +declare const AssembledViewArtifactSchema: z.ZodUnion>, z.ZodType>, ...z.ZodType>[]]>; + +// ── AssembledViewPartition (interface) ── +interface AssembledViewPartition { + /** Container documents — the assembled manifest's `views:` collection. */ + views: Record[]; + /** Non-container artifacts no exported container re-derives — `viewItems:`. */ + viewItems: Record[]; + /** + * Names of expanded items DROPPED because an exported container re-derives + * them byte-for-byte (the re-aggregation): the import side's expansion of + * that container reproduces each, so carrying them too would register every + * view twice and fork the container's authority over its own views. + */ + folded: string[]; +} + +// ── BulkActionDef (type) ── +type BulkActionDef = z.input; + +// ── BulkActionDefParsed (type) ── +type BulkActionDefParsed = z.infer; + +// ── BulkActionDefSchema (const) ── +declare const BulkActionDefSchema: z.ZodObject<{ + name: z.ZodString; + label: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + delete: "delete"; + update: "update"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + url: "url"; + email: "email"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; +}, z.core.$strict>; + +// ── BulkActionExecution (type) ── +type BulkActionExecution = z.input; + +// ── BulkActionExecutionSchema (const) ── +declare const BulkActionExecutionSchema: z.ZodEnum<{ + aggregate: "aggregate"; + perRecord: "perRecord"; +}>; + +// ── BulkActionOperation (type) ── +type BulkActionOperation = z.input; + +// ── BulkActionOperationSchema (const) ── +declare const BulkActionOperationSchema: z.ZodEnum<{ + custom: "custom"; + delete: "delete"; + update: "update"; +}>; + +// ── BulkActionParam (type) ── +type BulkActionParam = z.input; + +// ── BulkActionParamSchema (const) ── +declare const BulkActionParamSchema: z.ZodObject<{ + name: z.ZodString; + label: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + url: "url"; + email: "email"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; +}, z.core.$loose>; + +// ── CHART_AGGREGATE_COMPARISON_SUFFIX (const) ── +declare const CHART_AGGREGATE_COMPARISON_SUFFIX = "__comparison"; + +// ── COLUMN_SUMMARY_AGGREGATION (const) ── +declare const COLUMN_SUMMARY_AGGREGATION: Readonly>; + +// ── CalendarConfig (type) ── +type CalendarConfig = z.input; + +// ── CalendarConfigSchema (const) ── +declare const CalendarConfigSchema: z.ZodObject<{ + startDateField: z.ZodString; + endDateField: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; +}, z.core.$strict>; + +// ── ChartAggregate (type) ── +type ChartAggregate = z.input; + +// ── ChartAggregateFunction (type) ── +type ChartAggregateFunction = z.input; + +// ── ChartAggregateFunctionSchema (const) ── +declare const ChartAggregateFunctionSchema: z.ZodEnum<{ + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; +}>; + +// ── ChartAggregateLike (interface) ── +interface ChartAggregateLike { + field?: string; + function?: string; + groupBy?: unknown; +} + +// ── ChartAggregateSchema (const) ── +declare const ChartAggregateSchema: z.ZodObject<{ + field: z.ZodOptional; + function: z.ZodEnum<{ + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + }>; + groupBy: z.ZodUnion>; + alias: z.ZodOptional; + }, z.core.$strict>]>; +}, z.core.$strict>; + +// ── ChartAnnotation (type) ── +type ChartAnnotation = z.input; + +// ── ChartAnnotationParsed (type) ── +type ChartAnnotationParsed = z.infer; + +// ── ChartAnnotationSchema (const) ── +declare const ChartAnnotationSchema: z.ZodObject<{ + type: z.ZodDefault>; + axis: z.ZodDefault>; + value: z.ZodUnion; + endValue: z.ZodOptional>; + color: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + style: z.ZodDefault>; +}, z.core.$strict>; + +// ── ChartAxis (type) ── +type ChartAxis = z.input; + +// ── ChartAxisParsed (type) ── +type ChartAxisParsed = z.infer; + +// ── ChartAxisSchema (const) ── +declare const ChartAxisSchema: z.ZodObject<{ + field: z.ZodString; + title: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + stepSize: z.ZodOptional; + showGridLines: z.ZodDefault; + position: z.ZodOptional>; + logarithmic: z.ZodDefault; +}, z.core.$strict>; + +// ── ChartConfig (type) ── +type ChartConfig = z.input; + +// ── ChartConfigParsed (type) ── +type ChartConfigParsed = z.infer; + +// ── ChartConfigSchema (const) ── +declare const ChartConfigSchema: z.ZodObject<{ + type: z.ZodEnum<{ + column: "column"; + metric: "metric"; + table: "table"; + kpi: "kpi"; + line: "line"; + bar: "bar"; + "horizontal-bar": "horizontal-bar"; + area: "area"; + pie: "pie"; + donut: "donut"; + funnel: "funnel"; + scatter: "scatter"; + treemap: "treemap"; + sankey: "sankey"; + combo: "combo"; + gauge: "gauge"; + "solid-gauge": "solid-gauge"; + bullet: "bullet"; + radar: "radar"; + pivot: "pivot"; + }>; + title: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + subtitle: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + xAxis: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + stepSize: z.ZodOptional; + showGridLines: z.ZodDefault; + position: z.ZodOptional>; + logarithmic: z.ZodDefault; + }, z.core.$strict>>; + yAxis: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + stepSize: z.ZodOptional; + showGridLines: z.ZodDefault; + position: z.ZodOptional>; + logarithmic: z.ZodDefault; + }, z.core.$strict>>>; + series: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + color: z.ZodOptional; + stack: z.ZodOptional; + yAxis: z.ZodDefault>; + variant: z.ZodOptional>>; + dashArray: z.ZodOptional; + opacity: z.ZodOptional; + }, z.core.$strict>>>; + colors: z.ZodOptional, z.ZodRecord]>>; + height: z.ZodOptional; + showLegend: z.ZodDefault; + showDataLabels: z.ZodDefault; + annotations: z.ZodOptional>; + axis: z.ZodDefault>; + value: z.ZodUnion; + endValue: z.ZodOptional>; + color: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + style: z.ZodDefault>; + }, z.core.$strict>>>; + interaction: z.ZodOptional; + brush: z.ZodDefault; + }, z.core.$strict>>; + aria: z.ZodOptional; +}, z.core.$strict>; + +// ── ChartDrillDown (type) ── +type ChartDrillDown = z.input; + +// ── ChartDrillDownSchema (const) ── +declare const ChartDrillDownSchema: z.ZodObject<{ + enabled: z.ZodOptional; + filter: z.ZodOptional>; + title: z.ZodOptional; + target: z.ZodOptional>; + columns: z.ZodOptional>; + maxRows: z.ZodOptional; +}, z.core.$strict>; + +// ── ChartGroupBy (type) ── +type ChartGroupBy = z.input; + +// ── ChartGroupBySchema (const) ── +declare const ChartGroupBySchema: z.ZodUnion>; + alias: z.ZodOptional; +}, z.core.$strict>]>; + +// ── ChartInteraction (type) ── +type ChartInteraction = z.input; + +// ── ChartInteractionParsed (type) ── +type ChartInteractionParsed = z.infer; + +// ── ChartInteractionSchema (const) ── +declare const ChartInteractionSchema: z.ZodObject<{ + tooltips: z.ZodDefault; + brush: z.ZodDefault; +}, z.core.$strict>; + +// ── ChartSeries (type) ── +type ChartSeries = z.input; + +// ── ChartSeriesParsed (type) ── +type ChartSeriesParsed = z.infer; + +// ── ChartSeriesSchema (const) ── +declare const ChartSeriesSchema: z.ZodObject<{ + name: z.ZodString; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + color: z.ZodOptional; + stack: z.ZodOptional; + yAxis: z.ZodDefault>; + variant: z.ZodOptional>>; + dashArray: z.ZodOptional; + opacity: z.ZodOptional; +}, z.core.$strict>; + +// ── ChartType (type) ── +type ChartType = z.input; + +// ── ChartTypeSchema (const) ── +declare const ChartTypeSchema: z.ZodEnum<{ + column: "column"; + metric: "metric"; + table: "table"; + kpi: "kpi"; + line: "line"; + bar: "bar"; + "horizontal-bar": "horizontal-bar"; + area: "area"; + pie: "pie"; + donut: "donut"; + funnel: "funnel"; + scatter: "scatter"; + treemap: "treemap"; + sankey: "sankey"; + combo: "combo"; + gauge: "gauge"; + "solid-gauge": "solid-gauge"; + bullet: "bullet"; + radar: "radar"; + pivot: "pivot"; +}>; + +// ── ColumnPrefix (type) ── +type ColumnPrefix = z.input; + +// ── ColumnPrefixParsed (type) ── +type ColumnPrefixParsed = z.infer; + +// ── ColumnPrefixSchema (const) ── +declare const ColumnPrefixSchema: z.ZodObject<{ + field: z.ZodString; + type: z.ZodDefault>; +}, z.core.$strict>; + +// ── ColumnSummary (type) ── +type ColumnSummary = z.input; + +// ── ColumnSummaryAggregation (type) ── +type ColumnSummaryAggregation = { + readonly kind: 'aggregate'; + readonly function: AggregationFunction; + readonly fieldless: boolean; +} | { + readonly kind: 'derived'; + readonly from: 'count'; + readonly fieldless: false; +} | { + readonly kind: 'none'; +} | { + readonly kind: 'unmapped'; +}; + +// ── ColumnSummaryConfig (type) ── +type ColumnSummaryConfig = z.input; + +// ── ColumnSummaryConfigSchema (const) ── +declare const ColumnSummaryConfigSchema: z.ZodObject<{ + type: z.ZodEnum<{ + none: "none"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; +}, z.core.$strict>; + +// ── ColumnSummarySchema (const) ── +declare const ColumnSummarySchema: z.ZodEnum<{ + none: "none"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; +}>; + +// ── CompileListViewGroupQueryOptions (interface) ── +interface CompileListViewGroupQueryOptions { + /** + * The view's COMPOSED filter — the same `where` its row query carries. + * Omitted or `{}` means the whole object. + */ + where?: FilterCondition; + /** + * How many grouping levels the query groups by, from the outermost: + * `1..grouping.fields.length`, default every level (one row per leaf + * combination). See "Multi-level grouping" in the module note. + */ + depth?: number; +} + +// ── CompileListViewGroupRowsQueryOptions (interface) ── +interface CompileListViewGroupRowsQueryOptions { + /** The view's COMPOSED filter — the same `where` the header query carried. */ + where?: FilterCondition; + /** Page size within the group (`limit`; `$top` on the wire). */ + limit?: number; + /** Rows to skip within the group (`offset`; `$skip` on the wire). */ + offset?: number; + /** Row order within the group — passed through to the find. */ + orderBy?: EngineQueryOptions['orderBy']; + /** Projection — passed through to the find. */ + fields?: EngineQueryOptions['fields']; +} + +// ── ComponentNavItem (type) ── +type ComponentNavItem = z.input; + +// ── ComponentNavItemParsed (type) ── +type ComponentNavItemParsed = z.infer; + +// ── ComponentNavItemSchema (const) ── +declare const ComponentNavItemSchema: z.ZodObject<{ + type: z.ZodLiteral<"component">; + componentRef: z.ZodString; + params: z.ZodOptional>; + id: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + icon: z.ZodOptional; + order: z.ZodOptional; + badge: z.ZodOptional>; + badgeVariant: z.ZodOptional>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + requiresObject: z.ZodOptional; + requiresService: z.ZodOptional; +}, z.core.$strict>; + +// ── ComponentProps (type) ── +type ComponentProps = z.infer; + +// ── ComponentPropsInput (type) ── +type ComponentPropsInput = z.input; + +// ── ComponentPropsMap (const) ── +declare const ComponentPropsMap: { + readonly 'page:header': z.ZodObject<{ + title: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + subtitle: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + breadcrumb: z.ZodDefault; + actions: z.ZodOptional>; + recordChrome: z.ZodDefault; + showStar: z.ZodDefault; + showCopyId: z.ZodDefault; + maxVisible: z.ZodOptional; + mobileMaxVisible: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; + readonly 'page:tabs': z.ZodObject<{ + tabStyle: z.ZodDefault>; + type: z.ZodOptional; + position: z.ZodDefault>; + alwaysShowStrip: z.ZodOptional; + items: z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + icon: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + value: z.ZodOptional; + count: z.ZodOptional; + children: z.ZodArray; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; + readonly 'page:card': z.ZodObject<{ + title: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + bordered: z.ZodDefault; + actions: z.ZodOptional; + children: z.ZodOptional>; + body: z.ZodOptional; + footer: z.ZodOptional>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; + readonly 'page:footer': z.ZodObject<{ + children: z.ZodOptional>; + }, z.core.$strict>; + readonly 'page:sidebar': z.ZodObject<{ + children: z.ZodOptional>; + }, z.core.$strict>; + readonly 'page:accordion': z.ZodObject<{ + items: z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + icon: z.ZodOptional; + collapsed: z.ZodDefault; + children: z.ZodArray; + }, z.core.$strict>>; + allowMultiple: z.ZodDefault; + variant: z.ZodDefault>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; + readonly 'page:section': z.ZodObject<{ + children: z.ZodOptional>; + }, z.core.$strict>; + readonly 'record:details': z.ZodObject<{ + columns: z.ZodDefault>; + layout: z.ZodOptional; + sections: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + columns: z.ZodOptional; + group: z.ZodOptional; + fields: z.ZodOptional>; + hideEmpty: z.ZodOptional; + collapsible: z.ZodOptional; + showBorder: z.ZodOptional; + defaultCollapsed: z.ZodOptional; + icon: z.ZodOptional; + description: z.ZodOptional; + headerColor: z.ZodOptional>; + }, z.core.$strict>>>; + fields: z.ZodOptional>; + hideFields: z.ZodOptional>; + inlineEdit: z.ZodOptional; + showHeader: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; + readonly 'record:related_list': z.ZodObject<{ + objectName: z.ZodString; + relationshipField: z.ZodString; + relationshipValueField: z.ZodDefault; + columns: z.ZodOptional>; + sort: z.ZodOptional; + }, z.core.$strict>>]>>; + limit: z.ZodDefault; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + title: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + showViewAll: z.ZodDefault; + actions: z.ZodOptional>; + add: z.ZodOptional; + labelField: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + }, z.core.$strict>; + linkField: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; + readonly 'record:highlights': z.ZodObject<{ + fields: z.ZodArray; + type: z.ZodOptional; + readonly: z.ZodOptional; + }, z.core.$strict>]>>; + layout: z.ZodDefault>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; + readonly 'record:activity': z.ZodObject<{ + types: z.ZodOptional, z.ZodString]>>>; + filterMode: z.ZodDefault>; + showFilterToggle: z.ZodDefault; + limit: z.ZodDefault; + showCompleted: z.ZodDefault; + unifiedTimeline: z.ZodDefault; + showCommentInput: z.ZodDefault; + enableMentions: z.ZodDefault; + enableReactions: z.ZodDefault; + enableThreading: z.ZodDefault; + showSubscriptionToggle: z.ZodDefault; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; + readonly 'record:chatter': z.ZodObject<{ + position: z.ZodOptional>; + width: z.ZodOptional>; + collapsible: z.ZodOptional; + defaultCollapsed: z.ZodOptional; + feed: z.ZodOptional, z.ZodString]>>>; + filterMode: z.ZodDefault>; + showFilterToggle: z.ZodDefault; + limit: z.ZodDefault; + showCompleted: z.ZodDefault; + unifiedTimeline: z.ZodDefault; + showCommentInput: z.ZodDefault; + enableMentions: z.ZodDefault; + enableReactions: z.ZodDefault; + enableThreading: z.ZodDefault; + showSubscriptionToggle: z.ZodDefault; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; + readonly 'record:discussion': z.ZodObject<{ + position: z.ZodOptional>; + width: z.ZodOptional>; + collapsible: z.ZodOptional; + defaultCollapsed: z.ZodOptional; + feed: z.ZodOptional, z.ZodString]>>>; + filterMode: z.ZodDefault>; + showFilterToggle: z.ZodDefault; + limit: z.ZodDefault; + showCompleted: z.ZodDefault; + unifiedTimeline: z.ZodDefault; + showCommentInput: z.ZodDefault; + enableMentions: z.ZodDefault; + enableReactions: z.ZodDefault; + enableThreading: z.ZodDefault; + showSubscriptionToggle: z.ZodDefault; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; + readonly 'record:path': z.ZodObject<{ + statusField: z.ZodString; + stages: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + terminal: z.ZodOptional>; + }, z.core.$strict>>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; + readonly 'record:reference_rail': z.ZodObject<{ + entries: z.ZodArray; + limit: z.ZodOptional; + displayField: z.ZodOptional; + }, z.core.$strict>>; + hideEmpty: z.ZodOptional; + }, z.core.$strict>; + readonly 'record:alert': z.ZodObject<{ + severity: z.ZodOptional>; + title: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + body: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + icon: z.ZodOptional; + action: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + variant: z.ZodOptional>; + }, z.core.$strict>>; + dismissible: z.ZodOptional; + dismissKey: z.ZodOptional; + }, z.core.$strict>; + readonly 'record:quick_actions': z.ZodObject<{ + actionNames: z.ZodOptional>; + requiredPermissions: z.ZodOptional>; + location: z.ZodOptional>; + align: z.ZodOptional>; + inline: z.ZodOptional; + variant: z.ZodOptional>; + size: z.ZodOptional>; + }, z.core.$strict>; + readonly 'record:history': z.ZodObject<{ + limit: z.ZodOptional; + emptyText: z.ZodOptional; + unknownUserText: z.ZodOptional; + }, z.core.$strict>; + readonly 'app:launcher': z.ZodObject<{}, z.core.$strict>; + readonly 'nav:menu': z.ZodObject<{}, z.core.$strict>; + readonly 'nav:breadcrumb': z.ZodObject<{}, z.core.$strict>; + readonly 'global:search': z.ZodObject<{}, z.core.$strict>; + readonly 'global:notifications': z.ZodObject<{}, z.core.$strict>; + readonly 'user:profile': z.ZodNever; + readonly 'cloud-connection:panel': z.ZodObject<{}, z.core.$strict>; + readonly 'marketplace:installed-list': z.ZodObject<{}, z.core.$strict>; + readonly 'mcp:connect-agent': z.ZodObject<{}, z.core.$strict>; + readonly 'ai:chat_window': z.ZodObject<{ + mode: z.ZodDefault>; + agentId: z.ZodOptional; + context: z.ZodOptional>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; + readonly 'ai:suggestion': z.ZodObject<{ + context: z.ZodOptional; + }, z.core.$strict>; + readonly 'element:text': z.ZodObject<{ + content: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + variant: z.ZodDefault>>; + align: z.ZodDefault>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; + readonly 'element:number': z.ZodObject<{ + object: z.ZodString; + field: z.ZodOptional; + aggregate: z.ZodEnum<{ + count: "count"; + min: "min"; + max: "max"; + sum: "sum"; + avg: "avg"; + }>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + format: z.ZodOptional>; + prefix: z.ZodOptional; + suffix: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; + readonly 'element:image': z.ZodObject<{ + src: z.ZodString; + alt: z.ZodOptional; + fit: z.ZodDefault>>; + height: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; + readonly 'element:metadata_viewer': z.ZodObject<{ + type: z.ZodEnum<{ + state_machine: "state_machine"; + flow: "flow"; + permission: "permission"; + }>; + name: z.ZodString; + object: z.ZodOptional; + mode: z.ZodOptional>; + detail: z.ZodDefault>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; + readonly 'element:divider': z.ZodObject<{}, z.core.$strict>; + readonly 'element:button': z.ZodObject<{ + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + variant: z.ZodDefault>>; + size: z.ZodDefault>>; + icon: z.ZodOptional; + iconPosition: z.ZodDefault>>; + disabled: z.ZodDefault>; + action: z.ZodOptional>; + target: z.ZodOptional; + params: z.ZodOptional; + field: z.ZodOptional; + objectOverride: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + required: z.ZodDefault>; + options: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + value: z.ZodString; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + placeholder: z.ZodOptional; + helpText: z.ZodOptional; + defaultValue: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + reference: z.ZodOptional; + defaultFromRow: z.ZodOptional; + carryOver: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiresFeature: z.ZodOptional>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">, { + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }>>>>; + name: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + errorMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + method: z.ZodOptional>; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + bodyExtra: z.ZodOptional>; + opensInNewTab: z.ZodOptional; + openIn: z.ZodOptional>; + successMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + refreshAfter: z.ZodDefault; + }, z.core.$strict>>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; + readonly 'element:filter': z.ZodObject<{ + object: z.ZodOptional; + fields: z.ZodOptional; + targetVariable: z.ZodOptional; + layout: z.ZodOptional; + showSearch: z.ZodOptional; + aria: z.ZodOptional; + }, z.core.$strict>; + readonly 'element:form': z.ZodObject<{ + object: z.ZodOptional; + fields: z.ZodOptional; + mode: z.ZodOptional; + submitLabel: z.ZodOptional; + onSubmit: z.ZodOptional; + aria: z.ZodOptional; + }, z.core.$strict>; + readonly 'element:record_picker': z.ZodObject<{ + object: z.ZodString; + labelField: z.ZodOptional; + valueField: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + targetVariable: z.ZodOptional; + placeholder: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + emptyText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + displayField: z.ZodOptional; + searchFields: z.ZodOptional; + multiple: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; + readonly 'element:text_input': z.ZodObject<{ + inputType: z.ZodDefault>>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + placeholder: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + defaultValue: z.ZodOptional>; + required: z.ZodDefault>; + disabled: z.ZodDefault>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + targetVariable: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; + readonly 'object-grid': z.ZodObject<{ + objectName: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + title: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + columns: z.ZodOptional>; + fields: z.ZodOptional>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + defaultFilters: z.ZodOptional; + sort: z.ZodOptional; + }, z.core.$strip>>>; + defaultSort: z.ZodOptional; + pagination: z.ZodOptional; + pageSize: z.ZodOptional; + showPagination: z.ZodOptional; + searchableFields: z.ZodOptional>; + showSearch: z.ZodOptional; + rowHeight: z.ZodOptional; + grouping: z.ZodOptional; + aggregations: z.ZodOptional; + conditionalFormatting: z.ZodOptional; + rowColor: z.ZodOptional; + selection: z.ZodOptional; + selectable: z.ZodOptional; + rowActions: z.ZodOptional>; + bulkActions: z.ZodOptional>; + batchActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional>; + navigation: z.ZodOptional; + editable: z.ZodOptional; + singleClickEdit: z.ZodOptional; + resizable: z.ZodOptional; + resizableColumns: z.ZodOptional; + reorderableColumns: z.ZodOptional; + frozenColumns: z.ZodOptional; + showColumnTypeIcons: z.ZodOptional; + exportOptions: z.ZodOptional; + operations: z.ZodOptional; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + staticData: z.ZodOptional>; + }, z.core.$strict>; + readonly 'object-metric': z.ZodObject<{ + objectName: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + title: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + colorVariant: z.ZodOptional>; + aggregate: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + format: z.ZodOptional; + currency: z.ZodOptional; + prefix: z.ZodOptional; + suffix: z.ZodOptional; + invert: z.ZodOptional; + variant: z.ZodOptional>; + fallbackValue: z.ZodOptional>; + trend: z.ZodOptional; + drillDown: z.ZodOptional; + compareTo: z.ZodOptional; + }, z.core.$strict>; + readonly 'object-kanban': z.ZodObject<{ + objectName: z.ZodOptional; + groupBy: z.ZodOptional; + columns: z.ZodOptional>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + limit: z.ZodOptional; + data: z.ZodOptional>; + cardTitle: z.ZodOptional; + titleField: z.ZodOptional; + cardFields: z.ZodOptional>; + swimlaneField: z.ZodOptional; + grouping: z.ZodOptional; + quickAdd: z.ZodOptional; + coverImageField: z.ZodOptional; + conditionalFormatting: z.ZodOptional; + }, z.core.$strict>; + readonly 'object-calendar': z.ZodObject<{ + objectName: z.ZodOptional; + calendar: z.ZodOptional; + defaultView: z.ZodOptional>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + data: z.ZodOptional>; + staticData: z.ZodOptional>; + locale: z.ZodOptional; + loading: z.ZodOptional; + }, z.core.$strict>; + readonly 'object-form': z.ZodObject<{ + objectName: z.ZodOptional; + recordId: z.ZodOptional>; + mode: z.ZodOptional>; + formType: z.ZodOptional>; + layout: z.ZodOptional>; + columns: z.ZodOptional; + fields: z.ZodOptional>; + customFields: z.ZodOptional; + sections: z.ZodOptional>; + title: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + defaultTab: z.ZodOptional; + tabPosition: z.ZodOptional>; + allowSkip: z.ZodOptional; + showStepIndicator: z.ZodOptional; + splitDirection: z.ZodOptional>; + splitSize: z.ZodOptional; + splitResizable: z.ZodOptional; + drawerSide: z.ZodOptional>; + drawerWidth: z.ZodOptional>; + modalSize: z.ZodOptional>; + modalCloseButton: z.ZodOptional; + contentLayout: z.ZodOptional; + confirmOnDiscard: z.ZodOptional; + submitText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + cancelText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + nextText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + prevText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + showSubmit: z.ZodOptional; + showCancel: z.ZodOptional; + showReset: z.ZodOptional; + submitBehavior: z.ZodOptional; + successMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + resetOnSuccess: z.ZodOptional; + navigateOnSuccess: z.ZodOptional; + readOnly: z.ZodOptional; + initialValues: z.ZodOptional>; + initialData: z.ZodOptional>; + mobile: z.ZodOptional; + }, z.core.$strict>; + readonly 'object-master-detail-form': z.ZodObject<{ + objectName: z.ZodOptional; + recordId: z.ZodOptional>; + mode: z.ZodOptional>; + formType: z.ZodOptional>; + sections: z.ZodOptional>; + fields: z.ZodOptional>; + details: z.ZodOptional>; + title: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + submitText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + cancelText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + showSubmit: z.ZodOptional; + initialValues: z.ZodOptional>; + initialData: z.ZodOptional>; + taxRateField: z.ZodOptional; + }, z.core.$strict>; + readonly 'object-map': z.ZodObject<{ + objectName: z.ZodOptional; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + staticData: z.ZodOptional>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + map: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + mapStyle: z.ZodOptional; + navigation: z.ZodOptional; + enableClustering: z.ZodOptional; + }, z.core.$strict>; + readonly 'object-gantt': z.ZodObject<{ + objectName: z.ZodOptional; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + staticData: z.ZodOptional>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + navigation: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + skipWeekends: z.ZodOptional; + holidays: z.ZodOptional>; + persistLayout: z.ZodOptional; + viewName: z.ZodOptional; + markers: z.ZodOptional>; + criticalPath: z.ZodOptional; + showBaselines: z.ZodOptional; + readOnly: z.ZodOptional; + mobileReadOnly: z.ZodOptional; + }, z.core.$strict>; + readonly 'object-tree': z.ZodObject<{ + objectName: z.ZodOptional; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + staticData: z.ZodOptional>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + navigation: z.ZodOptional; + }, z.core.$strict>; +}; + +// ── DATE_RANGE_DEFAULT_RANGES (const) ── +declare const DATE_RANGE_DEFAULT_RANGES: readonly ["today", "yesterday", "this_week", "last_week", "this_month", "last_month", "this_quarter", "last_quarter", "this_year", "last_year", "last_7_days", "last_30_days", "last_90_days", "custom"]; + +// ── DATE_RANGE_PRESETS (const) ── +declare const DATE_RANGE_PRESETS: readonly ["today", "yesterday", "this_week", "last_week", "this_month", "last_month", "this_quarter", "last_quarter", "this_year", "last_year", "last_7_days", "last_30_days", "last_90_days"]; + +// ── Dashboard (const) ── +declare const Dashboard: { + readonly create: (config: z.input) => Dashboard; +}; + +// ── Dashboard (type) ── +type Dashboard = z.input; + +// ── DashboardHeader (type) ── +type DashboardHeader = z.input; + +// ── DashboardHeaderAction (type) ── +type DashboardHeaderAction = z.input; + +// ── DashboardHeaderActionSchema (const) ── +declare const DashboardHeaderActionSchema: z.ZodObject<{ + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + actionUrl: z.ZodString; + actionType: z.ZodOptional>; + icon: z.ZodOptional; +}, z.core.$strict>; + +// ── DashboardHeaderParsed (type) ── +type DashboardHeaderParsed = z.infer; + +// ── DashboardHeaderSchema (const) ── +declare const DashboardHeaderSchema: z.ZodObject<{ + showTitle: z.ZodDefault; + showDescription: z.ZodDefault; + actions: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + actionUrl: z.ZodString; + actionType: z.ZodOptional>; + icon: z.ZodOptional; + }, z.core.$strict>>>; +}, z.core.$strict>; + +// ── DashboardNavItem (type) ── +type DashboardNavItem = z.input; + +// ── DashboardNavItemParsed (type) ── +type DashboardNavItemParsed = z.infer; + +// ── DashboardNavItemSchema (const) ── +declare const DashboardNavItemSchema: z.ZodObject<{ + type: z.ZodLiteral<"dashboard">; + dashboardName: z.ZodString; + id: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + icon: z.ZodOptional; + order: z.ZodOptional; + badge: z.ZodOptional>; + badgeVariant: z.ZodOptional>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + requiresObject: z.ZodOptional; + requiresService: z.ZodOptional; +}, z.core.$strict>; + +// ── DashboardParsed (type) ── +type DashboardParsed = z.infer; + +// ── DashboardSchema (const) ── +declare const DashboardSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + header: z.ZodOptional; + showDescription: z.ZodDefault; + actions: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + actionUrl: z.ZodString; + actionType: z.ZodOptional>; + icon: z.ZodOptional; + }, z.core.$strict>>>; + }, z.core.$strict>>; + widgets: z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodDefault>; + chartConfig: z.ZodOptional; + title: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + subtitle: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + xAxis: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + stepSize: z.ZodOptional; + showGridLines: z.ZodDefault; + position: z.ZodOptional>; + logarithmic: z.ZodDefault; + }, z.core.$strict>>; + yAxis: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + stepSize: z.ZodOptional; + showGridLines: z.ZodDefault; + position: z.ZodOptional>; + logarithmic: z.ZodDefault; + }, z.core.$strict>>>; + series: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + color: z.ZodOptional; + stack: z.ZodOptional; + yAxis: z.ZodDefault>; + variant: z.ZodOptional>>; + dashArray: z.ZodOptional; + opacity: z.ZodOptional; + }, z.core.$strict>>>; + colors: z.ZodOptional, z.ZodRecord]>>; + height: z.ZodOptional; + showLegend: z.ZodDefault; + showDataLabels: z.ZodDefault; + annotations: z.ZodOptional>; + axis: z.ZodDefault>; + value: z.ZodUnion; + endValue: z.ZodOptional>; + color: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + style: z.ZodDefault>; + }, z.core.$strict>>>; + interaction: z.ZodOptional; + brush: z.ZodDefault; + }, z.core.$strict>>; + aria: z.ZodOptional; + }, z.core.$strict>>; + colorVariant: z.ZodOptional>; + requiresObject: z.ZodOptional; + requiresService: z.ZodOptional; + actionUrl: z.ZodOptional; + actionType: z.ZodOptional; + actionIcon: z.ZodOptional; + filter: z.ZodOptional>>; + compareTo: z.ZodOptional; + dimension: z.ZodOptional; + }, z.core.$strict>>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + layout: z.ZodOptional>; + options: z.ZodOptional>; + sortBy: z.ZodOptional; + sortOrder: z.ZodOptional>; + limit: z.ZodOptional; + stageOrder: z.ZodOptional>>; + }, z.core.$loose>>; + filterBindings: z.ZodOptional]>>>; + suppressWarnings: z.ZodOptional>; + responsive: z.ZodOptional; + aria: z.ZodOptional; + }, z.core.$strict>>; + columns: z.ZodOptional; + gap: z.ZodOptional; + refreshIntervalSeconds: z.ZodOptional; + refreshInterval: z.ZodOptional; + dateRange: z.ZodOptional; + defaultRange: z.ZodDefault>; + allowCustomRange: z.ZodDefault; + }, z.core.$strict>>; + globalFilters: z.ZodOptional; + field: z.ZodString; + object: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + }, z.core.$strict>>>; + optionsFrom: z.ZodOptional>>; + }, z.core.$strict>>; + defaultValue: z.ZodOptional>; + scope: z.ZodDefault>; + targetWidgets: z.ZodOptional>; + }, z.core.$strict>>>; + aria: z.ZodOptional; + performance: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── DashboardWidget (type) ── +type DashboardWidget = z.input; + +// ── DashboardWidgetOptions (type) ── +type DashboardWidgetOptions = z.input; + +// ── DashboardWidgetOptionsSchema (const) ── +declare const DashboardWidgetOptionsSchema: z.ZodObject<{ + dateGranularity: z.ZodOptional>; + sortBy: z.ZodOptional; + sortOrder: z.ZodOptional>; + limit: z.ZodOptional; + stageOrder: z.ZodOptional>>; +}, z.core.$loose>; + +// ── DashboardWidgetParsed (type) ── +type DashboardWidgetParsed = z.infer; + +// ── DashboardWidgetSchema (const) ── +declare const DashboardWidgetSchema: z.ZodObject<{ + id: z.ZodString; + title: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodDefault>; + chartConfig: z.ZodOptional; + title: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + subtitle: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + xAxis: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + stepSize: z.ZodOptional; + showGridLines: z.ZodDefault; + position: z.ZodOptional>; + logarithmic: z.ZodDefault; + }, z.core.$strict>>; + yAxis: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + format: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + stepSize: z.ZodOptional; + showGridLines: z.ZodDefault; + position: z.ZodOptional>; + logarithmic: z.ZodDefault; + }, z.core.$strict>>>; + series: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + color: z.ZodOptional; + stack: z.ZodOptional; + yAxis: z.ZodDefault>; + variant: z.ZodOptional>>; + dashArray: z.ZodOptional; + opacity: z.ZodOptional; + }, z.core.$strict>>>; + colors: z.ZodOptional, z.ZodRecord]>>; + height: z.ZodOptional; + showLegend: z.ZodDefault; + showDataLabels: z.ZodDefault; + annotations: z.ZodOptional>; + axis: z.ZodDefault>; + value: z.ZodUnion; + endValue: z.ZodOptional>; + color: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + style: z.ZodDefault>; + }, z.core.$strict>>>; + interaction: z.ZodOptional; + brush: z.ZodDefault; + }, z.core.$strict>>; + aria: z.ZodOptional; + }, z.core.$strict>>; + colorVariant: z.ZodOptional>; + requiresObject: z.ZodOptional; + requiresService: z.ZodOptional; + actionUrl: z.ZodOptional; + actionType: z.ZodOptional; + actionIcon: z.ZodOptional; + filter: z.ZodOptional>>; + compareTo: z.ZodOptional; + dimension: z.ZodOptional; + }, z.core.$strict>>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + layout: z.ZodOptional>; + options: z.ZodOptional>; + sortBy: z.ZodOptional; + sortOrder: z.ZodOptional>; + limit: z.ZodOptional; + stageOrder: z.ZodOptional>>; + }, z.core.$loose>>; + filterBindings: z.ZodOptional]>>>; + suppressWarnings: z.ZodOptional>; + responsive: z.ZodOptional; + aria: z.ZodOptional; +}, z.core.$strict>; + +// ── Dataset (type) ── +type Dataset = z.input; + +// ── DatasetDimension (type) ── +type DatasetDimension = z.input; + +// ── DatasetDimensionSchema (const) ── +declare const DatasetDimensionSchema: z.ZodObject<{ + name: z.ZodString; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + field: z.ZodString; + type: z.ZodOptional>; + dateGranularity: z.ZodOptional>; +}, z.core.$strict>; + +// ── DatasetMeasure (type) ── +type DatasetMeasure = z.input; + +// ── DatasetMeasureSchema (const) ── +declare const DatasetMeasureSchema: z.ZodObject<{ + name: z.ZodString; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + aggregate: z.ZodOptional>; + field: z.ZodOptional; + filter: z.ZodOptional>>; + format: z.ZodOptional; + currency: z.ZodOptional; + derived: z.ZodOptional; + of: z.ZodArray; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── DatasetSchema (const) ── +declare const DatasetSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + object: z.ZodString; + include: z.ZodOptional>; + filter: z.ZodOptional>>; + dimensions: z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + field: z.ZodString; + type: z.ZodOptional>; + dateGranularity: z.ZodOptional>; + }, z.core.$strict>>; + measures: z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + aggregate: z.ZodOptional>; + field: z.ZodOptional; + filter: z.ZodOptional>>; + format: z.ZodOptional; + currency: z.ZodOptional; + derived: z.ZodOptional; + of: z.ZodArray; + }, z.core.$strict>>; + }, z.core.$strict>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── DateRangeDefaultRange (type) ── +type DateRangeDefaultRange = (typeof DATE_RANGE_DEFAULT_RANGES)[number]; + +// ── DateRangePreset (type) ── +type DateRangePreset = (typeof DATE_RANGE_PRESETS)[number]; + +// ── DerivedMeasureOp (const) ── +declare const DerivedMeasureOp: z.ZodEnum<{ + sum: "sum"; + ratio: "ratio"; + product: "product"; + difference: "difference"; +}>; + +// ── DerivedMeasureOpValue (type) ── +type DerivedMeasureOpValue = z.input; + +// ── EXPRESSION_BINDABLE_TEXT_KEYS (const) ── +declare const EXPRESSION_BINDABLE_TEXT_KEYS: readonly ["title", "label", "value", "description"]; + +// ── EXPRESSION_BINDABLE_TEXT_KEYS_BY_COMPONENT (const) ── +declare const EXPRESSION_BINDABLE_TEXT_KEYS_BY_COMPONENT: Readonly<{ + statistic: readonly ["label", "value", "description"]; + card: readonly ["title", "description"]; + button: readonly ["label"]; +}>; + +// ── ElementButtonPropsSchema (const) ── +declare const ElementButtonPropsSchema: z.ZodObject<{ + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + variant: z.ZodDefault>>; + size: z.ZodDefault>>; + icon: z.ZodOptional; + iconPosition: z.ZodDefault>>; + disabled: z.ZodDefault>; + action: z.ZodOptional>; + target: z.ZodOptional; + params: z.ZodOptional; + field: z.ZodOptional; + objectOverride: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + required: z.ZodDefault>; + options: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + value: z.ZodString; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + placeholder: z.ZodOptional; + helpText: z.ZodOptional; + defaultValue: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + reference: z.ZodOptional; + defaultFromRow: z.ZodOptional; + carryOver: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiresFeature: z.ZodOptional>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">, { + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "code" | "date" | "record" | "file" | "tags" | "email" | "phone" | "user" | "datetime" | "location" | "text" | "url" | "time" | "formula" | "textarea" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined; + }>>>>; + name: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + errorMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + method: z.ZodOptional>; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + bodyExtra: z.ZodOptional>; + opensInNewTab: z.ZodOptional; + openIn: z.ZodOptional>; + successMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + refreshAfter: z.ZodDefault; + }, z.core.$strict>>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── ElementDataSource (type) ── +type ElementDataSource = z.input; + +// ── ElementDataSourceParsed (type) ── +type ElementDataSourceParsed = z.infer; + +// ── ElementDataSourceSchema (const) ── +declare const ElementDataSourceSchema: z.ZodObject<{ + object: z.ZodString; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; +}, z.core.$strict>; + +// ── ElementFilterPropsSchema (const) ── +declare const ElementFilterPropsSchema: z.ZodObject<{ + object: z.ZodOptional; + fields: z.ZodOptional; + targetVariable: z.ZodOptional; + layout: z.ZodOptional; + showSearch: z.ZodOptional; + aria: z.ZodOptional; +}, z.core.$strict>; + +// ── ElementFormPropsSchema (const) ── +declare const ElementFormPropsSchema: z.ZodObject<{ + object: z.ZodOptional; + fields: z.ZodOptional; + mode: z.ZodOptional; + submitLabel: z.ZodOptional; + onSubmit: z.ZodOptional; + aria: z.ZodOptional; +}, z.core.$strict>; + +// ── ElementImagePropsSchema (const) ── +declare const ElementImagePropsSchema: z.ZodObject<{ + src: z.ZodString; + alt: z.ZodOptional; + fit: z.ZodDefault>>; + height: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── ElementMetadataViewerPropsSchema (const) ── +declare const ElementMetadataViewerPropsSchema: z.ZodObject<{ + type: z.ZodEnum<{ + state_machine: "state_machine"; + flow: "flow"; + permission: "permission"; + }>; + name: z.ZodString; + object: z.ZodOptional; + mode: z.ZodOptional>; + detail: z.ZodDefault>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── ElementNumberProps (type) ── +type ElementNumberProps = z.input; + +// ── ElementNumberPropsParsed (type) ── +type ElementNumberPropsParsed = z.infer; + +// ── ElementNumberPropsSchema (const) ── +declare const ElementNumberPropsSchema: z.ZodObject<{ + object: z.ZodString; + field: z.ZodOptional; + aggregate: z.ZodEnum<{ + count: "count"; + min: "min"; + max: "max"; + sum: "sum"; + avg: "avg"; + }>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + format: z.ZodOptional>; + prefix: z.ZodOptional; + suffix: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── ElementRecordPickerProps (type) ── +type ElementRecordPickerProps = z.input; + +// ── ElementRecordPickerPropsParsed (type) ── +type ElementRecordPickerPropsParsed = z.infer; + +// ── ElementRecordPickerPropsSchema (const) ── +declare const ElementRecordPickerPropsSchema: z.ZodObject<{ + object: z.ZodString; + labelField: z.ZodOptional; + valueField: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + targetVariable: z.ZodOptional; + placeholder: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + emptyText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + displayField: z.ZodOptional; + searchFields: z.ZodOptional; + multiple: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── ElementTextInputPropsSchema (const) ── +declare const ElementTextInputPropsSchema: z.ZodObject<{ + inputType: z.ZodDefault>>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + placeholder: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + defaultValue: z.ZodOptional>; + required: z.ZodDefault>; + disabled: z.ZodDefault>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + targetVariable: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── ElementTextPropsSchema (const) ── +declare const ElementTextPropsSchema: z.ZodObject<{ + content: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + variant: z.ZodDefault>>; + align: z.ZodDefault>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── ExpandViewResult (interface) ── +interface ExpandViewResult { + items: ExpandedViewItem[]; + collisions: ViewKeyCollision[]; +} + +// ── ExpandedViewItem (interface) ── +interface ExpandedViewItem { + name: string; + object: string; + viewKind: 'list' | 'form'; + label?: unknown; + config: any; + isDefault?: boolean; + order: number; + scope: 'package'; + /** Non-blocking expansion diagnostics (MetadataValidationResult wire shape). + * Present only when the item's name had to be rewritten to avoid a + * collision — loaders surface `warnings` in their boot/HMR logs and + * Studio can badge the view. */ + _diagnostics?: { + valid: boolean; + warnings: Array<{ + path: string; + message: string; + }>; + }; +} + +// ── ExpressionBindableTextKey (type) ── +type ExpressionBindableTextKey = (typeof EXPRESSION_BINDABLE_TEXT_KEYS)[number]; + +// ── ExpressionBindableTextKeySchema (const) ── +declare const ExpressionBindableTextKeySchema: z.ZodEnum<{ + description: "description"; + value: "value"; + title: "title"; + label: "label"; +}>; + +// ── FieldWidgetProps (type) ── +type FieldWidgetProps = z.input; + +// ── FieldWidgetPropsParsed (type) ── +type FieldWidgetPropsParsed = z.infer; + +// ── FieldWidgetPropsSchema (const) ── +declare const FieldWidgetPropsSchema: z.ZodObject<{ + value: z.ZodUnknown; + onChange: z.ZodFunction, z.ZodVoid>; + readonly: z.ZodDefault; + required: z.ZodDefault; + error: z.ZodOptional; + field: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + code: "code"; + date: "date"; + record: "record"; + file: "file"; + tags: "tags"; + email: "email"; + phone: "phone"; + user: "user"; + datetime: "datetime"; + location: "location"; + text: "text"; + url: "url"; + time: "time"; + formula: "formula"; + textarea: "textarea"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + vector: "vector"; + }>; + description: z.ZodOptional; + format: z.ZodOptional; + required: z.ZodDefault; + storage: z.ZodOptional; + }, z.core.$strict>>; + searchable: z.ZodDefault; + multiple: z.ZodDefault; + unique: z.ZodOptional, z.ZodLiteral<"organization">]>>; + defaultValue: z.ZodOptional; + maxLength: z.ZodOptional; + minLength: z.ZodOptional; + valueDomain: z.ZodOptional>; + rows: z.ZodOptional; + precision: z.ZodOptional; + scale: z.ZodOptional; + min: z.ZodOptional; + max: z.ZodOptional; + useGrouping: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + options: z.ZodOptional; + color: z.ZodOptional; + default: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + reference: z.ZodOptional; + referenceVia: z.ZodOptional; + deleteBehavior: z.ZodOptional>; + inlineEdit: z.ZodOptional]>>; + inlineTitle: z.ZodOptional; + inlineColumns: z.ZodOptional; + type: z.ZodOptional>; + width: z.ZodOptional; + required: z.ZodOptional; + options: z.ZodOptional>>; + prefix: z.ZodOptional; + step: z.ZodOptional; + reference: z.ZodOptional; + displayField: z.ZodOptional; + idField: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + defaultHidden: z.ZodOptional; + computed: z.ZodOptional; + expr: z.ZodOptional; + scale: z.ZodOptional; + autofill: z.ZodOptional; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + inlineAmountField: z.ZodOptional; + relatedList: z.ZodOptional]>>; + relatedListTitle: z.ZodOptional; + relatedListColumns: z.ZodOptional>; + relatedListFilter: z.ZodOptional>>; + displayField: z.ZodOptional; + descriptionField: z.ZodOptional; + lookupColumns: z.ZodOptional; + width: z.ZodOptional; + type: z.ZodOptional; + }, z.core.$strict>]>>>; + lookupPageSize: z.ZodOptional; + lookupFilters: z.ZodOptional; + value: z.ZodAny; + }, z.core.$strict>>>; + dependsOn: z.ZodOptional; + }, z.core.$strict>]>>>; + allowCreate: z.ZodOptional; + expression: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + returnType: z.ZodOptional>; + summaryOperations: z.ZodOptional; + relationshipField: z.ZodOptional; + filter: z.ZodOptional>>; + }, z.core.$strict>>; + language: z.ZodOptional; + step: z.ZodOptional; + currencyConfig: z.ZodOptional; + currencyMode: z.ZodDefault>; + defaultCurrency: z.ZodDefault; + }, z.core.$strict>>; + dimensions: z.ZodOptional; + trackHistory: z.ZodOptional; + group: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + readonlyWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + conditionalRequired: z.ZodOptional; + widget: z.ZodOptional; + hidden: z.ZodDefault; + internal: z.ZodOptional; + readonly: z.ZodDefault; + requiredPermissions: z.ZodOptional>; + maskingRule: z.ZodOptional, z.ZodObject<{ + keepHead: z.ZodNumber; + keepTail: z.ZodNumber; + }, z.core.$strict>]>>; + ackPlaintextMasking: z.ZodOptional; + system: z.ZodOptional; + sortable: z.ZodDefault>; + inlineHelpText: z.ZodOptional; + placeholder: z.ZodOptional; + autonumberFormat: z.ZodOptional; + externalId: z.ZodDefault; + }, z.core.$strict>; + record: z.ZodOptional>; + options: z.ZodOptional>; +}, z.core.$strip>; + +// ── FilterCondition (type) ── +type FilterCondition = { + [key: string]: any | z.infer | FilterCondition; +} & { + /** Logical AND - combines all conditions that must be true */ + $and?: FilterCondition[]; + /** Logical OR - at least one condition must be true */ + $or?: FilterCondition[]; + /** + * Logical NOT - negates the condition, **NULL-safely** (#5146). + * + * A row whose compared column is NULL does NOT satisfy the negated condition + * and IS returned. In SQL terms the operand is negated as + * `NOT (…) OR col IS NULL` rather than as a bare `NOT (…)`. + * + * See {@link FilterConditionSchema} for why this is part of the contract + * rather than each backend's own choice. + */ + $not?: FilterCondition; +}; + +// ── FormButtonConfig (type) ── +type FormButtonConfig = z.input; + +// ── FormButtonConfigSchema (const) ── +declare const FormButtonConfigSchema: z.ZodObject<{ + show: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; +}, z.core.$strict>; + +// ── FormField (type) ── +type FormField = Omit, 'visibleOn'> & { + /** + * Sub-fields for `composite` / `repeater` / `record` types — declares + * the inner shape of an embedded sub-object (composite), each row of + * an embedded sub-object array (repeater), or each entry of a name-keyed + * map (record). Recursive: any of the three can nest. + * + * Use `lookup` / `master_detail` instead when the children are independent + * records with their own IDs in a separate object/table. + */ + fields?: FormField[]; +}; + +// ── FormFieldInput (type) ── +type FormFieldInput = z.input & { + /** Sub-fields for composite/repeater/record types. Recursive. */ + fields?: FormFieldInput[]; +}; + +// ── FormFieldPublicPicker (type) ── +type FormFieldPublicPicker = z.input; + +// ── FormFieldPublicPickerParsed (type) ── +type FormFieldPublicPickerParsed = z.infer; + +// ── FormFieldPublicPickerSchema (const) ── +declare const FormFieldPublicPickerSchema: z.ZodObject<{ + displayFields: z.ZodOptional>; + maxResults: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + object: z.ZodOptional; +}, z.core.$strict>; + +// ── FormFieldSchema (const) ── +declare const FormFieldSchema: z.ZodType; + +// ── FormSection (type) ── +type FormSection = z.input; + +// ── FormSectionParsed (type) ── +type FormSectionParsed = z.infer; + +// ── FormSectionSchema (const) ── +declare const FormSectionSchema: z.ZodPipe; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional; + collapsible: z.ZodDefault; + collapsed: z.ZodDefault; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibleOn: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + columns: z.ZodPipe, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>, z.ZodTransform<1 | 2 | 4 | 3, "1" | 1 | 2 | 4 | "2" | "3" | "4" | 3>>; + pane: z.ZodOptional>; + group: z.ZodOptional; + fields: z.ZodOptional>]>>>; +}, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; +}, "visibleOn" | "visibility">, { + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; +}>>; + +// ── FormSelectOption (type) ── +type FormSelectOption = z.input; + +// ── FormSelectOptionParsed (type) ── +type FormSelectOptionParsed = z.infer; + +// ── FormSelectOptionSchema (const) ── +declare const FormSelectOptionSchema: z.ZodObject<{ + label: z.ZodString; + value: z.ZodString; + description: z.ZodOptional; + color: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; +}, z.core.$strict>; + +// ── FormView (type) ── +type FormView = z.input; + +// ── FormViewParsed (type) ── +type FormViewParsed = z.infer; + +// ── FormViewSchema (const) ── +declare const FormViewSchema: z.ZodObject<{ + type: z.ZodDefault>; + layout: z.ZodOptional>; + columns: z.ZodOptional; + title: z.ZodOptional; + description: z.ZodOptional; + defaultTab: z.ZodOptional; + tabPosition: z.ZodOptional>; + allowSkip: z.ZodOptional; + showStepIndicator: z.ZodOptional; + splitDirection: z.ZodOptional>; + splitSize: z.ZodOptional; + splitResizable: z.ZodOptional; + drawerSide: z.ZodOptional>; + drawerWidth: z.ZodOptional; + modalSize: z.ZodOptional>; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + sections: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional; + collapsible: z.ZodDefault; + collapsed: z.ZodDefault; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibleOn: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + columns: z.ZodPipe, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>, z.ZodTransform<1 | 2 | 4 | 3, "1" | 1 | 2 | 4 | "2" | "3" | "4" | 3>>; + pane: z.ZodOptional>; + group: z.ZodOptional; + fields: z.ZodOptional>]>>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">, { + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }>>>>; + groups: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional; + collapsible: z.ZodDefault; + collapsed: z.ZodDefault; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibleOn: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + columns: z.ZodPipe, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>, z.ZodTransform<1 | 2 | 4 | 3, "1" | 1 | 2 | 4 | "2" | "3" | "4" | 3>>; + pane: z.ZodOptional>; + group: z.ZodOptional; + fields: z.ZodOptional>]>>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">, { + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }>>>>; + subforms: z.ZodOptional; + columns: z.ZodOptional>; + amountField: z.ZodOptional; + totalField: z.ZodOptional; + title: z.ZodOptional; + addLabel: z.ZodOptional; + minRows: z.ZodOptional; + maxRows: z.ZodOptional; + }, z.core.$strict>>>; + defaultSort: z.ZodOptional; + sharing: z.ZodOptional; + publicLink: z.ZodOptional; + password: z.ZodOptional; + allowedDomains: z.ZodOptional>; + expiresAt: z.ZodOptional; + allowAnonymous: z.ZodDefault>; + }, z.core.$strict>>; + submitBehavior: z.ZodOptional; + title: z.ZodOptional; + message: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"redirect">; + url: z.ZodString; + delayMs: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"continue">; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"next-record">; + }, z.core.$strict>], "kind">>; + buttons: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + cancel: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + reset: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + }, z.core.$strict>>; + defaults: z.ZodOptional>; + aria: z.ZodOptional; +}, z.core.$strict>; + +// ── GalleryConfig (type) ── +type GalleryConfig = z.input; + +// ── GalleryConfigParsed (type) ── +type GalleryConfigParsed = z.infer; + +// ── GalleryConfigSchema (const) ── +declare const GalleryConfigSchema: z.ZodObject<{ + coverField: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; +}, z.core.$strict>; + +// ── GanttConfig (type) ── +type GanttConfig = z.input; + +// ── GanttConfigSchema (const) ── +declare const GanttConfigSchema: z.ZodObject<{ + startDateField: z.ZodString; + endDateField: z.ZodString; + titleField: z.ZodString; + progressField: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── GanttQuickFilter (type) ── +type GanttQuickFilter = z.input; + +// ── GanttQuickFilterSchema (const) ── +declare const GanttQuickFilterSchema: z.ZodObject<{ + field: z.ZodString; + label: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; +}, z.core.$strict>; + +// ── GlobalFilter (type) ── +type GlobalFilter = z.input; + +// ── GlobalFilterOptionsFrom (type) ── +type GlobalFilterOptionsFrom = z.input; + +// ── GlobalFilterOptionsFromSchema (const) ── +declare const GlobalFilterOptionsFromSchema: z.ZodObject<{ + object: z.ZodString; + valueField: z.ZodString; + labelField: z.ZodString; + filter: z.ZodOptional>>; +}, z.core.$strict>; + +// ── GlobalFilterParsed (type) ── +type GlobalFilterParsed = z.infer; + +// ── GlobalFilterSchema (const) ── +declare const GlobalFilterSchema: z.ZodObject<{ + name: z.ZodOptional; + field: z.ZodString; + object: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + }, z.core.$strict>>>; + optionsFrom: z.ZodOptional>>; + }, z.core.$strict>>; + defaultValue: z.ZodOptional>; + scope: z.ZodDefault>; + targetWidgets: z.ZodOptional>; +}, z.core.$strict>; + +// ── GroupNavItem (type) ── +type GroupNavItem = z.infer & { + children: NavigationItem[]; +}; + +// ── GroupNavItemSchema (const) ── +declare const GroupNavItemSchema: z.ZodObject<{ + type: z.ZodLiteral<"group">; + expanded: z.ZodDefault; + id: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + icon: z.ZodOptional; + order: z.ZodOptional; + badge: z.ZodOptional>; + badgeVariant: z.ZodOptional>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + requiresObject: z.ZodOptional; + requiresService: z.ZodOptional; +}, z.core.$strict>; + +// ── GroupingConfig (type) ── +type GroupingConfig = z.input; + +// ── GroupingConfigParsed (type) ── +type GroupingConfigParsed = z.infer; + +// ── GroupingConfigSchema (const) ── +declare const GroupingConfigSchema: z.ZodObject<{ + fields: z.ZodArray>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── GroupingFieldSchema (const) ── +declare const GroupingFieldSchema: z.ZodObject<{ + field: z.ZodString; + order: z.ZodDefault>; + collapsed: z.ZodDefault; +}, z.core.$strict>; + +// ── HttpMethodSubset (type) ── +type HttpMethodSubset = z.input; + +// ── HttpMethodSubsetSchema (const) ── +declare const HttpMethodSubsetSchema: z.ZodEnum<{ + GET: "GET"; + POST: "POST"; + PUT: "PUT"; + DELETE: "DELETE"; + PATCH: "PATCH"; +}>; + +// ── HttpRequest (type) ── +type HttpRequest = z.input; + +// ── HttpRequestSchema (const) ── +declare const HttpRequestSchema: z.ZodObject<{ + url: z.ZodString; + method: z.ZodDefault>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; +}, z.core.$strip>; + +// ── I18nLabel (type) ── +type I18nLabel = z.input; + +// ── I18nLabelSchema (const) ── +declare const I18nLabelSchema: z.ZodUnion & { + key?: never; + defaultValue?: never; +}, Record & { + key?: never; + defaultValue?: never; +}, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; +}, Record & { + key?: never; + defaultValue?: never; +}>>]>; + +// ── InlineAction (type) ── +type InlineAction = z.input; + +// ── InlineActionParsed (type) ── +type InlineActionParsed = z.infer; + +// ── InlineActionSchema (const) ── +declare const InlineActionSchema: z.ZodPreprocess>; + target: z.ZodOptional; + params: z.ZodOptional; + field: z.ZodOptional; + objectOverride: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + required: z.ZodDefault>; + options: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + value: z.ZodString; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + }, z.core.$strict>>>; + placeholder: z.ZodOptional; + helpText: z.ZodOptional; + defaultValue: z.ZodOptional; + multiple: z.ZodOptional; + accept: z.ZodOptional>; + maxSize: z.ZodOptional; + reference: z.ZodOptional; + defaultFromRow: z.ZodOptional; + carryOver: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiresFeature: z.ZodOptional>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }, "requiresFeature">, { + required: boolean; + name?: string | undefined; + field?: string | undefined; + objectOverride?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "url" | "email" | "datetime" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector" | undefined; + options?: { + label: string | (Record & { + key?: never; + defaultValue?: never; + }); + value: string; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + }[] | undefined; + placeholder?: string | undefined; + helpText?: string | undefined; + defaultValue?: unknown; + multiple?: boolean | undefined; + accept?: string[] | undefined; + maxSize?: number | undefined; + reference?: string | undefined; + defaultFromRow?: boolean | undefined; + carryOver?: boolean | undefined; + visible?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + requiresFeature?: "organization" | "admin" | "twoFactor" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "phoneNumber" | "phoneNumberOtp" | undefined; + }>>>>; + name: z.ZodOptional; + errorMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + confirmText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + successMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + method: z.ZodOptional>; + bodyExtra: z.ZodOptional>; + opensInNewTab: z.ZodOptional; + openIn: z.ZodOptional>; + refreshAfter: z.ZodDefault; +}, z.core.$strict>>; + +// ── InlineLocaleMap (type) ── +type InlineLocaleMap = Record & { + /** Never writable — the retired key-reference form's `key` (#5055, #9925). */ + key?: never; + /** Never writable — the retired key-reference form's `defaultValue` (#5055, #9925). */ + defaultValue?: never; +}; + +// ── InlineLocaleMapSchema (const) ── +declare const InlineLocaleMapSchema: z.ZodType & { + key?: never; + defaultValue?: never; +}, Record & { + key?: never; + defaultValue?: never; +}>; + +// ── InterfacePageConfig (type) ── +type InterfacePageConfig = z.input; + +// ── InterfacePageConfigParsed (type) ── +type InterfacePageConfigParsed = z.infer; + +// ── InterfacePageConfigSchema (const) ── +declare const InterfacePageConfigSchema: z.ZodObject<{ + source: z.ZodOptional; + columns: z.ZodOptional, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + none: "none"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + filterBy: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + levels: z.ZodOptional; + sourceView: z.ZodOptional; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + showAllRecords: z.ZodOptional; + allowAddTab: z.ZodOptional; + }, z.core.$strict>>; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + buttons: z.ZodOptional>; + recordAction: z.ZodOptional>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; +}, z.core.$strict>; + +// ── JoinedReportBlock (type) ── +type JoinedReportBlock = z.input; + +// ── JoinedReportBlockSchema (const) ── +declare const JoinedReportBlockSchema: z.ZodTypeAny; + +// ── KNOWN_COMPONENT_TYPES (const) ── +declare const KNOWN_COMPONENT_TYPES: ReadonlySet; + +// ── KNOWN_COMPONENT_TYPE_CANDIDATES (const) ── +declare const KNOWN_COMPONENT_TYPE_CANDIDATES: readonly string[]; + +// ── KanbanConfig (type) ── +type KanbanConfig = z.input; + +// ── KanbanConfigSchema (const) ── +declare const KanbanConfigSchema: z.ZodObject<{ + groupByField: z.ZodString; + summarizeField: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; +}, z.core.$strict>; + +// ── LIST_VIEW_GROUP_COUNT_ALIAS (const) ── +declare const LIST_VIEW_GROUP_COUNT_ALIAS = "count"; + +// ── ListChartConfig (type) ── +type ListChartConfig = z.input; + +// ── ListChartConfigParsed (type) ── +type ListChartConfigParsed = z.infer; + +// ── ListChartConfigSchema (const) ── +declare const ListChartConfigSchema: z.ZodObject<{ + chartType: z.ZodDefault>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; +}, z.core.$strict>; + +// ── ListColumn (type) ── +type ListColumn = z.input; + +// ── ListColumnParsed (type) ── +type ListColumnParsed = z.infer; + +// ── ListColumnSchema (const) ── +declare const ListColumnSchema: z.ZodObject<{ + field: z.ZodString; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + none: "none"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; +}, z.core.$strict>; + +// ── ListMapConfig (type) ── +type ListMapConfig = z.input; + +// ── ListMapConfigSchema (const) ── +declare const ListMapConfigSchema: z.ZodObject<{ + latitudeField: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; +}, z.core.$strict>; + +// ── ListView (type) ── +type ListView = z.input; + +// ── ListViewGroupHeaderRow (interface) ── +interface ListViewGroupHeaderRow { + [column: string]: unknown; + count: number; +} + +// ── ListViewGroupQueryError (class) ── +declare class ListViewGroupQueryError extends Error { + readonly code: 'NOT_IMPLEMENTED' | 'INVALID_QUERY'; + readonly status: 501 | 400; + readonly path: ReadonlyArray; + readonly reason: ListViewGroupQueryRefusal; + constructor(reason: ListViewGroupQueryRefusal, path: ReadonlyArray, message: string); +} + +// ── ListViewGroupQueryRefusal (type) ── +type ListViewGroupQueryRefusal = 'summary_unmapped' | 'summary_unknown' | 'alias_collision' | 'grouping_empty' | 'grouping_field_blank' | 'depth_out_of_range' | 'group_key_not_a_prefix' | 'group_key_not_scalar'; + +// ── ListViewGroupQuerySource (interface) ── +interface ListViewGroupQuerySource { + /** `ListView.grouping` — the fields to group by, in nesting order. */ + grouping: GroupingConfig; + /** + * `ListView.columns` — only `ListColumn` entries carrying a `summary` + * contribute; bare field-name columns declare no summary. + */ + columns?: ListView['columns']; +} + +// ── ListViewParsed (type) ── +type ListViewParsed = z.infer; + +// ── ListViewSchema (const) ── +declare const ListViewSchema: z.ZodObject<{ + name: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodDefault>; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + none: "none"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + showAllRecords: z.ZodOptional; + allowAddTab: z.ZodOptional; + }, z.core.$strict>>; + resizable: z.ZodOptional; + compactToolbar: z.ZodOptional; + selection: z.ZodOptional>; + }, z.core.$strict>>; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + map: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + pageName: z.ZodOptional; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + rowActions: z.ZodOptional>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + delete: "delete"; + update: "update"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + url: "url"; + email: "email"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + inlineEdit: z.ZodOptional; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "xlsx" | "csv")[]; + }, ("json" | "xlsx" | "csv")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + performance: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; +}, z.core.$strict>; + +// ── NavigationArea (type) ── +type NavigationArea = z.input; + +// ── NavigationAreaParsed (type) ── +type NavigationAreaParsed = z.infer; + +// ── NavigationAreaSchema (const) ── +declare const NavigationAreaSchema: z.ZodObject<{ + id: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + icon: z.ZodOptional; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + navigation: z.ZodArray>>; +}, z.core.$strict>; + +// ── NavigationConfig (type) ── +type NavigationConfig = z.input; + +// ── NavigationConfigParsed (type) ── +type NavigationConfigParsed = z.infer; + +// ── NavigationConfigSchema (const) ── +declare const NavigationConfigSchema: z.ZodObject<{ + mode: z.ZodDefault>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; +}, z.core.$strict>; + +// ── NavigationContribution (type) ── +type NavigationContribution = z.input; + +// ── NavigationContributionParsed (type) ── +type NavigationContributionParsed = z.infer; + +// ── NavigationContributionSchema (const) ── +declare const NavigationContributionSchema: z.ZodObject<{ + app: z.ZodString; + group: z.ZodOptional; + priority: z.ZodDefault; + items: z.ZodArray>>; +}, z.core.$strict>; + +// ── NavigationItem (type) ── +type NavigationItem = (ObjectNavItem & { + children?: NavigationItem[]; +}) | DashboardNavItem | PageNavItem | UrlNavItem | ReportNavItem | ActionNavItem | ComponentNavItem | SeparatorNavItem | GroupNavItem; + +// ── NavigationItemInput (type) ── +type NavigationItemInput = (z.input & { + children?: NavigationItemInput[]; +}) | z.input | z.input | z.input | z.input | z.input | z.input | z.input | (z.input & { + children: NavigationItemInput[]; +}); + +// ── NavigationItemSchema (const) ── +declare const NavigationItemSchema: z.ZodType; + +// ── NavigationMode (type) ── +type NavigationMode = z.input; + +// ── NavigationModeSchema (const) ── +declare const NavigationModeSchema: z.ZodEnum<{ + split: "split"; + none: "none"; + page: "page"; + modal: "modal"; + drawer: "drawer"; + popover: "popover"; + new_window: "new_window"; +}>; + +// ── NotificationPosition (type) ── +type NotificationPosition = z.input; + +// ── NotificationPositionSchema (const) ── +declare const NotificationPositionSchema: z.ZodEnum<{ + top_left: "top_left"; + top_center: "top_center"; + top_right: "top_right"; + bottom_left: "bottom_left"; + bottom_center: "bottom_center"; + bottom_right: "bottom_right"; +}>; + +// ── NotificationSeverity (type) ── +type NotificationSeverity = z.input; + +// ── NotificationSeveritySchema (const) ── +declare const NotificationSeveritySchema: z.ZodEnum<{ + error: "error"; + success: "success"; + info: "info"; + warning: "warning"; +}>; + +// ── NotificationType (type) ── +type NotificationType = z.input; + +// ── NotificationTypeSchema (const) ── +declare const NotificationTypeSchema: z.ZodEnum<{ + alert: "alert"; + toast: "toast"; + inline: "inline"; + banner: "banner"; + snackbar: "snackbar"; +}>; + +// ── ObjectCalendarProps (type) ── +type ObjectCalendarProps = z.input; + +// ── ObjectCalendarPropsParsed (type) ── +type ObjectCalendarPropsParsed = z.infer; + +// ── ObjectCalendarPropsSchema (const) ── +declare const ObjectCalendarPropsSchema: z.ZodObject<{ + objectName: z.ZodOptional; + calendar: z.ZodOptional; + defaultView: z.ZodOptional>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + data: z.ZodOptional>; + staticData: z.ZodOptional>; + locale: z.ZodOptional; + loading: z.ZodOptional; +}, z.core.$strict>; + +// ── ObjectFormProps (type) ── +type ObjectFormProps = z.input; + +// ── ObjectFormPropsSchema (const) ── +declare const ObjectFormPropsSchema: z.ZodObject<{ + objectName: z.ZodOptional; + recordId: z.ZodOptional>; + mode: z.ZodOptional>; + formType: z.ZodOptional>; + layout: z.ZodOptional>; + columns: z.ZodOptional; + fields: z.ZodOptional>; + customFields: z.ZodOptional; + sections: z.ZodOptional>; + title: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + defaultTab: z.ZodOptional; + tabPosition: z.ZodOptional>; + allowSkip: z.ZodOptional; + showStepIndicator: z.ZodOptional; + splitDirection: z.ZodOptional>; + splitSize: z.ZodOptional; + splitResizable: z.ZodOptional; + drawerSide: z.ZodOptional>; + drawerWidth: z.ZodOptional>; + modalSize: z.ZodOptional>; + modalCloseButton: z.ZodOptional; + contentLayout: z.ZodOptional; + confirmOnDiscard: z.ZodOptional; + submitText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + cancelText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + nextText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + prevText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + showSubmit: z.ZodOptional; + showCancel: z.ZodOptional; + showReset: z.ZodOptional; + submitBehavior: z.ZodOptional; + successMessage: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + resetOnSuccess: z.ZodOptional; + navigateOnSuccess: z.ZodOptional; + readOnly: z.ZodOptional; + initialValues: z.ZodOptional>; + initialData: z.ZodOptional>; + mobile: z.ZodOptional; +}, z.core.$strict>; + +// ── ObjectGanttProps (type) ── +type ObjectGanttProps = z.input; + +// ── ObjectGanttPropsParsed (type) ── +type ObjectGanttPropsParsed = z.infer; + +// ── ObjectGanttPropsSchema (const) ── +declare const ObjectGanttPropsSchema: z.ZodObject<{ + objectName: z.ZodOptional; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + staticData: z.ZodOptional>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + navigation: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + skipWeekends: z.ZodOptional; + holidays: z.ZodOptional>; + persistLayout: z.ZodOptional; + viewName: z.ZodOptional; + markers: z.ZodOptional>; + criticalPath: z.ZodOptional; + showBaselines: z.ZodOptional; + readOnly: z.ZodOptional; + mobileReadOnly: z.ZodOptional; +}, z.core.$strict>; + +// ── ObjectGridProps (type) ── +type ObjectGridProps = z.input; + +// ── ObjectGridPropsParsed (type) ── +type ObjectGridPropsParsed = z.infer; + +// ── ObjectGridPropsSchema (const) ── +declare const ObjectGridPropsSchema: z.ZodObject<{ + objectName: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + title: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + columns: z.ZodOptional>; + fields: z.ZodOptional>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + defaultFilters: z.ZodOptional; + sort: z.ZodOptional; + }, z.core.$strip>>>; + defaultSort: z.ZodOptional; + pagination: z.ZodOptional; + pageSize: z.ZodOptional; + showPagination: z.ZodOptional; + searchableFields: z.ZodOptional>; + showSearch: z.ZodOptional; + rowHeight: z.ZodOptional; + grouping: z.ZodOptional; + aggregations: z.ZodOptional; + conditionalFormatting: z.ZodOptional; + rowColor: z.ZodOptional; + selection: z.ZodOptional; + selectable: z.ZodOptional; + rowActions: z.ZodOptional>; + bulkActions: z.ZodOptional>; + batchActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional>; + navigation: z.ZodOptional; + editable: z.ZodOptional; + singleClickEdit: z.ZodOptional; + resizable: z.ZodOptional; + resizableColumns: z.ZodOptional; + reorderableColumns: z.ZodOptional; + frozenColumns: z.ZodOptional; + showColumnTypeIcons: z.ZodOptional; + exportOptions: z.ZodOptional; + operations: z.ZodOptional; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + staticData: z.ZodOptional>; +}, z.core.$strict>; + +// ── ObjectKanbanProps (type) ── +type ObjectKanbanProps = z.input; + +// ── ObjectKanbanPropsParsed (type) ── +type ObjectKanbanPropsParsed = z.infer; + +// ── ObjectKanbanPropsSchema (const) ── +declare const ObjectKanbanPropsSchema: z.ZodObject<{ + objectName: z.ZodOptional; + groupBy: z.ZodOptional; + columns: z.ZodOptional>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + limit: z.ZodOptional; + data: z.ZodOptional>; + cardTitle: z.ZodOptional; + titleField: z.ZodOptional; + cardFields: z.ZodOptional>; + swimlaneField: z.ZodOptional; + grouping: z.ZodOptional; + quickAdd: z.ZodOptional; + coverImageField: z.ZodOptional; + conditionalFormatting: z.ZodOptional; +}, z.core.$strict>; + +// ── ObjectListViewSchema (const) ── +declare const ObjectListViewSchema: z.ZodObject<{ + map: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + type: z.ZodDefault>; + sort: z.ZodOptional; + }, z.core.$strict>>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + name: z.ZodOptional; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + inlineEdit: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + delete: "delete"; + update: "update"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + url: "url"; + email: "email"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + rowActions: z.ZodOptional>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + none: "none"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + pageName: z.ZodOptional; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + responsive: z.ZodOptional; + performance: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "xlsx" | "csv")[]; + }, ("json" | "xlsx" | "csv")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + resizable: z.ZodOptional; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + compactToolbar: z.ZodOptional; + selection: z.ZodOptional>; + }, z.core.$strict>>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── ObjectMapProps (type) ── +type ObjectMapProps = z.input; + +// ── ObjectMapPropsParsed (type) ── +type ObjectMapPropsParsed = z.infer; + +// ── ObjectMapPropsSchema (const) ── +declare const ObjectMapPropsSchema: z.ZodObject<{ + objectName: z.ZodOptional; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + staticData: z.ZodOptional>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + map: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + mapStyle: z.ZodOptional; + navigation: z.ZodOptional; + enableClustering: z.ZodOptional; +}, z.core.$strict>; + +// ── ObjectMasterDetailFormProps (type) ── +type ObjectMasterDetailFormProps = z.input; + +// ── ObjectMasterDetailFormPropsSchema (const) ── +declare const ObjectMasterDetailFormPropsSchema: z.ZodObject<{ + objectName: z.ZodOptional; + recordId: z.ZodOptional>; + mode: z.ZodOptional>; + formType: z.ZodOptional>; + sections: z.ZodOptional>; + fields: z.ZodOptional>; + details: z.ZodOptional>; + title: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + submitText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + cancelText: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + showSubmit: z.ZodOptional; + initialValues: z.ZodOptional>; + initialData: z.ZodOptional>; + taxRateField: z.ZodOptional; +}, z.core.$strict>; + +// ── ObjectMetricProps (type) ── +type ObjectMetricProps = z.input; + +// ── ObjectMetricPropsParsed (type) ── +type ObjectMetricPropsParsed = z.infer; + +// ── ObjectMetricPropsSchema (const) ── +declare const ObjectMetricPropsSchema: z.ZodObject<{ + objectName: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + title: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + colorVariant: z.ZodOptional>; + aggregate: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + format: z.ZodOptional; + currency: z.ZodOptional; + prefix: z.ZodOptional; + suffix: z.ZodOptional; + invert: z.ZodOptional; + variant: z.ZodOptional>; + fallbackValue: z.ZodOptional>; + trend: z.ZodOptional; + drillDown: z.ZodOptional; + compareTo: z.ZodOptional; +}, z.core.$strict>; + +// ── ObjectNavItem (type) ── +type ObjectNavItem = z.input; + +// ── ObjectNavItemParsed (type) ── +type ObjectNavItemParsed = z.infer; + +// ── ObjectNavItemSchema (const) ── +declare const ObjectNavItemSchema: z.ZodObject<{ + type: z.ZodLiteral<"object">; + objectName: z.ZodString; + viewName: z.ZodOptional; + recordId: z.ZodOptional; + recordMode: z.ZodOptional>; + filters: z.ZodOptional>; + runAction: z.ZodOptional; + id: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + icon: z.ZodOptional; + order: z.ZodOptional; + badge: z.ZodOptional>; + badgeVariant: z.ZodOptional>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + requiresObject: z.ZodOptional; + requiresService: z.ZodOptional; +}, z.core.$strict>; + +// ── ObjectTreeProps (type) ── +type ObjectTreeProps = z.input; + +// ── ObjectTreePropsParsed (type) ── +type ObjectTreePropsParsed = z.infer; + +// ── ObjectTreePropsSchema (const) ── +declare const ObjectTreePropsSchema: z.ZodObject<{ + objectName: z.ZodOptional; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + staticData: z.ZodOptional>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + navigation: z.ZodOptional; +}, z.core.$strict>; + +// ── ObjectUserFiltersSchema (const) ── +declare const ObjectUserFiltersSchema: z.ZodObject<{ + element: z.ZodDefault>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; +}, z.core.$strict>; + +// ── PAGE_TYPE_ROADMAP (const) ── +declare const PAGE_TYPE_ROADMAP: readonly ["dashboard", "form", "record_detail", "record_review", "overview", "blank"]; + +// ── Page (type) ── +type Page = z.input; + +// ── PageAccordionProps (const) ── +declare const PageAccordionProps: z.ZodObject<{ + items: z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + icon: z.ZodOptional; + collapsed: z.ZodDefault; + children: z.ZodArray; + }, z.core.$strict>>; + allowMultiple: z.ZodDefault; + variant: z.ZodDefault>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── PageCardProps (const) ── +declare const PageCardProps: z.ZodObject<{ + title: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + bordered: z.ZodDefault; + actions: z.ZodOptional; + children: z.ZodOptional>; + body: z.ZodOptional; + footer: z.ZodOptional>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── PageComponent (type) ── +type PageComponent = z.input; + +// ── PageComponentParsed (type) ── +type PageComponentParsed = z.infer; + +// ── PageComponentSchema (const) ── +declare const PageComponentSchema: z.ZodPipe, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; +}, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; +}>>; + +// ── PageComponentType (const) ── +declare const PageComponentType: z.ZodEnum<{ + "element:divider": "element:divider"; + "page:card": "page:card"; + "page:header": "page:header"; + "element:text_input": "element:text_input"; + "page:tabs": "page:tabs"; + "element:record_picker": "element:record_picker"; + "element:text": "element:text"; + "element:image": "element:image"; + "record:alert": "record:alert"; + "element:button": "element:button"; + "record:details": "record:details"; + "record:highlights": "record:highlights"; + "record:chatter": "record:chatter"; + "record:discussion": "record:discussion"; + "page:footer": "page:footer"; + "page:sidebar": "page:sidebar"; + "page:accordion": "page:accordion"; + "page:section": "page:section"; + "record:related_list": "record:related_list"; + "record:activity": "record:activity"; + "record:path": "record:path"; + "record:quick_actions": "record:quick_actions"; + "record:reference_rail": "record:reference_rail"; + "record:history": "record:history"; + "app:launcher": "app:launcher"; + "nav:menu": "nav:menu"; + "nav:breadcrumb": "nav:breadcrumb"; + "global:search": "global:search"; + "global:notifications": "global:notifications"; + "ai:chat_window": "ai:chat_window"; + "ai:suggestion": "ai:suggestion"; + "element:number": "element:number"; +}>; + +// ── PageComponentType (type) ── +type PageComponentType = z.input; + +// ── PageContainerProps (const) ── +declare const PageContainerProps: z.ZodObject<{ + children: z.ZodOptional>; +}, z.core.$strict>; + +// ── PageContainerProps (type) ── +type PageContainerProps = z.input; + +// ── PageHeaderProps (const) ── +declare const PageHeaderProps: z.ZodObject<{ + title: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + subtitle: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + breadcrumb: z.ZodDefault; + actions: z.ZodOptional>; + recordChrome: z.ZodDefault; + showStar: z.ZodDefault; + showCopyId: z.ZodDefault; + maxVisible: z.ZodOptional; + mobileMaxVisible: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── PageNavItem (type) ── +type PageNavItem = z.input; + +// ── PageNavItemParsed (type) ── +type PageNavItemParsed = z.infer; + +// ── PageNavItemSchema (const) ── +declare const PageNavItemSchema: z.ZodObject<{ + type: z.ZodLiteral<"page">; + pageName: z.ZodString; + params: z.ZodOptional>; + id: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + icon: z.ZodOptional; + order: z.ZodOptional; + badge: z.ZodOptional>; + badgeVariant: z.ZodOptional>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + requiresObject: z.ZodOptional; + requiresService: z.ZodOptional; +}, z.core.$strict>; + +// ── PageParsed (type) ── +type PageParsed = z.infer; + +// ── PageRegion (type) ── +type PageRegion = z.input; + +// ── PageRegionParsed (type) ── +type PageRegionParsed = z.infer; + +// ── PageRegionSchema (const) ── +declare const PageRegionSchema: z.ZodObject<{ + name: z.ZodString; + width: z.ZodOptional>; + components: z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>>; +}, z.core.$strict>; + +// ── PageSchema (const) ── +declare const PageSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + type: z.ZodDefault>; + variables: z.ZodOptional>; + defaultValue: z.ZodOptional; + source: z.ZodOptional; + }, z.core.$strict>>>; + object: z.ZodOptional; + template: z.ZodDefault; + regions: z.ZodDefault>; + components: z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>>; + }, z.core.$strict>>>>; + isDefault: z.ZodDefault; + assignedProfiles: z.ZodOptional; + interfaceConfig: z.ZodOptional; + columns: z.ZodOptional, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + none: "none"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + filterBy: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + levels: z.ZodOptional; + sourceView: z.ZodOptional; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + showAllRecords: z.ZodOptional; + allowAddTab: z.ZodOptional; + }, z.core.$strict>>; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + buttons: z.ZodOptional>; + recordAction: z.ZodOptional>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + kind: z.ZodDefault>; + slots: z.ZodOptional, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>, z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>]>>; + actions: z.ZodOptional, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>, z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>]>>; + alerts: z.ZodOptional, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>, z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>]>>; + highlights: z.ZodOptional, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>, z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>]>>; + details: z.ZodOptional, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>, z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>]>>; + tabs: z.ZodOptional, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>, z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>]>>; + discussion: z.ZodOptional, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>, z.ZodArray, z.ZodString]>; + id: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + properties: z.ZodDefault>>; + events: z.ZodOptional>; + style: z.ZodOptional>; + className: z.ZodOptional; + responsiveStyles: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; + }, z.core.$strict>>; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibility: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + dataSource: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strip>>>; + limit: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>, z.ZodTransform; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }, "visibleOn" | "visibility">, { + type: string; + properties: Record; + id?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + events?: Record | undefined; + style?: Record | undefined; + className?: string | undefined; + responsiveStyles?: { + large?: Record | undefined; + medium?: Record | undefined; + small?: Record | undefined; + xsmall?: Record | undefined; + } | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibility?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + dataSource?: { + object: string; + view?: string | undefined; + filter?: { + field: string; + operator: "in" | "starts_with" | "ends_with" | "not_in" | "between" | "greater_than" | "after" | "greater_than_or_equal" | "less_than" | "before" | "less_than_or_equal" | "equals" | "not_equals" | "contains" | "not_contains" | "icontains" | "is_null" | "is_not_null" | "is_empty" | "is_not_empty"; + value?: string | number | boolean | (string | number)[] | null | undefined; + }[] | undefined; + sort?: { + field: string; + order: "asc" | "desc"; + }[] | undefined; + limit?: number | undefined; + } | undefined; + responsive?: undefined; + aria?: { + ariaLabel?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + ariaDescribedBy?: string | undefined; + role?: string | undefined; + } | undefined; + }>>>]>>; + }, z.core.$strict>>; + source: z.ZodOptional; + requires: z.ZodOptional>; +}, z.core.$strict>; + +// ── PageTabsProps (const) ── +declare const PageTabsProps: z.ZodObject<{ + tabStyle: z.ZodDefault>; + type: z.ZodOptional; + position: z.ZodDefault>; + alwaysShowStrip: z.ZodOptional; + items: z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + icon: z.ZodOptional; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + value: z.ZodOptional; + count: z.ZodOptional; + children: z.ZodArray; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── PageType (type) ── +type PageType = z.input; + +// ── PageTypeSchema (const) ── +declare const PageTypeSchema: z.ZodEnum<{ + record: "record"; + app: "app"; + home: "home"; + list: "list"; + utility: "utility"; +}>; + +// ── PageVariable (type) ── +type PageVariable = z.input; + +// ── PageVariableParsed (type) ── +type PageVariableParsed = z.infer; + +// ── PageVariableSchema (const) ── +declare const PageVariableSchema: z.ZodObject<{ + name: z.ZodString; + type: z.ZodDefault>; + defaultValue: z.ZodOptional; + source: z.ZodOptional; +}, z.core.$strict>; + +// ── PaginationConfig (type) ── +type PaginationConfig = z.input; + +// ── PaginationConfigParsed (type) ── +type PaginationConfigParsed = z.infer; + +// ── PaginationConfigSchema (const) ── +declare const PaginationConfigSchema: z.ZodObject<{ + pageSize: z.ZodDefault; + pageSizeOptions: z.ZodOptional>; +}, z.core.$strict>; + +// ── QueryInput (type) ── +type QueryInput = z.input & { + expand?: Record; +}; + +// ── REACT_BLOCKS (const) ── +declare const REACT_BLOCKS: ReactBlockDef[]; + +// ── REACT_OVERLAY_SHADOWS (const) ── +declare const REACT_OVERLAY_SHADOWS: Readonly>; + +// ── REACT_RECORD_BLOCK_ALTERNATIVES (const) ── +declare const REACT_RECORD_BLOCK_ALTERNATIVES: Readonly>; + +// ── REACT_RETIRED_OVERLAY_PROPS (const) ── +declare const REACT_RETIRED_OVERLAY_PROPS: Readonly>>>; + +// ── RECORD_CONTEXT_BLOCK_TAGS (const) ── +declare const RECORD_CONTEXT_BLOCK_TAGS: ReadonlyMap; + +// ── RECORD_CONTEXT_TYPE_PREFIX (const) ── +declare const RECORD_CONTEXT_TYPE_PREFIX = "record:"; + +// ── RESERVED_COMPONENT_TYPE_NAMESPACES (const) ── +declare const RESERVED_COMPONENT_TYPE_NAMESPACES: ReadonlySet; + +// ── RETIRED_PAGE_COMPONENT_TYPES (const) ── +declare const RETIRED_PAGE_COMPONENT_TYPES: ReadonlyMap; + +// ── ReactBlockDef (interface) ── +interface ReactBlockDef { + /** PascalCase name the author writes in JSX, e.g. ``. */ + tag: string; + /** The registry/render type, e.g. `object-form`. */ + schemaType: string; + summary: string; + /** + * Spec zod schema that defines this block's declarative (config) props. The + * generator extracts these as `data` props — authoritative, with descriptions. + * Omit for blocks with no spec schema (then only the overlay is published). + */ + schema?: ZodTypeAny; + /** + * Curate which spec-schema props to surface (high-signal subset; ADR-0080 + * "capability ≠ contract"). Definitions still come from the schema — this only + * selects + orders. Omit to surface all of the schema's props. + */ + dataProps?: string[]; + /** React-only props absent from the declarative schema (hand-authored). */ + interactions: ReactInteractionProp[]; +} + +// ── ReactInteractionProp (interface) ── +interface ReactInteractionProp { + name: string; + type: string; + kind: 'binding' | 'controlled' | 'callback'; + required?: boolean; + description: string; + /** + * Deprecate-first retirement of a react-tier spelling (#11284, maintainer + * ruling 2026-08-23): the react tier converges on the metadata-tier + * vocabulary. A deprecated prop stays published and accepted for the whole + * deprecation window — removal is a later card, never a side effect here, and + * lands as a {@link REACT_RETIRED_OVERLAY_PROPS} entry so the lint refuses the + * retired spelling by name. + * + * `replacedBy` names the canonical prop ON THE SAME BLOCK (a spec-schema + * prop surfaced via `dataProps`, or another overlay prop); `note` is the + * authoring guidance the lint quotes verbatim in its deprecation warning. + * + * On a `required` prop the requirement is the BINDING, not the spelling: + * `validate-react-page-props` treats the canonical `replacedBy` prop as + * satisfying it, so the new spelling is accepted without the old one. + */ + deprecated?: { + replacedBy: string; + note: string; + }; +} + +// ── ReactPropKind (type) ── +type ReactPropKind = 'data' | 'binding' | 'controlled' | 'callback'; + +// ── RecordActivityProps (const) ── +declare const RecordActivityProps: z.ZodObject<{ + types: z.ZodOptional, z.ZodString]>>>; + filterMode: z.ZodDefault>; + showFilterToggle: z.ZodDefault; + limit: z.ZodDefault; + showCompleted: z.ZodDefault; + unifiedTimeline: z.ZodDefault; + showCommentInput: z.ZodDefault; + enableMentions: z.ZodDefault; + enableReactions: z.ZodDefault; + enableThreading: z.ZodDefault; + showSubscriptionToggle: z.ZodDefault; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── RecordAlertAction (type) ── +type RecordAlertAction = z.input; + +// ── RecordAlertActionSchema (const) ── +declare const RecordAlertActionSchema: z.ZodObject<{ + actionName: z.ZodString; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + variant: z.ZodOptional>; +}, z.core.$strict>; + +// ── RecordAlertProps (const) ── +declare const RecordAlertProps: z.ZodObject<{ + severity: z.ZodOptional>; + title: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + body: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>]>>; + icon: z.ZodOptional; + action: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + variant: z.ZodOptional>; + }, z.core.$strict>>; + dismissible: z.ZodOptional; + dismissKey: z.ZodOptional; +}, z.core.$strict>; + +// ── RecordAlertProps (type) ── +type RecordAlertProps = z.input; + +// ── RecordAlertPropsParsed (type) ── +type RecordAlertPropsParsed = z.infer; + +// ── RecordChatterProps (const) ── +declare const RecordChatterProps: z.ZodObject<{ + position: z.ZodOptional>; + width: z.ZodOptional>; + collapsible: z.ZodOptional; + defaultCollapsed: z.ZodOptional; + feed: z.ZodOptional, z.ZodString]>>>; + filterMode: z.ZodDefault>; + showFilterToggle: z.ZodDefault; + limit: z.ZodDefault; + showCompleted: z.ZodDefault; + unifiedTimeline: z.ZodDefault; + showCommentInput: z.ZodDefault; + enableMentions: z.ZodDefault; + enableReactions: z.ZodDefault; + enableThreading: z.ZodDefault; + showSubscriptionToggle: z.ZodDefault; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── RecordDetailsProps (const) ── +declare const RecordDetailsProps: z.ZodObject<{ + columns: z.ZodDefault>; + layout: z.ZodOptional; + sections: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + columns: z.ZodOptional; + group: z.ZodOptional; + fields: z.ZodOptional>; + hideEmpty: z.ZodOptional; + collapsible: z.ZodOptional; + showBorder: z.ZodOptional; + defaultCollapsed: z.ZodOptional; + icon: z.ZodOptional; + description: z.ZodOptional; + headerColor: z.ZodOptional>; + }, z.core.$strict>>>; + fields: z.ZodOptional>; + hideFields: z.ZodOptional>; + inlineEdit: z.ZodOptional; + showHeader: z.ZodOptional; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── RecordHighlightsField (const) ── +declare const RecordHighlightsField: z.ZodUnion; + type: z.ZodOptional; + readonly: z.ZodOptional; +}, z.core.$strict>]>; + +// ── RecordHighlightsField (type) ── +type RecordHighlightsField = z.input; + +// ── RecordHighlightsProps (const) ── +declare const RecordHighlightsProps: z.ZodObject<{ + fields: z.ZodArray; + type: z.ZodOptional; + readonly: z.ZodOptional; + }, z.core.$strict>]>>; + layout: z.ZodDefault>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── RecordHistoryProps (const) ── +declare const RecordHistoryProps: z.ZodObject<{ + limit: z.ZodOptional; + emptyText: z.ZodOptional; + unknownUserText: z.ZodOptional; +}, z.core.$strict>; + +// ── RecordHistoryProps (type) ── +type RecordHistoryProps = z.input; + +// ── RecordPathProps (const) ── +declare const RecordPathProps: z.ZodObject<{ + statusField: z.ZodString; + stages: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + terminal: z.ZodOptional>; + }, z.core.$strict>>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── RecordPathProps (type) ── +type RecordPathProps = z.input; + +// ── RecordQuickActionsProps (const) ── +declare const RecordQuickActionsProps: z.ZodObject<{ + actionNames: z.ZodOptional>; + requiredPermissions: z.ZodOptional>; + location: z.ZodOptional>; + align: z.ZodOptional>; + inline: z.ZodOptional; + variant: z.ZodOptional>; + size: z.ZodOptional>; +}, z.core.$strict>; + +// ── RecordQuickActionsProps (type) ── +type RecordQuickActionsProps = z.input; + +// ── RecordReferenceRailProps (const) ── +declare const RecordReferenceRailProps: z.ZodObject<{ + entries: z.ZodArray; + limit: z.ZodOptional; + displayField: z.ZodOptional; + }, z.core.$strict>>; + hideEmpty: z.ZodOptional; +}, z.core.$strict>; + +// ── RecordReferenceRailProps (type) ── +type RecordReferenceRailProps = z.input; + +// ── RecordRelatedListProps (const) ── +declare const RecordRelatedListProps: z.ZodObject<{ + objectName: z.ZodString; + relationshipField: z.ZodString; + relationshipValueField: z.ZodDefault; + columns: z.ZodOptional>; + sort: z.ZodOptional; + }, z.core.$strict>>]>>; + limit: z.ZodDefault; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + title: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + showViewAll: z.ZodDefault; + actions: z.ZodOptional>; + add: z.ZodOptional; + labelField: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + }, z.core.$strict>; + linkField: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── ReferenceRailEntry (type) ── +type ReferenceRailEntry = z.input; + +// ── ReferenceRailEntrySchema (const) ── +declare const ReferenceRailEntrySchema: z.ZodObject<{ + objectName: z.ZodString; + relationshipField: z.ZodString; + title: z.ZodOptional; + limit: z.ZodOptional; + displayField: z.ZodOptional; +}, z.core.$strict>; + +// ── Report (const) ── +declare const Report: { + readonly create: (config: Report) => ReportParsed; +}; + +// ── Report (type) ── +type Report = z.input; + +// ── ReportChart (type) ── +type ReportChart = z.input; + +// ── ReportChartParsed (type) ── +type ReportChartParsed = z.infer; + +// ── ReportChartSchema (const) ── +declare const ReportChartSchema: z.ZodObject<{ + type: z.ZodEnum<{ + column: "column"; + metric: "metric"; + table: "table"; + kpi: "kpi"; + line: "line"; + bar: "bar"; + "horizontal-bar": "horizontal-bar"; + area: "area"; + pie: "pie"; + donut: "donut"; + funnel: "funnel"; + scatter: "scatter"; + treemap: "treemap"; + sankey: "sankey"; + combo: "combo"; + gauge: "gauge"; + "solid-gauge": "solid-gauge"; + bullet: "bullet"; + radar: "radar"; + pivot: "pivot"; + }>; + title: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + subtitle: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + series: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + color: z.ZodOptional; + stack: z.ZodOptional; + yAxis: z.ZodDefault>; + variant: z.ZodOptional>>; + dashArray: z.ZodOptional; + opacity: z.ZodOptional; + }, z.core.$strict>>>; + colors: z.ZodOptional, z.ZodRecord]>>; + height: z.ZodOptional; + showLegend: z.ZodDefault; + showDataLabels: z.ZodDefault; + annotations: z.ZodOptional>; + axis: z.ZodDefault>; + value: z.ZodUnion; + endValue: z.ZodOptional>; + color: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + style: z.ZodDefault>; + }, z.core.$strict>>>; + interaction: z.ZodOptional; + brush: z.ZodDefault; + }, z.core.$strict>>; + aria: z.ZodOptional; + xAxis: z.ZodString; + yAxis: z.ZodString; +}, z.core.$strict>; + +// ── ReportNavItem (type) ── +type ReportNavItem = z.input; + +// ── ReportNavItemParsed (type) ── +type ReportNavItemParsed = z.infer; + +// ── ReportNavItemSchema (const) ── +declare const ReportNavItemSchema: z.ZodObject<{ + type: z.ZodLiteral<"report">; + reportName: z.ZodString; + id: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + icon: z.ZodOptional; + order: z.ZodOptional; + badge: z.ZodOptional>; + badgeVariant: z.ZodOptional>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + requiresObject: z.ZodOptional; + requiresService: z.ZodOptional; +}, z.core.$strict>; + +// ── ReportParsed (type) ── +type ReportParsed = z.infer; + +// ── ReportSchema (const) ── +declare const ReportSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodDefault>; + dataset: z.ZodOptional; + rows: z.ZodOptional>; + columns: z.ZodOptional>; + values: z.ZodOptional>; + runtimeFilter: z.ZodOptional>>; + order: z.ZodOptional>; + }, z.core.$strict>>>; + drilldown: z.ZodDefault; + chart: z.ZodOptional; + title: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + subtitle: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + series: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + color: z.ZodOptional; + stack: z.ZodOptional; + yAxis: z.ZodDefault>; + variant: z.ZodOptional>>; + dashArray: z.ZodOptional; + opacity: z.ZodOptional; + }, z.core.$strict>>>; + colors: z.ZodOptional, z.ZodRecord]>>; + height: z.ZodOptional; + showLegend: z.ZodDefault; + showDataLabels: z.ZodDefault; + annotations: z.ZodOptional>; + axis: z.ZodDefault>; + value: z.ZodUnion; + endValue: z.ZodOptional>; + color: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + style: z.ZodDefault>; + }, z.core.$strict>>>; + interaction: z.ZodOptional; + brush: z.ZodDefault; + }, z.core.$strict>>; + aria: z.ZodOptional; + xAxis: z.ZodString; + yAxis: z.ZodString; + }, z.core.$strict>>; + blocks: z.ZodOptional>>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── ReportSort (type) ── +type ReportSort = z.input; + +// ── ReportSortParsed (type) ── +type ReportSortParsed = z.infer; + +// ── ReportSortSchema (const) ── +declare const ReportSortSchema: z.ZodObject<{ + by: z.ZodString; + direction: z.ZodDefault>; +}, z.core.$strict>; + +// ── ReportType (const) ── +declare const ReportType: z.ZodEnum<{ + summary: "summary"; + tabular: "tabular"; + matrix: "matrix"; + joined: "joined"; +}>; + +// ── ReportType (type) ── +type ReportType = z.input; + +// ── ResolvedActionParam (interface) ── +interface ResolvedActionParam { + /** Request-body key (inline `name`, or the resolved field name). */ + name: string; + /** Effective field type; when unknown the value shape is left open. */ + type?: string; + /** Array-valued when true (or an inherently-multi type). */ + multiple?: boolean; + /** Whether a value must be present. */ + required?: boolean; + /** Option set for select-like params (membership is enforced). */ + options?: Array<{ + value: string | number; + } | string | number>; +} + +// ── ResponsiveStyles (type) ── +type ResponsiveStyles = z.input; + +// ── ResponsiveStylesSchema (const) ── +declare const ResponsiveStylesSchema: z.ZodObject<{ + large: z.ZodOptional>>; + medium: z.ZodOptional>>; + small: z.ZodOptional>>; + xsmall: z.ZodOptional>>; +}, z.core.$strict>; + +// ── RowColorConfig (type) ── +type RowColorConfig = z.input; + +// ── RowColorConfigSchema (const) ── +declare const RowColorConfigSchema: z.ZodObject<{ + field: z.ZodString; + colors: z.ZodOptional>; +}, z.core.$strict>; + +// ── RowHeight (type) ── +type RowHeight = z.input; + +// ── RowHeightSchema (const) ── +declare const RowHeightSchema: z.ZodEnum<{ + short: "short"; + medium: "medium"; + compact: "compact"; + tall: "tall"; + extra_tall: "extra_tall"; +}>; + +// ── STRING_ARM_REGISTERED_TYPES (const) ── +declare const STRING_ARM_REGISTERED_TYPES: readonly string[]; + +// ── SelectionConfig (type) ── +type SelectionConfig = z.input; + +// ── SelectionConfigParsed (type) ── +type SelectionConfigParsed = z.infer; + +// ── SelectionConfigSchema (const) ── +declare const SelectionConfigSchema: z.ZodObject<{ + type: z.ZodDefault>; +}, z.core.$strict>; + +// ── SharingConfig (type) ── +type SharingConfig = z.input; + +// ── SharingConfigParsed (type) ── +type SharingConfigParsed = z.infer; + +// ── SharingConfigSchema (const) ── +declare const SharingConfigSchema: z.ZodObject<{ + enabled: z.ZodDefault; + publicLink: z.ZodOptional; + password: z.ZodOptional; + allowedDomains: z.ZodOptional>; + expiresAt: z.ZodOptional; + allowAnonymous: z.ZodDefault>; +}, z.core.$strict>; + +// ── StyleMap (type) ── +type StyleMap = z.input; + +// ── StyleMapSchema (const) ── +declare const StyleMapSchema: z.ZodRecord>; + +// ── TimelineConfig (type) ── +type TimelineConfig = z.input; + +// ── TimelineConfigParsed (type) ── +type TimelineConfigParsed = z.infer; + +// ── TimelineConfigSchema (const) ── +declare const TimelineConfigSchema: z.ZodObject<{ + startDateField: z.ZodString; + endDateField: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; +}, z.core.$strict>; + +// ── TreeConfig (type) ── +type TreeConfig = z.input; + +// ── TreeConfigSchema (const) ── +declare const TreeConfigSchema: z.ZodObject<{ + parentField: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; +}, z.core.$strict>; + +// ── UNMAPPED_COLUMN_SUMMARIES (const) ── +declare const UNMAPPED_COLUMN_SUMMARIES: readonly ColumnSummary[]; + +// ── UrlNavItem (type) ── +type UrlNavItem = z.input; + +// ── UrlNavItemParsed (type) ── +type UrlNavItemParsed = z.infer; + +// ── UrlNavItemSchema (const) ── +declare const UrlNavItemSchema: z.ZodObject<{ + type: z.ZodLiteral<"url">; + url: z.ZodString; + target: z.ZodDefault>; + id: z.ZodString; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + icon: z.ZodOptional; + order: z.ZodOptional; + badge: z.ZodOptional>; + badgeVariant: z.ZodOptional>; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + requiresObject: z.ZodOptional; + requiresService: z.ZodOptional; +}, z.core.$strict>; + +// ── UserActionsConfig (type) ── +type UserActionsConfig = z.input; + +// ── UserActionsConfigParsed (type) ── +type UserActionsConfigParsed = z.infer; + +// ── UserActionsConfigSchema (const) ── +declare const UserActionsConfigSchema: z.ZodObject<{ + sort: z.ZodDefault; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; +}, z.core.$strict>; + +// ── UserFilterField (type) ── +type UserFilterField = z.input; + +// ── UserFilterFieldSchema (const) ── +declare const UserFilterFieldSchema: z.ZodObject<{ + field: z.ZodString; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; +}, z.core.$strict>; + +// ── UserFilters (type) ── +type UserFilters = z.input; + +// ── UserFiltersParsed (type) ── +type UserFiltersParsed = z.infer; + +// ── UserFiltersSchema (const) ── +declare const UserFiltersSchema: z.ZodObject<{ + element: z.ZodDefault>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + showAllRecords: z.ZodOptional; + allowAddTab: z.ZodOptional; +}, z.core.$strict>; + +// ── VIEW_CONSOLE_ROW_DECORATIONS (const) ── +declare const VIEW_CONSOLE_ROW_DECORATIONS: readonly ["id"]; + +// ── VIEW_FILTER_LIST_VALUE_OPERATORS (const) ── +declare const VIEW_FILTER_LIST_VALUE_OPERATORS: readonly ["in", "not_in"]; + +// ── VIEW_FILTER_OPERATORS (const) ── +declare const VIEW_FILTER_OPERATORS: readonly ["equals", "not_equals", "contains", "not_contains", "icontains", "starts_with", "ends_with", "greater_than", "less_than", "greater_than_or_equal", "less_than_or_equal", "in", "not_in", "is_empty", "is_not_empty", "is_null", "is_not_null", "before", "after", "between"]; + +// ── VIEW_FILTER_OPERATOR_ALIASES (const) ── +declare const VIEW_FILTER_OPERATOR_ALIASES: Record; + +// ── VIEW_FILTER_PAIR_VALUE_OPERATORS (const) ── +declare const VIEW_FILTER_PAIR_VALUE_OPERATORS: readonly ["between"]; + +// ── VIEW_METADATA_BRANCHES (const) ── +declare const VIEW_METADATA_BRANCHES: readonly ["viewItem", "container", "listOverlay", "formOverlay"]; + +// ── VIEW_METADATA_MEMBERS (const) ── +declare const VIEW_METADATA_MEMBERS: { + readonly viewItem: z.ZodDiscriminatedUnion<[z.ZodObject<{ + isPinned: z.ZodOptional; + sortOrder: z.ZodOptional; + columnState: z.ZodOptional>; + widths: z.ZodOptional>; + }, z.core.$strip>>; + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + object: z.ZodString; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + isDefault: z.ZodOptional; + order: z.ZodOptional; + scope: z.ZodOptional>; + owner: z.ZodOptional; + hidden: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + viewKind: z.ZodLiteral<"list">; + config: z.ZodType>; + }, z.core.$strip>, z.ZodObject<{ + isPinned: z.ZodOptional; + sortOrder: z.ZodOptional; + columnState: z.ZodOptional>; + widths: z.ZodOptional>; + }, z.core.$strip>>; + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + object: z.ZodString; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + isDefault: z.ZodOptional; + order: z.ZodOptional; + scope: z.ZodOptional>; + owner: z.ZodOptional; + hidden: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + viewKind: z.ZodLiteral<"form">; + config: z.ZodType>; + }, z.core.$strip>], "viewKind">; + readonly container: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + object: z.ZodOptional; + list: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + type: z.ZodDefault>; + sort: z.ZodOptional; + }, z.core.$strict>>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + name: z.ZodOptional; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + inlineEdit: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + delete: "delete"; + update: "update"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + url: "url"; + email: "email"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + rowActions: z.ZodOptional>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + none: "none"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + pageName: z.ZodOptional; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + responsive: z.ZodOptional; + performance: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "xlsx" | "csv")[]; + }, ("json" | "xlsx" | "csv")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + resizable: z.ZodOptional; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + compactToolbar: z.ZodOptional; + selection: z.ZodOptional>; + }, z.core.$strict>>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + }, z.core.$strict>>; + form: z.ZodOptional>; + layout: z.ZodOptional>; + columns: z.ZodOptional; + title: z.ZodOptional; + description: z.ZodOptional; + defaultTab: z.ZodOptional; + tabPosition: z.ZodOptional>; + allowSkip: z.ZodOptional; + showStepIndicator: z.ZodOptional; + splitDirection: z.ZodOptional>; + splitSize: z.ZodOptional; + splitResizable: z.ZodOptional; + drawerSide: z.ZodOptional>; + drawerWidth: z.ZodOptional; + modalSize: z.ZodOptional>; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + sections: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional; + collapsible: z.ZodDefault; + collapsed: z.ZodDefault; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibleOn: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + columns: z.ZodPipe, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>, z.ZodTransform<1 | 2 | 4 | 3, "1" | 1 | 2 | 4 | "2" | "3" | "4" | 3>>; + pane: z.ZodOptional>; + group: z.ZodOptional; + fields: z.ZodOptional>]>>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">, { + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }>>>>; + groups: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional; + collapsible: z.ZodDefault; + collapsed: z.ZodDefault; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibleOn: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + columns: z.ZodPipe, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>, z.ZodTransform<1 | 2 | 4 | 3, "1" | 1 | 2 | 4 | "2" | "3" | "4" | 3>>; + pane: z.ZodOptional>; + group: z.ZodOptional; + fields: z.ZodOptional>]>>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">, { + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }>>>>; + subforms: z.ZodOptional; + columns: z.ZodOptional>; + amountField: z.ZodOptional; + totalField: z.ZodOptional; + title: z.ZodOptional; + addLabel: z.ZodOptional; + minRows: z.ZodOptional; + maxRows: z.ZodOptional; + }, z.core.$strict>>>; + defaultSort: z.ZodOptional; + sharing: z.ZodOptional; + publicLink: z.ZodOptional; + password: z.ZodOptional; + allowedDomains: z.ZodOptional>; + expiresAt: z.ZodOptional; + allowAnonymous: z.ZodDefault>; + }, z.core.$strict>>; + submitBehavior: z.ZodOptional; + title: z.ZodOptional; + message: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"redirect">; + url: z.ZodString; + delayMs: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"continue">; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"next-record">; + }, z.core.$strict>], "kind">>; + buttons: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + cancel: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + reset: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + }, z.core.$strict>>; + defaults: z.ZodOptional>; + aria: z.ZodOptional; + }, z.core.$strict>>; + listViews: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + type: z.ZodDefault>; + sort: z.ZodOptional; + }, z.core.$strict>>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + name: z.ZodOptional; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + inlineEdit: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + delete: "delete"; + update: "update"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + url: "url"; + email: "email"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + rowActions: z.ZodOptional>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + none: "none"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + pageName: z.ZodOptional; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + responsive: z.ZodOptional; + performance: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "xlsx" | "csv")[]; + }, ("json" | "xlsx" | "csv")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + resizable: z.ZodOptional; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + compactToolbar: z.ZodOptional; + selection: z.ZodOptional>; + }, z.core.$strict>>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + formViews: z.ZodOptional>; + layout: z.ZodOptional>; + columns: z.ZodOptional; + title: z.ZodOptional; + description: z.ZodOptional; + defaultTab: z.ZodOptional; + tabPosition: z.ZodOptional>; + allowSkip: z.ZodOptional; + showStepIndicator: z.ZodOptional; + splitDirection: z.ZodOptional>; + splitSize: z.ZodOptional; + splitResizable: z.ZodOptional; + drawerSide: z.ZodOptional>; + drawerWidth: z.ZodOptional; + modalSize: z.ZodOptional>; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + sections: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional; + collapsible: z.ZodDefault; + collapsed: z.ZodDefault; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibleOn: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + columns: z.ZodPipe, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>, z.ZodTransform<1 | 2 | 4 | 3, "1" | 1 | 2 | 4 | "2" | "3" | "4" | 3>>; + pane: z.ZodOptional>; + group: z.ZodOptional; + fields: z.ZodOptional>]>>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">, { + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }>>>>; + groups: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional; + collapsible: z.ZodDefault; + collapsed: z.ZodDefault; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibleOn: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + columns: z.ZodPipe, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>, z.ZodTransform<1 | 2 | 4 | 3, "1" | 1 | 2 | 4 | "2" | "3" | "4" | 3>>; + pane: z.ZodOptional>; + group: z.ZodOptional; + fields: z.ZodOptional>]>>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">, { + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }>>>>; + subforms: z.ZodOptional; + columns: z.ZodOptional>; + amountField: z.ZodOptional; + totalField: z.ZodOptional; + title: z.ZodOptional; + addLabel: z.ZodOptional; + minRows: z.ZodOptional; + maxRows: z.ZodOptional; + }, z.core.$strict>>>; + defaultSort: z.ZodOptional; + sharing: z.ZodOptional; + publicLink: z.ZodOptional; + password: z.ZodOptional; + allowedDomains: z.ZodOptional>; + expiresAt: z.ZodOptional; + allowAnonymous: z.ZodDefault>; + }, z.core.$strict>>; + submitBehavior: z.ZodOptional; + title: z.ZodOptional; + message: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"redirect">; + url: z.ZodString; + delayMs: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"continue">; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"next-record">; + }, z.core.$strict>], "kind">>; + buttons: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + cancel: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + reset: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + }, z.core.$strict>>; + defaults: z.ZodOptional>; + aria: z.ZodOptional; + }, z.core.$strict>>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>; + readonly listOverlay: z.ZodObject<{ + type: z.ZodDefault>; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + none: "none"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + sort: z.ZodOptional; + }, z.core.$strict>>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + showAllRecords: z.ZodOptional; + allowAddTab: z.ZodOptional; + }, z.core.$strict>>; + resizable: z.ZodOptional; + compactToolbar: z.ZodOptional; + selection: z.ZodOptional>; + }, z.core.$strict>>; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + map: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + pageName: z.ZodOptional; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + rowActions: z.ZodOptional>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + delete: "delete"; + update: "update"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + url: "url"; + email: "email"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + inlineEdit: z.ZodOptional; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "xlsx" | "csv")[]; + }, ("json" | "xlsx" | "csv")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + responsive: z.ZodOptional; + performance: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + config: z.ZodOptional; + list: z.ZodOptional; + form: z.ZodOptional; + listViews: z.ZodOptional; + formViews: z.ZodOptional; + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + object: z.ZodString; + viewKind: z.ZodEnum<{ + form: "form"; + list: "list"; + }>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + columnState: z.ZodOptional>; + widths: z.ZodOptional>; + }, z.core.$strip>>; + isDefault: z.ZodOptional; + order: z.ZodOptional; + scope: z.ZodOptional>; + owner: z.ZodOptional; + hidden: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strip>; + readonly formOverlay: z.ZodObject<{ + type: z.ZodDefault>; + layout: z.ZodOptional>; + columns: z.ZodOptional; + title: z.ZodOptional; + description: z.ZodOptional; + defaultTab: z.ZodOptional; + tabPosition: z.ZodOptional>; + allowSkip: z.ZodOptional; + showStepIndicator: z.ZodOptional; + splitDirection: z.ZodOptional>; + splitSize: z.ZodOptional; + splitResizable: z.ZodOptional; + drawerSide: z.ZodOptional>; + drawerWidth: z.ZodOptional; + modalSize: z.ZodOptional>; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + sections: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional; + collapsible: z.ZodDefault; + collapsed: z.ZodDefault; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibleOn: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + columns: z.ZodPipe, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>, z.ZodTransform<1 | 2 | 4 | 3, "1" | 1 | 2 | 4 | "2" | "3" | "4" | 3>>; + pane: z.ZodOptional>; + group: z.ZodOptional; + fields: z.ZodOptional>]>>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">, { + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }>>>>; + groups: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional; + collapsible: z.ZodDefault; + collapsed: z.ZodDefault; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibleOn: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + columns: z.ZodPipe, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>, z.ZodTransform<1 | 2 | 4 | 3, "1" | 1 | 2 | 4 | "2" | "3" | "4" | 3>>; + pane: z.ZodOptional>; + group: z.ZodOptional; + fields: z.ZodOptional>]>>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">, { + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }>>>>; + subforms: z.ZodOptional; + columns: z.ZodOptional>; + amountField: z.ZodOptional; + totalField: z.ZodOptional; + title: z.ZodOptional; + addLabel: z.ZodOptional; + minRows: z.ZodOptional; + maxRows: z.ZodOptional; + }, z.core.$strict>>>; + defaultSort: z.ZodOptional; + sharing: z.ZodOptional; + publicLink: z.ZodOptional; + password: z.ZodOptional; + allowedDomains: z.ZodOptional>; + expiresAt: z.ZodOptional; + allowAnonymous: z.ZodDefault>; + }, z.core.$strict>>; + submitBehavior: z.ZodOptional; + title: z.ZodOptional; + message: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"redirect">; + url: z.ZodString; + delayMs: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"continue">; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"next-record">; + }, z.core.$strict>], "kind">>; + buttons: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + cancel: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + reset: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + }, z.core.$strict>>; + defaults: z.ZodOptional>; + aria: z.ZodOptional; + config: z.ZodOptional; + list: z.ZodOptional; + form: z.ZodOptional; + listViews: z.ZodOptional; + formViews: z.ZodOptional; + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + object: z.ZodString; + viewKind: z.ZodEnum<{ + form: "form"; + list: "list"; + }>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + columnState: z.ZodOptional>; + widths: z.ZodOptional>; + }, z.core.$strip>>; + isDefault: z.ZodOptional; + order: z.ZodOptional; + scope: z.ZodOptional>; + owner: z.ZodOptional; + hidden: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strip>; +}; + +// ── VIEW_WRITE_PATH_IDENTITY_KEYS (const) ── +declare const VIEW_WRITE_PATH_IDENTITY_KEYS: ReadonlySet; + +// ── View (type) ── +type View = z.input; + +// ── ViewData (type) ── +type ViewData = z.input; + +// ── ViewDataParsed (type) ── +type ViewDataParsed = z.infer; + +// ── ViewDataSchema (const) ── +declare const ViewDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ + provider: z.ZodLiteral<"object">; + object: z.ZodString; +}, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; +}, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; +}, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; +}, z.core.$strict>], "provider">; + +// ── ViewFilterOperator (type) ── +type ViewFilterOperator = (typeof VIEW_FILTER_OPERATORS)[number]; + +// ── ViewFilterRule (type) ── +type ViewFilterRule = z.input; + +// ── ViewFilterRuleParsed (type) ── +type ViewFilterRuleParsed = z.infer; + +// ── ViewFilterRuleSchema (const) ── +declare const ViewFilterRuleSchema: z.ZodObject<{ + field: z.ZodString; + operator: z.ZodPreprocess>; + value: z.ZodOptional>]>>; +}, z.core.$strict>; + +// ── ViewItem (type) ── +type ViewItem = z.input; + +// ── ViewItemName (type) ── +type ViewItemName = z.input; + +// ── ViewItemNameSchema (const) ── +declare const ViewItemNameSchema: z.ZodString; + +// ── ViewItemSchema (const) ── +declare const ViewItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + object: z.ZodString; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + isDefault: z.ZodOptional; + order: z.ZodOptional; + scope: z.ZodOptional>; + owner: z.ZodOptional; + hidden: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + viewKind: z.ZodLiteral<"list">; + config: z.ZodType>; +}, z.core.$strict>, z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + object: z.ZodString; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + isDefault: z.ZodOptional; + order: z.ZodOptional; + scope: z.ZodOptional>; + owner: z.ZodOptional; + hidden: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + viewKind: z.ZodLiteral<"form">; + config: z.ZodType>; +}, z.core.$strict>], "viewKind">; + +// ── ViewItemWire (type) ── +type ViewItemWire = z.input; + +// ── ViewItemWireSchema (const) ── +declare const ViewItemWireSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ + isPinned: z.ZodOptional; + sortOrder: z.ZodOptional; + columnState: z.ZodOptional>; + widths: z.ZodOptional>; + }, z.core.$strip>>; + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + object: z.ZodString; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + isDefault: z.ZodOptional; + order: z.ZodOptional; + scope: z.ZodOptional>; + owner: z.ZodOptional; + hidden: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + viewKind: z.ZodLiteral<"list">; + config: z.ZodType>; +}, z.core.$strip>, z.ZodObject<{ + isPinned: z.ZodOptional; + sortOrder: z.ZodOptional; + columnState: z.ZodOptional>; + widths: z.ZodOptional>; + }, z.core.$strip>>; + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodString; + object: z.ZodString; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + isDefault: z.ZodOptional; + order: z.ZodOptional; + scope: z.ZodOptional>; + owner: z.ZodOptional; + hidden: z.ZodOptional; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; + viewKind: z.ZodLiteral<"form">; + config: z.ZodType>; +}, z.core.$strip>], "viewKind">; + +// ── ViewKeyCollision (interface) ── +interface ViewKeyCollision { + /** The `.` name that was already registered by an earlier view. */ + requested: string; + /** The disambiguated name the colliding view was renamed to (e.g. `…_2`). */ + renamedTo: string; + /** Which family the renamed (losing) view belongs to. */ + viewKind: 'list' | 'form'; + /** The raw author-supplied key that collided. */ + key: string; +} + +// ── ViewKind (type) ── +type ViewKind = z.input; + +// ── ViewKindSchema (const) ── +declare const ViewKindSchema: z.ZodEnum<{ + form: "form"; + list: "list"; +}>; + +// ── ViewMetadata (type) ── +type ViewMetadata = z.input; + +// ── ViewMetadataBranch (type) ── +type ViewMetadataBranch = (typeof VIEW_METADATA_BRANCHES)[number]; + +// ── ViewMetadataDiagnosis (type) ── +type ViewMetadataDiagnosis = { + success: true; + branch: ViewMetadataBranch; + data: ViewMetadataParsed; +} | { + success: false; + branch: ViewMetadataBranch | null; + issues: readonly z.core.$ZodIssue[]; +}; + +// ── ViewMetadataParsed (type) ── +type ViewMetadataParsed = z.infer; + +// ── ViewMetadataSchema (const) ── +declare const ViewMetadataSchema: z.ZodPreprocess>, z.ZodType>, ...z.ZodType>[]]>>; + +// ── ViewParsed (type) ── +type ViewParsed = z.infer; + +// ── ViewSchema (const) ── +declare const ViewSchema: z.ZodObject<{ + _lock: z.ZodOptional>; + _lockReason: z.ZodOptional; + _lockSource: z.ZodOptional>; + _provenance: z.ZodOptional>; + _packageId: z.ZodOptional; + _packageVersion: z.ZodOptional; + _lockDocsUrl: z.ZodOptional; + name: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + object: z.ZodOptional; + list: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + type: z.ZodDefault>; + sort: z.ZodOptional; + }, z.core.$strict>>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + name: z.ZodOptional; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + inlineEdit: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + delete: "delete"; + update: "update"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + url: "url"; + email: "email"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + rowActions: z.ZodOptional>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + none: "none"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + pageName: z.ZodOptional; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + responsive: z.ZodOptional; + performance: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "xlsx" | "csv")[]; + }, ("json" | "xlsx" | "csv")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + resizable: z.ZodOptional; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + compactToolbar: z.ZodOptional; + selection: z.ZodOptional>; + }, z.core.$strict>>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + }, z.core.$strict>>; + form: z.ZodOptional>; + layout: z.ZodOptional>; + columns: z.ZodOptional; + title: z.ZodOptional; + description: z.ZodOptional; + defaultTab: z.ZodOptional; + tabPosition: z.ZodOptional>; + allowSkip: z.ZodOptional; + showStepIndicator: z.ZodOptional; + splitDirection: z.ZodOptional>; + splitSize: z.ZodOptional; + splitResizable: z.ZodOptional; + drawerSide: z.ZodOptional>; + drawerWidth: z.ZodOptional; + modalSize: z.ZodOptional>; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + sections: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional; + collapsible: z.ZodDefault; + collapsed: z.ZodDefault; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibleOn: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + columns: z.ZodPipe, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>, z.ZodTransform<1 | 2 | 4 | 3, "1" | 1 | 2 | 4 | "2" | "3" | "4" | 3>>; + pane: z.ZodOptional>; + group: z.ZodOptional; + fields: z.ZodOptional>]>>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">, { + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }>>>>; + groups: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional; + collapsible: z.ZodDefault; + collapsed: z.ZodDefault; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibleOn: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + columns: z.ZodPipe, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>, z.ZodTransform<1 | 2 | 4 | 3, "1" | 1 | 2 | 4 | "2" | "3" | "4" | 3>>; + pane: z.ZodOptional>; + group: z.ZodOptional; + fields: z.ZodOptional>]>>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">, { + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }>>>>; + subforms: z.ZodOptional; + columns: z.ZodOptional>; + amountField: z.ZodOptional; + totalField: z.ZodOptional; + title: z.ZodOptional; + addLabel: z.ZodOptional; + minRows: z.ZodOptional; + maxRows: z.ZodOptional; + }, z.core.$strict>>>; + defaultSort: z.ZodOptional; + sharing: z.ZodOptional; + publicLink: z.ZodOptional; + password: z.ZodOptional; + allowedDomains: z.ZodOptional>; + expiresAt: z.ZodOptional; + allowAnonymous: z.ZodDefault>; + }, z.core.$strict>>; + submitBehavior: z.ZodOptional; + title: z.ZodOptional; + message: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"redirect">; + url: z.ZodString; + delayMs: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"continue">; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"next-record">; + }, z.core.$strict>], "kind">>; + buttons: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + cancel: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + reset: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + }, z.core.$strict>>; + defaults: z.ZodOptional>; + aria: z.ZodOptional; + }, z.core.$strict>>; + listViews: z.ZodOptional; + longitudeField: z.ZodOptional; + locationField: z.ZodOptional; + titleField: z.ZodOptional; + descriptionField: z.ZodOptional; + zoom: z.ZodOptional; + center: z.ZodOptional>; + style: z.ZodOptional; + }, z.core.$strict>>; + type: z.ZodDefault>; + sort: z.ZodOptional; + }, z.core.$strict>>>; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + description: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + name: z.ZodOptional; + tree: z.ZodOptional; + labelField: z.ZodOptional; + fields: z.ZodOptional>; + defaultExpandedDepth: z.ZodOptional; + }, z.core.$strict>>; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + inlineEdit: z.ZodOptional; + emptyState: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + message: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + }, z.core.$strict>>; + bulkActions: z.ZodOptional>; + bulkActionDefs: z.ZodOptional; + icon: z.ZodOptional; + variant: z.ZodOptional>; + operation: z.ZodEnum<{ + custom: "custom"; + delete: "delete"; + update: "update"; + }>; + execution: z.ZodOptional>; + patch: z.ZodOptional>; + params: z.ZodOptional; + help: z.ZodOptional; + type: z.ZodEnum<{ + number: "number"; + boolean: "boolean"; + date: "date"; + record: "record"; + file: "file"; + code: "code"; + url: "url"; + email: "email"; + datetime: "datetime"; + time: "time"; + formula: "formula"; + text: "text"; + textarea: "textarea"; + phone: "phone"; + password: "password"; + secret: "secret"; + markdown: "markdown"; + html: "html"; + richtext: "richtext"; + currency: "currency"; + percent: "percent"; + toggle: "toggle"; + select: "select"; + multiselect: "multiselect"; + radio: "radio"; + checkboxes: "checkboxes"; + lookup: "lookup"; + master_detail: "master_detail"; + tree: "tree"; + user: "user"; + image: "image"; + avatar: "avatar"; + video: "video"; + audio: "audio"; + summary: "summary"; + autonumber: "autonumber"; + composite: "composite"; + repeater: "repeater"; + location: "location"; + address: "address"; + json: "json"; + color: "color"; + rating: "rating"; + slider: "slider"; + signature: "signature"; + qrcode: "qrcode"; + progress: "progress"; + tags: "tags"; + vector: "vector"; + }>; + required: z.ZodOptional; + default: z.ZodOptional; + options: z.ZodOptional; + }, z.core.$loose>>>; + object: z.ZodOptional; + labelField: z.ZodOptional; + multiple: z.ZodOptional; + placeholder: z.ZodOptional; + }, z.core.$loose>>>; + confirmText: z.ZodOptional; + confirmLabel: z.ZodOptional; + visible: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + requiredPermissions: z.ZodOptional>; + maxRecords: z.ZodOptional; + batchSize: z.ZodOptional; + }, z.core.$strict>>>; + rowActions: z.ZodOptional>; + columns: z.ZodUnion, z.ZodArray & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + width: z.ZodOptional; + align: z.ZodOptional>; + hidden: z.ZodOptional; + sortable: z.ZodOptional; + resizable: z.ZodOptional; + wrap: z.ZodOptional; + type: z.ZodOptional; + pinned: z.ZodOptional>; + summary: z.ZodOptional, z.ZodObject<{ + type: z.ZodEnum<{ + none: "none"; + min: "min"; + max: "max"; + count: "count"; + sum: "sum"; + avg: "avg"; + count_empty: "count_empty"; + count_filled: "count_filled"; + count_unique: "count_unique"; + percent_empty: "percent_empty"; + percent_filled: "percent_filled"; + }>; + field: z.ZodOptional; + }, z.core.$strict>]>>; + prefix: z.ZodOptional>; + }, z.core.$strict>>; + link: z.ZodOptional; + action: z.ZodOptional; + }, z.core.$strict>>]>; + navigation: z.ZodOptional>; + view: z.ZodOptional; + preventNavigation: z.ZodDefault; + openNewTab: z.ZodDefault; + size: z.ZodDefault>; + width: z.ZodOptional>; + }, z.core.$strict>>; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + pageName: z.ZodOptional; + sharing: z.ZodOptional>; + lockedBy: z.ZodOptional; + }, z.core.$strict>>; + aria: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + ariaDescribedBy: z.ZodOptional; + role: z.ZodOptional; + }, z.core.$strict>>; + tabs: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; + }, z.core.$strict>>>; + responsive: z.ZodOptional; + performance: z.ZodOptional; + striped: z.ZodOptional; + bordered: z.ZodOptional; + virtualScroll: z.ZodOptional; + userActions: z.ZodOptional; + search: z.ZodDefault; + filter: z.ZodDefault; + refresh: z.ZodDefault; + rowHeight: z.ZodDefault; + group: z.ZodDefault; + addRecordForm: z.ZodDefault; + editInline: z.ZodDefault; + hideFields: z.ZodDefault; + rowColor: z.ZodDefault; + buttons: z.ZodOptional>; + }, z.core.$strict>>; + gallery: z.ZodOptional; + coverFit: z.ZodDefault>; + cardSize: z.ZodDefault>; + titleField: z.ZodOptional; + visibleFields: z.ZodOptional>; + }, z.core.$strict>>; + chart: z.ZodOptional>; + dataset: z.ZodString; + dimensions: z.ZodOptional>; + values: z.ZodArray; + }, z.core.$strict>>; + exportOptions: z.ZodOptional>, z.ZodTransform<{ + formats: ("json" | "xlsx" | "csv")[]; + }, ("json" | "xlsx" | "csv")[]>>, z.ZodObject<{ + formats: z.ZodOptional>>; + maxRecords: z.ZodOptional; + includeHeaders: z.ZodOptional; + fileNamePrefix: z.ZodOptional; + streaming: z.ZodOptional; + }, z.core.$strict>]>>; + appearance: z.ZodOptional; + allowedVisualizations: z.ZodOptional>>; + }, z.core.$strict>>; + resizable: z.ZodOptional; + kanban: z.ZodOptional; + titleField: z.ZodOptional; + columns: z.ZodArray; + }, z.core.$strict>>; + gantt: z.ZodOptional; + dependenciesField: z.ZodOptional; + colorField: z.ZodOptional; + parentField: z.ZodOptional; + typeField: z.ZodOptional; + baselineStartField: z.ZodOptional; + baselineEndField: z.ZodOptional; + groupByField: z.ZodOptional; + resourceView: z.ZodOptional; + assigneeField: z.ZodOptional; + effortField: z.ZodOptional; + capacity: z.ZodOptional; + tooltipFields: z.ZodOptional; + }, z.core.$strict>]>>>; + quickFilters: z.ZodOptional; + options: z.ZodOptional; + label: z.ZodOptional; + }, z.core.$strict>]>>>; + }, z.core.$strict>>>; + autoZoomToFilter: z.ZodOptional; + viewMode: z.ZodOptional>; + borderColorField: z.ZodOptional; + lockField: z.ZodOptional; + objectField: z.ZodOptional; + summaryExtent: z.ZodOptional>; + defaultCollapsedDepth: z.ZodOptional; + dependencyTypes: z.ZodOptional; + timeZone: z.ZodOptional; + exportFileName: z.ZodOptional; + interactions: z.ZodOptional; + resize: z.ZodOptional; + progress: z.ZodOptional; + link: z.ZodOptional; + }, z.core.$strict>>; + timeSegments: z.ZodOptional; + bands: z.ZodArray; + label: z.ZodString; + start: z.ZodString; + end: z.ZodString; + color: z.ZodOptional; + }, z.core.$strict>>; + showMidnight: z.ZodOptional; + }, z.core.$strict>>; + }, z.core.$strict>>; + timeline: z.ZodOptional; + titleField: z.ZodString; + groupByField: z.ZodOptional; + colorField: z.ZodOptional; + scale: z.ZodDefault>; + }, z.core.$strict>>; + calendar: z.ZodOptional; + titleField: z.ZodOptional; + colorField: z.ZodOptional; + allDayField: z.ZodOptional; + }, z.core.$strict>>; + rowHeight: z.ZodOptional>; + rowColor: z.ZodOptional>; + }, z.core.$strict>>; + searchableFields: z.ZodOptional>; + filterableFields: z.ZodOptional>; + compactToolbar: z.ZodOptional; + selection: z.ZodOptional>; + }, z.core.$strict>>; + pagination: z.ZodOptional; + pageSizeOptions: z.ZodOptional>; + }, z.core.$strict>>; + grouping: z.ZodOptional>; + collapsed: z.ZodDefault; + }, z.core.$strict>>; + }, z.core.$strict>>; + hiddenFields: z.ZodOptional>; + fieldOrder: z.ZodOptional>; + conditionalFormatting: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>; + style: z.ZodRecord; + }, z.core.$strict>>>; + addRecord: z.ZodOptional; + position: z.ZodDefault>; + mode: z.ZodDefault>; + formView: z.ZodOptional; + }, z.core.$strict>>; + showRecordCount: z.ZodOptional; + allowPrinting: z.ZodOptional; + userFilters: z.ZodOptional>; + fields: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + type: z.ZodOptional>; + options: z.ZodOptional; + label: z.ZodUnion & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>; + color: z.ZodOptional; + }, z.core.$strict>>>; + showCount: z.ZodOptional; + defaultValues: z.ZodOptional>>; + }, z.core.$strict>>>; + }, z.core.$strict>>; + }, z.core.$strict>>>; + formViews: z.ZodOptional>; + layout: z.ZodOptional>; + columns: z.ZodOptional; + title: z.ZodOptional; + description: z.ZodOptional; + defaultTab: z.ZodOptional; + tabPosition: z.ZodOptional>; + allowSkip: z.ZodOptional; + showStepIndicator: z.ZodOptional; + splitDirection: z.ZodOptional>; + splitSize: z.ZodOptional; + splitResizable: z.ZodOptional; + drawerSide: z.ZodOptional>; + drawerWidth: z.ZodOptional; + modalSize: z.ZodOptional>; + data: z.ZodOptional; + object: z.ZodString; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"api">; + read: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + write: z.ZodOptional>>; + headers: z.ZodOptional>; + params: z.ZodOptional>; + body: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"value">; + items: z.ZodArray; + }, z.core.$strict>, z.ZodObject<{ + provider: z.ZodLiteral<"schema">; + schemaId: z.ZodString; + schema: z.ZodOptional>; + }, z.core.$strict>], "provider">>; + sections: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional; + collapsible: z.ZodDefault; + collapsed: z.ZodDefault; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibleOn: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + columns: z.ZodPipe, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>, z.ZodTransform<1 | 2 | 4 | 3, "1" | 1 | 2 | 4 | "2" | "3" | "4" | 3>>; + pane: z.ZodOptional>; + group: z.ZodOptional; + fields: z.ZodOptional>]>>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">, { + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }>>>>; + groups: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + description: z.ZodOptional; + collapsible: z.ZodDefault; + collapsed: z.ZodDefault; + visibleWhen: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + visibleOn: z.ZodOptional>, z.ZodObject<{ + dialect: z.ZodEnum<{ + cel: "cel"; + cron: "cron"; + template: "template"; + }>; + source: z.ZodOptional; + ast: z.ZodOptional; + meta: z.ZodOptional; + generatedBy: z.ZodOptional; + }, z.core.$strip>>; + }, z.core.$strip>]>>; + columns: z.ZodPipe, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>, z.ZodTransform<1 | 2 | 4 | 3, "1" | 1 | 2 | 4 | "2" | "3" | "4" | 3>>; + pane: z.ZodOptional>; + group: z.ZodOptional; + fields: z.ZodOptional>]>>>; + }, z.core.$strict>, z.ZodTransform & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">, { + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }>>>>; + subforms: z.ZodOptional; + columns: z.ZodOptional>; + amountField: z.ZodOptional; + totalField: z.ZodOptional; + title: z.ZodOptional; + addLabel: z.ZodOptional; + minRows: z.ZodOptional; + maxRows: z.ZodOptional; + }, z.core.$strict>>>; + defaultSort: z.ZodOptional; + sharing: z.ZodOptional; + publicLink: z.ZodOptional; + password: z.ZodOptional; + allowedDomains: z.ZodOptional>; + expiresAt: z.ZodOptional; + allowAnonymous: z.ZodDefault>; + }, z.core.$strict>>; + submitBehavior: z.ZodOptional; + title: z.ZodOptional; + message: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"redirect">; + url: z.ZodString; + delayMs: z.ZodOptional; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"continue">; + }, z.core.$strict>, z.ZodObject<{ + kind: z.ZodLiteral<"next-record">; + }, z.core.$strict>], "kind">>; + buttons: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + cancel: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + reset: z.ZodOptional; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + }, z.core.$strict>>; + }, z.core.$strict>>; + defaults: z.ZodOptional>; + aria: z.ZodOptional; + }, z.core.$strict>>>; + protection: z.ZodOptional; + reason: z.ZodString; + docsUrl: z.ZodOptional; + }, z.core.$strict>>; +}, z.core.$strict>; + +// ── ViewScope (type) ── +type ViewScope = z.input; + +// ── ViewScopeSchema (const) ── +declare const ViewScopeSchema: z.ZodEnum<{ + package: "package"; + shared: "shared"; + personal: "personal"; +}>; + +// ── ViewSharing (type) ── +type ViewSharing = z.input; + +// ── ViewSharingParsed (type) ── +type ViewSharingParsed = z.infer; + +// ── ViewSharingSchema (const) ── +declare const ViewSharingSchema: z.ZodObject<{ + type: z.ZodDefault>; + lockedBy: z.ZodOptional; +}, z.core.$strict>; + +// ── ViewTab (type) ── +type ViewTab = z.input; + +// ── ViewTabParsed (type) ── +type ViewTabParsed = z.infer; + +// ── ViewTabSchema (const) ── +declare const ViewTabSchema: z.ZodObject<{ + name: z.ZodString; + label: z.ZodOptional & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }, z.core.$ZodTypeInternals & { + key?: never; + defaultValue?: never; + }, Record & { + key?: never; + defaultValue?: never; + }>>]>>; + icon: z.ZodOptional; + view: z.ZodOptional; + filter: z.ZodOptional>; + value: z.ZodOptional>]>>; + }, z.core.$strict>>>; + order: z.ZodOptional; + pinned: z.ZodDefault; + isDefault: z.ZodDefault; + visible: z.ZodDefault; +}, z.core.$strict>; + +// ── VisualizationType (type) ── +type VisualizationType = z.input; + +// ── VisualizationTypeSchema (const) ── +declare const VisualizationTypeSchema: z.ZodEnum<{ + map: "map"; + tree: "tree"; + grid: "grid"; + gallery: "gallery"; + chart: "chart"; + kanban: "kanban"; + gantt: "gantt"; + timeline: "timeline"; + calendar: "calendar"; +}>; + +// ── WidgetActionType (type) ── +type WidgetActionType = z.input; + +// ── WidgetActionTypeSchema (const) ── +declare const WidgetActionTypeSchema: z.ZodEnum<{ + url: "url"; + form: "form"; + flow: "flow"; + script: "script"; + api: "api"; + modal: "modal"; +}>; + +// ── WidgetColorVariant (type) ── +type WidgetColorVariant = z.input; + +// ── WidgetColorVariantSchema (const) ── +declare const WidgetColorVariantSchema: z.ZodEnum<{ + success: "success"; + default: "default"; + warning: "warning"; + danger: "danger"; + blue: "blue"; + teal: "teal"; + orange: "orange"; + purple: "purple"; +}>; + +// ── actionForm (const) ── +declare const actionForm: { + type: "split" | "simple" | "modal" | "drawer" | "tabbed" | "wizard"; + layout?: "grid" | "inline" | "vertical" | "horizontal" | undefined; + columns?: number | undefined; + title?: string | undefined; + description?: string | undefined; + defaultTab?: string | undefined; + tabPosition?: "left" | "right" | "top" | "bottom" | undefined; + allowSkip?: boolean | undefined; + showStepIndicator?: boolean | undefined; + splitDirection?: "vertical" | "horizontal" | undefined; + splitSize?: number | undefined; + splitResizable?: boolean | undefined; + drawerSide?: "left" | "right" | "top" | "bottom" | undefined; + drawerWidth?: string | undefined; + modalSize?: "default" | "full" | "sm" | "lg" | "xl" | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + sections?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + groups?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + subforms?: { + childObject: string; + relationshipField?: string | undefined; + columns?: any[] | undefined; + amountField?: string | undefined; + totalField?: string | undefined; + title?: string | undefined; + addLabel?: string | undefined; + minRows?: number | undefined; + maxRows?: number | undefined; + }[] | undefined; + defaultSort?: undefined; + sharing?: { + enabled: boolean; + allowAnonymous: boolean; + publicLink?: string | undefined; + password?: string | undefined; + allowedDomains?: string[] | undefined; + expiresAt?: string | undefined; + } | undefined; + submitBehavior?: { + kind: "thank-you"; + title?: string | undefined; + message?: string | undefined; + } | { + kind: "redirect"; + url: string; + delayMs?: number | undefined; + } | { + kind: "continue"; + } | { + kind: "next-record"; + } | undefined; + buttons?: { + submit?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + cancel?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + reset?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + } | undefined; + defaults?: Record | undefined; + aria?: undefined; +}; + +// ── appForm (const) ── +declare const appForm: { + type: "split" | "simple" | "modal" | "drawer" | "tabbed" | "wizard"; + layout?: "grid" | "inline" | "vertical" | "horizontal" | undefined; + columns?: number | undefined; + title?: string | undefined; + description?: string | undefined; + defaultTab?: string | undefined; + tabPosition?: "left" | "right" | "top" | "bottom" | undefined; + allowSkip?: boolean | undefined; + showStepIndicator?: boolean | undefined; + splitDirection?: "vertical" | "horizontal" | undefined; + splitSize?: number | undefined; + splitResizable?: boolean | undefined; + drawerSide?: "left" | "right" | "top" | "bottom" | undefined; + drawerWidth?: string | undefined; + modalSize?: "default" | "full" | "sm" | "lg" | "xl" | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + sections?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + groups?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + subforms?: { + childObject: string; + relationshipField?: string | undefined; + columns?: any[] | undefined; + amountField?: string | undefined; + totalField?: string | undefined; + title?: string | undefined; + addLabel?: string | undefined; + minRows?: number | undefined; + maxRows?: number | undefined; + }[] | undefined; + defaultSort?: undefined; + sharing?: { + enabled: boolean; + allowAnonymous: boolean; + publicLink?: string | undefined; + password?: string | undefined; + allowedDomains?: string[] | undefined; + expiresAt?: string | undefined; + } | undefined; + submitBehavior?: { + kind: "thank-you"; + title?: string | undefined; + message?: string | undefined; + } | { + kind: "redirect"; + url: string; + delayMs?: number | undefined; + } | { + kind: "continue"; + } | { + kind: "next-record"; + } | undefined; + buttons?: { + submit?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + cancel?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + reset?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + } | undefined; + defaults?: Record | undefined; + aria?: undefined; +}; + +// ── chartAggregateCategoryKey (function) ── +declare function chartAggregateCategoryKey(aggregate: ChartAggregateLike | undefined): string | undefined; + +// ── chartAggregateResultKeys (function) ── +declare function chartAggregateResultKeys(aggregate: ChartAggregateLike | undefined): { + category?: string; + value?: string; + comparison?: string; +}; + +// ── chartAggregateValueKey (function) ── +declare function chartAggregateValueKey(aggregate: ChartAggregateLike | undefined): string | undefined; + +// ── checkDashboardWidgetMetricMeasureArity (function) ── +declare function checkDashboardWidgetMetricMeasureArity(widget: { + id?: unknown; + type?: unknown; + values?: unknown; +}, ctx: z.RefinementCtx): void; + +// ── checkDashboardWidgetStageOrder (function) ── +declare function checkDashboardWidgetStageOrder(widget: { + type?: unknown; + options?: { + stageOrder?: unknown; + } | null; +}, ctx: z.RefinementCtx): void; + +// ── checkGlobalFilterDateDefaultValue (function) ── +declare function checkGlobalFilterDateDefaultValue(filter: { + type?: string; + defaultValue?: unknown; +}, ctx: z.RefinementCtx): void; + +// ── checkListViewCalendarVisualization (function) ── +declare function checkListViewCalendarVisualization(view: { + appearance?: { + allowedVisualizations?: unknown; + } | null; + calendar?: unknown; +}, ctx: z.RefinementCtx): void; + +// ── checkPageSourceCompleteness (function) ── +declare function checkPageSourceCompleteness(page: { + kind?: string; + source?: unknown; +}, ctx: z.RefinementCtx): void; + +// ── columnSummaryAlias (function) ── +declare function columnSummaryAlias(fn: AggregationFunction, field: string | undefined): string; + +// ── compileListViewGroupQuery (function) ── +declare function compileListViewGroupQuery(view: ListViewGroupQuerySource, options?: CompileListViewGroupQueryOptions): EngineAggregateOptions; + +// ── compileListViewGroupRowsQuery (function) ── +declare function compileListViewGroupRowsQuery(view: Pick, groupKey: Readonly>, options?: CompileListViewGroupRowsQueryOptions): EngineQueryOptions; + +// ── dashboardForm (const) ── +declare const dashboardForm: { + type: "split" | "simple" | "modal" | "drawer" | "tabbed" | "wizard"; + layout?: "grid" | "inline" | "vertical" | "horizontal" | undefined; + columns?: number | undefined; + title?: string | undefined; + description?: string | undefined; + defaultTab?: string | undefined; + tabPosition?: "left" | "right" | "top" | "bottom" | undefined; + allowSkip?: boolean | undefined; + showStepIndicator?: boolean | undefined; + splitDirection?: "vertical" | "horizontal" | undefined; + splitSize?: number | undefined; + splitResizable?: boolean | undefined; + drawerSide?: "left" | "right" | "top" | "bottom" | undefined; + drawerWidth?: string | undefined; + modalSize?: "default" | "full" | "sm" | "lg" | "xl" | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + sections?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + groups?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + subforms?: { + childObject: string; + relationshipField?: string | undefined; + columns?: any[] | undefined; + amountField?: string | undefined; + totalField?: string | undefined; + title?: string | undefined; + addLabel?: string | undefined; + minRows?: number | undefined; + maxRows?: number | undefined; + }[] | undefined; + defaultSort?: undefined; + sharing?: { + enabled: boolean; + allowAnonymous: boolean; + publicLink?: string | undefined; + password?: string | undefined; + allowedDomains?: string[] | undefined; + expiresAt?: string | undefined; + } | undefined; + submitBehavior?: { + kind: "thank-you"; + title?: string | undefined; + message?: string | undefined; + } | { + kind: "redirect"; + url: string; + delayMs?: number | undefined; + } | { + kind: "continue"; + } | { + kind: "next-record"; + } | undefined; + buttons?: { + submit?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + cancel?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + reset?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + } | undefined; + defaults?: Record | undefined; + aria?: undefined; +}; + +// ── datasetForm (const) ── +declare const datasetForm: { + type: "split" | "simple" | "modal" | "drawer" | "tabbed" | "wizard"; + layout?: "grid" | "inline" | "vertical" | "horizontal" | undefined; + columns?: number | undefined; + title?: string | undefined; + description?: string | undefined; + defaultTab?: string | undefined; + tabPosition?: "left" | "right" | "top" | "bottom" | undefined; + allowSkip?: boolean | undefined; + showStepIndicator?: boolean | undefined; + splitDirection?: "vertical" | "horizontal" | undefined; + splitSize?: number | undefined; + splitResizable?: boolean | undefined; + drawerSide?: "left" | "right" | "top" | "bottom" | undefined; + drawerWidth?: string | undefined; + modalSize?: "default" | "full" | "sm" | "lg" | "xl" | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + sections?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + groups?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + subforms?: { + childObject: string; + relationshipField?: string | undefined; + columns?: any[] | undefined; + amountField?: string | undefined; + totalField?: string | undefined; + title?: string | undefined; + addLabel?: string | undefined; + minRows?: number | undefined; + maxRows?: number | undefined; + }[] | undefined; + defaultSort?: undefined; + sharing?: { + enabled: boolean; + allowAnonymous: boolean; + publicLink?: string | undefined; + password?: string | undefined; + allowedDomains?: string[] | undefined; + expiresAt?: string | undefined; + } | undefined; + submitBehavior?: { + kind: "thank-you"; + title?: string | undefined; + message?: string | undefined; + } | { + kind: "redirect"; + url: string; + delayMs?: number | undefined; + } | { + kind: "continue"; + } | { + kind: "next-record"; + } | undefined; + buttons?: { + submit?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + cancel?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + reset?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + } | undefined; + defaults?: Record | undefined; + aria?: undefined; +}; + +// ── defineAction (function) ── +declare function defineAction(config: z.input): ActionParsed; + +// ── defineApp (function) ── +declare function defineApp(config: z.input): AppParsed; + +// ── defineDataset (function) ── +declare function defineDataset(dataset: Dataset): Dataset; + +// ── defineForm (function) ── +declare function defineForm(config: Omit, 'data'> & { + schemaId: string; +}): FormViewParsed; + +// ── definePage (function) ── +declare function definePage(config: z.input): PageParsed; + +// ── defineReport (function) ── +declare function defineReport(config: z.input): ReportParsed; + +// ── defineView (function) ── +declare function defineView(config: z.input): ViewParsed; + +// ── defineViewItem (function) ── +declare function defineViewItem(config: z.input): ViewItem; + +// ── deriveColumnSummary (function) ── +declare function deriveColumnSummary(row: ListViewGroupHeaderRow, summary: ColumnSummary | ColumnSummaryConfig, field: string): number | null | undefined; + +// ── diagnoseViewMetadata (function) ── +declare function diagnoseViewMetadata(body: unknown): ViewMetadataDiagnosis; + +// ── expandViewContainer (function) ── +declare function expandViewContainer(object: string, container: any): ExpandedViewItem[]; + +// ── expandViewContainerWithDiagnostics (function) ── +declare function expandViewContainerWithDiagnostics(object: string, container: any): ExpandViewResult; + +// ── expressionBindableTextKeysFor (function) ── +declare function expressionBindableTextKeysFor(componentType: string): readonly ExpressionBindableTextKey[]; + +// ── hasReservedComponentNamespace (function) ── +declare function hasReservedComponentNamespace(type: string): boolean; + +// ── isActionParamValuePresent (function) ── +declare function isActionParamValuePresent(v: unknown): boolean; + +// ── isAggregatedViewContainer (function) ── +declare function isAggregatedViewContainer(item: any): boolean; + +// ── isExpressionBindableTextKey (function) ── +declare function isExpressionBindableTextKey(key: string): key is ExpressionBindableTextKey; + +// ── isKnownComponentType (function) ── +declare function isKnownComponentType(type: string): boolean; + +// ── isRecordContextBlockType (function) ── +declare function isRecordContextBlockType(type: string): boolean; + +// ── isViewContainerShaped (function) ── +declare function isViewContainerShaped(item: unknown): boolean; + +// ── listViewGroupKeyPredicate (function) ── +declare function listViewGroupKeyPredicate(grouping: GroupingConfig, groupKey: Readonly>): FilterCondition[]; + +// ── normalizeFilterOperator (function) ── +declare function normalizeFilterOperator(op: unknown): string; + +// ── normalizeInlineAction (function) ── +declare function normalizeInlineAction(value: unknown): unknown; + +// ── objectNavTargetExclusivity (function) ── +declare function objectNavTargetExclusivity(item: { + filters?: unknown; + recordId?: unknown; + viewName?: unknown; + runAction?: unknown; +}, ctx: z.RefinementCtx): void; + +// ── pageForm (const) ── +declare const pageForm: { + type: "split" | "simple" | "modal" | "drawer" | "tabbed" | "wizard"; + layout?: "grid" | "inline" | "vertical" | "horizontal" | undefined; + columns?: number | undefined; + title?: string | undefined; + description?: string | undefined; + defaultTab?: string | undefined; + tabPosition?: "left" | "right" | "top" | "bottom" | undefined; + allowSkip?: boolean | undefined; + showStepIndicator?: boolean | undefined; + splitDirection?: "vertical" | "horizontal" | undefined; + splitSize?: number | undefined; + splitResizable?: boolean | undefined; + drawerSide?: "left" | "right" | "top" | "bottom" | undefined; + drawerWidth?: string | undefined; + modalSize?: "default" | "full" | "sm" | "lg" | "xl" | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + sections?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + groups?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + subforms?: { + childObject: string; + relationshipField?: string | undefined; + columns?: any[] | undefined; + amountField?: string | undefined; + totalField?: string | undefined; + title?: string | undefined; + addLabel?: string | undefined; + minRows?: number | undefined; + maxRows?: number | undefined; + }[] | undefined; + defaultSort?: undefined; + sharing?: { + enabled: boolean; + allowAnonymous: boolean; + publicLink?: string | undefined; + password?: string | undefined; + allowedDomains?: string[] | undefined; + expiresAt?: string | undefined; + } | undefined; + submitBehavior?: { + kind: "thank-you"; + title?: string | undefined; + message?: string | undefined; + } | { + kind: "redirect"; + url: string; + delayMs?: number | undefined; + } | { + kind: "continue"; + } | { + kind: "next-record"; + } | undefined; + buttons?: { + submit?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + cancel?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + reset?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + } | undefined; + defaults?: Record | undefined; + aria?: undefined; +}; + +// ── partitionAssembledViewArtifacts (function) ── +declare function partitionAssembledViewArtifacts(items: readonly Record[]): AssembledViewPartition; + +// ── reactBlockTagFor (function) ── +declare function reactBlockTagFor(schemaType: string): string; + +// ── reportForm (const) ── +declare const reportForm: { + type: "split" | "simple" | "modal" | "drawer" | "tabbed" | "wizard"; + layout?: "grid" | "inline" | "vertical" | "horizontal" | undefined; + columns?: number | undefined; + title?: string | undefined; + description?: string | undefined; + defaultTab?: string | undefined; + tabPosition?: "left" | "right" | "top" | "bottom" | undefined; + allowSkip?: boolean | undefined; + showStepIndicator?: boolean | undefined; + splitDirection?: "vertical" | "horizontal" | undefined; + splitSize?: number | undefined; + splitResizable?: boolean | undefined; + drawerSide?: "left" | "right" | "top" | "bottom" | undefined; + drawerWidth?: string | undefined; + modalSize?: "default" | "full" | "sm" | "lg" | "xl" | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + sections?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + groups?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + subforms?: { + childObject: string; + relationshipField?: string | undefined; + columns?: any[] | undefined; + amountField?: string | undefined; + totalField?: string | undefined; + title?: string | undefined; + addLabel?: string | undefined; + minRows?: number | undefined; + maxRows?: number | undefined; + }[] | undefined; + defaultSort?: undefined; + sharing?: { + enabled: boolean; + allowAnonymous: boolean; + publicLink?: string | undefined; + password?: string | undefined; + allowedDomains?: string[] | undefined; + expiresAt?: string | undefined; + } | undefined; + submitBehavior?: { + kind: "thank-you"; + title?: string | undefined; + message?: string | undefined; + } | { + kind: "redirect"; + url: string; + delayMs?: number | undefined; + } | { + kind: "continue"; + } | { + kind: "next-record"; + } | undefined; + buttons?: { + submit?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + cancel?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + reset?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + } | undefined; + defaults?: Record | undefined; + aria?: undefined; +}; + +// ── reportSelectionOrder (function) ── +declare function reportSelectionOrder(order?: Array<{ + by: string; + direction?: 'asc' | 'desc'; +}>): Record | undefined; + +// ── resolveI18nLabel (function) ── +declare function resolveI18nLabel(label: I18nLabel | undefined, locale: string | undefined): string | undefined; + +// ── selectViewMetadataBranch (function) ── +declare function selectViewMetadataBranch(body: unknown): ViewMetadataBranch | null; + +// ── stripViewConsoleDecorations (function) ── +declare function stripViewConsoleDecorations(body: unknown): unknown; + +// ── validateActionParams (function) ── +declare function validateActionParams(resolved: ResolvedActionParam[], bag: Record, opts?: { + builtinKeys?: readonly string[]; +}): ActionParamIssue[]; + +// ── viewForm (const) ── +declare const viewForm: { + type: "split" | "simple" | "modal" | "drawer" | "tabbed" | "wizard"; + layout?: "grid" | "inline" | "vertical" | "horizontal" | undefined; + columns?: number | undefined; + title?: string | undefined; + description?: string | undefined; + defaultTab?: string | undefined; + tabPosition?: "left" | "right" | "top" | "bottom" | undefined; + allowSkip?: boolean | undefined; + showStepIndicator?: boolean | undefined; + splitDirection?: "vertical" | "horizontal" | undefined; + splitSize?: number | undefined; + splitResizable?: boolean | undefined; + drawerSide?: "left" | "right" | "top" | "bottom" | undefined; + drawerWidth?: string | undefined; + modalSize?: "default" | "full" | "sm" | "lg" | "xl" | undefined; + data?: { + provider: "object"; + object: string; + } | { + provider: "api"; + read?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + write?: { + url: string; + method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH"; + headers?: Record | undefined; + params?: Record | undefined; + body?: unknown; + } | undefined; + } | { + provider: "value"; + items: unknown[]; + } | { + provider: "schema"; + schemaId: string; + schema?: Record | undefined; + } | undefined; + sections?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + groups?: Omit<{ + collapsible: boolean; + collapsed: boolean; + columns: 1 | 2 | 4 | 3; + name?: string | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + description?: string | undefined; + visibleWhen?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + visibleOn?: { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | { + dialect: "cel" | "cron" | "template"; + source?: string | undefined; + ast?: unknown; + meta?: { + rationale?: string | undefined; + generatedBy?: string | undefined; + } | undefined; + } | undefined; + pane?: "primary" | "secondary" | undefined; + group?: string | undefined; + fields?: (string | FormField)[] | undefined; + }, "visibleOn" | "visibility">[] | undefined; + subforms?: { + childObject: string; + relationshipField?: string | undefined; + columns?: any[] | undefined; + amountField?: string | undefined; + totalField?: string | undefined; + title?: string | undefined; + addLabel?: string | undefined; + minRows?: number | undefined; + maxRows?: number | undefined; + }[] | undefined; + defaultSort?: undefined; + sharing?: { + enabled: boolean; + allowAnonymous: boolean; + publicLink?: string | undefined; + password?: string | undefined; + allowedDomains?: string[] | undefined; + expiresAt?: string | undefined; + } | undefined; + submitBehavior?: { + kind: "thank-you"; + title?: string | undefined; + message?: string | undefined; + } | { + kind: "redirect"; + url: string; + delayMs?: number | undefined; + } | { + kind: "continue"; + } | { + kind: "next-record"; + } | undefined; + buttons?: { + submit?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + cancel?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + reset?: { + show?: boolean | undefined; + label?: string | (Record & { + key?: never; + defaultValue?: never; + }) | undefined; + } | undefined; + } | undefined; + defaults?: Record | undefined; + aria?: undefined; +}; diff --git a/packages/spec/package.json b/packages/spec/package.json index 180e392f774..9753fce543b 100644 --- a/packages/spec/package.json +++ b/packages/spec/package.json @@ -262,6 +262,8 @@ "gen:sbom": "tsx scripts/generate-sbom.ts", "gen:api-surface": "tsx scripts/build-api-surface.ts", "check:api-surface": "tsx scripts/build-api-surface.ts --check", + "gen:api-surface-declarations": "tsx scripts/build-api-surface-declarations.ts", + "check:api-surface-declarations": "tsx scripts/build-api-surface-declarations.ts --check", "gen:export-origins": "tsx scripts/build-export-origins.ts", "check:export-origins": "tsx scripts/build-export-origins.ts --self-test && tsx scripts/build-export-origins.ts --check", "gen:declaration-map": "tsx scripts/build-declaration-map.ts", diff --git a/packages/spec/scripts/build-api-surface-declarations.ts b/packages/spec/scripts/build-api-surface-declarations.ts new file mode 100644 index 00000000000..4a6b44f0d46 --- /dev/null +++ b/packages/spec/scripts/build-api-surface-declarations.ts @@ -0,0 +1,444 @@ +// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license. + +/** + * build-api-surface-declarations.ts — the SHAPE half of the spec's public-API + * pin: the readable `.d.ts` declaration TEXT of every export, per entry point + * (`api-surface-declarations/.txt`), generated. + * + * ## Why this artifact exists + * + * `api-surface/.json` pins every export by `name (kind)`. A signature + * change, a renamed interface field and a dropped union member move NEITHER the + * name NOR the kind, so for all but a handful of exports that pin cannot fail on + * a breaking shape change to a ratified public type — measured on this tree at + * 5336 pinned `name (kind)` rows against 27 exports carrying a shape pin (the + * retired `api-surface-signatures.json` hashes, 0.5%). This file is the other + * half: the declaration text itself, so each of those three changes moves a line + * here and the diff says which export moved. + * + * ## Text, deliberately, and NOT a hash + * + * A hash snapshot answers "did the shipped bytes move" with one opaque bit, and + * its known failure mode at scale is that a red one gets ACCEPTED rather than + * investigated. Text is reviewable: the diff names the export and shows the + * change, so the existing contract-review discipline — not a reviewer's patience + * with an opaque hash — is what guards against blind acceptance. That choice is + * the whole point of the artifact; ⛔ do not "compress" it back into a digest. + * + * ## The input is the PACKED `.d.ts`, reached through the `exports` map + * + * Same input as `build-api-surface.ts`: `exports[].require.types`, i.e. the + * declarations a consumer actually installs, never `src/`. Two of the manifest's + * 19 `exports` entries are asset subpaths with no declaration at all + * (`./openapi.json`, `./package.json`); they are not type entry points and are + * filtered out by the same `.d.ts` test, which is why this artifact and + * `api-surface/` both hold 17 shards and not 19. + * + * Consequence worth knowing before reading a diff: the packed `.d.ts` is a + * tsup dts ROLLUP, so a Zod schema's declaration is its fully EXPANDED + * structural type. That is what makes an inner field rename visible here — and + * it is also why four declarations on this tree exceed 20,000 lines each. The + * per-export byte cost is recorded in the PR that landed this file; the skew is + * extreme (median declaration 81 bytes, the top 20 hold ~65% of the bytes). + * + * ## What it deliberately does NOT record + * + * A declaration's leading TSDoc. `getText()` starts at the declaration, not at + * its leading trivia, so a re-worded `.describe()` or doc comment does not churn + * this artifact — documentation drift is `check:docs`'s axis. The SHAPE is this + * one's. + * + * ## Sharded, for the reason the merge queue forces + * + * One file per entry point (#5837's reason, unchanged): the GitHub merge queue + * rebuilds server-side where no custom merge driver runs, so two PRs that share + * a generated file conflict there and the second is evicted. Two PRs touching + * different entry points touch disjoint files. The gate reads the WHOLE + * directory as one set, so deleting a shard reads as deleting its declarations. + * + * pnpm --filter @objectstack/spec gen:api-surface-declarations # write + * pnpm --filter @objectstack/spec check:api-surface-declarations # CI: fail on drift + * + * ## Why there is no `--self-test` + * + * This is a regenerate-and-compare gate, like `check:api-surface`: it derives + * its expectation from the built tree on every run rather than from a fixture, + * so it has no offline path that could pass over nothing. Its discrimination is + * proven by ablation — hand-edit a shard, watch it red, regenerate, watch it + * green — and that run belongs in the PR that changes it, not in a battery here. + * + * Reads the built dist, so it refuses a missing or stale one in BOTH modes + * (lib/dist-freshness.ts is the authority on why): against a stale dist a + * generator writes a plausible snapshot describing a build nobody made, and + * `--check` then agrees with it. + */ +import ts from 'typescript'; +import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync } from 'node:fs'; +import { basename, join, resolve } from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { inspectDistFreshness } from './lib/dist-freshness'; +import { shardNameForEntry } from './lib/sharded-artifacts'; + +/** `packages/spec/api-surface-declarations/.txt`. */ +export const DECLARATIONS_DIR_NAME = 'api-surface-declarations'; + +const PKG_DIR = resolve(fileURLToPath(new URL('.', import.meta.url)), '..'); +const DECL_DIR = resolve(PKG_DIR, DECLARATIONS_DIR_NAME); +const CHECK = process.argv.includes('--check'); +const GEN_CMD = 'pnpm --filter @objectstack/spec gen:api-surface-declarations'; + +/** + * The per-declaration marker line. + * + * It only has to be DETERMINISTIC for the verdict — the gate compares bytes, so + * a marker that collided with declaration text would still go red correctly. + * What a collision would corrupt is the ATTRIBUTION (which export moved), so the + * writer refuses to emit a declaration whose text carries this shape rather than + * letting the failure text mis-name an export. + */ +const MARKER_RE = /^\/\/ ── (.+) \((\w+)\) ──$/; +const marker = (name: string, kind: string): string => `// ── ${name} (${kind}) ──`; + +// BEFORE a single `.d.ts` is read. Order is the point: once `ts.createProgram` +// has run over a stale dist every answer below it is confidently wrong, and both +// writing the snapshot and checking against it are worse than stopping here. +const freshness = inspectDistFreshness( + PKG_DIR, + CHECK ? 'check' : 'generate', + `pnpm --filter @objectstack/spec ${CHECK ? 'check' : 'gen'}:api-surface-declarations`, +); +if (!freshness.fresh) { + console.error(freshness.message); + process.exit(1); +} + +/** Public entry points → their built CJS `.d.ts`, read from the exports map. */ +function collectEntries(): Record { + const pkg = JSON.parse(readFileSync(resolve(PKG_DIR, 'package.json'), 'utf8')); + const entries: Record = {}; + for (const [sub, val] of Object.entries(pkg.exports ?? {})) { + if (!sub.startsWith('.')) continue; + const dts = val?.require?.types ?? val?.import?.types; + if (typeof dts === 'string' && dts.endsWith('.d.ts')) entries[sub] = resolve(PKG_DIR, dts); + } + return entries; +} + +/** + * The kind of ONE declaration node, in `build-api-surface.ts`'s vocabulary. + * + * That gate asks the merged SYMBOL for every kind its flags carry, because a + * name declared as both a const and a type must be two independently removable + * rows. Here the unit is the declaration NODE — a dual-declared name has two + * nodes with two texts — so the kind comes from the node's own syntax and the + * two artifacts stay readable against each other. + */ +function kindOfDeclaration(node: ts.Node): string { + switch (node.kind) { + case ts.SyntaxKind.FunctionDeclaration: + return 'function'; + case ts.SyntaxKind.ClassDeclaration: + return 'class'; + case ts.SyntaxKind.EnumDeclaration: + return 'enum'; + case ts.SyntaxKind.InterfaceDeclaration: + return 'interface'; + case ts.SyntaxKind.TypeAliasDeclaration: + return 'type'; + case ts.SyntaxKind.VariableDeclaration: + return 'const'; + case ts.SyntaxKind.ModuleDeclaration: + return 'namespace'; + default: + return 'other'; + } +} + +/** + * The text to record for one declaration. + * + * A `VariableDeclaration`'s own text is `Name: Type` — the `declare const` + * belongs to the enclosing statement, and without it the recorded line is not a + * readable declaration. So a variable is recorded as its STATEMENT, but only + * when that statement declares exactly one name; a multi-declarator statement + * would otherwise record one shared text under several exports, which is the + * silent-overwrite shape this whole artifact exists to make loud. + */ +function declarationText(node: ts.Declaration): string { + if (ts.isVariableDeclaration(node)) { + const list = node.parent; + if (ts.isVariableDeclarationList(list) && list.declarations.length === 1 && ts.isVariableStatement(list.parent)) { + return list.parent.getText(); + } + } + return node.getText(); +} + +interface Recorded { + name: string; + kind: string; + text: string; +} + +const entries = collectEntries(); +const program = ts.createProgram(Object.values(entries), { + module: ts.ModuleKind.NodeNext, + moduleResolution: ts.ModuleResolutionKind.NodeNext, + skipLibCheck: true, + noEmit: true, +}); +const checker = program.getTypeChecker(); + +const unalias = (s: ts.Symbol): ts.Symbol => + s.getFlags() & ts.SymbolFlags.Alias ? checker.getAliasedSymbol(s) : s; + +function moduleExports(file: string, sub: string): ts.Symbol[] { + const sf = program.getSourceFile(file); + const sym = sf && checker.getSymbolAtLocation(sf); + if (!sym) throw new Error(`Could not resolve module symbol for ${sub} (${file}). Is the package built?`); + return checker.getExportsOfModule(sym); +} + +/** Every export of one entry point, as recorded declarations, deterministically ordered. */ +function recordEntry(sub: string, file: string): Recorded[] { + const out: Recorded[] = []; + for (const exported of moduleExports(file, sub)) { + const name = exported.getName(); + const resolved = unalias(exported); + const decls = resolved.declarations ?? []; + if (decls.length === 0) { + // Never a silent drop: an export with no declaration means the program + // resolved a name to nothing, which is a broken build, not an empty row. + throw new Error( + `${sub}: export \`${name}\` resolves to no declaration. The built dist is incomplete — ` + + `run \`pnpm --filter @objectstack/spec build\` and regenerate.`, + ); + } + for (const decl of decls) { + const text = declarationText(decl); + for (const line of text.split('\n')) { + if (MARKER_RE.test(line)) { + throw new Error( + `${sub}: the declaration text of \`${name}\` carries a line shaped like this ` + + `artifact's own per-declaration marker, which would mis-attribute a future diff. ` + + `Change the marker in scripts/build-api-surface-declarations.ts — ⛔ never the declaration.`, + ); + } + } + out.push({ name, kind: kindOfDeclaration(decl), text }); + } + } + // Code-unit sort (NOT localeCompare): deterministic across CI platforms. Name, + // then kind, then text — so a dual-declared name's two blocks land adjacent + // and two same-kind declarations of one name still have a total order. + return out.sort((a, b) => + a.name < b.name ? -1 + : a.name > b.name ? 1 + : a.kind < b.kind ? -1 + : a.kind > b.kind ? 1 + : a.text < b.text ? -1 + : a.text > b.text ? 1 + : 0, + ); +} + +/** + * The header every shard carries. + * + * Repeated per file on purpose, the same way the authorable-surface shards + * repeat theirs: the reader this text exists for is the one who opened a shard + * because a diff landed in it, and a pointer to a central index is one hop more + * than that reader takes. It is compared byte-for-byte, so editing it restates + * the procedure in every shard, deliberately. + */ +function header(sub: string, records: Recorded[]): string { + const names = new Set(records.map((r) => r.name)); + return [ + `# @objectstack/spec — the .d.ts DECLARATION TEXT of every export of \`${sub}\`.`, + '#', + '# The SHAPE half of the ADR-0059 public-API pin, and the readable counterpart of', + `# api-surface/${shardNameForEntry(sub)}.json's breadth half. That file pins each export by`, + '# `name (kind)`, which a signature change, a renamed interface field and a dropped', + '# union member all leave untouched. This file pins the declaration text, so each of', + '# those moves a line here. Text and NOT a hash, deliberately: a diff a reviewer can', + '# read is what makes contract review a guard rather than a rubber stamp.', + '#', + '# Verbatim from the PACKED `.d.ts` reached through this package\'s `exports` map — the', + '# declarations a consumer installs, never `src/`. A declaration\'s leading TSDoc is', + '# excluded: documentation drift is `check:docs`\'s axis, not this one.', + '#', + `# entry: ${sub}`, + `# exported names: ${names.size}`, + `# declarations: ${records.length}`, + '#', + `# GENERATED — ⛔ never hand-edited. Regenerate after a real build:`, + `# pnpm --filter @objectstack/spec build && ${GEN_CMD}`, + '# Gated by `check:api-surface-declarations`; a hand edit is a red gate, not a change.', + '', + ].join('\n'); +} + +/** Canonical bytes of one shard. */ +function shardText(sub: string, records: Recorded[]): string { + const blocks = records.map((r) => `${marker(r.name, r.kind)}\n${r.text}\n`); + return `${header(sub, records)}\n${blocks.join('\n')}`; +} + +/** + * Attribute a shard's bytes back to per-declaration blocks. + * + * Only the failure TEXT depends on this; the verdict is the byte comparison + * above. A shard whose bytes do not parse on the marker grammar (the shape a + * hand edit that mangles a marker produces) reports as unattributable rather + * than as clean — never as fewer declarations than it holds. + */ +function parseShard(raw: string): Map | null { + const blocks = new Map(); + const lines = raw.split('\n'); + let key: string | null = null; + let buf: string[] = []; + for (const line of lines) { + const m = MARKER_RE.exec(line); + if (m) { + if (key !== null) blocks.set(key, buf.join('\n').trim()); + key = `${m[1]} (${m[2]})`; + buf = []; + continue; + } + if (key !== null) buf.push(line); + } + if (key !== null) blocks.set(key, buf.join('\n').trim()); + return blocks.size > 0 ? blocks : null; +} + +/** Shard basenames present in `dir`, sorted, without the `.txt` suffix. */ +function listShards(dir: string): string[] { + if (!existsSync(dir)) return []; + const names: string[] = []; + for (const entry of readdirSync(dir, { withFileTypes: true })) { + if (!entry.isFile() || !entry.name.endsWith('.txt')) { + throw new Error( + `${basename(dir)}/ holds "${entry.name}", which is not a .txt shard. This directory ` + + `is generator-owned: every file in it is written by \`${GEN_CMD}\` and pruned when its ` + + `entry point disappears.`, + ); + } + names.push(entry.name.slice(0, -'.txt'.length)); + } + return names.sort(); +} + +const shards = new Map(); +const recordsByShard = new Map(); +for (const [sub, file] of Object.entries(entries)) { + const records = recordEntry(sub, file); + const name = shardNameForEntry(sub); + if (shards.has(name)) throw new Error(`two entry points both shard to ${name}.txt: ${sub}`); + recordsByShard.set(name, records); + shards.set(name, shardText(sub, records)); +} + +const totalDeclarations = [...recordsByShard.values()].reduce((n, r) => n + r.length, 0); +const totalBytes = [...shards.values()].reduce((n, t) => n + Buffer.byteLength(t, 'utf8'), 0); + +if (!CHECK) { + mkdirSync(DECL_DIR, { recursive: true }); + const written: string[] = []; + for (const [name, text] of [...shards].sort(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0))) { + const file = join(DECL_DIR, `${name}.txt`); + // An untouched shard is NOT rewritten: its mtime is as load-bearing as its + // bytes for every staleness comparison downstream. + if (existsSync(file) && readFileSync(file, 'utf8') === text) continue; + writeFileSync(file, text); + written.push(name); + } + const removed: string[] = []; + for (const name of listShards(DECL_DIR)) { + if (shards.has(name)) continue; + rmSync(join(DECL_DIR, `${name}.txt`)); + removed.push(name); + } + console.log( + `Wrote ${DECLARATIONS_DIR_NAME}/ (${shards.size} entry points, ${totalDeclarations} declarations, ` + + `${(totalBytes / 1048576).toFixed(2)} MiB).`, + ); + if (written.length > 0) console.log(` touched: ${written.map((n) => `${n}.txt`).join(', ')}`); + if (removed.length > 0) console.log(` removed: ${removed.map((n) => `${n}.txt`).join(', ')}`); + process.exit(0); +} + +// --check. Reads the whole shard DIRECTORY, never "the shards this run would +// write": a deleted shard drops its entry point's declarations and must read as +// a removal, exactly as deleting those lines from one big file did. +const onDisk = new Map(); +for (const name of listShards(DECL_DIR)) { + onDisk.set(name, readFileSync(join(DECL_DIR, `${name}.txt`), 'utf8')); +} +if (onDisk.size === 0) { + console.error( + `No snapshot at ${DECL_DIR}.\nRun \`${GEN_CMD}\` and commit it.`, + ); + process.exit(1); +} + +let changed = 0; +let removedDecls = 0; +let addedDecls = 0; +const staleShards: string[] = []; +const orphanShards = [...onDisk.keys()].filter((name) => !shards.has(name)); + +for (const [name, text] of shards) { + const prev = onDisk.get(name); + if (prev === text) continue; + staleShards.push(name); + if (prev === undefined) { + console.error(`\n ${name}.txt (missing — this entry point has no snapshot)`); + addedDecls += recordsByShard.get(name)?.length ?? 0; + continue; + } + const before = parseShard(prev); + const after = parseShard(text); + if (!before || !after) { + console.error(`\n ${name}.txt (bytes differ; could not attribute — the on-disk markers do not parse)`); + changed++; + continue; + } + console.error(`\n ${name}.txt`); + for (const key of new Set([...before.keys(), ...after.keys()])) { + const b = before.get(key); + const a = after.get(key); + if (b === a) continue; + if (b === undefined) { console.error(` + ${key}`); addedDecls++; } + else if (a === undefined) { console.error(` - ${key}`); removedDecls++; } + else { console.error(` ~ ${key} (declaration text changed)`); changed++; } + } + if ([...new Set([...before.keys(), ...after.keys()])].every((k) => before.get(k) === after.get(k))) { + console.error(' ~ header or layout only'); + changed++; + } +} +for (const name of orphanShards) { + console.error(`\n - ${name}.txt (no such entry point)`); + removedDecls += parseShard(onDisk.get(name) ?? '')?.size ?? 0; +} + +if (staleShards.length === 0 && orphanShards.length === 0) { + console.log( + `@objectstack/spec declaration text unchanged ✓ ` + + `(${shards.size} entry points, ${totalDeclarations} declarations)`, + ); + process.exit(0); +} + +console.error( + `\n@objectstack/spec declaration text changed: ${removedDecls} removed, ${addedDecls} added, ` + + `${changed} reshaped.`, +); +if (removedDecls > 0 || changed > 0) { + console.error( + 'A REMOVED or RESHAPED declaration is a breaking change for third parties: the export kept its\n' + + 'name and kind, so `check:api-surface` cannot see it. Read the diff and rule minor/major.', + ); +} +console.error(`\nIf intentional, run \`${GEN_CMD}\` and commit the updated shards.`); +process.exit(1); From c16b04b0cf1c4715deffe2eaecb763d4b6918bc4 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 18 Sep 2026 07:45:04 +0000 Subject: [PATCH 2/3] wip(spec): retire the signature hashes, wire the declaration-text gate Claude-Session: https://claude.ai/code/session_019srGWGCBBCBHqcDoRZpQRh Co-authored-by: Claude --- .../16045-spec-declaration-text-snapshots.md | 18 ++++ .gitattributes | 2 +- .github/workflows/lint.yml | 38 ++++++- docs/spec-generated-artifact-sharding.md | 7 +- packages/spec/api-surface-signatures.json | 29 ------ packages/spec/package.json | 1 + packages/spec/scripts/build-api-surface.ts | 98 ++++++------------- packages/spec/scripts/check-generated.ts | 12 +++ .../spec/scripts/lib/sharded-artifacts.ts | 4 +- scripts/pm/check-widening-tells.mjs | 30 ++++-- scripts/regen-artifacts.mjs | 18 ++-- 11 files changed, 139 insertions(+), 118 deletions(-) create mode 100644 .changeset/16045-spec-declaration-text-snapshots.md delete mode 100644 packages/spec/api-surface-signatures.json diff --git a/.changeset/16045-spec-declaration-text-snapshots.md b/.changeset/16045-spec-declaration-text-snapshots.md new file mode 100644 index 00000000000..deae247feef --- /dev/null +++ b/.changeset/16045-spec-declaration-text-snapshots.md @@ -0,0 +1,18 @@ +--- +'@objectstack/spec': minor +--- + +`api-surface-declarations/.txt` — every export of every published entry point now ships a readable pin of the `.d.ts` declaration text the packed build actually emits for it, and the 27-entry `api-surface-signatures.json` hash it subsumes is retired (#16045). + +`Clause-②: yes (widening)` + +Until now this package pinned its public surface on one axis. `api-surface/.json` records each export as `name (kind)` — 5336 rows across 17 entry points, re-derived on the landing tree — and a signature change, a renamed interface field and a dropped union member move **none** of them. The only shape pin was `api-surface-signatures.json`: 27 rows, 0.5% of the surface, and reference-level even there, because it hashed `checker.typeToString()`, which prints `z.input` without expanding it. A breaking shape change to a ratified public type could pass every witness green. + +- **Text, ⛔ not a hash, deliberately.** A digest answers "did the bytes move" with one opaque bit whose known failure at scale is that a red one gets *accepted* rather than investigated. Each shard holds one block per declaration — `// ── Name (kind) ──` followed by the declaration verbatim — so a diff names the export and shows the change, and the existing review discipline is what guards it. +- **The input is the packed `.d.ts` reached through the `exports` map**, i.e. the declarations a consumer installs, never `src/`. Two of the manifest's 19 `exports` entries are asset subpaths with no declaration (`./openapi.json`, `./package.json`), which is why this artifact and `api-surface/` both hold 17 shards. +- **What it costs, measured on the landing tree**: 12,661,943 bytes (12.08 MiB) of text across 17 shards, 237,706 lines, 1.02 MiB gzipped against this package's ~17.6 MiB compressed `dist`. The skew is extreme — the median declaration is 81 bytes and the 20 largest hold ~65% of the bytes, because a Zod schema's packed declaration is its fully expanded structural type. That expansion is exactly what makes an inner field rename visible; it also means four declarations exceed 20,000 lines each. +- **Leading TSDoc is excluded**, so a re-worded `.describe()` does not churn this artifact — documentation drift stays `check:docs`'s axis. +- **The retirement is a strict superset, proven before it landed**: all 27 factory names resolve to a declaration block in `api-surface-declarations/root.txt`, 0 missing. For those 27 declarations text and hash discriminate the same amount (both print a type reference); what is *gained* is the 5309 other declarations, including the schemas those factories point at, whose expanded blocks are where an inner-key narrowing shows up. Nothing published read the retired file: it was not in this package's `files[]`. +- **Sharded per entry point from day one**, for the reason `api-surface/` is: the merge queue rebuilds server-side where no custom merge driver runs, so two PRs sharing one generated file evict the second. + +Regenerate with `pnpm --filter @objectstack/spec build && pnpm --filter @objectstack/spec gen:api-surface-declarations`; `check:api-surface-declarations` names that command when it fails. It reads the built dist, so a missing or stale one is a hard refusal in both modes rather than a green run over nothing. diff --git a/.gitattributes b/.gitattributes index 678a8be9fc3..56d9f9bcbb4 100644 --- a/.gitattributes +++ b/.gitattributes @@ -144,10 +144,10 @@ packages/spec/authorable-surface.base.json merge=os-regen packages/spec/authorable-defaults/** merge=os-regen packages/spec/json-schema.manifest/** merge=os-regen packages/spec/api-surface/** merge=os-regen +packages/spec/api-surface-declarations/** merge=os-regen packages/spec/src/meta-spelling/meta-url-data.generated.ts merge=os-regen packages/spec/export-origins/** merge=os-regen packages/spec/declaration-map/** merge=os-regen -packages/spec/api-surface-signatures.json merge=os-regen docs/protocol-upgrade-guide.md merge=os-regen docs/audits/2026-07-unknown-key-strictness-ledger.counts.md merge=os-regen content/docs/references/** merge=os-regen diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ee6ca90e2a2..98a0d7abbec 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -5187,11 +5187,16 @@ jobs: # The authorable KEY surface — what a metadata author may write, which for # this platform is the third-party API. `api-surface/` records exported - # names and `api-surface-signatures.json` hashes factory types as TypeScript - # PRINTS them (a reference, never structurally expanded), so neither sees a - # key added to or removed from a schema. #3883 removed three authorable keys - # with every witness green; #3733 did it by accident. ADR-0059 §5 deferred - # this gate until a narrowing actually slipped both — it has. + # names only, so it does not see a key added to or removed from a schema; + # the shape sibling that used to sit beside it (`api-surface-signatures.json`, + # retired at #16045) hashed factory types as TypeScript PRINTS them — a + # reference, never structurally expanded — so it did not see one either. + # #3883 removed three authorable keys with every witness green; #3733 did it + # by accident. ADR-0059 §5 deferred this gate until a narrowing actually + # slipped both — it has. `check:api-surface-declarations` (consumer-gates + # lane) now records the declaration TEXT of every export, which DOES move on + # such a key; this gate stays the authority on the AUTHORABLE key set, which + # is a different question from the declared TypeScript shape. # # ⚠ ORDER: this step must stay ABOVE the `check:docs` step below. Its # `--check` run of scripts/build-schemas.ts writes the gitignored @@ -6113,6 +6118,29 @@ jobs: - name: Check @objectstack/spec public API surface run: pnpm --filter @objectstack/spec run check:api-surface + # [#16045] The SHAPE half of the same surface, and the step the card above + # exists for: `api-surface/` pins 5336 `name (kind)` rows and a signature + # change, a renamed interface field and a dropped union member move NONE of + # them, so 99.5% of the pinned surface could not go red on a breaking shape + # change to a ratified public type. The declaration-text snapshot records + # what the packed `.d.ts` actually declares for every export, per entry + # point. Ruled at #16045 (director batch #60, maintainer 「同意」): text and + # ⛔ NOT a hash, because a red hash gets accepted rather than investigated + # and a readable diff is what makes contract review a guard. + # + # WHY THIS LANE. It resolves each entry point through the `exports` map to + # the BUILT `.d.ts` — the declarations a consumer installs — so it is + # build-dependent and sits after the two build steps above with its family + # (`check:api-surface`, `check:published-readme-exports`). A missing or + # stale dist is a HARD REFUSAL in both of the script's modes, never a skip: + # a build-dependent gate that silently reads nothing reports "not measured" + # as if it were "measured and clean" (#4690). + # + # It adds no required context: a step in an existing lane, so no open PR + # waits on a check whose name no head has ever reported (#9325). + - name: Check @objectstack/spec declaration text (the shape half) + run: pnpm --filter @objectstack/spec run check:api-surface-declarations + # [#11350] Consumer-shaped declaration-emit pin against the BUILT root # entry (an un-annotated `export default defineStack(...)` must compile # with `declaration: true` — the TS2883 class). The pin is environment- diff --git a/docs/spec-generated-artifact-sharding.md b/docs/spec-generated-artifact-sharding.md index b13bbae0428..45c27fc976c 100644 --- a/docs/spec-generated-artifact-sharding.md +++ b/docs/spec-generated-artifact-sharding.md @@ -41,7 +41,12 @@ arithmetic composes on a merge and the judgement does not). - **`spec-changes.json`** — keyed by version, so two PRs append under different majors. Never a conflict surface worth splitting. -- **`api-surface-signatures.json`** — 1.3KB, one line per `defineX` factory. +- **`api-surface-signatures.json`** — RETIRED at #16045, and the one row here whose reason + did not survive its own artifact. It was 1.3KB, one line per `defineX` factory, so it was + never worth splitting. Its replacement is the opposite shape: `api-surface-declarations/` + holds the declaration TEXT of every export (12 MiB across 17 shards on the tree that + landed it), so it is sharded per entry point from the day it arrived, for the same + merge-queue reason `api-surface/` is. - **`authorable-surface.base.json`** — the #5235 deletion-gate anchor. Nothing but an explicit `gen:authorable-surface-base` writes it (#5358), so it was never on the churn path that made the other three the queue's serialization point. It also carries **one** diff --git a/packages/spec/api-surface-signatures.json b/packages/spec/api-surface-signatures.json deleted file mode 100644 index b2099d11828..00000000000 --- a/packages/spec/api-surface-signatures.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "defineAction": "sha256:086070ce124bd43e", - "defineAgent": "sha256:984ce178f9c76408", - "defineApp": "sha256:e899b527075f8834", - "defineBook": "sha256:07a6e25c6be3f3bd", - "defineCapability": "sha256:b080cc5480782d6c", - "defineConnector": "sha256:d1b857d07a6a14b6", - "defineCube": "sha256:b7e89a888ed6f52b", - "defineDatasource": "sha256:5f4aec18b148c77b", - "defineEmailTemplateDefinition": "sha256:c1d86a5f074ed7ff", - "defineFlow": "sha256:54b60bb867083f61", - "defineForm": "sha256:8d5aab9ae1a79219", - "defineHook": "sha256:8de712350ec58845", - "defineJob": "sha256:e0e927ebb165d48d", - "defineMapping": "sha256:c9458652cca717da", - "defineObjectExtension": "sha256:3b4099069f01adfb", - "definePage": "sha256:770a5cdb49ceba18", - "definePermissionSet": "sha256:78d05bdfde46dc0d", - "definePosition": "sha256:e11854797497e5e9", - "defineReport": "sha256:044acff031d89910", - "defineSharingRule": "sha256:239e6649b55712a4", - "defineSkill": "sha256:b928cee8cb3c2861", - "defineStack": "sha256:4d36d9603c011c44", - "defineTool": "sha256:47ab5254a14f1cf5", - "defineTranslationBundle": "sha256:2716798bbd575af2", - "defineView": "sha256:00cf9d0d2f44e843", - "defineViewItem": "sha256:7043cc1e7214215d", - "defineWebhook": "sha256:2140f9f797563709" -} diff --git a/packages/spec/package.json b/packages/spec/package.json index 9753fce543b..a8ddb4ec222 100644 --- a/packages/spec/package.json +++ b/packages/spec/package.json @@ -240,6 +240,7 @@ "src/**/*.zod.ts", "CHANGELOG.md", "api-surface", + "api-surface-declarations", "spec-changes.json" ], "scripts": { diff --git a/packages/spec/scripts/build-api-surface.ts b/packages/spec/scripts/build-api-surface.ts index 6f945962748..1c4b234e66d 100644 --- a/packages/spec/scripts/build-api-surface.ts +++ b/packages/spec/scripts/build-api-surface.ts @@ -9,7 +9,7 @@ * #2023 class) — and no in-repo consumer catches it, because they all co-evolve * with the spec in the same commit. See ADR-0059. * - * Two committed artifacts, both checked in CI: + * One committed artifact, checked in CI: * - api-surface/.json — one `name (kind)` row per DECLARED KIND of * every export of ONE public entry point * (breadth: did an export disappear?). A @@ -22,29 +22,35 @@ * because the queue rebuilds server-side with * no custom merge driver. The root entry `.` * lands in `root.json`. - * - api-surface-signatures.json — a stable hash of each `defineX` factory's - * resolved signature. Scoped to the factories to - * stay low-noise; full per-export signatures - * would churn on every internal type tweak. - * Deliberately NOT sharded: 1.3KB, one line - * per factory, never a conflict surface. * - * SCOPE — read before trusting these as a narrowing gate. Both artifacts describe - * the TYPESCRIPT surface. The hash is of `checker.typeToString()`, which prints a - * type REFERENCE (`z.input`) and does not expand it, so - * adding or removing a key inside a schema does not move it: #3883 narrowed - * `defineAction`'s input by three keys and this snapshot did not change. The - * authorable KEY surface — which for a metadata-driven platform is the real - * third-party API — is ratcheted separately by `authorable-surface/` - * (scripts/build-schemas.ts, #3855). Value-level narrowing (an enum losing a - * member) is still ungated, per ADR-0059 §5's evidence gate. + * SCOPE — read before trusting this as a narrowing gate. It is the BREADTH half + * and nothing more: a row records that an export EXISTS under a kind, so a + * signature change, a renamed interface field and a dropped union member move no + * row here at all. The SHAPE half is `api-surface-declarations/.txt` + * (scripts/build-api-surface-declarations.ts) — the declaration TEXT of every + * export, which is where each of those three becomes visible. The authorable KEY + * surface — which for a metadata-driven platform is the real third-party API — + * is ratcheted separately by `authorable-surface/` (scripts/build-schemas.ts, + * #3855). Value-level narrowing (an enum losing a member) is still ungated, per + * ADR-0059 §5's evidence gate. + * + * RETIRED HERE: `api-surface-signatures.json`, a `sha256` of each `defineX` + * factory's `checker.typeToString()`. It was the only shape pin on this surface + * and it covered 27 of 5336 declared rows. It is not merely narrow, it is + * REFERENCE-level — `typeToString` prints `z.input` without + * expanding it, so #3883 narrowed `defineAction`'s input by three keys and the + * hash did not move. The declaration-text artifact records the same 27 factory + * declarations (proven covered before the retirement) AND the schemas they point + * at, whose own expanded blocks are where such a narrowing shows up. ⛔ Do not + * reintroduce a digest here: an opaque bit that goes red gets accepted, which is + * the failure mode the text artifact exists to avoid. * * pnpm --filter @objectstack/spec gen:api-surface # regenerate + write * pnpm --filter @objectstack/spec check:api-surface # CI: fail on any drift * - * A REMOVED export or a CHANGED factory signature is breaking (bump major). An - * ADDED export still requires regenerating, so every change is deliberate. Reads - * the built dist — run after `pnpm --filter @objectstack/spec build`. + * A REMOVED export is breaking (bump major). An ADDED export still requires + * regenerating, so every change is deliberate. Reads the built dist — run after + * `pnpm --filter @objectstack/spec build`. * * That last sentence is a PRECONDITION, and since #7122 it is enforced rather * than merely documented: both modes refuse to read a dist that is missing or @@ -57,8 +63,7 @@ * tree whose sources were re-checked-out unchanged. */ import ts from 'typescript'; -import { createHash } from 'node:crypto'; -import { readFileSync, writeFileSync } from 'node:fs'; +import { readFileSync } from 'node:fs'; import { resolve } from 'node:path'; import { fileURLToPath } from 'node:url'; import { inspectDistFreshness } from './lib/dist-freshness'; @@ -71,7 +76,6 @@ import { const PKG_DIR = resolve(fileURLToPath(new URL('.', import.meta.url)), '..'); const SURFACE_DIR = resolve(PKG_DIR, API_SURFACE_DIR_NAME); -const SIG_SNAPSHOT = resolve(PKG_DIR, 'api-surface-signatures.json'); const CHECK = process.argv.includes('--check'); // BEFORE a single `.d.ts` is read (#7122). Order is the whole point: once @@ -160,36 +164,13 @@ function buildSurface(): Record { return surface; } -/** Depth: hash of each `defineX` factory's resolved signature (from root). */ -function buildSignatures(): Record { - const out: Record = {}; - for (const s of moduleExports(entries['.'], '.')) { - const name = s.getName(); - if (!/^define[A-Z]/.test(name)) continue; - const resolved = unalias(s); - if (!(resolved.getFlags() & ts.SymbolFlags.Function)) continue; - const decl = resolved.valueDeclaration ?? resolved.declarations?.[0]; - if (!decl) continue; - const type = checker.getTypeOfSymbolAtLocation(resolved, decl); - const str = checker.typeToString(type, decl, ts.TypeFormatFlags.NoTruncation | ts.TypeFormatFlags.InTypeAlias); - out[name] = 'sha256:' + createHash('sha256').update(str).digest('hex').slice(0, 16); - } - return Object.fromEntries(Object.keys(out).sort().map((k) => [k, out[k]])); -} - const surface = buildSurface(); -const signatures = buildSignatures(); const surfaceTexts = apiSurfaceShardTexts(surface); -const sigStr = JSON.stringify(signatures, null, 2) + '\n'; if (!CHECK) { const { written, removed } = writeShards(SURFACE_DIR, surfaceTexts); - writeFileSync(SIG_SNAPSHOT, sigStr); const total = Object.values(surface).reduce((n, a) => n + a.length, 0); - console.log( - `Wrote ${API_SURFACE_DIR_NAME}/ (${Object.keys(surface).length} entries, ${total} exports) ` + - `and api-surface-signatures.json (${Object.keys(signatures).length} factories).`, - ); + console.log(`Wrote ${API_SURFACE_DIR_NAME}/ (${Object.keys(surface).length} entries, ${total} exports).`); // The locality claim, printed: a PR that changed one entry point's exports // rewrites one shard, so two such PRs cannot conflict (#5837). if (written.length > 0) console.log(` touched: ${written.map((n) => `${n}.json`).join(', ')}`); @@ -197,15 +178,6 @@ if (!CHECK) { process.exit(0); } -function read(path: string, hint: string): string { - try { - return readFileSync(path, 'utf8'); - } catch { - console.error(`No snapshot at ${path}. Run \`pnpm --filter @objectstack/spec gen:api-surface\` and commit it (${hint}).`); - process.exit(1); - } -} - let breaking = 0; let additions = 0; @@ -246,24 +218,14 @@ if (staleShards.length > 0 || orphanShards.length > 0) { } } -// Depth check (factory signatures). -const prevSig: Record = JSON.parse(read(SIG_SNAPSHOT, 'depth')); -if (JSON.stringify(prevSig, null, 2) + '\n' !== sigStr) { - for (const name of new Set([...Object.keys(prevSig), ...Object.keys(signatures)])) { - if (!(name in signatures)) { console.error(`\n signature removed: ${name}`); breaking++; } - else if (!(name in prevSig)) { console.error(`\n signature added: ${name}`); additions++; } - else if (prevSig[name] !== signatures[name]) { console.error(`\n signature changed: ${name} (${prevSig[name]} → ${signatures[name]})`); breaking++; } - } -} - if (breaking === 0 && additions === 0) { - console.log('@objectstack/spec public API surface + factory signatures unchanged ✓'); + console.log('@objectstack/spec public API surface unchanged ✓'); process.exit(0); } -console.error(`\n@objectstack/spec public API changed: ${breaking} breaking (removed/narrowed), ${additions} added.`); +console.error(`\n@objectstack/spec public API changed: ${breaking} breaking (removed), ${additions} added.`); if (breaking > 0) { - console.error('A REMOVED export or a CHANGED factory signature is a BREAKING change for third parties — bump @objectstack/spec to a new major (or restore it).'); + console.error('A REMOVED export is a BREAKING change for third parties — bump @objectstack/spec to a new major (or restore it).'); } console.error('If intentional, run `pnpm --filter @objectstack/spec gen:api-surface` and commit the updated snapshots.'); process.exit(1); diff --git a/packages/spec/scripts/check-generated.ts b/packages/spec/scripts/check-generated.ts index a16bf68bffc..9c39517e86b 100644 --- a/packages/spec/scripts/check-generated.ts +++ b/packages/spec/scripts/check-generated.ts @@ -111,6 +111,18 @@ const GATED: ReadonlyArray<{ // that has cost real triage time (AGENTS.md records the trap). Flagged so the // failure explains itself instead of sending the next reader after a ghost. { check: 'check:api-surface', gen: 'gen:api-surface', artifact: 'api-surface/', readsDist: true }, + // The SHAPE half of the same surface (#16045), and the other dist-reading gate + // here. `api-surface/` records that an export EXISTS under a kind; this one + // records its declaration TEXT, which is the only one of the two a signature + // change, a renamed interface field or a dropped union member can move. Same + // `readsDist` caveat and for a sharper reason: on a stale dist it writes + // declaration text for a build nobody made, and `--check` then agrees with it. + { + check: 'check:api-surface-declarations', + gen: 'gen:api-surface-declarations', + artifact: 'api-surface-declarations/', + readsDist: true, + }, // The #4796 declaration-origin baseline. Reads `src/`, NOT the dist — so it // carries no `readsDist` caveat and needs no build. It sits next to // `check:api-surface` because they answer adjacent questions about the same diff --git a/packages/spec/scripts/lib/sharded-artifacts.ts b/packages/spec/scripts/lib/sharded-artifacts.ts index 6dffdf804e0..f938f026f24 100644 --- a/packages/spec/scripts/lib/sharded-artifacts.ts +++ b/packages/spec/scripts/lib/sharded-artifacts.ts @@ -24,7 +24,9 @@ * strictness ledger's numbers split out of the ledger's prose). * * Deliberately NOT sharded: `spec-changes.json` (keyed by version, low - * conflict) and `api-surface-signatures.json` (1.3KB). + * conflict). `api-surface-signatures.json` used to be the second name here at + * 1.3KB; it was retired at #16045 for `api-surface-declarations/`, which is + * sharded per entry point because it is 12 MiB rather than 1.3KB. * * ## What sharding must not change * diff --git a/scripts/pm/check-widening-tells.mjs b/scripts/pm/check-widening-tells.mjs index b147e0bfdcc..05c5443d418 100644 --- a/scripts/pm/check-widening-tells.mjs +++ b/scripts/pm/check-widening-tells.mjs @@ -354,11 +354,16 @@ * * 1. A PARAMETER ADDED to an ALREADY-exported function is a signature * widening, and it now goes unreported here. Nothing else in this file - * catches it: T3's listing records that an export EXISTS, and its - * signatures sibling `api-surface-signatures.json` carries 27 `define*` - * helpers (measured on this tree), none of them one of these checks. What - * is NOT lost is the function itself — a newly exported check adds its own - * row to the listing, which is the T3 row PR #17616 still reports. + * catches it: T3's listing records that an export EXISTS, and its shape + * sibling is not on this surface. ⚠️ That sibling CHANGED at #16045 and the + * silence did not: the 27-row `api-surface-signatures.json` hash was retired + * for `api-surface-declarations/`, which does record the declaration text of + * every export — but the ruling that built it assigned "is a snapshot diff a + * Clause-② signal" to the skills seat, out of that card's scope, so it is a + * declared non-surface here rather than a forgotten one (both directions + * pinned in T3's battery). What is NOT lost is the function itself — a newly + * exported check adds its own row to the listing, which is the T3 row PR + * #17616 still reports. * 2. A widening carried by the CHAINED methods rather than by the member list * — `.optional()` first among them — now declines on a closed-set-valued * key. ⛔ Not a new class: #16943 already declines it for every key whose @@ -4135,7 +4140,12 @@ export function selfTest() { t('the contract source surface is IMPORTED from SUSPECT_TIER_GLOBS, not spelled here', CONTRACT_SOURCE_SURFACES.some((s) => s.imported === 'SUSPECT_TIER_GLOBS')); t('…and it covers exactly what that table declares', SUSPECT_TIER_GLOBS.every((g) => CONTRACT_SOURCE_SURFACES.some((s) => s.glob === g.glob))); t('the published surface is DERIVED from REGEN_ARTIFACTS', PUBLISHED_SURFACES.length > 0 && PUBLISHED_SURFACES.every((s) => s.imported === 'REGEN_ARTIFACTS')); - t('…so both api-surface artifacts reach it without a literal here', surfaceCovers(PUBLISHED_SURFACES, 'packages/spec/api-surface/kernel.json') && surfaceCovers(PUBLISHED_SURFACES, 'packages/spec/api-surface-signatures.json')); + t('…so the api-surface listing reaches it without a literal here', surfaceCovers(PUBLISHED_SURFACES, 'packages/spec/api-surface/kernel.json')); + // The counterfactual half of the line above, and the reason it is worth a case: + // `api-surface-signatures.json` used to be the SECOND row this derivation picked + // up, and #16045 retired that artifact. The path falling off this surface is the + // derivation tracking REGEN_ARTIFACTS; a literal here would still be matching it. + t('⛔ …and the RETIRED signatures sibling does not — the surface follows the table, not a literal', !surfaceCovers(PUBLISHED_SURFACES, 'packages/spec/api-surface-signatures.json')); t('a spec source file is on the contract surface', surfaceCovers(CONTRACT_SOURCE_SURFACES, 'packages/spec/src/kernel/plugin.zod.ts')); t('⛔ a sibling directory that merely shares a prefix is not', !surfaceCovers(CONTRACT_SOURCE_SURFACES, 'packages/spec/src-legacy/plugin.zod.ts')); t('an api-surface file is NOT on the contract source surface — the two tells stay apart', !surfaceCovers(CONTRACT_SOURCE_SURFACES, 'packages/spec/api-surface/kernel.json')); @@ -4697,7 +4707,13 @@ export function selfTest() { battery('T3 — a new row in a published entry point'); t('a new export row is a tell', tells(FILE_API_SURFACE)[0]?.tell === 'T3'); t('…reported at its file:line', at(FILE_API_SURFACE)[0] === 'packages/spec/api-surface/kernel.json:14'); - t('the signatures sibling is on the surface too', tells({ filename: 'packages/spec/api-surface-signatures.json', patch: patchOf(4, '+ "defineWorkflow": "sha256:0000000000000000",') })[0]?.tell === 'T3'); + t('⛔ the RETIRED signatures sibling is off this surface', tells({ filename: 'packages/spec/api-surface-signatures.json', patch: patchOf(4, '+ "defineWorkflow": "sha256:0000000000000000",') }).length === 0); + // ⛔ And its replacement is deliberately NOT on it either. #16045's ruling put + // the declaration-text snapshot in `api-surface-declarations/` and assigned the + // question of whether a snapshot diff is a Clause-② signal to the skills seat, + // by name and out of that card's scope. So this is a DECLARED boundary, not an + // oversight: wiring it in is a separate decision with its own owner. + t('⛔ nor is its declaration-text replacement — a separate decision, with its own owner', tells({ filename: 'packages/spec/api-surface-declarations/kernel.txt', patch: patchOf(4, '+declare const Added: z.ZodString;') }).length === 0); t('⛔ a removed row is not a tell', tells({ filename: 'packages/spec/api-surface/kernel.json', patch: '@@ -14,1 +14,0 @@\n- "Gone (const)",' }).length === 0); t('⛔ a JSON file elsewhere is not on this surface', tells({ filename: 'packages/spec/package.json', patch: patchOf(4, '+ "./workflow": "./dist/workflow.js",') }).length === 0); t('⛔ nor a non-string structural line inside the listing', tells({ filename: 'packages/spec/api-surface/kernel.json', patch: patchOf(4, '+ ]') }).length === 0); diff --git a/scripts/regen-artifacts.mjs b/scripts/regen-artifacts.mjs index 09ac9045e23..6bf24816171 100644 --- a/scripts/regen-artifacts.mjs +++ b/scripts/regen-artifacts.mjs @@ -149,12 +149,18 @@ export const REGEN_ARTIFACTS = Object.freeze([ // `readsDist`: every path that would regenerate these refuses unless the // build is newer than the sources it claims to describe. { path: 'packages/spec/api-surface/**', gen: 'gen:api-surface', check: 'check:api-surface', readsDist: true }, - // Deliberately NOT sharded (#5837): 1.3KB, one line per `defineX` factory — - // never the conflict surface its neighbour was. - { - path: 'packages/spec/api-surface-signatures.json', - gen: 'gen:api-surface', - check: 'check:api-surface', + // The SHAPE half of the same surface (#16045): the declaration TEXT of every + // export, per entry point. It replaced `api-surface-signatures.json`, a 27-row + // `sha256` sibling that was deliberately unsharded because it was 1.3KB — this + // one is 12 MiB across 17 shards, so it is sharded for exactly the reason its + // `api-surface/` neighbour is: the merge queue rebuilds server-side with no + // custom driver, and two PRs that share a generated file evict the second. + // `readsDist` for the same reason as the row above, sharpened by size: on a + // stale dist it writes declaration text describing a build nobody made. + { + path: 'packages/spec/api-surface-declarations/**', + gen: 'gen:api-surface-declarations', + check: 'check:api-surface-declarations', readsDist: true, }, // The #4796 declaration-origin baseline: which source declaration each entry From b33898f5d8d0dc8eff732eb8ac26452506b8622e Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 18 Sep 2026 08:09:45 +0000 Subject: [PATCH 3/3] wip: declare the new gate in the published-files and export-surface registries Claude-Session: https://claude.ai/code/session_019srGWGCBBCBHqcDoRZpQRh Co-authored-by: Claude --- scripts/check-published-files.mjs | 2 ++ scripts/pm/dispatch-gates.mjs | 18 +++++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/scripts/check-published-files.mjs b/scripts/check-published-files.mjs index 3f9b1be5cb4..5946c161ba2 100644 --- a/scripts/check-published-files.mjs +++ b/scripts/check-published-files.mjs @@ -246,6 +246,8 @@ const EXTRA_ENTRIES = { 'The Zod schemas are themselves the contract (Prime Directive #1); downstream code imports them directly, so these sources are product rather than build input. Narrowed to *.zod.ts so no test or helper rides along.', 'api-surface': 'Export snapshot used by downstream compatibility checks — one file per published entry point since #5837.', + 'api-surface-declarations': + 'The same snapshot one axis deeper (#16045): the .d.ts declaration TEXT of every export, per entry point, so a compatibility check reading two published tarballs can see WHICH declared shape moved between releases and not merely which names survived — the question api-surface cannot answer. 12 MiB of text, 1.02 MiB of the tarball.', 'spec-changes.json': 'Machine-readable spec change log driving the upgrade guide.', }, }; diff --git a/scripts/pm/dispatch-gates.mjs b/scripts/pm/dispatch-gates.mjs index fae7aae37bc..d2f45eb04d0 100644 --- a/scripts/pm/dispatch-gates.mjs +++ b/scripts/pm/dispatch-gates.mjs @@ -23763,15 +23763,31 @@ function selfTest() { // filter is `packages/**` and already covered them; it gains the right // PROVENANCE, and it is what this case exists to keep honest. const CLASS_SEVENTH = 'check:dual-build-cjs-loads'; + // ⭐ THE EIGHTH, and it is the same question answered a second time by a gate + // that did not exist when the seventh was recorded. `check:api-surface-declarations` + // (#16045) walks the spec `exports` map to the packed `.d.ts` of every entry + // point and snapshots the declaration text it finds there, so that export + // surface is its subject in exactly the sense the six and the seventh are. It + // is declared here for one reason: the edge ALREADY gave it a population on + // the run that landed it, before any list named it — which is the ruling's + // question ("does the next gate of this class get covered automatically") + // answered live for a second time, by a family nobody wired in. + const CLASS_EIGHTH = 'check:api-surface-declarations'; t( `and every family the edge gives a population to really re-derives from an export surface` + ` (${[...new Set(manifestInherited.map(([c]) => c))].join(' · ') || 'none'})`, - manifestInherited.every(([c]) => EXPORT_SURFACE_SIX.includes(c) || c === CLASS_SEVENTH), + manifestInherited.every( + ([c]) => EXPORT_SURFACE_SIX.includes(c) || c === CLASS_SEVENTH || c === CLASS_EIGHTH, + ), ); t( `⭐ and a SEVENTH live gate the card never named is covered by the same edge (${CLASS_SEVENTH})`, manifestInherited.some(([c]) => c === CLASS_SEVENTH), ); + t( + `⭐ …and an EIGHTH, added after that reading was taken (${CLASS_EIGHTH})`, + manifestInherited.some(([c]) => c === CLASS_EIGHTH), + ); // Additive BY CONSTRUCTION, the claim the wiring comment makes: the manifest // edge appends AFTER own, imported and run hints, so it can only fill a hole.