@notionhq/custom-blocks-host 0.3.6 → 0.3.8

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.
@@ -113,11 +113,49 @@ declare const notionSelectOptionInputSchema: v.UnionSchema<[v.ObjectSchema<{
113
113
  readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
114
114
  }, undefined>], undefined>;
115
115
  export type NotionSelectOptionInput = v.InferOutput<typeof notionSelectOptionInputSchema>;
116
- declare const notionDateInputSchema: v.ObjectSchema<{
116
+ declare const notionDateInputSchema: v.UnionSchema<[v.ObjectSchema<{
117
+ readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
118
+ readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
119
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
120
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
121
+ readonly value: v.NumberSchema<undefined>;
122
+ readonly time: v.StringSchema<undefined>;
123
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
124
+ }, undefined>, v.ObjectSchema<{
125
+ readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
126
+ readonly value: v.NumberSchema<undefined>;
127
+ }, undefined>], undefined>, v.ObjectSchema<{
128
+ readonly unit: v.LiteralSchema<"none", undefined>;
129
+ }, undefined>], undefined>, undefined>;
130
+ readonly start: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IncludesAction<string, "T", undefined>]>;
131
+ }, undefined>, v.ObjectSchema<{
132
+ readonly start: v.StringSchema<undefined>;
133
+ readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
134
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
135
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
136
+ readonly value: v.NumberSchema<undefined>;
137
+ readonly time: v.StringSchema<undefined>;
138
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
139
+ }, undefined>, v.ObjectSchema<{
140
+ readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
141
+ readonly value: v.NumberSchema<undefined>;
142
+ }, undefined>], undefined>, v.ObjectSchema<{
143
+ readonly unit: v.LiteralSchema<"none", undefined>;
144
+ }, undefined>], undefined>, undefined>;
145
+ readonly time_zone: v.StringSchema<undefined>;
146
+ }, undefined>, v.ObjectSchema<{
117
147
  readonly start: v.StringSchema<undefined>;
118
148
  readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
119
149
  readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
120
- }, undefined>;
150
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
151
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
152
+ readonly value: v.NumberSchema<undefined>;
153
+ readonly time: v.StringSchema<undefined>;
154
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
155
+ }, undefined>, v.ObjectSchema<{
156
+ readonly unit: v.LiteralSchema<"none", undefined>;
157
+ }, undefined>], undefined>, undefined>;
158
+ }, undefined>], undefined>;
121
159
  export type NotionDateInput = v.InferOutput<typeof notionDateInputSchema>;
122
160
  declare const notionUserInputSchema: v.UnionSchema<[v.ObjectSchema<{
123
161
  readonly object: v.OptionalSchema<v.LiteralSchema<"user", undefined>, undefined>;
@@ -232,11 +270,49 @@ export declare const notionPagePropertyValueSchema: v.VariantSchema<"type", [v.O
232
270
  }, undefined>, v.ObjectSchema<{
233
271
  readonly id: v.StringSchema<undefined>;
234
272
  readonly type: v.LiteralSchema<"date", undefined>;
235
- readonly date: v.NullableSchema<v.ObjectSchema<{
273
+ readonly date: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
274
+ readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
275
+ readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
276
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
277
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
278
+ readonly value: v.NumberSchema<undefined>;
279
+ readonly time: v.StringSchema<undefined>;
280
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
281
+ }, undefined>, v.ObjectSchema<{
282
+ readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
283
+ readonly value: v.NumberSchema<undefined>;
284
+ }, undefined>], undefined>, v.ObjectSchema<{
285
+ readonly unit: v.LiteralSchema<"none", undefined>;
286
+ }, undefined>], undefined>, undefined>;
287
+ readonly start: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IncludesAction<string, "T", undefined>]>;
288
+ }, undefined>, v.ObjectSchema<{
289
+ readonly start: v.StringSchema<undefined>;
290
+ readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
291
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
292
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
293
+ readonly value: v.NumberSchema<undefined>;
294
+ readonly time: v.StringSchema<undefined>;
295
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
296
+ }, undefined>, v.ObjectSchema<{
297
+ readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
298
+ readonly value: v.NumberSchema<undefined>;
299
+ }, undefined>], undefined>, v.ObjectSchema<{
300
+ readonly unit: v.LiteralSchema<"none", undefined>;
301
+ }, undefined>], undefined>, undefined>;
302
+ readonly time_zone: v.StringSchema<undefined>;
303
+ }, undefined>, v.ObjectSchema<{
236
304
  readonly start: v.StringSchema<undefined>;
237
305
  readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
238
306
  readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
239
- }, undefined>, undefined>;
307
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
308
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
309
+ readonly value: v.NumberSchema<undefined>;
310
+ readonly time: v.StringSchema<undefined>;
311
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
312
+ }, undefined>, v.ObjectSchema<{
313
+ readonly unit: v.LiteralSchema<"none", undefined>;
314
+ }, undefined>], undefined>, undefined>;
315
+ }, undefined>], undefined>, undefined>;
240
316
  }, undefined>, v.ObjectSchema<{
241
317
  readonly id: v.StringSchema<undefined>;
242
318
  readonly type: v.LiteralSchema<"people", undefined>;
@@ -311,6 +387,30 @@ export declare const notionPagePropertyValueSchema: v.VariantSchema<"type", [v.O
311
387
  readonly id: v.StringSchema<undefined>;
312
388
  readonly type: v.LiteralSchema<"last_visited_time", undefined>;
313
389
  readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
390
+ }, undefined>, v.ObjectSchema<{
391
+ readonly id: v.StringSchema<undefined>;
392
+ readonly type: v.LiteralSchema<"unique_id", undefined>;
393
+ readonly unique_id: v.StringSchema<undefined>;
394
+ }, undefined>, v.ObjectSchema<{
395
+ readonly id: v.StringSchema<undefined>;
396
+ readonly type: v.LiteralSchema<"button", undefined>;
397
+ readonly button: v.StringSchema<undefined>;
398
+ }, undefined>, v.ObjectSchema<{
399
+ readonly id: v.StringSchema<undefined>;
400
+ readonly type: v.LiteralSchema<"formula", undefined>;
401
+ readonly formula: v.StringSchema<undefined>;
402
+ }, undefined>, v.ObjectSchema<{
403
+ readonly id: v.StringSchema<undefined>;
404
+ readonly type: v.LiteralSchema<"location", undefined>;
405
+ readonly location: v.StringSchema<undefined>;
406
+ }, undefined>, v.ObjectSchema<{
407
+ readonly id: v.StringSchema<undefined>;
408
+ readonly type: v.LiteralSchema<"rollup", undefined>;
409
+ readonly rollup: v.StringSchema<undefined>;
410
+ }, undefined>, v.ObjectSchema<{
411
+ readonly id: v.StringSchema<undefined>;
412
+ readonly type: v.LiteralSchema<"verification", undefined>;
413
+ readonly verification: v.StringSchema<undefined>;
314
414
  }, undefined>], undefined>;
315
415
  export type NotionPagePropertyValue = v.InferOutput<typeof notionPagePropertyValueSchema>;
316
416
  export declare const notionPagePropertyWriteMapSchema: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
@@ -386,11 +486,49 @@ export declare const notionPagePropertyWriteMapSchema: v.RecordSchema<v.StringSc
386
486
  }, undefined>, v.ObjectSchema<{
387
487
  readonly id: v.StringSchema<undefined>;
388
488
  readonly type: v.LiteralSchema<"date", undefined>;
389
- readonly date: v.NullableSchema<v.ObjectSchema<{
489
+ readonly date: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
490
+ readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
491
+ readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
492
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
493
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
494
+ readonly value: v.NumberSchema<undefined>;
495
+ readonly time: v.StringSchema<undefined>;
496
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
497
+ }, undefined>, v.ObjectSchema<{
498
+ readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
499
+ readonly value: v.NumberSchema<undefined>;
500
+ }, undefined>], undefined>, v.ObjectSchema<{
501
+ readonly unit: v.LiteralSchema<"none", undefined>;
502
+ }, undefined>], undefined>, undefined>;
503
+ readonly start: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IncludesAction<string, "T", undefined>]>;
504
+ }, undefined>, v.ObjectSchema<{
505
+ readonly start: v.StringSchema<undefined>;
506
+ readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
507
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
508
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
509
+ readonly value: v.NumberSchema<undefined>;
510
+ readonly time: v.StringSchema<undefined>;
511
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
512
+ }, undefined>, v.ObjectSchema<{
513
+ readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
514
+ readonly value: v.NumberSchema<undefined>;
515
+ }, undefined>], undefined>, v.ObjectSchema<{
516
+ readonly unit: v.LiteralSchema<"none", undefined>;
517
+ }, undefined>], undefined>, undefined>;
518
+ readonly time_zone: v.StringSchema<undefined>;
519
+ }, undefined>, v.ObjectSchema<{
390
520
  readonly start: v.StringSchema<undefined>;
391
521
  readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
392
522
  readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
393
- }, undefined>, undefined>;
523
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
524
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
525
+ readonly value: v.NumberSchema<undefined>;
526
+ readonly time: v.StringSchema<undefined>;
527
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
528
+ }, undefined>, v.ObjectSchema<{
529
+ readonly unit: v.LiteralSchema<"none", undefined>;
530
+ }, undefined>], undefined>, undefined>;
531
+ }, undefined>], undefined>, undefined>;
394
532
  }, undefined>, v.ObjectSchema<{
395
533
  readonly id: v.StringSchema<undefined>;
396
534
  readonly type: v.LiteralSchema<"people", undefined>;
@@ -465,6 +603,30 @@ export declare const notionPagePropertyWriteMapSchema: v.RecordSchema<v.StringSc
465
603
  readonly id: v.StringSchema<undefined>;
466
604
  readonly type: v.LiteralSchema<"last_visited_time", undefined>;
467
605
  readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
606
+ }, undefined>, v.ObjectSchema<{
607
+ readonly id: v.StringSchema<undefined>;
608
+ readonly type: v.LiteralSchema<"unique_id", undefined>;
609
+ readonly unique_id: v.StringSchema<undefined>;
610
+ }, undefined>, v.ObjectSchema<{
611
+ readonly id: v.StringSchema<undefined>;
612
+ readonly type: v.LiteralSchema<"button", undefined>;
613
+ readonly button: v.StringSchema<undefined>;
614
+ }, undefined>, v.ObjectSchema<{
615
+ readonly id: v.StringSchema<undefined>;
616
+ readonly type: v.LiteralSchema<"formula", undefined>;
617
+ readonly formula: v.StringSchema<undefined>;
618
+ }, undefined>, v.ObjectSchema<{
619
+ readonly id: v.StringSchema<undefined>;
620
+ readonly type: v.LiteralSchema<"location", undefined>;
621
+ readonly location: v.StringSchema<undefined>;
622
+ }, undefined>, v.ObjectSchema<{
623
+ readonly id: v.StringSchema<undefined>;
624
+ readonly type: v.LiteralSchema<"rollup", undefined>;
625
+ readonly rollup: v.StringSchema<undefined>;
626
+ }, undefined>, v.ObjectSchema<{
627
+ readonly id: v.StringSchema<undefined>;
628
+ readonly type: v.LiteralSchema<"verification", undefined>;
629
+ readonly verification: v.StringSchema<undefined>;
468
630
  }, undefined>], undefined>, undefined>;
469
631
  export declare const notionPagePropertyReadMapSchema: v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
470
632
  readonly id: v.StringSchema<undefined>;
@@ -539,11 +701,49 @@ export declare const notionPagePropertyReadMapSchema: v.RecordSchema<v.StringSch
539
701
  }, undefined>, v.ObjectSchema<{
540
702
  readonly id: v.StringSchema<undefined>;
541
703
  readonly type: v.LiteralSchema<"date", undefined>;
542
- readonly date: v.NullableSchema<v.ObjectSchema<{
704
+ readonly date: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
705
+ readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
706
+ readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
707
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
708
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
709
+ readonly value: v.NumberSchema<undefined>;
710
+ readonly time: v.StringSchema<undefined>;
711
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
712
+ }, undefined>, v.ObjectSchema<{
713
+ readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
714
+ readonly value: v.NumberSchema<undefined>;
715
+ }, undefined>], undefined>, v.ObjectSchema<{
716
+ readonly unit: v.LiteralSchema<"none", undefined>;
717
+ }, undefined>], undefined>, undefined>;
718
+ readonly start: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IncludesAction<string, "T", undefined>]>;
719
+ }, undefined>, v.ObjectSchema<{
720
+ readonly start: v.StringSchema<undefined>;
721
+ readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
722
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
723
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
724
+ readonly value: v.NumberSchema<undefined>;
725
+ readonly time: v.StringSchema<undefined>;
726
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
727
+ }, undefined>, v.ObjectSchema<{
728
+ readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
729
+ readonly value: v.NumberSchema<undefined>;
730
+ }, undefined>], undefined>, v.ObjectSchema<{
731
+ readonly unit: v.LiteralSchema<"none", undefined>;
732
+ }, undefined>], undefined>, undefined>;
733
+ readonly time_zone: v.StringSchema<undefined>;
734
+ }, undefined>, v.ObjectSchema<{
543
735
  readonly start: v.StringSchema<undefined>;
544
736
  readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
545
737
  readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
546
- }, undefined>, undefined>;
738
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
739
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
740
+ readonly value: v.NumberSchema<undefined>;
741
+ readonly time: v.StringSchema<undefined>;
742
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
743
+ }, undefined>, v.ObjectSchema<{
744
+ readonly unit: v.LiteralSchema<"none", undefined>;
745
+ }, undefined>], undefined>, undefined>;
746
+ }, undefined>], undefined>, undefined>;
547
747
  }, undefined>, v.ObjectSchema<{
548
748
  readonly id: v.StringSchema<undefined>;
549
749
  readonly type: v.LiteralSchema<"people", undefined>;
@@ -618,6 +818,30 @@ export declare const notionPagePropertyReadMapSchema: v.RecordSchema<v.StringSch
618
818
  readonly id: v.StringSchema<undefined>;
619
819
  readonly type: v.LiteralSchema<"last_visited_time", undefined>;
620
820
  readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
821
+ }, undefined>, v.ObjectSchema<{
822
+ readonly id: v.StringSchema<undefined>;
823
+ readonly type: v.LiteralSchema<"unique_id", undefined>;
824
+ readonly unique_id: v.StringSchema<undefined>;
825
+ }, undefined>, v.ObjectSchema<{
826
+ readonly id: v.StringSchema<undefined>;
827
+ readonly type: v.LiteralSchema<"button", undefined>;
828
+ readonly button: v.StringSchema<undefined>;
829
+ }, undefined>, v.ObjectSchema<{
830
+ readonly id: v.StringSchema<undefined>;
831
+ readonly type: v.LiteralSchema<"formula", undefined>;
832
+ readonly formula: v.StringSchema<undefined>;
833
+ }, undefined>, v.ObjectSchema<{
834
+ readonly id: v.StringSchema<undefined>;
835
+ readonly type: v.LiteralSchema<"location", undefined>;
836
+ readonly location: v.StringSchema<undefined>;
837
+ }, undefined>, v.ObjectSchema<{
838
+ readonly id: v.StringSchema<undefined>;
839
+ readonly type: v.LiteralSchema<"rollup", undefined>;
840
+ readonly rollup: v.StringSchema<undefined>;
841
+ }, undefined>, v.ObjectSchema<{
842
+ readonly id: v.StringSchema<undefined>;
843
+ readonly type: v.LiteralSchema<"verification", undefined>;
844
+ readonly verification: v.StringSchema<undefined>;
621
845
  }, undefined>], undefined>, undefined>, undefined>;
622
846
  export type NotionPagePropertyReadMap = v.InferOutput<typeof notionPagePropertyReadMapSchema>;
623
847
  export type NotionPagePropertyWriteMap = v.InferInput<typeof notionPagePropertyWriteMapSchema>;
@@ -718,11 +942,49 @@ export declare const notionPageDataSchema: v.ObjectSchema<{
718
942
  }, undefined>, v.ObjectSchema<{
719
943
  readonly id: v.StringSchema<undefined>;
720
944
  readonly type: v.LiteralSchema<"date", undefined>;
721
- readonly date: v.NullableSchema<v.ObjectSchema<{
945
+ readonly date: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
946
+ readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
947
+ readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
948
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
949
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
950
+ readonly value: v.NumberSchema<undefined>;
951
+ readonly time: v.StringSchema<undefined>;
952
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
953
+ }, undefined>, v.ObjectSchema<{
954
+ readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
955
+ readonly value: v.NumberSchema<undefined>;
956
+ }, undefined>], undefined>, v.ObjectSchema<{
957
+ readonly unit: v.LiteralSchema<"none", undefined>;
958
+ }, undefined>], undefined>, undefined>;
959
+ readonly start: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IncludesAction<string, "T", undefined>]>;
960
+ }, undefined>, v.ObjectSchema<{
961
+ readonly start: v.StringSchema<undefined>;
962
+ readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
963
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
964
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
965
+ readonly value: v.NumberSchema<undefined>;
966
+ readonly time: v.StringSchema<undefined>;
967
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
968
+ }, undefined>, v.ObjectSchema<{
969
+ readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
970
+ readonly value: v.NumberSchema<undefined>;
971
+ }, undefined>], undefined>, v.ObjectSchema<{
972
+ readonly unit: v.LiteralSchema<"none", undefined>;
973
+ }, undefined>], undefined>, undefined>;
974
+ readonly time_zone: v.StringSchema<undefined>;
975
+ }, undefined>, v.ObjectSchema<{
722
976
  readonly start: v.StringSchema<undefined>;
723
977
  readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
724
978
  readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
725
- }, undefined>, undefined>;
979
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
980
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
981
+ readonly value: v.NumberSchema<undefined>;
982
+ readonly time: v.StringSchema<undefined>;
983
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
984
+ }, undefined>, v.ObjectSchema<{
985
+ readonly unit: v.LiteralSchema<"none", undefined>;
986
+ }, undefined>], undefined>, undefined>;
987
+ }, undefined>], undefined>, undefined>;
726
988
  }, undefined>, v.ObjectSchema<{
727
989
  readonly id: v.StringSchema<undefined>;
728
990
  readonly type: v.LiteralSchema<"people", undefined>;
@@ -797,6 +1059,30 @@ export declare const notionPageDataSchema: v.ObjectSchema<{
797
1059
  readonly id: v.StringSchema<undefined>;
798
1060
  readonly type: v.LiteralSchema<"last_visited_time", undefined>;
799
1061
  readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1062
+ }, undefined>, v.ObjectSchema<{
1063
+ readonly id: v.StringSchema<undefined>;
1064
+ readonly type: v.LiteralSchema<"unique_id", undefined>;
1065
+ readonly unique_id: v.StringSchema<undefined>;
1066
+ }, undefined>, v.ObjectSchema<{
1067
+ readonly id: v.StringSchema<undefined>;
1068
+ readonly type: v.LiteralSchema<"button", undefined>;
1069
+ readonly button: v.StringSchema<undefined>;
1070
+ }, undefined>, v.ObjectSchema<{
1071
+ readonly id: v.StringSchema<undefined>;
1072
+ readonly type: v.LiteralSchema<"formula", undefined>;
1073
+ readonly formula: v.StringSchema<undefined>;
1074
+ }, undefined>, v.ObjectSchema<{
1075
+ readonly id: v.StringSchema<undefined>;
1076
+ readonly type: v.LiteralSchema<"location", undefined>;
1077
+ readonly location: v.StringSchema<undefined>;
1078
+ }, undefined>, v.ObjectSchema<{
1079
+ readonly id: v.StringSchema<undefined>;
1080
+ readonly type: v.LiteralSchema<"rollup", undefined>;
1081
+ readonly rollup: v.StringSchema<undefined>;
1082
+ }, undefined>, v.ObjectSchema<{
1083
+ readonly id: v.StringSchema<undefined>;
1084
+ readonly type: v.LiteralSchema<"verification", undefined>;
1085
+ readonly verification: v.StringSchema<undefined>;
800
1086
  }, undefined>], undefined>, undefined>, undefined>;
801
1087
  readonly created_by: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
802
1088
  readonly id: v.StringSchema<undefined>;
@@ -947,11 +1233,49 @@ export declare const legacyNotionPageSchema: v.ObjectSchema<{
947
1233
  }, undefined>, v.ObjectSchema<{
948
1234
  readonly id: v.StringSchema<undefined>;
949
1235
  readonly type: v.LiteralSchema<"date", undefined>;
950
- readonly date: v.NullableSchema<v.ObjectSchema<{
1236
+ readonly date: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
1237
+ readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1238
+ readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1239
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
1240
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
1241
+ readonly value: v.NumberSchema<undefined>;
1242
+ readonly time: v.StringSchema<undefined>;
1243
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1244
+ }, undefined>, v.ObjectSchema<{
1245
+ readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
1246
+ readonly value: v.NumberSchema<undefined>;
1247
+ }, undefined>], undefined>, v.ObjectSchema<{
1248
+ readonly unit: v.LiteralSchema<"none", undefined>;
1249
+ }, undefined>], undefined>, undefined>;
1250
+ readonly start: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IncludesAction<string, "T", undefined>]>;
1251
+ }, undefined>, v.ObjectSchema<{
1252
+ readonly start: v.StringSchema<undefined>;
1253
+ readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1254
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
1255
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
1256
+ readonly value: v.NumberSchema<undefined>;
1257
+ readonly time: v.StringSchema<undefined>;
1258
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1259
+ }, undefined>, v.ObjectSchema<{
1260
+ readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
1261
+ readonly value: v.NumberSchema<undefined>;
1262
+ }, undefined>], undefined>, v.ObjectSchema<{
1263
+ readonly unit: v.LiteralSchema<"none", undefined>;
1264
+ }, undefined>], undefined>, undefined>;
1265
+ readonly time_zone: v.StringSchema<undefined>;
1266
+ }, undefined>, v.ObjectSchema<{
951
1267
  readonly start: v.StringSchema<undefined>;
952
1268
  readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
953
1269
  readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
954
- }, undefined>, undefined>;
1270
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
1271
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
1272
+ readonly value: v.NumberSchema<undefined>;
1273
+ readonly time: v.StringSchema<undefined>;
1274
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1275
+ }, undefined>, v.ObjectSchema<{
1276
+ readonly unit: v.LiteralSchema<"none", undefined>;
1277
+ }, undefined>], undefined>, undefined>;
1278
+ }, undefined>], undefined>, undefined>;
955
1279
  }, undefined>, v.ObjectSchema<{
956
1280
  readonly id: v.StringSchema<undefined>;
957
1281
  readonly type: v.LiteralSchema<"people", undefined>;
@@ -1026,6 +1350,30 @@ export declare const legacyNotionPageSchema: v.ObjectSchema<{
1026
1350
  readonly id: v.StringSchema<undefined>;
1027
1351
  readonly type: v.LiteralSchema<"last_visited_time", undefined>;
1028
1352
  readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1353
+ }, undefined>, v.ObjectSchema<{
1354
+ readonly id: v.StringSchema<undefined>;
1355
+ readonly type: v.LiteralSchema<"unique_id", undefined>;
1356
+ readonly unique_id: v.StringSchema<undefined>;
1357
+ }, undefined>, v.ObjectSchema<{
1358
+ readonly id: v.StringSchema<undefined>;
1359
+ readonly type: v.LiteralSchema<"button", undefined>;
1360
+ readonly button: v.StringSchema<undefined>;
1361
+ }, undefined>, v.ObjectSchema<{
1362
+ readonly id: v.StringSchema<undefined>;
1363
+ readonly type: v.LiteralSchema<"formula", undefined>;
1364
+ readonly formula: v.StringSchema<undefined>;
1365
+ }, undefined>, v.ObjectSchema<{
1366
+ readonly id: v.StringSchema<undefined>;
1367
+ readonly type: v.LiteralSchema<"location", undefined>;
1368
+ readonly location: v.StringSchema<undefined>;
1369
+ }, undefined>, v.ObjectSchema<{
1370
+ readonly id: v.StringSchema<undefined>;
1371
+ readonly type: v.LiteralSchema<"rollup", undefined>;
1372
+ readonly rollup: v.StringSchema<undefined>;
1373
+ }, undefined>, v.ObjectSchema<{
1374
+ readonly id: v.StringSchema<undefined>;
1375
+ readonly type: v.LiteralSchema<"verification", undefined>;
1376
+ readonly verification: v.StringSchema<undefined>;
1029
1377
  }, undefined>], undefined>, undefined>;
1030
1378
  readonly created_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1031
1379
  readonly last_edited_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
@@ -5,6 +5,7 @@
5
5
  * shape the host delivers for messages like `createPageResult`.
6
6
  */
7
7
  import * as v from "valibot";
8
+ import { notionDateReminderSchema, notionDateTimeReminderSchema, notionDisabledReminderSchema, } from "../dataSources/dateValue.js";
8
9
  import { notionRecordPointerSchema } from "../dataSources/recordPointer.js";
9
10
  import { notionPageIdSchema } from "../ids.js";
10
11
  import { notionParentSchema } from "../parent.js";
@@ -75,11 +76,26 @@ const notionSelectOptionInputSchema = v.union([
75
76
  description: v.optional(nullableStringSchema),
76
77
  }),
77
78
  ]);
78
- const notionDateInputSchema = v.object({
79
+ const dateInputEntries = {
79
80
  start: v.string(),
80
81
  end: v.optional(nullableStringSchema),
81
82
  time_zone: v.optional(nullableStringSchema),
82
- });
83
+ reminder: v.optional(v.union([notionDateTimeReminderSchema, notionDisabledReminderSchema])),
84
+ };
85
+ const notionDateInputSchema = v.union([
86
+ v.object({
87
+ ...dateInputEntries,
88
+ start: v.pipe(v.string(), v.includes("T")),
89
+ }),
90
+ v.object({
91
+ ...dateInputEntries,
92
+ time_zone: v.string(),
93
+ }),
94
+ v.object({
95
+ ...dateInputEntries,
96
+ reminder: v.optional(v.union([notionDateReminderSchema, notionDisabledReminderSchema])),
97
+ }),
98
+ ]);
83
99
  const notionUserInputSchema = v.union([
84
100
  v.object({
85
101
  object: v.optional(v.literal("user")),
@@ -229,6 +245,36 @@ export const notionPagePropertyValueSchema = v.variant("type", [
229
245
  type: v.literal("last_visited_time"),
230
246
  last_visited_time: nullableStringSchema,
231
247
  }),
248
+ v.object({
249
+ ...pagePropertyBaseSchema,
250
+ type: v.literal("unique_id"),
251
+ unique_id: v.string(),
252
+ }),
253
+ v.object({
254
+ ...pagePropertyBaseSchema,
255
+ type: v.literal("button"),
256
+ button: v.string(),
257
+ }),
258
+ v.object({
259
+ ...pagePropertyBaseSchema,
260
+ type: v.literal("formula"),
261
+ formula: v.string(),
262
+ }),
263
+ v.object({
264
+ ...pagePropertyBaseSchema,
265
+ type: v.literal("location"),
266
+ location: v.string(),
267
+ }),
268
+ v.object({
269
+ ...pagePropertyBaseSchema,
270
+ type: v.literal("rollup"),
271
+ rollup: v.string(),
272
+ }),
273
+ v.object({
274
+ ...pagePropertyBaseSchema,
275
+ type: v.literal("verification"),
276
+ verification: v.string(),
277
+ }),
232
278
  ]);
233
279
  export const notionPagePropertyWriteMapSchema = v.record(v.string(), notionPagePropertyValueSchema);
234
280
  export const notionPagePropertyReadMapSchema = v.record(v.string(), v.nullable(notionPagePropertyValueSchema));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@notionhq/custom-blocks-host",
3
- "version": "0.3.6",
3
+ "version": "0.3.8",
4
4
  "description": "Reusable host runtime for Notion custom blocks.",
5
5
  "license": "MIT",
6
6
  "type": "module",