@notionhq/custom-blocks-host 0.4.2 → 0.5.0

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 (424) hide show
  1. package/README.md +4 -0
  2. package/dist/browser.js +1 -1
  3. package/dist/compatibility/normalizeHostToSandboxMessage.js +4 -4
  4. package/dist/compatibility/normalizeSandboxToHostMessage.d.ts +232 -8
  5. package/dist/compatibility/normalizeSandboxToHostMessage.d.ts.map +1 -1
  6. package/dist/compatibility/{pageResult.d.ts → pages/pageResult.d.ts} +1 -1
  7. package/dist/compatibility/pages/pageResult.d.ts.map +1 -0
  8. package/dist/compatibility/{pageWithNullTextFallbackProperties.d.ts → pages/toPageWithNullTextFallbackProperties.d.ts} +2 -2
  9. package/dist/compatibility/pages/toPageWithNullTextFallbackProperties.d.ts.map +1 -0
  10. package/dist/compatibility/{pageWithNullTextFallbackProperties.js → pages/toPageWithNullTextFallbackProperties.js} +1 -1
  11. package/dist/compatibility/{addMetadataReadSchemasForProtocol3To4.d.ts → protocol3To4/addMetadataReadSchemasForProtocol3To4.d.ts} +96 -90
  12. package/dist/compatibility/{addMetadataReadSchemasForProtocol3To4.d.ts.map → protocol3To4/addMetadataReadSchemasForProtocol3To4.d.ts.map} +1 -1
  13. package/dist/compatibility/{addMetadataReadSchemasForProtocol3To4.js → protocol3To4/addMetadataReadSchemasForProtocol3To4.js} +1 -1
  14. package/dist/compatibility/{normalizePageResultsForProtocol3To5.d.ts → protocol3To5/normalizePageResultsForProtocol3To5.d.ts} +2 -2
  15. package/dist/compatibility/protocol3To5/normalizePageResultsForProtocol3To5.d.ts.map +1 -0
  16. package/dist/compatibility/{normalizePageResultsForProtocol3To5.js → protocol3To5/normalizePageResultsForProtocol3To5.js} +3 -2
  17. package/dist/compatibility/protocol3To5/toDateTimeValueForProtocol3To5.d.ts +9 -0
  18. package/dist/compatibility/protocol3To5/toDateTimeValueForProtocol3To5.d.ts.map +1 -0
  19. package/dist/compatibility/protocol3To5/toDateTimeValueForProtocol3To5.js +21 -0
  20. package/dist/compatibility/protocol3To5/toPageForProtocol3To5.d.ts +12 -0
  21. package/dist/compatibility/protocol3To5/toPageForProtocol3To5.d.ts.map +1 -0
  22. package/dist/compatibility/protocol3To5/toPageForProtocol3To5.js +20 -0
  23. package/dist/compatibility/protocol3To5/toPropertyValueForProtocol3To5.d.ts +10 -0
  24. package/dist/compatibility/protocol3To5/toPropertyValueForProtocol3To5.d.ts.map +1 -0
  25. package/dist/compatibility/{pageForProtocol3To5.js → protocol3To5/toPropertyValueForProtocol3To5.js} +25 -95
  26. package/dist/compatibility/{pageForProtocol3To5.d.ts → protocol3To5/toQueryPageForProtocol3To5.d.ts} +11 -21
  27. package/dist/compatibility/protocol3To5/toQueryPageForProtocol3To5.d.ts.map +1 -0
  28. package/dist/compatibility/protocol3To5/toQueryPageForProtocol3To5.js +32 -0
  29. package/dist/compatibility/{normalizePageResultsForProtocol6.d.ts → protocol6/normalizePageResultsForProtocol6.d.ts} +2 -2
  30. package/dist/compatibility/protocol6/normalizePageResultsForProtocol6.d.ts.map +1 -0
  31. package/dist/compatibility/{normalizePageResultsForProtocol6.js → protocol6/normalizePageResultsForProtocol6.js} +1 -1
  32. package/dist/context/initialState.d.ts +1801 -0
  33. package/dist/context/initialState.d.ts.map +1 -0
  34. package/dist/context/initialState.js +34 -0
  35. package/dist/context/resize.d.ts +4 -0
  36. package/dist/context/resize.d.ts.map +1 -0
  37. package/dist/createCustomBlockHost.d.ts +28 -13
  38. package/dist/createCustomBlockHost.d.ts.map +1 -1
  39. package/dist/createCustomBlockHost.js +46 -28
  40. package/dist/{autoBindProperties.d.ts → dataSources/bindings/getAutoBoundPropertyIdsByKey.d.ts} +2 -2
  41. package/dist/dataSources/bindings/getAutoBoundPropertyIdsByKey.d.ts.map +1 -0
  42. package/dist/{dateValue.d.ts → dataSources/properties/toNotionDateValue.d.ts} +3 -3
  43. package/dist/dataSources/properties/toNotionDateValue.d.ts.map +1 -0
  44. package/dist/{queries → dataSources/queries}/querySubscriptions.d.ts +2 -2
  45. package/dist/dataSources/queries/querySubscriptions.d.ts.map +1 -0
  46. package/dist/dataSources/types.d.ts +18 -0
  47. package/dist/dataSources/types.d.ts.map +1 -0
  48. package/dist/dataSources/validation/validateQueryDataSourceFilter.d.ts +5 -0
  49. package/dist/dataSources/validation/validateQueryDataSourceFilter.d.ts.map +1 -0
  50. package/dist/{queries → dataSources/validation}/validateQueryDataSourceFilter.js +2 -2
  51. package/dist/dataSources/validation/validateQueryDataSourceSorts.d.ts +8 -0
  52. package/dist/dataSources/validation/validateQueryDataSourceSorts.d.ts.map +1 -0
  53. package/dist/{queries → dataSources/validation}/validateQueryDataSourceSorts.js +2 -2
  54. package/dist/index.d.ts +16 -8
  55. package/dist/index.d.ts.map +1 -1
  56. package/dist/index.js +4 -4
  57. package/dist/lifecycle/{initializationController.d.ts → createInitializationController.d.ts} +7 -6
  58. package/dist/lifecycle/createInitializationController.d.ts.map +1 -0
  59. package/dist/lifecycle/{initializationController.js → createInitializationController.js} +9 -4
  60. package/dist/lifecycle/errors/contextUnavailableError.d.ts +3 -0
  61. package/dist/lifecycle/errors/contextUnavailableError.d.ts.map +1 -0
  62. package/dist/lifecycle/errors/contextUnavailableError.js +8 -0
  63. package/dist/lifecycle/errors/initialStateTimeoutError.d.ts +3 -0
  64. package/dist/lifecycle/errors/initialStateTimeoutError.d.ts.map +1 -0
  65. package/dist/lifecycle/errors/initialStateTimeoutError.js +8 -0
  66. package/dist/lifecycle/errors/invalidConnectPayloadError.d.ts +3 -0
  67. package/dist/lifecycle/errors/invalidConnectPayloadError.d.ts.map +1 -0
  68. package/dist/lifecycle/errors/invalidConnectPayloadError.js +8 -0
  69. package/dist/lifecycle/errors/invalidInitResultPayloadError.d.ts +3 -0
  70. package/dist/lifecycle/errors/invalidInitResultPayloadError.d.ts.map +1 -0
  71. package/dist/lifecycle/errors/invalidInitResultPayloadError.js +8 -0
  72. package/dist/lifecycle/errors/invalidLocalPreviewUrlError.d.ts +3 -0
  73. package/dist/lifecycle/errors/invalidLocalPreviewUrlError.d.ts.map +1 -0
  74. package/dist/lifecycle/errors/invalidLocalPreviewUrlError.js +7 -0
  75. package/dist/lifecycle/errors/invalidPropertyBindingError.d.ts +3 -0
  76. package/dist/lifecycle/errors/invalidPropertyBindingError.d.ts.map +1 -0
  77. package/dist/lifecycle/errors/invalidPropertyBindingError.js +9 -0
  78. package/dist/lifecycle/errors/invalidProtocolVersionError.d.ts +5 -0
  79. package/dist/lifecycle/errors/invalidProtocolVersionError.d.ts.map +1 -0
  80. package/dist/lifecycle/errors/invalidProtocolVersionError.js +9 -0
  81. package/dist/lifecycle/errors/missingDataSourceBindingError.d.ts +3 -0
  82. package/dist/lifecycle/errors/missingDataSourceBindingError.d.ts.map +1 -0
  83. package/dist/lifecycle/errors/missingDataSourceBindingError.js +8 -0
  84. package/dist/lifecycle/errors/missingPropertyBindingError.d.ts +3 -0
  85. package/dist/lifecycle/errors/missingPropertyBindingError.d.ts.map +1 -0
  86. package/dist/lifecycle/errors/missingPropertyBindingError.js +8 -0
  87. package/dist/lifecycle/errors/noConnectError.d.ts +8 -0
  88. package/dist/lifecycle/errors/noConnectError.d.ts.map +1 -0
  89. package/dist/lifecycle/errors/noConnectError.js +13 -0
  90. package/dist/lifecycle/errors/noInitResultError.d.ts +3 -0
  91. package/dist/lifecycle/errors/noInitResultError.d.ts.map +1 -0
  92. package/dist/lifecycle/errors/noInitResultError.js +8 -0
  93. package/dist/lifecycle/errors/unknownInitializationError.d.ts +3 -0
  94. package/dist/lifecycle/errors/unknownInitializationError.d.ts.map +1 -0
  95. package/dist/lifecycle/errors/unknownInitializationError.js +8 -0
  96. package/dist/lifecycle/errors/unsupportedProtocolVersionError.d.ts +6 -0
  97. package/dist/lifecycle/errors/unsupportedProtocolVersionError.d.ts.map +1 -0
  98. package/dist/lifecycle/errors/unsupportedProtocolVersionError.js +9 -0
  99. package/dist/lifecycle/isAllowedLocalPreviewUrl.d.ts.map +1 -0
  100. package/dist/{isAllowedLocalPreviewUrl.js → lifecycle/isAllowedLocalPreviewUrl.js} +1 -1
  101. package/dist/lifecycle/{protocolVersion.d.ts → isValidBridgeProtocolVersion.d.ts} +1 -1
  102. package/dist/lifecycle/isValidBridgeProtocolVersion.d.ts.map +1 -0
  103. package/dist/lifecycle/types.d.ts +16 -1849
  104. package/dist/lifecycle/types.d.ts.map +1 -1
  105. package/dist/lifecycle/types.js +1 -41
  106. package/dist/{lifecycle → manifest}/resolveManifest.d.ts +2 -2
  107. package/dist/manifest/resolveManifest.d.ts.map +1 -0
  108. package/dist/manifest/types.d.ts +55 -0
  109. package/dist/manifest/types.d.ts.map +1 -0
  110. package/dist/manifest/types.js +10 -0
  111. package/dist/messages/{sandboxMessageRouter.d.ts → createSandboxMessageRouter.d.ts} +15 -15
  112. package/dist/messages/createSandboxMessageRouter.d.ts.map +1 -0
  113. package/dist/messages/{sandboxMessageRouter.js → createSandboxMessageRouter.js} +5 -4
  114. package/dist/messages/{invalidSandboxMessage.d.ts → getInvalidSandboxMessageResponse.d.ts} +1 -1
  115. package/dist/messages/getInvalidSandboxMessageResponse.d.ts.map +1 -0
  116. package/dist/messages/handlers.d.ts +27 -0
  117. package/dist/messages/handlers.d.ts.map +1 -0
  118. package/dist/messages/handlers.js +1 -0
  119. package/dist/messages/logging.d.ts +2 -0
  120. package/dist/messages/logging.d.ts.map +1 -0
  121. package/dist/messages/logging.js +1 -0
  122. package/dist/messages/result.d.ts +12 -0
  123. package/dist/messages/result.d.ts.map +1 -0
  124. package/dist/messages/result.js +1 -0
  125. package/dist/navigation/parseExternalUrl.d.ts.map +1 -0
  126. package/dist/navigation/types.d.ts +7 -0
  127. package/dist/navigation/types.d.ts.map +1 -0
  128. package/dist/navigation/types.js +1 -0
  129. package/dist/pages/types.d.ts +18 -0
  130. package/dist/pages/types.d.ts.map +1 -0
  131. package/dist/pages/types.js +1 -0
  132. package/dist/protocol/{messages/updatePage.d.ts → compatibility/protocol3To5/bridgePage.d.ts} +32 -22
  133. package/dist/protocol/compatibility/protocol3To5/bridgePage.js +21 -0
  134. package/dist/protocol/{dataSources → compatibility/protocol3To5}/dataSourcePage.js +1 -1
  135. package/dist/protocol/{dataSources → compatibility/protocol3To5}/dataSourceValue.js +2 -2
  136. package/dist/protocol/context/containingPage.d.ts +31 -0
  137. package/dist/protocol/context/containingPage.js +18 -0
  138. package/dist/protocol/{messages → context/messages}/pageChanged.js +1 -1
  139. package/dist/protocol/{parent.d.ts → context/parent.d.ts} +11 -1
  140. package/dist/protocol/context/parent.js +31 -0
  141. package/dist/protocol/dataSources/bridgeDataSourceBinding.d.ts +164 -0
  142. package/dist/protocol/dataSources/bridgeDataSourceBinding.js +25 -0
  143. package/dist/protocol/dataSources/bridgeDataSourceBindings.d.ts +148 -0
  144. package/dist/protocol/dataSources/bridgeDataSourceBindings.js +3 -0
  145. package/dist/protocol/dataSources/collectionPointer.d.ts +7 -0
  146. package/dist/protocol/dataSources/collectionPointer.js +7 -0
  147. package/dist/protocol/dataSources/collectionSchema.d.ts +144 -0
  148. package/dist/protocol/dataSources/collectionSchema.js +12 -0
  149. package/dist/protocol/dataSources/errors.d.ts +2 -2
  150. package/dist/protocol/dataSources/filters/bridgeDataSourceFilter.d.ts +505 -0
  151. package/dist/protocol/dataSources/filters/bridgeDataSourceFilter.js +8 -0
  152. package/dist/protocol/dataSources/filters/bridgeDataSourceFilterCondition.d.ts +253 -0
  153. package/dist/protocol/dataSources/filters/bridgeDataSourceFilterCondition.js +69 -0
  154. package/dist/protocol/dataSources/filters/bridgeDataSourceSort.d.ts +11 -0
  155. package/dist/protocol/dataSources/filters/bridgeDataSourceSort.js +8 -0
  156. package/dist/protocol/dataSources/filters/checkboxFilterOperator.d.ts +7 -0
  157. package/dist/protocol/dataSources/filters/checkboxFilterOperator.js +5 -0
  158. package/dist/protocol/dataSources/filters/containsFilterOperator.d.ts +13 -0
  159. package/dist/protocol/dataSources/filters/containsFilterOperator.js +9 -0
  160. package/dist/protocol/dataSources/filters/createdByFilterOperator.d.ts +17 -0
  161. package/dist/protocol/dataSources/filters/createdByFilterOperator.js +11 -0
  162. package/dist/protocol/dataSources/filters/dateFilterOperator.d.ts +47 -0
  163. package/dist/protocol/dataSources/filters/dateFilterOperator.js +73 -0
  164. package/dist/protocol/dataSources/filters/emptyOperator.d.ts +6 -0
  165. package/dist/protocol/dataSources/filters/emptyOperator.js +5 -0
  166. package/dist/protocol/dataSources/filters/numberFilterOperator.d.ts +19 -0
  167. package/dist/protocol/dataSources/filters/numberFilterOperator.js +11 -0
  168. package/dist/protocol/dataSources/filters/optionFilterOperator.d.ts +11 -0
  169. package/dist/protocol/dataSources/filters/optionFilterOperator.js +8 -0
  170. package/dist/protocol/dataSources/filters/peopleFilterOperator.d.ts +23 -0
  171. package/dist/protocol/dataSources/filters/peopleFilterOperator.js +11 -0
  172. package/dist/protocol/dataSources/filters/relationFilterOperator.d.ts +11 -0
  173. package/dist/protocol/dataSources/filters/relationFilterOperator.js +12 -0
  174. package/dist/protocol/dataSources/filters/statusFilterOperator.d.ts +15 -0
  175. package/dist/protocol/dataSources/filters/statusFilterOperator.js +7 -0
  176. package/dist/protocol/dataSources/filters/statusGroupFilterOperator.d.ts +9 -0
  177. package/dist/protocol/dataSources/filters/statusGroupFilterOperator.js +18 -0
  178. package/dist/protocol/dataSources/filters/stringOrStringArray.d.ts +2 -0
  179. package/dist/protocol/dataSources/filters/stringOrStringArray.js +5 -0
  180. package/dist/protocol/dataSources/filters/textFilterOperator.d.ts +19 -0
  181. package/dist/protocol/dataSources/filters/textFilterOperator.js +11 -0
  182. package/dist/protocol/dataSources/makeBridgeDataSourceBinding.d.ts +6 -0
  183. package/dist/protocol/dataSources/makeBridgeDataSourceBinding.js +6 -0
  184. package/dist/protocol/{messages → dataSources/messages}/dataSourcesChanged.d.ts +1 -0
  185. package/dist/protocol/{messages → dataSources/messages}/dataSourcesChanged.js +2 -2
  186. package/dist/protocol/{messages/queryDataSourceResult.d.ts → dataSources/messages/queryDataSource.d.ts} +525 -2
  187. package/dist/protocol/{messages/queryDataSourceResult.js → dataSources/messages/queryDataSource.js} +22 -2
  188. package/dist/protocol/dataSources/notionDataSource.d.ts +309 -0
  189. package/dist/protocol/dataSources/notionDataSource.js +38 -0
  190. package/dist/protocol/dataSources/resolveDataSourceBinding.d.ts +32 -0
  191. package/dist/protocol/dataSources/resolveDataSourceBinding.js +33 -0
  192. package/dist/protocol/{messages → handshake}/connect.d.ts +4 -0
  193. package/dist/protocol/{messages → handshake}/connect.js +2 -2
  194. package/dist/protocol/{messages → handshake}/init.d.ts +6 -1
  195. package/dist/protocol/{messages → handshake}/init.js +10 -10
  196. package/dist/protocol/{messages → handshake}/initResult.d.ts +1 -1
  197. package/dist/protocol/{messages → handshake}/isInitHandshakeMessage.d.ts +2 -2
  198. package/dist/protocol/index.d.ts +150 -54
  199. package/dist/protocol/index.js +73 -54
  200. package/dist/protocol/manifest/capabilities.d.ts +37 -0
  201. package/dist/protocol/manifest/capabilities.js +13 -0
  202. package/dist/protocol/{manifest.d.ts → manifest/manifest.d.ts} +12 -2
  203. package/dist/protocol/{manifest.js → manifest/manifest.js} +8 -1
  204. package/dist/protocol/messages/hostToSandbox.d.ts +12 -0
  205. package/dist/protocol/messages/hostToSandbox.js +15 -15
  206. package/dist/protocol/messages/messagePayload.d.ts +1 -1
  207. package/dist/protocol/messages/sandboxToHost.d.ts +232 -8
  208. package/dist/protocol/messages/sandboxToHost.js +12 -12
  209. package/dist/protocol/{messages → navigation}/openExternalUrl.d.ts +1 -1
  210. package/dist/protocol/{messages/createPage.d.ts → pages/bridgePage.d.ts} +67 -65
  211. package/dist/protocol/pages/bridgePage.js +25 -0
  212. package/dist/protocol/pages/makeBridgePage.d.ts +6 -0
  213. package/dist/protocol/pages/makeBridgePage.js +12 -0
  214. package/dist/protocol/{messages/createPageResult.d.ts → pages/messages/createPage.d.ts} +500 -2
  215. package/dist/protocol/pages/messages/createPage.js +104 -0
  216. package/dist/protocol/{messages → pages/messages}/getPage.d.ts +2 -2
  217. package/dist/protocol/{messages → pages/messages}/getPage.js +4 -3
  218. package/dist/protocol/{messages → pages/messages}/openPage.d.ts +2 -2
  219. package/dist/protocol/{messages → pages/messages}/openPage.js +1 -1
  220. package/dist/protocol/{messages/updatePageResult.d.ts → pages/messages/updatePage.d.ts} +272 -2
  221. package/dist/protocol/{messages/updatePageResult.js → pages/messages/updatePage.js} +26 -2
  222. package/dist/protocol/pages/pageAppearance.d.ts +62 -0
  223. package/dist/protocol/pages/pageAppearance.js +34 -0
  224. package/dist/protocol/pages/properties/bridgePagePropertyMaps.d.ts +433 -0
  225. package/dist/protocol/pages/properties/bridgePagePropertyMaps.js +4 -0
  226. package/dist/protocol/pages/properties/bridgePagePropertyValue.d.ts +217 -0
  227. package/dist/protocol/pages/properties/bridgePagePropertyValue.js +144 -0
  228. package/dist/protocol/pages/properties/dateInput.d.ts +45 -0
  229. package/dist/protocol/pages/properties/dateInput.js +23 -0
  230. package/dist/protocol/pages/properties/fileInput.d.ts +16 -0
  231. package/dist/protocol/pages/properties/fileInput.js +16 -0
  232. package/dist/protocol/pages/properties/metadataActor.d.ts +6 -0
  233. package/dist/protocol/pages/properties/metadataActor.js +7 -0
  234. package/dist/protocol/pages/properties/placeInput.d.ts +10 -0
  235. package/dist/protocol/pages/properties/placeInput.js +10 -0
  236. package/dist/protocol/pages/properties/relationInput.d.ts +5 -0
  237. package/dist/protocol/pages/properties/relationInput.js +2 -0
  238. package/dist/protocol/pages/properties/richText.d.ts +3 -0
  239. package/dist/protocol/pages/properties/richText.js +2 -0
  240. package/dist/protocol/pages/properties/selectOption.d.ts +13 -0
  241. package/dist/protocol/pages/properties/selectOption.js +16 -0
  242. package/dist/protocol/pages/properties/userInput.d.ts +10 -0
  243. package/dist/protocol/pages/properties/userInput.js +13 -0
  244. package/dist/protocol/users/bridgeUser.d.ts +12 -0
  245. package/dist/protocol/users/bridgeUser.js +12 -0
  246. package/dist/protocol/users/{user.d.ts → bridgeUserList.d.ts} +2 -15
  247. package/dist/protocol/users/bridgeUserList.js +10 -0
  248. package/dist/protocol/users/makeBridgeUser.d.ts +6 -0
  249. package/dist/protocol/users/makeBridgeUser.js +11 -0
  250. package/dist/protocol/{messages → users/messages}/currentUserChanged.js +2 -2
  251. package/dist/protocol/{messages → users/messages}/getUser.d.ts +2 -2
  252. package/dist/protocol/{messages → users/messages}/getUser.js +3 -2
  253. package/dist/protocol/{messages → users/messages}/listUsers.d.ts +2 -2
  254. package/dist/protocol/{messages → users/messages}/listUsers.js +2 -2
  255. package/dist/protocol/users/userId.d.ts +3 -0
  256. package/dist/protocol/users/userId.js +2 -0
  257. package/dist/protocol/{errors.d.ts → utils/errors.d.ts} +6 -0
  258. package/dist/protocol/utils/errors.js +11 -0
  259. package/dist/protocol/utils/nullableStringSchema.d.ts +2 -0
  260. package/dist/protocol/utils/nullableStringSchema.js +2 -0
  261. package/dist/users/types.d.ts +15 -0
  262. package/dist/users/types.d.ts.map +1 -0
  263. package/dist/users/types.js +1 -0
  264. package/dist/utils/maybePromise.d.ts +2 -0
  265. package/dist/utils/maybePromise.d.ts.map +1 -0
  266. package/dist/utils/maybePromise.js +1 -0
  267. package/dist/utils/protocolVersion.d.ts.map +1 -0
  268. package/dist/utils/toNotionPageId.d.ts +3 -0
  269. package/dist/utils/toNotionPageId.d.ts.map +1 -0
  270. package/dist/{ids.js → utils/toNotionPageId.js} +1 -1
  271. package/dist/{utils.d.ts → utils/unreachable.d.ts} +1 -1
  272. package/dist/utils/unreachable.d.ts.map +1 -0
  273. package/docs/bridge/protocol.md +16 -1
  274. package/docs/bridge/versioning.md +2 -2
  275. package/docs/handlers.md +16 -8
  276. package/docs/lifecycle.md +14 -0
  277. package/package.json +1 -1
  278. package/src/compatibility/normalizeHostToSandboxMessage.ts +4 -4
  279. package/src/compatibility/{pageWithNullTextFallbackProperties.ts → pages/toPageWithNullTextFallbackProperties.ts} +2 -2
  280. package/src/compatibility/{addMetadataReadSchemasForProtocol3To4.ts → protocol3To4/addMetadataReadSchemasForProtocol3To4.ts} +1 -1
  281. package/src/compatibility/{normalizePageResultsForProtocol3To5.ts → protocol3To5/normalizePageResultsForProtocol3To5.ts} +4 -6
  282. package/src/compatibility/protocol3To5/toDateTimeValueForProtocol3To5.ts +25 -0
  283. package/src/compatibility/protocol3To5/toPageForProtocol3To5.ts +29 -0
  284. package/src/compatibility/protocol3To5/toPropertyValueForProtocol3To5.ts +102 -0
  285. package/src/compatibility/protocol3To5/toQueryPageForProtocol3To5.ts +35 -0
  286. package/src/compatibility/{normalizePageResultsForProtocol6.ts → protocol6/normalizePageResultsForProtocol6.ts} +2 -2
  287. package/src/context/initialState.ts +56 -0
  288. package/src/context/resize.ts +4 -0
  289. package/src/createCustomBlockHost.ts +108 -88
  290. package/src/{autoBindProperties.ts → dataSources/bindings/getAutoBoundPropertyIdsByKey.ts} +1 -1
  291. package/src/{dateValue.ts → dataSources/properties/toNotionDateValue.ts} +2 -2
  292. package/src/{queries → dataSources/queries}/querySubscriptions.ts +2 -2
  293. package/src/dataSources/types.ts +23 -0
  294. package/src/{queries → dataSources/validation}/validateQueryDataSourceFilter.ts +11 -13
  295. package/src/{queries → dataSources/validation}/validateQueryDataSourceSorts.ts +6 -8
  296. package/src/index.ts +39 -30
  297. package/src/lifecycle/{initializationController.ts → createInitializationController.ts} +15 -20
  298. package/src/lifecycle/errors/contextUnavailableError.ts +10 -0
  299. package/src/lifecycle/errors/initialStateTimeoutError.ts +10 -0
  300. package/src/lifecycle/errors/invalidConnectPayloadError.ts +10 -0
  301. package/src/lifecycle/errors/invalidInitResultPayloadError.ts +10 -0
  302. package/src/lifecycle/errors/invalidLocalPreviewUrlError.ts +10 -0
  303. package/src/lifecycle/errors/invalidPropertyBindingError.ts +11 -0
  304. package/src/lifecycle/errors/invalidProtocolVersionError.ts +13 -0
  305. package/src/lifecycle/errors/missingDataSourceBindingError.ts +10 -0
  306. package/src/lifecycle/errors/missingPropertyBindingError.ts +10 -0
  307. package/src/lifecycle/errors/noConnectError.ts +15 -0
  308. package/src/lifecycle/errors/noInitResultError.ts +10 -0
  309. package/src/lifecycle/errors/unknownInitializationError.ts +10 -0
  310. package/src/lifecycle/errors/unsupportedProtocolVersionError.ts +14 -0
  311. package/src/{isAllowedLocalPreviewUrl.ts → lifecycle/isAllowedLocalPreviewUrl.ts} +1 -1
  312. package/src/lifecycle/types.ts +17 -103
  313. package/src/{lifecycle → manifest}/resolveManifest.ts +2 -2
  314. package/src/manifest/types.ts +28 -0
  315. package/src/messages/{sandboxMessageRouter.ts → createSandboxMessageRouter.ts} +19 -21
  316. package/src/messages/handlers.ts +46 -0
  317. package/src/messages/logging.ts +1 -0
  318. package/src/messages/result.ts +11 -0
  319. package/src/navigation/types.ts +10 -0
  320. package/src/pages/types.ts +22 -0
  321. package/src/users/types.ts +17 -0
  322. package/src/utils/maybePromise.ts +1 -0
  323. package/src/utils/toNotionPageId.ts +7 -0
  324. package/dist/autoBindProperties.d.ts.map +0 -1
  325. package/dist/compatibility/normalizePageResultsForProtocol3To5.d.ts.map +0 -1
  326. package/dist/compatibility/normalizePageResultsForProtocol6.d.ts.map +0 -1
  327. package/dist/compatibility/pageForProtocol3To5.d.ts.map +0 -1
  328. package/dist/compatibility/pageResult.d.ts.map +0 -1
  329. package/dist/compatibility/pageWithNullTextFallbackProperties.d.ts.map +0 -1
  330. package/dist/dateValue.d.ts.map +0 -1
  331. package/dist/ids.d.ts +0 -3
  332. package/dist/ids.d.ts.map +0 -1
  333. package/dist/isAllowedLocalPreviewUrl.d.ts.map +0 -1
  334. package/dist/lifecycle/initErrors.d.ts +0 -25
  335. package/dist/lifecycle/initErrors.d.ts.map +0 -1
  336. package/dist/lifecycle/initErrors.js +0 -111
  337. package/dist/lifecycle/initializationController.d.ts.map +0 -1
  338. package/dist/lifecycle/protocolVersion.d.ts.map +0 -1
  339. package/dist/lifecycle/resolveManifest.d.ts.map +0 -1
  340. package/dist/messages/invalidSandboxMessage.d.ts.map +0 -1
  341. package/dist/messages/parseExternalUrl.d.ts.map +0 -1
  342. package/dist/messages/sandboxMessageRouter.d.ts.map +0 -1
  343. package/dist/messages/types.d.ts +0 -65
  344. package/dist/messages/types.d.ts.map +0 -1
  345. package/dist/protocol/dataSources/dataSource.d.ts +0 -786
  346. package/dist/protocol/dataSources/dataSource.js +0 -66
  347. package/dist/protocol/errors.js +0 -6
  348. package/dist/protocol/messages/createPage.js +0 -51
  349. package/dist/protocol/messages/createPageResult.js +0 -43
  350. package/dist/protocol/messages/queryDataSource.d.ts +0 -1470
  351. package/dist/protocol/messages/queryDataSource.js +0 -254
  352. package/dist/protocol/messages/updatePage.js +0 -23
  353. package/dist/protocol/pages/page.d.ts +0 -1422
  354. package/dist/protocol/pages/page.js +0 -318
  355. package/dist/protocol/parent.js +0 -13
  356. package/dist/protocol/users/user.js +0 -20
  357. package/dist/protocolVersion.d.ts.map +0 -1
  358. package/dist/queries/querySubscriptions.d.ts.map +0 -1
  359. package/dist/queries/types.d.ts +0 -5
  360. package/dist/queries/types.d.ts.map +0 -1
  361. package/dist/queries/validateQueryDataSourceFilter.d.ts +0 -5
  362. package/dist/queries/validateQueryDataSourceFilter.d.ts.map +0 -1
  363. package/dist/queries/validateQueryDataSourceSorts.d.ts +0 -8
  364. package/dist/queries/validateQueryDataSourceSorts.d.ts.map +0 -1
  365. package/dist/utils.d.ts.map +0 -1
  366. package/src/compatibility/pageForProtocol3To5.ts +0 -190
  367. package/src/ids.ts +0 -9
  368. package/src/lifecycle/initErrors.ts +0 -131
  369. package/src/messages/types.ts +0 -171
  370. package/src/queries/types.ts +0 -11
  371. /package/dist/compatibility/{pageResult.js → pages/pageResult.js} +0 -0
  372. /package/dist/{messages/types.js → context/resize.js} +0 -0
  373. /package/dist/{autoBindProperties.js → dataSources/bindings/getAutoBoundPropertyIdsByKey.js} +0 -0
  374. /package/dist/{dateValue.js → dataSources/properties/toNotionDateValue.js} +0 -0
  375. /package/dist/{queries → dataSources/queries}/querySubscriptions.js +0 -0
  376. /package/dist/{queries → dataSources}/types.js +0 -0
  377. /package/dist/{isAllowedLocalPreviewUrl.d.ts → lifecycle/isAllowedLocalPreviewUrl.d.ts} +0 -0
  378. /package/dist/lifecycle/{protocolVersion.js → isValidBridgeProtocolVersion.js} +0 -0
  379. /package/dist/{lifecycle → manifest}/resolveManifest.js +0 -0
  380. /package/dist/messages/{invalidSandboxMessage.js → getInvalidSandboxMessageResponse.js} +0 -0
  381. /package/dist/{messages → navigation}/parseExternalUrl.d.ts +0 -0
  382. /package/dist/{messages → navigation}/parseExternalUrl.js +0 -0
  383. /package/dist/protocol/{dataSources → compatibility/protocol3To5}/dataSourcePage.d.ts +0 -0
  384. /package/dist/protocol/{dataSources → compatibility/protocol3To5}/dataSourceValue.d.ts +0 -0
  385. /package/dist/protocol/{contrast.d.ts → context/contrast.d.ts} +0 -0
  386. /package/dist/protocol/{contrast.js → context/contrast.js} +0 -0
  387. /package/dist/protocol/{messages → context/messages}/contrastModeChanged.d.ts +0 -0
  388. /package/dist/protocol/{messages → context/messages}/contrastModeChanged.js +0 -0
  389. /package/dist/protocol/{messages → context/messages}/pageChanged.d.ts +0 -0
  390. /package/dist/protocol/{messages → context/messages}/parentChanged.d.ts +0 -0
  391. /package/dist/protocol/{messages → context/messages}/parentChanged.js +0 -0
  392. /package/dist/protocol/{messages → context/messages}/resize.d.ts +0 -0
  393. /package/dist/protocol/{messages → context/messages}/resize.js +0 -0
  394. /package/dist/protocol/{messages → context/messages}/themeChanged.d.ts +0 -0
  395. /package/dist/protocol/{messages → context/messages}/themeChanged.js +0 -0
  396. /package/dist/protocol/{theme.d.ts → context/theme.d.ts} +0 -0
  397. /package/dist/protocol/{theme.js → context/theme.js} +0 -0
  398. /package/dist/protocol/{messages → dataSources/messages}/unsubscribeDataSourceQuery.d.ts +0 -0
  399. /package/dist/protocol/{messages → dataSources/messages}/unsubscribeDataSourceQuery.js +0 -0
  400. /package/dist/protocol/dataSources/{dateValue.d.ts → properties/dateValue.d.ts} +0 -0
  401. /package/dist/protocol/dataSources/{dateValue.js → properties/dateValue.js} +0 -0
  402. /package/dist/protocol/dataSources/{propertySchema.d.ts → properties/propertySchema.d.ts} +0 -0
  403. /package/dist/protocol/dataSources/{propertySchema.js → properties/propertySchema.js} +0 -0
  404. /package/dist/protocol/{messages → handshake}/initResult.js +0 -0
  405. /package/dist/protocol/{messages → handshake}/isInitHandshakeMessage.js +0 -0
  406. /package/dist/protocol/{messages → navigation}/openExternalUrl.js +0 -0
  407. /package/dist/protocol/{messages → users/messages}/currentUserChanged.d.ts +0 -0
  408. /package/dist/protocol/{ids.d.ts → utils/ids.d.ts} +0 -0
  409. /package/dist/protocol/{ids.js → utils/ids.js} +0 -0
  410. /package/dist/protocol/{isLocalBlockServerUrl.d.ts → utils/isLocalBlockServerUrl.d.ts} +0 -0
  411. /package/dist/protocol/{isLocalBlockServerUrl.js → utils/isLocalBlockServerUrl.js} +0 -0
  412. /package/dist/protocol/{protocolVersion.d.ts → utils/protocolVersion.d.ts} +0 -0
  413. /package/dist/protocol/{protocolVersion.js → utils/protocolVersion.js} +0 -0
  414. /package/dist/protocol/{dataSources → utils}/recordPointer.d.ts +0 -0
  415. /package/dist/protocol/{dataSources → utils}/recordPointer.js +0 -0
  416. /package/dist/{protocolVersion.d.ts → utils/protocolVersion.d.ts} +0 -0
  417. /package/dist/{protocolVersion.js → utils/protocolVersion.js} +0 -0
  418. /package/dist/{utils.js → utils/unreachable.js} +0 -0
  419. /package/src/compatibility/{pageResult.ts → pages/pageResult.ts} +0 -0
  420. /package/src/lifecycle/{protocolVersion.ts → isValidBridgeProtocolVersion.ts} +0 -0
  421. /package/src/messages/{invalidSandboxMessage.ts → getInvalidSandboxMessageResponse.ts} +0 -0
  422. /package/src/{messages → navigation}/parseExternalUrl.ts +0 -0
  423. /package/src/{protocolVersion.ts → utils/protocolVersion.ts} +0 -0
  424. /package/src/{utils.ts → utils/unreachable.ts} +0 -0
@@ -0,0 +1,1801 @@
1
+ import type { BridgeCustomBlockManifest } from "../protocol/manifest/manifest.js";
2
+ import * as v from "valibot";
3
+ import type { CustomBlockHostResult } from "../messages/result.js";
4
+ export declare const customBlockHostInitialStateSchema: v.ObjectSchema<{
5
+ readonly theme: v.PicklistSchema<["light", "dark"], undefined>;
6
+ /**
7
+ * Defaults to standard for existing host integrations.
8
+ * TODO(custom-blocks): Make this required when MIN_HOST_SUPPORTED_BRIDGE_PROTOCOL_VERSION increases to 4.
9
+ */
10
+ readonly contrastMode: v.OptionalSchema<v.PicklistSchema<["standard", "high"], undefined>, undefined>;
11
+ readonly blockId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
12
+ readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
13
+ readonly type: v.LiteralSchema<"page_id", undefined>;
14
+ readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
15
+ }, undefined>, v.ObjectSchema<{
16
+ readonly type: v.LiteralSchema<"data_source_id", undefined>;
17
+ readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
18
+ }, undefined>, v.ObjectSchema<{
19
+ readonly type: v.LiteralSchema<"workspace", undefined>;
20
+ readonly workspace: v.LiteralSchema<true, undefined>;
21
+ }, undefined>, v.ObjectSchema<{
22
+ readonly type: v.LiteralSchema<"block_id", undefined>;
23
+ readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
24
+ }, undefined>, v.ObjectSchema<{
25
+ readonly type: v.LiteralSchema<"agent_id", undefined>;
26
+ readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
27
+ }, undefined>, v.ObjectSchema<{
28
+ readonly type: v.LiteralSchema<"unavailable", undefined>;
29
+ }, undefined>], undefined>;
30
+ readonly page: v.VariantSchema<"type", [v.ObjectSchema<{
31
+ readonly type: v.LiteralSchema<"unavailable", undefined>;
32
+ }, undefined>, v.ObjectSchema<{
33
+ readonly type: v.LiteralSchema<"page", undefined>;
34
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
35
+ readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
36
+ readonly type: v.LiteralSchema<"page_id", undefined>;
37
+ readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
38
+ }, undefined>, v.ObjectSchema<{
39
+ readonly type: v.LiteralSchema<"data_source_id", undefined>;
40
+ readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
41
+ }, undefined>, v.ObjectSchema<{
42
+ readonly type: v.LiteralSchema<"workspace", undefined>;
43
+ readonly workspace: v.LiteralSchema<true, undefined>;
44
+ }, undefined>, v.ObjectSchema<{
45
+ readonly type: v.LiteralSchema<"block_id", undefined>;
46
+ readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
47
+ }, undefined>, v.ObjectSchema<{
48
+ readonly type: v.LiteralSchema<"agent_id", undefined>;
49
+ readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
50
+ }, undefined>, v.ObjectSchema<{
51
+ readonly type: v.LiteralSchema<"unavailable", undefined>;
52
+ }, undefined>], undefined>;
53
+ }, undefined>], undefined>;
54
+ readonly manifest: v.ObjectSchema<{
55
+ readonly version: v.LiteralSchema<1, undefined>;
56
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
57
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
58
+ readonly slashCommand: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
59
+ readonly icon: v.OptionalSchema<v.ObjectSchema<{
60
+ readonly type: v.LiteralSchema<"emoji", undefined>;
61
+ readonly emoji: v.StringSchema<undefined>;
62
+ }, undefined>, undefined>;
63
+ readonly dataSources: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
64
+ readonly name: v.StringSchema<undefined>;
65
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
66
+ readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
67
+ readonly type: v.LiteralSchema<"emoji", undefined>;
68
+ readonly emoji: v.StringSchema<undefined>;
69
+ }, undefined>, v.ObjectSchema<{
70
+ readonly type: v.LiteralSchema<"external", undefined>;
71
+ readonly url: v.StringSchema<undefined>;
72
+ }, undefined>], undefined>, undefined>;
73
+ readonly properties: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
74
+ readonly name: v.StringSchema<undefined>;
75
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
76
+ readonly type: v.PicklistSchema<readonly ["title", "rich_text", "number", "checkbox", "url", "email", "phone_number", "select", "multi_select", "status", "date", "people", "files", "unique_id", "relation", "place", "formula", "rollup", "button", "verification", "last_visited_time", "location", "created_time", "last_edited_time", "created_by", "last_edited_by"], undefined>;
77
+ }, undefined>, undefined>, {}>;
78
+ }, undefined>, undefined>, {}>;
79
+ readonly capabilities: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
80
+ readonly capability: v.StringSchema<undefined>;
81
+ readonly resource: v.StringSchema<undefined>;
82
+ }, undefined>, undefined>, undefined>;
83
+ }, undefined>;
84
+ readonly dataSources: v.ObjectSchema<{
85
+ readonly bindings: v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
86
+ readonly collectionPointer: v.OptionalSchema<v.ObjectSchema<{
87
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
88
+ readonly table: v.StringSchema<undefined>;
89
+ readonly spaceId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionSpaceId">]>, undefined>;
90
+ }, undefined>, undefined>;
91
+ readonly collectionSchema: v.OptionalSchema<v.ObjectSchema<{
92
+ readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>, undefined>;
93
+ readonly propertiesById: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
94
+ readonly name: v.StringSchema<undefined>;
95
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
96
+ readonly type: v.LiteralSchema<"title", undefined>;
97
+ }, undefined>, v.ObjectSchema<{
98
+ readonly name: v.StringSchema<undefined>;
99
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
100
+ readonly type: v.LiteralSchema<"rich_text", undefined>;
101
+ }, undefined>, v.ObjectSchema<{
102
+ readonly name: v.StringSchema<undefined>;
103
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
104
+ readonly type: v.LiteralSchema<"number", undefined>;
105
+ }, undefined>, v.ObjectSchema<{
106
+ readonly name: v.StringSchema<undefined>;
107
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
108
+ readonly type: v.LiteralSchema<"checkbox", undefined>;
109
+ }, undefined>, v.ObjectSchema<{
110
+ readonly name: v.StringSchema<undefined>;
111
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
112
+ readonly type: v.LiteralSchema<"url", undefined>;
113
+ }, undefined>, v.ObjectSchema<{
114
+ readonly name: v.StringSchema<undefined>;
115
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
116
+ readonly type: v.LiteralSchema<"email", undefined>;
117
+ }, undefined>, v.ObjectSchema<{
118
+ readonly name: v.StringSchema<undefined>;
119
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
120
+ readonly type: v.LiteralSchema<"phone_number", undefined>;
121
+ }, undefined>, v.ObjectSchema<{
122
+ readonly name: v.StringSchema<undefined>;
123
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
124
+ readonly type: v.LiteralSchema<"select", undefined>;
125
+ readonly options: v.ArraySchema<v.ObjectSchema<{
126
+ readonly id: v.StringSchema<undefined>;
127
+ readonly name: v.StringSchema<undefined>;
128
+ readonly color: v.OptionalSchema<v.PicklistSchema<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red", "gray_background", "brown_background", "orange_background", "yellow_background", "green_background", "blue_background", "purple_background", "pink_background", "red_background", "default_background"], undefined>, undefined>;
129
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
130
+ }, undefined>, undefined>;
131
+ }, undefined>, v.ObjectSchema<{
132
+ readonly name: v.StringSchema<undefined>;
133
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
134
+ readonly type: v.LiteralSchema<"multi_select", undefined>;
135
+ readonly options: v.ArraySchema<v.ObjectSchema<{
136
+ readonly id: v.StringSchema<undefined>;
137
+ readonly name: v.StringSchema<undefined>;
138
+ readonly color: v.OptionalSchema<v.PicklistSchema<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red", "gray_background", "brown_background", "orange_background", "yellow_background", "green_background", "blue_background", "purple_background", "pink_background", "red_background", "default_background"], undefined>, undefined>;
139
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
140
+ }, undefined>, undefined>;
141
+ }, undefined>, v.ObjectSchema<{
142
+ readonly name: v.StringSchema<undefined>;
143
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
144
+ readonly type: v.LiteralSchema<"status", undefined>;
145
+ readonly options: v.ArraySchema<v.ObjectSchema<{
146
+ readonly id: v.StringSchema<undefined>;
147
+ readonly name: v.StringSchema<undefined>;
148
+ readonly color: v.OptionalSchema<v.PicklistSchema<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red", "gray_background", "brown_background", "orange_background", "yellow_background", "green_background", "blue_background", "purple_background", "pink_background", "red_background", "default_background"], undefined>, undefined>;
149
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
150
+ }, undefined>, undefined>;
151
+ readonly groups: v.ArraySchema<v.ObjectSchema<{
152
+ readonly id: v.StringSchema<undefined>;
153
+ readonly name: v.StringSchema<undefined>;
154
+ readonly color: v.OptionalSchema<v.PicklistSchema<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red", "gray_background", "brown_background", "orange_background", "yellow_background", "green_background", "blue_background", "purple_background", "pink_background", "red_background", "default_background"], undefined>, undefined>;
155
+ readonly option_ids: v.ArraySchema<v.StringSchema<undefined>, undefined>;
156
+ }, undefined>, undefined>;
157
+ }, undefined>, v.ObjectSchema<{
158
+ readonly name: v.StringSchema<undefined>;
159
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
160
+ readonly type: v.LiteralSchema<"date", undefined>;
161
+ }, undefined>, v.ObjectSchema<{
162
+ readonly name: v.StringSchema<undefined>;
163
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
164
+ readonly type: v.LiteralSchema<"people", undefined>;
165
+ }, undefined>, v.ObjectSchema<{
166
+ readonly name: v.StringSchema<undefined>;
167
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
168
+ readonly type: v.LiteralSchema<"files", undefined>;
169
+ }, undefined>, v.ObjectSchema<{
170
+ readonly name: v.StringSchema<undefined>;
171
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
172
+ readonly type: v.LiteralSchema<"unique_id", undefined>;
173
+ }, undefined>, v.ObjectSchema<{
174
+ readonly name: v.StringSchema<undefined>;
175
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
176
+ readonly type: v.LiteralSchema<"relation", undefined>;
177
+ readonly data_source_id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
178
+ readonly dual_property: v.OptionalSchema<v.ObjectSchema<{
179
+ readonly synced_property_id: v.StringSchema<undefined>;
180
+ readonly synced_property_name: v.StringSchema<undefined>;
181
+ }, undefined>, undefined>;
182
+ }, undefined>, v.ObjectSchema<{
183
+ readonly name: v.StringSchema<undefined>;
184
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
185
+ readonly type: v.LiteralSchema<"place", undefined>;
186
+ }, undefined>, v.ObjectSchema<{
187
+ readonly name: v.StringSchema<undefined>;
188
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
189
+ readonly type: v.LiteralSchema<"formula", undefined>;
190
+ }, undefined>, v.ObjectSchema<{
191
+ readonly name: v.StringSchema<undefined>;
192
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
193
+ readonly type: v.LiteralSchema<"rollup", undefined>;
194
+ }, undefined>, v.ObjectSchema<{
195
+ readonly name: v.StringSchema<undefined>;
196
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
197
+ readonly type: v.LiteralSchema<"button", undefined>;
198
+ }, undefined>, v.ObjectSchema<{
199
+ readonly name: v.StringSchema<undefined>;
200
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
201
+ readonly type: v.LiteralSchema<"verification", undefined>;
202
+ }, undefined>, v.ObjectSchema<{
203
+ readonly name: v.StringSchema<undefined>;
204
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
205
+ readonly type: v.LiteralSchema<"last_visited_time", undefined>;
206
+ }, undefined>, v.ObjectSchema<{
207
+ readonly name: v.StringSchema<undefined>;
208
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
209
+ readonly type: v.LiteralSchema<"location", undefined>;
210
+ }, undefined>, v.ObjectSchema<{
211
+ readonly name: v.StringSchema<undefined>;
212
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
213
+ readonly type: v.LiteralSchema<"created_time", undefined>;
214
+ }, undefined>, v.ObjectSchema<{
215
+ readonly name: v.StringSchema<undefined>;
216
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
217
+ readonly type: v.LiteralSchema<"last_edited_time", undefined>;
218
+ }, undefined>, v.ObjectSchema<{
219
+ readonly name: v.StringSchema<undefined>;
220
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
221
+ readonly type: v.LiteralSchema<"created_by", undefined>;
222
+ }, undefined>, v.ObjectSchema<{
223
+ readonly name: v.StringSchema<undefined>;
224
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
225
+ readonly type: v.LiteralSchema<"last_edited_by", undefined>;
226
+ }, undefined>], undefined>, undefined>;
227
+ }, undefined>, undefined>;
228
+ readonly propertyIdsByKey: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
229
+ readonly inaccessible: v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>;
230
+ }, undefined>, undefined>;
231
+ }, undefined>;
232
+ readonly currentUser: v.ObjectSchema<{
233
+ readonly object: v.LiteralSchema<"user", undefined>;
234
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionUserId">]>;
235
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
236
+ readonly avatar_url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
237
+ readonly type: v.LiteralSchema<"person", undefined>;
238
+ readonly person: v.ObjectSchema<{
239
+ readonly email: v.StringSchema<undefined>;
240
+ }, undefined>;
241
+ }, undefined>;
242
+ }, undefined>;
243
+ export type CustomBlockHostInitialState = v.InferInput<typeof customBlockHostInitialStateSchema>;
244
+ export type CustomBlockHostInitialStateResult = CustomBlockHostResult<{
245
+ initialState: CustomBlockHostInitialState;
246
+ }>;
247
+ export declare const customBlockHostPreparedStateResultSchema: v.VariantSchema<"status", [v.ObjectSchema<{
248
+ readonly status: v.LiteralSchema<"success", undefined>;
249
+ readonly initialState: Omit<v.ObjectSchema<{
250
+ readonly theme: v.PicklistSchema<["light", "dark"], undefined>;
251
+ /**
252
+ * Defaults to standard for existing host integrations.
253
+ * TODO(custom-blocks): Make this required when MIN_HOST_SUPPORTED_BRIDGE_PROTOCOL_VERSION increases to 4.
254
+ */
255
+ readonly contrastMode: v.OptionalSchema<v.PicklistSchema<["standard", "high"], undefined>, undefined>;
256
+ readonly blockId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
257
+ readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
258
+ readonly type: v.LiteralSchema<"page_id", undefined>;
259
+ readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
260
+ }, undefined>, v.ObjectSchema<{
261
+ readonly type: v.LiteralSchema<"data_source_id", undefined>;
262
+ readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
263
+ }, undefined>, v.ObjectSchema<{
264
+ readonly type: v.LiteralSchema<"workspace", undefined>;
265
+ readonly workspace: v.LiteralSchema<true, undefined>;
266
+ }, undefined>, v.ObjectSchema<{
267
+ readonly type: v.LiteralSchema<"block_id", undefined>;
268
+ readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
269
+ }, undefined>, v.ObjectSchema<{
270
+ readonly type: v.LiteralSchema<"agent_id", undefined>;
271
+ readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
272
+ }, undefined>, v.ObjectSchema<{
273
+ readonly type: v.LiteralSchema<"unavailable", undefined>;
274
+ }, undefined>], undefined>;
275
+ readonly page: v.VariantSchema<"type", [v.ObjectSchema<{
276
+ readonly type: v.LiteralSchema<"unavailable", undefined>;
277
+ }, undefined>, v.ObjectSchema<{
278
+ readonly type: v.LiteralSchema<"page", undefined>;
279
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
280
+ readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
281
+ readonly type: v.LiteralSchema<"page_id", undefined>;
282
+ readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
283
+ }, undefined>, v.ObjectSchema<{
284
+ readonly type: v.LiteralSchema<"data_source_id", undefined>;
285
+ readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
286
+ }, undefined>, v.ObjectSchema<{
287
+ readonly type: v.LiteralSchema<"workspace", undefined>;
288
+ readonly workspace: v.LiteralSchema<true, undefined>;
289
+ }, undefined>, v.ObjectSchema<{
290
+ readonly type: v.LiteralSchema<"block_id", undefined>;
291
+ readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
292
+ }, undefined>, v.ObjectSchema<{
293
+ readonly type: v.LiteralSchema<"agent_id", undefined>;
294
+ readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
295
+ }, undefined>, v.ObjectSchema<{
296
+ readonly type: v.LiteralSchema<"unavailable", undefined>;
297
+ }, undefined>], undefined>;
298
+ }, undefined>], undefined>;
299
+ readonly manifest: v.ObjectSchema<{
300
+ readonly version: v.LiteralSchema<1, undefined>;
301
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
302
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
303
+ readonly slashCommand: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
304
+ readonly icon: v.OptionalSchema<v.ObjectSchema<{
305
+ readonly type: v.LiteralSchema<"emoji", undefined>;
306
+ readonly emoji: v.StringSchema<undefined>;
307
+ }, undefined>, undefined>;
308
+ readonly dataSources: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
309
+ readonly name: v.StringSchema<undefined>;
310
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
311
+ readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
312
+ readonly type: v.LiteralSchema<"emoji", undefined>;
313
+ readonly emoji: v.StringSchema<undefined>;
314
+ }, undefined>, v.ObjectSchema<{
315
+ readonly type: v.LiteralSchema<"external", undefined>;
316
+ readonly url: v.StringSchema<undefined>;
317
+ }, undefined>], undefined>, undefined>;
318
+ readonly properties: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
319
+ readonly name: v.StringSchema<undefined>;
320
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
321
+ readonly type: v.PicklistSchema<readonly ["title", "rich_text", "number", "checkbox", "url", "email", "phone_number", "select", "multi_select", "status", "date", "people", "files", "unique_id", "relation", "place", "formula", "rollup", "button", "verification", "last_visited_time", "location", "created_time", "last_edited_time", "created_by", "last_edited_by"], undefined>;
322
+ }, undefined>, undefined>, {}>;
323
+ }, undefined>, undefined>, {}>;
324
+ readonly capabilities: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
325
+ readonly capability: v.StringSchema<undefined>;
326
+ readonly resource: v.StringSchema<undefined>;
327
+ }, undefined>, undefined>, undefined>;
328
+ }, undefined>;
329
+ readonly dataSources: v.ObjectSchema<{
330
+ readonly bindings: v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
331
+ readonly collectionPointer: v.OptionalSchema<v.ObjectSchema<{
332
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
333
+ readonly table: v.StringSchema<undefined>;
334
+ readonly spaceId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionSpaceId">]>, undefined>;
335
+ }, undefined>, undefined>;
336
+ readonly collectionSchema: v.OptionalSchema<v.ObjectSchema<{
337
+ readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>, undefined>;
338
+ readonly propertiesById: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
339
+ readonly name: v.StringSchema<undefined>;
340
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
341
+ readonly type: v.LiteralSchema<"title", undefined>;
342
+ }, undefined>, v.ObjectSchema<{
343
+ readonly name: v.StringSchema<undefined>;
344
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
345
+ readonly type: v.LiteralSchema<"rich_text", undefined>;
346
+ }, undefined>, v.ObjectSchema<{
347
+ readonly name: v.StringSchema<undefined>;
348
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
349
+ readonly type: v.LiteralSchema<"number", undefined>;
350
+ }, undefined>, v.ObjectSchema<{
351
+ readonly name: v.StringSchema<undefined>;
352
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
353
+ readonly type: v.LiteralSchema<"checkbox", undefined>;
354
+ }, undefined>, v.ObjectSchema<{
355
+ readonly name: v.StringSchema<undefined>;
356
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
357
+ readonly type: v.LiteralSchema<"url", undefined>;
358
+ }, undefined>, v.ObjectSchema<{
359
+ readonly name: v.StringSchema<undefined>;
360
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
361
+ readonly type: v.LiteralSchema<"email", undefined>;
362
+ }, undefined>, v.ObjectSchema<{
363
+ readonly name: v.StringSchema<undefined>;
364
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
365
+ readonly type: v.LiteralSchema<"phone_number", undefined>;
366
+ }, undefined>, v.ObjectSchema<{
367
+ readonly name: v.StringSchema<undefined>;
368
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
369
+ readonly type: v.LiteralSchema<"select", undefined>;
370
+ readonly options: v.ArraySchema<v.ObjectSchema<{
371
+ readonly id: v.StringSchema<undefined>;
372
+ readonly name: v.StringSchema<undefined>;
373
+ readonly color: v.OptionalSchema<v.PicklistSchema<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red", "gray_background", "brown_background", "orange_background", "yellow_background", "green_background", "blue_background", "purple_background", "pink_background", "red_background", "default_background"], undefined>, undefined>;
374
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
375
+ }, undefined>, undefined>;
376
+ }, undefined>, v.ObjectSchema<{
377
+ readonly name: v.StringSchema<undefined>;
378
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
379
+ readonly type: v.LiteralSchema<"multi_select", undefined>;
380
+ readonly options: v.ArraySchema<v.ObjectSchema<{
381
+ readonly id: v.StringSchema<undefined>;
382
+ readonly name: v.StringSchema<undefined>;
383
+ readonly color: v.OptionalSchema<v.PicklistSchema<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red", "gray_background", "brown_background", "orange_background", "yellow_background", "green_background", "blue_background", "purple_background", "pink_background", "red_background", "default_background"], undefined>, undefined>;
384
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
385
+ }, undefined>, undefined>;
386
+ }, undefined>, v.ObjectSchema<{
387
+ readonly name: v.StringSchema<undefined>;
388
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
389
+ readonly type: v.LiteralSchema<"status", undefined>;
390
+ readonly options: v.ArraySchema<v.ObjectSchema<{
391
+ readonly id: v.StringSchema<undefined>;
392
+ readonly name: v.StringSchema<undefined>;
393
+ readonly color: v.OptionalSchema<v.PicklistSchema<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red", "gray_background", "brown_background", "orange_background", "yellow_background", "green_background", "blue_background", "purple_background", "pink_background", "red_background", "default_background"], undefined>, undefined>;
394
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
395
+ }, undefined>, undefined>;
396
+ readonly groups: v.ArraySchema<v.ObjectSchema<{
397
+ readonly id: v.StringSchema<undefined>;
398
+ readonly name: v.StringSchema<undefined>;
399
+ readonly color: v.OptionalSchema<v.PicklistSchema<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red", "gray_background", "brown_background", "orange_background", "yellow_background", "green_background", "blue_background", "purple_background", "pink_background", "red_background", "default_background"], undefined>, undefined>;
400
+ readonly option_ids: v.ArraySchema<v.StringSchema<undefined>, undefined>;
401
+ }, undefined>, undefined>;
402
+ }, undefined>, v.ObjectSchema<{
403
+ readonly name: v.StringSchema<undefined>;
404
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
405
+ readonly type: v.LiteralSchema<"date", undefined>;
406
+ }, undefined>, v.ObjectSchema<{
407
+ readonly name: v.StringSchema<undefined>;
408
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
409
+ readonly type: v.LiteralSchema<"people", undefined>;
410
+ }, undefined>, v.ObjectSchema<{
411
+ readonly name: v.StringSchema<undefined>;
412
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
413
+ readonly type: v.LiteralSchema<"files", undefined>;
414
+ }, undefined>, v.ObjectSchema<{
415
+ readonly name: v.StringSchema<undefined>;
416
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
417
+ readonly type: v.LiteralSchema<"unique_id", undefined>;
418
+ }, undefined>, v.ObjectSchema<{
419
+ readonly name: v.StringSchema<undefined>;
420
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
421
+ readonly type: v.LiteralSchema<"relation", undefined>;
422
+ readonly data_source_id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
423
+ readonly dual_property: v.OptionalSchema<v.ObjectSchema<{
424
+ readonly synced_property_id: v.StringSchema<undefined>;
425
+ readonly synced_property_name: v.StringSchema<undefined>;
426
+ }, undefined>, undefined>;
427
+ }, undefined>, v.ObjectSchema<{
428
+ readonly name: v.StringSchema<undefined>;
429
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
430
+ readonly type: v.LiteralSchema<"place", undefined>;
431
+ }, undefined>, v.ObjectSchema<{
432
+ readonly name: v.StringSchema<undefined>;
433
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
434
+ readonly type: v.LiteralSchema<"formula", undefined>;
435
+ }, undefined>, v.ObjectSchema<{
436
+ readonly name: v.StringSchema<undefined>;
437
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
438
+ readonly type: v.LiteralSchema<"rollup", undefined>;
439
+ }, undefined>, v.ObjectSchema<{
440
+ readonly name: v.StringSchema<undefined>;
441
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
442
+ readonly type: v.LiteralSchema<"button", undefined>;
443
+ }, undefined>, v.ObjectSchema<{
444
+ readonly name: v.StringSchema<undefined>;
445
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
446
+ readonly type: v.LiteralSchema<"verification", undefined>;
447
+ }, undefined>, v.ObjectSchema<{
448
+ readonly name: v.StringSchema<undefined>;
449
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
450
+ readonly type: v.LiteralSchema<"last_visited_time", undefined>;
451
+ }, undefined>, v.ObjectSchema<{
452
+ readonly name: v.StringSchema<undefined>;
453
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
454
+ readonly type: v.LiteralSchema<"location", undefined>;
455
+ }, undefined>, v.ObjectSchema<{
456
+ readonly name: v.StringSchema<undefined>;
457
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
458
+ readonly type: v.LiteralSchema<"created_time", undefined>;
459
+ }, undefined>, v.ObjectSchema<{
460
+ readonly name: v.StringSchema<undefined>;
461
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
462
+ readonly type: v.LiteralSchema<"last_edited_time", undefined>;
463
+ }, undefined>, v.ObjectSchema<{
464
+ readonly name: v.StringSchema<undefined>;
465
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
466
+ readonly type: v.LiteralSchema<"created_by", undefined>;
467
+ }, undefined>, v.ObjectSchema<{
468
+ readonly name: v.StringSchema<undefined>;
469
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
470
+ readonly type: v.LiteralSchema<"last_edited_by", undefined>;
471
+ }, undefined>], undefined>, undefined>;
472
+ }, undefined>, undefined>;
473
+ readonly propertyIdsByKey: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
474
+ readonly inaccessible: v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>;
475
+ }, undefined>, undefined>;
476
+ }, undefined>;
477
+ readonly currentUser: v.ObjectSchema<{
478
+ readonly object: v.LiteralSchema<"user", undefined>;
479
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionUserId">]>;
480
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
481
+ readonly avatar_url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
482
+ readonly type: v.LiteralSchema<"person", undefined>;
483
+ readonly person: v.ObjectSchema<{
484
+ readonly email: v.StringSchema<undefined>;
485
+ }, undefined>;
486
+ }, undefined>;
487
+ }, undefined>, "entries" | "~run" | "~standard" | "~types"> & {
488
+ readonly entries: Omit<{
489
+ readonly theme: v.PicklistSchema<["light", "dark"], undefined>;
490
+ /**
491
+ * Defaults to standard for existing host integrations.
492
+ * TODO(custom-blocks): Make this required when MIN_HOST_SUPPORTED_BRIDGE_PROTOCOL_VERSION increases to 4.
493
+ */
494
+ readonly contrastMode: v.OptionalSchema<v.PicklistSchema<["standard", "high"], undefined>, undefined>;
495
+ readonly blockId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
496
+ readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
497
+ readonly type: v.LiteralSchema<"page_id", undefined>;
498
+ readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
499
+ }, undefined>, v.ObjectSchema<{
500
+ readonly type: v.LiteralSchema<"data_source_id", undefined>;
501
+ readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
502
+ }, undefined>, v.ObjectSchema<{
503
+ readonly type: v.LiteralSchema<"workspace", undefined>;
504
+ readonly workspace: v.LiteralSchema<true, undefined>;
505
+ }, undefined>, v.ObjectSchema<{
506
+ readonly type: v.LiteralSchema<"block_id", undefined>;
507
+ readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
508
+ }, undefined>, v.ObjectSchema<{
509
+ readonly type: v.LiteralSchema<"agent_id", undefined>;
510
+ readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
511
+ }, undefined>, v.ObjectSchema<{
512
+ readonly type: v.LiteralSchema<"unavailable", undefined>;
513
+ }, undefined>], undefined>;
514
+ readonly page: v.VariantSchema<"type", [v.ObjectSchema<{
515
+ readonly type: v.LiteralSchema<"unavailable", undefined>;
516
+ }, undefined>, v.ObjectSchema<{
517
+ readonly type: v.LiteralSchema<"page", undefined>;
518
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
519
+ readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
520
+ readonly type: v.LiteralSchema<"page_id", undefined>;
521
+ readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
522
+ }, undefined>, v.ObjectSchema<{
523
+ readonly type: v.LiteralSchema<"data_source_id", undefined>;
524
+ readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
525
+ }, undefined>, v.ObjectSchema<{
526
+ readonly type: v.LiteralSchema<"workspace", undefined>;
527
+ readonly workspace: v.LiteralSchema<true, undefined>;
528
+ }, undefined>, v.ObjectSchema<{
529
+ readonly type: v.LiteralSchema<"block_id", undefined>;
530
+ readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
531
+ }, undefined>, v.ObjectSchema<{
532
+ readonly type: v.LiteralSchema<"agent_id", undefined>;
533
+ readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
534
+ }, undefined>, v.ObjectSchema<{
535
+ readonly type: v.LiteralSchema<"unavailable", undefined>;
536
+ }, undefined>], undefined>;
537
+ }, undefined>], undefined>;
538
+ readonly manifest: v.ObjectSchema<{
539
+ readonly version: v.LiteralSchema<1, undefined>;
540
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
541
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
542
+ readonly slashCommand: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
543
+ readonly icon: v.OptionalSchema<v.ObjectSchema<{
544
+ readonly type: v.LiteralSchema<"emoji", undefined>;
545
+ readonly emoji: v.StringSchema<undefined>;
546
+ }, undefined>, undefined>;
547
+ readonly dataSources: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
548
+ readonly name: v.StringSchema<undefined>;
549
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
550
+ readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
551
+ readonly type: v.LiteralSchema<"emoji", undefined>;
552
+ readonly emoji: v.StringSchema<undefined>;
553
+ }, undefined>, v.ObjectSchema<{
554
+ readonly type: v.LiteralSchema<"external", undefined>;
555
+ readonly url: v.StringSchema<undefined>;
556
+ }, undefined>], undefined>, undefined>;
557
+ readonly properties: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
558
+ readonly name: v.StringSchema<undefined>;
559
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
560
+ readonly type: v.PicklistSchema<readonly ["title", "rich_text", "number", "checkbox", "url", "email", "phone_number", "select", "multi_select", "status", "date", "people", "files", "unique_id", "relation", "place", "formula", "rollup", "button", "verification", "last_visited_time", "location", "created_time", "last_edited_time", "created_by", "last_edited_by"], undefined>;
561
+ }, undefined>, undefined>, {}>;
562
+ }, undefined>, undefined>, {}>;
563
+ readonly capabilities: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
564
+ readonly capability: v.StringSchema<undefined>;
565
+ readonly resource: v.StringSchema<undefined>;
566
+ }, undefined>, undefined>, undefined>;
567
+ }, undefined>;
568
+ readonly dataSources: v.ObjectSchema<{
569
+ readonly bindings: v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
570
+ readonly collectionPointer: v.OptionalSchema<v.ObjectSchema<{
571
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
572
+ readonly table: v.StringSchema<undefined>;
573
+ readonly spaceId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionSpaceId">]>, undefined>;
574
+ }, undefined>, undefined>;
575
+ readonly collectionSchema: v.OptionalSchema<v.ObjectSchema<{
576
+ readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>, undefined>;
577
+ readonly propertiesById: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
578
+ readonly name: v.StringSchema<undefined>;
579
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
580
+ readonly type: v.LiteralSchema<"title", undefined>;
581
+ }, undefined>, v.ObjectSchema<{
582
+ readonly name: v.StringSchema<undefined>;
583
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
584
+ readonly type: v.LiteralSchema<"rich_text", undefined>;
585
+ }, undefined>, v.ObjectSchema<{
586
+ readonly name: v.StringSchema<undefined>;
587
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
588
+ readonly type: v.LiteralSchema<"number", undefined>;
589
+ }, undefined>, v.ObjectSchema<{
590
+ readonly name: v.StringSchema<undefined>;
591
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
592
+ readonly type: v.LiteralSchema<"checkbox", undefined>;
593
+ }, undefined>, v.ObjectSchema<{
594
+ readonly name: v.StringSchema<undefined>;
595
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
596
+ readonly type: v.LiteralSchema<"url", undefined>;
597
+ }, undefined>, v.ObjectSchema<{
598
+ readonly name: v.StringSchema<undefined>;
599
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
600
+ readonly type: v.LiteralSchema<"email", undefined>;
601
+ }, undefined>, v.ObjectSchema<{
602
+ readonly name: v.StringSchema<undefined>;
603
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
604
+ readonly type: v.LiteralSchema<"phone_number", undefined>;
605
+ }, undefined>, v.ObjectSchema<{
606
+ readonly name: v.StringSchema<undefined>;
607
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
608
+ readonly type: v.LiteralSchema<"select", undefined>;
609
+ readonly options: v.ArraySchema<v.ObjectSchema<{
610
+ readonly id: v.StringSchema<undefined>;
611
+ readonly name: v.StringSchema<undefined>;
612
+ readonly color: v.OptionalSchema<v.PicklistSchema<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red", "gray_background", "brown_background", "orange_background", "yellow_background", "green_background", "blue_background", "purple_background", "pink_background", "red_background", "default_background"], undefined>, undefined>;
613
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
614
+ }, undefined>, undefined>;
615
+ }, undefined>, v.ObjectSchema<{
616
+ readonly name: v.StringSchema<undefined>;
617
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
618
+ readonly type: v.LiteralSchema<"multi_select", undefined>;
619
+ readonly options: v.ArraySchema<v.ObjectSchema<{
620
+ readonly id: v.StringSchema<undefined>;
621
+ readonly name: v.StringSchema<undefined>;
622
+ readonly color: v.OptionalSchema<v.PicklistSchema<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red", "gray_background", "brown_background", "orange_background", "yellow_background", "green_background", "blue_background", "purple_background", "pink_background", "red_background", "default_background"], undefined>, undefined>;
623
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
624
+ }, undefined>, undefined>;
625
+ }, undefined>, v.ObjectSchema<{
626
+ readonly name: v.StringSchema<undefined>;
627
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
628
+ readonly type: v.LiteralSchema<"status", undefined>;
629
+ readonly options: v.ArraySchema<v.ObjectSchema<{
630
+ readonly id: v.StringSchema<undefined>;
631
+ readonly name: v.StringSchema<undefined>;
632
+ readonly color: v.OptionalSchema<v.PicklistSchema<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red", "gray_background", "brown_background", "orange_background", "yellow_background", "green_background", "blue_background", "purple_background", "pink_background", "red_background", "default_background"], undefined>, undefined>;
633
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
634
+ }, undefined>, undefined>;
635
+ readonly groups: v.ArraySchema<v.ObjectSchema<{
636
+ readonly id: v.StringSchema<undefined>;
637
+ readonly name: v.StringSchema<undefined>;
638
+ readonly color: v.OptionalSchema<v.PicklistSchema<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red", "gray_background", "brown_background", "orange_background", "yellow_background", "green_background", "blue_background", "purple_background", "pink_background", "red_background", "default_background"], undefined>, undefined>;
639
+ readonly option_ids: v.ArraySchema<v.StringSchema<undefined>, undefined>;
640
+ }, undefined>, undefined>;
641
+ }, undefined>, v.ObjectSchema<{
642
+ readonly name: v.StringSchema<undefined>;
643
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
644
+ readonly type: v.LiteralSchema<"date", undefined>;
645
+ }, undefined>, v.ObjectSchema<{
646
+ readonly name: v.StringSchema<undefined>;
647
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
648
+ readonly type: v.LiteralSchema<"people", undefined>;
649
+ }, undefined>, v.ObjectSchema<{
650
+ readonly name: v.StringSchema<undefined>;
651
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
652
+ readonly type: v.LiteralSchema<"files", undefined>;
653
+ }, undefined>, v.ObjectSchema<{
654
+ readonly name: v.StringSchema<undefined>;
655
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
656
+ readonly type: v.LiteralSchema<"unique_id", undefined>;
657
+ }, undefined>, v.ObjectSchema<{
658
+ readonly name: v.StringSchema<undefined>;
659
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
660
+ readonly type: v.LiteralSchema<"relation", undefined>;
661
+ readonly data_source_id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
662
+ readonly dual_property: v.OptionalSchema<v.ObjectSchema<{
663
+ readonly synced_property_id: v.StringSchema<undefined>;
664
+ readonly synced_property_name: v.StringSchema<undefined>;
665
+ }, undefined>, undefined>;
666
+ }, undefined>, v.ObjectSchema<{
667
+ readonly name: v.StringSchema<undefined>;
668
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
669
+ readonly type: v.LiteralSchema<"place", undefined>;
670
+ }, undefined>, v.ObjectSchema<{
671
+ readonly name: v.StringSchema<undefined>;
672
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
673
+ readonly type: v.LiteralSchema<"formula", undefined>;
674
+ }, undefined>, v.ObjectSchema<{
675
+ readonly name: v.StringSchema<undefined>;
676
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
677
+ readonly type: v.LiteralSchema<"rollup", undefined>;
678
+ }, undefined>, v.ObjectSchema<{
679
+ readonly name: v.StringSchema<undefined>;
680
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
681
+ readonly type: v.LiteralSchema<"button", undefined>;
682
+ }, undefined>, v.ObjectSchema<{
683
+ readonly name: v.StringSchema<undefined>;
684
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
685
+ readonly type: v.LiteralSchema<"verification", undefined>;
686
+ }, undefined>, v.ObjectSchema<{
687
+ readonly name: v.StringSchema<undefined>;
688
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
689
+ readonly type: v.LiteralSchema<"last_visited_time", undefined>;
690
+ }, undefined>, v.ObjectSchema<{
691
+ readonly name: v.StringSchema<undefined>;
692
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
693
+ readonly type: v.LiteralSchema<"location", undefined>;
694
+ }, undefined>, v.ObjectSchema<{
695
+ readonly name: v.StringSchema<undefined>;
696
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
697
+ readonly type: v.LiteralSchema<"created_time", undefined>;
698
+ }, undefined>, v.ObjectSchema<{
699
+ readonly name: v.StringSchema<undefined>;
700
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
701
+ readonly type: v.LiteralSchema<"last_edited_time", undefined>;
702
+ }, undefined>, v.ObjectSchema<{
703
+ readonly name: v.StringSchema<undefined>;
704
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
705
+ readonly type: v.LiteralSchema<"created_by", undefined>;
706
+ }, undefined>, v.ObjectSchema<{
707
+ readonly name: v.StringSchema<undefined>;
708
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
709
+ readonly type: v.LiteralSchema<"last_edited_by", undefined>;
710
+ }, undefined>], undefined>, undefined>;
711
+ }, undefined>, undefined>;
712
+ readonly propertyIdsByKey: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
713
+ readonly inaccessible: v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>;
714
+ }, undefined>, undefined>;
715
+ }, undefined>;
716
+ readonly currentUser: v.ObjectSchema<{
717
+ readonly object: v.LiteralSchema<"user", undefined>;
718
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionUserId">]>;
719
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
720
+ readonly avatar_url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
721
+ readonly type: v.LiteralSchema<"person", undefined>;
722
+ readonly person: v.ObjectSchema<{
723
+ readonly email: v.StringSchema<undefined>;
724
+ }, undefined>;
725
+ }, undefined>;
726
+ }, "manifest">;
727
+ readonly "~standard": v.StandardProps<{
728
+ theme: "dark" | "light";
729
+ contrastMode?: "high" | "standard" | undefined;
730
+ blockId: string;
731
+ parent: {
732
+ type: "page_id";
733
+ page_id: string;
734
+ } | {
735
+ type: "data_source_id";
736
+ data_source_id: string;
737
+ } | {
738
+ type: "workspace";
739
+ workspace: true;
740
+ } | {
741
+ type: "block_id";
742
+ block_id: string;
743
+ } | {
744
+ type: "agent_id";
745
+ agent_id: string;
746
+ } | {
747
+ type: "unavailable";
748
+ };
749
+ page: {
750
+ type: "unavailable";
751
+ } | {
752
+ type: "page";
753
+ id: string;
754
+ parent: {
755
+ type: "page_id";
756
+ page_id: string;
757
+ } | {
758
+ type: "data_source_id";
759
+ data_source_id: string;
760
+ } | {
761
+ type: "workspace";
762
+ workspace: true;
763
+ } | {
764
+ type: "block_id";
765
+ block_id: string;
766
+ } | {
767
+ type: "agent_id";
768
+ agent_id: string;
769
+ } | {
770
+ type: "unavailable";
771
+ };
772
+ };
773
+ dataSources: {
774
+ bindings: {
775
+ [x: string]: {
776
+ collectionPointer?: {
777
+ id: string;
778
+ table: string;
779
+ spaceId?: string | undefined;
780
+ } | undefined;
781
+ collectionSchema?: {
782
+ id?: string | undefined;
783
+ propertiesById: {
784
+ [x: string]: {
785
+ name: string;
786
+ description?: string | undefined;
787
+ type: "title";
788
+ } | {
789
+ name: string;
790
+ description?: string | undefined;
791
+ type: "rich_text";
792
+ } | {
793
+ name: string;
794
+ description?: string | undefined;
795
+ type: "number";
796
+ } | {
797
+ name: string;
798
+ description?: string | undefined;
799
+ type: "checkbox";
800
+ } | {
801
+ name: string;
802
+ description?: string | undefined;
803
+ type: "url";
804
+ } | {
805
+ name: string;
806
+ description?: string | undefined;
807
+ type: "email";
808
+ } | {
809
+ name: string;
810
+ description?: string | undefined;
811
+ type: "phone_number";
812
+ } | {
813
+ name: string;
814
+ description?: string | undefined;
815
+ type: "select";
816
+ options: {
817
+ id: string;
818
+ name: string;
819
+ 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;
820
+ description?: string | undefined;
821
+ }[];
822
+ } | {
823
+ name: string;
824
+ description?: string | undefined;
825
+ type: "multi_select";
826
+ options: {
827
+ id: string;
828
+ name: string;
829
+ 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;
830
+ description?: string | undefined;
831
+ }[];
832
+ } | {
833
+ name: string;
834
+ description?: string | undefined;
835
+ type: "status";
836
+ options: {
837
+ id: string;
838
+ name: string;
839
+ 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;
840
+ description?: string | undefined;
841
+ }[];
842
+ groups: {
843
+ id: string;
844
+ name: string;
845
+ 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;
846
+ option_ids: string[];
847
+ }[];
848
+ } | {
849
+ name: string;
850
+ description?: string | undefined;
851
+ type: "date";
852
+ } | {
853
+ name: string;
854
+ description?: string | undefined;
855
+ type: "people";
856
+ } | {
857
+ name: string;
858
+ description?: string | undefined;
859
+ type: "files";
860
+ } | {
861
+ name: string;
862
+ description?: string | undefined;
863
+ type: "unique_id";
864
+ } | {
865
+ name: string;
866
+ description?: string | undefined;
867
+ type: "relation";
868
+ data_source_id?: string | undefined;
869
+ dual_property?: {
870
+ synced_property_id: string;
871
+ synced_property_name: string;
872
+ } | undefined;
873
+ } | {
874
+ name: string;
875
+ description?: string | undefined;
876
+ type: "place";
877
+ } | {
878
+ name: string;
879
+ description?: string | undefined;
880
+ type: "formula";
881
+ } | {
882
+ name: string;
883
+ description?: string | undefined;
884
+ type: "rollup";
885
+ } | {
886
+ name: string;
887
+ description?: string | undefined;
888
+ type: "button";
889
+ } | {
890
+ name: string;
891
+ description?: string | undefined;
892
+ type: "verification";
893
+ } | {
894
+ name: string;
895
+ description?: string | undefined;
896
+ type: "last_visited_time";
897
+ } | {
898
+ name: string;
899
+ description?: string | undefined;
900
+ type: "location";
901
+ } | {
902
+ name: string;
903
+ description?: string | undefined;
904
+ type: "created_time";
905
+ } | {
906
+ name: string;
907
+ description?: string | undefined;
908
+ type: "last_edited_time";
909
+ } | {
910
+ name: string;
911
+ description?: string | undefined;
912
+ type: "created_by";
913
+ } | {
914
+ name: string;
915
+ description?: string | undefined;
916
+ type: "last_edited_by";
917
+ };
918
+ };
919
+ } | undefined;
920
+ propertyIdsByKey?: {
921
+ [x: string]: string | undefined;
922
+ } | undefined;
923
+ inaccessible?: true | undefined;
924
+ };
925
+ };
926
+ };
927
+ currentUser: {
928
+ object: "user";
929
+ id: string;
930
+ name?: string | undefined;
931
+ avatar_url: string | null;
932
+ type: "person";
933
+ person: {
934
+ email: string;
935
+ };
936
+ };
937
+ }, {
938
+ theme: "dark" | "light";
939
+ contrastMode?: "high" | "standard" | undefined;
940
+ blockId: string & v.Brand<"NotionBlockId">;
941
+ parent: {
942
+ type: "page_id";
943
+ page_id: string & v.Brand<"NotionPageId">;
944
+ } | {
945
+ type: "data_source_id";
946
+ data_source_id: string & v.Brand<"NotionDataSourceId">;
947
+ } | {
948
+ type: "workspace";
949
+ workspace: true;
950
+ } | {
951
+ type: "block_id";
952
+ block_id: string & v.Brand<"NotionBlockId">;
953
+ } | {
954
+ type: "agent_id";
955
+ agent_id: string & v.Brand<"NotionAgentId">;
956
+ } | {
957
+ type: "unavailable";
958
+ };
959
+ page: {
960
+ type: "unavailable";
961
+ } | {
962
+ type: "page";
963
+ id: string & v.Brand<"NotionPageId">;
964
+ parent: {
965
+ type: "page_id";
966
+ page_id: string & v.Brand<"NotionPageId">;
967
+ } | {
968
+ type: "data_source_id";
969
+ data_source_id: string & v.Brand<"NotionDataSourceId">;
970
+ } | {
971
+ type: "workspace";
972
+ workspace: true;
973
+ } | {
974
+ type: "block_id";
975
+ block_id: string & v.Brand<"NotionBlockId">;
976
+ } | {
977
+ type: "agent_id";
978
+ agent_id: string & v.Brand<"NotionAgentId">;
979
+ } | {
980
+ type: "unavailable";
981
+ };
982
+ };
983
+ dataSources: {
984
+ bindings: {
985
+ [x: string]: {
986
+ collectionPointer?: {
987
+ id: string & v.Brand<"NotionDataSourceId">;
988
+ table: string;
989
+ spaceId?: (string & v.Brand<"NotionSpaceId">) | undefined;
990
+ } | undefined;
991
+ collectionSchema?: {
992
+ id?: (string & v.Brand<"NotionDataSourceId">) | undefined;
993
+ propertiesById: {
994
+ [x: string]: {
995
+ name: string;
996
+ description?: string | undefined;
997
+ type: "title";
998
+ } | {
999
+ name: string;
1000
+ description?: string | undefined;
1001
+ type: "rich_text";
1002
+ } | {
1003
+ name: string;
1004
+ description?: string | undefined;
1005
+ type: "number";
1006
+ } | {
1007
+ name: string;
1008
+ description?: string | undefined;
1009
+ type: "checkbox";
1010
+ } | {
1011
+ name: string;
1012
+ description?: string | undefined;
1013
+ type: "url";
1014
+ } | {
1015
+ name: string;
1016
+ description?: string | undefined;
1017
+ type: "email";
1018
+ } | {
1019
+ name: string;
1020
+ description?: string | undefined;
1021
+ type: "phone_number";
1022
+ } | {
1023
+ name: string;
1024
+ description?: string | undefined;
1025
+ type: "select";
1026
+ options: {
1027
+ id: string;
1028
+ name: string;
1029
+ 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;
1030
+ description?: string | undefined;
1031
+ }[];
1032
+ } | {
1033
+ name: string;
1034
+ description?: string | undefined;
1035
+ type: "multi_select";
1036
+ options: {
1037
+ id: string;
1038
+ name: string;
1039
+ 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;
1040
+ description?: string | undefined;
1041
+ }[];
1042
+ } | {
1043
+ name: string;
1044
+ description?: string | undefined;
1045
+ type: "status";
1046
+ options: {
1047
+ id: string;
1048
+ name: string;
1049
+ 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;
1050
+ description?: string | undefined;
1051
+ }[];
1052
+ groups: {
1053
+ id: string;
1054
+ name: string;
1055
+ 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;
1056
+ option_ids: string[];
1057
+ }[];
1058
+ } | {
1059
+ name: string;
1060
+ description?: string | undefined;
1061
+ type: "date";
1062
+ } | {
1063
+ name: string;
1064
+ description?: string | undefined;
1065
+ type: "people";
1066
+ } | {
1067
+ name: string;
1068
+ description?: string | undefined;
1069
+ type: "files";
1070
+ } | {
1071
+ name: string;
1072
+ description?: string | undefined;
1073
+ type: "unique_id";
1074
+ } | {
1075
+ name: string;
1076
+ description?: string | undefined;
1077
+ type: "relation";
1078
+ data_source_id?: string | undefined;
1079
+ dual_property?: {
1080
+ synced_property_id: string;
1081
+ synced_property_name: string;
1082
+ } | undefined;
1083
+ } | {
1084
+ name: string;
1085
+ description?: string | undefined;
1086
+ type: "place";
1087
+ } | {
1088
+ name: string;
1089
+ description?: string | undefined;
1090
+ type: "formula";
1091
+ } | {
1092
+ name: string;
1093
+ description?: string | undefined;
1094
+ type: "rollup";
1095
+ } | {
1096
+ name: string;
1097
+ description?: string | undefined;
1098
+ type: "button";
1099
+ } | {
1100
+ name: string;
1101
+ description?: string | undefined;
1102
+ type: "verification";
1103
+ } | {
1104
+ name: string;
1105
+ description?: string | undefined;
1106
+ type: "last_visited_time";
1107
+ } | {
1108
+ name: string;
1109
+ description?: string | undefined;
1110
+ type: "location";
1111
+ } | {
1112
+ name: string;
1113
+ description?: string | undefined;
1114
+ type: "created_time";
1115
+ } | {
1116
+ name: string;
1117
+ description?: string | undefined;
1118
+ type: "last_edited_time";
1119
+ } | {
1120
+ name: string;
1121
+ description?: string | undefined;
1122
+ type: "created_by";
1123
+ } | {
1124
+ name: string;
1125
+ description?: string | undefined;
1126
+ type: "last_edited_by";
1127
+ };
1128
+ };
1129
+ } | undefined;
1130
+ propertyIdsByKey?: {
1131
+ [x: string]: string | undefined;
1132
+ } | undefined;
1133
+ inaccessible?: true | undefined;
1134
+ };
1135
+ };
1136
+ };
1137
+ currentUser: {
1138
+ object: "user";
1139
+ id: string & v.Brand<"NotionUserId">;
1140
+ name?: string | undefined;
1141
+ avatar_url: string | null;
1142
+ type: "person";
1143
+ person: {
1144
+ email: string;
1145
+ };
1146
+ };
1147
+ }>;
1148
+ readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
1149
+ theme: "dark" | "light";
1150
+ contrastMode?: "high" | "standard" | undefined;
1151
+ blockId: string & v.Brand<"NotionBlockId">;
1152
+ parent: {
1153
+ type: "page_id";
1154
+ page_id: string & v.Brand<"NotionPageId">;
1155
+ } | {
1156
+ type: "data_source_id";
1157
+ data_source_id: string & v.Brand<"NotionDataSourceId">;
1158
+ } | {
1159
+ type: "workspace";
1160
+ workspace: true;
1161
+ } | {
1162
+ type: "block_id";
1163
+ block_id: string & v.Brand<"NotionBlockId">;
1164
+ } | {
1165
+ type: "agent_id";
1166
+ agent_id: string & v.Brand<"NotionAgentId">;
1167
+ } | {
1168
+ type: "unavailable";
1169
+ };
1170
+ page: {
1171
+ type: "unavailable";
1172
+ } | {
1173
+ type: "page";
1174
+ id: string & v.Brand<"NotionPageId">;
1175
+ parent: {
1176
+ type: "page_id";
1177
+ page_id: string & v.Brand<"NotionPageId">;
1178
+ } | {
1179
+ type: "data_source_id";
1180
+ data_source_id: string & v.Brand<"NotionDataSourceId">;
1181
+ } | {
1182
+ type: "workspace";
1183
+ workspace: true;
1184
+ } | {
1185
+ type: "block_id";
1186
+ block_id: string & v.Brand<"NotionBlockId">;
1187
+ } | {
1188
+ type: "agent_id";
1189
+ agent_id: string & v.Brand<"NotionAgentId">;
1190
+ } | {
1191
+ type: "unavailable";
1192
+ };
1193
+ };
1194
+ dataSources: {
1195
+ bindings: {
1196
+ [x: string]: {
1197
+ collectionPointer?: {
1198
+ id: string & v.Brand<"NotionDataSourceId">;
1199
+ table: string;
1200
+ spaceId?: (string & v.Brand<"NotionSpaceId">) | undefined;
1201
+ } | undefined;
1202
+ collectionSchema?: {
1203
+ id?: (string & v.Brand<"NotionDataSourceId">) | undefined;
1204
+ propertiesById: {
1205
+ [x: string]: {
1206
+ name: string;
1207
+ description?: string | undefined;
1208
+ type: "title";
1209
+ } | {
1210
+ name: string;
1211
+ description?: string | undefined;
1212
+ type: "rich_text";
1213
+ } | {
1214
+ name: string;
1215
+ description?: string | undefined;
1216
+ type: "number";
1217
+ } | {
1218
+ name: string;
1219
+ description?: string | undefined;
1220
+ type: "checkbox";
1221
+ } | {
1222
+ name: string;
1223
+ description?: string | undefined;
1224
+ type: "url";
1225
+ } | {
1226
+ name: string;
1227
+ description?: string | undefined;
1228
+ type: "email";
1229
+ } | {
1230
+ name: string;
1231
+ description?: string | undefined;
1232
+ type: "phone_number";
1233
+ } | {
1234
+ name: string;
1235
+ description?: string | undefined;
1236
+ type: "select";
1237
+ options: {
1238
+ id: string;
1239
+ name: string;
1240
+ 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;
1241
+ description?: string | undefined;
1242
+ }[];
1243
+ } | {
1244
+ name: string;
1245
+ description?: string | undefined;
1246
+ type: "multi_select";
1247
+ options: {
1248
+ id: string;
1249
+ name: string;
1250
+ 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;
1251
+ description?: string | undefined;
1252
+ }[];
1253
+ } | {
1254
+ name: string;
1255
+ description?: string | undefined;
1256
+ type: "status";
1257
+ options: {
1258
+ id: string;
1259
+ name: string;
1260
+ 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;
1261
+ description?: string | undefined;
1262
+ }[];
1263
+ groups: {
1264
+ id: string;
1265
+ name: string;
1266
+ 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;
1267
+ option_ids: string[];
1268
+ }[];
1269
+ } | {
1270
+ name: string;
1271
+ description?: string | undefined;
1272
+ type: "date";
1273
+ } | {
1274
+ name: string;
1275
+ description?: string | undefined;
1276
+ type: "people";
1277
+ } | {
1278
+ name: string;
1279
+ description?: string | undefined;
1280
+ type: "files";
1281
+ } | {
1282
+ name: string;
1283
+ description?: string | undefined;
1284
+ type: "unique_id";
1285
+ } | {
1286
+ name: string;
1287
+ description?: string | undefined;
1288
+ type: "relation";
1289
+ data_source_id?: string | undefined;
1290
+ dual_property?: {
1291
+ synced_property_id: string;
1292
+ synced_property_name: string;
1293
+ } | undefined;
1294
+ } | {
1295
+ name: string;
1296
+ description?: string | undefined;
1297
+ type: "place";
1298
+ } | {
1299
+ name: string;
1300
+ description?: string | undefined;
1301
+ type: "formula";
1302
+ } | {
1303
+ name: string;
1304
+ description?: string | undefined;
1305
+ type: "rollup";
1306
+ } | {
1307
+ name: string;
1308
+ description?: string | undefined;
1309
+ type: "button";
1310
+ } | {
1311
+ name: string;
1312
+ description?: string | undefined;
1313
+ type: "verification";
1314
+ } | {
1315
+ name: string;
1316
+ description?: string | undefined;
1317
+ type: "last_visited_time";
1318
+ } | {
1319
+ name: string;
1320
+ description?: string | undefined;
1321
+ type: "location";
1322
+ } | {
1323
+ name: string;
1324
+ description?: string | undefined;
1325
+ type: "created_time";
1326
+ } | {
1327
+ name: string;
1328
+ description?: string | undefined;
1329
+ type: "last_edited_time";
1330
+ } | {
1331
+ name: string;
1332
+ description?: string | undefined;
1333
+ type: "created_by";
1334
+ } | {
1335
+ name: string;
1336
+ description?: string | undefined;
1337
+ type: "last_edited_by";
1338
+ };
1339
+ };
1340
+ } | undefined;
1341
+ propertyIdsByKey?: {
1342
+ [x: string]: string | undefined;
1343
+ } | undefined;
1344
+ inaccessible?: true | undefined;
1345
+ };
1346
+ };
1347
+ };
1348
+ currentUser: {
1349
+ object: "user";
1350
+ id: string & v.Brand<"NotionUserId">;
1351
+ name?: string | undefined;
1352
+ avatar_url: string | null;
1353
+ type: "person";
1354
+ person: {
1355
+ email: string;
1356
+ };
1357
+ };
1358
+ }, v.ArrayIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.RecordIssue | v.StringIssue | v.VariantIssue>;
1359
+ readonly "~types"?: {
1360
+ readonly input: {
1361
+ theme: "dark" | "light";
1362
+ contrastMode?: "high" | "standard" | undefined;
1363
+ blockId: string;
1364
+ parent: {
1365
+ type: "page_id";
1366
+ page_id: string;
1367
+ } | {
1368
+ type: "data_source_id";
1369
+ data_source_id: string;
1370
+ } | {
1371
+ type: "workspace";
1372
+ workspace: true;
1373
+ } | {
1374
+ type: "block_id";
1375
+ block_id: string;
1376
+ } | {
1377
+ type: "agent_id";
1378
+ agent_id: string;
1379
+ } | {
1380
+ type: "unavailable";
1381
+ };
1382
+ page: {
1383
+ type: "unavailable";
1384
+ } | {
1385
+ type: "page";
1386
+ id: string;
1387
+ parent: {
1388
+ type: "page_id";
1389
+ page_id: string;
1390
+ } | {
1391
+ type: "data_source_id";
1392
+ data_source_id: string;
1393
+ } | {
1394
+ type: "workspace";
1395
+ workspace: true;
1396
+ } | {
1397
+ type: "block_id";
1398
+ block_id: string;
1399
+ } | {
1400
+ type: "agent_id";
1401
+ agent_id: string;
1402
+ } | {
1403
+ type: "unavailable";
1404
+ };
1405
+ };
1406
+ dataSources: {
1407
+ bindings: {
1408
+ [x: string]: {
1409
+ collectionPointer?: {
1410
+ id: string;
1411
+ table: string;
1412
+ spaceId?: string | undefined;
1413
+ } | undefined;
1414
+ collectionSchema?: {
1415
+ id?: string | undefined;
1416
+ propertiesById: {
1417
+ [x: string]: {
1418
+ name: string;
1419
+ description?: string | undefined;
1420
+ type: "title";
1421
+ } | {
1422
+ name: string;
1423
+ description?: string | undefined;
1424
+ type: "rich_text";
1425
+ } | {
1426
+ name: string;
1427
+ description?: string | undefined;
1428
+ type: "number";
1429
+ } | {
1430
+ name: string;
1431
+ description?: string | undefined;
1432
+ type: "checkbox";
1433
+ } | {
1434
+ name: string;
1435
+ description?: string | undefined;
1436
+ type: "url";
1437
+ } | {
1438
+ name: string;
1439
+ description?: string | undefined;
1440
+ type: "email";
1441
+ } | {
1442
+ name: string;
1443
+ description?: string | undefined;
1444
+ type: "phone_number";
1445
+ } | {
1446
+ name: string;
1447
+ description?: string | undefined;
1448
+ type: "select";
1449
+ options: {
1450
+ id: string;
1451
+ name: string;
1452
+ 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;
1453
+ description?: string | undefined;
1454
+ }[];
1455
+ } | {
1456
+ name: string;
1457
+ description?: string | undefined;
1458
+ type: "multi_select";
1459
+ options: {
1460
+ id: string;
1461
+ name: string;
1462
+ 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;
1463
+ description?: string | undefined;
1464
+ }[];
1465
+ } | {
1466
+ name: string;
1467
+ description?: string | undefined;
1468
+ type: "status";
1469
+ options: {
1470
+ id: string;
1471
+ name: string;
1472
+ 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;
1473
+ description?: string | undefined;
1474
+ }[];
1475
+ groups: {
1476
+ id: string;
1477
+ name: string;
1478
+ 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;
1479
+ option_ids: string[];
1480
+ }[];
1481
+ } | {
1482
+ name: string;
1483
+ description?: string | undefined;
1484
+ type: "date";
1485
+ } | {
1486
+ name: string;
1487
+ description?: string | undefined;
1488
+ type: "people";
1489
+ } | {
1490
+ name: string;
1491
+ description?: string | undefined;
1492
+ type: "files";
1493
+ } | {
1494
+ name: string;
1495
+ description?: string | undefined;
1496
+ type: "unique_id";
1497
+ } | {
1498
+ name: string;
1499
+ description?: string | undefined;
1500
+ type: "relation";
1501
+ data_source_id?: string | undefined;
1502
+ dual_property?: {
1503
+ synced_property_id: string;
1504
+ synced_property_name: string;
1505
+ } | undefined;
1506
+ } | {
1507
+ name: string;
1508
+ description?: string | undefined;
1509
+ type: "place";
1510
+ } | {
1511
+ name: string;
1512
+ description?: string | undefined;
1513
+ type: "formula";
1514
+ } | {
1515
+ name: string;
1516
+ description?: string | undefined;
1517
+ type: "rollup";
1518
+ } | {
1519
+ name: string;
1520
+ description?: string | undefined;
1521
+ type: "button";
1522
+ } | {
1523
+ name: string;
1524
+ description?: string | undefined;
1525
+ type: "verification";
1526
+ } | {
1527
+ name: string;
1528
+ description?: string | undefined;
1529
+ type: "last_visited_time";
1530
+ } | {
1531
+ name: string;
1532
+ description?: string | undefined;
1533
+ type: "location";
1534
+ } | {
1535
+ name: string;
1536
+ description?: string | undefined;
1537
+ type: "created_time";
1538
+ } | {
1539
+ name: string;
1540
+ description?: string | undefined;
1541
+ type: "last_edited_time";
1542
+ } | {
1543
+ name: string;
1544
+ description?: string | undefined;
1545
+ type: "created_by";
1546
+ } | {
1547
+ name: string;
1548
+ description?: string | undefined;
1549
+ type: "last_edited_by";
1550
+ };
1551
+ };
1552
+ } | undefined;
1553
+ propertyIdsByKey?: {
1554
+ [x: string]: string | undefined;
1555
+ } | undefined;
1556
+ inaccessible?: true | undefined;
1557
+ };
1558
+ };
1559
+ };
1560
+ currentUser: {
1561
+ object: "user";
1562
+ id: string;
1563
+ name?: string | undefined;
1564
+ avatar_url: string | null;
1565
+ type: "person";
1566
+ person: {
1567
+ email: string;
1568
+ };
1569
+ };
1570
+ };
1571
+ readonly output: {
1572
+ theme: "dark" | "light";
1573
+ contrastMode?: "high" | "standard" | undefined;
1574
+ blockId: string & v.Brand<"NotionBlockId">;
1575
+ parent: {
1576
+ type: "page_id";
1577
+ page_id: string & v.Brand<"NotionPageId">;
1578
+ } | {
1579
+ type: "data_source_id";
1580
+ data_source_id: string & v.Brand<"NotionDataSourceId">;
1581
+ } | {
1582
+ type: "workspace";
1583
+ workspace: true;
1584
+ } | {
1585
+ type: "block_id";
1586
+ block_id: string & v.Brand<"NotionBlockId">;
1587
+ } | {
1588
+ type: "agent_id";
1589
+ agent_id: string & v.Brand<"NotionAgentId">;
1590
+ } | {
1591
+ type: "unavailable";
1592
+ };
1593
+ page: {
1594
+ type: "unavailable";
1595
+ } | {
1596
+ type: "page";
1597
+ id: string & v.Brand<"NotionPageId">;
1598
+ parent: {
1599
+ type: "page_id";
1600
+ page_id: string & v.Brand<"NotionPageId">;
1601
+ } | {
1602
+ type: "data_source_id";
1603
+ data_source_id: string & v.Brand<"NotionDataSourceId">;
1604
+ } | {
1605
+ type: "workspace";
1606
+ workspace: true;
1607
+ } | {
1608
+ type: "block_id";
1609
+ block_id: string & v.Brand<"NotionBlockId">;
1610
+ } | {
1611
+ type: "agent_id";
1612
+ agent_id: string & v.Brand<"NotionAgentId">;
1613
+ } | {
1614
+ type: "unavailable";
1615
+ };
1616
+ };
1617
+ dataSources: {
1618
+ bindings: {
1619
+ [x: string]: {
1620
+ collectionPointer?: {
1621
+ id: string & v.Brand<"NotionDataSourceId">;
1622
+ table: string;
1623
+ spaceId?: (string & v.Brand<"NotionSpaceId">) | undefined;
1624
+ } | undefined;
1625
+ collectionSchema?: {
1626
+ id?: (string & v.Brand<"NotionDataSourceId">) | undefined;
1627
+ propertiesById: {
1628
+ [x: string]: {
1629
+ name: string;
1630
+ description?: string | undefined;
1631
+ type: "title";
1632
+ } | {
1633
+ name: string;
1634
+ description?: string | undefined;
1635
+ type: "rich_text";
1636
+ } | {
1637
+ name: string;
1638
+ description?: string | undefined;
1639
+ type: "number";
1640
+ } | {
1641
+ name: string;
1642
+ description?: string | undefined;
1643
+ type: "checkbox";
1644
+ } | {
1645
+ name: string;
1646
+ description?: string | undefined;
1647
+ type: "url";
1648
+ } | {
1649
+ name: string;
1650
+ description?: string | undefined;
1651
+ type: "email";
1652
+ } | {
1653
+ name: string;
1654
+ description?: string | undefined;
1655
+ type: "phone_number";
1656
+ } | {
1657
+ name: string;
1658
+ description?: string | undefined;
1659
+ type: "select";
1660
+ options: {
1661
+ id: string;
1662
+ name: string;
1663
+ 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;
1664
+ description?: string | undefined;
1665
+ }[];
1666
+ } | {
1667
+ name: string;
1668
+ description?: string | undefined;
1669
+ type: "multi_select";
1670
+ options: {
1671
+ id: string;
1672
+ name: string;
1673
+ 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;
1674
+ description?: string | undefined;
1675
+ }[];
1676
+ } | {
1677
+ name: string;
1678
+ description?: string | undefined;
1679
+ type: "status";
1680
+ options: {
1681
+ id: string;
1682
+ name: string;
1683
+ 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;
1684
+ description?: string | undefined;
1685
+ }[];
1686
+ groups: {
1687
+ id: string;
1688
+ name: string;
1689
+ 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;
1690
+ option_ids: string[];
1691
+ }[];
1692
+ } | {
1693
+ name: string;
1694
+ description?: string | undefined;
1695
+ type: "date";
1696
+ } | {
1697
+ name: string;
1698
+ description?: string | undefined;
1699
+ type: "people";
1700
+ } | {
1701
+ name: string;
1702
+ description?: string | undefined;
1703
+ type: "files";
1704
+ } | {
1705
+ name: string;
1706
+ description?: string | undefined;
1707
+ type: "unique_id";
1708
+ } | {
1709
+ name: string;
1710
+ description?: string | undefined;
1711
+ type: "relation";
1712
+ data_source_id?: string | undefined;
1713
+ dual_property?: {
1714
+ synced_property_id: string;
1715
+ synced_property_name: string;
1716
+ } | undefined;
1717
+ } | {
1718
+ name: string;
1719
+ description?: string | undefined;
1720
+ type: "place";
1721
+ } | {
1722
+ name: string;
1723
+ description?: string | undefined;
1724
+ type: "formula";
1725
+ } | {
1726
+ name: string;
1727
+ description?: string | undefined;
1728
+ type: "rollup";
1729
+ } | {
1730
+ name: string;
1731
+ description?: string | undefined;
1732
+ type: "button";
1733
+ } | {
1734
+ name: string;
1735
+ description?: string | undefined;
1736
+ type: "verification";
1737
+ } | {
1738
+ name: string;
1739
+ description?: string | undefined;
1740
+ type: "last_visited_time";
1741
+ } | {
1742
+ name: string;
1743
+ description?: string | undefined;
1744
+ type: "location";
1745
+ } | {
1746
+ name: string;
1747
+ description?: string | undefined;
1748
+ type: "created_time";
1749
+ } | {
1750
+ name: string;
1751
+ description?: string | undefined;
1752
+ type: "last_edited_time";
1753
+ } | {
1754
+ name: string;
1755
+ description?: string | undefined;
1756
+ type: "created_by";
1757
+ } | {
1758
+ name: string;
1759
+ description?: string | undefined;
1760
+ type: "last_edited_by";
1761
+ };
1762
+ };
1763
+ } | undefined;
1764
+ propertyIdsByKey?: {
1765
+ [x: string]: string | undefined;
1766
+ } | undefined;
1767
+ inaccessible?: true | undefined;
1768
+ };
1769
+ };
1770
+ };
1771
+ currentUser: {
1772
+ object: "user";
1773
+ id: string & v.Brand<"NotionUserId">;
1774
+ name?: string | undefined;
1775
+ avatar_url: string | null;
1776
+ type: "person";
1777
+ person: {
1778
+ email: string;
1779
+ };
1780
+ };
1781
+ };
1782
+ readonly issue: v.ArrayIssue | v.LiteralIssue | v.ObjectIssue | v.PicklistIssue | v.RecordIssue | v.StringIssue | v.VariantIssue;
1783
+ } | undefined;
1784
+ };
1785
+ }, undefined>, v.ObjectSchema<{
1786
+ readonly status: v.LiteralSchema<"error", undefined>;
1787
+ readonly error: v.ObjectSchema<{
1788
+ readonly code: v.StringSchema<undefined>;
1789
+ readonly message: v.StringSchema<undefined>;
1790
+ readonly isRetryable: v.BooleanSchema<undefined>;
1791
+ }, undefined>;
1792
+ }, undefined>], undefined>;
1793
+ /** Adapter-owned state or an explicit preparation error. The host adds the manifest to init. */
1794
+ export type CustomBlockHostPreparedStateResult = CustomBlockHostResult<{
1795
+ initialState: Omit<CustomBlockHostInitialState, "manifest">;
1796
+ }>;
1797
+ export type CustomBlockHostPrepareInitialState = (args: {
1798
+ manifest: BridgeCustomBlockManifest;
1799
+ signal: AbortSignal;
1800
+ }) => Promise<CustomBlockHostPreparedStateResult>;
1801
+ //# sourceMappingURL=initialState.d.ts.map