wizards 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +110 -0
- package/README.md +170 -0
- package/apps/runtime/dist/agents/architect.js +453 -0
- package/apps/runtime/dist/agents/project-assistant.js +354 -0
- package/apps/runtime/dist/agents/subscription.js +206 -0
- package/apps/runtime/dist/agents/thought.js +21 -0
- package/apps/runtime/dist/agents/website.js +197 -0
- package/apps/runtime/dist/app.js +153 -0
- package/apps/runtime/dist/auth/account.js +121 -0
- package/apps/runtime/dist/auth/index.js +329 -0
- package/apps/runtime/dist/auth/keys.js +55 -0
- package/apps/runtime/dist/auth/local-ticket.js +23 -0
- package/apps/runtime/dist/authoring/example.js +73 -0
- package/apps/runtime/dist/authoring/guide.js +259 -0
- package/apps/runtime/dist/authoring/ops.js +117 -0
- package/apps/runtime/dist/cli/autostart.js +134 -0
- package/apps/runtime/dist/cli/clients.js +44 -0
- package/apps/runtime/dist/cli/environment.js +81 -0
- package/apps/runtime/dist/cli/exec.js +45 -0
- package/apps/runtime/dist/cli/home.js +74 -0
- package/apps/runtime/dist/cli/machine.js +145 -0
- package/apps/runtime/dist/cli/main.js +125 -0
- package/apps/runtime/dist/cli/setup.js +273 -0
- package/apps/runtime/dist/cli/start.js +190 -0
- package/apps/runtime/dist/cli/status.js +120 -0
- package/apps/runtime/dist/cli/ui.js +12 -0
- package/apps/runtime/dist/cli/update.js +58 -0
- package/apps/runtime/dist/connectors/builtin.js +70 -0
- package/apps/runtime/dist/connectors/external.js +400 -0
- package/apps/runtime/dist/connectors/gmail.js +107 -0
- package/apps/runtime/dist/connectors/imap.js +217 -0
- package/apps/runtime/dist/connectors/index.js +266 -0
- package/apps/runtime/dist/connectors/mail.js +72 -0
- package/apps/runtime/dist/connectors/outlook.js +90 -0
- package/apps/runtime/dist/credits/credits.js +103 -0
- package/apps/runtime/dist/credits/estimate.js +132 -0
- package/apps/runtime/dist/db/adopt.js +149 -0
- package/apps/runtime/dist/db/client.js +146 -0
- package/apps/runtime/dist/db/control-schema.js +70 -0
- package/apps/runtime/dist/db/migrations/control/0000_last_absorbing_man.sql +47 -0
- package/apps/runtime/dist/db/migrations/control/0001_gorgeous_nicolaos.sql +41 -0
- package/apps/runtime/dist/db/migrations/control/0002_secret_penance.sql +1 -0
- package/apps/runtime/dist/db/migrations/control/0003_nasty_mordo.sql +3 -0
- package/apps/runtime/dist/db/migrations/control/0004_breezy_eddie_brock.sql +6 -0
- package/apps/runtime/dist/db/migrations/control/meta/0000_snapshot.json +311 -0
- package/apps/runtime/dist/db/migrations/control/meta/0001_snapshot.json +599 -0
- package/apps/runtime/dist/db/migrations/control/meta/0002_snapshot.json +607 -0
- package/apps/runtime/dist/db/migrations/control/meta/0003_snapshot.json +311 -0
- package/apps/runtime/dist/db/migrations/control/meta/0004_snapshot.json +350 -0
- package/apps/runtime/dist/db/migrations/control/meta/_journal.json +41 -0
- package/apps/runtime/dist/db/migrations/tenant/0000_eminent_freak.sql +188 -0
- package/apps/runtime/dist/db/migrations/tenant/0001_salty_master_chief.sql +1 -0
- package/apps/runtime/dist/db/migrations/tenant/0002_cloudy_firebird.sql +1 -0
- package/apps/runtime/dist/db/migrations/tenant/0003_brown_warbound.sql +52 -0
- package/apps/runtime/dist/db/migrations/tenant/0004_romantic_nocturne.sql +6 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0000_snapshot.json +1323 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0001_snapshot.json +1330 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0002_snapshot.json +1337 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0003_snapshot.json +1605 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0004_snapshot.json +1645 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +41 -0
- package/apps/runtime/dist/db/schema.js +278 -0
- package/apps/runtime/dist/documents/parse.js +230 -0
- package/apps/runtime/dist/engenty/connections-external/build-connector.js +193 -0
- package/apps/runtime/dist/engenty/connections-external/errors.js +11 -0
- package/apps/runtime/dist/engenty/connections-external/import-service.js +270 -0
- package/apps/runtime/dist/engenty/connections-external/importer/classify.js +34 -0
- package/apps/runtime/dist/engenty/connections-external/importer/map-auth.js +185 -0
- package/apps/runtime/dist/engenty/connections-external/importer/normalize-mcp.js +63 -0
- package/apps/runtime/dist/engenty/connections-external/importer/normalize-openapi.js +130 -0
- package/apps/runtime/dist/engenty/connections-external/invoke/http-invoker.js +143 -0
- package/apps/runtime/dist/engenty/connections-external/invoke/mcp-client.js +143 -0
- package/apps/runtime/dist/engenty/connections-external/net/guarded-fetch.js +119 -0
- package/apps/runtime/dist/engenty/connections-external/oauth-dcr.js +88 -0
- package/apps/runtime/dist/engenty/connections-external/registry-client.js +336 -0
- package/apps/runtime/dist/engenty/connections-external/registry-source.js +82 -0
- package/apps/runtime/dist/engenty/connections-external/types.js +7 -0
- package/apps/runtime/dist/engenty/connections-github/connector.js +209 -0
- package/apps/runtime/dist/engenty/connections-google/connectors/calendar.js +359 -0
- package/apps/runtime/dist/engenty/connections-google/connectors/contacts.js +94 -0
- package/apps/runtime/dist/engenty/connections-google/connectors/drive.js +290 -0
- package/apps/runtime/dist/engenty/connections-google/connectors/gmail.js +567 -0
- package/apps/runtime/dist/engenty/connections-google/definitions.js +11 -0
- package/apps/runtime/dist/engenty/connections-google/shared.js +73 -0
- package/apps/runtime/dist/engenty/connections-hubspot/connector.js +140 -0
- package/apps/runtime/dist/engenty/connections-microsoft/action.js +17 -0
- package/apps/runtime/dist/engenty/connections-microsoft/graph.js +114 -0
- package/apps/runtime/dist/engenty/connections-microsoft/onedrive.js +286 -0
- package/apps/runtime/dist/engenty/connections-microsoft/outlook.js +464 -0
- package/apps/runtime/dist/engenty/connections-s3/s3.js +328 -0
- package/apps/runtime/dist/engenty/connections-sdk/files-capability.js +86 -0
- package/apps/runtime/dist/engenty/connections-sdk/oauth2.js +150 -0
- package/apps/runtime/dist/engenty/connections-sdk/registry.js +89 -0
- package/apps/runtime/dist/engenty/connections-sdk/storage-capability.js +84 -0
- package/apps/runtime/dist/engenty/connections-sdk/types.js +30 -0
- package/apps/runtime/dist/engenty/connections-slack/connector.js +360 -0
- package/apps/runtime/dist/engenty/csv-import/csv-matrix.js +178 -0
- package/apps/runtime/dist/engenty/csv-import/import-sources.js +87 -0
- package/apps/runtime/dist/engenty/csv-import/parse-csv.js +129 -0
- package/apps/runtime/dist/engenty/csv-import/serialize-csv.js +20 -0
- package/apps/runtime/dist/engenty/csv-import/types.js +1 -0
- package/apps/runtime/dist/engenty/csv-import/xlsx-workbook.js +159 -0
- package/apps/runtime/dist/engenty/doc-converter/interface.js +9 -0
- package/apps/runtime/dist/engenty/doc-converter/page-break.js +92 -0
- package/apps/runtime/dist/engenty/doc-converter/providers/local/index.js +72 -0
- package/apps/runtime/dist/engenty/document-scanner/schemas/classifier.js +30 -0
- package/apps/runtime/dist/engenty/document-scanner/schemas/index.js +4 -0
- package/apps/runtime/dist/engenty/document-scanner/schemas/invoice.js +73 -0
- package/apps/runtime/dist/engenty/document-scanner/schemas/receipt.js +63 -0
- package/apps/runtime/dist/engenty/document-scanner/schemas/shared.js +40 -0
- package/apps/runtime/dist/engenty/search-index/chunks.js +164 -0
- package/apps/runtime/dist/engenty/search-index/contracts.js +9 -0
- package/apps/runtime/dist/engenty/shims/connections-sdk.js +39 -0
- package/apps/runtime/dist/engenty/shims/plugin-sdk.js +1 -0
- package/apps/runtime/dist/engenty/shims/web-ingest.js +3 -0
- package/apps/runtime/dist/engenty/web-ingest/ssrf.js +277 -0
- package/apps/runtime/dist/engine/asks.js +60 -0
- package/apps/runtime/dist/engine/events.js +46 -0
- package/apps/runtime/dist/engine/input.js +170 -0
- package/apps/runtime/dist/engine/prepare.js +51 -0
- package/apps/runtime/dist/engine/requirements.js +124 -0
- package/apps/runtime/dist/engine/resources.js +89 -0
- package/apps/runtime/dist/engine/runner.js +560 -0
- package/apps/runtime/dist/engine/steps.js +598 -0
- package/apps/runtime/dist/engine/template.js +183 -0
- package/apps/runtime/dist/engine/types.js +3 -0
- package/apps/runtime/dist/env.js +224 -0
- package/apps/runtime/dist/files/blobs.js +22 -0
- package/apps/runtime/dist/files/objects.js +86 -0
- package/apps/runtime/dist/files/storage.js +95 -0
- package/apps/runtime/dist/geocode.js +58 -0
- package/apps/runtime/dist/harness/claude.js +138 -0
- package/apps/runtime/dist/harness/codex.js +228 -0
- package/apps/runtime/dist/harness/cursor.js +93 -0
- package/apps/runtime/dist/harness/env.js +124 -0
- package/apps/runtime/dist/harness/gemini.js +126 -0
- package/apps/runtime/dist/harness/index.js +99 -0
- package/apps/runtime/dist/harness/model.js +267 -0
- package/apps/runtime/dist/harness/prompt.js +121 -0
- package/apps/runtime/dist/harness/terminal.js +193 -0
- package/apps/runtime/dist/harness/types.js +7 -0
- package/apps/runtime/dist/index.js +76 -0
- package/apps/runtime/dist/limits.js +57 -0
- package/apps/runtime/dist/link-preview.js +59 -0
- package/apps/runtime/dist/manage.js +151 -0
- package/apps/runtime/dist/mcp/auth.js +102 -0
- package/apps/runtime/dist/mcp/bridge.js +59 -0
- package/apps/runtime/dist/mcp/handler.js +42 -0
- package/apps/runtime/dist/mcp/scopes.js +5 -0
- package/apps/runtime/dist/mcp/tools.js +401 -0
- package/apps/runtime/dist/media/ffmpeg.js +121 -0
- package/apps/runtime/dist/media/generate.js +120 -0
- package/apps/runtime/dist/media/marking.js +121 -0
- package/apps/runtime/dist/media/transcribe.js +30 -0
- package/apps/runtime/dist/model-errors.js +3 -0
- package/apps/runtime/dist/models.js +489 -0
- package/apps/runtime/dist/plugin.js +61 -0
- package/apps/runtime/dist/render/chromium.js +85 -0
- package/apps/runtime/dist/render/convert.js +161 -0
- package/apps/runtime/dist/render/downloads.js +277 -0
- package/apps/runtime/dist/render/guard.js +25 -0
- package/apps/runtime/dist/routes/api.js +74 -0
- package/apps/runtime/dist/routes/delivery.js +52 -0
- package/apps/runtime/dist/routes/internal.js +49 -0
- package/apps/runtime/dist/routes/marketplace.js +36 -0
- package/apps/runtime/dist/routes/runs.js +805 -0
- package/apps/runtime/dist/routes/studio.js +702 -0
- package/apps/runtime/dist/routes/wizard-stream.js +30 -0
- package/apps/runtime/dist/running.js +39 -0
- package/apps/runtime/dist/sandbox/agentos.js +191 -0
- package/apps/runtime/dist/sandbox/docker.js +77 -0
- package/apps/runtime/dist/sandbox/index.js +30 -0
- package/apps/runtime/dist/sandbox/types.js +1 -0
- package/apps/runtime/dist/secrets/crypto.js +28 -0
- package/apps/runtime/dist/secrets/signing.js +34 -0
- package/apps/runtime/dist/secrets/vault.js +59 -0
- package/apps/runtime/dist/services/architect.js +92 -0
- package/apps/runtime/dist/services/brand.js +20 -0
- package/apps/runtime/dist/services/cloud.js +52 -0
- package/apps/runtime/dist/services/draft-events.js +27 -0
- package/apps/runtime/dist/services/errors.js +24 -0
- package/apps/runtime/dist/services/files.js +129 -0
- package/apps/runtime/dist/services/links.js +16 -0
- package/apps/runtime/dist/services/marketplace.js +292 -0
- package/apps/runtime/dist/services/package.js +202 -0
- package/apps/runtime/dist/services/profile.js +23 -0
- package/apps/runtime/dist/services/project-files.js +266 -0
- package/apps/runtime/dist/services/project-index.js +109 -0
- package/apps/runtime/dist/services/projects.js +181 -0
- package/apps/runtime/dist/services/runs.js +224 -0
- package/apps/runtime/dist/services/shares.js +129 -0
- package/apps/runtime/dist/services/widgets.js +34 -0
- package/apps/runtime/dist/services/wizards.js +342 -0
- package/apps/runtime/dist/settings.js +16 -0
- package/apps/runtime/dist/store/index.js +279 -0
- package/apps/runtime/dist/tenants/control.js +106 -0
- package/apps/runtime/dist/tenants/tenant.js +26 -0
- package/apps/runtime/dist/tools/browser.js +380 -0
- package/apps/runtime/dist/tools/connector.js +204 -0
- package/apps/runtime/dist/tools/index.js +234 -0
- package/apps/runtime/dist/tools/mail.js +104 -0
- package/apps/runtime/dist/tools/net-guard.js +59 -0
- package/apps/runtime/dist/tools/project.js +53 -0
- package/apps/runtime/dist/tools/shared.js +42 -0
- package/apps/runtime/dist/tools/store.js +238 -0
- package/apps/runtime/dist/update.js +118 -0
- package/apps/runtime/dist/widgets/bundle.js +99 -0
- package/apps/runtime/dist/widgets/render.js +312 -0
- package/apps/runtime/dist/widgets/runtime.js +84 -0
- package/apps/runtime/dist/widgets/script.js +30 -0
- package/apps/runtime/dist/widgets/step.js +192 -0
- package/apps/web/dist/ai-labels/ai-black.svg +20 -0
- package/apps/web/dist/ai-labels/ai-generated-black.svg +31 -0
- package/apps/web/dist/ai-labels/ai-generated-white.svg +32 -0
- package/apps/web/dist/ai-labels/ai-modified-black.svg +30 -0
- package/apps/web/dist/ai-labels/ai-modified-white.svg +31 -0
- package/apps/web/dist/ai-labels/ai-white.svg +21 -0
- package/apps/web/dist/assets/ChangelogDialog-O00vEnbm.js +1 -0
- package/apps/web/dist/assets/ChatPanel-CH9ry0Hp.js +1 -0
- package/apps/web/dist/assets/CreditsDialog-DRzecwUw.js +1 -0
- package/apps/web/dist/assets/EditorPage-BRnBf02Q.js +2 -0
- package/apps/web/dist/assets/FlowPreview-DDOj8IAH.js +1 -0
- package/apps/web/dist/assets/HomePage-CAGTTG3N.js +1 -0
- package/apps/web/dist/assets/ImportWizard-0RRrAnX3.js +1 -0
- package/apps/web/dist/assets/LocalRuntime-BrP-ENHg.css +1 -0
- package/apps/web/dist/assets/LocalRuntime-C-TBYrzs.js +16 -0
- package/apps/web/dist/assets/NewWizardPage-kI90h3_9.js +2 -0
- package/apps/web/dist/assets/PublicRunner-CKRDeIVd.js +1 -0
- package/apps/web/dist/assets/RunnerView-Rc4H8wYH.js +2 -0
- package/apps/web/dist/assets/SettingsPage-CESMuZxq.js +2 -0
- package/apps/web/dist/assets/SetupPage-D1rrYU14.js +1 -0
- package/apps/web/dist/assets/SharePage-COTAmOgh.js +1 -0
- package/apps/web/dist/assets/api-BY28cjGY.js +10 -0
- package/apps/web/dist/assets/arrow-left-UpjOBfQp.js +1 -0
- package/apps/web/dist/assets/arrow-right-CucQycEy.js +1 -0
- package/apps/web/dist/assets/changelog-p3wsaDDS.js +1 -0
- package/apps/web/dist/assets/check-Bjx41xbB.js +1 -0
- package/apps/web/dist/assets/createLucideIcon-DBu2Ovxj.js +1 -0
- package/apps/web/dist/assets/definition-cy7uvY5L.js +55 -0
- package/apps/web/dist/assets/engenty-CWIFpgKq.js +1 -0
- package/apps/web/dist/assets/esm-D1OEhjTK.js +7 -0
- package/apps/web/dist/assets/external-link-CRg6DVdO.js +1 -0
- package/apps/web/dist/assets/fluffy-engenty-CJ3wCQgT.js +456 -0
- package/apps/web/dist/assets/index-CQ_q9iMO.css +1 -0
- package/apps/web/dist/assets/index-D0gxh90t.js +10 -0
- package/apps/web/dist/assets/jsx-runtime-Dk72oS4N.js +1 -0
- package/apps/web/dist/assets/meta-BbSdtTUa.js +1 -0
- package/apps/web/dist/assets/mic-CeqQ89Dj.js +1 -0
- package/apps/web/dist/assets/oss-credits-cPuZUFHD.js +1 -0
- package/apps/web/dist/assets/outputs-D6pxH6ve.js +69 -0
- package/apps/web/dist/assets/plus-HA210wXA.js +1 -0
- package/apps/web/dist/assets/preload-helper-CNEI7N0N.js +1 -0
- package/apps/web/dist/assets/qr-scanner-worker.min-CJaXo3yu.js +98 -0
- package/apps/web/dist/assets/qr-scanner.min-C_UI0gH-.js +1 -0
- package/apps/web/dist/assets/type-BzYgVWKL.js +1 -0
- package/apps/web/dist/assets/ui-Ddwl35A6.js +1 -0
- package/apps/web/dist/assets/upload-DsgLfQ3U.js +1 -0
- package/apps/web/dist/assets/video-Dk1fuTDl.js +1 -0
- package/apps/web/dist/assets/wand-sparkles-Bf97fs8T.js +1 -0
- package/apps/web/dist/embed.js +102 -0
- package/apps/web/dist/favicon.svg +1 -0
- package/apps/web/dist/icons/apple-touch-icon.png +0 -0
- package/apps/web/dist/icons/icon-192.png +0 -0
- package/apps/web/dist/icons/icon-512.png +0 -0
- package/apps/web/dist/icons/icon-maskable-512.png +0 -0
- package/apps/web/dist/index.html +46 -0
- package/apps/web/dist/install.sh +532 -0
- package/apps/web/dist/manifest.webmanifest +20 -0
- package/apps/web/dist/sw.js +15 -0
- package/bin/wizards.mjs +13 -0
- package/node_modules/@engenty-wizards/shared/dist/connectors.d.ts +77 -0
- package/node_modules/@engenty-wizards/shared/dist/connectors.js +2 -0
- package/node_modules/@engenty-wizards/shared/dist/definition.d.ts +1415 -0
- package/node_modules/@engenty-wizards/shared/dist/definition.js +762 -0
- package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/columns-format.d.ts +5 -0
- package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/columns-format.js +132 -0
- package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/columns-value.d.ts +11 -0
- package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/columns-value.js +209 -0
- package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/columns.d.ts +532 -0
- package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/columns.js +216 -0
- package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/index.d.ts +3 -0
- package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/index.js +3 -0
- package/node_modules/@engenty-wizards/shared/dist/engenty/search-index/catalog-lexical.d.ts +14 -0
- package/node_modules/@engenty-wizards/shared/dist/engenty/search-index/catalog-lexical.js +166 -0
- package/node_modules/@engenty-wizards/shared/dist/engenty/search-index/catalog-rank.d.ts +33 -0
- package/node_modules/@engenty-wizards/shared/dist/engenty/search-index/catalog-rank.js +99 -0
- package/node_modules/@engenty-wizards/shared/dist/marketplace-entry.d.ts +35 -0
- package/node_modules/@engenty-wizards/shared/dist/marketplace-entry.js +86 -0
- package/node_modules/@engenty-wizards/shared/dist/marketplace-search.d.ts +20 -0
- package/node_modules/@engenty-wizards/shared/dist/marketplace-search.js +133 -0
- package/node_modules/@engenty-wizards/shared/dist/marketplace.d.ts +298 -0
- package/node_modules/@engenty-wizards/shared/dist/marketplace.js +211 -0
- package/node_modules/@engenty-wizards/shared/dist/merge.d.ts +7 -0
- package/node_modules/@engenty-wizards/shared/dist/merge.js +40 -0
- package/node_modules/@engenty-wizards/shared/dist/projects.d.ts +74 -0
- package/node_modules/@engenty-wizards/shared/dist/projects.js +96 -0
- package/node_modules/@engenty-wizards/shared/dist/run.d.ts +219 -0
- package/node_modules/@engenty-wizards/shared/dist/run.js +1 -0
- package/node_modules/@engenty-wizards/shared/dist/store.d.ts +100 -0
- package/node_modules/@engenty-wizards/shared/dist/store.js +44 -0
- package/node_modules/@engenty-wizards/shared/dist/workspace.d.ts +16 -0
- package/node_modules/@engenty-wizards/shared/dist/workspace.js +51 -0
- package/node_modules/@engenty-wizards/shared/package.json +10 -0
- package/package.json +62 -0
- package/plugin/.claude-plugin/plugin.json +9 -0
- package/plugin/.mcp.json +8 -0
- package/plugin/commands/wizard.md +8 -0
- package/plugin/skills/build-wizard/SKILL.md +27 -0
|
@@ -0,0 +1,532 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Space-table column definitions.
|
|
3
|
+
*
|
|
4
|
+
* A table is a small database, not a CSV dump: every column has a type and a
|
|
5
|
+
* display format. Agents create the definition; row writes are validated
|
|
6
|
+
* against it.
|
|
7
|
+
*/
|
|
8
|
+
import { z } from "zod";
|
|
9
|
+
export declare const numberStyleSchema: z.ZodEnum<{
|
|
10
|
+
integer: "integer";
|
|
11
|
+
decimal: "decimal";
|
|
12
|
+
percent: "percent";
|
|
13
|
+
currency: "currency";
|
|
14
|
+
}>;
|
|
15
|
+
export type NumberStyle = z.infer<typeof numberStyleSchema>;
|
|
16
|
+
export declare const numberFormatSchema: z.ZodObject<{
|
|
17
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
18
|
+
fractionDigits: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
grouping: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
style: z.ZodEnum<{
|
|
21
|
+
integer: "integer";
|
|
22
|
+
decimal: "decimal";
|
|
23
|
+
percent: "percent";
|
|
24
|
+
currency: "currency";
|
|
25
|
+
}>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
export type NumberFormat = z.infer<typeof numberFormatSchema>;
|
|
28
|
+
export declare const dateKindSchema: z.ZodEnum<{
|
|
29
|
+
date: "date";
|
|
30
|
+
datetime: "datetime";
|
|
31
|
+
time: "time";
|
|
32
|
+
}>;
|
|
33
|
+
export type DateKind = z.infer<typeof dateKindSchema>;
|
|
34
|
+
export declare const dateStyleSchema: z.ZodEnum<{
|
|
35
|
+
short: "short";
|
|
36
|
+
medium: "medium";
|
|
37
|
+
long: "long";
|
|
38
|
+
iso: "iso";
|
|
39
|
+
}>;
|
|
40
|
+
export type DateStyle = z.infer<typeof dateStyleSchema>;
|
|
41
|
+
/** `hours` is clock time with no minutes — `14` or `14:30` both store as `14:00`. */
|
|
42
|
+
export declare const timePrecisionSchema: z.ZodEnum<{
|
|
43
|
+
hours: "hours";
|
|
44
|
+
minutes: "minutes";
|
|
45
|
+
seconds: "seconds";
|
|
46
|
+
}>;
|
|
47
|
+
export type TimePrecision = z.infer<typeof timePrecisionSchema>;
|
|
48
|
+
export declare const dateFormatSchema: z.ZodObject<{
|
|
49
|
+
dateStyle: z.ZodOptional<z.ZodEnum<{
|
|
50
|
+
short: "short";
|
|
51
|
+
medium: "medium";
|
|
52
|
+
long: "long";
|
|
53
|
+
iso: "iso";
|
|
54
|
+
}>>;
|
|
55
|
+
kind: z.ZodEnum<{
|
|
56
|
+
date: "date";
|
|
57
|
+
datetime: "datetime";
|
|
58
|
+
time: "time";
|
|
59
|
+
}>;
|
|
60
|
+
timePrecision: z.ZodOptional<z.ZodEnum<{
|
|
61
|
+
hours: "hours";
|
|
62
|
+
minutes: "minutes";
|
|
63
|
+
seconds: "seconds";
|
|
64
|
+
}>>;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
export type DateFormat = z.infer<typeof dateFormatSchema>;
|
|
67
|
+
export declare const durationUnitSchema: z.ZodEnum<{
|
|
68
|
+
hours: "hours";
|
|
69
|
+
minutes: "minutes";
|
|
70
|
+
seconds: "seconds";
|
|
71
|
+
milliseconds: "milliseconds";
|
|
72
|
+
days: "days";
|
|
73
|
+
}>;
|
|
74
|
+
export type DurationUnit = z.infer<typeof durationUnitSchema>;
|
|
75
|
+
export declare const durationDisplaySchema: z.ZodEnum<{
|
|
76
|
+
iso: "iso";
|
|
77
|
+
hours: "hours";
|
|
78
|
+
minutes: "minutes";
|
|
79
|
+
hms: "hms";
|
|
80
|
+
"decimal-hours": "decimal-hours";
|
|
81
|
+
}>;
|
|
82
|
+
export type DurationDisplay = z.infer<typeof durationDisplaySchema>;
|
|
83
|
+
export declare const durationFormatSchema: z.ZodObject<{
|
|
84
|
+
display: z.ZodEnum<{
|
|
85
|
+
iso: "iso";
|
|
86
|
+
hours: "hours";
|
|
87
|
+
minutes: "minutes";
|
|
88
|
+
hms: "hms";
|
|
89
|
+
"decimal-hours": "decimal-hours";
|
|
90
|
+
}>;
|
|
91
|
+
inputUnit: z.ZodEnum<{
|
|
92
|
+
hours: "hours";
|
|
93
|
+
minutes: "minutes";
|
|
94
|
+
seconds: "seconds";
|
|
95
|
+
milliseconds: "milliseconds";
|
|
96
|
+
days: "days";
|
|
97
|
+
}>;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
export type DurationFormat = z.infer<typeof durationFormatSchema>;
|
|
100
|
+
export declare const selectOptionSchema: z.ZodObject<{
|
|
101
|
+
id: z.ZodString;
|
|
102
|
+
label: z.ZodString;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
export type SelectOption = z.infer<typeof selectOptionSchema>;
|
|
105
|
+
export declare const selectFormatSchema: z.ZodObject<{
|
|
106
|
+
allowCustom: z.ZodBoolean;
|
|
107
|
+
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
108
|
+
options: z.ZodArray<z.ZodObject<{
|
|
109
|
+
id: z.ZodString;
|
|
110
|
+
label: z.ZodString;
|
|
111
|
+
}, z.core.$strip>>;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
export type SelectFormat = z.infer<typeof selectFormatSchema>;
|
|
114
|
+
export declare const textStyleSchema: z.ZodEnum<{
|
|
115
|
+
single: "single";
|
|
116
|
+
multiline: "multiline";
|
|
117
|
+
markdown: "markdown";
|
|
118
|
+
}>;
|
|
119
|
+
export type TextStyle = z.infer<typeof textStyleSchema>;
|
|
120
|
+
export declare const textFormatSchema: z.ZodObject<{
|
|
121
|
+
style: z.ZodDefault<z.ZodEnum<{
|
|
122
|
+
single: "single";
|
|
123
|
+
multiline: "multiline";
|
|
124
|
+
markdown: "markdown";
|
|
125
|
+
}>>;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
export type TextFormat = z.infer<typeof textFormatSchema>;
|
|
128
|
+
export declare const tableColumnSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
129
|
+
description: z.ZodOptional<z.ZodString>;
|
|
130
|
+
edit: z.ZodOptional<z.ZodEnum<{
|
|
131
|
+
inline: "inline";
|
|
132
|
+
popout: "popout";
|
|
133
|
+
}>>;
|
|
134
|
+
id: z.ZodString;
|
|
135
|
+
name: z.ZodString;
|
|
136
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
137
|
+
format: z.ZodOptional<z.ZodObject<{
|
|
138
|
+
style: z.ZodDefault<z.ZodEnum<{
|
|
139
|
+
single: "single";
|
|
140
|
+
multiline: "multiline";
|
|
141
|
+
markdown: "markdown";
|
|
142
|
+
}>>;
|
|
143
|
+
}, z.core.$strip>>;
|
|
144
|
+
type: z.ZodLiteral<"text">;
|
|
145
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
146
|
+
description: z.ZodOptional<z.ZodString>;
|
|
147
|
+
edit: z.ZodOptional<z.ZodEnum<{
|
|
148
|
+
inline: "inline";
|
|
149
|
+
popout: "popout";
|
|
150
|
+
}>>;
|
|
151
|
+
id: z.ZodString;
|
|
152
|
+
name: z.ZodString;
|
|
153
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
154
|
+
format: z.ZodObject<{
|
|
155
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
156
|
+
fractionDigits: z.ZodOptional<z.ZodNumber>;
|
|
157
|
+
grouping: z.ZodOptional<z.ZodBoolean>;
|
|
158
|
+
style: z.ZodEnum<{
|
|
159
|
+
integer: "integer";
|
|
160
|
+
decimal: "decimal";
|
|
161
|
+
percent: "percent";
|
|
162
|
+
currency: "currency";
|
|
163
|
+
}>;
|
|
164
|
+
}, z.core.$strip>;
|
|
165
|
+
type: z.ZodLiteral<"number">;
|
|
166
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
167
|
+
description: z.ZodOptional<z.ZodString>;
|
|
168
|
+
edit: z.ZodOptional<z.ZodEnum<{
|
|
169
|
+
inline: "inline";
|
|
170
|
+
popout: "popout";
|
|
171
|
+
}>>;
|
|
172
|
+
id: z.ZodString;
|
|
173
|
+
name: z.ZodString;
|
|
174
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
175
|
+
format: z.ZodObject<{
|
|
176
|
+
dateStyle: z.ZodOptional<z.ZodEnum<{
|
|
177
|
+
short: "short";
|
|
178
|
+
medium: "medium";
|
|
179
|
+
long: "long";
|
|
180
|
+
iso: "iso";
|
|
181
|
+
}>>;
|
|
182
|
+
kind: z.ZodEnum<{
|
|
183
|
+
date: "date";
|
|
184
|
+
datetime: "datetime";
|
|
185
|
+
time: "time";
|
|
186
|
+
}>;
|
|
187
|
+
timePrecision: z.ZodOptional<z.ZodEnum<{
|
|
188
|
+
hours: "hours";
|
|
189
|
+
minutes: "minutes";
|
|
190
|
+
seconds: "seconds";
|
|
191
|
+
}>>;
|
|
192
|
+
}, z.core.$strip>;
|
|
193
|
+
type: z.ZodLiteral<"date">;
|
|
194
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
195
|
+
description: z.ZodOptional<z.ZodString>;
|
|
196
|
+
edit: z.ZodOptional<z.ZodEnum<{
|
|
197
|
+
inline: "inline";
|
|
198
|
+
popout: "popout";
|
|
199
|
+
}>>;
|
|
200
|
+
id: z.ZodString;
|
|
201
|
+
name: z.ZodString;
|
|
202
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
203
|
+
format: z.ZodObject<{
|
|
204
|
+
display: z.ZodEnum<{
|
|
205
|
+
iso: "iso";
|
|
206
|
+
hours: "hours";
|
|
207
|
+
minutes: "minutes";
|
|
208
|
+
hms: "hms";
|
|
209
|
+
"decimal-hours": "decimal-hours";
|
|
210
|
+
}>;
|
|
211
|
+
inputUnit: z.ZodEnum<{
|
|
212
|
+
hours: "hours";
|
|
213
|
+
minutes: "minutes";
|
|
214
|
+
seconds: "seconds";
|
|
215
|
+
milliseconds: "milliseconds";
|
|
216
|
+
days: "days";
|
|
217
|
+
}>;
|
|
218
|
+
}, z.core.$strip>;
|
|
219
|
+
type: z.ZodLiteral<"duration">;
|
|
220
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
221
|
+
description: z.ZodOptional<z.ZodString>;
|
|
222
|
+
edit: z.ZodOptional<z.ZodEnum<{
|
|
223
|
+
inline: "inline";
|
|
224
|
+
popout: "popout";
|
|
225
|
+
}>>;
|
|
226
|
+
id: z.ZodString;
|
|
227
|
+
name: z.ZodString;
|
|
228
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
229
|
+
format: z.ZodObject<{
|
|
230
|
+
allowCustom: z.ZodBoolean;
|
|
231
|
+
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
232
|
+
options: z.ZodArray<z.ZodObject<{
|
|
233
|
+
id: z.ZodString;
|
|
234
|
+
label: z.ZodString;
|
|
235
|
+
}, z.core.$strip>>;
|
|
236
|
+
}, z.core.$strip>;
|
|
237
|
+
type: z.ZodLiteral<"select">;
|
|
238
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
239
|
+
description: z.ZodOptional<z.ZodString>;
|
|
240
|
+
edit: z.ZodOptional<z.ZodEnum<{
|
|
241
|
+
inline: "inline";
|
|
242
|
+
popout: "popout";
|
|
243
|
+
}>>;
|
|
244
|
+
id: z.ZodString;
|
|
245
|
+
name: z.ZodString;
|
|
246
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
247
|
+
type: z.ZodLiteral<"boolean">;
|
|
248
|
+
}, z.core.$strip>], "type">;
|
|
249
|
+
export type TableColumn = z.infer<typeof tableColumnSchema>;
|
|
250
|
+
export type ColumnEdit = NonNullable<TableColumn["edit"]>;
|
|
251
|
+
export declare function textColumnStyle(column: TableColumn): TextStyle;
|
|
252
|
+
/** Where this cell is edited. Explicit `edit` wins; otherwise type defaults. */
|
|
253
|
+
export declare function columnEdit(column: TableColumn): ColumnEdit;
|
|
254
|
+
export declare const tableColumnsSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
255
|
+
description: z.ZodOptional<z.ZodString>;
|
|
256
|
+
edit: z.ZodOptional<z.ZodEnum<{
|
|
257
|
+
inline: "inline";
|
|
258
|
+
popout: "popout";
|
|
259
|
+
}>>;
|
|
260
|
+
id: z.ZodString;
|
|
261
|
+
name: z.ZodString;
|
|
262
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
263
|
+
format: z.ZodOptional<z.ZodObject<{
|
|
264
|
+
style: z.ZodDefault<z.ZodEnum<{
|
|
265
|
+
single: "single";
|
|
266
|
+
multiline: "multiline";
|
|
267
|
+
markdown: "markdown";
|
|
268
|
+
}>>;
|
|
269
|
+
}, z.core.$strip>>;
|
|
270
|
+
type: z.ZodLiteral<"text">;
|
|
271
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
272
|
+
description: z.ZodOptional<z.ZodString>;
|
|
273
|
+
edit: z.ZodOptional<z.ZodEnum<{
|
|
274
|
+
inline: "inline";
|
|
275
|
+
popout: "popout";
|
|
276
|
+
}>>;
|
|
277
|
+
id: z.ZodString;
|
|
278
|
+
name: z.ZodString;
|
|
279
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
280
|
+
format: z.ZodObject<{
|
|
281
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
282
|
+
fractionDigits: z.ZodOptional<z.ZodNumber>;
|
|
283
|
+
grouping: z.ZodOptional<z.ZodBoolean>;
|
|
284
|
+
style: z.ZodEnum<{
|
|
285
|
+
integer: "integer";
|
|
286
|
+
decimal: "decimal";
|
|
287
|
+
percent: "percent";
|
|
288
|
+
currency: "currency";
|
|
289
|
+
}>;
|
|
290
|
+
}, z.core.$strip>;
|
|
291
|
+
type: z.ZodLiteral<"number">;
|
|
292
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
293
|
+
description: z.ZodOptional<z.ZodString>;
|
|
294
|
+
edit: z.ZodOptional<z.ZodEnum<{
|
|
295
|
+
inline: "inline";
|
|
296
|
+
popout: "popout";
|
|
297
|
+
}>>;
|
|
298
|
+
id: z.ZodString;
|
|
299
|
+
name: z.ZodString;
|
|
300
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
301
|
+
format: z.ZodObject<{
|
|
302
|
+
dateStyle: z.ZodOptional<z.ZodEnum<{
|
|
303
|
+
short: "short";
|
|
304
|
+
medium: "medium";
|
|
305
|
+
long: "long";
|
|
306
|
+
iso: "iso";
|
|
307
|
+
}>>;
|
|
308
|
+
kind: z.ZodEnum<{
|
|
309
|
+
date: "date";
|
|
310
|
+
datetime: "datetime";
|
|
311
|
+
time: "time";
|
|
312
|
+
}>;
|
|
313
|
+
timePrecision: z.ZodOptional<z.ZodEnum<{
|
|
314
|
+
hours: "hours";
|
|
315
|
+
minutes: "minutes";
|
|
316
|
+
seconds: "seconds";
|
|
317
|
+
}>>;
|
|
318
|
+
}, z.core.$strip>;
|
|
319
|
+
type: z.ZodLiteral<"date">;
|
|
320
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
321
|
+
description: z.ZodOptional<z.ZodString>;
|
|
322
|
+
edit: z.ZodOptional<z.ZodEnum<{
|
|
323
|
+
inline: "inline";
|
|
324
|
+
popout: "popout";
|
|
325
|
+
}>>;
|
|
326
|
+
id: z.ZodString;
|
|
327
|
+
name: z.ZodString;
|
|
328
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
329
|
+
format: z.ZodObject<{
|
|
330
|
+
display: z.ZodEnum<{
|
|
331
|
+
iso: "iso";
|
|
332
|
+
hours: "hours";
|
|
333
|
+
minutes: "minutes";
|
|
334
|
+
hms: "hms";
|
|
335
|
+
"decimal-hours": "decimal-hours";
|
|
336
|
+
}>;
|
|
337
|
+
inputUnit: z.ZodEnum<{
|
|
338
|
+
hours: "hours";
|
|
339
|
+
minutes: "minutes";
|
|
340
|
+
seconds: "seconds";
|
|
341
|
+
milliseconds: "milliseconds";
|
|
342
|
+
days: "days";
|
|
343
|
+
}>;
|
|
344
|
+
}, z.core.$strip>;
|
|
345
|
+
type: z.ZodLiteral<"duration">;
|
|
346
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
347
|
+
description: z.ZodOptional<z.ZodString>;
|
|
348
|
+
edit: z.ZodOptional<z.ZodEnum<{
|
|
349
|
+
inline: "inline";
|
|
350
|
+
popout: "popout";
|
|
351
|
+
}>>;
|
|
352
|
+
id: z.ZodString;
|
|
353
|
+
name: z.ZodString;
|
|
354
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
355
|
+
format: z.ZodObject<{
|
|
356
|
+
allowCustom: z.ZodBoolean;
|
|
357
|
+
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
358
|
+
options: z.ZodArray<z.ZodObject<{
|
|
359
|
+
id: z.ZodString;
|
|
360
|
+
label: z.ZodString;
|
|
361
|
+
}, z.core.$strip>>;
|
|
362
|
+
}, z.core.$strip>;
|
|
363
|
+
type: z.ZodLiteral<"select">;
|
|
364
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
365
|
+
description: z.ZodOptional<z.ZodString>;
|
|
366
|
+
edit: z.ZodOptional<z.ZodEnum<{
|
|
367
|
+
inline: "inline";
|
|
368
|
+
popout: "popout";
|
|
369
|
+
}>>;
|
|
370
|
+
id: z.ZodString;
|
|
371
|
+
name: z.ZodString;
|
|
372
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
373
|
+
type: z.ZodLiteral<"boolean">;
|
|
374
|
+
}, z.core.$strip>], "type">>;
|
|
375
|
+
/**
|
|
376
|
+
* The shape a MODEL is shown for `columns`, as opposed to the one we validate.
|
|
377
|
+
*
|
|
378
|
+
* `tableColumnsSchema` is a six-branch discriminated union that repeats the
|
|
379
|
+
* whole column base per branch. As a tool's JSON Schema that came to 14.7 KB —
|
|
380
|
+
* on its own 5% of a copilot prompt, resent on every model call of every run,
|
|
381
|
+
* whether or not a table is in play. The union earns that as a *contract*; it
|
|
382
|
+
* does not earn it as a *hint*.
|
|
383
|
+
*
|
|
384
|
+
* So the wire shape is one flat object with every format key optional, and the
|
|
385
|
+
* tool re-parses the result with `tableColumnsSchema` before doing anything.
|
|
386
|
+
* Validation is unchanged and the error the model gets back is the strict
|
|
387
|
+
* schema's own; only the advertisement shrinks. Per-type rules live in the
|
|
388
|
+
* tool description, which the model reads anyway.
|
|
389
|
+
*/
|
|
390
|
+
export declare const tableColumnWireSchema: z.ZodObject<{
|
|
391
|
+
description: z.ZodOptional<z.ZodString>;
|
|
392
|
+
edit: z.ZodOptional<z.ZodEnum<{
|
|
393
|
+
inline: "inline";
|
|
394
|
+
popout: "popout";
|
|
395
|
+
}>>;
|
|
396
|
+
format: z.ZodOptional<z.ZodObject<{
|
|
397
|
+
allowCustom: z.ZodOptional<z.ZodBoolean>;
|
|
398
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
399
|
+
dateStyle: z.ZodOptional<z.ZodEnum<{
|
|
400
|
+
short: "short";
|
|
401
|
+
medium: "medium";
|
|
402
|
+
long: "long";
|
|
403
|
+
iso: "iso";
|
|
404
|
+
}>>;
|
|
405
|
+
display: z.ZodOptional<z.ZodEnum<{
|
|
406
|
+
iso: "iso";
|
|
407
|
+
hours: "hours";
|
|
408
|
+
minutes: "minutes";
|
|
409
|
+
hms: "hms";
|
|
410
|
+
"decimal-hours": "decimal-hours";
|
|
411
|
+
}>>;
|
|
412
|
+
fractionDigits: z.ZodOptional<z.ZodNumber>;
|
|
413
|
+
grouping: z.ZodOptional<z.ZodBoolean>;
|
|
414
|
+
inputUnit: z.ZodOptional<z.ZodEnum<{
|
|
415
|
+
hours: "hours";
|
|
416
|
+
minutes: "minutes";
|
|
417
|
+
seconds: "seconds";
|
|
418
|
+
milliseconds: "milliseconds";
|
|
419
|
+
days: "days";
|
|
420
|
+
}>>;
|
|
421
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
422
|
+
date: "date";
|
|
423
|
+
datetime: "datetime";
|
|
424
|
+
time: "time";
|
|
425
|
+
}>>;
|
|
426
|
+
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
427
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
428
|
+
id: z.ZodString;
|
|
429
|
+
label: z.ZodString;
|
|
430
|
+
}, z.core.$strip>>>;
|
|
431
|
+
style: z.ZodOptional<z.ZodEnum<{
|
|
432
|
+
integer: "integer";
|
|
433
|
+
decimal: "decimal";
|
|
434
|
+
percent: "percent";
|
|
435
|
+
currency: "currency";
|
|
436
|
+
single: "single";
|
|
437
|
+
multiline: "multiline";
|
|
438
|
+
markdown: "markdown";
|
|
439
|
+
}>>;
|
|
440
|
+
timePrecision: z.ZodOptional<z.ZodEnum<{
|
|
441
|
+
hours: "hours";
|
|
442
|
+
minutes: "minutes";
|
|
443
|
+
seconds: "seconds";
|
|
444
|
+
}>>;
|
|
445
|
+
}, z.core.$strip>>;
|
|
446
|
+
id: z.ZodString;
|
|
447
|
+
name: z.ZodString;
|
|
448
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
449
|
+
type: z.ZodEnum<{
|
|
450
|
+
number: "number";
|
|
451
|
+
boolean: "boolean";
|
|
452
|
+
date: "date";
|
|
453
|
+
text: "text";
|
|
454
|
+
duration: "duration";
|
|
455
|
+
select: "select";
|
|
456
|
+
}>;
|
|
457
|
+
}, z.core.$strip>;
|
|
458
|
+
export declare const tableColumnsWireSchema: z.ZodArray<z.ZodObject<{
|
|
459
|
+
description: z.ZodOptional<z.ZodString>;
|
|
460
|
+
edit: z.ZodOptional<z.ZodEnum<{
|
|
461
|
+
inline: "inline";
|
|
462
|
+
popout: "popout";
|
|
463
|
+
}>>;
|
|
464
|
+
format: z.ZodOptional<z.ZodObject<{
|
|
465
|
+
allowCustom: z.ZodOptional<z.ZodBoolean>;
|
|
466
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
467
|
+
dateStyle: z.ZodOptional<z.ZodEnum<{
|
|
468
|
+
short: "short";
|
|
469
|
+
medium: "medium";
|
|
470
|
+
long: "long";
|
|
471
|
+
iso: "iso";
|
|
472
|
+
}>>;
|
|
473
|
+
display: z.ZodOptional<z.ZodEnum<{
|
|
474
|
+
iso: "iso";
|
|
475
|
+
hours: "hours";
|
|
476
|
+
minutes: "minutes";
|
|
477
|
+
hms: "hms";
|
|
478
|
+
"decimal-hours": "decimal-hours";
|
|
479
|
+
}>>;
|
|
480
|
+
fractionDigits: z.ZodOptional<z.ZodNumber>;
|
|
481
|
+
grouping: z.ZodOptional<z.ZodBoolean>;
|
|
482
|
+
inputUnit: z.ZodOptional<z.ZodEnum<{
|
|
483
|
+
hours: "hours";
|
|
484
|
+
minutes: "minutes";
|
|
485
|
+
seconds: "seconds";
|
|
486
|
+
milliseconds: "milliseconds";
|
|
487
|
+
days: "days";
|
|
488
|
+
}>>;
|
|
489
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
490
|
+
date: "date";
|
|
491
|
+
datetime: "datetime";
|
|
492
|
+
time: "time";
|
|
493
|
+
}>>;
|
|
494
|
+
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
495
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
496
|
+
id: z.ZodString;
|
|
497
|
+
label: z.ZodString;
|
|
498
|
+
}, z.core.$strip>>>;
|
|
499
|
+
style: z.ZodOptional<z.ZodEnum<{
|
|
500
|
+
integer: "integer";
|
|
501
|
+
decimal: "decimal";
|
|
502
|
+
percent: "percent";
|
|
503
|
+
currency: "currency";
|
|
504
|
+
single: "single";
|
|
505
|
+
multiline: "multiline";
|
|
506
|
+
markdown: "markdown";
|
|
507
|
+
}>>;
|
|
508
|
+
timePrecision: z.ZodOptional<z.ZodEnum<{
|
|
509
|
+
hours: "hours";
|
|
510
|
+
minutes: "minutes";
|
|
511
|
+
seconds: "seconds";
|
|
512
|
+
}>>;
|
|
513
|
+
}, z.core.$strip>>;
|
|
514
|
+
id: z.ZodString;
|
|
515
|
+
name: z.ZodString;
|
|
516
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
517
|
+
type: z.ZodEnum<{
|
|
518
|
+
number: "number";
|
|
519
|
+
boolean: "boolean";
|
|
520
|
+
date: "date";
|
|
521
|
+
text: "text";
|
|
522
|
+
duration: "duration";
|
|
523
|
+
select: "select";
|
|
524
|
+
}>;
|
|
525
|
+
}, z.core.$strip>>;
|
|
526
|
+
export type TableColumnWire = z.infer<typeof tableColumnWireSchema>;
|
|
527
|
+
export declare const DATA_TABLE_ARTIFACT_TYPE: "database";
|
|
528
|
+
export declare const DATA_TABLE_MIME_TYPE = "application/vnd.engenty.database+json";
|
|
529
|
+
export declare const dataTableHandleSchema: z.ZodObject<{
|
|
530
|
+
table_id: z.ZodString;
|
|
531
|
+
}, z.core.$strip>;
|
|
532
|
+
export type DataTableHandle = z.infer<typeof dataTableHandleSchema>;
|