@notionhq/custom-blocks-host 0.1.3 → 0.1.4
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/dist/protocol/dataSources/dataSource.d.ts +135 -135
- package/dist/protocol/dataSources/propertySchema.d.ts +27 -27
- package/dist/protocol/messages/createPage.d.ts +15 -15
- package/dist/protocol/messages/createPageResult.d.ts +15 -15
- package/dist/protocol/messages/dataSourcesChanged.d.ts +27 -27
- package/dist/protocol/messages/getPage.d.ts +15 -15
- package/dist/protocol/messages/hostToSandbox.d.ts +100 -100
- package/dist/protocol/messages/init.d.ts +28 -28
- package/dist/protocol/messages/sandboxToHost.d.ts +30 -30
- package/dist/protocol/messages/updatePage.d.ts +15 -15
- package/dist/protocol/messages/updatePageResult.d.ts +15 -15
- package/dist/protocol/pages/page.d.ts +45 -45
- package/dist/queries/querySubscriptions.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -37,34 +37,35 @@ export declare const updatePageResultMessageSchema: v.VariantSchema<"status", [v
|
|
|
37
37
|
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
38
38
|
}, undefined>], undefined>;
|
|
39
39
|
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
40
|
+
readonly id: v.StringSchema<undefined>;
|
|
40
41
|
readonly type: v.LiteralSchema<"title", undefined>;
|
|
41
42
|
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
42
|
-
readonly id: v.StringSchema<undefined>;
|
|
43
43
|
}, undefined>, v.ObjectSchema<{
|
|
44
|
+
readonly id: v.StringSchema<undefined>;
|
|
44
45
|
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
45
46
|
readonly rich_text: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
46
|
-
readonly id: v.StringSchema<undefined>;
|
|
47
47
|
}, undefined>, v.ObjectSchema<{
|
|
48
|
+
readonly id: v.StringSchema<undefined>;
|
|
48
49
|
readonly type: v.LiteralSchema<"number", undefined>;
|
|
49
50
|
readonly number: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
50
|
-
readonly id: v.StringSchema<undefined>;
|
|
51
51
|
}, undefined>, v.ObjectSchema<{
|
|
52
|
+
readonly id: v.StringSchema<undefined>;
|
|
52
53
|
readonly type: v.LiteralSchema<"url", undefined>;
|
|
53
54
|
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
54
|
-
readonly id: v.StringSchema<undefined>;
|
|
55
55
|
}, undefined>, v.ObjectSchema<{
|
|
56
|
+
readonly id: v.StringSchema<undefined>;
|
|
56
57
|
readonly type: v.LiteralSchema<"email", undefined>;
|
|
57
58
|
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
58
|
-
readonly id: v.StringSchema<undefined>;
|
|
59
59
|
}, undefined>, v.ObjectSchema<{
|
|
60
|
+
readonly id: v.StringSchema<undefined>;
|
|
60
61
|
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
61
62
|
readonly phone_number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
62
|
-
readonly id: v.StringSchema<undefined>;
|
|
63
63
|
}, undefined>, v.ObjectSchema<{
|
|
64
|
+
readonly id: v.StringSchema<undefined>;
|
|
64
65
|
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
65
66
|
readonly checkbox: v.BooleanSchema<undefined>;
|
|
66
|
-
readonly id: v.StringSchema<undefined>;
|
|
67
67
|
}, undefined>, v.ObjectSchema<{
|
|
68
|
+
readonly id: v.StringSchema<undefined>;
|
|
68
69
|
readonly type: v.LiteralSchema<"select", undefined>;
|
|
69
70
|
readonly select: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
70
71
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -77,8 +78,8 @@ export declare const updatePageResultMessageSchema: v.VariantSchema<"status", [v
|
|
|
77
78
|
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
78
79
|
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
79
80
|
}, undefined>], undefined>, undefined>;
|
|
80
|
-
readonly id: v.StringSchema<undefined>;
|
|
81
81
|
}, undefined>, v.ObjectSchema<{
|
|
82
|
+
readonly id: v.StringSchema<undefined>;
|
|
82
83
|
readonly type: v.LiteralSchema<"status", undefined>;
|
|
83
84
|
readonly status: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
84
85
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -91,8 +92,8 @@ export declare const updatePageResultMessageSchema: v.VariantSchema<"status", [v
|
|
|
91
92
|
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
92
93
|
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
93
94
|
}, undefined>], undefined>, undefined>;
|
|
94
|
-
readonly id: v.StringSchema<undefined>;
|
|
95
95
|
}, undefined>, v.ObjectSchema<{
|
|
96
|
+
readonly id: v.StringSchema<undefined>;
|
|
96
97
|
readonly type: v.LiteralSchema<"multi_select", undefined>;
|
|
97
98
|
readonly multi_select: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
98
99
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -105,16 +106,16 @@ export declare const updatePageResultMessageSchema: v.VariantSchema<"status", [v
|
|
|
105
106
|
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
106
107
|
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
107
108
|
}, undefined>], undefined>, undefined>;
|
|
108
|
-
readonly id: v.StringSchema<undefined>;
|
|
109
109
|
}, undefined>, v.ObjectSchema<{
|
|
110
|
+
readonly id: v.StringSchema<undefined>;
|
|
110
111
|
readonly type: v.LiteralSchema<"date", undefined>;
|
|
111
112
|
readonly date: v.NullableSchema<v.ObjectSchema<{
|
|
112
113
|
readonly start: v.StringSchema<undefined>;
|
|
113
114
|
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
114
115
|
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
115
116
|
}, undefined>, undefined>;
|
|
116
|
-
readonly id: v.StringSchema<undefined>;
|
|
117
117
|
}, undefined>, v.ObjectSchema<{
|
|
118
|
+
readonly id: v.StringSchema<undefined>;
|
|
118
119
|
readonly type: v.LiteralSchema<"people", undefined>;
|
|
119
120
|
readonly people: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
120
121
|
readonly object: v.OptionalSchema<v.LiteralSchema<"user", undefined>, undefined>;
|
|
@@ -124,15 +125,15 @@ export declare const updatePageResultMessageSchema: v.VariantSchema<"status", [v
|
|
|
124
125
|
readonly id: v.StringSchema<undefined>;
|
|
125
126
|
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
126
127
|
}, undefined>], undefined>, undefined>;
|
|
127
|
-
readonly id: v.StringSchema<undefined>;
|
|
128
128
|
}, undefined>, v.ObjectSchema<{
|
|
129
|
+
readonly id: v.StringSchema<undefined>;
|
|
129
130
|
readonly type: v.LiteralSchema<"relation", undefined>;
|
|
130
131
|
readonly has_more: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
131
132
|
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
132
133
|
readonly id: v.StringSchema<undefined>;
|
|
133
134
|
}, undefined>, undefined>;
|
|
134
|
-
readonly id: v.StringSchema<undefined>;
|
|
135
135
|
}, undefined>, v.ObjectSchema<{
|
|
136
|
+
readonly id: v.StringSchema<undefined>;
|
|
136
137
|
readonly type: v.LiteralSchema<"files", undefined>;
|
|
137
138
|
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
138
139
|
readonly type: v.LiteralSchema<"external", undefined>;
|
|
@@ -148,8 +149,8 @@ export declare const updatePageResultMessageSchema: v.VariantSchema<"status", [v
|
|
|
148
149
|
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
149
150
|
}, undefined>;
|
|
150
151
|
}, undefined>], undefined>, undefined>;
|
|
151
|
-
readonly id: v.StringSchema<undefined>;
|
|
152
152
|
}, undefined>, v.ObjectSchema<{
|
|
153
|
+
readonly id: v.StringSchema<undefined>;
|
|
153
154
|
readonly type: v.LiteralSchema<"place", undefined>;
|
|
154
155
|
readonly place: v.NullableSchema<v.ObjectSchema<{
|
|
155
156
|
readonly lat: v.NumberSchema<undefined>;
|
|
@@ -159,7 +160,6 @@ export declare const updatePageResultMessageSchema: v.VariantSchema<"status", [v
|
|
|
159
160
|
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
160
161
|
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
161
162
|
}, undefined>, undefined>;
|
|
162
|
-
readonly id: v.StringSchema<undefined>;
|
|
163
163
|
}, undefined>], undefined>, undefined>;
|
|
164
164
|
readonly created_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
165
165
|
readonly last_edited_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -157,34 +157,35 @@ export type NotionPlaceInput = v.InferOutput<typeof notionPlaceInputSchema>;
|
|
|
157
157
|
* A page property value.
|
|
158
158
|
*/
|
|
159
159
|
export declare const notionPagePropertyValueSchema: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
160
|
+
readonly id: v.StringSchema<undefined>;
|
|
160
161
|
readonly type: v.LiteralSchema<"title", undefined>;
|
|
161
162
|
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
162
|
-
readonly id: v.StringSchema<undefined>;
|
|
163
163
|
}, undefined>, v.ObjectSchema<{
|
|
164
|
+
readonly id: v.StringSchema<undefined>;
|
|
164
165
|
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
165
166
|
readonly rich_text: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
166
|
-
readonly id: v.StringSchema<undefined>;
|
|
167
167
|
}, undefined>, v.ObjectSchema<{
|
|
168
|
+
readonly id: v.StringSchema<undefined>;
|
|
168
169
|
readonly type: v.LiteralSchema<"number", undefined>;
|
|
169
170
|
readonly number: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
170
|
-
readonly id: v.StringSchema<undefined>;
|
|
171
171
|
}, undefined>, v.ObjectSchema<{
|
|
172
|
+
readonly id: v.StringSchema<undefined>;
|
|
172
173
|
readonly type: v.LiteralSchema<"url", undefined>;
|
|
173
174
|
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
174
|
-
readonly id: v.StringSchema<undefined>;
|
|
175
175
|
}, undefined>, v.ObjectSchema<{
|
|
176
|
+
readonly id: v.StringSchema<undefined>;
|
|
176
177
|
readonly type: v.LiteralSchema<"email", undefined>;
|
|
177
178
|
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
178
|
-
readonly id: v.StringSchema<undefined>;
|
|
179
179
|
}, undefined>, v.ObjectSchema<{
|
|
180
|
+
readonly id: v.StringSchema<undefined>;
|
|
180
181
|
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
181
182
|
readonly phone_number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
182
|
-
readonly id: v.StringSchema<undefined>;
|
|
183
183
|
}, undefined>, v.ObjectSchema<{
|
|
184
|
+
readonly id: v.StringSchema<undefined>;
|
|
184
185
|
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
185
186
|
readonly checkbox: v.BooleanSchema<undefined>;
|
|
186
|
-
readonly id: v.StringSchema<undefined>;
|
|
187
187
|
}, undefined>, v.ObjectSchema<{
|
|
188
|
+
readonly id: v.StringSchema<undefined>;
|
|
188
189
|
readonly type: v.LiteralSchema<"select", undefined>;
|
|
189
190
|
readonly select: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
190
191
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -197,8 +198,8 @@ export declare const notionPagePropertyValueSchema: v.VariantSchema<"type", [v.O
|
|
|
197
198
|
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
198
199
|
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
199
200
|
}, undefined>], undefined>, undefined>;
|
|
200
|
-
readonly id: v.StringSchema<undefined>;
|
|
201
201
|
}, undefined>, v.ObjectSchema<{
|
|
202
|
+
readonly id: v.StringSchema<undefined>;
|
|
202
203
|
readonly type: v.LiteralSchema<"status", undefined>;
|
|
203
204
|
readonly status: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
204
205
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -211,8 +212,8 @@ export declare const notionPagePropertyValueSchema: v.VariantSchema<"type", [v.O
|
|
|
211
212
|
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
212
213
|
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
213
214
|
}, undefined>], undefined>, undefined>;
|
|
214
|
-
readonly id: v.StringSchema<undefined>;
|
|
215
215
|
}, undefined>, v.ObjectSchema<{
|
|
216
|
+
readonly id: v.StringSchema<undefined>;
|
|
216
217
|
readonly type: v.LiteralSchema<"multi_select", undefined>;
|
|
217
218
|
readonly multi_select: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
218
219
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -225,16 +226,16 @@ export declare const notionPagePropertyValueSchema: v.VariantSchema<"type", [v.O
|
|
|
225
226
|
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
226
227
|
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
227
228
|
}, undefined>], undefined>, undefined>;
|
|
228
|
-
readonly id: v.StringSchema<undefined>;
|
|
229
229
|
}, undefined>, v.ObjectSchema<{
|
|
230
|
+
readonly id: v.StringSchema<undefined>;
|
|
230
231
|
readonly type: v.LiteralSchema<"date", undefined>;
|
|
231
232
|
readonly date: v.NullableSchema<v.ObjectSchema<{
|
|
232
233
|
readonly start: v.StringSchema<undefined>;
|
|
233
234
|
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
234
235
|
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
235
236
|
}, undefined>, undefined>;
|
|
236
|
-
readonly id: v.StringSchema<undefined>;
|
|
237
237
|
}, undefined>, v.ObjectSchema<{
|
|
238
|
+
readonly id: v.StringSchema<undefined>;
|
|
238
239
|
readonly type: v.LiteralSchema<"people", undefined>;
|
|
239
240
|
readonly people: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
240
241
|
readonly object: v.OptionalSchema<v.LiteralSchema<"user", undefined>, undefined>;
|
|
@@ -244,15 +245,15 @@ export declare const notionPagePropertyValueSchema: v.VariantSchema<"type", [v.O
|
|
|
244
245
|
readonly id: v.StringSchema<undefined>;
|
|
245
246
|
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
246
247
|
}, undefined>], undefined>, undefined>;
|
|
247
|
-
readonly id: v.StringSchema<undefined>;
|
|
248
248
|
}, undefined>, v.ObjectSchema<{
|
|
249
|
+
readonly id: v.StringSchema<undefined>;
|
|
249
250
|
readonly type: v.LiteralSchema<"relation", undefined>;
|
|
250
251
|
readonly has_more: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
251
252
|
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
252
253
|
readonly id: v.StringSchema<undefined>;
|
|
253
254
|
}, undefined>, undefined>;
|
|
254
|
-
readonly id: v.StringSchema<undefined>;
|
|
255
255
|
}, undefined>, v.ObjectSchema<{
|
|
256
|
+
readonly id: v.StringSchema<undefined>;
|
|
256
257
|
readonly type: v.LiteralSchema<"files", undefined>;
|
|
257
258
|
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
258
259
|
readonly type: v.LiteralSchema<"external", undefined>;
|
|
@@ -268,8 +269,8 @@ export declare const notionPagePropertyValueSchema: v.VariantSchema<"type", [v.O
|
|
|
268
269
|
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
269
270
|
}, undefined>;
|
|
270
271
|
}, undefined>], undefined>, undefined>;
|
|
271
|
-
readonly id: v.StringSchema<undefined>;
|
|
272
272
|
}, undefined>, v.ObjectSchema<{
|
|
273
|
+
readonly id: v.StringSchema<undefined>;
|
|
273
274
|
readonly type: v.LiteralSchema<"place", undefined>;
|
|
274
275
|
readonly place: v.NullableSchema<v.ObjectSchema<{
|
|
275
276
|
readonly lat: v.NumberSchema<undefined>;
|
|
@@ -279,38 +280,38 @@ export declare const notionPagePropertyValueSchema: v.VariantSchema<"type", [v.O
|
|
|
279
280
|
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
280
281
|
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
281
282
|
}, undefined>, undefined>;
|
|
282
|
-
readonly id: v.StringSchema<undefined>;
|
|
283
283
|
}, undefined>], undefined>;
|
|
284
284
|
export type NotionPagePropertyValue = v.InferOutput<typeof notionPagePropertyValueSchema>;
|
|
285
285
|
export declare const notionPagePropertyWriteMapSchema: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
286
|
+
readonly id: v.StringSchema<undefined>;
|
|
286
287
|
readonly type: v.LiteralSchema<"title", undefined>;
|
|
287
288
|
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
288
|
-
readonly id: v.StringSchema<undefined>;
|
|
289
289
|
}, undefined>, v.ObjectSchema<{
|
|
290
|
+
readonly id: v.StringSchema<undefined>;
|
|
290
291
|
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
291
292
|
readonly rich_text: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
292
|
-
readonly id: v.StringSchema<undefined>;
|
|
293
293
|
}, undefined>, v.ObjectSchema<{
|
|
294
|
+
readonly id: v.StringSchema<undefined>;
|
|
294
295
|
readonly type: v.LiteralSchema<"number", undefined>;
|
|
295
296
|
readonly number: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
296
|
-
readonly id: v.StringSchema<undefined>;
|
|
297
297
|
}, undefined>, v.ObjectSchema<{
|
|
298
|
+
readonly id: v.StringSchema<undefined>;
|
|
298
299
|
readonly type: v.LiteralSchema<"url", undefined>;
|
|
299
300
|
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
300
|
-
readonly id: v.StringSchema<undefined>;
|
|
301
301
|
}, undefined>, v.ObjectSchema<{
|
|
302
|
+
readonly id: v.StringSchema<undefined>;
|
|
302
303
|
readonly type: v.LiteralSchema<"email", undefined>;
|
|
303
304
|
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
304
|
-
readonly id: v.StringSchema<undefined>;
|
|
305
305
|
}, undefined>, v.ObjectSchema<{
|
|
306
|
+
readonly id: v.StringSchema<undefined>;
|
|
306
307
|
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
307
308
|
readonly phone_number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
308
|
-
readonly id: v.StringSchema<undefined>;
|
|
309
309
|
}, undefined>, v.ObjectSchema<{
|
|
310
|
+
readonly id: v.StringSchema<undefined>;
|
|
310
311
|
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
311
312
|
readonly checkbox: v.BooleanSchema<undefined>;
|
|
312
|
-
readonly id: v.StringSchema<undefined>;
|
|
313
313
|
}, undefined>, v.ObjectSchema<{
|
|
314
|
+
readonly id: v.StringSchema<undefined>;
|
|
314
315
|
readonly type: v.LiteralSchema<"select", undefined>;
|
|
315
316
|
readonly select: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
316
317
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -323,8 +324,8 @@ export declare const notionPagePropertyWriteMapSchema: v.RecordSchema<v.StringSc
|
|
|
323
324
|
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
324
325
|
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
325
326
|
}, undefined>], undefined>, undefined>;
|
|
326
|
-
readonly id: v.StringSchema<undefined>;
|
|
327
327
|
}, undefined>, v.ObjectSchema<{
|
|
328
|
+
readonly id: v.StringSchema<undefined>;
|
|
328
329
|
readonly type: v.LiteralSchema<"status", undefined>;
|
|
329
330
|
readonly status: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
330
331
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -337,8 +338,8 @@ export declare const notionPagePropertyWriteMapSchema: v.RecordSchema<v.StringSc
|
|
|
337
338
|
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
338
339
|
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
339
340
|
}, undefined>], undefined>, undefined>;
|
|
340
|
-
readonly id: v.StringSchema<undefined>;
|
|
341
341
|
}, undefined>, v.ObjectSchema<{
|
|
342
|
+
readonly id: v.StringSchema<undefined>;
|
|
342
343
|
readonly type: v.LiteralSchema<"multi_select", undefined>;
|
|
343
344
|
readonly multi_select: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
344
345
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -351,16 +352,16 @@ export declare const notionPagePropertyWriteMapSchema: v.RecordSchema<v.StringSc
|
|
|
351
352
|
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
352
353
|
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
353
354
|
}, undefined>], undefined>, undefined>;
|
|
354
|
-
readonly id: v.StringSchema<undefined>;
|
|
355
355
|
}, undefined>, v.ObjectSchema<{
|
|
356
|
+
readonly id: v.StringSchema<undefined>;
|
|
356
357
|
readonly type: v.LiteralSchema<"date", undefined>;
|
|
357
358
|
readonly date: v.NullableSchema<v.ObjectSchema<{
|
|
358
359
|
readonly start: v.StringSchema<undefined>;
|
|
359
360
|
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
360
361
|
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
361
362
|
}, undefined>, undefined>;
|
|
362
|
-
readonly id: v.StringSchema<undefined>;
|
|
363
363
|
}, undefined>, v.ObjectSchema<{
|
|
364
|
+
readonly id: v.StringSchema<undefined>;
|
|
364
365
|
readonly type: v.LiteralSchema<"people", undefined>;
|
|
365
366
|
readonly people: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
366
367
|
readonly object: v.OptionalSchema<v.LiteralSchema<"user", undefined>, undefined>;
|
|
@@ -370,15 +371,15 @@ export declare const notionPagePropertyWriteMapSchema: v.RecordSchema<v.StringSc
|
|
|
370
371
|
readonly id: v.StringSchema<undefined>;
|
|
371
372
|
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
372
373
|
}, undefined>], undefined>, undefined>;
|
|
373
|
-
readonly id: v.StringSchema<undefined>;
|
|
374
374
|
}, undefined>, v.ObjectSchema<{
|
|
375
|
+
readonly id: v.StringSchema<undefined>;
|
|
375
376
|
readonly type: v.LiteralSchema<"relation", undefined>;
|
|
376
377
|
readonly has_more: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
377
378
|
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
378
379
|
readonly id: v.StringSchema<undefined>;
|
|
379
380
|
}, undefined>, undefined>;
|
|
380
|
-
readonly id: v.StringSchema<undefined>;
|
|
381
381
|
}, undefined>, v.ObjectSchema<{
|
|
382
|
+
readonly id: v.StringSchema<undefined>;
|
|
382
383
|
readonly type: v.LiteralSchema<"files", undefined>;
|
|
383
384
|
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
384
385
|
readonly type: v.LiteralSchema<"external", undefined>;
|
|
@@ -394,8 +395,8 @@ export declare const notionPagePropertyWriteMapSchema: v.RecordSchema<v.StringSc
|
|
|
394
395
|
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
395
396
|
}, undefined>;
|
|
396
397
|
}, undefined>], undefined>, undefined>;
|
|
397
|
-
readonly id: v.StringSchema<undefined>;
|
|
398
398
|
}, undefined>, v.ObjectSchema<{
|
|
399
|
+
readonly id: v.StringSchema<undefined>;
|
|
399
400
|
readonly type: v.LiteralSchema<"place", undefined>;
|
|
400
401
|
readonly place: v.NullableSchema<v.ObjectSchema<{
|
|
401
402
|
readonly lat: v.NumberSchema<undefined>;
|
|
@@ -405,7 +406,6 @@ export declare const notionPagePropertyWriteMapSchema: v.RecordSchema<v.StringSc
|
|
|
405
406
|
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
406
407
|
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
407
408
|
}, undefined>, undefined>;
|
|
408
|
-
readonly id: v.StringSchema<undefined>;
|
|
409
409
|
}, undefined>], undefined>, undefined>;
|
|
410
410
|
export type NotionPagePropertyWriteMap = v.InferOutput<typeof notionPagePropertyWriteMapSchema>;
|
|
411
411
|
/**
|
|
@@ -433,34 +433,35 @@ export declare const notionPageSchema: v.ObjectSchema<{
|
|
|
433
433
|
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
434
434
|
}, undefined>], undefined>;
|
|
435
435
|
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
436
|
+
readonly id: v.StringSchema<undefined>;
|
|
436
437
|
readonly type: v.LiteralSchema<"title", undefined>;
|
|
437
438
|
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
438
|
-
readonly id: v.StringSchema<undefined>;
|
|
439
439
|
}, undefined>, v.ObjectSchema<{
|
|
440
|
+
readonly id: v.StringSchema<undefined>;
|
|
440
441
|
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
441
442
|
readonly rich_text: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
442
|
-
readonly id: v.StringSchema<undefined>;
|
|
443
443
|
}, undefined>, v.ObjectSchema<{
|
|
444
|
+
readonly id: v.StringSchema<undefined>;
|
|
444
445
|
readonly type: v.LiteralSchema<"number", undefined>;
|
|
445
446
|
readonly number: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
446
|
-
readonly id: v.StringSchema<undefined>;
|
|
447
447
|
}, undefined>, v.ObjectSchema<{
|
|
448
|
+
readonly id: v.StringSchema<undefined>;
|
|
448
449
|
readonly type: v.LiteralSchema<"url", undefined>;
|
|
449
450
|
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
450
|
-
readonly id: v.StringSchema<undefined>;
|
|
451
451
|
}, undefined>, v.ObjectSchema<{
|
|
452
|
+
readonly id: v.StringSchema<undefined>;
|
|
452
453
|
readonly type: v.LiteralSchema<"email", undefined>;
|
|
453
454
|
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
454
|
-
readonly id: v.StringSchema<undefined>;
|
|
455
455
|
}, undefined>, v.ObjectSchema<{
|
|
456
|
+
readonly id: v.StringSchema<undefined>;
|
|
456
457
|
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
457
458
|
readonly phone_number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
458
|
-
readonly id: v.StringSchema<undefined>;
|
|
459
459
|
}, undefined>, v.ObjectSchema<{
|
|
460
|
+
readonly id: v.StringSchema<undefined>;
|
|
460
461
|
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
461
462
|
readonly checkbox: v.BooleanSchema<undefined>;
|
|
462
|
-
readonly id: v.StringSchema<undefined>;
|
|
463
463
|
}, undefined>, v.ObjectSchema<{
|
|
464
|
+
readonly id: v.StringSchema<undefined>;
|
|
464
465
|
readonly type: v.LiteralSchema<"select", undefined>;
|
|
465
466
|
readonly select: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
466
467
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -473,8 +474,8 @@ export declare const notionPageSchema: v.ObjectSchema<{
|
|
|
473
474
|
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
474
475
|
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
475
476
|
}, undefined>], undefined>, undefined>;
|
|
476
|
-
readonly id: v.StringSchema<undefined>;
|
|
477
477
|
}, undefined>, v.ObjectSchema<{
|
|
478
|
+
readonly id: v.StringSchema<undefined>;
|
|
478
479
|
readonly type: v.LiteralSchema<"status", undefined>;
|
|
479
480
|
readonly status: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
480
481
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -487,8 +488,8 @@ export declare const notionPageSchema: v.ObjectSchema<{
|
|
|
487
488
|
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
488
489
|
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
489
490
|
}, undefined>], undefined>, undefined>;
|
|
490
|
-
readonly id: v.StringSchema<undefined>;
|
|
491
491
|
}, undefined>, v.ObjectSchema<{
|
|
492
|
+
readonly id: v.StringSchema<undefined>;
|
|
492
493
|
readonly type: v.LiteralSchema<"multi_select", undefined>;
|
|
493
494
|
readonly multi_select: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
494
495
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -501,16 +502,16 @@ export declare const notionPageSchema: v.ObjectSchema<{
|
|
|
501
502
|
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
502
503
|
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
503
504
|
}, undefined>], undefined>, undefined>;
|
|
504
|
-
readonly id: v.StringSchema<undefined>;
|
|
505
505
|
}, undefined>, v.ObjectSchema<{
|
|
506
|
+
readonly id: v.StringSchema<undefined>;
|
|
506
507
|
readonly type: v.LiteralSchema<"date", undefined>;
|
|
507
508
|
readonly date: v.NullableSchema<v.ObjectSchema<{
|
|
508
509
|
readonly start: v.StringSchema<undefined>;
|
|
509
510
|
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
510
511
|
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
511
512
|
}, undefined>, undefined>;
|
|
512
|
-
readonly id: v.StringSchema<undefined>;
|
|
513
513
|
}, undefined>, v.ObjectSchema<{
|
|
514
|
+
readonly id: v.StringSchema<undefined>;
|
|
514
515
|
readonly type: v.LiteralSchema<"people", undefined>;
|
|
515
516
|
readonly people: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
516
517
|
readonly object: v.OptionalSchema<v.LiteralSchema<"user", undefined>, undefined>;
|
|
@@ -520,15 +521,15 @@ export declare const notionPageSchema: v.ObjectSchema<{
|
|
|
520
521
|
readonly id: v.StringSchema<undefined>;
|
|
521
522
|
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
522
523
|
}, undefined>], undefined>, undefined>;
|
|
523
|
-
readonly id: v.StringSchema<undefined>;
|
|
524
524
|
}, undefined>, v.ObjectSchema<{
|
|
525
|
+
readonly id: v.StringSchema<undefined>;
|
|
525
526
|
readonly type: v.LiteralSchema<"relation", undefined>;
|
|
526
527
|
readonly has_more: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
527
528
|
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
528
529
|
readonly id: v.StringSchema<undefined>;
|
|
529
530
|
}, undefined>, undefined>;
|
|
530
|
-
readonly id: v.StringSchema<undefined>;
|
|
531
531
|
}, undefined>, v.ObjectSchema<{
|
|
532
|
+
readonly id: v.StringSchema<undefined>;
|
|
532
533
|
readonly type: v.LiteralSchema<"files", undefined>;
|
|
533
534
|
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
534
535
|
readonly type: v.LiteralSchema<"external", undefined>;
|
|
@@ -544,8 +545,8 @@ export declare const notionPageSchema: v.ObjectSchema<{
|
|
|
544
545
|
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
545
546
|
}, undefined>;
|
|
546
547
|
}, undefined>], undefined>, undefined>;
|
|
547
|
-
readonly id: v.StringSchema<undefined>;
|
|
548
548
|
}, undefined>, v.ObjectSchema<{
|
|
549
|
+
readonly id: v.StringSchema<undefined>;
|
|
549
550
|
readonly type: v.LiteralSchema<"place", undefined>;
|
|
550
551
|
readonly place: v.NullableSchema<v.ObjectSchema<{
|
|
551
552
|
readonly lat: v.NumberSchema<undefined>;
|
|
@@ -555,7 +556,6 @@ export declare const notionPageSchema: v.ObjectSchema<{
|
|
|
555
556
|
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
556
557
|
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
557
558
|
}, undefined>, undefined>;
|
|
558
|
-
readonly id: v.StringSchema<undefined>;
|
|
559
559
|
}, undefined>], undefined>, undefined>;
|
|
560
560
|
readonly created_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
561
561
|
readonly last_edited_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"querySubscriptions.d.ts","sourceRoot":"","sources":["../../src/queries/querySubscriptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAA;AACjF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8DAA8D,CAAA;AAE1G,MAAM,MAAM,YAAY,GAAG;IAC1B,OAAO,EAAE,sBAAsB,CAAA;IAC/B,KAAK,EAAE,sBAAsB,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACpC,QAAQ,CAAC,IAAI,EAAE,wBAAwB,CAAA;CACvC,CAAA;AAOD,qBAAa,kBAAkB;IAC9B,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAA4C;IAE7E,KAAK,CAAC,OAAO,EAAE,sBAAsB,GAAG,sBAAsB;
|
|
1
|
+
{"version":3,"file":"querySubscriptions.d.ts","sourceRoot":"","sources":["../../src/queries/querySubscriptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAA;AACjF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8DAA8D,CAAA;AAE1G,MAAM,MAAM,YAAY,GAAG;IAC1B,OAAO,EAAE,sBAAsB,CAAA;IAC/B,KAAK,EAAE,sBAAsB,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACpC,QAAQ,CAAC,IAAI,EAAE,wBAAwB,CAAA;CACvC,CAAA;AAOD,qBAAa,kBAAkB;IAC9B,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAA4C;IAE7E,KAAK,CAAC,OAAO,EAAE,sBAAsB,GAAG,sBAAsB,CAS7D;IAED,SAAS,CAAC,cAAc,EAAE,MAAM,EAAE,KAAK,EAAE,sBAAsB,GAAG,OAAO,CAExE;IAED,OAAO,CAAC,YAAY,EAAE,kBAAkB,GAAG,YAAY,EAAE,CAgBxD;IAED,KAAK,SAEJ;CACD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@notionhq/custom-blocks-host",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Reusable host runtime for Notion custom blocks.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"valibot": "^1.
|
|
19
|
+
"valibot": "^1.4.2"
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
22
22
|
"src",
|