@notionhq/custom-blocks-host 0.3.5 → 0.3.7
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 +5 -0
- package/dist/browser.js +1 -1
- package/dist/dateValue.d.ts +11 -0
- package/dist/dateValue.d.ts.map +1 -0
- package/dist/dateValue.js +96 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/lifecycle/legacyPage.d.ts +4 -2
- package/dist/lifecycle/legacyPage.d.ts.map +1 -1
- package/dist/lifecycle/legacyPage.js +14 -62
- package/dist/lifecycle/normalizeHostToSandboxMessage.d.ts.map +1 -1
- package/dist/lifecycle/normalizeHostToSandboxMessage.js +8 -2
- package/dist/lifecycle/normalizePage.d.ts +7 -0
- package/dist/lifecycle/normalizePage.d.ts.map +1 -0
- package/dist/lifecycle/normalizePage.js +22 -0
- package/dist/messages/types.d.ts +1 -2
- package/dist/messages/types.d.ts.map +1 -1
- package/dist/protocol/dataSources/dataSourcePage.d.ts +0 -160
- package/dist/protocol/dataSources/dataSourcePage.js +0 -7
- package/dist/protocol/dataSources/dateValue.d.ts +2 -2
- package/dist/protocol/dataSources/dateValue.js +9 -7
- package/dist/protocol/messages/createPage.d.ts +40 -2
- package/dist/protocol/messages/createPage.js +2 -2
- package/dist/protocol/messages/createPageResult.d.ts +584 -3
- package/dist/protocol/messages/createPageResult.js +17 -2
- package/dist/protocol/messages/getPage.d.ts +584 -3
- package/dist/protocol/messages/getPage.js +18 -3
- package/dist/protocol/messages/hostToSandbox.d.ts +1638 -376
- package/dist/protocol/messages/hostToSandbox.js +9 -6
- package/dist/protocol/messages/queryDataSourceResult.d.ts +222 -10
- package/dist/protocol/messages/queryDataSourceResult.js +4 -6
- package/dist/protocol/messages/sandboxToHost.d.ts +82 -4
- package/dist/protocol/messages/updatePage.d.ts +41 -2
- package/dist/protocol/messages/updatePage.js +4 -3
- package/dist/protocol/messages/updatePageResult.d.ts +583 -3
- package/dist/protocol/messages/updatePageResult.js +16 -2
- package/dist/protocol/pages/page.d.ts +622 -14
- package/dist/protocol/pages/page.js +41 -4
- package/dist/protocol/protocolVersion.js +1 -1
- package/package.json +1 -1
- package/src/dateValue.ts +120 -0
- package/src/index.ts +7 -4
- package/src/lifecycle/legacyPage.ts +30 -76
- package/src/lifecycle/normalizeHostToSandboxMessage.ts +13 -2
- package/src/lifecycle/normalizePage.ts +35 -0
- package/src/messages/types.ts +1 -1
- package/dist/lifecycle/normalizeQueryPage.d.ts +0 -3
- package/dist/lifecycle/normalizeQueryPage.d.ts.map +0 -1
- package/dist/lifecycle/normalizeQueryPage.js +0 -13
- package/src/lifecycle/normalizeQueryPage.ts +0 -25
|
@@ -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
|
-
|
|
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
|
-
|
|
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>;
|
|
@@ -313,7 +389,7 @@ export declare const notionPagePropertyValueSchema: v.VariantSchema<"type", [v.O
|
|
|
313
389
|
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
314
390
|
}, undefined>], undefined>;
|
|
315
391
|
export type NotionPagePropertyValue = v.InferOutput<typeof notionPagePropertyValueSchema>;
|
|
316
|
-
export declare const
|
|
392
|
+
export declare const notionPagePropertyWriteMapSchema: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
317
393
|
readonly id: v.StringSchema<undefined>;
|
|
318
394
|
readonly type: v.LiteralSchema<"title", undefined>;
|
|
319
395
|
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
@@ -386,11 +462,49 @@ export declare const notionPagePropertyReadMapSchema: v.RecordSchema<v.StringSch
|
|
|
386
462
|
}, undefined>, v.ObjectSchema<{
|
|
387
463
|
readonly id: v.StringSchema<undefined>;
|
|
388
464
|
readonly type: v.LiteralSchema<"date", undefined>;
|
|
389
|
-
readonly date: v.NullableSchema<v.ObjectSchema<{
|
|
465
|
+
readonly date: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
466
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
467
|
+
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
468
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
|
|
469
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
470
|
+
readonly value: v.NumberSchema<undefined>;
|
|
471
|
+
readonly time: v.StringSchema<undefined>;
|
|
472
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
473
|
+
}, undefined>, v.ObjectSchema<{
|
|
474
|
+
readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
|
|
475
|
+
readonly value: v.NumberSchema<undefined>;
|
|
476
|
+
}, undefined>], undefined>, v.ObjectSchema<{
|
|
477
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
478
|
+
}, undefined>], undefined>, undefined>;
|
|
479
|
+
readonly start: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IncludesAction<string, "T", undefined>]>;
|
|
480
|
+
}, undefined>, v.ObjectSchema<{
|
|
481
|
+
readonly start: v.StringSchema<undefined>;
|
|
482
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
483
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
|
|
484
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
485
|
+
readonly value: v.NumberSchema<undefined>;
|
|
486
|
+
readonly time: v.StringSchema<undefined>;
|
|
487
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
488
|
+
}, undefined>, v.ObjectSchema<{
|
|
489
|
+
readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
|
|
490
|
+
readonly value: v.NumberSchema<undefined>;
|
|
491
|
+
}, undefined>], undefined>, v.ObjectSchema<{
|
|
492
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
493
|
+
}, undefined>], undefined>, undefined>;
|
|
494
|
+
readonly time_zone: v.StringSchema<undefined>;
|
|
495
|
+
}, undefined>, v.ObjectSchema<{
|
|
390
496
|
readonly start: v.StringSchema<undefined>;
|
|
391
497
|
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
392
498
|
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
393
|
-
|
|
499
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
500
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
501
|
+
readonly value: v.NumberSchema<undefined>;
|
|
502
|
+
readonly time: v.StringSchema<undefined>;
|
|
503
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
504
|
+
}, undefined>, v.ObjectSchema<{
|
|
505
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
506
|
+
}, undefined>], undefined>, undefined>;
|
|
507
|
+
}, undefined>], undefined>, undefined>;
|
|
394
508
|
}, undefined>, v.ObjectSchema<{
|
|
395
509
|
readonly id: v.StringSchema<undefined>;
|
|
396
510
|
readonly type: v.LiteralSchema<"people", undefined>;
|
|
@@ -466,14 +580,203 @@ export declare const notionPagePropertyReadMapSchema: v.RecordSchema<v.StringSch
|
|
|
466
580
|
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
467
581
|
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
468
582
|
}, undefined>], undefined>, undefined>;
|
|
583
|
+
export declare const notionPagePropertyReadMapSchema: v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
584
|
+
readonly id: v.StringSchema<undefined>;
|
|
585
|
+
readonly type: v.LiteralSchema<"title", undefined>;
|
|
586
|
+
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
587
|
+
}, undefined>, v.ObjectSchema<{
|
|
588
|
+
readonly id: v.StringSchema<undefined>;
|
|
589
|
+
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
590
|
+
readonly rich_text: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
591
|
+
}, undefined>, v.ObjectSchema<{
|
|
592
|
+
readonly id: v.StringSchema<undefined>;
|
|
593
|
+
readonly type: v.LiteralSchema<"number", undefined>;
|
|
594
|
+
readonly number: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
595
|
+
}, undefined>, v.ObjectSchema<{
|
|
596
|
+
readonly id: v.StringSchema<undefined>;
|
|
597
|
+
readonly type: v.LiteralSchema<"url", undefined>;
|
|
598
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
599
|
+
}, undefined>, v.ObjectSchema<{
|
|
600
|
+
readonly id: v.StringSchema<undefined>;
|
|
601
|
+
readonly type: v.LiteralSchema<"email", undefined>;
|
|
602
|
+
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
603
|
+
}, undefined>, v.ObjectSchema<{
|
|
604
|
+
readonly id: v.StringSchema<undefined>;
|
|
605
|
+
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
606
|
+
readonly phone_number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
607
|
+
}, undefined>, v.ObjectSchema<{
|
|
608
|
+
readonly id: v.StringSchema<undefined>;
|
|
609
|
+
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
610
|
+
readonly checkbox: v.BooleanSchema<undefined>;
|
|
611
|
+
}, undefined>, v.ObjectSchema<{
|
|
612
|
+
readonly id: v.StringSchema<undefined>;
|
|
613
|
+
readonly type: v.LiteralSchema<"select", undefined>;
|
|
614
|
+
readonly select: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
615
|
+
readonly id: v.StringSchema<undefined>;
|
|
616
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
617
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
618
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
619
|
+
}, undefined>, v.ObjectSchema<{
|
|
620
|
+
readonly name: v.StringSchema<undefined>;
|
|
621
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
622
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
623
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
624
|
+
}, undefined>], undefined>, undefined>;
|
|
625
|
+
}, undefined>, v.ObjectSchema<{
|
|
626
|
+
readonly id: v.StringSchema<undefined>;
|
|
627
|
+
readonly type: v.LiteralSchema<"status", undefined>;
|
|
628
|
+
readonly status: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
629
|
+
readonly id: v.StringSchema<undefined>;
|
|
630
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
631
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
632
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
633
|
+
}, undefined>, v.ObjectSchema<{
|
|
634
|
+
readonly name: v.StringSchema<undefined>;
|
|
635
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
636
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
637
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
638
|
+
}, undefined>], undefined>, undefined>;
|
|
639
|
+
}, undefined>, v.ObjectSchema<{
|
|
640
|
+
readonly id: v.StringSchema<undefined>;
|
|
641
|
+
readonly type: v.LiteralSchema<"multi_select", undefined>;
|
|
642
|
+
readonly multi_select: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
643
|
+
readonly id: v.StringSchema<undefined>;
|
|
644
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
645
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
646
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
647
|
+
}, undefined>, v.ObjectSchema<{
|
|
648
|
+
readonly name: v.StringSchema<undefined>;
|
|
649
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
650
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
651
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
652
|
+
}, undefined>], undefined>, undefined>;
|
|
653
|
+
}, undefined>, v.ObjectSchema<{
|
|
654
|
+
readonly id: v.StringSchema<undefined>;
|
|
655
|
+
readonly type: v.LiteralSchema<"date", undefined>;
|
|
656
|
+
readonly date: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
657
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
658
|
+
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
659
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
|
|
660
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
661
|
+
readonly value: v.NumberSchema<undefined>;
|
|
662
|
+
readonly time: v.StringSchema<undefined>;
|
|
663
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
664
|
+
}, undefined>, v.ObjectSchema<{
|
|
665
|
+
readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
|
|
666
|
+
readonly value: v.NumberSchema<undefined>;
|
|
667
|
+
}, undefined>], undefined>, v.ObjectSchema<{
|
|
668
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
669
|
+
}, undefined>], undefined>, undefined>;
|
|
670
|
+
readonly start: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IncludesAction<string, "T", undefined>]>;
|
|
671
|
+
}, undefined>, v.ObjectSchema<{
|
|
672
|
+
readonly start: v.StringSchema<undefined>;
|
|
673
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
674
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
|
|
675
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
676
|
+
readonly value: v.NumberSchema<undefined>;
|
|
677
|
+
readonly time: v.StringSchema<undefined>;
|
|
678
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
679
|
+
}, undefined>, v.ObjectSchema<{
|
|
680
|
+
readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
|
|
681
|
+
readonly value: v.NumberSchema<undefined>;
|
|
682
|
+
}, undefined>], undefined>, v.ObjectSchema<{
|
|
683
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
684
|
+
}, undefined>], undefined>, undefined>;
|
|
685
|
+
readonly time_zone: v.StringSchema<undefined>;
|
|
686
|
+
}, undefined>, v.ObjectSchema<{
|
|
687
|
+
readonly start: v.StringSchema<undefined>;
|
|
688
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
689
|
+
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
690
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
691
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
692
|
+
readonly value: v.NumberSchema<undefined>;
|
|
693
|
+
readonly time: v.StringSchema<undefined>;
|
|
694
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
695
|
+
}, undefined>, v.ObjectSchema<{
|
|
696
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
697
|
+
}, undefined>], undefined>, undefined>;
|
|
698
|
+
}, undefined>], undefined>, undefined>;
|
|
699
|
+
}, undefined>, v.ObjectSchema<{
|
|
700
|
+
readonly id: v.StringSchema<undefined>;
|
|
701
|
+
readonly type: v.LiteralSchema<"people", undefined>;
|
|
702
|
+
readonly people: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
703
|
+
readonly object: v.OptionalSchema<v.LiteralSchema<"user", undefined>, undefined>;
|
|
704
|
+
readonly id: v.StringSchema<undefined>;
|
|
705
|
+
}, undefined>, v.ObjectSchema<{
|
|
706
|
+
readonly object: v.LiteralSchema<"group", undefined>;
|
|
707
|
+
readonly id: v.StringSchema<undefined>;
|
|
708
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
709
|
+
}, undefined>], undefined>, undefined>;
|
|
710
|
+
}, undefined>, v.ObjectSchema<{
|
|
711
|
+
readonly id: v.StringSchema<undefined>;
|
|
712
|
+
readonly type: v.LiteralSchema<"relation", undefined>;
|
|
713
|
+
readonly has_more: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
714
|
+
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
715
|
+
readonly id: v.StringSchema<undefined>;
|
|
716
|
+
}, undefined>, undefined>;
|
|
717
|
+
}, undefined>, v.ObjectSchema<{
|
|
718
|
+
readonly id: v.StringSchema<undefined>;
|
|
719
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
720
|
+
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
721
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
722
|
+
readonly name: v.StringSchema<undefined>;
|
|
723
|
+
readonly external: v.ObjectSchema<{
|
|
724
|
+
readonly url: v.StringSchema<undefined>;
|
|
725
|
+
}, undefined>;
|
|
726
|
+
}, undefined>, v.ObjectSchema<{
|
|
727
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
728
|
+
readonly name: v.StringSchema<undefined>;
|
|
729
|
+
readonly file: v.ObjectSchema<{
|
|
730
|
+
readonly url: v.StringSchema<undefined>;
|
|
731
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
732
|
+
}, undefined>;
|
|
733
|
+
}, undefined>], undefined>, undefined>;
|
|
734
|
+
}, undefined>, v.ObjectSchema<{
|
|
735
|
+
readonly id: v.StringSchema<undefined>;
|
|
736
|
+
readonly type: v.LiteralSchema<"place", undefined>;
|
|
737
|
+
readonly place: v.NullableSchema<v.ObjectSchema<{
|
|
738
|
+
readonly lat: v.NumberSchema<undefined>;
|
|
739
|
+
readonly lon: v.NumberSchema<undefined>;
|
|
740
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
741
|
+
readonly address: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
742
|
+
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
743
|
+
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
744
|
+
}, undefined>, undefined>;
|
|
745
|
+
}, undefined>, v.ObjectSchema<{
|
|
746
|
+
readonly id: v.StringSchema<undefined>;
|
|
747
|
+
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
748
|
+
readonly created_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
749
|
+
}, undefined>, v.ObjectSchema<{
|
|
750
|
+
readonly id: v.StringSchema<undefined>;
|
|
751
|
+
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
752
|
+
readonly last_edited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
753
|
+
}, undefined>, v.ObjectSchema<{
|
|
754
|
+
readonly id: v.StringSchema<undefined>;
|
|
755
|
+
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
756
|
+
readonly created_by: v.NullableSchema<v.ObjectSchema<{
|
|
757
|
+
readonly id: v.StringSchema<undefined>;
|
|
758
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
759
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
760
|
+
}, undefined>, undefined>;
|
|
761
|
+
}, undefined>, v.ObjectSchema<{
|
|
762
|
+
readonly id: v.StringSchema<undefined>;
|
|
763
|
+
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
764
|
+
readonly last_edited_by: v.NullableSchema<v.ObjectSchema<{
|
|
765
|
+
readonly id: v.StringSchema<undefined>;
|
|
766
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
767
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
768
|
+
}, undefined>, undefined>;
|
|
769
|
+
}, undefined>, v.ObjectSchema<{
|
|
770
|
+
readonly id: v.StringSchema<undefined>;
|
|
771
|
+
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
772
|
+
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
773
|
+
}, undefined>], undefined>, undefined>, undefined>;
|
|
469
774
|
export type NotionPagePropertyReadMap = v.InferOutput<typeof notionPagePropertyReadMapSchema>;
|
|
470
|
-
export type NotionPagePropertyWriteMap =
|
|
471
|
-
type: "created_time" | "last_edited_time" | "created_by" | "last_edited_by" | "last_visited_time";
|
|
472
|
-
}>>;
|
|
775
|
+
export type NotionPagePropertyWriteMap = v.InferInput<typeof notionPagePropertyWriteMapSchema>;
|
|
473
776
|
/**
|
|
474
777
|
* The `Page` object returned in `createPageResult` messages.
|
|
475
778
|
*/
|
|
476
|
-
export declare const
|
|
779
|
+
export declare const notionPageDataSchema: v.ObjectSchema<{
|
|
477
780
|
readonly object: v.LiteralSchema<"page", undefined>;
|
|
478
781
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
479
782
|
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
@@ -494,7 +797,7 @@ export declare const notionPageSchema: v.ObjectSchema<{
|
|
|
494
797
|
}, undefined>, v.ObjectSchema<{
|
|
495
798
|
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
496
799
|
}, undefined>], undefined>;
|
|
497
|
-
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
800
|
+
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
498
801
|
readonly id: v.StringSchema<undefined>;
|
|
499
802
|
readonly type: v.LiteralSchema<"title", undefined>;
|
|
500
803
|
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
@@ -567,11 +870,316 @@ export declare const notionPageSchema: v.ObjectSchema<{
|
|
|
567
870
|
}, undefined>, v.ObjectSchema<{
|
|
568
871
|
readonly id: v.StringSchema<undefined>;
|
|
569
872
|
readonly type: v.LiteralSchema<"date", undefined>;
|
|
570
|
-
readonly date: v.NullableSchema<v.ObjectSchema<{
|
|
873
|
+
readonly date: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
874
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
875
|
+
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
876
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
|
|
877
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
878
|
+
readonly value: v.NumberSchema<undefined>;
|
|
879
|
+
readonly time: v.StringSchema<undefined>;
|
|
880
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
881
|
+
}, undefined>, v.ObjectSchema<{
|
|
882
|
+
readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
|
|
883
|
+
readonly value: v.NumberSchema<undefined>;
|
|
884
|
+
}, undefined>], undefined>, v.ObjectSchema<{
|
|
885
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
886
|
+
}, undefined>], undefined>, undefined>;
|
|
887
|
+
readonly start: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IncludesAction<string, "T", undefined>]>;
|
|
888
|
+
}, undefined>, v.ObjectSchema<{
|
|
889
|
+
readonly start: v.StringSchema<undefined>;
|
|
890
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
891
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
|
|
892
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
893
|
+
readonly value: v.NumberSchema<undefined>;
|
|
894
|
+
readonly time: v.StringSchema<undefined>;
|
|
895
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
896
|
+
}, undefined>, v.ObjectSchema<{
|
|
897
|
+
readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
|
|
898
|
+
readonly value: v.NumberSchema<undefined>;
|
|
899
|
+
}, undefined>], undefined>, v.ObjectSchema<{
|
|
900
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
901
|
+
}, undefined>], undefined>, undefined>;
|
|
902
|
+
readonly time_zone: v.StringSchema<undefined>;
|
|
903
|
+
}, undefined>, v.ObjectSchema<{
|
|
571
904
|
readonly start: v.StringSchema<undefined>;
|
|
572
905
|
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
573
906
|
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
907
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
908
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
909
|
+
readonly value: v.NumberSchema<undefined>;
|
|
910
|
+
readonly time: v.StringSchema<undefined>;
|
|
911
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
912
|
+
}, undefined>, v.ObjectSchema<{
|
|
913
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
914
|
+
}, undefined>], undefined>, undefined>;
|
|
915
|
+
}, undefined>], undefined>, undefined>;
|
|
916
|
+
}, undefined>, v.ObjectSchema<{
|
|
917
|
+
readonly id: v.StringSchema<undefined>;
|
|
918
|
+
readonly type: v.LiteralSchema<"people", undefined>;
|
|
919
|
+
readonly people: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
920
|
+
readonly object: v.OptionalSchema<v.LiteralSchema<"user", undefined>, undefined>;
|
|
921
|
+
readonly id: v.StringSchema<undefined>;
|
|
922
|
+
}, undefined>, v.ObjectSchema<{
|
|
923
|
+
readonly object: v.LiteralSchema<"group", undefined>;
|
|
924
|
+
readonly id: v.StringSchema<undefined>;
|
|
925
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
926
|
+
}, undefined>], undefined>, undefined>;
|
|
927
|
+
}, undefined>, v.ObjectSchema<{
|
|
928
|
+
readonly id: v.StringSchema<undefined>;
|
|
929
|
+
readonly type: v.LiteralSchema<"relation", undefined>;
|
|
930
|
+
readonly has_more: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
931
|
+
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
932
|
+
readonly id: v.StringSchema<undefined>;
|
|
933
|
+
}, undefined>, undefined>;
|
|
934
|
+
}, undefined>, v.ObjectSchema<{
|
|
935
|
+
readonly id: v.StringSchema<undefined>;
|
|
936
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
937
|
+
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
938
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
939
|
+
readonly name: v.StringSchema<undefined>;
|
|
940
|
+
readonly external: v.ObjectSchema<{
|
|
941
|
+
readonly url: v.StringSchema<undefined>;
|
|
942
|
+
}, undefined>;
|
|
943
|
+
}, undefined>, v.ObjectSchema<{
|
|
944
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
945
|
+
readonly name: v.StringSchema<undefined>;
|
|
946
|
+
readonly file: v.ObjectSchema<{
|
|
947
|
+
readonly url: v.StringSchema<undefined>;
|
|
948
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
949
|
+
}, undefined>;
|
|
950
|
+
}, undefined>], undefined>, undefined>;
|
|
951
|
+
}, undefined>, v.ObjectSchema<{
|
|
952
|
+
readonly id: v.StringSchema<undefined>;
|
|
953
|
+
readonly type: v.LiteralSchema<"place", undefined>;
|
|
954
|
+
readonly place: v.NullableSchema<v.ObjectSchema<{
|
|
955
|
+
readonly lat: v.NumberSchema<undefined>;
|
|
956
|
+
readonly lon: v.NumberSchema<undefined>;
|
|
957
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
958
|
+
readonly address: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
959
|
+
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
960
|
+
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
574
961
|
}, undefined>, undefined>;
|
|
962
|
+
}, undefined>, v.ObjectSchema<{
|
|
963
|
+
readonly id: v.StringSchema<undefined>;
|
|
964
|
+
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
965
|
+
readonly created_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
966
|
+
}, undefined>, v.ObjectSchema<{
|
|
967
|
+
readonly id: v.StringSchema<undefined>;
|
|
968
|
+
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
969
|
+
readonly last_edited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
970
|
+
}, undefined>, v.ObjectSchema<{
|
|
971
|
+
readonly id: v.StringSchema<undefined>;
|
|
972
|
+
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
973
|
+
readonly created_by: v.NullableSchema<v.ObjectSchema<{
|
|
974
|
+
readonly id: v.StringSchema<undefined>;
|
|
975
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
976
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
977
|
+
}, undefined>, undefined>;
|
|
978
|
+
}, undefined>, v.ObjectSchema<{
|
|
979
|
+
readonly id: v.StringSchema<undefined>;
|
|
980
|
+
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
981
|
+
readonly last_edited_by: v.NullableSchema<v.ObjectSchema<{
|
|
982
|
+
readonly id: v.StringSchema<undefined>;
|
|
983
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
984
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
985
|
+
}, undefined>, undefined>;
|
|
986
|
+
}, undefined>, v.ObjectSchema<{
|
|
987
|
+
readonly id: v.StringSchema<undefined>;
|
|
988
|
+
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
989
|
+
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
990
|
+
}, undefined>], undefined>, undefined>, undefined>;
|
|
991
|
+
readonly created_by: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
992
|
+
readonly id: v.StringSchema<undefined>;
|
|
993
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
994
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
995
|
+
}, undefined>, undefined>, null>;
|
|
996
|
+
readonly last_edited_by: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
997
|
+
readonly id: v.StringSchema<undefined>;
|
|
998
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
999
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1000
|
+
}, undefined>, undefined>, null>;
|
|
1001
|
+
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1002
|
+
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1003
|
+
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1004
|
+
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1005
|
+
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
1006
|
+
readonly emoji: v.StringSchema<undefined>;
|
|
1007
|
+
}, undefined>, v.ObjectSchema<{
|
|
1008
|
+
readonly type: v.LiteralSchema<"custom_emoji", undefined>;
|
|
1009
|
+
readonly custom_emoji: v.ObjectSchema<{
|
|
1010
|
+
readonly id: v.StringSchema<undefined>;
|
|
1011
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1012
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1013
|
+
}, undefined>;
|
|
1014
|
+
}, undefined>, v.ObjectSchema<{
|
|
1015
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1016
|
+
readonly external: v.ObjectSchema<{
|
|
1017
|
+
readonly url: v.StringSchema<undefined>;
|
|
1018
|
+
}, undefined>;
|
|
1019
|
+
}, undefined>, v.ObjectSchema<{
|
|
1020
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
1021
|
+
readonly file: v.ObjectSchema<{
|
|
1022
|
+
readonly url: v.StringSchema<undefined>;
|
|
1023
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1024
|
+
}, undefined>;
|
|
1025
|
+
}, undefined>], undefined>, undefined>, null>;
|
|
1026
|
+
readonly cover: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1027
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1028
|
+
readonly external: v.ObjectSchema<{
|
|
1029
|
+
readonly url: v.StringSchema<undefined>;
|
|
1030
|
+
}, undefined>;
|
|
1031
|
+
}, undefined>, v.ObjectSchema<{
|
|
1032
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
1033
|
+
readonly file: v.ObjectSchema<{
|
|
1034
|
+
readonly url: v.StringSchema<undefined>;
|
|
1035
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1036
|
+
}, undefined>;
|
|
1037
|
+
}, undefined>], undefined>, undefined>, null>;
|
|
1038
|
+
readonly url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1039
|
+
readonly public_url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1040
|
+
/** Whether the page or an ancestor is archived. */
|
|
1041
|
+
readonly is_archived: v.BooleanSchema<undefined>;
|
|
1042
|
+
/** Whether the page or an ancestor is in Trash. */
|
|
1043
|
+
readonly in_trash: v.BooleanSchema<undefined>;
|
|
1044
|
+
}, undefined>;
|
|
1045
|
+
export type NotionPageData = v.InferInput<typeof notionPageDataSchema>;
|
|
1046
|
+
export declare const legacyNotionPageSchema: v.ObjectSchema<{
|
|
1047
|
+
readonly object: v.LiteralSchema<"page", undefined>;
|
|
1048
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
1049
|
+
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1050
|
+
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
1051
|
+
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
1052
|
+
}, undefined>, v.ObjectSchema<{
|
|
1053
|
+
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
1054
|
+
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
1055
|
+
}, undefined>, v.ObjectSchema<{
|
|
1056
|
+
readonly type: v.LiteralSchema<"workspace", undefined>;
|
|
1057
|
+
readonly workspace: v.LiteralSchema<true, undefined>;
|
|
1058
|
+
}, undefined>, v.ObjectSchema<{
|
|
1059
|
+
readonly type: v.LiteralSchema<"block_id", undefined>;
|
|
1060
|
+
readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
1061
|
+
}, undefined>, v.ObjectSchema<{
|
|
1062
|
+
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
1063
|
+
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
1064
|
+
}, undefined>, v.ObjectSchema<{
|
|
1065
|
+
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
1066
|
+
}, undefined>], undefined>;
|
|
1067
|
+
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1068
|
+
readonly id: v.StringSchema<undefined>;
|
|
1069
|
+
readonly type: v.LiteralSchema<"title", undefined>;
|
|
1070
|
+
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
1071
|
+
}, undefined>, v.ObjectSchema<{
|
|
1072
|
+
readonly id: v.StringSchema<undefined>;
|
|
1073
|
+
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
1074
|
+
readonly rich_text: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
1075
|
+
}, undefined>, v.ObjectSchema<{
|
|
1076
|
+
readonly id: v.StringSchema<undefined>;
|
|
1077
|
+
readonly type: v.LiteralSchema<"number", undefined>;
|
|
1078
|
+
readonly number: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
1079
|
+
}, undefined>, v.ObjectSchema<{
|
|
1080
|
+
readonly id: v.StringSchema<undefined>;
|
|
1081
|
+
readonly type: v.LiteralSchema<"url", undefined>;
|
|
1082
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1083
|
+
}, undefined>, v.ObjectSchema<{
|
|
1084
|
+
readonly id: v.StringSchema<undefined>;
|
|
1085
|
+
readonly type: v.LiteralSchema<"email", undefined>;
|
|
1086
|
+
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1087
|
+
}, undefined>, v.ObjectSchema<{
|
|
1088
|
+
readonly id: v.StringSchema<undefined>;
|
|
1089
|
+
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
1090
|
+
readonly phone_number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1091
|
+
}, undefined>, v.ObjectSchema<{
|
|
1092
|
+
readonly id: v.StringSchema<undefined>;
|
|
1093
|
+
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
1094
|
+
readonly checkbox: v.BooleanSchema<undefined>;
|
|
1095
|
+
}, undefined>, v.ObjectSchema<{
|
|
1096
|
+
readonly id: v.StringSchema<undefined>;
|
|
1097
|
+
readonly type: v.LiteralSchema<"select", undefined>;
|
|
1098
|
+
readonly select: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1099
|
+
readonly id: v.StringSchema<undefined>;
|
|
1100
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1101
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1102
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1103
|
+
}, undefined>, v.ObjectSchema<{
|
|
1104
|
+
readonly name: v.StringSchema<undefined>;
|
|
1105
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1106
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1107
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1108
|
+
}, undefined>], undefined>, undefined>;
|
|
1109
|
+
}, undefined>, v.ObjectSchema<{
|
|
1110
|
+
readonly id: v.StringSchema<undefined>;
|
|
1111
|
+
readonly type: v.LiteralSchema<"status", undefined>;
|
|
1112
|
+
readonly status: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1113
|
+
readonly id: v.StringSchema<undefined>;
|
|
1114
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1115
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1116
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1117
|
+
}, undefined>, v.ObjectSchema<{
|
|
1118
|
+
readonly name: v.StringSchema<undefined>;
|
|
1119
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1120
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1121
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1122
|
+
}, undefined>], undefined>, undefined>;
|
|
1123
|
+
}, undefined>, v.ObjectSchema<{
|
|
1124
|
+
readonly id: v.StringSchema<undefined>;
|
|
1125
|
+
readonly type: v.LiteralSchema<"multi_select", undefined>;
|
|
1126
|
+
readonly multi_select: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1127
|
+
readonly id: v.StringSchema<undefined>;
|
|
1128
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1129
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1130
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1131
|
+
}, undefined>, v.ObjectSchema<{
|
|
1132
|
+
readonly name: v.StringSchema<undefined>;
|
|
1133
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1134
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1135
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1136
|
+
}, undefined>], undefined>, undefined>;
|
|
1137
|
+
}, undefined>, v.ObjectSchema<{
|
|
1138
|
+
readonly id: v.StringSchema<undefined>;
|
|
1139
|
+
readonly type: v.LiteralSchema<"date", undefined>;
|
|
1140
|
+
readonly date: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1141
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1142
|
+
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1143
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
|
|
1144
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
1145
|
+
readonly value: v.NumberSchema<undefined>;
|
|
1146
|
+
readonly time: v.StringSchema<undefined>;
|
|
1147
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1148
|
+
}, undefined>, v.ObjectSchema<{
|
|
1149
|
+
readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
|
|
1150
|
+
readonly value: v.NumberSchema<undefined>;
|
|
1151
|
+
}, undefined>], undefined>, v.ObjectSchema<{
|
|
1152
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
1153
|
+
}, undefined>], undefined>, undefined>;
|
|
1154
|
+
readonly start: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IncludesAction<string, "T", undefined>]>;
|
|
1155
|
+
}, undefined>, v.ObjectSchema<{
|
|
1156
|
+
readonly start: v.StringSchema<undefined>;
|
|
1157
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1158
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
|
|
1159
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
1160
|
+
readonly value: v.NumberSchema<undefined>;
|
|
1161
|
+
readonly time: v.StringSchema<undefined>;
|
|
1162
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1163
|
+
}, undefined>, v.ObjectSchema<{
|
|
1164
|
+
readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
|
|
1165
|
+
readonly value: v.NumberSchema<undefined>;
|
|
1166
|
+
}, undefined>], undefined>, v.ObjectSchema<{
|
|
1167
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
1168
|
+
}, undefined>], undefined>, undefined>;
|
|
1169
|
+
readonly time_zone: v.StringSchema<undefined>;
|
|
1170
|
+
}, undefined>, v.ObjectSchema<{
|
|
1171
|
+
readonly start: v.StringSchema<undefined>;
|
|
1172
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1173
|
+
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1174
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1175
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
1176
|
+
readonly value: v.NumberSchema<undefined>;
|
|
1177
|
+
readonly time: v.StringSchema<undefined>;
|
|
1178
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1179
|
+
}, undefined>, v.ObjectSchema<{
|
|
1180
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
1181
|
+
}, undefined>], undefined>, undefined>;
|
|
1182
|
+
}, undefined>], undefined>, undefined>;
|
|
575
1183
|
}, undefined>, v.ObjectSchema<{
|
|
576
1184
|
readonly id: v.StringSchema<undefined>;
|
|
577
1185
|
readonly type: v.LiteralSchema<"people", undefined>;
|
|
@@ -690,5 +1298,5 @@ export declare const notionPageSchema: v.ObjectSchema<{
|
|
|
690
1298
|
/** Whether the page or an ancestor is in Trash. */
|
|
691
1299
|
readonly in_trash: v.BooleanSchema<undefined>;
|
|
692
1300
|
}, undefined>;
|
|
693
|
-
export type
|
|
1301
|
+
export type LegacyNotionPage = v.InferOutput<typeof legacyNotionPageSchema>;
|
|
694
1302
|
export {};
|