@visus-io/notion-sdk-ts 2.0.1 → 2.1.0

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.
Files changed (45) hide show
  1. package/README.md +25 -9
  2. package/dist/api/base.api.d.ts +1 -1
  3. package/dist/api/blocks.api.d.ts +260 -80
  4. package/dist/api/comments.api.d.ts +7 -7
  5. package/dist/api/dataSources.api.d.ts +12 -12
  6. package/dist/api/databases.api.d.ts +12 -12
  7. package/dist/api/fileUploads.api.d.ts +2 -2
  8. package/dist/api/pages.api.d.ts +29 -29
  9. package/dist/api/users.api.d.ts +1 -1
  10. package/dist/helpers/block.helpers.d.ts +4 -0
  11. package/dist/helpers/block.helpers.js +11 -0
  12. package/dist/models/base.model.d.ts +2 -2
  13. package/dist/schemas/block.schema.d.ts +261 -81
  14. package/dist/schemas/block.schema.js +157 -81
  15. package/dist/schemas/comment.schema.d.ts +9 -9
  16. package/dist/schemas/comment.schema.js +54 -20
  17. package/dist/schemas/dataSource.schema.d.ts +13 -13
  18. package/dist/schemas/dataSource.schema.js +46 -12
  19. package/dist/schemas/database.schema.d.ts +13 -13
  20. package/dist/schemas/database.schema.js +51 -17
  21. package/dist/schemas/emoji.schema.d.ts +1 -1
  22. package/dist/schemas/emoji.schema.js +37 -4
  23. package/dist/schemas/file.schema.d.ts +3 -3
  24. package/dist/schemas/file.schema.js +49 -15
  25. package/dist/schemas/fileUpload.schema.d.ts +3 -3
  26. package/dist/schemas/fileUpload.schema.js +47 -13
  27. package/dist/schemas/index.d.ts +1 -0
  28. package/dist/schemas/index.js +1 -0
  29. package/dist/schemas/page.schema.d.ts +30 -30
  30. package/dist/schemas/page.schema.js +47 -13
  31. package/dist/schemas/pageProperties.schema.d.ts +47 -47
  32. package/dist/schemas/pageProperties.schema.js +162 -128
  33. package/dist/schemas/pagination.schema.d.ts +1 -1
  34. package/dist/schemas/pagination.schema.js +40 -7
  35. package/dist/schemas/parent.schema.d.ts +1 -1
  36. package/dist/schemas/parent.schema.js +51 -18
  37. package/dist/schemas/propertyObjects.schema.d.ts +1 -1
  38. package/dist/schemas/propertyObjects.schema.js +194 -161
  39. package/dist/schemas/richText.schema.d.ts +7 -7
  40. package/dist/schemas/richText.schema.js +95 -56
  41. package/dist/schemas/shared.schema.d.ts +15 -0
  42. package/dist/schemas/shared.schema.js +54 -0
  43. package/dist/schemas/user.schema.d.ts +3 -3
  44. package/dist/schemas/user.schema.js +63 -30
  45. package/package.json +3 -1
@@ -1,7 +1,40 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
2
35
  Object.defineProperty(exports, "__esModule", { value: true });
3
36
  exports.propertiesObjectSchema = exports.propertyObjectSchema = void 0;
4
- const zod_1 = require("zod");
37
+ const z = __importStar(require("zod"));
5
38
  /**
6
39
  * Data source property objects define the schema/configuration for a data source.
7
40
  * These are different from page property values (which contain the actual data).
@@ -10,7 +43,7 @@ const zod_1 = require("zod");
10
43
  * https://developers.notion.com/reference/property-object
11
44
  */
12
45
  /** Valid color values for select, multi_select, and status options */
13
- const colorSchema = zod_1.z.enum([
46
+ const colorSchema = z.enum([
14
47
  'blue',
15
48
  'brown',
16
49
  'default',
@@ -23,97 +56,97 @@ const colorSchema = zod_1.z.enum([
23
56
  'yellow',
24
57
  ]);
25
58
  /** Option for select and multi_select properties */
26
- const selectOptionSchema = zod_1.z.object({
27
- id: zod_1.z.string(),
28
- name: zod_1.z.string(),
59
+ const selectOptionSchema = z.object({
60
+ id: z.string().trim(),
61
+ name: z.string().trim(),
29
62
  color: colorSchema,
30
63
  });
31
64
  /** Checkbox property configuration (empty object) */
32
- const checkboxPropertySchema = zod_1.z.object({
33
- type: zod_1.z.literal('checkbox'),
34
- id: zod_1.z.string(),
35
- name: zod_1.z.string(),
36
- description: zod_1.z.string().optional(),
37
- checkbox: zod_1.z.object({}),
65
+ const checkboxPropertySchema = z.object({
66
+ type: z.literal('checkbox'),
67
+ id: z.string().trim(),
68
+ name: z.string().trim(),
69
+ description: z.string().trim().optional(),
70
+ checkbox: z.object({}),
38
71
  });
39
72
  /** Created by property configuration (empty object) */
40
- const createdByPropertySchema = zod_1.z.object({
41
- type: zod_1.z.literal('created_by'),
42
- id: zod_1.z.string(),
43
- name: zod_1.z.string(),
44
- description: zod_1.z.string().optional(),
45
- created_by: zod_1.z.object({}),
73
+ const createdByPropertySchema = z.object({
74
+ type: z.literal('created_by'),
75
+ id: z.string().trim(),
76
+ name: z.string().trim(),
77
+ description: z.string().trim().optional(),
78
+ created_by: z.object({}),
46
79
  });
47
80
  /** Created time property configuration (empty object) */
48
- const createdTimePropertySchema = zod_1.z.object({
49
- type: zod_1.z.literal('created_time'),
50
- id: zod_1.z.string(),
51
- name: zod_1.z.string(),
52
- description: zod_1.z.string().optional(),
53
- created_time: zod_1.z.object({}),
81
+ const createdTimePropertySchema = z.object({
82
+ type: z.literal('created_time'),
83
+ id: z.string().trim(),
84
+ name: z.string().trim(),
85
+ description: z.string().trim().optional(),
86
+ created_time: z.object({}),
54
87
  });
55
88
  /** Date property configuration (empty object) */
56
- const datePropertySchema = zod_1.z.object({
57
- type: zod_1.z.literal('date'),
58
- id: zod_1.z.string(),
59
- name: zod_1.z.string(),
60
- description: zod_1.z.string().optional(),
61
- date: zod_1.z.object({}),
89
+ const datePropertySchema = z.object({
90
+ type: z.literal('date'),
91
+ id: z.string().trim(),
92
+ name: z.string().trim(),
93
+ description: z.string().trim().optional(),
94
+ date: z.object({}),
62
95
  });
63
96
  /** Email property configuration (empty object) */
64
- const emailPropertySchema = zod_1.z.object({
65
- type: zod_1.z.literal('email'),
66
- id: zod_1.z.string(),
67
- name: zod_1.z.string(),
68
- description: zod_1.z.string().optional(),
69
- email: zod_1.z.object({}),
97
+ const emailPropertySchema = z.object({
98
+ type: z.literal('email'),
99
+ id: z.string().trim(),
100
+ name: z.string().trim(),
101
+ description: z.string().trim().optional(),
102
+ email: z.object({}),
70
103
  });
71
104
  /** Files property configuration (empty object) */
72
- const filesPropertySchema = zod_1.z.object({
73
- type: zod_1.z.literal('files'),
74
- id: zod_1.z.string(),
75
- name: zod_1.z.string(),
76
- description: zod_1.z.string().optional(),
77
- files: zod_1.z.object({}),
105
+ const filesPropertySchema = z.object({
106
+ type: z.literal('files'),
107
+ id: z.string().trim(),
108
+ name: z.string().trim(),
109
+ description: z.string().trim().optional(),
110
+ files: z.object({}),
78
111
  });
79
112
  /** Formula property configuration */
80
- const formulaPropertySchema = zod_1.z.object({
81
- type: zod_1.z.literal('formula'),
82
- id: zod_1.z.string(),
83
- name: zod_1.z.string(),
84
- description: zod_1.z.string().optional(),
85
- formula: zod_1.z.object({
86
- expression: zod_1.z.string(),
113
+ const formulaPropertySchema = z.object({
114
+ type: z.literal('formula'),
115
+ id: z.string().trim(),
116
+ name: z.string().trim(),
117
+ description: z.string().trim().optional(),
118
+ formula: z.object({
119
+ expression: z.string().trim(),
87
120
  }),
88
121
  });
89
122
  /** Last edited by property configuration (empty object) */
90
- const lastEditedByPropertySchema = zod_1.z.object({
91
- type: zod_1.z.literal('last_edited_by'),
92
- id: zod_1.z.string(),
93
- name: zod_1.z.string(),
94
- description: zod_1.z.string().optional(),
95
- last_edited_by: zod_1.z.object({}),
123
+ const lastEditedByPropertySchema = z.object({
124
+ type: z.literal('last_edited_by'),
125
+ id: z.string().trim(),
126
+ name: z.string().trim(),
127
+ description: z.string().trim().optional(),
128
+ last_edited_by: z.object({}),
96
129
  });
97
130
  /** Last edited time property configuration (empty object) */
98
- const lastEditedTimePropertySchema = zod_1.z.object({
99
- type: zod_1.z.literal('last_edited_time'),
100
- id: zod_1.z.string(),
101
- name: zod_1.z.string(),
102
- description: zod_1.z.string().optional(),
103
- last_edited_time: zod_1.z.object({}),
131
+ const lastEditedTimePropertySchema = z.object({
132
+ type: z.literal('last_edited_time'),
133
+ id: z.string().trim(),
134
+ name: z.string().trim(),
135
+ description: z.string().trim().optional(),
136
+ last_edited_time: z.object({}),
104
137
  });
105
138
  /** Multi-select property configuration */
106
- const multiSelectPropertySchema = zod_1.z.object({
107
- type: zod_1.z.literal('multi_select'),
108
- id: zod_1.z.string(),
109
- name: zod_1.z.string(),
110
- description: zod_1.z.string().optional(),
111
- multi_select: zod_1.z.object({
112
- options: zod_1.z.array(selectOptionSchema),
139
+ const multiSelectPropertySchema = z.object({
140
+ type: z.literal('multi_select'),
141
+ id: z.string().trim(),
142
+ name: z.string().trim(),
143
+ description: z.string().trim().optional(),
144
+ multi_select: z.object({
145
+ options: z.array(selectOptionSchema),
113
146
  }),
114
147
  });
115
148
  /** Number format options */
116
- const numberFormatSchema = zod_1.z.enum([
149
+ const numberFormatSchema = z.enum([
117
150
  'argentine_peso',
118
151
  'baht',
119
152
  'australian_dollar',
@@ -157,61 +190,61 @@ const numberFormatSchema = zod_1.z.enum([
157
190
  'zloty',
158
191
  ]);
159
192
  /** Number property configuration */
160
- const numberPropertySchema = zod_1.z.object({
161
- type: zod_1.z.literal('number'),
162
- id: zod_1.z.string(),
163
- name: zod_1.z.string(),
164
- description: zod_1.z.string().optional(),
165
- number: zod_1.z.object({
193
+ const numberPropertySchema = z.object({
194
+ type: z.literal('number'),
195
+ id: z.string().trim(),
196
+ name: z.string().trim(),
197
+ description: z.string().trim().optional(),
198
+ number: z.object({
166
199
  format: numberFormatSchema,
167
200
  }),
168
201
  });
169
202
  /** People property configuration (empty object) */
170
- const peoplePropertySchema = zod_1.z.object({
171
- type: zod_1.z.literal('people'),
172
- id: zod_1.z.string(),
173
- name: zod_1.z.string(),
174
- description: zod_1.z.string().optional(),
175
- people: zod_1.z.object({}),
203
+ const peoplePropertySchema = z.object({
204
+ type: z.literal('people'),
205
+ id: z.string().trim(),
206
+ name: z.string().trim(),
207
+ description: z.string().trim().optional(),
208
+ people: z.object({}),
176
209
  });
177
210
  /** Phone number property configuration (empty object) */
178
- const phoneNumberPropertySchema = zod_1.z.object({
179
- type: zod_1.z.literal('phone_number'),
180
- id: zod_1.z.string(),
181
- name: zod_1.z.string(),
182
- description: zod_1.z.string().optional(),
183
- phone_number: zod_1.z.object({}),
211
+ const phoneNumberPropertySchema = z.object({
212
+ type: z.literal('phone_number'),
213
+ id: z.string().trim(),
214
+ name: z.string().trim(),
215
+ description: z.string().trim().optional(),
216
+ phone_number: z.object({}),
184
217
  });
185
218
  /** Place property configuration (empty object) */
186
- const placePropertySchema = zod_1.z.object({
187
- type: zod_1.z.literal('place'),
188
- id: zod_1.z.string(),
189
- name: zod_1.z.string(),
190
- description: zod_1.z.string().optional(),
191
- place: zod_1.z.object({}),
219
+ const placePropertySchema = z.object({
220
+ type: z.literal('place'),
221
+ id: z.string().trim(),
222
+ name: z.string().trim(),
223
+ description: z.string().trim().optional(),
224
+ place: z.object({}),
192
225
  });
193
226
  /** Relation property configuration */
194
- const relationPropertySchema = zod_1.z.object({
195
- type: zod_1.z.literal('relation'),
196
- id: zod_1.z.string(),
197
- name: zod_1.z.string(),
198
- description: zod_1.z.string().optional(),
199
- relation: zod_1.z.object({
200
- data_source_id: zod_1.z.uuid(),
201
- synced_property_id: zod_1.z.string(),
202
- synced_property_name: zod_1.z.string(),
227
+ const relationPropertySchema = z.object({
228
+ type: z.literal('relation'),
229
+ id: z.string().trim(),
230
+ name: z.string().trim(),
231
+ description: z.string().trim().optional(),
232
+ relation: z.object({
233
+ data_source_id: z.uuid(),
234
+ synced_property_id: z.string().trim(),
235
+ synced_property_name: z.string().trim(),
203
236
  }),
204
237
  });
205
238
  /** Rich text property configuration (empty object) */
206
- const richTextPropertySchema = zod_1.z.object({
207
- type: zod_1.z.literal('rich_text'),
208
- id: zod_1.z.string(),
209
- name: zod_1.z.string(),
210
- description: zod_1.z.string().optional(),
211
- rich_text: zod_1.z.object({}),
239
+ const richTextPropertySchema = z.object({
240
+ type: z.literal('rich_text'),
241
+ id: z.string().trim(),
242
+ name: z.string().trim(),
243
+ description: z.string().trim().optional(),
244
+ rich_text: z.object({}),
212
245
  });
213
246
  /** Rollup function options */
214
- const rollupFunctionSchema = zod_1.z.enum([
247
+ const rollupFunctionSchema = z.enum([
215
248
  'average',
216
249
  'checked',
217
250
  'count_per_group',
@@ -238,84 +271,84 @@ const rollupFunctionSchema = zod_1.z.enum([
238
271
  'sum',
239
272
  ]);
240
273
  /** Rollup property configuration */
241
- const rollupPropertySchema = zod_1.z.object({
242
- type: zod_1.z.literal('rollup'),
243
- id: zod_1.z.string(),
244
- name: zod_1.z.string(),
245
- description: zod_1.z.string().optional(),
246
- rollup: zod_1.z.object({
247
- rollup_property_name: zod_1.z.string(),
248
- relation_property_name: zod_1.z.string(),
249
- rollup_property_id: zod_1.z.string(),
250
- relation_property_id: zod_1.z.string(),
274
+ const rollupPropertySchema = z.object({
275
+ type: z.literal('rollup'),
276
+ id: z.string().trim(),
277
+ name: z.string().trim(),
278
+ description: z.string().trim().optional(),
279
+ rollup: z.object({
280
+ rollup_property_name: z.string().trim(),
281
+ relation_property_name: z.string().trim(),
282
+ rollup_property_id: z.string().trim(),
283
+ relation_property_id: z.string().trim(),
251
284
  function: rollupFunctionSchema,
252
285
  }),
253
286
  });
254
287
  /** Select property configuration */
255
- const selectPropertySchema = zod_1.z.object({
256
- type: zod_1.z.literal('select'),
257
- id: zod_1.z.string(),
258
- name: zod_1.z.string(),
259
- description: zod_1.z.string().optional(),
260
- select: zod_1.z.object({
261
- options: zod_1.z.array(selectOptionSchema),
288
+ const selectPropertySchema = z.object({
289
+ type: z.literal('select'),
290
+ id: z.string().trim(),
291
+ name: z.string().trim(),
292
+ description: z.string().trim().optional(),
293
+ select: z.object({
294
+ options: z.array(selectOptionSchema),
262
295
  }),
263
296
  });
264
297
  /** Status option for status properties */
265
- const statusOptionSchema = zod_1.z.object({
266
- id: zod_1.z.string(),
267
- name: zod_1.z.string(),
298
+ const statusOptionSchema = z.object({
299
+ id: z.string().trim(),
300
+ name: z.string().trim(),
268
301
  color: colorSchema,
269
302
  });
270
303
  /** Status group for status properties */
271
- const statusGroupSchema = zod_1.z.object({
272
- id: zod_1.z.string(),
273
- name: zod_1.z.string(),
304
+ const statusGroupSchema = z.object({
305
+ id: z.string().trim(),
306
+ name: z.string().trim(),
274
307
  color: colorSchema,
275
- option_ids: zod_1.z.array(zod_1.z.string()),
308
+ option_ids: z.array(z.string().trim()),
276
309
  });
277
310
  /** Status property configuration */
278
- const statusPropertySchema = zod_1.z.object({
279
- type: zod_1.z.literal('status'),
280
- id: zod_1.z.string(),
281
- name: zod_1.z.string(),
282
- description: zod_1.z.string().optional(),
283
- status: zod_1.z.object({
284
- options: zod_1.z.array(statusOptionSchema),
285
- groups: zod_1.z.array(statusGroupSchema),
311
+ const statusPropertySchema = z.object({
312
+ type: z.literal('status'),
313
+ id: z.string().trim(),
314
+ name: z.string().trim(),
315
+ description: z.string().trim().optional(),
316
+ status: z.object({
317
+ options: z.array(statusOptionSchema),
318
+ groups: z.array(statusGroupSchema),
286
319
  }),
287
320
  });
288
321
  /** Title property configuration (empty object) - all data sources require exactly one */
289
- const titlePropertySchema = zod_1.z.object({
290
- type: zod_1.z.literal('title'),
291
- id: zod_1.z.string(),
292
- name: zod_1.z.string(),
293
- description: zod_1.z.string().optional(),
294
- title: zod_1.z.object({}),
322
+ const titlePropertySchema = z.object({
323
+ type: z.literal('title'),
324
+ id: z.string().trim(),
325
+ name: z.string().trim(),
326
+ description: z.string().trim().optional(),
327
+ title: z.object({}),
295
328
  });
296
329
  /** URL property configuration (empty object) */
297
- const urlPropertySchema = zod_1.z.object({
298
- type: zod_1.z.literal('url'),
299
- id: zod_1.z.string(),
300
- name: zod_1.z.string(),
301
- description: zod_1.z.string().optional(),
302
- url: zod_1.z.object({}),
330
+ const urlPropertySchema = z.object({
331
+ type: z.literal('url'),
332
+ id: z.string().trim(),
333
+ name: z.string().trim(),
334
+ description: z.string().trim().optional(),
335
+ url: z.object({}),
303
336
  });
304
337
  /** Unique ID property configuration */
305
- const uniqueIdPropertySchema = zod_1.z.object({
306
- type: zod_1.z.literal('unique_id'),
307
- id: zod_1.z.string(),
308
- name: zod_1.z.string(),
309
- description: zod_1.z.string().optional(),
310
- unique_id: zod_1.z.object({
311
- prefix: zod_1.z.string().optional(),
338
+ const uniqueIdPropertySchema = z.object({
339
+ type: z.literal('unique_id'),
340
+ id: z.string().trim(),
341
+ name: z.string().trim(),
342
+ description: z.string().trim().optional(),
343
+ unique_id: z.object({
344
+ prefix: z.string().trim().optional(),
312
345
  }),
313
346
  });
314
347
  /**
315
348
  * Discriminated union of all data source property object types.
316
349
  * These define the schema/configuration for a data source (not the values).
317
350
  */
318
- exports.propertyObjectSchema = zod_1.z.discriminatedUnion('type', [
351
+ exports.propertyObjectSchema = z.discriminatedUnion('type', [
319
352
  checkboxPropertySchema,
320
353
  createdByPropertySchema,
321
354
  createdTimePropertySchema,
@@ -340,4 +373,4 @@ exports.propertyObjectSchema = zod_1.z.discriminatedUnion('type', [
340
373
  uniqueIdPropertySchema,
341
374
  ]);
342
375
  /** Record of property objects keyed by property name */
343
- exports.propertiesObjectSchema = zod_1.z.record(zod_1.z.string(), exports.propertyObjectSchema);
376
+ exports.propertiesObjectSchema = z.record(z.string().trim(), exports.propertyObjectSchema);
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  /** Text rich text type. */
3
3
  declare const textRichTextSchema: z.ZodObject<{
4
4
  type: z.ZodLiteral<"text">;
@@ -50,8 +50,8 @@ declare const mentionRichTextSchema: z.ZodObject<{
50
50
  }, z.core.$strip>, z.ZodObject<{
51
51
  type: z.ZodLiteral<"date">;
52
52
  date: z.ZodObject<{
53
- start: z.ZodString;
54
- end: z.ZodNullable<z.ZodString>;
53
+ start: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>;
54
+ end: z.ZodNullable<z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>>;
55
55
  time_zone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
56
  }, z.core.$strip>;
57
57
  }, z.core.$strip>, z.ZodObject<{
@@ -103,7 +103,7 @@ declare const mentionRichTextSchema: z.ZodObject<{
103
103
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
104
  workspace_id: z.ZodOptional<z.ZodString>;
105
105
  workspace_limits: z.ZodOptional<z.ZodObject<{
106
- max_file_upload_size_in_bytes: z.ZodNumber;
106
+ max_file_upload_size_in_bytes: z.ZodInt;
107
107
  }, z.core.$strip>>;
108
108
  }, z.core.$strip>;
109
109
  }, z.core.$strip>, z.ZodObject<{
@@ -227,8 +227,8 @@ export declare const richTextSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodOb
227
227
  }, z.core.$strip>, z.ZodObject<{
228
228
  type: z.ZodLiteral<"date">;
229
229
  date: z.ZodObject<{
230
- start: z.ZodString;
231
- end: z.ZodNullable<z.ZodString>;
230
+ start: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>;
231
+ end: z.ZodNullable<z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>>;
232
232
  time_zone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
233
233
  }, z.core.$strip>;
234
234
  }, z.core.$strip>, z.ZodObject<{
@@ -280,7 +280,7 @@ export declare const richTextSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodOb
280
280
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
281
281
  workspace_id: z.ZodOptional<z.ZodString>;
282
282
  workspace_limits: z.ZodOptional<z.ZodObject<{
283
- max_file_upload_size_in_bytes: z.ZodNumber;
283
+ max_file_upload_size_in_bytes: z.ZodInt;
284
284
  }, z.core.$strip>>;
285
285
  }, z.core.$strip>;
286
286
  }, z.core.$strip>, z.ZodObject<{