@keemakr/ui-sdk 1.5.0 → 1.6.0-dev-20261026112734
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 +118 -0
- package/dist/badges.d.ts +65 -0
- package/dist/badges.js +96 -0
- package/dist/build.js +2 -2
- package/dist/cells.d.ts +31 -0
- package/dist/cells.js +45 -0
- package/dist/chart.d.ts +20 -0
- package/dist/chart.js +38 -0
- package/dist/conform.d.ts +21 -0
- package/dist/conform.js +310 -0
- package/dist/dataset.d.ts +6 -6
- package/dist/date-format.d.ts +64 -0
- package/dist/date-format.js +132 -0
- package/dist/drawer.d.ts +22 -0
- package/dist/drawer.js +21 -0
- package/dist/edit.d.ts +60 -0
- package/dist/edit.js +60 -0
- package/dist/filters.d.ts +54 -0
- package/dist/filters.js +81 -0
- package/dist/form.d.ts +45 -1
- package/dist/form.js +39 -0
- package/dist/heatmap.d.ts +36 -0
- package/dist/heatmap.js +56 -0
- package/dist/icon.d.ts +20 -0
- package/dist/icon.js +43 -0
- package/dist/index.d.ts +37 -4
- package/dist/index.js +21 -2
- package/dist/markdown-links.d.ts +29 -0
- package/dist/markdown-links.js +99 -0
- package/dist/media.js +7 -1
- package/dist/negotiate.d.ts +302 -0
- package/dist/negotiate.js +1092 -0
- package/dist/nodes.d.ts +1 -1
- package/dist/nodes.js +3 -0
- package/dist/pager.d.ts +2 -2
- package/dist/player.d.ts +46 -0
- package/dist/player.js +86 -0
- package/dist/published/index.d.ts +4 -0
- package/dist/published/index.js +18 -0
- package/dist/published/v1.1.0/schema.d.ts +439 -0
- package/dist/published/v1.1.0/schema.js +405 -0
- package/dist/published/v1.4.0/dataset-view.d.ts +160 -0
- package/dist/published/v1.4.0/dataset-view.js +702 -0
- package/dist/published/v1.4.0/dataset.d.ts +331 -0
- package/dist/published/v1.4.0/dataset.js +628 -0
- package/dist/published/v1.4.0/schema.d.ts +1132 -0
- package/dist/published/v1.4.0/schema.js +1410 -0
- package/dist/schema.d.ts +1638 -20
- package/dist/schema.js +1275 -72
- package/dist/section.d.ts +65 -0
- package/dist/section.js +81 -0
- package/dist/stacked-bar.d.ts +34 -0
- package/dist/stacked-bar.js +20 -0
- package/dist/stat.d.ts +24 -0
- package/dist/stat.js +27 -0
- package/dist/table-row.d.ts +24 -0
- package/dist/table-row.js +23 -0
- package/dist/tabs.d.ts +36 -0
- package/dist/tabs.js +83 -0
- package/dist/testkit.d.ts +38 -0
- package/dist/testkit.js +68 -0
- package/dist/timeline.d.ts +5 -0
- package/dist/timeline.js +35 -0
- package/examples/campaigns/README.md +22 -1
- package/examples/campaigns/approvals/index.ts +23 -0
- package/examples/campaigns/approvals/launch.ts +38 -0
- package/examples/campaigns/brief/index.ts +23 -0
- package/examples/campaigns/brief/ready.ts +43 -0
- package/examples/campaigns/demo-approvals.ts +35 -0
- package/examples/campaigns/demo-brief.ts +23 -0
- package/examples/campaigns/entry.json +71 -1
- package/examples/campaigns/tsconfig.json +8 -1
- package/package.json +6 -1
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Datasets — the data half of the UI SDK.
|
|
3
|
+
*
|
|
4
|
+
* A screen is drawn by the module: it returns a tree of blocks. A dataset is
|
|
5
|
+
* data the platform draws: the module declares its fields once, answers a
|
|
6
|
+
* query with rows, and the platform turns the rows into views (a table, a
|
|
7
|
+
* board, a list, a record) built from the same blocks every app already draws.
|
|
8
|
+
*
|
|
9
|
+
* Each field has a type, and may have a role. The type says what a value is
|
|
10
|
+
* (text, a number, a time). The role says what the value means to a view
|
|
11
|
+
* (the title of a row, its status, its owner, when it is due), so a view kind
|
|
12
|
+
* knows where to place it without the module laying anything out.
|
|
13
|
+
*
|
|
14
|
+
* ui/datasets/<name>.ts -> export default defineDataset({ ... })
|
|
15
|
+
* POST {runtime}/datasets/<name>/query -> DatasetQueryResponse
|
|
16
|
+
* POST {runtime}/datasets/<name>/records -> DatasetCreateResponse
|
|
17
|
+
*
|
|
18
|
+
* A dataset may also take new rows from a person. It declares `accepts.create`:
|
|
19
|
+
* the button label and the fields the form asks for. The platform draws the
|
|
20
|
+
* form wherever the dataset shows, checks what the person typed against the
|
|
21
|
+
* declaration, and only then calls the module's `create`. Write `create` with
|
|
22
|
+
* the same code your agent's tools use, so a row from the form and a row from
|
|
23
|
+
* the chat land in one store.
|
|
24
|
+
*
|
|
25
|
+
* Core checks the declaration at upload, checks each request against it
|
|
26
|
+
* before it calls the module, and checks each answer against it before any
|
|
27
|
+
* view uses the rows. Module output is data, never code.
|
|
28
|
+
*/
|
|
29
|
+
import { z } from 'zod';
|
|
30
|
+
/** What a value is. */
|
|
31
|
+
export declare const DATASET_FIELD_TYPES: readonly ["text", "number", "boolean", "datetime", "date", "enum", "url", "tags"];
|
|
32
|
+
/**
|
|
33
|
+
* What a value means to a view. Each role is used at most once in a dataset,
|
|
34
|
+
* and every dataset has a `title`. A role allows only the types that can carry
|
|
35
|
+
* its meaning: a due date is a time, an owner is a name.
|
|
36
|
+
*/
|
|
37
|
+
export declare const DATASET_FIELD_ROLES: {
|
|
38
|
+
readonly title: readonly ["text"];
|
|
39
|
+
readonly subtitle: readonly ["text"];
|
|
40
|
+
readonly status: readonly ["enum"];
|
|
41
|
+
readonly stage: readonly ["enum"];
|
|
42
|
+
readonly owner: readonly ["text"];
|
|
43
|
+
readonly due: readonly ["datetime", "date"];
|
|
44
|
+
readonly amount: readonly ["number"];
|
|
45
|
+
};
|
|
46
|
+
export type DatasetFieldType = (typeof DATASET_FIELD_TYPES)[number];
|
|
47
|
+
export type DatasetFieldRole = keyof typeof DATASET_FIELD_ROLES;
|
|
48
|
+
export declare const DATASET_LIMITS: {
|
|
49
|
+
readonly fields: 32;
|
|
50
|
+
readonly datasets: 16;
|
|
51
|
+
readonly options: 50;
|
|
52
|
+
readonly rows: 200;
|
|
53
|
+
readonly defaultRows: 50;
|
|
54
|
+
readonly filters: 8;
|
|
55
|
+
readonly text: 500;
|
|
56
|
+
readonly tags: 20;
|
|
57
|
+
readonly formFields: 20;
|
|
58
|
+
};
|
|
59
|
+
export declare const datasetFieldSchema: z.ZodObject<{
|
|
60
|
+
name: z.ZodString;
|
|
61
|
+
label: z.ZodString;
|
|
62
|
+
type: z.ZodEnum<{
|
|
63
|
+
number: "number";
|
|
64
|
+
boolean: "boolean";
|
|
65
|
+
date: "date";
|
|
66
|
+
datetime: "datetime";
|
|
67
|
+
text: "text";
|
|
68
|
+
enum: "enum";
|
|
69
|
+
url: "url";
|
|
70
|
+
tags: "tags";
|
|
71
|
+
}>;
|
|
72
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
73
|
+
title: "title";
|
|
74
|
+
subtitle: "subtitle";
|
|
75
|
+
status: "status";
|
|
76
|
+
stage: "stage";
|
|
77
|
+
owner: "owner";
|
|
78
|
+
due: "due";
|
|
79
|
+
amount: "amount";
|
|
80
|
+
}>>;
|
|
81
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
82
|
+
value: z.ZodString;
|
|
83
|
+
label: z.ZodString;
|
|
84
|
+
tone: z.ZodDefault<z.ZodEnum<{
|
|
85
|
+
default: "default";
|
|
86
|
+
success: "success";
|
|
87
|
+
warning: "warning";
|
|
88
|
+
destructive: "destructive";
|
|
89
|
+
}>>;
|
|
90
|
+
}, z.core.$strip>>>;
|
|
91
|
+
filterable: z.ZodDefault<z.ZodBoolean>;
|
|
92
|
+
sortable: z.ZodDefault<z.ZodBoolean>;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
/** One dataset as the manifest carries it: the declaration plus its name. */
|
|
95
|
+
export declare const datasetDeclarationSchema: z.ZodObject<{
|
|
96
|
+
label: z.ZodString;
|
|
97
|
+
description: z.ZodOptional<z.ZodString>;
|
|
98
|
+
key: z.ZodString;
|
|
99
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
100
|
+
name: z.ZodString;
|
|
101
|
+
label: z.ZodString;
|
|
102
|
+
type: z.ZodEnum<{
|
|
103
|
+
number: "number";
|
|
104
|
+
boolean: "boolean";
|
|
105
|
+
date: "date";
|
|
106
|
+
datetime: "datetime";
|
|
107
|
+
text: "text";
|
|
108
|
+
enum: "enum";
|
|
109
|
+
url: "url";
|
|
110
|
+
tags: "tags";
|
|
111
|
+
}>;
|
|
112
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
113
|
+
title: "title";
|
|
114
|
+
subtitle: "subtitle";
|
|
115
|
+
status: "status";
|
|
116
|
+
stage: "stage";
|
|
117
|
+
owner: "owner";
|
|
118
|
+
due: "due";
|
|
119
|
+
amount: "amount";
|
|
120
|
+
}>>;
|
|
121
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
122
|
+
value: z.ZodString;
|
|
123
|
+
label: z.ZodString;
|
|
124
|
+
tone: z.ZodDefault<z.ZodEnum<{
|
|
125
|
+
default: "default";
|
|
126
|
+
success: "success";
|
|
127
|
+
warning: "warning";
|
|
128
|
+
destructive: "destructive";
|
|
129
|
+
}>>;
|
|
130
|
+
}, z.core.$strip>>>;
|
|
131
|
+
filterable: z.ZodDefault<z.ZodBoolean>;
|
|
132
|
+
sortable: z.ZodDefault<z.ZodBoolean>;
|
|
133
|
+
}, z.core.$strip>>;
|
|
134
|
+
search: z.ZodDefault<z.ZodBoolean>;
|
|
135
|
+
defaultSort: z.ZodOptional<z.ZodObject<{
|
|
136
|
+
field: z.ZodString;
|
|
137
|
+
direction: z.ZodDefault<z.ZodEnum<{
|
|
138
|
+
asc: "asc";
|
|
139
|
+
desc: "desc";
|
|
140
|
+
}>>;
|
|
141
|
+
}, z.core.$strip>>;
|
|
142
|
+
accepts: z.ZodOptional<z.ZodObject<{
|
|
143
|
+
create: z.ZodOptional<z.ZodObject<{
|
|
144
|
+
label: z.ZodString;
|
|
145
|
+
fields: z.ZodArray<z.ZodString>;
|
|
146
|
+
required: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
147
|
+
}, z.core.$strip>>;
|
|
148
|
+
}, z.core.$strip>>;
|
|
149
|
+
name: z.ZodString;
|
|
150
|
+
}, z.core.$strip>;
|
|
151
|
+
/** Every dataset a module declares. Generated into entry.json `manifest.datasets`. */
|
|
152
|
+
export declare const datasetManifestSchema: z.ZodArray<z.ZodObject<{
|
|
153
|
+
label: z.ZodString;
|
|
154
|
+
description: z.ZodOptional<z.ZodString>;
|
|
155
|
+
key: z.ZodString;
|
|
156
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
157
|
+
name: z.ZodString;
|
|
158
|
+
label: z.ZodString;
|
|
159
|
+
type: z.ZodEnum<{
|
|
160
|
+
number: "number";
|
|
161
|
+
boolean: "boolean";
|
|
162
|
+
date: "date";
|
|
163
|
+
datetime: "datetime";
|
|
164
|
+
text: "text";
|
|
165
|
+
enum: "enum";
|
|
166
|
+
url: "url";
|
|
167
|
+
tags: "tags";
|
|
168
|
+
}>;
|
|
169
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
170
|
+
title: "title";
|
|
171
|
+
subtitle: "subtitle";
|
|
172
|
+
status: "status";
|
|
173
|
+
stage: "stage";
|
|
174
|
+
owner: "owner";
|
|
175
|
+
due: "due";
|
|
176
|
+
amount: "amount";
|
|
177
|
+
}>>;
|
|
178
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
179
|
+
value: z.ZodString;
|
|
180
|
+
label: z.ZodString;
|
|
181
|
+
tone: z.ZodDefault<z.ZodEnum<{
|
|
182
|
+
default: "default";
|
|
183
|
+
success: "success";
|
|
184
|
+
warning: "warning";
|
|
185
|
+
destructive: "destructive";
|
|
186
|
+
}>>;
|
|
187
|
+
}, z.core.$strip>>>;
|
|
188
|
+
filterable: z.ZodDefault<z.ZodBoolean>;
|
|
189
|
+
sortable: z.ZodDefault<z.ZodBoolean>;
|
|
190
|
+
}, z.core.$strip>>;
|
|
191
|
+
search: z.ZodDefault<z.ZodBoolean>;
|
|
192
|
+
defaultSort: z.ZodOptional<z.ZodObject<{
|
|
193
|
+
field: z.ZodString;
|
|
194
|
+
direction: z.ZodDefault<z.ZodEnum<{
|
|
195
|
+
asc: "asc";
|
|
196
|
+
desc: "desc";
|
|
197
|
+
}>>;
|
|
198
|
+
}, z.core.$strip>>;
|
|
199
|
+
accepts: z.ZodOptional<z.ZodObject<{
|
|
200
|
+
create: z.ZodOptional<z.ZodObject<{
|
|
201
|
+
label: z.ZodString;
|
|
202
|
+
fields: z.ZodArray<z.ZodString>;
|
|
203
|
+
required: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
204
|
+
}, z.core.$strip>>;
|
|
205
|
+
}, z.core.$strip>>;
|
|
206
|
+
name: z.ZodString;
|
|
207
|
+
}, z.core.$strip>>;
|
|
208
|
+
/** What a view asks for. Core checks it against the declaration before the module sees it. */
|
|
209
|
+
export declare const datasetQueryRequestSchema: z.ZodObject<{
|
|
210
|
+
filters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
211
|
+
search: z.ZodOptional<z.ZodString>;
|
|
212
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
213
|
+
field: z.ZodString;
|
|
214
|
+
direction: z.ZodDefault<z.ZodEnum<{
|
|
215
|
+
asc: "asc";
|
|
216
|
+
desc: "desc";
|
|
217
|
+
}>>;
|
|
218
|
+
}, z.core.$strip>>;
|
|
219
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
220
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
221
|
+
keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
222
|
+
}, z.core.$strip>;
|
|
223
|
+
/**
|
|
224
|
+
* One value. Primitives and a list of tags only: a nested object has no place
|
|
225
|
+
* in a view. Null (written with `.nullable()`, not a `z.null()` union member,
|
|
226
|
+
* which OpenAPI 3.0 cannot express) means the row has no value for the field.
|
|
227
|
+
*/
|
|
228
|
+
declare const datasetCellSchema: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
229
|
+
export declare const datasetRowSchema: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
|
|
230
|
+
export declare const datasetQueryResponseSchema: z.ZodObject<{
|
|
231
|
+
rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>>;
|
|
232
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
233
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
234
|
+
note: z.ZodOptional<z.ZodString>;
|
|
235
|
+
}, z.core.$strip>;
|
|
236
|
+
/** What core sends a module's `POST /datasets/<name>/records`: checked input only. */
|
|
237
|
+
export declare const datasetCreateRequestSchema: z.ZodObject<{
|
|
238
|
+
input: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
|
|
239
|
+
idempotencyKey: z.ZodString;
|
|
240
|
+
}, z.core.$strip>;
|
|
241
|
+
export declare const datasetCreateResponseSchema: z.ZodObject<{
|
|
242
|
+
key: z.ZodOptional<z.ZodString>;
|
|
243
|
+
note: z.ZodOptional<z.ZodString>;
|
|
244
|
+
}, z.core.$strip>;
|
|
245
|
+
export type DatasetField = z.infer<typeof datasetFieldSchema>;
|
|
246
|
+
export type DatasetDeclaration = z.infer<typeof datasetDeclarationSchema>;
|
|
247
|
+
export type DatasetDeclarationInput = z.input<typeof datasetDeclarationSchema>;
|
|
248
|
+
export type DatasetQueryRequest = z.infer<typeof datasetQueryRequestSchema>;
|
|
249
|
+
export type DatasetQueryRequestInput = z.input<typeof datasetQueryRequestSchema>;
|
|
250
|
+
export type DatasetRow = z.infer<typeof datasetRowSchema>;
|
|
251
|
+
export type DatasetQueryResponse = z.infer<typeof datasetQueryResponseSchema>;
|
|
252
|
+
export type DatasetQueryResponseInput = z.input<typeof datasetQueryResponseSchema>;
|
|
253
|
+
export type DatasetCell = z.infer<typeof datasetCellSchema>;
|
|
254
|
+
export type DatasetCreateRequest = z.infer<typeof datasetCreateRequestSchema>;
|
|
255
|
+
export type DatasetCreateResponse = z.infer<typeof datasetCreateResponseSchema>;
|
|
256
|
+
export type DatasetCreateResponseInput = z.input<typeof datasetCreateResponseSchema>;
|
|
257
|
+
/**
|
|
258
|
+
* Problems with a request, against the dataset it names. Empty means the
|
|
259
|
+
* module may run it. Core runs this before it calls the module, and
|
|
260
|
+
* `answerDatasetQuery` runs it again on the module side.
|
|
261
|
+
*/
|
|
262
|
+
export declare function datasetRequestIssues(declaration: DatasetDeclaration, request: DatasetQueryRequest): string[];
|
|
263
|
+
/**
|
|
264
|
+
* Problems with an answer, against the dataset that gave it. Empty means a
|
|
265
|
+
* view may use the rows. Every row needs its key; every value must match its
|
|
266
|
+
* field's type; a value for an undeclared field is refused.
|
|
267
|
+
*/
|
|
268
|
+
export declare function datasetResponseIssues(declaration: DatasetDeclaration, response: DatasetQueryResponse, request?: Pick<DatasetQueryRequest, 'limit' | 'keys'>): string[];
|
|
269
|
+
export type DatasetCreateCheck = {
|
|
270
|
+
ok: true;
|
|
271
|
+
input: Record<string, DatasetCell>;
|
|
272
|
+
} | {
|
|
273
|
+
ok: false;
|
|
274
|
+
issue: string;
|
|
275
|
+
};
|
|
276
|
+
/**
|
|
277
|
+
* What a person typed into a dataset's create form, checked against the
|
|
278
|
+
* declaration: only the form's fields, each value fit for its type, every
|
|
279
|
+
* required field filled. A blank optional field is left out. Core runs this
|
|
280
|
+
* before it calls the module, and `answerDatasetCreate` runs it again.
|
|
281
|
+
*/
|
|
282
|
+
export declare function datasetCreateInput(declaration: DatasetDeclaration, raw: unknown): DatasetCreateCheck;
|
|
283
|
+
/** The rows of one page, as a module's `query` returns them. */
|
|
284
|
+
export type DatasetQueryHandler<Ctx> = (ctx: Ctx, request: DatasetQueryRequest) => DatasetQueryResponseInput | Promise<DatasetQueryResponseInput>;
|
|
285
|
+
/** Write one new row from checked input. Return its key so a view can open it. */
|
|
286
|
+
export type DatasetCreateHandler<Ctx> = (ctx: Ctx, input: Record<string, DatasetCell>) => DatasetCreateResponseInput | Promise<DatasetCreateResponseInput>;
|
|
287
|
+
/** What `ui/datasets/<name>.ts` exports. The file name is the dataset's name. */
|
|
288
|
+
export type DatasetDefinition<Ctx = unknown> = Omit<DatasetDeclarationInput, 'name'> & {
|
|
289
|
+
query: DatasetQueryHandler<Ctx>;
|
|
290
|
+
/** Required when the declaration has `accepts.create`, and only then. */
|
|
291
|
+
create?: DatasetCreateHandler<Ctx>;
|
|
292
|
+
};
|
|
293
|
+
/**
|
|
294
|
+
* Declare a dataset. The declaration is checked at once, so a mistake fails
|
|
295
|
+
* where it is written, not at upload. Keep the declaration literal (strings,
|
|
296
|
+
* numbers, booleans, arrays, objects): the build reads it without running the
|
|
297
|
+
* file, the way it reads `defineSurface`.
|
|
298
|
+
*/
|
|
299
|
+
export declare function defineDataset<Ctx = unknown>(definition: DatasetDefinition<Ctx>): DatasetDefinition<Ctx>;
|
|
300
|
+
/**
|
|
301
|
+
* Serve one query, for a module's `POST /datasets/:name/query` route: parse the
|
|
302
|
+
* body, check it, run `query`, and check the answer. Returns the status and the
|
|
303
|
+
* body to send. A bad answer is logged with its exact problem here, in the
|
|
304
|
+
* module's own log, because core answers it with a bare 502.
|
|
305
|
+
*/
|
|
306
|
+
export declare function answerDatasetQuery<Ctx>(opts: {
|
|
307
|
+
name: string;
|
|
308
|
+
definition: DatasetDefinition<Ctx>;
|
|
309
|
+
ctx: Ctx;
|
|
310
|
+
body: unknown;
|
|
311
|
+
log?: (message: string) => void;
|
|
312
|
+
}): Promise<{
|
|
313
|
+
status: number;
|
|
314
|
+
body: unknown;
|
|
315
|
+
}>;
|
|
316
|
+
/**
|
|
317
|
+
* Serve one create, for a module's `POST /datasets/:name/records` route: parse
|
|
318
|
+
* the body, check the input against the declaration again, run `create`, and
|
|
319
|
+
* check the answer. Returns the status and the body to send.
|
|
320
|
+
*/
|
|
321
|
+
export declare function answerDatasetCreate<Ctx>(opts: {
|
|
322
|
+
name: string;
|
|
323
|
+
definition: DatasetDefinition<Ctx>;
|
|
324
|
+
ctx: Ctx;
|
|
325
|
+
body: unknown;
|
|
326
|
+
log?: (message: string) => void;
|
|
327
|
+
}): Promise<{
|
|
328
|
+
status: number;
|
|
329
|
+
body: unknown;
|
|
330
|
+
}>;
|
|
331
|
+
export {};
|