@notionhq/custom-blocks 0.3.1 → 0.3.3

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 (46) hide show
  1. package/README.md +2 -8
  2. package/dist/bridge/SandboxBridge.d.ts +469 -15
  3. package/dist/bridge/SandboxBridge.d.ts.map +1 -1
  4. package/dist/bridge/SandboxBridge.js +119 -88
  5. package/dist/bridge/dataSources/resolveProperty.d.ts +1 -20
  6. package/dist/bridge/dataSources/resolveProperty.d.ts.map +1 -1
  7. package/dist/bridge/dataSources/resolveProperty.js +37 -32
  8. package/dist/bridge/page.d.ts +11 -7
  9. package/dist/bridge/page.d.ts.map +1 -1
  10. package/dist/bridge/page.js +20 -50
  11. package/dist/bridge/sandboxClient.d.ts.map +1 -1
  12. package/dist/bridge/sandboxClient.js +32 -6
  13. package/dist/dataSources.d.ts.map +1 -1
  14. package/dist/dataSources.js +4 -3
  15. package/dist/index.d.ts +1 -0
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/protocol/dataSources/dateValue.d.ts +2 -2
  18. package/dist/protocol/dataSources/dateValue.js +9 -7
  19. package/dist/protocol/messages/createPage.d.ts +64 -2
  20. package/dist/protocol/messages/createPageResult.d.ts +192 -6
  21. package/dist/protocol/messages/getPage.d.ts +192 -6
  22. package/dist/protocol/messages/hostToSandbox.d.ts +704 -22
  23. package/dist/protocol/messages/queryDataSourceResult.d.ts +128 -4
  24. package/dist/protocol/messages/sandboxToHost.d.ts +128 -4
  25. package/dist/protocol/messages/updatePage.d.ts +64 -2
  26. package/dist/protocol/messages/updatePageResult.d.ts +192 -6
  27. package/dist/protocol/pages/page.d.ts +360 -12
  28. package/dist/protocol/pages/page.js +48 -2
  29. package/dist/protocol/protocolVersion.d.ts +2 -1
  30. package/dist/protocol/protocolVersion.js +3 -1
  31. package/dist/types.d.ts +1 -1
  32. package/dist/types.d.ts.map +1 -1
  33. package/dist/version.js +1 -1
  34. package/docs/build-tools.md +55 -0
  35. package/docs/data-sources.md +12 -9
  36. package/docs/deployment.md +16 -34
  37. package/docs/errors.md +65 -52
  38. package/docs/pages.md +85 -78
  39. package/package.json +2 -18
  40. package/src/bridge/SandboxBridge.ts +168 -129
  41. package/src/bridge/dataSources/resolveProperty.ts +48 -39
  42. package/src/bridge/page.ts +32 -75
  43. package/src/bridge/sandboxClient.ts +40 -7
  44. package/src/dataSources.ts +7 -9
  45. package/src/index.ts +6 -0
  46. package/src/types.ts +6 -0
package/dist/index.d.ts CHANGED
@@ -8,6 +8,7 @@
8
8
  */
9
9
  export type { NotionContrastMode } from "./protocol/contrast.js";
10
10
  export type { NotionCollectionSchema, NotionDataSource, } from "./protocol/dataSources/dataSource.js";
11
+ export type { NotionDateReminder, NotionDateTimeReminder, NotionDisabledReminder, NotionTimeReminder, } from "./protocol/dataSources/dateValue.js";
11
12
  export type { CustomBlockDataSourceResolutionErrorCode, CustomBlockDataSourceResolutionErrorInfo, CustomBlockPropertyErrorCode, CustomBlockPropertyErrorInfo, } from "./protocol/dataSources/errors.js";
12
13
  export type { NotionDualProperty, NotionPropertyColor, NotionPropertyOption, NotionPropertySchema, NotionPropertyType, NotionStatusGroup, } from "./protocol/dataSources/propertySchema.js";
13
14
  export { NOTION_PROPERTY_TYPES } from "./protocol/dataSources/propertySchema.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,YAAY,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAA;AACtF,YAAY,EACX,sBAAsB,EACtB,gBAAgB,GAChB,MAAM,4DAA4D,CAAA;AACnE,YAAY,EACX,wCAAwC,EACxC,wCAAwC,EACxC,4BAA4B,EAC5B,4BAA4B,GAC5B,MAAM,wDAAwD,CAAA;AAC/D,YAAY,EACX,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,GACjB,MAA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AE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EACN,KAAK,sBAAsB,EAC3B,eAAe,EACf,gBAAgB,GAChB,MAAM,WAAW,CAAA;AAClB,cAAc,YAAY,CAAA"}
@@ -11,10 +11,10 @@ export declare const notionTimeReminderSchema: v.ObjectSchema<{
11
11
  readonly value: v.NumberSchema<undefined>;
12
12
  }, undefined>;
13
13
  export type NotionTimeReminder = v.InferOutput<typeof notionTimeReminderSchema>;
14
- export declare const notionNoReminderSchema: v.ObjectSchema<{
14
+ export declare const notionDisabledReminderSchema: v.ObjectSchema<{
15
15
  readonly unit: v.LiteralSchema<"none", undefined>;
16
16
  }, undefined>;
17
- export type NotionNoReminder = v.InferOutput<typeof notionNoReminderSchema>;
17
+ export type NotionDisabledReminder = v.InferOutput<typeof notionDisabledReminderSchema>;
18
18
  /**
19
19
  * Possible types for a Notion `datetime` reminder.
20
20
  */
@@ -9,7 +9,9 @@ export const notionTimeReminderSchema = v.object({
9
9
  unit: v.picklist(["hour", "minute"]),
10
10
  value: v.number(),
11
11
  });
12
- export const notionNoReminderSchema = v.object({
12
+ // An omitted reminder can inherit the date property's default reminder.
13
+ // "none" explicitly disables reminders instead.
14
+ export const notionDisabledReminderSchema = v.object({
13
15
  unit: v.literal("none"),
14
16
  });
15
17
  /**
@@ -19,25 +21,25 @@ export const notionDateTimeReminderSchema = v.union([
19
21
  notionDateReminderSchema,
20
22
  notionTimeReminderSchema,
21
23
  ]);
22
- const dateOrNoReminder = v.optional(v.union([notionDateReminderSchema, notionNoReminderSchema]));
23
- const dateTimeOrNoReminder = v.optional(v.union([notionDateTimeReminderSchema, notionNoReminderSchema]));
24
+ const dateOrDisabledReminder = v.optional(v.union([notionDateReminderSchema, notionDisabledReminderSchema]));
25
+ const dateTimeOrDisabledReminder = v.optional(v.union([notionDateTimeReminderSchema, notionDisabledReminderSchema]));
24
26
  export const notionDateSchema = v.object({
25
27
  type: v.literal("date"),
26
28
  start_date: v.string(),
27
- reminder: dateOrNoReminder,
29
+ reminder: dateOrDisabledReminder,
28
30
  });
29
31
  export const notionDateRangeSchema = v.object({
30
32
  type: v.literal("daterange"),
31
33
  start_date: v.string(),
32
34
  end_date: v.string(),
33
- reminder: dateOrNoReminder,
35
+ reminder: dateOrDisabledReminder,
34
36
  });
35
37
  export const notionDateTimeSchema = v.object({
36
38
  type: v.literal("datetime"),
37
39
  start_date: v.string(),
38
40
  start_time: v.string(),
39
41
  time_zone: v.optional(v.string()),
40
- reminder: dateTimeOrNoReminder,
42
+ reminder: dateTimeOrDisabledReminder,
41
43
  });
42
44
  export const notionDateTimeRangeSchema = v.object({
43
45
  type: v.literal("datetimerange"),
@@ -46,7 +48,7 @@ export const notionDateTimeRangeSchema = v.object({
46
48
  end_date: v.string(),
47
49
  end_time: v.string(),
48
50
  time_zone: v.optional(v.string()),
49
- reminder: dateTimeOrNoReminder,
51
+ reminder: dateTimeOrDisabledReminder,
50
52
  });
51
53
  /**
52
54
  * Possible types for a Notion `date` value.
@@ -130,11 +130,49 @@ export declare const createPageMessageSchema: v.ObjectSchema<{
130
130
  }, undefined>, v.ObjectSchema<{
131
131
  readonly id: v.StringSchema<undefined>;
132
132
  readonly type: v.LiteralSchema<"date", undefined>;
133
- readonly date: v.NullableSchema<v.ObjectSchema<{
133
+ readonly date: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
134
+ readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
135
+ readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
136
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
137
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
138
+ readonly value: v.NumberSchema<undefined>;
139
+ readonly time: v.StringSchema<undefined>;
140
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
141
+ }, undefined>, v.ObjectSchema<{
142
+ readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
143
+ readonly value: v.NumberSchema<undefined>;
144
+ }, undefined>], undefined>, v.ObjectSchema<{
145
+ readonly unit: v.LiteralSchema<"none", undefined>;
146
+ }, undefined>], undefined>, undefined>;
147
+ readonly start: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IncludesAction<string, "T", undefined>]>;
148
+ }, undefined>, v.ObjectSchema<{
149
+ readonly start: v.StringSchema<undefined>;
150
+ readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
151
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
152
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
153
+ readonly value: v.NumberSchema<undefined>;
154
+ readonly time: v.StringSchema<undefined>;
155
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
156
+ }, undefined>, v.ObjectSchema<{
157
+ readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
158
+ readonly value: v.NumberSchema<undefined>;
159
+ }, undefined>], undefined>, v.ObjectSchema<{
160
+ readonly unit: v.LiteralSchema<"none", undefined>;
161
+ }, undefined>], undefined>, undefined>;
162
+ readonly time_zone: v.StringSchema<undefined>;
163
+ }, undefined>, v.ObjectSchema<{
134
164
  readonly start: v.StringSchema<undefined>;
135
165
  readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
136
166
  readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
137
- }, undefined>, undefined>;
167
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
168
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
169
+ readonly value: v.NumberSchema<undefined>;
170
+ readonly time: v.StringSchema<undefined>;
171
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
172
+ }, undefined>, v.ObjectSchema<{
173
+ readonly unit: v.LiteralSchema<"none", undefined>;
174
+ }, undefined>], undefined>, undefined>;
175
+ }, undefined>], undefined>, undefined>;
138
176
  }, undefined>, v.ObjectSchema<{
139
177
  readonly id: v.StringSchema<undefined>;
140
178
  readonly type: v.LiteralSchema<"people", undefined>;
@@ -209,6 +247,30 @@ export declare const createPageMessageSchema: v.ObjectSchema<{
209
247
  readonly id: v.StringSchema<undefined>;
210
248
  readonly type: v.LiteralSchema<"last_visited_time", undefined>;
211
249
  readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
250
+ }, undefined>, v.ObjectSchema<{
251
+ readonly id: v.StringSchema<undefined>;
252
+ readonly type: v.LiteralSchema<"unique_id", undefined>;
253
+ readonly unique_id: v.StringSchema<undefined>;
254
+ }, undefined>, v.ObjectSchema<{
255
+ readonly id: v.StringSchema<undefined>;
256
+ readonly type: v.LiteralSchema<"button", undefined>;
257
+ readonly button: v.StringSchema<undefined>;
258
+ }, undefined>, v.ObjectSchema<{
259
+ readonly id: v.StringSchema<undefined>;
260
+ readonly type: v.LiteralSchema<"formula", undefined>;
261
+ readonly formula: v.StringSchema<undefined>;
262
+ }, undefined>, v.ObjectSchema<{
263
+ readonly id: v.StringSchema<undefined>;
264
+ readonly type: v.LiteralSchema<"location", undefined>;
265
+ readonly location: v.StringSchema<undefined>;
266
+ }, undefined>, v.ObjectSchema<{
267
+ readonly id: v.StringSchema<undefined>;
268
+ readonly type: v.LiteralSchema<"rollup", undefined>;
269
+ readonly rollup: v.StringSchema<undefined>;
270
+ }, undefined>, v.ObjectSchema<{
271
+ readonly id: v.StringSchema<undefined>;
272
+ readonly type: v.LiteralSchema<"verification", undefined>;
273
+ readonly verification: v.StringSchema<undefined>;
212
274
  }, undefined>], undefined>, undefined>;
213
275
  readonly position: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
214
276
  readonly type: v.LiteralSchema<"start", undefined>;
@@ -110,11 +110,49 @@ export declare const createPageResultMessageSchema: v.VariantSchema<"status", [v
110
110
  }, undefined>, v.ObjectSchema<{
111
111
  readonly id: v.StringSchema<undefined>;
112
112
  readonly type: v.LiteralSchema<"date", undefined>;
113
- readonly date: v.NullableSchema<v.ObjectSchema<{
113
+ readonly date: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
114
+ readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
115
+ readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
116
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
117
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
118
+ readonly value: v.NumberSchema<undefined>;
119
+ readonly time: v.StringSchema<undefined>;
120
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
121
+ }, undefined>, v.ObjectSchema<{
122
+ readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
123
+ readonly value: v.NumberSchema<undefined>;
124
+ }, undefined>], undefined>, v.ObjectSchema<{
125
+ readonly unit: v.LiteralSchema<"none", undefined>;
126
+ }, undefined>], undefined>, undefined>;
127
+ readonly start: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IncludesAction<string, "T", undefined>]>;
128
+ }, undefined>, v.ObjectSchema<{
129
+ readonly start: v.StringSchema<undefined>;
130
+ readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
131
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
132
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
133
+ readonly value: v.NumberSchema<undefined>;
134
+ readonly time: v.StringSchema<undefined>;
135
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
136
+ }, undefined>, v.ObjectSchema<{
137
+ readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
138
+ readonly value: v.NumberSchema<undefined>;
139
+ }, undefined>], undefined>, v.ObjectSchema<{
140
+ readonly unit: v.LiteralSchema<"none", undefined>;
141
+ }, undefined>], undefined>, undefined>;
142
+ readonly time_zone: v.StringSchema<undefined>;
143
+ }, undefined>, v.ObjectSchema<{
114
144
  readonly start: v.StringSchema<undefined>;
115
145
  readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
116
146
  readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
117
- }, undefined>, undefined>;
147
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
148
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
149
+ readonly value: v.NumberSchema<undefined>;
150
+ readonly time: v.StringSchema<undefined>;
151
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
152
+ }, undefined>, v.ObjectSchema<{
153
+ readonly unit: v.LiteralSchema<"none", undefined>;
154
+ }, undefined>], undefined>, undefined>;
155
+ }, undefined>], undefined>, undefined>;
118
156
  }, undefined>, v.ObjectSchema<{
119
157
  readonly id: v.StringSchema<undefined>;
120
158
  readonly type: v.LiteralSchema<"people", undefined>;
@@ -189,6 +227,30 @@ export declare const createPageResultMessageSchema: v.VariantSchema<"status", [v
189
227
  readonly id: v.StringSchema<undefined>;
190
228
  readonly type: v.LiteralSchema<"last_visited_time", undefined>;
191
229
  readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
230
+ }, undefined>, v.ObjectSchema<{
231
+ readonly id: v.StringSchema<undefined>;
232
+ readonly type: v.LiteralSchema<"unique_id", undefined>;
233
+ readonly unique_id: v.StringSchema<undefined>;
234
+ }, undefined>, v.ObjectSchema<{
235
+ readonly id: v.StringSchema<undefined>;
236
+ readonly type: v.LiteralSchema<"button", undefined>;
237
+ readonly button: v.StringSchema<undefined>;
238
+ }, undefined>, v.ObjectSchema<{
239
+ readonly id: v.StringSchema<undefined>;
240
+ readonly type: v.LiteralSchema<"formula", undefined>;
241
+ readonly formula: v.StringSchema<undefined>;
242
+ }, undefined>, v.ObjectSchema<{
243
+ readonly id: v.StringSchema<undefined>;
244
+ readonly type: v.LiteralSchema<"location", undefined>;
245
+ readonly location: v.StringSchema<undefined>;
246
+ }, undefined>, v.ObjectSchema<{
247
+ readonly id: v.StringSchema<undefined>;
248
+ readonly type: v.LiteralSchema<"rollup", undefined>;
249
+ readonly rollup: v.StringSchema<undefined>;
250
+ }, undefined>, v.ObjectSchema<{
251
+ readonly id: v.StringSchema<undefined>;
252
+ readonly type: v.LiteralSchema<"verification", undefined>;
253
+ readonly verification: v.StringSchema<undefined>;
192
254
  }, undefined>], undefined>, undefined>, undefined>;
193
255
  readonly created_by: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
194
256
  readonly id: v.StringSchema<undefined>;
@@ -351,11 +413,49 @@ export declare const createPageResultMessageLegacySchema: v.VariantSchema<"statu
351
413
  }, undefined>, v.ObjectSchema<{
352
414
  readonly id: v.StringSchema<undefined>;
353
415
  readonly type: v.LiteralSchema<"date", undefined>;
354
- readonly date: v.NullableSchema<v.ObjectSchema<{
416
+ readonly date: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
417
+ readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
418
+ readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
419
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
420
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
421
+ readonly value: v.NumberSchema<undefined>;
422
+ readonly time: v.StringSchema<undefined>;
423
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
424
+ }, undefined>, v.ObjectSchema<{
425
+ readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
426
+ readonly value: v.NumberSchema<undefined>;
427
+ }, undefined>], undefined>, v.ObjectSchema<{
428
+ readonly unit: v.LiteralSchema<"none", undefined>;
429
+ }, undefined>], undefined>, undefined>;
430
+ readonly start: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IncludesAction<string, "T", undefined>]>;
431
+ }, undefined>, v.ObjectSchema<{
432
+ readonly start: v.StringSchema<undefined>;
433
+ readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
434
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
435
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
436
+ readonly value: v.NumberSchema<undefined>;
437
+ readonly time: v.StringSchema<undefined>;
438
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
439
+ }, undefined>, v.ObjectSchema<{
440
+ readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
441
+ readonly value: v.NumberSchema<undefined>;
442
+ }, undefined>], undefined>, v.ObjectSchema<{
443
+ readonly unit: v.LiteralSchema<"none", undefined>;
444
+ }, undefined>], undefined>, undefined>;
445
+ readonly time_zone: v.StringSchema<undefined>;
446
+ }, undefined>, v.ObjectSchema<{
355
447
  readonly start: v.StringSchema<undefined>;
356
448
  readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
357
449
  readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
358
- }, undefined>, undefined>;
450
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
451
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
452
+ readonly value: v.NumberSchema<undefined>;
453
+ readonly time: v.StringSchema<undefined>;
454
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
455
+ }, undefined>, v.ObjectSchema<{
456
+ readonly unit: v.LiteralSchema<"none", undefined>;
457
+ }, undefined>], undefined>, undefined>;
458
+ }, undefined>], undefined>, undefined>;
359
459
  }, undefined>, v.ObjectSchema<{
360
460
  readonly id: v.StringSchema<undefined>;
361
461
  readonly type: v.LiteralSchema<"people", undefined>;
@@ -430,6 +530,30 @@ export declare const createPageResultMessageLegacySchema: v.VariantSchema<"statu
430
530
  readonly id: v.StringSchema<undefined>;
431
531
  readonly type: v.LiteralSchema<"last_visited_time", undefined>;
432
532
  readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
533
+ }, undefined>, v.ObjectSchema<{
534
+ readonly id: v.StringSchema<undefined>;
535
+ readonly type: v.LiteralSchema<"unique_id", undefined>;
536
+ readonly unique_id: v.StringSchema<undefined>;
537
+ }, undefined>, v.ObjectSchema<{
538
+ readonly id: v.StringSchema<undefined>;
539
+ readonly type: v.LiteralSchema<"button", undefined>;
540
+ readonly button: v.StringSchema<undefined>;
541
+ }, undefined>, v.ObjectSchema<{
542
+ readonly id: v.StringSchema<undefined>;
543
+ readonly type: v.LiteralSchema<"formula", undefined>;
544
+ readonly formula: v.StringSchema<undefined>;
545
+ }, undefined>, v.ObjectSchema<{
546
+ readonly id: v.StringSchema<undefined>;
547
+ readonly type: v.LiteralSchema<"location", undefined>;
548
+ readonly location: v.StringSchema<undefined>;
549
+ }, undefined>, v.ObjectSchema<{
550
+ readonly id: v.StringSchema<undefined>;
551
+ readonly type: v.LiteralSchema<"rollup", undefined>;
552
+ readonly rollup: v.StringSchema<undefined>;
553
+ }, undefined>, v.ObjectSchema<{
554
+ readonly id: v.StringSchema<undefined>;
555
+ readonly type: v.LiteralSchema<"verification", undefined>;
556
+ readonly verification: v.StringSchema<undefined>;
433
557
  }, undefined>], undefined>, undefined>, undefined>;
434
558
  readonly created_by: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
435
559
  readonly id: v.StringSchema<undefined>;
@@ -576,11 +700,49 @@ export declare const createPageResultMessageLegacySchema: v.VariantSchema<"statu
576
700
  }, undefined>, v.ObjectSchema<{
577
701
  readonly id: v.StringSchema<undefined>;
578
702
  readonly type: v.LiteralSchema<"date", undefined>;
579
- readonly date: v.NullableSchema<v.ObjectSchema<{
703
+ readonly date: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
704
+ readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
705
+ readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
706
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
707
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
708
+ readonly value: v.NumberSchema<undefined>;
709
+ readonly time: v.StringSchema<undefined>;
710
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
711
+ }, undefined>, v.ObjectSchema<{
712
+ readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
713
+ readonly value: v.NumberSchema<undefined>;
714
+ }, undefined>], undefined>, v.ObjectSchema<{
715
+ readonly unit: v.LiteralSchema<"none", undefined>;
716
+ }, undefined>], undefined>, undefined>;
717
+ readonly start: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IncludesAction<string, "T", undefined>]>;
718
+ }, undefined>, v.ObjectSchema<{
719
+ readonly start: v.StringSchema<undefined>;
720
+ readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
721
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
722
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
723
+ readonly value: v.NumberSchema<undefined>;
724
+ readonly time: v.StringSchema<undefined>;
725
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
726
+ }, undefined>, v.ObjectSchema<{
727
+ readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
728
+ readonly value: v.NumberSchema<undefined>;
729
+ }, undefined>], undefined>, v.ObjectSchema<{
730
+ readonly unit: v.LiteralSchema<"none", undefined>;
731
+ }, undefined>], undefined>, undefined>;
732
+ readonly time_zone: v.StringSchema<undefined>;
733
+ }, undefined>, v.ObjectSchema<{
580
734
  readonly start: v.StringSchema<undefined>;
581
735
  readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
582
736
  readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
583
- }, undefined>, undefined>;
737
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
738
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
739
+ readonly value: v.NumberSchema<undefined>;
740
+ readonly time: v.StringSchema<undefined>;
741
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
742
+ }, undefined>, v.ObjectSchema<{
743
+ readonly unit: v.LiteralSchema<"none", undefined>;
744
+ }, undefined>], undefined>, undefined>;
745
+ }, undefined>], undefined>, undefined>;
584
746
  }, undefined>, v.ObjectSchema<{
585
747
  readonly id: v.StringSchema<undefined>;
586
748
  readonly type: v.LiteralSchema<"people", undefined>;
@@ -655,6 +817,30 @@ export declare const createPageResultMessageLegacySchema: v.VariantSchema<"statu
655
817
  readonly id: v.StringSchema<undefined>;
656
818
  readonly type: v.LiteralSchema<"last_visited_time", undefined>;
657
819
  readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
820
+ }, undefined>, v.ObjectSchema<{
821
+ readonly id: v.StringSchema<undefined>;
822
+ readonly type: v.LiteralSchema<"unique_id", undefined>;
823
+ readonly unique_id: v.StringSchema<undefined>;
824
+ }, undefined>, v.ObjectSchema<{
825
+ readonly id: v.StringSchema<undefined>;
826
+ readonly type: v.LiteralSchema<"button", undefined>;
827
+ readonly button: v.StringSchema<undefined>;
828
+ }, undefined>, v.ObjectSchema<{
829
+ readonly id: v.StringSchema<undefined>;
830
+ readonly type: v.LiteralSchema<"formula", undefined>;
831
+ readonly formula: v.StringSchema<undefined>;
832
+ }, undefined>, v.ObjectSchema<{
833
+ readonly id: v.StringSchema<undefined>;
834
+ readonly type: v.LiteralSchema<"location", undefined>;
835
+ readonly location: v.StringSchema<undefined>;
836
+ }, undefined>, v.ObjectSchema<{
837
+ readonly id: v.StringSchema<undefined>;
838
+ readonly type: v.LiteralSchema<"rollup", undefined>;
839
+ readonly rollup: v.StringSchema<undefined>;
840
+ }, undefined>, v.ObjectSchema<{
841
+ readonly id: v.StringSchema<undefined>;
842
+ readonly type: v.LiteralSchema<"verification", undefined>;
843
+ readonly verification: v.StringSchema<undefined>;
658
844
  }, undefined>], undefined>, undefined>;
659
845
  readonly created_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
660
846
  readonly last_edited_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;