@notionhq/custom-blocks-host 0.3.11 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +143 -236
  3. package/THIRD_PARTY_LICENSES.md +9 -0
  4. package/dist/autoBindProperties.d.ts +5 -2
  5. package/dist/autoBindProperties.d.ts.map +1 -1
  6. package/dist/autoBindProperties.js +5 -2
  7. package/dist/browser.js +1 -1
  8. package/dist/compatibility/addMetadataReadSchemasForProtocol3To4.d.ts +1215 -0
  9. package/dist/compatibility/addMetadataReadSchemasForProtocol3To4.d.ts.map +1 -0
  10. package/dist/compatibility/addMetadataReadSchemasForProtocol3To4.js +27 -0
  11. package/dist/compatibility/normalizeHostToSandboxMessage.d.ts +8 -0
  12. package/dist/compatibility/normalizeHostToSandboxMessage.d.ts.map +1 -0
  13. package/dist/compatibility/normalizeHostToSandboxMessage.js +39 -0
  14. package/dist/compatibility/normalizePageResultsForProtocol3To5.d.ts +11 -0
  15. package/dist/compatibility/normalizePageResultsForProtocol3To5.d.ts.map +1 -0
  16. package/dist/compatibility/normalizePageResultsForProtocol3To5.js +18 -0
  17. package/dist/compatibility/normalizePageResultsForProtocol6.d.ts +9 -0
  18. package/dist/compatibility/normalizePageResultsForProtocol6.d.ts.map +1 -0
  19. package/dist/compatibility/normalizePageResultsForProtocol6.js +18 -0
  20. package/dist/compatibility/normalizeSandboxToHostMessage.d.ts +1099 -0
  21. package/dist/compatibility/normalizeSandboxToHostMessage.d.ts.map +1 -0
  22. package/dist/compatibility/normalizeSandboxToHostMessage.js +9 -0
  23. package/dist/compatibility/pageForProtocol3To5.d.ts +159 -0
  24. package/dist/compatibility/pageForProtocol3To5.d.ts.map +1 -0
  25. package/dist/{lifecycle/legacyPage.js → compatibility/pageForProtocol3To5.js} +50 -9
  26. package/dist/compatibility/pageResult.d.ts +11 -0
  27. package/dist/compatibility/pageResult.d.ts.map +1 -0
  28. package/dist/compatibility/pageWithNullTextFallbackProperties.d.ts +9 -0
  29. package/dist/compatibility/pageWithNullTextFallbackProperties.d.ts.map +1 -0
  30. package/dist/compatibility/pageWithNullTextFallbackProperties.js +46 -0
  31. package/dist/createCustomBlockHost.d.ts +18 -19
  32. package/dist/createCustomBlockHost.d.ts.map +1 -1
  33. package/dist/createCustomBlockHost.js +103 -38
  34. package/dist/index.d.ts +2 -19
  35. package/dist/index.d.ts.map +1 -1
  36. package/dist/index.js +1 -2
  37. package/dist/{localBlockUrl.d.ts → isAllowedLocalPreviewUrl.d.ts} +2 -2
  38. package/dist/isAllowedLocalPreviewUrl.d.ts.map +1 -0
  39. package/dist/{localBlockUrl.js → isAllowedLocalPreviewUrl.js} +3 -7
  40. package/dist/lifecycle/initErrors.d.ts +1 -0
  41. package/dist/lifecycle/initErrors.d.ts.map +1 -1
  42. package/dist/lifecycle/initErrors.js +7 -0
  43. package/dist/lifecycle/initializationController.d.ts +6 -4
  44. package/dist/lifecycle/initializationController.d.ts.map +1 -1
  45. package/dist/lifecycle/initializationController.js +24 -15
  46. package/dist/lifecycle/resolveManifest.d.ts +13 -0
  47. package/dist/lifecycle/resolveManifest.d.ts.map +1 -0
  48. package/dist/lifecycle/resolveManifest.js +21 -0
  49. package/dist/lifecycle/types.d.ts +1637 -17
  50. package/dist/lifecycle/types.d.ts.map +1 -1
  51. package/dist/lifecycle/types.js +18 -0
  52. package/dist/messages/sandboxMessageRouter.d.ts.map +1 -1
  53. package/dist/messages/sandboxMessageRouter.js +2 -2
  54. package/dist/protocol/dataSources/dataSourcePage.d.ts +3 -4
  55. package/dist/protocol/dataSources/dataSourcePage.js +2 -3
  56. package/dist/protocol/index.d.ts +1 -0
  57. package/dist/protocol/index.js +1 -0
  58. package/dist/protocol/isLocalBlockServerUrl.d.ts +2 -0
  59. package/dist/protocol/isLocalBlockServerUrl.js +9 -0
  60. package/dist/protocol/messages/connect.d.ts +2 -2
  61. package/dist/protocol/messages/connect.js +2 -2
  62. package/dist/protocol/messages/createPageResult.d.ts +2 -2
  63. package/dist/protocol/messages/createPageResult.js +3 -3
  64. package/dist/protocol/messages/getPage.d.ts +2 -2
  65. package/dist/protocol/messages/getPage.js +3 -3
  66. package/dist/protocol/messages/hostToSandbox.d.ts +3 -3
  67. package/dist/protocol/messages/hostToSandbox.js +10 -10
  68. package/dist/protocol/messages/init.d.ts +1 -1
  69. package/dist/protocol/messages/queryDataSource.d.ts +24 -0
  70. package/dist/protocol/messages/queryDataSource.js +2 -0
  71. package/dist/protocol/messages/queryDataSourceResult.d.ts +3 -3
  72. package/dist/protocol/messages/queryDataSourceResult.js +6 -3
  73. package/dist/protocol/messages/sandboxToHost.d.ts +8 -0
  74. package/dist/protocol/messages/updatePageResult.d.ts +2 -2
  75. package/dist/protocol/messages/updatePageResult.js +3 -3
  76. package/dist/protocol/pages/page.d.ts +2 -2
  77. package/dist/protocol/pages/page.js +1 -1
  78. package/dist/protocol/protocolVersion.d.ts +2 -2
  79. package/dist/protocol/protocolVersion.js +2 -2
  80. package/dist/protocol.d.ts +9 -0
  81. package/dist/protocol.d.ts.map +1 -0
  82. package/dist/protocol.js +8 -0
  83. package/docs/bridge/changelog.md +67 -0
  84. package/docs/bridge/protocol.md +189 -0
  85. package/docs/bridge/versioning.md +38 -0
  86. package/docs/compatibility.md +68 -0
  87. package/docs/handlers.md +199 -0
  88. package/docs/lifecycle.md +117 -0
  89. package/package.json +10 -2
  90. package/src/autoBindProperties.ts +5 -2
  91. package/src/compatibility/addMetadataReadSchemasForProtocol3To4.ts +36 -0
  92. package/src/compatibility/normalizeHostToSandboxMessage.ts +54 -0
  93. package/src/compatibility/normalizePageResultsForProtocol3To5.ts +28 -0
  94. package/src/compatibility/normalizePageResultsForProtocol6.ts +23 -0
  95. package/src/compatibility/normalizeSandboxToHostMessage.ts +10 -0
  96. package/src/{lifecycle/legacyPage.ts → compatibility/pageForProtocol3To5.ts} +52 -11
  97. package/src/compatibility/pageResult.ts +18 -0
  98. package/src/compatibility/pageWithNullTextFallbackProperties.ts +53 -0
  99. package/src/createCustomBlockHost.ts +152 -62
  100. package/src/index.ts +4 -51
  101. package/src/{localBlockUrl.ts → isAllowedLocalPreviewUrl.ts} +4 -7
  102. package/src/lifecycle/initErrors.ts +9 -0
  103. package/src/lifecycle/initializationController.ts +34 -19
  104. package/src/lifecycle/resolveManifest.ts +31 -0
  105. package/src/lifecycle/types.ts +84 -16
  106. package/src/messages/sandboxMessageRouter.ts +2 -2
  107. package/src/protocol.ts +8 -0
  108. package/dist/lifecycle/legacyPage.d.ts +0 -70
  109. package/dist/lifecycle/legacyPage.d.ts.map +0 -1
  110. package/dist/lifecycle/loadCustomBlockManifest.d.ts +0 -16
  111. package/dist/lifecycle/loadCustomBlockManifest.d.ts.map +0 -1
  112. package/dist/lifecycle/loadCustomBlockManifest.js +0 -65
  113. package/dist/lifecycle/manifestOptions.d.ts +0 -17
  114. package/dist/lifecycle/manifestOptions.d.ts.map +0 -1
  115. package/dist/lifecycle/normalizeHostToSandboxMessage.d.ts +0 -6
  116. package/dist/lifecycle/normalizeHostToSandboxMessage.d.ts.map +0 -1
  117. package/dist/lifecycle/normalizeHostToSandboxMessage.js +0 -14
  118. package/dist/lifecycle/normalizePage.d.ts +0 -7
  119. package/dist/lifecycle/normalizePage.d.ts.map +0 -1
  120. package/dist/lifecycle/normalizePage.js +0 -47
  121. package/dist/localBlockUrl.d.ts.map +0 -1
  122. package/src/lifecycle/loadCustomBlockManifest.ts +0 -89
  123. package/src/lifecycle/manifestOptions.ts +0 -19
  124. package/src/lifecycle/normalizeHostToSandboxMessage.ts +0 -27
  125. package/src/lifecycle/normalizePage.ts +0 -71
  126. /package/dist/{lifecycle/manifestOptions.js → compatibility/pageResult.js} +0 -0
@@ -0,0 +1,1215 @@
1
+ import type { HostToSandboxMessage } from "../protocol/messages/hostToSandbox.js";
2
+ /**
3
+ * Protocols 3–4 derive metadata read schemas from host bindings. Restore those
4
+ * schemas only in outgoing copies so host query validation keeps the actual schema.
5
+ *
6
+ * Delete when MIN_HOST_SUPPORTED_BRIDGE_PROTOCOL_VERSION >= 5.
7
+ */
8
+ export declare function addMetadataReadSchemasForProtocol3To4(message: Extract<HostToSandboxMessage, {
9
+ type: "init";
10
+ status: "success";
11
+ } | {
12
+ type: "dataSourcesChanged";
13
+ }>): {
14
+ type: "dataSourcesChanged";
15
+ dataSources: {
16
+ bindings: {
17
+ [k: string]: {
18
+ collectionPointer?: {
19
+ id: string & import("valibot").Brand<"NotionDataSourceId">;
20
+ table: string;
21
+ spaceId?: (string & import("valibot").Brand<"NotionSpaceId">) | undefined;
22
+ } | undefined;
23
+ propertyIdsByKey?: {
24
+ [x: string]: string | undefined;
25
+ } | undefined;
26
+ collectionSchema: {
27
+ id?: (string & import("valibot").Brand<"NotionDataSourceId">) | undefined;
28
+ propertiesById: {
29
+ created_by: {
30
+ name: string;
31
+ description?: string | undefined;
32
+ type: "title";
33
+ } | {
34
+ name: string;
35
+ description?: string | undefined;
36
+ type: "rich_text";
37
+ } | {
38
+ name: string;
39
+ description?: string | undefined;
40
+ type: "number";
41
+ } | {
42
+ name: string;
43
+ description?: string | undefined;
44
+ type: "checkbox";
45
+ } | {
46
+ name: string;
47
+ description?: string | undefined;
48
+ type: "url";
49
+ } | {
50
+ name: string;
51
+ description?: string | undefined;
52
+ type: "email";
53
+ } | {
54
+ name: string;
55
+ description?: string | undefined;
56
+ type: "phone_number";
57
+ } | {
58
+ name: string;
59
+ description?: string | undefined;
60
+ type: "select";
61
+ options: {
62
+ id: string;
63
+ name: string;
64
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
65
+ description?: string | undefined;
66
+ }[];
67
+ } | {
68
+ name: string;
69
+ description?: string | undefined;
70
+ type: "multi_select";
71
+ options: {
72
+ id: string;
73
+ name: string;
74
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
75
+ description?: string | undefined;
76
+ }[];
77
+ } | {
78
+ name: string;
79
+ description?: string | undefined;
80
+ type: "status";
81
+ options: {
82
+ id: string;
83
+ name: string;
84
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
85
+ description?: string | undefined;
86
+ }[];
87
+ groups: {
88
+ id: string;
89
+ name: string;
90
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
91
+ option_ids: string[];
92
+ }[];
93
+ } | {
94
+ name: string;
95
+ description?: string | undefined;
96
+ type: "date";
97
+ } | {
98
+ name: string;
99
+ description?: string | undefined;
100
+ type: "people";
101
+ } | {
102
+ name: string;
103
+ description?: string | undefined;
104
+ type: "files";
105
+ } | {
106
+ name: string;
107
+ description?: string | undefined;
108
+ type: "unique_id";
109
+ } | {
110
+ name: string;
111
+ description?: string | undefined;
112
+ type: "relation";
113
+ data_source_id?: string | undefined;
114
+ dual_property?: {
115
+ synced_property_id: string;
116
+ synced_property_name: string;
117
+ } | undefined;
118
+ } | {
119
+ name: string;
120
+ description?: string | undefined;
121
+ type: "place";
122
+ } | {
123
+ name: string;
124
+ description?: string | undefined;
125
+ type: "formula";
126
+ } | {
127
+ name: string;
128
+ description?: string | undefined;
129
+ type: "rollup";
130
+ } | {
131
+ name: string;
132
+ description?: string | undefined;
133
+ type: "button";
134
+ } | {
135
+ name: string;
136
+ description?: string | undefined;
137
+ type: "verification";
138
+ } | {
139
+ name: string;
140
+ description?: string | undefined;
141
+ type: "last_visited_time";
142
+ } | {
143
+ name: string;
144
+ description?: string | undefined;
145
+ type: "location";
146
+ } | {
147
+ name: string;
148
+ description?: string | undefined;
149
+ type: "created_time";
150
+ } | {
151
+ name: string;
152
+ description?: string | undefined;
153
+ type: "last_edited_time";
154
+ } | {
155
+ name: string;
156
+ description?: string | undefined;
157
+ type: "created_by";
158
+ } | {
159
+ name: string;
160
+ description?: string | undefined;
161
+ type: "last_edited_by";
162
+ };
163
+ created_time: {
164
+ name: string;
165
+ description?: string | undefined;
166
+ type: "title";
167
+ } | {
168
+ name: string;
169
+ description?: string | undefined;
170
+ type: "rich_text";
171
+ } | {
172
+ name: string;
173
+ description?: string | undefined;
174
+ type: "number";
175
+ } | {
176
+ name: string;
177
+ description?: string | undefined;
178
+ type: "checkbox";
179
+ } | {
180
+ name: string;
181
+ description?: string | undefined;
182
+ type: "url";
183
+ } | {
184
+ name: string;
185
+ description?: string | undefined;
186
+ type: "email";
187
+ } | {
188
+ name: string;
189
+ description?: string | undefined;
190
+ type: "phone_number";
191
+ } | {
192
+ name: string;
193
+ description?: string | undefined;
194
+ type: "select";
195
+ options: {
196
+ id: string;
197
+ name: string;
198
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
199
+ description?: string | undefined;
200
+ }[];
201
+ } | {
202
+ name: string;
203
+ description?: string | undefined;
204
+ type: "multi_select";
205
+ options: {
206
+ id: string;
207
+ name: string;
208
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
209
+ description?: string | undefined;
210
+ }[];
211
+ } | {
212
+ name: string;
213
+ description?: string | undefined;
214
+ type: "status";
215
+ options: {
216
+ id: string;
217
+ name: string;
218
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
219
+ description?: string | undefined;
220
+ }[];
221
+ groups: {
222
+ id: string;
223
+ name: string;
224
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
225
+ option_ids: string[];
226
+ }[];
227
+ } | {
228
+ name: string;
229
+ description?: string | undefined;
230
+ type: "date";
231
+ } | {
232
+ name: string;
233
+ description?: string | undefined;
234
+ type: "people";
235
+ } | {
236
+ name: string;
237
+ description?: string | undefined;
238
+ type: "files";
239
+ } | {
240
+ name: string;
241
+ description?: string | undefined;
242
+ type: "unique_id";
243
+ } | {
244
+ name: string;
245
+ description?: string | undefined;
246
+ type: "relation";
247
+ data_source_id?: string | undefined;
248
+ dual_property?: {
249
+ synced_property_id: string;
250
+ synced_property_name: string;
251
+ } | undefined;
252
+ } | {
253
+ name: string;
254
+ description?: string | undefined;
255
+ type: "place";
256
+ } | {
257
+ name: string;
258
+ description?: string | undefined;
259
+ type: "formula";
260
+ } | {
261
+ name: string;
262
+ description?: string | undefined;
263
+ type: "rollup";
264
+ } | {
265
+ name: string;
266
+ description?: string | undefined;
267
+ type: "button";
268
+ } | {
269
+ name: string;
270
+ description?: string | undefined;
271
+ type: "verification";
272
+ } | {
273
+ name: string;
274
+ description?: string | undefined;
275
+ type: "last_visited_time";
276
+ } | {
277
+ name: string;
278
+ description?: string | undefined;
279
+ type: "location";
280
+ } | {
281
+ name: string;
282
+ description?: string | undefined;
283
+ type: "created_time";
284
+ } | {
285
+ name: string;
286
+ description?: string | undefined;
287
+ type: "last_edited_time";
288
+ } | {
289
+ name: string;
290
+ description?: string | undefined;
291
+ type: "created_by";
292
+ } | {
293
+ name: string;
294
+ description?: string | undefined;
295
+ type: "last_edited_by";
296
+ };
297
+ last_edited_by: {
298
+ name: string;
299
+ description?: string | undefined;
300
+ type: "title";
301
+ } | {
302
+ name: string;
303
+ description?: string | undefined;
304
+ type: "rich_text";
305
+ } | {
306
+ name: string;
307
+ description?: string | undefined;
308
+ type: "number";
309
+ } | {
310
+ name: string;
311
+ description?: string | undefined;
312
+ type: "checkbox";
313
+ } | {
314
+ name: string;
315
+ description?: string | undefined;
316
+ type: "url";
317
+ } | {
318
+ name: string;
319
+ description?: string | undefined;
320
+ type: "email";
321
+ } | {
322
+ name: string;
323
+ description?: string | undefined;
324
+ type: "phone_number";
325
+ } | {
326
+ name: string;
327
+ description?: string | undefined;
328
+ type: "select";
329
+ options: {
330
+ id: string;
331
+ name: string;
332
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
333
+ description?: string | undefined;
334
+ }[];
335
+ } | {
336
+ name: string;
337
+ description?: string | undefined;
338
+ type: "multi_select";
339
+ options: {
340
+ id: string;
341
+ name: string;
342
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
343
+ description?: string | undefined;
344
+ }[];
345
+ } | {
346
+ name: string;
347
+ description?: string | undefined;
348
+ type: "status";
349
+ options: {
350
+ id: string;
351
+ name: string;
352
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
353
+ description?: string | undefined;
354
+ }[];
355
+ groups: {
356
+ id: string;
357
+ name: string;
358
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
359
+ option_ids: string[];
360
+ }[];
361
+ } | {
362
+ name: string;
363
+ description?: string | undefined;
364
+ type: "date";
365
+ } | {
366
+ name: string;
367
+ description?: string | undefined;
368
+ type: "people";
369
+ } | {
370
+ name: string;
371
+ description?: string | undefined;
372
+ type: "files";
373
+ } | {
374
+ name: string;
375
+ description?: string | undefined;
376
+ type: "unique_id";
377
+ } | {
378
+ name: string;
379
+ description?: string | undefined;
380
+ type: "relation";
381
+ data_source_id?: string | undefined;
382
+ dual_property?: {
383
+ synced_property_id: string;
384
+ synced_property_name: string;
385
+ } | undefined;
386
+ } | {
387
+ name: string;
388
+ description?: string | undefined;
389
+ type: "place";
390
+ } | {
391
+ name: string;
392
+ description?: string | undefined;
393
+ type: "formula";
394
+ } | {
395
+ name: string;
396
+ description?: string | undefined;
397
+ type: "rollup";
398
+ } | {
399
+ name: string;
400
+ description?: string | undefined;
401
+ type: "button";
402
+ } | {
403
+ name: string;
404
+ description?: string | undefined;
405
+ type: "verification";
406
+ } | {
407
+ name: string;
408
+ description?: string | undefined;
409
+ type: "last_visited_time";
410
+ } | {
411
+ name: string;
412
+ description?: string | undefined;
413
+ type: "location";
414
+ } | {
415
+ name: string;
416
+ description?: string | undefined;
417
+ type: "created_time";
418
+ } | {
419
+ name: string;
420
+ description?: string | undefined;
421
+ type: "last_edited_time";
422
+ } | {
423
+ name: string;
424
+ description?: string | undefined;
425
+ type: "created_by";
426
+ } | {
427
+ name: string;
428
+ description?: string | undefined;
429
+ type: "last_edited_by";
430
+ };
431
+ last_edited_time: {
432
+ name: string;
433
+ description?: string | undefined;
434
+ type: "title";
435
+ } | {
436
+ name: string;
437
+ description?: string | undefined;
438
+ type: "rich_text";
439
+ } | {
440
+ name: string;
441
+ description?: string | undefined;
442
+ type: "number";
443
+ } | {
444
+ name: string;
445
+ description?: string | undefined;
446
+ type: "checkbox";
447
+ } | {
448
+ name: string;
449
+ description?: string | undefined;
450
+ type: "url";
451
+ } | {
452
+ name: string;
453
+ description?: string | undefined;
454
+ type: "email";
455
+ } | {
456
+ name: string;
457
+ description?: string | undefined;
458
+ type: "phone_number";
459
+ } | {
460
+ name: string;
461
+ description?: string | undefined;
462
+ type: "select";
463
+ options: {
464
+ id: string;
465
+ name: string;
466
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
467
+ description?: string | undefined;
468
+ }[];
469
+ } | {
470
+ name: string;
471
+ description?: string | undefined;
472
+ type: "multi_select";
473
+ options: {
474
+ id: string;
475
+ name: string;
476
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
477
+ description?: string | undefined;
478
+ }[];
479
+ } | {
480
+ name: string;
481
+ description?: string | undefined;
482
+ type: "status";
483
+ options: {
484
+ id: string;
485
+ name: string;
486
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
487
+ description?: string | undefined;
488
+ }[];
489
+ groups: {
490
+ id: string;
491
+ name: string;
492
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
493
+ option_ids: string[];
494
+ }[];
495
+ } | {
496
+ name: string;
497
+ description?: string | undefined;
498
+ type: "date";
499
+ } | {
500
+ name: string;
501
+ description?: string | undefined;
502
+ type: "people";
503
+ } | {
504
+ name: string;
505
+ description?: string | undefined;
506
+ type: "files";
507
+ } | {
508
+ name: string;
509
+ description?: string | undefined;
510
+ type: "unique_id";
511
+ } | {
512
+ name: string;
513
+ description?: string | undefined;
514
+ type: "relation";
515
+ data_source_id?: string | undefined;
516
+ dual_property?: {
517
+ synced_property_id: string;
518
+ synced_property_name: string;
519
+ } | undefined;
520
+ } | {
521
+ name: string;
522
+ description?: string | undefined;
523
+ type: "place";
524
+ } | {
525
+ name: string;
526
+ description?: string | undefined;
527
+ type: "formula";
528
+ } | {
529
+ name: string;
530
+ description?: string | undefined;
531
+ type: "rollup";
532
+ } | {
533
+ name: string;
534
+ description?: string | undefined;
535
+ type: "button";
536
+ } | {
537
+ name: string;
538
+ description?: string | undefined;
539
+ type: "verification";
540
+ } | {
541
+ name: string;
542
+ description?: string | undefined;
543
+ type: "last_visited_time";
544
+ } | {
545
+ name: string;
546
+ description?: string | undefined;
547
+ type: "location";
548
+ } | {
549
+ name: string;
550
+ description?: string | undefined;
551
+ type: "created_time";
552
+ } | {
553
+ name: string;
554
+ description?: string | undefined;
555
+ type: "last_edited_time";
556
+ } | {
557
+ name: string;
558
+ description?: string | undefined;
559
+ type: "created_by";
560
+ } | {
561
+ name: string;
562
+ description?: string | undefined;
563
+ type: "last_edited_by";
564
+ };
565
+ };
566
+ };
567
+ };
568
+ };
569
+ };
570
+ } | {
571
+ type: "init";
572
+ initializationId: string;
573
+ status: "success";
574
+ theme: "dark" | "light";
575
+ contrastMode: "high" | "standard";
576
+ blockId: string & import("valibot").Brand<"NotionBlockId">;
577
+ parent: {
578
+ type: "page_id";
579
+ page_id: string & import("valibot").Brand<"NotionPageId">;
580
+ } | {
581
+ type: "data_source_id";
582
+ data_source_id: string & import("valibot").Brand<"NotionDataSourceId">;
583
+ } | {
584
+ type: "workspace";
585
+ workspace: true;
586
+ } | {
587
+ type: "block_id";
588
+ block_id: string & import("valibot").Brand<"NotionBlockId">;
589
+ } | {
590
+ type: "agent_id";
591
+ agent_id: string & import("valibot").Brand<"NotionAgentId">;
592
+ } | {
593
+ type: "unavailable";
594
+ };
595
+ page: {
596
+ type: "unavailable";
597
+ } | {
598
+ type: "page";
599
+ id: string & import("valibot").Brand<"NotionPageId">;
600
+ parent: {
601
+ type: "page_id";
602
+ page_id: string & import("valibot").Brand<"NotionPageId">;
603
+ } | {
604
+ type: "data_source_id";
605
+ data_source_id: string & import("valibot").Brand<"NotionDataSourceId">;
606
+ } | {
607
+ type: "workspace";
608
+ workspace: true;
609
+ } | {
610
+ type: "block_id";
611
+ block_id: string & import("valibot").Brand<"NotionBlockId">;
612
+ } | {
613
+ type: "agent_id";
614
+ agent_id: string & import("valibot").Brand<"NotionAgentId">;
615
+ } | {
616
+ type: "unavailable";
617
+ };
618
+ };
619
+ manifest: {
620
+ version: 1;
621
+ name?: string | undefined;
622
+ description?: string | undefined;
623
+ slashCommand?: string | undefined;
624
+ icon?: {
625
+ type: "emoji";
626
+ emoji: string;
627
+ } | undefined;
628
+ dataSources: {
629
+ [x: string]: {
630
+ name: string;
631
+ description?: string | undefined;
632
+ icon?: {
633
+ type: "emoji";
634
+ emoji: string;
635
+ } | {
636
+ type: "external";
637
+ url: string;
638
+ } | undefined;
639
+ properties: {
640
+ [x: string]: {
641
+ name: string;
642
+ description?: string | undefined;
643
+ type: "button" | "checkbox" | "created_by" | "created_time" | "date" | "email" | "files" | "formula" | "last_edited_by" | "last_edited_time" | "last_visited_time" | "location" | "multi_select" | "number" | "people" | "phone_number" | "place" | "relation" | "rich_text" | "rollup" | "select" | "status" | "title" | "unique_id" | "url" | "verification";
644
+ };
645
+ };
646
+ };
647
+ };
648
+ };
649
+ currentUser: {
650
+ object: "user";
651
+ id: string & import("valibot").Brand<"NotionUserId">;
652
+ name?: string | undefined;
653
+ avatar_url: string | null;
654
+ type: "person";
655
+ person: {
656
+ email: string;
657
+ };
658
+ };
659
+ dataSources: {
660
+ bindings: {
661
+ [k: string]: {
662
+ collectionPointer?: {
663
+ id: string & import("valibot").Brand<"NotionDataSourceId">;
664
+ table: string;
665
+ spaceId?: (string & import("valibot").Brand<"NotionSpaceId">) | undefined;
666
+ } | undefined;
667
+ propertyIdsByKey?: {
668
+ [x: string]: string | undefined;
669
+ } | undefined;
670
+ collectionSchema: {
671
+ id?: (string & import("valibot").Brand<"NotionDataSourceId">) | undefined;
672
+ propertiesById: {
673
+ created_by: {
674
+ name: string;
675
+ description?: string | undefined;
676
+ type: "title";
677
+ } | {
678
+ name: string;
679
+ description?: string | undefined;
680
+ type: "rich_text";
681
+ } | {
682
+ name: string;
683
+ description?: string | undefined;
684
+ type: "number";
685
+ } | {
686
+ name: string;
687
+ description?: string | undefined;
688
+ type: "checkbox";
689
+ } | {
690
+ name: string;
691
+ description?: string | undefined;
692
+ type: "url";
693
+ } | {
694
+ name: string;
695
+ description?: string | undefined;
696
+ type: "email";
697
+ } | {
698
+ name: string;
699
+ description?: string | undefined;
700
+ type: "phone_number";
701
+ } | {
702
+ name: string;
703
+ description?: string | undefined;
704
+ type: "select";
705
+ options: {
706
+ id: string;
707
+ name: string;
708
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
709
+ description?: string | undefined;
710
+ }[];
711
+ } | {
712
+ name: string;
713
+ description?: string | undefined;
714
+ type: "multi_select";
715
+ options: {
716
+ id: string;
717
+ name: string;
718
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
719
+ description?: string | undefined;
720
+ }[];
721
+ } | {
722
+ name: string;
723
+ description?: string | undefined;
724
+ type: "status";
725
+ options: {
726
+ id: string;
727
+ name: string;
728
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
729
+ description?: string | undefined;
730
+ }[];
731
+ groups: {
732
+ id: string;
733
+ name: string;
734
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
735
+ option_ids: string[];
736
+ }[];
737
+ } | {
738
+ name: string;
739
+ description?: string | undefined;
740
+ type: "date";
741
+ } | {
742
+ name: string;
743
+ description?: string | undefined;
744
+ type: "people";
745
+ } | {
746
+ name: string;
747
+ description?: string | undefined;
748
+ type: "files";
749
+ } | {
750
+ name: string;
751
+ description?: string | undefined;
752
+ type: "unique_id";
753
+ } | {
754
+ name: string;
755
+ description?: string | undefined;
756
+ type: "relation";
757
+ data_source_id?: string | undefined;
758
+ dual_property?: {
759
+ synced_property_id: string;
760
+ synced_property_name: string;
761
+ } | undefined;
762
+ } | {
763
+ name: string;
764
+ description?: string | undefined;
765
+ type: "place";
766
+ } | {
767
+ name: string;
768
+ description?: string | undefined;
769
+ type: "formula";
770
+ } | {
771
+ name: string;
772
+ description?: string | undefined;
773
+ type: "rollup";
774
+ } | {
775
+ name: string;
776
+ description?: string | undefined;
777
+ type: "button";
778
+ } | {
779
+ name: string;
780
+ description?: string | undefined;
781
+ type: "verification";
782
+ } | {
783
+ name: string;
784
+ description?: string | undefined;
785
+ type: "last_visited_time";
786
+ } | {
787
+ name: string;
788
+ description?: string | undefined;
789
+ type: "location";
790
+ } | {
791
+ name: string;
792
+ description?: string | undefined;
793
+ type: "created_time";
794
+ } | {
795
+ name: string;
796
+ description?: string | undefined;
797
+ type: "last_edited_time";
798
+ } | {
799
+ name: string;
800
+ description?: string | undefined;
801
+ type: "created_by";
802
+ } | {
803
+ name: string;
804
+ description?: string | undefined;
805
+ type: "last_edited_by";
806
+ };
807
+ created_time: {
808
+ name: string;
809
+ description?: string | undefined;
810
+ type: "title";
811
+ } | {
812
+ name: string;
813
+ description?: string | undefined;
814
+ type: "rich_text";
815
+ } | {
816
+ name: string;
817
+ description?: string | undefined;
818
+ type: "number";
819
+ } | {
820
+ name: string;
821
+ description?: string | undefined;
822
+ type: "checkbox";
823
+ } | {
824
+ name: string;
825
+ description?: string | undefined;
826
+ type: "url";
827
+ } | {
828
+ name: string;
829
+ description?: string | undefined;
830
+ type: "email";
831
+ } | {
832
+ name: string;
833
+ description?: string | undefined;
834
+ type: "phone_number";
835
+ } | {
836
+ name: string;
837
+ description?: string | undefined;
838
+ type: "select";
839
+ options: {
840
+ id: string;
841
+ name: string;
842
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
843
+ description?: string | undefined;
844
+ }[];
845
+ } | {
846
+ name: string;
847
+ description?: string | undefined;
848
+ type: "multi_select";
849
+ options: {
850
+ id: string;
851
+ name: string;
852
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
853
+ description?: string | undefined;
854
+ }[];
855
+ } | {
856
+ name: string;
857
+ description?: string | undefined;
858
+ type: "status";
859
+ options: {
860
+ id: string;
861
+ name: string;
862
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
863
+ description?: string | undefined;
864
+ }[];
865
+ groups: {
866
+ id: string;
867
+ name: string;
868
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
869
+ option_ids: string[];
870
+ }[];
871
+ } | {
872
+ name: string;
873
+ description?: string | undefined;
874
+ type: "date";
875
+ } | {
876
+ name: string;
877
+ description?: string | undefined;
878
+ type: "people";
879
+ } | {
880
+ name: string;
881
+ description?: string | undefined;
882
+ type: "files";
883
+ } | {
884
+ name: string;
885
+ description?: string | undefined;
886
+ type: "unique_id";
887
+ } | {
888
+ name: string;
889
+ description?: string | undefined;
890
+ type: "relation";
891
+ data_source_id?: string | undefined;
892
+ dual_property?: {
893
+ synced_property_id: string;
894
+ synced_property_name: string;
895
+ } | undefined;
896
+ } | {
897
+ name: string;
898
+ description?: string | undefined;
899
+ type: "place";
900
+ } | {
901
+ name: string;
902
+ description?: string | undefined;
903
+ type: "formula";
904
+ } | {
905
+ name: string;
906
+ description?: string | undefined;
907
+ type: "rollup";
908
+ } | {
909
+ name: string;
910
+ description?: string | undefined;
911
+ type: "button";
912
+ } | {
913
+ name: string;
914
+ description?: string | undefined;
915
+ type: "verification";
916
+ } | {
917
+ name: string;
918
+ description?: string | undefined;
919
+ type: "last_visited_time";
920
+ } | {
921
+ name: string;
922
+ description?: string | undefined;
923
+ type: "location";
924
+ } | {
925
+ name: string;
926
+ description?: string | undefined;
927
+ type: "created_time";
928
+ } | {
929
+ name: string;
930
+ description?: string | undefined;
931
+ type: "last_edited_time";
932
+ } | {
933
+ name: string;
934
+ description?: string | undefined;
935
+ type: "created_by";
936
+ } | {
937
+ name: string;
938
+ description?: string | undefined;
939
+ type: "last_edited_by";
940
+ };
941
+ last_edited_by: {
942
+ name: string;
943
+ description?: string | undefined;
944
+ type: "title";
945
+ } | {
946
+ name: string;
947
+ description?: string | undefined;
948
+ type: "rich_text";
949
+ } | {
950
+ name: string;
951
+ description?: string | undefined;
952
+ type: "number";
953
+ } | {
954
+ name: string;
955
+ description?: string | undefined;
956
+ type: "checkbox";
957
+ } | {
958
+ name: string;
959
+ description?: string | undefined;
960
+ type: "url";
961
+ } | {
962
+ name: string;
963
+ description?: string | undefined;
964
+ type: "email";
965
+ } | {
966
+ name: string;
967
+ description?: string | undefined;
968
+ type: "phone_number";
969
+ } | {
970
+ name: string;
971
+ description?: string | undefined;
972
+ type: "select";
973
+ options: {
974
+ id: string;
975
+ name: string;
976
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
977
+ description?: string | undefined;
978
+ }[];
979
+ } | {
980
+ name: string;
981
+ description?: string | undefined;
982
+ type: "multi_select";
983
+ options: {
984
+ id: string;
985
+ name: string;
986
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
987
+ description?: string | undefined;
988
+ }[];
989
+ } | {
990
+ name: string;
991
+ description?: string | undefined;
992
+ type: "status";
993
+ options: {
994
+ id: string;
995
+ name: string;
996
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
997
+ description?: string | undefined;
998
+ }[];
999
+ groups: {
1000
+ id: string;
1001
+ name: string;
1002
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
1003
+ option_ids: string[];
1004
+ }[];
1005
+ } | {
1006
+ name: string;
1007
+ description?: string | undefined;
1008
+ type: "date";
1009
+ } | {
1010
+ name: string;
1011
+ description?: string | undefined;
1012
+ type: "people";
1013
+ } | {
1014
+ name: string;
1015
+ description?: string | undefined;
1016
+ type: "files";
1017
+ } | {
1018
+ name: string;
1019
+ description?: string | undefined;
1020
+ type: "unique_id";
1021
+ } | {
1022
+ name: string;
1023
+ description?: string | undefined;
1024
+ type: "relation";
1025
+ data_source_id?: string | undefined;
1026
+ dual_property?: {
1027
+ synced_property_id: string;
1028
+ synced_property_name: string;
1029
+ } | undefined;
1030
+ } | {
1031
+ name: string;
1032
+ description?: string | undefined;
1033
+ type: "place";
1034
+ } | {
1035
+ name: string;
1036
+ description?: string | undefined;
1037
+ type: "formula";
1038
+ } | {
1039
+ name: string;
1040
+ description?: string | undefined;
1041
+ type: "rollup";
1042
+ } | {
1043
+ name: string;
1044
+ description?: string | undefined;
1045
+ type: "button";
1046
+ } | {
1047
+ name: string;
1048
+ description?: string | undefined;
1049
+ type: "verification";
1050
+ } | {
1051
+ name: string;
1052
+ description?: string | undefined;
1053
+ type: "last_visited_time";
1054
+ } | {
1055
+ name: string;
1056
+ description?: string | undefined;
1057
+ type: "location";
1058
+ } | {
1059
+ name: string;
1060
+ description?: string | undefined;
1061
+ type: "created_time";
1062
+ } | {
1063
+ name: string;
1064
+ description?: string | undefined;
1065
+ type: "last_edited_time";
1066
+ } | {
1067
+ name: string;
1068
+ description?: string | undefined;
1069
+ type: "created_by";
1070
+ } | {
1071
+ name: string;
1072
+ description?: string | undefined;
1073
+ type: "last_edited_by";
1074
+ };
1075
+ last_edited_time: {
1076
+ name: string;
1077
+ description?: string | undefined;
1078
+ type: "title";
1079
+ } | {
1080
+ name: string;
1081
+ description?: string | undefined;
1082
+ type: "rich_text";
1083
+ } | {
1084
+ name: string;
1085
+ description?: string | undefined;
1086
+ type: "number";
1087
+ } | {
1088
+ name: string;
1089
+ description?: string | undefined;
1090
+ type: "checkbox";
1091
+ } | {
1092
+ name: string;
1093
+ description?: string | undefined;
1094
+ type: "url";
1095
+ } | {
1096
+ name: string;
1097
+ description?: string | undefined;
1098
+ type: "email";
1099
+ } | {
1100
+ name: string;
1101
+ description?: string | undefined;
1102
+ type: "phone_number";
1103
+ } | {
1104
+ name: string;
1105
+ description?: string | undefined;
1106
+ type: "select";
1107
+ options: {
1108
+ id: string;
1109
+ name: string;
1110
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
1111
+ description?: string | undefined;
1112
+ }[];
1113
+ } | {
1114
+ name: string;
1115
+ description?: string | undefined;
1116
+ type: "multi_select";
1117
+ options: {
1118
+ id: string;
1119
+ name: string;
1120
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
1121
+ description?: string | undefined;
1122
+ }[];
1123
+ } | {
1124
+ name: string;
1125
+ description?: string | undefined;
1126
+ type: "status";
1127
+ options: {
1128
+ id: string;
1129
+ name: string;
1130
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
1131
+ description?: string | undefined;
1132
+ }[];
1133
+ groups: {
1134
+ id: string;
1135
+ name: string;
1136
+ color?: "blue" | "blue_background" | "brown" | "brown_background" | "default" | "default_background" | "gray" | "gray_background" | "green" | "green_background" | "orange" | "orange_background" | "pink" | "pink_background" | "purple" | "purple_background" | "red" | "red_background" | "yellow" | "yellow_background" | undefined;
1137
+ option_ids: string[];
1138
+ }[];
1139
+ } | {
1140
+ name: string;
1141
+ description?: string | undefined;
1142
+ type: "date";
1143
+ } | {
1144
+ name: string;
1145
+ description?: string | undefined;
1146
+ type: "people";
1147
+ } | {
1148
+ name: string;
1149
+ description?: string | undefined;
1150
+ type: "files";
1151
+ } | {
1152
+ name: string;
1153
+ description?: string | undefined;
1154
+ type: "unique_id";
1155
+ } | {
1156
+ name: string;
1157
+ description?: string | undefined;
1158
+ type: "relation";
1159
+ data_source_id?: string | undefined;
1160
+ dual_property?: {
1161
+ synced_property_id: string;
1162
+ synced_property_name: string;
1163
+ } | undefined;
1164
+ } | {
1165
+ name: string;
1166
+ description?: string | undefined;
1167
+ type: "place";
1168
+ } | {
1169
+ name: string;
1170
+ description?: string | undefined;
1171
+ type: "formula";
1172
+ } | {
1173
+ name: string;
1174
+ description?: string | undefined;
1175
+ type: "rollup";
1176
+ } | {
1177
+ name: string;
1178
+ description?: string | undefined;
1179
+ type: "button";
1180
+ } | {
1181
+ name: string;
1182
+ description?: string | undefined;
1183
+ type: "verification";
1184
+ } | {
1185
+ name: string;
1186
+ description?: string | undefined;
1187
+ type: "last_visited_time";
1188
+ } | {
1189
+ name: string;
1190
+ description?: string | undefined;
1191
+ type: "location";
1192
+ } | {
1193
+ name: string;
1194
+ description?: string | undefined;
1195
+ type: "created_time";
1196
+ } | {
1197
+ name: string;
1198
+ description?: string | undefined;
1199
+ type: "last_edited_time";
1200
+ } | {
1201
+ name: string;
1202
+ description?: string | undefined;
1203
+ type: "created_by";
1204
+ } | {
1205
+ name: string;
1206
+ description?: string | undefined;
1207
+ type: "last_edited_by";
1208
+ };
1209
+ };
1210
+ };
1211
+ };
1212
+ };
1213
+ };
1214
+ };
1215
+ //# sourceMappingURL=addMetadataReadSchemasForProtocol3To4.d.ts.map