@kitionstage/sdk 0.0.0-stage → 0.5.2-stage.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +69 -2
- package/dist/LICENSE +177 -0
- package/dist/THIRD_PARTY_NOTICES +28 -0
- package/dist/lib/assets/kitEngine.worker-9haDiVHZ.js +13220 -0
- package/dist/lib/chunks/batch-BWpAyHvP.js +789 -0
- package/dist/lib/chunks/canonical-BIWfVCL-.js +87 -0
- package/dist/lib/chunks/envelope-D6MGY-ZN.js +61 -0
- package/dist/lib/chunks/replica-D8w3I4sn.js +2472 -0
- package/dist/lib/chunks/runtime-BVJHE1Pg.js +997 -0
- package/dist/lib/chunks/session-BqXC9a1-.js +281 -0
- package/dist/lib/chunks/toolIds-BCeSGHpV.js +821 -0
- package/dist/lib/chunks/workspaceTree-Destqupf.js +23 -0
- package/dist/lib/convergence/index.js +1035 -0
- package/dist/lib/convergence/node.js +8 -0
- package/dist/lib/embed-server/callbacks.js +37 -0
- package/dist/lib/embed-server/cli.js +19 -0
- package/dist/lib/embed-server/index.js +272 -0
- package/dist/lib/extensions/index.js +439 -0
- package/dist/lib/extensions/panel.html +208 -0
- package/dist/lib/extensions/runtime.js +198 -0
- package/dist/lib/extensions/sandbox.html +35 -0
- package/dist/lib/kdm/index.js +437 -0
- package/dist/lib/kit-dev-host/checkUiIds.mjs +44 -0
- package/dist/lib/kit-dev-host/index.js +308 -0
- package/dist/lib/kit-dev-host/lineRow.mjs +47 -0
- package/dist/lib/kit-dev-host/modeSmoke.mjs +178 -0
- package/dist/lib/kit-editor/index.js +6489 -0
- package/dist/lib/kit-editor/styles.css +807 -0
- package/dist/lib/kit-editor/workspaceTree.js +1 -0
- package/dist/lib/kit-engine/index.js +7 -0
- package/dist/lib/kit-host/index.js +530 -0
- package/dist/lib/kit-ui-protocol/index.js +336 -0
- package/dist/lib/node-only/embed-server-callbacks.js +2 -0
- package/dist/lib/node-only/embed-server.js +2 -0
- package/dist/lib/sync/index.js +1008 -0
- package/dist/lib/sync/openToken.js +201 -0
- package/dist/lib/sync/replicaVersions.js +51 -0
- package/dist/standalone/chunks/batch-CAGYk6m4.js +789 -0
- package/dist/standalone/chunks/client-B9xkOcvf.js +772 -0
- package/dist/standalone/chunks/collab-B5TbpTyO.js +1022 -0
- package/dist/standalone/chunks/comment-Ds9t8xSE.js +94 -0
- package/dist/standalone/chunks/comments-uVDS8Wxp.js +41 -0
- package/dist/standalone/chunks/document-CuIGSDsY.js +324 -0
- package/dist/standalone/chunks/envelope-GX4Cynkx.js +7612 -0
- package/dist/standalone/chunks/index-BEgEEnhU.js +287 -0
- package/dist/standalone/chunks/index-Blc_B6iX.js +1967 -0
- package/dist/standalone/chunks/kits-Cp51mDlw.js +9 -0
- package/dist/standalone/chunks/replica-Di2iCPiD.js +3281 -0
- package/dist/standalone/chunks/replicaVersions-C3rJxnk9.js +50 -0
- package/dist/standalone/chunks/touched-T9jKJjxn.js +78 -0
- package/dist/standalone/index.js +12 -0
- package/dist/standalone/script/index.js +339 -0
- package/dist/standalone/script/kits/board.js +5 -0
- package/dist/standalone/script/kits/cad.js +5 -0
- package/dist/standalone/script/kits/design.js +5 -0
- package/dist/standalone/script/kits/doc.js +5 -0
- package/dist/standalone/script/kits/film.js +5 -0
- package/dist/standalone/script/kits/html.js +5 -0
- package/dist/standalone/script/kits/index.js +38 -0
- package/dist/standalone/script/kits/layout.js +5 -0
- package/dist/standalone/script/kits/motion.js +5 -0
- package/dist/standalone/script/kits/note.js +5 -0
- package/dist/standalone/script/kits/pdf.js +5 -0
- package/dist/standalone/script/kits/photo.js +5 -0
- package/dist/standalone/script/kits/scene.js +5 -0
- package/dist/standalone/script/kits/sheet.js +5 -0
- package/dist/standalone/script/kits/slide.js +5 -0
- package/dist/standalone/script/kits/table.js +5 -0
- package/dist/standalone/script/kits/vector.js +5 -0
- package/dist/standalone/script/node.js +401 -0
- package/dist/standalone/script/proxy.js +254 -0
- package/dist/types/convergence/src/adapter.d.ts +131 -0
- package/dist/types/convergence/src/engine.d.ts +66 -0
- package/dist/types/convergence/src/index.d.ts +21 -0
- package/dist/types/convergence/src/net.d.ts +52 -0
- package/dist/types/convergence/src/node.d.ts +6 -0
- package/dist/types/convergence/src/report.d.ts +56 -0
- package/dist/types/convergence/src/rng.d.ts +12 -0
- package/dist/types/convergence/src/scenarios.d.ts +15 -0
- package/dist/types/convergence/src/state.d.ts +67 -0
- package/dist/types/embed/src/agent.d.ts +88 -0
- package/dist/types/embed/src/blobs.d.ts +2 -0
- package/dist/types/embed/src/collab.d.ts +250 -0
- package/dist/types/embed/src/comments.d.ts +30 -0
- package/dist/types/embed/src/errors.d.ts +24 -0
- package/dist/types/embed/src/handlers.d.ts +92 -0
- package/dist/types/embed/src/index.d.ts +20 -0
- package/dist/types/embed/src/mount.d.ts +39 -0
- package/dist/types/embed/src/replicaStore.d.ts +3 -0
- package/dist/types/embed/src/rooms.d.ts +40 -0
- package/dist/types/embed/src/schemas.d.ts +7 -0
- package/dist/types/embed/src/syncClients.d.ts +28 -0
- package/dist/types/embed/src/theme.d.ts +7 -0
- package/dist/types/embed/src/types.d.ts +596 -0
- package/dist/types/embed/src/ui.d.ts +33 -0
- package/dist/types/embed/src/version.d.ts +2 -0
- package/dist/types/embed-server/src/callbacks.d.ts +30 -0
- package/dist/types/embed-server/src/cli.d.ts +1 -0
- package/dist/types/embed-server/src/index.d.ts +19 -0
- package/dist/types/embed-server/src/page.d.ts +15 -0
- package/dist/types/embed-server/src/server.d.ts +39 -0
- package/dist/types/embed-server/src/session.d.ts +22 -0
- package/dist/types/extensions/src/gate.d.ts +17 -0
- package/dist/types/extensions/src/generated/runtime.d.ts +8 -0
- package/dist/types/extensions/src/host.d.ts +135 -0
- package/dist/types/extensions/src/index.d.ts +13 -0
- package/dist/types/extensions/src/manifest.d.ts +82 -0
- package/dist/types/extensions/src/protocol.d.ts +159 -0
- package/dist/types/extensions/src/rpc.d.ts +52 -0
- package/dist/types/extensions/src/runtime/document.d.ts +40 -0
- package/dist/types/extensions/src/runtime/index.d.ts +10 -0
- package/dist/types/extensions/src/runtime/panel.d.ts +19 -0
- package/dist/types/extensions/src/runtime/runtime.d.ts +54 -0
- package/dist/types/extensions/src/runtime/worker.d.ts +1 -0
- package/dist/types/extensions/src/sandbox.d.ts +41 -0
- package/dist/types/kdm/src/args.d.ts +12 -0
- package/dist/types/kdm/src/batch.d.ts +118 -0
- package/dist/types/kdm/src/canonical.d.ts +25 -0
- package/dist/types/kdm/src/comment.d.ts +114 -0
- package/dist/types/kdm/src/diff.d.ts +125 -0
- package/dist/types/kdm/src/envelope.d.ts +27 -0
- package/dist/types/kdm/src/errors.d.ts +28 -0
- package/dist/types/kdm/src/footprint.d.ts +21 -0
- package/dist/types/kdm/src/ids.d.ts +57 -0
- package/dist/types/kdm/src/index.d.ts +18 -0
- package/dist/types/kdm/src/marks.d.ts +32 -0
- package/dist/types/kdm/src/op.d.ts +124 -0
- package/dist/types/kdm/src/origin.d.ts +41 -0
- package/dist/types/kdm/src/overlay.d.ts +92 -0
- package/dist/types/kdm/src/projection.d.ts +29 -0
- package/dist/types/kdm/src/read.d.ts +90 -0
- package/dist/types/kdm/src/replica.d.ts +403 -0
- package/dist/types/kdm/src/schema.d.ts +185 -0
- package/dist/types/kdm/src/testing.d.ts +28 -0
- package/dist/types/kdm/src/toolIds.d.ts +61 -0
- package/dist/types/kdm/src/touched.d.ts +24 -0
- package/dist/types/kdm/src/tx.d.ts +215 -0
- package/dist/types/kdm/src/value.d.ts +23 -0
- package/dist/types/kit-dev-host/src/checkNoPaths.d.ts +19 -0
- package/dist/types/kit-dev-host/src/checkUiIds.d.mts +2 -0
- package/dist/types/kit-dev-host/src/index.d.ts +179 -0
- package/dist/types/kit-dev-host/src/lineRow.d.mts +14 -0
- package/dist/types/kit-dev-host/src/memoryFiles.d.ts +15 -0
- package/dist/types/kit-dev-host/src/modeSmoke.d.mts +8 -0
- package/dist/types/kit-editor/src/CommandDialog.d.ts +22 -0
- package/dist/types/kit-editor/src/CommentsPanel.d.ts +45 -0
- package/dist/types/kit-editor/src/CustomizeDialog.d.ts +32 -0
- package/dist/types/kit-editor/src/HostButtons.d.ts +11 -0
- package/dist/types/kit-editor/src/RenderFailure.d.ts +7 -0
- package/dist/types/kit-editor/src/TextSink.d.ts +6 -0
- package/dist/types/kit-editor/src/brand.d.ts +2 -0
- package/dist/types/kit-editor/src/catalogMenus.d.ts +27 -0
- package/dist/types/kit-editor/src/chart.d.ts +138 -0
- package/dist/types/kit-editor/src/conflicts.d.ts +12 -0
- package/dist/types/kit-editor/src/drawing.d.ts +83 -0
- package/dist/types/kit-editor/src/editor.d.ts +544 -0
- package/dist/types/kit-editor/src/engine/KitCanvas.d.ts +70 -0
- package/dist/types/kit-editor/src/engine/backdrop.d.ts +32 -0
- package/dist/types/kit-editor/src/engine/createKitFile.d.ts +12 -0
- package/dist/types/kit-editor/src/engine/decorations.d.ts +14 -0
- package/dist/types/kit-editor/src/engine/engineOverlays.d.ts +197 -0
- package/dist/types/kit-editor/src/engine/engineTools.d.ts +116 -0
- package/dist/types/kit-editor/src/engine/kitDraft.d.ts +70 -0
- package/dist/types/kit-editor/src/engine/kitEngine.d.ts +390 -0
- package/dist/types/kit-editor/src/engine/kitEngine.worker.d.ts +30 -0
- package/dist/types/kit-editor/src/engine/kitHost.d.ts +41 -0
- package/dist/types/kit-editor/src/engine/kitModel.d.ts +32 -0
- package/dist/types/kit-editor/src/engine/kitModelRunner.d.ts +99 -0
- package/dist/types/kit-editor/src/engine/kitModule.d.ts +185 -0
- package/dist/types/kit-editor/src/engine/kitShortcuts.d.ts +32 -0
- package/dist/types/kit-editor/src/engine/kitTools.d.ts +79 -0
- package/dist/types/kit-editor/src/engine/lazyFonts.d.ts +34 -0
- package/dist/types/kit-editor/src/engine/lentFiles.d.ts +29 -0
- package/dist/types/kit-editor/src/engine/rasterViewport.d.ts +178 -0
- package/dist/types/kit-editor/src/engine/readOnly.d.ts +78 -0
- package/dist/types/kit-editor/src/engine/refusal.d.ts +39 -0
- package/dist/types/kit-editor/src/engine/replica.d.ts +23 -0
- package/dist/types/kit-editor/src/engine/useKitDocument.d.ts +154 -0
- package/dist/types/kit-editor/src/engine/workerRelay.d.ts +62 -0
- package/dist/types/kit-editor/src/files.d.ts +74 -0
- package/dist/types/kit-editor/src/frame/EditorFrame.d.ts +74 -0
- package/dist/types/kit-editor/src/frame/FocusBar.d.ts +10 -0
- package/dist/types/kit-editor/src/frame/MenuNodes.d.ts +20 -0
- package/dist/types/kit-editor/src/frame/MenuRibbon.d.ts +8 -0
- package/dist/types/kit-editor/src/frame/ModeButton.d.ts +7 -0
- package/dist/types/kit-editor/src/frame/menus.d.ts +64 -0
- package/dist/types/kit-editor/src/frame/modes.d.ts +51 -0
- package/dist/types/kit-editor/src/frame/useFrameLayout.d.ts +34 -0
- package/dist/types/kit-editor/src/host.d.ts +127 -0
- package/dist/types/kit-editor/src/index.d.ts +85 -0
- package/dist/types/kit-editor/src/ink.d.ts +26 -0
- package/dist/types/kit-editor/src/lease.d.ts +53 -0
- package/dist/types/kit-editor/src/oneInFlight.d.ts +7 -0
- package/dist/types/kit-editor/src/phrases.d.ts +25 -0
- package/dist/types/kit-editor/src/presence.d.ts +79 -0
- package/dist/types/kit-editor/src/strings.d.ts +6 -0
- package/dist/types/kit-editor/src/toolIcons.d.ts +32 -0
- package/dist/types/kit-editor/src/uiCatalog.d.ts +59 -0
- package/dist/types/kit-editor/src/uiConfig.d.ts +53 -0
- package/dist/types/kit-editor/src/uiContext.d.ts +65 -0
- package/dist/types/kit-editor/src/uiStore.d.ts +20 -0
- package/dist/types/kit-editor/src/useCommentAnchors.d.ts +29 -0
- package/dist/types/kit-editor/src/useKitSession.d.ts +115 -0
- package/dist/types/kit-editor/src/workspaceTree.d.ts +5 -0
- package/dist/types/kit-engine/src/contract.d.ts +154 -0
- package/dist/types/kit-engine/src/index.d.ts +2 -0
- package/dist/types/kit-engine/src/session.d.ts +133 -0
- package/dist/types/kit-host/src/files.d.ts +163 -0
- package/dist/types/kit-host/src/index.d.ts +315 -0
- package/dist/types/kit-ui-protocol/src/index.d.ts +1145 -0
- package/dist/types/loro-crdt.d.ts +9 -0
- package/dist/types/script/kits/board.d.ts +534 -0
- package/dist/types/script/kits/cad.d.ts +2937 -0
- package/dist/types/script/kits/design.d.ts +3213 -0
- package/dist/types/script/kits/doc.d.ts +2575 -0
- package/dist/types/script/kits/film.d.ts +4067 -0
- package/dist/types/script/kits/html.d.ts +38 -0
- package/dist/types/script/kits/index.d.ts +20 -0
- package/dist/types/script/kits/layout.d.ts +3483 -0
- package/dist/types/script/kits/motion.d.ts +4826 -0
- package/dist/types/script/kits/note.d.ts +631 -0
- package/dist/types/script/kits/pdf.d.ts +829 -0
- package/dist/types/script/kits/photo.d.ts +7574 -0
- package/dist/types/script/kits/scene.d.ts +2962 -0
- package/dist/types/script/kits/sheet.d.ts +2419 -0
- package/dist/types/script/kits/slide.d.ts +1894 -0
- package/dist/types/script/kits/table.d.ts +654 -0
- package/dist/types/script/kits/vector.d.ts +5167 -0
- package/dist/types/script/src/agentRelay.d.ts +48 -0
- package/dist/types/script/src/capabilities.d.ts +21 -0
- package/dist/types/script/src/document.d.ts +87 -0
- package/dist/types/script/src/drafts.d.ts +141 -0
- package/dist/types/script/src/exchange.d.ts +30 -0
- package/dist/types/script/src/headless.d.ts +190 -0
- package/dist/types/script/src/index.d.ts +15 -0
- package/dist/types/script/src/kitModel.d.ts +17 -0
- package/dist/types/script/src/kits.d.ts +8 -0
- package/dist/types/script/src/node.d.ts +42 -0
- package/dist/types/script/src/port.d.ts +89 -0
- package/dist/types/script/src/proxy.d.ts +132 -0
- package/dist/types/script/src/room.d.ts +162 -0
- package/dist/types/script/src/sources.d.ts +73 -0
- package/dist/types/sync/src/backoff.d.ts +9 -0
- package/dist/types/sync/src/blobSection.d.ts +23 -0
- package/dist/types/sync/src/capabilities.d.ts +20 -0
- package/dist/types/sync/src/client.d.ts +253 -0
- package/dist/types/sync/src/framing.d.ts +35 -0
- package/dist/types/sync/src/hash.d.ts +2 -0
- package/dist/types/sync/src/index.d.ts +19 -0
- package/dist/types/sync/src/leases.d.ts +82 -0
- package/dist/types/sync/src/openToken.d.ts +104 -0
- package/dist/types/sync/src/protocol.d.ts +484 -0
- package/dist/types/sync/src/relay.d.ts +52 -0
- package/dist/types/sync/src/replicaVersions.d.ts +17 -0
- package/dist/types/sync/src/saveMachine.d.ts +83 -0
- package/dist/types/sync/src/saveRun.d.ts +52 -0
- package/dist/types/sync/src/transport.d.ts +19 -0
- package/package.json +229 -4
|
@@ -0,0 +1,654 @@
|
|
|
1
|
+
import type { CommandMap, ModelDocument, ModelList, ModelMap, ModelObject, RequestContext } from '../src/index.js';
|
|
2
|
+
import { type KitDescriptor } from '../src/kits.js';
|
|
3
|
+
type Json = null | boolean | number | string | Json[] | {
|
|
4
|
+
[key: string]: Json;
|
|
5
|
+
};
|
|
6
|
+
/** kit.table: registered with @kition/script when this module loads. */
|
|
7
|
+
export declare const tableKit: KitDescriptor;
|
|
8
|
+
/** The fields a new `Base` takes (`list.add(fields)`). */
|
|
9
|
+
export type BaseFields = {
|
|
10
|
+
title: string;
|
|
11
|
+
description: string;
|
|
12
|
+
icon: string;
|
|
13
|
+
color: string;
|
|
14
|
+
meta?: Json | null;
|
|
15
|
+
};
|
|
16
|
+
/** A `Base` of kit.table. */
|
|
17
|
+
export interface Base extends ModelObject {
|
|
18
|
+
title: string;
|
|
19
|
+
description: string;
|
|
20
|
+
icon: string;
|
|
21
|
+
color: string;
|
|
22
|
+
meta: Json | null;
|
|
23
|
+
readonly tables: ModelList<Table, TableFields>;
|
|
24
|
+
readonly dashboards: ModelList<Dashboard, DashboardFields>;
|
|
25
|
+
}
|
|
26
|
+
/** The fields a new `Table` takes (`list.add(fields)`). */
|
|
27
|
+
export type TableFields = {
|
|
28
|
+
name: string;
|
|
29
|
+
title: string;
|
|
30
|
+
description?: string | null;
|
|
31
|
+
meta?: Json | null;
|
|
32
|
+
primaryField?: string | ModelObject | null;
|
|
33
|
+
};
|
|
34
|
+
/** A `Table` of kit.table. */
|
|
35
|
+
export interface Table extends ModelObject {
|
|
36
|
+
name: string;
|
|
37
|
+
title: string;
|
|
38
|
+
description: string | null;
|
|
39
|
+
meta: Json | null;
|
|
40
|
+
/** The id of a `Field`. */
|
|
41
|
+
get primaryField(): string | null;
|
|
42
|
+
set primaryField(value: Field | string | null);
|
|
43
|
+
readonly fields: ModelList<Field, FieldFields>;
|
|
44
|
+
readonly views: ModelList<View, ViewFields>;
|
|
45
|
+
readonly records: ModelList<Record, RecordFields>;
|
|
46
|
+
}
|
|
47
|
+
/** The fields a new `Field` takes (`list.add(fields)`). */
|
|
48
|
+
export type FieldFields = {
|
|
49
|
+
name: string;
|
|
50
|
+
title: string;
|
|
51
|
+
type: "text" | "long_text" | "number" | "date" | "datetime" | "single_select" | "multi_select" | "checkbox" | "url" | "attachment" | "document_link" | "formula" | "ai" | "rating" | "user" | "link_to_record" | "lookup" | "rollup" | "button" | "created_time" | "last_modified_time" | "created_by" | "last_modified_by" | "auto_number";
|
|
52
|
+
required: boolean;
|
|
53
|
+
readonly: boolean;
|
|
54
|
+
options?: Json | null;
|
|
55
|
+
formula?: string | null;
|
|
56
|
+
aiPrompt?: string | null;
|
|
57
|
+
meta?: Json | null;
|
|
58
|
+
};
|
|
59
|
+
/** A `Field` of kit.table. */
|
|
60
|
+
export interface Field extends ModelObject {
|
|
61
|
+
name: string;
|
|
62
|
+
title: string;
|
|
63
|
+
required: boolean;
|
|
64
|
+
readonly: boolean;
|
|
65
|
+
options: Json | null;
|
|
66
|
+
formula: string | null;
|
|
67
|
+
aiPrompt: string | null;
|
|
68
|
+
meta: Json | null;
|
|
69
|
+
}
|
|
70
|
+
/** The fields a new `View` takes (`list.add(fields)`). */
|
|
71
|
+
export type ViewFields = {
|
|
72
|
+
type: "grid" | "kanban" | "calendar" | "gallery";
|
|
73
|
+
title: string;
|
|
74
|
+
locked: boolean;
|
|
75
|
+
config?: Json | null;
|
|
76
|
+
};
|
|
77
|
+
/** A `View` of kit.table. */
|
|
78
|
+
export interface View extends ModelObject {
|
|
79
|
+
title: string;
|
|
80
|
+
locked: boolean;
|
|
81
|
+
config: Json | null;
|
|
82
|
+
readonly widths: ModelMap<Json>;
|
|
83
|
+
readonly hidden: ModelMap<Json>;
|
|
84
|
+
}
|
|
85
|
+
/** The fields a new `Record` takes (`list.add(fields)`). */
|
|
86
|
+
export type RecordFields = {};
|
|
87
|
+
/** A `Record` of kit.table. */
|
|
88
|
+
export interface Record extends ModelObject {
|
|
89
|
+
readonly cells: ModelMap<Json>;
|
|
90
|
+
/** Read-only: the kit keeps it as it is. */
|
|
91
|
+
readonly createdAt: number | null;
|
|
92
|
+
/** Read-only: the kit keeps it as it is. */
|
|
93
|
+
readonly createdBy: string | null;
|
|
94
|
+
}
|
|
95
|
+
/** The fields a new `Link` takes (`list.add(fields)`). */
|
|
96
|
+
export type LinkFields = {
|
|
97
|
+
from: string | ModelObject;
|
|
98
|
+
field: string | ModelObject;
|
|
99
|
+
to: string | ModelObject;
|
|
100
|
+
};
|
|
101
|
+
/** A `Link` of kit.table. */
|
|
102
|
+
export interface Link extends ModelObject {
|
|
103
|
+
/** The id of a `Record`. */
|
|
104
|
+
get from(): string;
|
|
105
|
+
set from(value: Record | string);
|
|
106
|
+
/** The id of a `Field`. */
|
|
107
|
+
get field(): string;
|
|
108
|
+
set field(value: Field | string);
|
|
109
|
+
/** The id of a `Record`. */
|
|
110
|
+
get to(): string;
|
|
111
|
+
set to(value: Record | string);
|
|
112
|
+
}
|
|
113
|
+
/** The fields a new `Dashboard` takes (`list.add(fields)`). */
|
|
114
|
+
export type DashboardFields = {
|
|
115
|
+
name: string;
|
|
116
|
+
config?: Json | null;
|
|
117
|
+
};
|
|
118
|
+
/** A `Dashboard` of kit.table. */
|
|
119
|
+
export interface Dashboard extends ModelObject {
|
|
120
|
+
name: string;
|
|
121
|
+
config: Json | null;
|
|
122
|
+
readonly widgets: ModelMap<Json>;
|
|
123
|
+
}
|
|
124
|
+
/** Every command of kit.table, by id, with its parameters. */
|
|
125
|
+
export interface TableCommands extends CommandMap {
|
|
126
|
+
/** Undo. Takes back the last step of one scope, the person's or the agent's (by default the caller's own); the other scope's later steps stay. Changes the document. */
|
|
127
|
+
"edit.undo": {
|
|
128
|
+
scope?: "person" | "agent";
|
|
129
|
+
};
|
|
130
|
+
/** Redo. Puts back the last undone step of one scope (by default the caller's own). Changes the document. */
|
|
131
|
+
"edit.redo": {
|
|
132
|
+
scope?: "person" | "agent";
|
|
133
|
+
};
|
|
134
|
+
/** Read the document. Reads the document's title, every table with its fields and views, and its dashboards' ids and titles, without changing anything. Params: the params of the data-document route GET /data-documents/{documentId}: its ids (tableId, ...), query values, and body fields. */
|
|
135
|
+
"table.documents.get": {
|
|
136
|
+
[key: string]: never;
|
|
137
|
+
};
|
|
138
|
+
/** List tables. Lists every table with its id, name, title, fields (ids, names, types, options) and views; start here to learn the ids and field names other calls need. Params: the params of the data-document route GET /tables: its ids (tableId, ...), query values, and body fields. */
|
|
139
|
+
"table.tables.list": {
|
|
140
|
+
[key: string]: never;
|
|
141
|
+
};
|
|
142
|
+
/** Create a table. Creates a table from a title and optionally its fields (each with a type and options) and views; without fields it gets a primary text field Title, without views a grid view All. Answers the table with its ids. Params: the params of the data-document route POST /tables: its ids (tableId, ...), query values, and body fields; asOrigin? (system:<name>) writes as a host feature, outside the undo history. Changes the document. */
|
|
143
|
+
"table.tables.create": {
|
|
144
|
+
title?: string; /** The table's internal name, the key of its values when a field: lowercase ASCII letters, digits and `_`, starting with a letter and not ending with `_` (`^[a-z](?:[a-z0-9_]*[a-z0-9])?$`), unique among the document's tables. An explicit name is kept as given; one not in that form, or already taken (also by an earlier field of the same call), is refused with invalid_params. Without one it is derived from the title: letters and digits kept and lowercased, every other run of characters made one `_`, `_` trimmed, `f_` put before a leading digit, `field` when nothing is left (a title in Chinese, say, for a table too), then `_2`, `_3`, ... when taken. */
|
|
145
|
+
name?: string;
|
|
146
|
+
description?: string;
|
|
147
|
+
fields?: Array<{
|
|
148
|
+
title?: string;
|
|
149
|
+
name?: string;
|
|
150
|
+
type?: "text" | "long_text" | "number" | "date" | "datetime" | "single_select" | "multi_select" | "checkbox" | "url" | "attachment" | "document_link" | "formula" | "ai" | "rating" | "user" | "link_to_record" | "lookup" | "rollup" | "button" | "created_time" | "last_modified_time" | "created_by" | "last_modified_by" | "auto_number";
|
|
151
|
+
primary?: boolean;
|
|
152
|
+
required?: boolean;
|
|
153
|
+
readonly?: boolean;
|
|
154
|
+
options?: {
|
|
155
|
+
choices?: Array<string>;
|
|
156
|
+
target_table_id?: Json;
|
|
157
|
+
allow_multiple?: boolean;
|
|
158
|
+
symmetric_field_id?: Json;
|
|
159
|
+
link_field_id?: Json;
|
|
160
|
+
target_field_id?: Json;
|
|
161
|
+
multi_value_mode?: "list" | "concat";
|
|
162
|
+
aggregation?: "count" | "sum" | "avg" | "max" | "min" | "and" | "or" | "concat";
|
|
163
|
+
max?: number;
|
|
164
|
+
icon?: "star" | "heart" | "thumbs";
|
|
165
|
+
date_format?: "year_month_day_slash" | "year_month_day_time_slash" | "year_month_day_time_zone_slash" | "year_month_day_dash" | "year_month_day_time_dash" | "year_month_day_time_zone_dash" | "month_day_dash" | "month_day_year_slash" | "day_month_year_slash";
|
|
166
|
+
showAs?: "text" | "markdown";
|
|
167
|
+
label?: string;
|
|
168
|
+
action?: Json;
|
|
169
|
+
ai_config?: {
|
|
170
|
+
type?: "summarize" | "translate" | "extract" | "improve" | "customize" | "classify" | "text_generation" | "image_generation" | "image_customization";
|
|
171
|
+
source_field_id?: Json;
|
|
172
|
+
prompt?: string;
|
|
173
|
+
target_language?: string;
|
|
174
|
+
categories?: Array<string>;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
formula?: string;
|
|
178
|
+
ai_prompt?: string;
|
|
179
|
+
}>;
|
|
180
|
+
views?: Array<{
|
|
181
|
+
title?: string;
|
|
182
|
+
type?: "grid" | "kanban" | "calendar" | "gallery";
|
|
183
|
+
config?: Json;
|
|
184
|
+
}>; /** system:<name> writes as a host feature, outside the undo history. Agents leave it out. */
|
|
185
|
+
asOrigin?: string;
|
|
186
|
+
};
|
|
187
|
+
/** Update a table. Changes a table's title, description, metadata or primary field; its fields and records stay as they are. Params: the params of the data-document route PATCH /tables/{tableId}: its ids (tableId, ...), query values, and body fields; asOrigin? (system:<name>) writes as a host feature, outside the undo history. Changes the document. */
|
|
188
|
+
"table.tables.update": {
|
|
189
|
+
tableId: Json; /** The table's new title. */
|
|
190
|
+
title?: string; /** The table's new description. */
|
|
191
|
+
description?: string; /** Free-form metadata the host keeps with the table. */
|
|
192
|
+
meta?: Json; /** The id of the field that becomes the primary field. */
|
|
193
|
+
primary_field_id?: Json; /** system:<name> writes as a host feature, outside the undo history. Agents leave it out. */
|
|
194
|
+
asOrigin?: string;
|
|
195
|
+
};
|
|
196
|
+
/** Delete a table. Deletes a table with its fields, records and views, and every link to or from its records. Params: the params of the data-document route DELETE /tables/{tableId}: its ids (tableId, ...), query values, and body fields; asOrigin? (system:<name>) writes as a host feature, outside the undo history. Changes the document. */
|
|
197
|
+
"table.tables.delete": {
|
|
198
|
+
tableId: Json; /** system:<name> writes as a host feature, outside the undo history. Agents leave it out. */
|
|
199
|
+
asOrigin?: string;
|
|
200
|
+
};
|
|
201
|
+
/** List fields. Lists a table's fields (columns) in order, with their ids, names, types and options. Params: the params of the data-document route GET /tables/{tableId}/fields: its ids (tableId, ...), query values, and body fields. */
|
|
202
|
+
"table.fields.list": {
|
|
203
|
+
tableId: Json;
|
|
204
|
+
};
|
|
205
|
+
/** Create a field. Adds a field (column) to a table: its title, its type (text, number, single_select, date, link_to_record, formula, ai, ...) and the options that type reads; answers the field with its id and name. Params: the params of the data-document route POST /tables/{tableId}/fields: its ids (tableId, ...), query values, and body fields; asOrigin? (system:<name>) writes as a host feature, outside the undo history. Changes the document. */
|
|
206
|
+
"table.fields.create": {
|
|
207
|
+
tableId: Json;
|
|
208
|
+
title?: string; /** The field's internal name, the key of its values when a field: lowercase ASCII letters, digits and `_`, starting with a letter and not ending with `_` (`^[a-z](?:[a-z0-9_]*[a-z0-9])?$`), unique among the table's fields. An explicit name is kept as given; one not in that form, or already taken (also by an earlier field of the same call), is refused with invalid_params. Without one it is derived from the title: letters and digits kept and lowercased, every other run of characters made one `_`, `_` trimmed, `f_` put before a leading digit, `field` when nothing is left (a title in Chinese, say, for a table too), then `_2`, `_3`, ... when taken. */
|
|
209
|
+
name?: string; /** The field's type (default text). There is no email or phone type: use text, or url for a link to open.?text: One line of text (a string).?long_text: Text of several lines (a string); options.showAs shows it as text or rendered markdown.?number: A number.?date: A calendar date written as YYYY-MM-DD; options.date_format is how the editor shows it.?datetime: A date and time as an ISO 8601 string; options.date_format is how the editor shows it.?single_select: One of options.choices (a string).?multi_select: Some of options.choices (a list of strings).?checkbox: true or false.?url: A web address (a string).?attachment: Files kept in the document: a list of the values table.attachments.put answers.?document_link: A reference to another document (a string).?formula: Computed from the field's `formula` expression, which names fields in braces ({price} * 2); read-only.?ai: Written by the host's model as options.ai_config says (table.ai.prepare, then table.ai.apply); read-only.?rating: A whole number from 0 to options.max (default 5).?user: A person, {id, name, avatar?}, or a list of them.?link_to_record: Links to records of the table options.target_table_id names; set with table.links.replace, read as [{row_key, display}].?lookup: Computed: the values of options.target_field_id in the records linked through options.link_field_id.?rollup: Computed: options.aggregation over the records linked through options.link_field_id (their options.target_field_id values).?button: A button labelled options.label that runs options.action; it holds no value.?created_time: Reserved for when the record was created; this engine leaves it empty.?last_modified_time: Reserved for when the record last changed; this engine leaves it empty.?created_by: Reserved for who created the record; this engine leaves it empty.?last_modified_by: Reserved for who last changed the record; this engine leaves it empty.?auto_number: Reserved for a running number; this engine leaves it empty. */
|
|
210
|
+
type?: "text" | "long_text" | "number" | "date" | "datetime" | "single_select" | "multi_select" | "checkbox" | "url" | "attachment" | "document_link" | "formula" | "ai" | "rating" | "user" | "link_to_record" | "lookup" | "rollup" | "button" | "created_time" | "last_modified_time" | "created_by" | "last_modified_by" | "auto_number";
|
|
211
|
+
required?: boolean;
|
|
212
|
+
readonly?: boolean;
|
|
213
|
+
is_primary?: boolean; /** Settings of the field's type: only the keys its type reads matter, and other keys are kept as they are. */
|
|
214
|
+
options?: {
|
|
215
|
+
choices?: Array<string>;
|
|
216
|
+
target_table_id?: Json;
|
|
217
|
+
allow_multiple?: boolean;
|
|
218
|
+
symmetric_field_id?: Json;
|
|
219
|
+
link_field_id?: Json;
|
|
220
|
+
target_field_id?: Json;
|
|
221
|
+
multi_value_mode?: "list" | "concat";
|
|
222
|
+
aggregation?: "count" | "sum" | "avg" | "max" | "min" | "and" | "or" | "concat";
|
|
223
|
+
max?: number;
|
|
224
|
+
icon?: "star" | "heart" | "thumbs";
|
|
225
|
+
date_format?: "year_month_day_slash" | "year_month_day_time_slash" | "year_month_day_time_zone_slash" | "year_month_day_dash" | "year_month_day_time_dash" | "year_month_day_time_zone_dash" | "month_day_dash" | "month_day_year_slash" | "day_month_year_slash";
|
|
226
|
+
showAs?: "text" | "markdown";
|
|
227
|
+
label?: string;
|
|
228
|
+
action?: Json;
|
|
229
|
+
ai_config?: {
|
|
230
|
+
type?: "summarize" | "translate" | "extract" | "improve" | "customize" | "classify" | "text_generation" | "image_generation" | "image_customization";
|
|
231
|
+
source_field_id?: Json;
|
|
232
|
+
prompt?: string;
|
|
233
|
+
target_language?: string;
|
|
234
|
+
categories?: Array<string>;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
formula?: string;
|
|
238
|
+
ai_prompt?: string;
|
|
239
|
+
meta?: Json;
|
|
240
|
+
order?: number; /** system:<name> writes as a host feature, outside the undo history. Agents leave it out. */
|
|
241
|
+
asOrigin?: string;
|
|
242
|
+
};
|
|
243
|
+
/** Update a field. Changes a field's title, type, options, formula, AI prompt, flags or primary status; values already stored stay as they are when the type changes. Params: the params of the data-document route PATCH /tables/{tableId}/fields/{fieldId}: its ids (tableId, ...), query values, and body fields; asOrigin? (system:<name>) writes as a host feature, outside the undo history. Acts on `fieldId`. Changes the document. */
|
|
244
|
+
"table.fields.update": {
|
|
245
|
+
tableId: Json; /** The field's id. */
|
|
246
|
+
fieldId: Json;
|
|
247
|
+
title?: string; /** The field's type (default text). There is no email or phone type: use text, or url for a link to open.?text: One line of text (a string).?long_text: Text of several lines (a string); options.showAs shows it as text or rendered markdown.?number: A number.?date: A calendar date written as YYYY-MM-DD; options.date_format is how the editor shows it.?datetime: A date and time as an ISO 8601 string; options.date_format is how the editor shows it.?single_select: One of options.choices (a string).?multi_select: Some of options.choices (a list of strings).?checkbox: true or false.?url: A web address (a string).?attachment: Files kept in the document: a list of the values table.attachments.put answers.?document_link: A reference to another document (a string).?formula: Computed from the field's `formula` expression, which names fields in braces ({price} * 2); read-only.?ai: Written by the host's model as options.ai_config says (table.ai.prepare, then table.ai.apply); read-only.?rating: A whole number from 0 to options.max (default 5).?user: A person, {id, name, avatar?}, or a list of them.?link_to_record: Links to records of the table options.target_table_id names; set with table.links.replace, read as [{row_key, display}].?lookup: Computed: the values of options.target_field_id in the records linked through options.link_field_id.?rollup: Computed: options.aggregation over the records linked through options.link_field_id (their options.target_field_id values).?button: A button labelled options.label that runs options.action; it holds no value.?created_time: Reserved for when the record was created; this engine leaves it empty.?last_modified_time: Reserved for when the record last changed; this engine leaves it empty.?created_by: Reserved for who created the record; this engine leaves it empty.?last_modified_by: Reserved for who last changed the record; this engine leaves it empty.?auto_number: Reserved for a running number; this engine leaves it empty. */
|
|
248
|
+
type?: "text" | "long_text" | "number" | "date" | "datetime" | "single_select" | "multi_select" | "checkbox" | "url" | "attachment" | "document_link" | "formula" | "ai" | "rating" | "user" | "link_to_record" | "lookup" | "rollup" | "button" | "created_time" | "last_modified_time" | "created_by" | "last_modified_by" | "auto_number";
|
|
249
|
+
required?: boolean;
|
|
250
|
+
readonly?: boolean;
|
|
251
|
+
is_primary?: boolean; /** Settings of the field's type: only the keys its type reads matter, and other keys are kept as they are. */
|
|
252
|
+
options?: {
|
|
253
|
+
choices?: Array<string>;
|
|
254
|
+
target_table_id?: Json;
|
|
255
|
+
allow_multiple?: boolean;
|
|
256
|
+
symmetric_field_id?: Json;
|
|
257
|
+
link_field_id?: Json;
|
|
258
|
+
target_field_id?: Json;
|
|
259
|
+
multi_value_mode?: "list" | "concat";
|
|
260
|
+
aggregation?: "count" | "sum" | "avg" | "max" | "min" | "and" | "or" | "concat";
|
|
261
|
+
max?: number;
|
|
262
|
+
icon?: "star" | "heart" | "thumbs";
|
|
263
|
+
date_format?: "year_month_day_slash" | "year_month_day_time_slash" | "year_month_day_time_zone_slash" | "year_month_day_dash" | "year_month_day_time_dash" | "year_month_day_time_zone_dash" | "month_day_dash" | "month_day_year_slash" | "day_month_year_slash";
|
|
264
|
+
showAs?: "text" | "markdown";
|
|
265
|
+
label?: string;
|
|
266
|
+
action?: Json;
|
|
267
|
+
ai_config?: {
|
|
268
|
+
type?: "summarize" | "translate" | "extract" | "improve" | "customize" | "classify" | "text_generation" | "image_generation" | "image_customization";
|
|
269
|
+
source_field_id?: Json;
|
|
270
|
+
prompt?: string;
|
|
271
|
+
target_language?: string;
|
|
272
|
+
categories?: Array<string>;
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
formula?: string;
|
|
276
|
+
ai_prompt?: string;
|
|
277
|
+
meta?: Json; /** system:<name> writes as a host feature, outside the undo history. Agents leave it out. */
|
|
278
|
+
asOrigin?: string;
|
|
279
|
+
};
|
|
280
|
+
/** Delete a field. Deletes a field and its values from every record. Params: the params of the data-document route DELETE /tables/{tableId}/fields/{fieldId}: its ids (tableId, ...), query values, and body fields; asOrigin? (system:<name>) writes as a host feature, outside the undo history. Acts on `fieldId`. Changes the document. */
|
|
281
|
+
"table.fields.delete": {
|
|
282
|
+
tableId: Json; /** The field's id. */
|
|
283
|
+
fieldId: Json; /** system:<name> writes as a host feature, outside the undo history. Agents leave it out. */
|
|
284
|
+
asOrigin?: string;
|
|
285
|
+
};
|
|
286
|
+
/** Duplicate a field. Adds a copy of a field's definition (type, options, formula) next to it, titled with "copy"; the copy starts with no values. Params: the params of the data-document route POST /tables/{tableId}/fields/{fieldId}/duplicate: its ids (tableId, ...), query values, and body fields; asOrigin? (system:<name>) writes as a host feature, outside the undo history. Acts on `fieldId`. Changes the document. */
|
|
287
|
+
"table.fields.duplicate": {
|
|
288
|
+
tableId: Json; /** The field's id. */
|
|
289
|
+
fieldId: Json; /** system:<name> writes as a host feature, outside the undo history. Agents leave it out. */
|
|
290
|
+
asOrigin?: string;
|
|
291
|
+
};
|
|
292
|
+
/** Find records to link. Searches the records a link_to_record field can link to (in its target table) by their display text, for choosing link values; changes nothing. Params: the params of the data-document route GET /tables/{tableId}/fields/{fieldId}/link-candidates: its ids (tableId, ...), query values, and body fields. Acts on `fieldId`. */
|
|
293
|
+
"table.fields.linkCandidates": {
|
|
294
|
+
tableId: Json; /** The field's id. */
|
|
295
|
+
fieldId: Json; /** Text to match in the candidates' display values. */
|
|
296
|
+
q?: string; /** How many items to answer at most. */
|
|
297
|
+
limit?: number;
|
|
298
|
+
};
|
|
299
|
+
/** List views. Lists a table's views (grid, kanban, calendar, gallery) with their ids, types and configuration. Params: the params of the data-document route GET /tables/{tableId}/views: its ids (tableId, ...), query values, and body fields. */
|
|
300
|
+
"table.views.list": {
|
|
301
|
+
tableId: Json;
|
|
302
|
+
};
|
|
303
|
+
/** Create a view. Creates a view of a table with a title, a type (grid, kanban, calendar or gallery) and a configuration; answers the view with its id. Params: the params of the data-document route POST /tables/{tableId}/views: its ids (tableId, ...), query values, and body fields; asOrigin? (system:<name>) writes as a host feature, outside the undo history. Changes the document. */
|
|
304
|
+
"table.views.create": {
|
|
305
|
+
tableId: Json;
|
|
306
|
+
title?: string; /** The view's type (default grid).?grid: Rows and columns.?kanban: Cards in columns, one per choice of a single_select field (config group_field_name, else the first single_select) or per checkbox value.?calendar: Records placed on the table's first date or datetime field.?gallery: Cards with a cover picture (config cover_field_name, else the first attachment or url field). */
|
|
307
|
+
type?: "grid" | "kanban" | "calendar" | "gallery";
|
|
308
|
+
config?: Json; /** system:<name> writes as a host feature, outside the undo history. Agents leave it out. */
|
|
309
|
+
asOrigin?: string;
|
|
310
|
+
};
|
|
311
|
+
/** Update a view. Renames a view, changes its type, or replaces its configuration. Params: the params of the data-document route PATCH /tables/{tableId}/views/{viewId}: its ids (tableId, ...), query values, and body fields; asOrigin? (system:<name>) writes as a host feature, outside the undo history. Changes the document. */
|
|
312
|
+
"table.views.update": {
|
|
313
|
+
tableId: Json; /** The view's id. */
|
|
314
|
+
viewId: Json;
|
|
315
|
+
title?: string; /** The view's type (default grid).?grid: Rows and columns.?kanban: Cards in columns, one per choice of a single_select field (config group_field_name, else the first single_select) or per checkbox value.?calendar: Records placed on the table's first date or datetime field.?gallery: Cards with a cover picture (config cover_field_name, else the first attachment or url field). */
|
|
316
|
+
type?: "grid" | "kanban" | "calendar" | "gallery"; /** The view's configuration object. */
|
|
317
|
+
config?: Json; /** system:<name> writes as a host feature, outside the undo history. Agents leave it out. */
|
|
318
|
+
asOrigin?: string;
|
|
319
|
+
};
|
|
320
|
+
/** Delete a view. Deletes a view; the table's data is not affected. Params: the params of the data-document route DELETE /tables/{tableId}/views/{viewId}: its ids (tableId, ...), query values, and body fields; asOrigin? (system:<name>) writes as a host feature, outside the undo history. Changes the document. */
|
|
321
|
+
"table.views.delete": {
|
|
322
|
+
tableId: Json; /** The view's id. */
|
|
323
|
+
viewId: Json; /** system:<name> writes as a host feature, outside the undo history. Agents leave it out. */
|
|
324
|
+
asOrigin?: string;
|
|
325
|
+
};
|
|
326
|
+
/** Read a view's filter. Reads a view's filter as a tree of and/or groups of field conditions (null when it has none). Params: the params of the data-document route GET /tables/{tableId}/views/{viewId}/filter-tree: its ids (tableId, ...), query values, and body fields. */
|
|
327
|
+
"table.views.getFilterTree": {
|
|
328
|
+
tableId: Json; /** The view's id. */
|
|
329
|
+
viewId: Json;
|
|
330
|
+
};
|
|
331
|
+
/** Set a view's filter. Replaces a view's filter conditions with a tree of and/or groups of field conditions. Params: the params of the data-document route PUT /tables/{tableId}/views/{viewId}/filter-tree: its ids (tableId, ...), query values, and body fields; asOrigin? (system:<name>) writes as a host feature, outside the undo history. Changes the document. */
|
|
332
|
+
"table.views.putFilterTree": {
|
|
333
|
+
tableId: Json; /** The view's id. */
|
|
334
|
+
viewId: Json;
|
|
335
|
+
tree?: {
|
|
336
|
+
conjunction?: string;
|
|
337
|
+
children?: Array<{
|
|
338
|
+
group?: {
|
|
339
|
+
conjunction?: string;
|
|
340
|
+
children?: Array<Json>;
|
|
341
|
+
};
|
|
342
|
+
condition?: {
|
|
343
|
+
field_id?: Json;
|
|
344
|
+
operator?: string;
|
|
345
|
+
value?: Json;
|
|
346
|
+
};
|
|
347
|
+
}>;
|
|
348
|
+
}; /** system:<name> writes as a host feature, outside the undo history. Agents leave it out. */
|
|
349
|
+
asOrigin?: string;
|
|
350
|
+
};
|
|
351
|
+
/** Read a view's sorts. Reads a view's sort order: the fields and directions, first to last. Params: the params of the data-document route GET /tables/{tableId}/views/{viewId}/sorts: its ids (tableId, ...), query values, and body fields. */
|
|
352
|
+
"table.views.getSorts": {
|
|
353
|
+
tableId: Json; /** The view's id. */
|
|
354
|
+
viewId: Json;
|
|
355
|
+
};
|
|
356
|
+
/** Set a view's sorts. Replaces a view's sort order with a list of fields and directions. Params: the params of the data-document route PUT /tables/{tableId}/views/{viewId}/sorts: its ids (tableId, ...), query values, and body fields; asOrigin? (system:<name>) writes as a host feature, outside the undo history. Changes the document. */
|
|
357
|
+
"table.views.putSorts": {
|
|
358
|
+
tableId: Json; /** The view's id. */
|
|
359
|
+
viewId: Json;
|
|
360
|
+
items?: Array<{
|
|
361
|
+
field_id?: Json;
|
|
362
|
+
direction?: string;
|
|
363
|
+
}>; /** system:<name> writes as a host feature, outside the undo history. Agents leave it out. */
|
|
364
|
+
asOrigin?: string;
|
|
365
|
+
};
|
|
366
|
+
/** Read a view's groups. Reads how a view groups its records: the fields and directions. Params: the params of the data-document route GET /tables/{tableId}/views/{viewId}/groups: its ids (tableId, ...), query values, and body fields. */
|
|
367
|
+
"table.views.getGroups": {
|
|
368
|
+
tableId: Json; /** The view's id. */
|
|
369
|
+
viewId: Json;
|
|
370
|
+
};
|
|
371
|
+
/** Set a view's groups. Replaces how a view groups its records with a list of fields and directions. Params: the params of the data-document route PUT /tables/{tableId}/views/{viewId}/groups: its ids (tableId, ...), query values, and body fields; asOrigin? (system:<name>) writes as a host feature, outside the undo history. Changes the document. */
|
|
372
|
+
"table.views.putGroups": {
|
|
373
|
+
tableId: Json; /** The view's id. */
|
|
374
|
+
viewId: Json;
|
|
375
|
+
items?: Array<{
|
|
376
|
+
field_id?: Json;
|
|
377
|
+
direction?: string;
|
|
378
|
+
}>; /** system:<name> writes as a host feature, outside the undo history. Agents leave it out. */
|
|
379
|
+
asOrigin?: string;
|
|
380
|
+
};
|
|
381
|
+
/** Change a view's row height or frozen columns. Changes a view's row height or frozen column count, keeping the rest of its configuration; answers the whole configuration. Params: the params of the data-document route PATCH /tables/{tableId}/views/{viewId}/config: its ids (tableId, ...), query values, and body fields; asOrigin? (system:<name>) writes as a host feature, outside the undo history. Changes the document. */
|
|
382
|
+
"table.views.patchConfig": {
|
|
383
|
+
tableId: Json; /** The view's id. */
|
|
384
|
+
viewId: Json;
|
|
385
|
+
row_height?: string;
|
|
386
|
+
frozen_column_count?: number;
|
|
387
|
+
search_query?: string; /** system:<name> writes as a host feature, outside the undo history. Agents leave it out. */
|
|
388
|
+
asOrigin?: string;
|
|
389
|
+
};
|
|
390
|
+
/** List a view's field settings. Lists the per-field settings a view stores (visibility, width, position, frozen); fields without settings show with the defaults. Params: the params of the data-document route GET /tables/{tableId}/views/{viewId}/view-fields: its ids (tableId, ...), query values, and body fields. */
|
|
391
|
+
"table.views.listFields": {
|
|
392
|
+
tableId: Json; /** The view's id. */
|
|
393
|
+
viewId: Json;
|
|
394
|
+
};
|
|
395
|
+
/** Show, hide, resize or move a field in a view. Shows, hides, resizes, moves or freezes one field in one view. Params: the params of the data-document route PATCH /tables/{tableId}/views/{viewId}/view-fields/{fieldId}: its ids (tableId, ...), query values, and body fields; asOrigin? (system:<name>) writes as a host feature, outside the undo history. Acts on `fieldId`. Changes the document. */
|
|
396
|
+
"table.views.patchField": {
|
|
397
|
+
tableId: Json; /** The view's id. */
|
|
398
|
+
viewId: Json; /** The field's id. */
|
|
399
|
+
fieldId: Json;
|
|
400
|
+
visible?: boolean;
|
|
401
|
+
width?: number;
|
|
402
|
+
position?: number;
|
|
403
|
+
frozen?: boolean; /** system:<name> writes as a host feature, outside the undo history. Agents leave it out. */
|
|
404
|
+
asOrigin?: string;
|
|
405
|
+
};
|
|
406
|
+
/** List records. Reads a table's records (rows) with their values keyed by field name, a page at a time (limit, offset), with the total. Params: the params of the data-document route GET /tables/{tableId}/records: its ids (tableId, ...), query values, and body fields. */
|
|
407
|
+
"table.records.list": {
|
|
408
|
+
tableId: Json; /** How many items to answer at most. */
|
|
409
|
+
limit?: number; /** How many items to skip, from 0. */
|
|
410
|
+
offset?: number;
|
|
411
|
+
};
|
|
412
|
+
/** Create a record. Adds one record to a table with values keyed by field name (not title); a key that names no field is refused and nothing is written. Answers the record with its id and row_key. Params: the params of the data-document route POST /tables/{tableId}/records: its ids (tableId, ...), query values, and body fields; asOrigin? (system:<name>) writes as a host feature, outside the undo history. Changes the document. */
|
|
413
|
+
"table.records.create": {
|
|
414
|
+
tableId: Json; /** Values keyed by field name. Creation must supply every writable required field; inspect the table first. For the starter table, use {"title":"New record"}. */
|
|
415
|
+
values?: {
|
|
416
|
+
[key: string]: Json;
|
|
417
|
+
};
|
|
418
|
+
order?: number; /** system:<name> writes as a host feature, outside the undo history. Agents leave it out. */
|
|
419
|
+
asOrigin?: string;
|
|
420
|
+
};
|
|
421
|
+
/** Update a record. Changes values of one record, keyed by field name (null clears one); fields not named keep their values, and a key that names no field is refused, changing nothing. Params: the params of the data-document route PATCH /tables/{tableId}/records/{recordId}: its ids (tableId, ...), query values, and body fields; asOrigin? (system:<name>) writes as a host feature, outside the undo history. Acts on `recordId`. Changes the document. */
|
|
422
|
+
"table.records.update": {
|
|
423
|
+
tableId: Json; /** The record's id. */
|
|
424
|
+
recordId: Json; /** Values keyed by field name. Creation must supply every writable required field; inspect the table first. For the starter table, use {"title":"New record"}. */
|
|
425
|
+
values?: {
|
|
426
|
+
[key: string]: Json;
|
|
427
|
+
};
|
|
428
|
+
order?: number; /** system:<name> writes as a host feature, outside the undo history. Agents leave it out. */
|
|
429
|
+
asOrigin?: string;
|
|
430
|
+
};
|
|
431
|
+
/** Delete a record. Deletes one record and its links. Params: the params of the data-document route DELETE /tables/{tableId}/records/{recordId}: its ids (tableId, ...), query values, and body fields; asOrigin? (system:<name>) writes as a host feature, outside the undo history. Acts on `recordId`. Changes the document. */
|
|
432
|
+
"table.records.delete": {
|
|
433
|
+
tableId: Json; /** The record's id. */
|
|
434
|
+
recordId: Json; /** system:<name> writes as a host feature, outside the undo history. Agents leave it out. */
|
|
435
|
+
asOrigin?: string;
|
|
436
|
+
};
|
|
437
|
+
/** Read a record's history. Reads one record's change history, newest first: its creation and each field update, with the values before and after, who made it and when. Params: the params of the data-document route GET /tables/{tableId}/records/{recordId}/history: its ids (tableId, ...), query values, and body fields. Acts on `recordId`. */
|
|
438
|
+
"table.records.history": {
|
|
439
|
+
tableId: Json; /** The record's id. */
|
|
440
|
+
recordId: Json; /** How many items to answer at most. */
|
|
441
|
+
limit?: number; /** How many items to skip, from 0. */
|
|
442
|
+
offset?: number;
|
|
443
|
+
};
|
|
444
|
+
/** Delete many records. Deletes many records at once by row_key, as one step; answers how many went and which keys named no record. Params: the params of the data-document route POST /tables/{tableId}/records/bulk-delete: its ids (tableId, ...), query values, and body fields; asOrigin? (system:<name>) writes as a host feature, outside the undo history. Changes the document. */
|
|
445
|
+
"table.records.bulkDelete": {
|
|
446
|
+
tableId: Json;
|
|
447
|
+
row_keys?: Array<Json>;
|
|
448
|
+
target_position?: number; /** system:<name> writes as a host feature, outside the undo history. Agents leave it out. */
|
|
449
|
+
asOrigin?: string;
|
|
450
|
+
};
|
|
451
|
+
/** Copy records. Copies records by row_key into the same table at a position, as one step; answers the copies' row keys. Params: the params of the data-document route POST /tables/{tableId}/records/bulk-copy: its ids (tableId, ...), query values, and body fields; asOrigin? (system:<name>) writes as a host feature, outside the undo history. Changes the document. */
|
|
452
|
+
"table.records.bulkCopy": {
|
|
453
|
+
tableId: Json;
|
|
454
|
+
row_keys?: Array<Json>;
|
|
455
|
+
target_position?: number; /** system:<name> writes as a host feature, outside the undo history. Agents leave it out. */
|
|
456
|
+
asOrigin?: string;
|
|
457
|
+
};
|
|
458
|
+
/** List a record's links. Reads the records one record links to through a link_to_record field, as row keys and display text. Params: the params of the data-document route GET /tables/{tableId}/records/{recordId}/links: its ids (tableId, ...), query values, and body fields. Acts on `recordId`. */
|
|
459
|
+
"table.links.list": {
|
|
460
|
+
tableId: Json; /** The record's id. */
|
|
461
|
+
recordId: Json; /** The link field's id. */
|
|
462
|
+
field_id: Json;
|
|
463
|
+
};
|
|
464
|
+
/** Set a record's links. Sets the records one record links to through a link_to_record field, replacing its current links. Params: the params of the data-document route POST /tables/{tableId}/records/{recordId}/links: its ids (tableId, ...), query values, and body fields; asOrigin? (system:<name>) writes as a host feature, outside the undo history. Acts on `recordId`. Changes the document. */
|
|
465
|
+
"table.links.replace": {
|
|
466
|
+
tableId: Json; /** The record's id. */
|
|
467
|
+
recordId: Json;
|
|
468
|
+
field_id?: Json;
|
|
469
|
+
target_row_keys?: Array<Json>; /** system:<name> writes as a host feature, outside the undo history. Agents leave it out. */
|
|
470
|
+
asOrigin?: string;
|
|
471
|
+
};
|
|
472
|
+
/** Remove a record's links. Removes some of one record's links in a link_to_record field, by the linked records' row keys. Params: the params of the data-document route DELETE /tables/{tableId}/records/{recordId}/links: its ids (tableId, ...), query values, and body fields; asOrigin? (system:<name>) writes as a host feature, outside the undo history. Acts on `recordId`. Changes the document. */
|
|
473
|
+
"table.links.delete": {
|
|
474
|
+
tableId: Json; /** The record's id. */
|
|
475
|
+
recordId: Json;
|
|
476
|
+
field_id?: Json;
|
|
477
|
+
target_row_keys?: Array<Json>; /** system:<name> writes as a host feature, outside the undo history. Agents leave it out. */
|
|
478
|
+
asOrigin?: string;
|
|
479
|
+
};
|
|
480
|
+
/** Import CSV text into a table. Adds one record per row of CSV text to an existing table; the header row names fields by title or name, and other columns are left out. Params: the params of the data-document route POST /tables/{tableId}/import/csv: its ids (tableId, ...), query values, and body fields; asOrigin? (system:<name>) writes as a host feature, outside the undo history. Changes the document. */
|
|
481
|
+
"table.csv.import": {
|
|
482
|
+
tableId: Json;
|
|
483
|
+
content?: string; /** system:<name> writes as a host feature, outside the undo history. Agents leave it out. */
|
|
484
|
+
asOrigin?: string;
|
|
485
|
+
};
|
|
486
|
+
/** Export a table as CSV text. Answers a table as CSV text with a file name, without changing anything. Params: the params of the data-document route GET /tables/{tableId}/export/csv: its ids (tableId, ...), query values, and body fields. */
|
|
487
|
+
"table.csv.export": {
|
|
488
|
+
tableId: Json;
|
|
489
|
+
};
|
|
490
|
+
/** Export a table as a Markdown table. Answers a table as a Markdown table, without changing anything. Params: the params of the data-document route GET /tables/{tableId}/export/markdown: its ids (tableId, ...), query values, and body fields. */
|
|
491
|
+
"table.markdown.export": {
|
|
492
|
+
tableId: Json;
|
|
493
|
+
};
|
|
494
|
+
/** Run record and field operations as one step. Runs several record and field operations (set cells, create, delete or move records, move fields) as one atomic step that undoes together; a values key that names no field refuses the whole call. Params: the params of the data-document route POST /transact: its ids (tableId, ...), query values, and body fields; asOrigin? (system:<name>) writes as a host feature, outside the undo history. Changes the document. */
|
|
495
|
+
"table.transact": {
|
|
496
|
+
ops: Array<Json>; /** system:<name> writes as a host feature, outside the undo history. Agents leave it out. */
|
|
497
|
+
asOrigin?: string;
|
|
498
|
+
};
|
|
499
|
+
/** Undo a step. Takes back the last step of one scope (person or agent; by default the caller's own) and answers what it changed, as edit.undo does. Params: the params of the data-document route POST /undo: its ids (tableId, ...), query values, and body fields; asOrigin? (system:<name>) writes as a host feature, outside the undo history. Changes the document. */
|
|
500
|
+
"table.undo": {
|
|
501
|
+
scope?: "person" | "agent";
|
|
502
|
+
};
|
|
503
|
+
/** Redo a step. Puts back the last undone step of one scope (by default the caller's own) and answers what it changed, as edit.redo does. Params: the params of the data-document route POST /redo: its ids (tableId, ...), query values, and body fields; asOrigin? (system:<name>) writes as a host feature, outside the undo history. Changes the document. */
|
|
504
|
+
"table.redo": {
|
|
505
|
+
scope?: "person" | "agent";
|
|
506
|
+
};
|
|
507
|
+
/** Read whether undo and redo are possible. Reads whether there is a step to undo and a step to redo. Params: the params of the data-document route GET /history-state: its ids (tableId, ...), query values, and body fields. */
|
|
508
|
+
"table.historyState": {
|
|
509
|
+
[key: string]: never;
|
|
510
|
+
};
|
|
511
|
+
/** List dashboards. Lists the dashboards with their ids, titles, layout and widgets. Params: the params of the data-document route GET /dashboards: its ids (tableId, ...), query values, and body fields. */
|
|
512
|
+
"table.dashboards.list": {
|
|
513
|
+
[key: string]: never;
|
|
514
|
+
};
|
|
515
|
+
/** Create or replace a dashboard. Creates or replaces a dashboard by its id: its title, source table, layout and widgets (charts, numbers, lists over tables). Params: the params of the data-document route PUT /dashboards/{dashboardId}: its ids (tableId, ...), query values, and body fields; asOrigin? (system:<name>) writes as a host feature, outside the undo history. Changes the document. */
|
|
516
|
+
"table.dashboards.upsert": {
|
|
517
|
+
dashboardId: Json;
|
|
518
|
+
title?: string;
|
|
519
|
+
order?: number;
|
|
520
|
+
source_table_id?: Json; /** The widgets' positions. */
|
|
521
|
+
layout?: Array<Json>; /** The widgets, each an object with its own `id`. */
|
|
522
|
+
widgets?: Array<{
|
|
523
|
+
[key: string]: Json;
|
|
524
|
+
}>; /** system:<name> writes as a host feature, outside the undo history. Agents leave it out. */
|
|
525
|
+
asOrigin?: string;
|
|
526
|
+
};
|
|
527
|
+
/** Delete a dashboard. Deletes a dashboard; tables are not affected. Params: the params of the data-document route DELETE /dashboards/{dashboardId}: its ids (tableId, ...), query values, and body fields; asOrigin? (system:<name>) writes as a host feature, outside the undo history. Changes the document. */
|
|
528
|
+
"table.dashboards.delete": {
|
|
529
|
+
dashboardId: Json; /** system:<name> writes as a host feature, outside the undo history. Agents leave it out. */
|
|
530
|
+
asOrigin?: string;
|
|
531
|
+
};
|
|
532
|
+
/** Store an attachment. Stores a file's bytes (base64) in the document; answers the attachment value (url, name, type, size) to put in an attachment field's list. Params: the params of the data-document route POST /tables/{tableId}/attachments: its ids (tableId, ...), query values, and body fields; asOrigin? (system:<name>) writes as a host feature, outside the undo history. Changes the document. */
|
|
533
|
+
"table.attachments.put": {
|
|
534
|
+
tableId: Json;
|
|
535
|
+
name?: string;
|
|
536
|
+
mimeType?: string; /** The file's bytes, standard base64. */
|
|
537
|
+
data?: string; /** system:<name> writes as a host feature, outside the undo history. Agents leave it out. */
|
|
538
|
+
asOrigin?: string;
|
|
539
|
+
};
|
|
540
|
+
/** Read an attachment. Reads an attachment's bytes (base64), name and type by its blob hash. Params: the params of the data-document route GET /blobs/{hash}: its ids (tableId, ...), query values, and body fields. */
|
|
541
|
+
"table.attachments.read": {
|
|
542
|
+
hash: string;
|
|
543
|
+
};
|
|
544
|
+
/** Preview a file import. Parses a CSV, TSV or spreadsheet file given as base64 and answers its sheets, detected columns and types and sample rows, without changing anything. Params: {fileName, content (base64 of the bytes), source?, sheet?}: the data-import preview request. */
|
|
545
|
+
"table.import.preview": {
|
|
546
|
+
fileName?: string;
|
|
547
|
+
content?: string; /** A preview request's `source`: `{ kind: "workspace", workspace_path }` names the workspace file?the host read the bytes from; anything else is an upload named by `fileName`. */
|
|
548
|
+
source?: {
|
|
549
|
+
kind?: string;
|
|
550
|
+
workspace_path?: string;
|
|
551
|
+
};
|
|
552
|
+
sheet?: string;
|
|
553
|
+
};
|
|
554
|
+
/** Import a file into a table. Imports a file given as base64 into a new or existing table, with write mode, schema mode, unique key and field overrides. Params: the data-import execute request (its destination table, write_mode, schema_mode, unique_by?, field_overrides?, import_token?) with fileName, content (base64 of the bytes), and sheet?; asOrigin? (system:<name>) writes as a host feature. Changes the document. */
|
|
555
|
+
"table.import.run": {
|
|
556
|
+
import_token?: string; /** The execute request's `target`. `document_id` is not checked: the kit has one document. */
|
|
557
|
+
target?: {
|
|
558
|
+
kind?: string;
|
|
559
|
+
path?: string;
|
|
560
|
+
table_title?: string;
|
|
561
|
+
document_id?: number;
|
|
562
|
+
table_id?: Json;
|
|
563
|
+
};
|
|
564
|
+
write_mode?: string;
|
|
565
|
+
schema_mode?: string;
|
|
566
|
+
unique_by?: Array<string>;
|
|
567
|
+
field_overrides?: Array<{
|
|
568
|
+
index?: number;
|
|
569
|
+
title?: string;
|
|
570
|
+
type?: string;
|
|
571
|
+
options?: {
|
|
572
|
+
[key: string]: Json;
|
|
573
|
+
};
|
|
574
|
+
}>;
|
|
575
|
+
idempotency_key?: string;
|
|
576
|
+
fileName?: string;
|
|
577
|
+
content?: string; /** A preview request's `source`: `{ kind: "workspace", workspace_path }` names the workspace file?the host read the bytes from; anything else is an upload named by `fileName`. */
|
|
578
|
+
source?: {
|
|
579
|
+
kind?: string;
|
|
580
|
+
workspace_path?: string;
|
|
581
|
+
};
|
|
582
|
+
sheet?: string; /** system:<name> writes as a host feature, outside the undo history. Agents leave it out. */
|
|
583
|
+
asOrigin?: string;
|
|
584
|
+
};
|
|
585
|
+
/** Prepare an AI field run. Builds the prompts an AI field's run needs for one record or several, for the host to send to a model; changes nothing. Params: {tableId, fieldId, recordId? | record_ids?, limit?, action?, config?}: the prompts of an AI field run, for the host to generate. */
|
|
586
|
+
"table.ai.prepare": {
|
|
587
|
+
tableId: Json; /** The AI field's id. */
|
|
588
|
+
fieldId: Json; /** One record to run on. */
|
|
589
|
+
recordId?: Json; /** The AI action (summarize, translate, extract, improve, customize, classify, text_generation, image_generation, image_customization); when given, it must be the field's own. */
|
|
590
|
+
action?: string; /** Overrides of the field's AI configuration for this run. */
|
|
591
|
+
config?: {
|
|
592
|
+
[key: string]: Json;
|
|
593
|
+
}; /** The records to run on, instead of recordId. */
|
|
594
|
+
record_ids?: Array<Json>; /** How many records to prepare at most. */
|
|
595
|
+
limit?: number;
|
|
596
|
+
};
|
|
597
|
+
/** Write an AI field's results. Writes what the host's model generated (text, images or errors per record) into an AI field. Params: {tableId, fieldId, recordId?, action?, config?, results: [{recordId, text? | image? | images? | error?}]}: what the host generated; asOrigin? (system:<name>) writes as a host feature. Changes the document. */
|
|
598
|
+
"table.ai.apply": {
|
|
599
|
+
tableId: Json; /** The AI field's id. */
|
|
600
|
+
fieldId: Json; /** One record to run on. */
|
|
601
|
+
recordId?: Json; /** The AI action (summarize, translate, extract, improve, customize, classify, text_generation, image_generation, image_customization); when given, it must be the field's own. */
|
|
602
|
+
action?: string; /** Overrides of the field's AI configuration for this run. */
|
|
603
|
+
config?: {
|
|
604
|
+
[key: string]: Json;
|
|
605
|
+
}; /** What the host generated, one entry per record. */
|
|
606
|
+
results: Array<{
|
|
607
|
+
recordId: Json;
|
|
608
|
+
text?: string;
|
|
609
|
+
image?: Json;
|
|
610
|
+
images?: Array<Json>;
|
|
611
|
+
error?: string;
|
|
612
|
+
}>; /** system:<name> writes as a host feature, outside the undo history. Agents leave it out. */
|
|
613
|
+
asOrigin?: string;
|
|
614
|
+
};
|
|
615
|
+
/** List the records changed since a version. Reads the records created, updated and deleted since a version, with who made each change. Params: {version (base64 of a version; empty for every change)}: the records created, updated, and deleted since it, with their origins. */
|
|
616
|
+
"table.changes.since": {
|
|
617
|
+
version?: string;
|
|
618
|
+
};
|
|
619
|
+
/** Read a table's or a view's records. Reads the records of one table, or of one view (only those its filter keeps, in its order), with their ids and values under the field names, a page at a time; changes nothing. Params: {tableId | viewId, limit?, cursor?}: the records of one table, or of one view (filtered and in its order), under their field names, a page at a time; an answer's next is the step for the rest. */
|
|
620
|
+
"table.read": {
|
|
621
|
+
tableId?: Json; /** Instead of tableId: the view whose records to list, only those its filter keeps, in its order (a view's id, as inspect and table.views.list answer it). */
|
|
622
|
+
viewId?: Json; /** How many records to list, 1 to 200; default 50. */
|
|
623
|
+
limit?: number; /** Where to go on: the cursor in a previous answer's next (the number of records before the page, counted from 0, as a string); default the first record. */
|
|
624
|
+
cursor?: string;
|
|
625
|
+
};
|
|
626
|
+
/** Show a table, view or dashboard in the picture. Picks what the document's picture (its renders and previews) shows: a table with its first view, a view, or a dashboard; without parameters, what the editor opens (the first table's first view). Params: {tableId?, viewId?, dashboardId?}: the table, view or dashboard the document's picture shows; {} shows what the editor opens. */
|
|
627
|
+
"table.preview.show": {
|
|
628
|
+
tableId?: Json; /** The view to show (its table is shown). */
|
|
629
|
+
viewId?: Json; /** A dashboard to show instead of a table. */
|
|
630
|
+
dashboardId?: Json;
|
|
631
|
+
};
|
|
632
|
+
/** Render a preview image. Draws the table, a view, some of its rows, a field, one record's cell or a dashboard as the editor shows them, as a PNG at a scale up to 2, such as the target a diagnostic names; changes nothing. */
|
|
633
|
+
"table.file.render": {
|
|
634
|
+
target?: {
|
|
635
|
+
table?: number;
|
|
636
|
+
view?: number;
|
|
637
|
+
path?: string;
|
|
638
|
+
sheet?: string;
|
|
639
|
+
rows?: Array<number>;
|
|
640
|
+
}; /** Without target: the table at this position among the tables, counted from 0 (a host's part preview). */
|
|
641
|
+
slide?: number; /** Device pixels per document pixel, above 0 and up to 2; default 1. */
|
|
642
|
+
scale?: number; /** The longest side in pixels, 1 to 4096; default 4096. */
|
|
643
|
+
maxSize?: number;
|
|
644
|
+
};
|
|
645
|
+
/** Export a table as a CSV or Markdown file. Answers one table as a CSV or Markdown file's bytes (base64, in data) for the host to write as a new file, without changing anything. Params: {format (csv or md), tableId?}: one table as CSV or Markdown, base64, for the host to write. */
|
|
646
|
+
"table.file.export": {
|
|
647
|
+
format: "csv" | "md"; /** The table to export; default the first table. */
|
|
648
|
+
tableId?: Json;
|
|
649
|
+
};
|
|
650
|
+
}
|
|
651
|
+
/** A Table file opened with `openDocument<Base, TableCommands>`. */
|
|
652
|
+
export type TableDocument = ModelDocument<Base, TableCommands>;
|
|
653
|
+
export type TableContext = RequestContext<Base, TableCommands>;
|
|
654
|
+
export {};
|