@notionhq/custom-blocks 0.5.2 → 0.7.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 (622) hide show
  1. package/README.md +72 -58
  2. package/bin/notion-custom-blocks/tar.js +1 -1
  3. package/dist/bridge/SandboxBridge.d.ts +99 -12
  4. package/dist/bridge/SandboxBridge.d.ts.map +1 -1
  5. package/dist/bridge/SandboxBridge.js +254 -73
  6. package/dist/{context/applyContextMessage.d.ts → bridge/applyHostStateMessage.d.ts} +3 -3
  7. package/dist/bridge/applyHostStateMessage.d.ts.map +1 -0
  8. package/dist/{context/applyContextMessage.js → bridge/applyHostStateMessage.js} +7 -8
  9. package/dist/bridge/createBrowserSandboxBridge.d.ts +3 -0
  10. package/dist/bridge/createBrowserSandboxBridge.d.ts.map +1 -0
  11. package/dist/bridge/createBrowserSandboxBridge.js +54 -0
  12. package/dist/bridge/getBridge.d.ts +1 -1
  13. package/dist/bridge/getBridge.d.ts.map +1 -1
  14. package/dist/bridge/getBridge.js +2 -2
  15. package/dist/bridge/getInitializedHostState.d.ts.map +1 -0
  16. package/dist/bridge/getInitializedHostState.js +8 -0
  17. package/dist/bridge/hostState.d.ts +29 -0
  18. package/dist/bridge/hostState.d.ts.map +1 -0
  19. package/dist/bridge/initialization/SandboxInitialization.d.ts +49 -21
  20. package/dist/bridge/initialization/SandboxInitialization.d.ts.map +1 -1
  21. package/dist/bridge/initialization/SandboxInitialization.js +267 -90
  22. package/dist/bridge/messageInterceptor.d.ts.map +1 -1
  23. package/dist/bridge/requests.d.ts +1 -1
  24. package/dist/bridge/requests.d.ts.map +1 -1
  25. package/dist/bridge/requests.js +4 -3
  26. package/dist/bridge/sandboxEnvironment.d.ts +30 -0
  27. package/dist/bridge/sandboxEnvironment.d.ts.map +1 -0
  28. package/dist/bridge/sandboxEnvironment.js +1 -0
  29. package/dist/bridge/subscribeToHostStateField.d.ts +11 -0
  30. package/dist/bridge/subscribeToHostStateField.d.ts.map +1 -0
  31. package/dist/{context/subscribeToContext.js → bridge/subscribeToHostStateField.js} +8 -8
  32. package/dist/bridge.d.ts.map +1 -1
  33. package/dist/data-sources.d.ts +10 -0
  34. package/dist/data-sources.d.ts.map +1 -0
  35. package/dist/data-sources.js +1 -0
  36. package/dist/dataSources/NotionDataSource.d.ts +35 -0
  37. package/dist/dataSources/NotionDataSource.d.ts.map +1 -0
  38. package/dist/dataSources/NotionDataSource.js +50 -0
  39. package/dist/dataSources/bridge/DataSourceCache.d.ts +18 -0
  40. package/dist/dataSources/bridge/DataSourceCache.d.ts.map +1 -0
  41. package/dist/dataSources/bridge/DataSourceCache.js +75 -0
  42. package/dist/dataSources/bridge/applyDataSourceBindings.d.ts +1 -1
  43. package/dist/dataSources/bridge/applyDataSourceBindings.d.ts.map +1 -1
  44. package/dist/dataSources/bridge/makeDataSourceReadResponseSchema.d.ts +2001 -0
  45. package/dist/dataSources/bridge/makeDataSourceReadResponseSchema.d.ts.map +1 -0
  46. package/dist/dataSources/bridge/makeDataSourceReadResponseSchema.js +19 -0
  47. package/dist/dataSources/bridge/resolveDataSourceQuery.d.ts +2 -2
  48. package/dist/dataSources/bridge/resolveDataSourceQuery.d.ts.map +1 -1
  49. package/dist/dataSources/bridge/resolveDataSources.d.ts +1 -1
  50. package/dist/dataSources/bridge/resolveDataSources.d.ts.map +1 -1
  51. package/dist/dataSources/bridge/resolveDataSources.js +1 -1
  52. package/dist/dataSources/bridge/resolveSorts.d.ts.map +1 -1
  53. package/dist/dataSources/bridge/reuseDataSourcesForUnchangedBindings.d.ts +0 -3
  54. package/dist/dataSources/bridge/reuseDataSourcesForUnchangedBindings.d.ts.map +1 -1
  55. package/dist/dataSources/bridge/reuseDataSourcesForUnchangedBindings.js +2 -5
  56. package/dist/dataSources/dataSourceInaccessibleError.d.ts.map +1 -1
  57. package/dist/dataSources/dataSourceState.d.ts +26 -0
  58. package/dist/dataSources/dataSourceState.d.ts.map +1 -0
  59. package/dist/dataSources/dataSourceState.js +39 -0
  60. package/dist/dataSources/ensureDataSource.d.ts +554 -0
  61. package/dist/dataSources/ensureDataSource.d.ts.map +1 -0
  62. package/dist/dataSources/ensureDataSource.js +24 -0
  63. package/dist/dataSources/filters/resolveFilter.d.ts.map +1 -1
  64. package/dist/dataSources/filters/types.d.ts.map +1 -1
  65. package/dist/dataSources/getDataSourcePage.d.ts.map +1 -1
  66. package/dist/dataSources/getDataSourcePage.js +8 -3
  67. package/dist/dataSources/observeDataSource.d.ts +8 -0
  68. package/dist/dataSources/observeDataSource.d.ts.map +1 -0
  69. package/dist/dataSources/observeDataSource.js +76 -0
  70. package/dist/dataSources/properties/resolvePropertyAddress.d.ts.map +1 -1
  71. package/dist/dataSources/properties/resolvePropertyWriteMapForDataSource.d.ts +1 -1
  72. package/dist/dataSources/properties/resolvePropertyWriteMapForDataSource.d.ts.map +1 -1
  73. package/dist/dataSources/properties/resolvePropertyWriteMapForDataSource.js +3 -3
  74. package/dist/dataSources/resolvePageDataSource.d.ts +1 -1
  75. package/dist/dataSources/resolvePageDataSource.d.ts.map +1 -1
  76. package/dist/dataSources/subscribeToDataSource.d.ts +1 -1
  77. package/dist/dataSources/subscribeToDataSource.d.ts.map +1 -1
  78. package/dist/dataSources/subscribeToDataSource.js +72 -48
  79. package/dist/dataSources/types.d.ts +18 -15
  80. package/dist/dataSources/types.d.ts.map +1 -1
  81. package/dist/files/files.d.ts +1 -1
  82. package/dist/files/files.d.ts.map +1 -1
  83. package/dist/files/icons.d.ts.map +1 -1
  84. package/dist/index.d.ts +18 -33
  85. package/dist/index.d.ts.map +1 -1
  86. package/dist/index.js +10 -9
  87. package/dist/initialization/NotInIframeError.d.ts.map +1 -1
  88. package/dist/initialization/initCustomBlock.d.ts +6 -4
  89. package/dist/initialization/initCustomBlock.d.ts.map +1 -1
  90. package/dist/initialization/initCustomBlock.js +6 -4
  91. package/dist/initialization/notifyReady.d.ts +14 -0
  92. package/dist/initialization/notifyReady.d.ts.map +1 -0
  93. package/dist/initialization/notifyReady.js +9 -0
  94. package/dist/initialization/react/useCustomBlockInit.d.ts +18 -36
  95. package/dist/initialization/react/useCustomBlockInit.d.ts.map +1 -1
  96. package/dist/initialization/react/useCustomBlockInit.js +9 -22
  97. package/dist/initialization/resolveInitialState.d.ts +3 -12
  98. package/dist/initialization/resolveInitialState.d.ts.map +1 -1
  99. package/dist/initialization/resolveInitialState.js +8 -25
  100. package/dist/initialization/types.d.ts +17 -14
  101. package/dist/initialization/types.d.ts.map +1 -1
  102. package/dist/layout/autoResize.d.ts +1 -0
  103. package/dist/layout/autoResize.d.ts.map +1 -1
  104. package/dist/layout/autoResize.js +57 -37
  105. package/dist/layout/getInitialContentHeight.d.ts.map +1 -1
  106. package/dist/location/getContainingPage.d.ts +4 -0
  107. package/dist/location/getContainingPage.d.ts.map +1 -0
  108. package/dist/location/getContainingPage.js +10 -0
  109. package/dist/location/getInstance.d.ts +7 -0
  110. package/dist/location/getInstance.d.ts.map +1 -0
  111. package/dist/location/getInstance.js +8 -0
  112. package/dist/location/getParent.d.ts +4 -0
  113. package/dist/location/getParent.d.ts.map +1 -0
  114. package/dist/location/getParent.js +10 -0
  115. package/dist/location/mapContainingPage.d.ts +4 -0
  116. package/dist/location/mapContainingPage.d.ts.map +1 -0
  117. package/dist/location/mapContainingPage.js +10 -0
  118. package/dist/location/mapParent.d.ts +4 -0
  119. package/dist/location/mapParent.d.ts.map +1 -0
  120. package/dist/location/mapParent.js +20 -0
  121. package/dist/location/subscribeToContainingPage.d.ts +5 -0
  122. package/dist/location/subscribeToContainingPage.d.ts.map +1 -0
  123. package/dist/location/subscribeToContainingPage.js +9 -0
  124. package/dist/location/subscribeToParent.d.ts +5 -0
  125. package/dist/location/subscribeToParent.d.ts.map +1 -0
  126. package/dist/location/subscribeToParent.js +9 -0
  127. package/dist/location/types.d.ts +45 -0
  128. package/dist/location/types.d.ts.map +1 -0
  129. package/dist/location/types.js +1 -0
  130. package/dist/manifest/getManifest.d.ts +1 -1
  131. package/dist/manifest/getManifest.d.ts.map +1 -1
  132. package/dist/manifest/getManifest.js +2 -2
  133. package/dist/manifest/readLocalManifest.d.ts.map +1 -1
  134. package/dist/manifest/types.d.ts.map +1 -1
  135. package/dist/navigation/openExternalUrl.d.ts +1 -1
  136. package/dist/navigation/openExternalUrl.d.ts.map +1 -1
  137. package/dist/navigation/openExternalUrl.js +1 -1
  138. package/dist/navigation/types.d.ts.map +1 -1
  139. package/dist/navigation.d.ts +16 -0
  140. package/dist/navigation.d.ts.map +1 -0
  141. package/dist/navigation.js +21 -0
  142. package/dist/pages/NotionPage.d.ts +34 -0
  143. package/dist/pages/NotionPage.d.ts.map +1 -0
  144. package/dist/pages/NotionPage.js +105 -0
  145. package/dist/pages/bridge/buildCreatePageRequest.d.ts.map +1 -1
  146. package/dist/pages/bridge/getPageForDataSource.d.ts +1 -1
  147. package/dist/pages/bridge/getPageForDataSource.d.ts.map +1 -1
  148. package/dist/pages/bridge/getPageForDataSource.js +2 -2
  149. package/dist/pages/bridge/resolveCreatePageDestination.d.ts +1 -1
  150. package/dist/pages/bridge/resolveCreatePageDestination.d.ts.map +1 -1
  151. package/dist/pages/bridge/sendCreatePageRequest.d.ts.map +1 -1
  152. package/dist/pages/bridge/sendCreatePageRequest.js +3 -2
  153. package/dist/pages/bridge/toNotionPageFromBridgePage.d.ts +3 -9
  154. package/dist/pages/bridge/toNotionPageFromBridgePage.d.ts.map +1 -1
  155. package/dist/pages/bridge/toNotionPageFromBridgePage.js +36 -11
  156. package/dist/pages/bridge/toNotionPagePropertyFromBridgeProperty.d.ts +2 -2
  157. package/dist/pages/bridge/toNotionPagePropertyFromBridgeProperty.d.ts.map +1 -1
  158. package/dist/pages/bridge/updatePage.d.ts +4 -3
  159. package/dist/pages/bridge/updatePage.d.ts.map +1 -1
  160. package/dist/pages/bridge/updatePage.js +3 -3
  161. package/dist/pages/createPage.d.ts.map +1 -1
  162. package/dist/pages/createPage.js +9 -1
  163. package/dist/pages/getPage.d.ts +2 -2
  164. package/dist/pages/getPage.d.ts.map +1 -1
  165. package/dist/pages/getPage.js +1 -1
  166. package/dist/pages/identityBlockKey.d.ts +4 -0
  167. package/dist/pages/identityBlockKey.d.ts.map +1 -0
  168. package/dist/pages/identityBlockKey.js +6 -0
  169. package/dist/pages/identityPageKey.d.ts +7 -0
  170. package/dist/pages/identityPageKey.d.ts.map +1 -0
  171. package/dist/pages/identityPageKey.js +9 -0
  172. package/dist/pages/openPage.d.ts.map +1 -1
  173. package/dist/pages/parent.d.ts +0 -2
  174. package/dist/pages/parent.d.ts.map +1 -1
  175. package/dist/pages/types.d.ts +25 -51
  176. package/dist/pages/types.d.ts.map +1 -1
  177. package/dist/pages.d.ts +56 -0
  178. package/dist/pages.d.ts.map +1 -0
  179. package/dist/pages.js +69 -0
  180. package/dist/preferences/backgroundColors.d.ts.map +1 -0
  181. package/dist/preferences/getContrastMode.d.ts.map +1 -0
  182. package/dist/{context → preferences}/getContrastMode.js +1 -1
  183. package/dist/preferences/getTheme.d.ts.map +1 -0
  184. package/dist/{context → preferences}/getTheme.js +1 -1
  185. package/dist/preferences/react/useContrastMode.d.ts.map +1 -0
  186. package/dist/preferences/react/useTheme.d.ts.map +1 -0
  187. package/dist/{context → preferences}/subscribeToContrastMode.d.ts +1 -1
  188. package/dist/preferences/subscribeToContrastMode.d.ts.map +1 -0
  189. package/dist/{context → preferences}/subscribeToContrastMode.js +2 -2
  190. package/dist/{context → preferences}/subscribeToTheme.d.ts +1 -1
  191. package/dist/preferences/subscribeToTheme.d.ts.map +1 -0
  192. package/dist/{context → preferences}/subscribeToTheme.js +2 -2
  193. package/dist/preferences/syncDocumentAppearance.d.ts +11 -0
  194. package/dist/preferences/syncDocumentAppearance.d.ts.map +1 -0
  195. package/dist/{context → preferences}/syncDocumentAppearance.js +3 -5
  196. package/dist/preferences.d.ts +7 -0
  197. package/dist/preferences.d.ts.map +1 -0
  198. package/dist/preferences.js +4 -0
  199. package/dist/protocol/compatibility/protocol12/hostToSandbox.d.ts +3356 -0
  200. package/dist/protocol/compatibility/protocol12/hostToSandbox.js +38 -0
  201. package/dist/protocol/compatibility/{protocol3To5/bridgePage.d.ts → protocol12/page.d.ts} +84 -70
  202. package/dist/protocol/compatibility/protocol12/page.js +7 -0
  203. package/dist/protocol/context/containingPage.d.ts +6 -2
  204. package/dist/protocol/context/containingPage.js +5 -3
  205. package/dist/protocol/context/instance.d.ts +13 -0
  206. package/dist/protocol/context/instance.js +8 -0
  207. package/dist/protocol/context/messages/pageChanged.d.ts +1 -0
  208. package/dist/protocol/context/messages/pageChanged.js +2 -2
  209. package/dist/protocol/context/messages/pageError.d.ts +11 -0
  210. package/dist/protocol/context/messages/pageError.js +7 -0
  211. package/dist/protocol/context/messages/parentError.d.ts +11 -0
  212. package/dist/protocol/context/messages/parentError.js +7 -0
  213. package/dist/protocol/context/parent.d.ts +6 -6
  214. package/dist/protocol/dataSources/areDataSourceBindingsEqual.d.ts +3 -0
  215. package/dist/protocol/dataSources/areDataSourceBindingsEqual.js +26 -0
  216. package/dist/protocol/dataSources/bridgeDataSourceBinding.d.ts +4 -4
  217. package/dist/protocol/dataSources/bridgeDataSourceBindings.d.ts +4 -4
  218. package/dist/protocol/dataSources/dataSourceSchema.d.ts +4 -4
  219. package/dist/protocol/dataSources/errors.d.ts +27 -3
  220. package/dist/protocol/dataSources/messages/getDataSource.d.ts +1857 -0
  221. package/dist/protocol/dataSources/messages/getDataSource.js +27 -0
  222. package/dist/protocol/dataSources/messages/queryDataSource.d.ts +45 -386
  223. package/dist/protocol/dataSources/messages/queryDataSource.js +2 -17
  224. package/dist/protocol/dataSources/notionDataSource.d.ts +8 -8
  225. package/dist/protocol/dataSources/properties/propertySchema.d.ts +15 -20
  226. package/dist/protocol/dataSources/properties/propertySchema.js +5 -10
  227. package/dist/protocol/files.d.ts +18 -0
  228. package/dist/protocol/files.js +9 -0
  229. package/dist/protocol/handshake/connect.d.ts +11 -23
  230. package/dist/protocol/handshake/connect.js +12 -34
  231. package/dist/protocol/handshake/connectResult.d.ts +19 -0
  232. package/dist/protocol/handshake/connectResult.js +18 -0
  233. package/dist/protocol/handshake/init.d.ts +41 -219
  234. package/dist/protocol/handshake/init.js +11 -30
  235. package/dist/protocol/handshake/initResult.d.ts +9 -14
  236. package/dist/protocol/handshake/initResult.js +7 -10
  237. package/dist/protocol/handshake/isInitHandshakeMessage.d.ts +3 -3
  238. package/dist/protocol/handshake/isInitHandshakeMessage.js +1 -0
  239. package/dist/protocol/handshake/ready.d.ts +11 -0
  240. package/dist/protocol/handshake/ready.js +10 -0
  241. package/dist/protocol/icons.d.ts +1 -1
  242. package/dist/protocol/icons.js +1 -1
  243. package/dist/protocol/manifest/manifest.d.ts +2 -3
  244. package/dist/protocol/manifest/manifest.js +2 -3
  245. package/dist/protocol/messages/hostToSandbox.d.ts +4006 -2948
  246. package/dist/protocol/messages/hostToSandbox.js +24 -23
  247. package/dist/protocol/messages/incomingType.d.ts +2 -6
  248. package/dist/protocol/messages/incomingType.js +2 -6
  249. package/dist/protocol/messages/invalidHostMessage.d.ts +2 -0
  250. package/dist/protocol/messages/invalidHostMessage.js +2 -0
  251. package/dist/protocol/messages/invalidSandboxMessage.d.ts +2 -0
  252. package/dist/protocol/messages/invalidSandboxMessage.js +2 -0
  253. package/dist/protocol/messages/sandboxToHost.d.ts +77 -79
  254. package/dist/protocol/messages/sandboxToHost.js +13 -8
  255. package/dist/protocol/pages/bridgePage.d.ts +32 -23
  256. package/dist/protocol/pages/bridgePage.js +6 -1
  257. package/dist/protocol/pages/messages/createPage.d.ts +153 -697
  258. package/dist/protocol/pages/messages/createPage.js +0 -16
  259. package/dist/protocol/pages/messages/getPage.d.ts +36 -605
  260. package/dist/protocol/pages/messages/getPage.js +2 -15
  261. package/dist/protocol/pages/messages/updatePage.d.ts +68 -639
  262. package/dist/protocol/pages/messages/updatePage.js +1 -16
  263. package/dist/protocol/pages/properties/bridgePagePropertyMaps.d.ts +41 -38
  264. package/dist/protocol/pages/properties/bridgePagePropertyMaps.js +3 -3
  265. package/dist/protocol/pages/properties/bridgePagePropertyValue.d.ts +238 -4
  266. package/dist/protocol/pages/properties/bridgePagePropertyValue.js +20 -7
  267. package/dist/protocol/pages/properties/metadataActor.d.ts +1 -1
  268. package/dist/protocol/pages/properties/metadataActor.js +0 -1
  269. package/dist/protocol/users/bridgeUser.d.ts +2 -1
  270. package/dist/protocol/users/bridgeUser.js +2 -1
  271. package/dist/protocol/users/bridgeUserList.d.ts +1 -1
  272. package/dist/protocol/users/makeBridgeUser.d.ts +1 -1
  273. package/dist/protocol/users/makeBridgeUser.js +2 -1
  274. package/dist/protocol/users/messages/getCurrentUser.d.ts +32 -0
  275. package/dist/protocol/users/messages/getCurrentUser.js +22 -0
  276. package/dist/protocol/users/messages/getUser.d.ts +1 -1
  277. package/dist/protocol/users/messages/getViewer.d.ts +29 -0
  278. package/dist/protocol/users/messages/getViewer.js +23 -0
  279. package/dist/protocol/users/messages/listUsers.d.ts +1 -1
  280. package/dist/protocol/users/viewer.d.ts +9 -0
  281. package/dist/protocol/users/viewer.js +10 -0
  282. package/dist/protocol/utils/errors.d.ts +39 -3
  283. package/dist/protocol/utils/errors.js +8 -0
  284. package/dist/protocol/utils/ids.d.ts +3 -0
  285. package/dist/protocol/utils/ids.js +2 -0
  286. package/dist/protocol/utils/protocolVersion.d.ts +4 -5
  287. package/dist/protocol/utils/protocolVersion.js +5 -10
  288. package/dist/protocol/utils/readSubscriptionId.d.ts +2 -0
  289. package/dist/protocol/utils/readSubscriptionId.js +7 -0
  290. package/dist/react/InitializationErrorDetails.d.ts.map +1 -1
  291. package/dist/react/MissingHostCommand.d.ts.map +1 -1
  292. package/dist/react/MissingHostScreen.d.ts.map +1 -1
  293. package/dist/react/NotionCustomBlock.d.ts +6 -26
  294. package/dist/react/NotionCustomBlock.d.ts.map +1 -1
  295. package/dist/react/NotionCustomBlock.js +15 -41
  296. package/dist/react/index.d.ts +12 -16
  297. package/dist/react/index.d.ts.map +1 -1
  298. package/dist/react/index.js +11 -15
  299. package/dist/react/useAsyncRead.d.ts +16 -0
  300. package/dist/react/useAsyncRead.d.ts.map +1 -0
  301. package/dist/react/useAsyncRead.js +25 -0
  302. package/dist/react/useContainingPage.d.ts +5 -0
  303. package/dist/react/useContainingPage.d.ts.map +1 -0
  304. package/dist/react/useContainingPage.js +16 -0
  305. package/dist/react/useLiveLocationRead.d.ts +14 -0
  306. package/dist/react/useLiveLocationRead.d.ts.map +1 -0
  307. package/dist/react/useLiveLocationRead.js +35 -0
  308. package/dist/react/usePage.d.ts +7 -0
  309. package/dist/react/usePage.d.ts.map +1 -0
  310. package/dist/react/usePage.js +38 -0
  311. package/dist/react/useParent.d.ts +7 -0
  312. package/dist/react/useParent.d.ts.map +1 -0
  313. package/dist/react/useParent.js +18 -0
  314. package/dist/react/useQuerySubscription.d.ts +22 -0
  315. package/dist/react/useQuerySubscription.d.ts.map +1 -0
  316. package/dist/react/useQuerySubscription.js +43 -0
  317. package/dist/react/useUserFields.d.ts +9 -0
  318. package/dist/react/useUserFields.d.ts.map +1 -0
  319. package/dist/react/useUserFields.js +14 -0
  320. package/dist/react/useViewer.d.ts +3 -0
  321. package/dist/react/useViewer.d.ts.map +1 -0
  322. package/dist/react/useViewer.js +6 -0
  323. package/dist/styles/scrollbars.css +18 -0
  324. package/dist/users/NotionUser.d.ts +21 -0
  325. package/dist/users/NotionUser.d.ts.map +1 -0
  326. package/dist/users/NotionUser.js +51 -0
  327. package/dist/users/bridge/toNotionUserDataFromBridgeUser.d.ts +4 -0
  328. package/dist/users/bridge/toNotionUserDataFromBridgeUser.d.ts.map +1 -0
  329. package/dist/users/bridge/{toNotionUserFromBridgeUser.js → toNotionUserDataFromBridgeUser.js} +2 -2
  330. package/dist/users/getUser.d.ts +1 -1
  331. package/dist/users/getUser.d.ts.map +1 -1
  332. package/dist/users/getUser.js +3 -3
  333. package/dist/users/getViewer.d.ts +19 -0
  334. package/dist/users/getViewer.d.ts.map +1 -0
  335. package/dist/users/getViewer.js +21 -0
  336. package/dist/users/listUsers.d.ts.map +1 -1
  337. package/dist/users/listUsers.js +15 -5
  338. package/dist/users/types.d.ts +9 -7
  339. package/dist/users/types.d.ts.map +1 -1
  340. package/dist/users.d.ts +9 -0
  341. package/dist/users.d.ts.map +1 -0
  342. package/dist/users.js +3 -0
  343. package/dist/utils/makeUuid.d.ts +2 -0
  344. package/dist/utils/makeUuid.d.ts.map +1 -0
  345. package/dist/utils/makeUuid.js +3 -0
  346. package/dist/utils/notifyListener.d.ts.map +1 -1
  347. package/dist/utils/typeUtils.d.ts.map +1 -1
  348. package/dist/utils/unreachable.d.ts +1 -5
  349. package/dist/utils/unreachable.d.ts.map +1 -1
  350. package/dist/utils/unreachable.js +1 -5
  351. package/dist/utils/version.d.ts.map +1 -1
  352. package/dist/utils/version.js +1 -1
  353. package/docs/block-location.md +121 -128
  354. package/docs/data-sources.md +243 -380
  355. package/docs/deployment.md +11 -17
  356. package/docs/errors.md +91 -68
  357. package/docs/grants.md +25 -29
  358. package/docs/lifecycle.md +94 -188
  359. package/docs/links.md +14 -16
  360. package/docs/local-development.md +39 -0
  361. package/docs/pages.md +207 -184
  362. package/docs/users.md +81 -126
  363. package/package.json +22 -1
  364. package/src/bridge/SandboxBridge.ts +315 -89
  365. package/src/{context/applyContextMessage.ts → bridge/applyHostStateMessage.ts} +9 -9
  366. package/src/bridge/createBrowserSandboxBridge.ts +64 -0
  367. package/src/bridge/getBridge.ts +3 -2
  368. package/src/{context → bridge}/getInitializedHostState.ts +2 -2
  369. package/src/bridge/hostState.ts +31 -0
  370. package/src/bridge/initialization/SandboxInitialization.ts +343 -123
  371. package/src/bridge/requests.ts +6 -3
  372. package/src/bridge/sandboxEnvironment.ts +38 -0
  373. package/src/{context/subscribeToContext.ts → bridge/subscribeToHostStateField.ts} +11 -9
  374. package/src/data-sources.ts +24 -0
  375. package/src/dataSources/NotionDataSource.ts +114 -0
  376. package/src/dataSources/bridge/DataSourceCache.ts +94 -0
  377. package/src/dataSources/bridge/applyDataSourceBindings.ts +1 -1
  378. package/src/dataSources/bridge/makeDataSourceReadResponseSchema.ts +29 -0
  379. package/src/dataSources/bridge/resolveDataSourceQuery.ts +2 -2
  380. package/src/dataSources/bridge/resolveDataSources.ts +1 -1
  381. package/src/dataSources/bridge/reuseDataSourcesForUnchangedBindings.ts +5 -5
  382. package/src/dataSources/dataSourceState.ts +65 -0
  383. package/src/dataSources/ensureDataSource.ts +33 -0
  384. package/src/dataSources/getDataSourcePage.ts +8 -3
  385. package/src/dataSources/observeDataSource.ts +94 -0
  386. package/src/dataSources/properties/resolvePropertyWriteMapForDataSource.ts +3 -3
  387. package/src/dataSources/resolvePageDataSource.ts +1 -1
  388. package/src/dataSources/subscribeToDataSource.ts +78 -49
  389. package/src/dataSources/types.ts +16 -16
  390. package/src/files/files.ts +1 -1
  391. package/src/index.ts +25 -66
  392. package/src/initialization/initCustomBlock.ts +9 -5
  393. package/src/initialization/notifyReady.ts +15 -0
  394. package/src/initialization/react/useCustomBlockInit.ts +22 -37
  395. package/src/initialization/resolveInitialState.ts +13 -32
  396. package/src/initialization/types.ts +20 -14
  397. package/src/layout/autoResize.ts +57 -40
  398. package/src/location/getContainingPage.ts +14 -0
  399. package/src/location/getInstance.ts +10 -0
  400. package/src/location/getParent.ts +14 -0
  401. package/src/location/mapContainingPage.ts +13 -0
  402. package/src/location/mapParent.ts +23 -0
  403. package/src/location/subscribeToContainingPage.ts +14 -0
  404. package/src/location/subscribeToParent.ts +14 -0
  405. package/src/location/types.ts +29 -0
  406. package/src/manifest/getManifest.ts +2 -2
  407. package/src/navigation/openExternalUrl.ts +1 -1
  408. package/src/navigation.ts +45 -0
  409. package/src/pages/NotionPage.ts +144 -0
  410. package/src/pages/bridge/getPageForDataSource.ts +3 -3
  411. package/src/pages/bridge/resolveCreatePageDestination.ts +1 -1
  412. package/src/pages/bridge/sendCreatePageRequest.ts +3 -2
  413. package/src/pages/bridge/toNotionPageFromBridgePage.ts +45 -19
  414. package/src/pages/bridge/toNotionPagePropertyFromBridgeProperty.ts +2 -2
  415. package/src/pages/bridge/updatePage.ts +6 -6
  416. package/src/pages/createPage.ts +14 -1
  417. package/src/pages/getPage.ts +2 -2
  418. package/src/pages/identityBlockKey.ts +10 -0
  419. package/src/pages/identityPageKey.ts +13 -0
  420. package/src/pages/parent.ts +0 -10
  421. package/src/pages/types.ts +32 -45
  422. package/src/pages.ts +144 -0
  423. package/src/{context → preferences}/getContrastMode.ts +1 -1
  424. package/src/{context → preferences}/getTheme.ts +1 -1
  425. package/src/{context → preferences}/subscribeToContrastMode.ts +3 -3
  426. package/src/{context → preferences}/subscribeToTheme.ts +3 -3
  427. package/src/{context → preferences}/syncDocumentAppearance.ts +3 -5
  428. package/src/preferences.ts +6 -0
  429. package/src/react/NotionCustomBlock.tsx +21 -52
  430. package/src/react/index.ts +20 -16
  431. package/src/react/useAsyncRead.ts +44 -0
  432. package/src/react/useContainingPage.ts +20 -0
  433. package/src/react/useLiveLocationRead.ts +53 -0
  434. package/src/react/usePage.ts +61 -0
  435. package/src/react/useParent.ts +22 -0
  436. package/src/react/useQuerySubscription.ts +71 -0
  437. package/src/react/useUserFields.ts +24 -0
  438. package/src/react/useViewer.ts +7 -0
  439. package/src/styles/scrollbars.css +18 -0
  440. package/src/users/NotionUser.ts +70 -0
  441. package/src/users/bridge/{toNotionUserFromBridgeUser.ts → toNotionUserDataFromBridgeUser.ts} +6 -3
  442. package/src/users/getUser.ts +3 -3
  443. package/src/users/getViewer.ts +36 -0
  444. package/src/users/listUsers.ts +15 -5
  445. package/src/users/types.ts +9 -7
  446. package/src/users.ts +20 -0
  447. package/src/utils/makeUuid.ts +3 -0
  448. package/src/utils/unreachable.ts +1 -6
  449. package/dist/bridge/parseHostToSandboxMessage.d.ts +0 -3678
  450. package/dist/bridge/parseHostToSandboxMessage.d.ts.map +0 -1
  451. package/dist/bridge/parseHostToSandboxMessage.js +0 -47
  452. package/dist/context/applyContextMessage.d.ts.map +0 -1
  453. package/dist/context/backgroundColors.d.ts.map +0 -1
  454. package/dist/context/getBlockId.d.ts +0 -7
  455. package/dist/context/getBlockId.d.ts.map +0 -1
  456. package/dist/context/getBlockId.js +0 -8
  457. package/dist/context/getContrastMode.d.ts.map +0 -1
  458. package/dist/context/getInitializedHostState.d.ts.map +0 -1
  459. package/dist/context/getInitializedHostState.js +0 -8
  460. package/dist/context/getPage.d.ts +0 -7
  461. package/dist/context/getPage.d.ts.map +0 -1
  462. package/dist/context/getPage.js +0 -8
  463. package/dist/context/getParent.d.ts +0 -7
  464. package/dist/context/getParent.d.ts.map +0 -1
  465. package/dist/context/getParent.js +0 -8
  466. package/dist/context/getTheme.d.ts.map +0 -1
  467. package/dist/context/hostState.d.ts +0 -15
  468. package/dist/context/hostState.d.ts.map +0 -1
  469. package/dist/context/index.d.ts +0 -42
  470. package/dist/context/index.d.ts.map +0 -1
  471. package/dist/context/index.js +0 -41
  472. package/dist/context/react/useBlockId.d.ts +0 -11
  473. package/dist/context/react/useBlockId.d.ts.map +0 -1
  474. package/dist/context/react/useBlockId.js +0 -14
  475. package/dist/context/react/useContrastMode.d.ts.map +0 -1
  476. package/dist/context/react/usePage.d.ts +0 -12
  477. package/dist/context/react/usePage.d.ts.map +0 -1
  478. package/dist/context/react/usePage.js +0 -15
  479. package/dist/context/react/useParent.d.ts +0 -12
  480. package/dist/context/react/useParent.d.ts.map +0 -1
  481. package/dist/context/react/useParent.js +0 -15
  482. package/dist/context/react/useTheme.d.ts.map +0 -1
  483. package/dist/context/subscribeToBlockId.d.ts +0 -8
  484. package/dist/context/subscribeToBlockId.d.ts.map +0 -1
  485. package/dist/context/subscribeToBlockId.js +0 -8
  486. package/dist/context/subscribeToContext.d.ts +0 -12
  487. package/dist/context/subscribeToContext.d.ts.map +0 -1
  488. package/dist/context/subscribeToContrastMode.d.ts.map +0 -1
  489. package/dist/context/subscribeToPage.d.ts +0 -8
  490. package/dist/context/subscribeToPage.d.ts.map +0 -1
  491. package/dist/context/subscribeToPage.js +0 -8
  492. package/dist/context/subscribeToParent.d.ts +0 -8
  493. package/dist/context/subscribeToParent.d.ts.map +0 -1
  494. package/dist/context/subscribeToParent.js +0 -8
  495. package/dist/context/subscribeToTheme.d.ts.map +0 -1
  496. package/dist/context/syncDocumentAppearance.d.ts +0 -14
  497. package/dist/context/syncDocumentAppearance.d.ts.map +0 -1
  498. package/dist/dataSources/createDataSourcePage.d.ts +0 -4
  499. package/dist/dataSources/createDataSourcePage.d.ts.map +0 -1
  500. package/dist/dataSources/createDataSourcePage.js +0 -44
  501. package/dist/dataSources/index.d.ts +0 -9
  502. package/dist/dataSources/index.d.ts.map +0 -1
  503. package/dist/dataSources/index.js +0 -8
  504. package/dist/dataSources/queryDataSource.d.ts +0 -3
  505. package/dist/dataSources/queryDataSource.d.ts.map +0 -1
  506. package/dist/dataSources/queryDataSource.js +0 -56
  507. package/dist/dataSources/react/useDataSource.d.ts +0 -13
  508. package/dist/dataSources/react/useDataSource.d.ts.map +0 -1
  509. package/dist/dataSources/react/useDataSource.js +0 -58
  510. package/dist/initialization/getInitBindingError.d.ts +0 -5
  511. package/dist/initialization/getInitBindingError.d.ts.map +0 -1
  512. package/dist/initialization/getInitBindingError.js +0 -26
  513. package/dist/layout/postResize.d.ts +0 -2
  514. package/dist/layout/postResize.d.ts.map +0 -1
  515. package/dist/layout/postResize.js +0 -12
  516. package/dist/manifest/react/useManifest.d.ts +0 -15
  517. package/dist/manifest/react/useManifest.d.ts.map +0 -1
  518. package/dist/manifest/react/useManifest.js +0 -18
  519. package/dist/manifest/subscribeToManifest.d.ts +0 -8
  520. package/dist/manifest/subscribeToManifest.d.ts.map +0 -1
  521. package/dist/manifest/subscribeToManifest.js +0 -8
  522. package/dist/navigation/index.d.ts +0 -5
  523. package/dist/navigation/index.d.ts.map +0 -1
  524. package/dist/navigation/index.js +0 -4
  525. package/dist/pages/bridge/makeUpdatePageByKey.d.ts +0 -8
  526. package/dist/pages/bridge/makeUpdatePageByKey.d.ts.map +0 -1
  527. package/dist/pages/bridge/makeUpdatePageByKey.js +0 -17
  528. package/dist/pages/bridge/toNotionPageFieldsFromBridgePage.d.ts +0 -89
  529. package/dist/pages/bridge/toNotionPageFieldsFromBridgePage.d.ts.map +0 -1
  530. package/dist/pages/bridge/toNotionPageFieldsFromBridgePage.js +0 -24
  531. package/dist/pages/bridge/updateNotionPageFromBridgePage.d.ts +0 -4
  532. package/dist/pages/bridge/updateNotionPageFromBridgePage.d.ts.map +0 -1
  533. package/dist/pages/bridge/updateNotionPageFromBridgePage.js +0 -4
  534. package/dist/pages/index.d.ts +0 -9
  535. package/dist/pages/index.d.ts.map +0 -1
  536. package/dist/pages/index.js +0 -8
  537. package/dist/pages/makeNotionPage.d.ts +0 -11
  538. package/dist/pages/makeNotionPage.d.ts.map +0 -1
  539. package/dist/pages/makeNotionPage.js +0 -34
  540. package/dist/pages/properties/getPropertyById.d.ts +0 -6
  541. package/dist/pages/properties/getPropertyById.d.ts.map +0 -1
  542. package/dist/pages/properties/getPropertyById.js +0 -3
  543. package/dist/pages/properties/getPropertyByKey.d.ts +0 -9
  544. package/dist/pages/properties/getPropertyByKey.d.ts.map +0 -1
  545. package/dist/pages/properties/getPropertyByKey.js +0 -16
  546. package/dist/protocol/compatibility/protocol3To10/dataSourceBindings.d.ts +0 -530
  547. package/dist/protocol/compatibility/protocol3To10/dataSourceBindings.js +0 -25
  548. package/dist/protocol/compatibility/protocol3To5/bridgePage.js +0 -21
  549. package/dist/protocol/compatibility/protocol3To5/dataSourcePage.d.ts +0 -73
  550. package/dist/protocol/compatibility/protocol3To5/dataSourcePage.js +0 -14
  551. package/dist/protocol/compatibility/protocol3To5/dataSourceValue.d.ts +0 -66
  552. package/dist/protocol/compatibility/protocol3To5/dataSourceValue.js +0 -14
  553. package/dist/protocol/dataSources/messages/dataSourcesChanged.d.ts +0 -150
  554. package/dist/protocol/dataSources/messages/dataSourcesChanged.js +0 -13
  555. package/dist/protocol/index.d.ts +0 -158
  556. package/dist/protocol/index.js +0 -80
  557. package/dist/protocol/users/messages/currentUserChanged.d.ts +0 -18
  558. package/dist/protocol/users/messages/currentUserChanged.js +0 -9
  559. package/dist/react/NotionTokenScope.d.ts +0 -10
  560. package/dist/react/NotionTokenScope.d.ts.map +0 -1
  561. package/dist/react/NotionTokenScope.js +0 -12
  562. package/dist/users/bridge/toNotionUserFromBridgeUser.d.ts +0 -4
  563. package/dist/users/bridge/toNotionUserFromBridgeUser.d.ts.map +0 -1
  564. package/dist/users/getCurrentUser.d.ts +0 -7
  565. package/dist/users/getCurrentUser.d.ts.map +0 -1
  566. package/dist/users/getCurrentUser.js +0 -8
  567. package/dist/users/index.d.ts +0 -7
  568. package/dist/users/index.d.ts.map +0 -1
  569. package/dist/users/index.js +0 -6
  570. package/dist/users/react/useCurrentUser.d.ts +0 -12
  571. package/dist/users/react/useCurrentUser.d.ts.map +0 -1
  572. package/dist/users/react/useCurrentUser.js +0 -15
  573. package/dist/users/subscribeToCurrentUser.d.ts +0 -8
  574. package/dist/users/subscribeToCurrentUser.d.ts.map +0 -1
  575. package/dist/users/subscribeToCurrentUser.js +0 -8
  576. package/src/bridge/parseHostToSandboxMessage.ts +0 -54
  577. package/src/context/getBlockId.ts +0 -10
  578. package/src/context/getPage.ts +0 -10
  579. package/src/context/getParent.ts +0 -10
  580. package/src/context/hostState.ts +0 -17
  581. package/src/context/index.ts +0 -42
  582. package/src/context/react/useBlockId.ts +0 -16
  583. package/src/context/react/usePage.ts +0 -17
  584. package/src/context/react/useParent.ts +0 -17
  585. package/src/context/subscribeToBlockId.ts +0 -13
  586. package/src/context/subscribeToPage.ts +0 -13
  587. package/src/context/subscribeToParent.ts +0 -13
  588. package/src/dataSources/createDataSourcePage.ts +0 -50
  589. package/src/dataSources/index.ts +0 -9
  590. package/src/dataSources/queryDataSource.ts +0 -62
  591. package/src/dataSources/react/useDataSource.ts +0 -71
  592. package/src/initialization/getInitBindingError.ts +0 -39
  593. package/src/layout/postResize.ts +0 -15
  594. package/src/manifest/react/useManifest.ts +0 -20
  595. package/src/manifest/subscribeToManifest.ts +0 -13
  596. package/src/navigation/index.ts +0 -5
  597. package/src/pages/bridge/makeUpdatePageByKey.ts +0 -25
  598. package/src/pages/bridge/toNotionPageFieldsFromBridgePage.ts +0 -27
  599. package/src/pages/bridge/updateNotionPageFromBridgePage.ts +0 -10
  600. package/src/pages/index.ts +0 -9
  601. package/src/pages/makeNotionPage.ts +0 -55
  602. package/src/pages/properties/getPropertyById.ts +0 -12
  603. package/src/pages/properties/getPropertyByKey.ts +0 -30
  604. package/src/react/NotionTokenScope.tsx +0 -26
  605. package/src/styles/nds.css.metadata.json +0 -6
  606. package/src/users/getCurrentUser.ts +0 -10
  607. package/src/users/index.ts +0 -7
  608. package/src/users/react/useCurrentUser.ts +0 -17
  609. package/src/users/subscribeToCurrentUser.ts +0 -13
  610. /package/dist/{context → bridge}/getInitializedHostState.d.ts +0 -0
  611. /package/dist/{context → bridge}/hostState.js +0 -0
  612. /package/dist/{context → preferences}/backgroundColors.d.ts +0 -0
  613. /package/dist/{context → preferences}/backgroundColors.js +0 -0
  614. /package/dist/{context → preferences}/getContrastMode.d.ts +0 -0
  615. /package/dist/{context → preferences}/getTheme.d.ts +0 -0
  616. /package/dist/{context → preferences}/react/useContrastMode.d.ts +0 -0
  617. /package/dist/{context → preferences}/react/useContrastMode.js +0 -0
  618. /package/dist/{context → preferences}/react/useTheme.d.ts +0 -0
  619. /package/dist/{context → preferences}/react/useTheme.js +0 -0
  620. /package/src/{context → preferences}/backgroundColors.ts +0 -0
  621. /package/src/{context → preferences}/react/useContrastMode.ts +0 -0
  622. /package/src/{context → preferences}/react/useTheme.ts +0 -0
@@ -1,3678 +0,0 @@
1
- import * as v from "valibot";
2
- /**
3
- * Older hosts such as 0.9.0 send `collectionPointer` and `collectionSchema` during
4
- * initialization and live updates. Normalize these pre-protocol-11 names to
5
- * `dataSourcePointer` and `dataSourceSchema` before exposing bindings to SDK consumers.
6
- * Current fields take precedence when both names are present. Malformed fields and
7
- * invalid property mappings still fail validation; this compatibility does not add
8
- * host operations or repair bindings the Notion client cannot read from storage.
9
- */
10
- export declare function parseHostToSandboxMessage(data: unknown): {
11
- readonly typed: true;
12
- readonly success: true;
13
- readonly output: {
14
- type: "getPageResult";
15
- requestId: string;
16
- status: "success";
17
- page: {
18
- object: "page";
19
- id: string & v.Brand<"NotionPageId">;
20
- parent: {
21
- type: "page_id";
22
- page_id: string & v.Brand<"NotionPageId">;
23
- } | {
24
- type: "data_source_id";
25
- data_source_id: string & v.Brand<"NotionDataSourceId">;
26
- } | {
27
- type: "workspace";
28
- workspace: true;
29
- } | {
30
- type: "block_id";
31
- block_id: string & v.Brand<"NotionBlockId">;
32
- } | {
33
- type: "agent_id";
34
- agent_id: string & v.Brand<"NotionAgentId">;
35
- } | {
36
- type: "app_installation_id";
37
- app_installation_id: string & v.Brand<"NotionAppInstallationId">;
38
- } | {
39
- type: "unavailable";
40
- };
41
- properties: {
42
- [x: string]: {
43
- id: string;
44
- type: "title";
45
- title: {
46
- [x: string]: unknown;
47
- }[];
48
- } | {
49
- id: string;
50
- type: "rich_text";
51
- rich_text: {
52
- [x: string]: unknown;
53
- }[];
54
- } | {
55
- id: string;
56
- type: "number";
57
- number: number | null;
58
- } | {
59
- id: string;
60
- type: "url";
61
- url: string | null;
62
- } | {
63
- id: string;
64
- type: "email";
65
- email: string | null;
66
- } | {
67
- id: string;
68
- type: "phone_number";
69
- phone_number: string | null;
70
- } | {
71
- id: string;
72
- type: "checkbox";
73
- checkbox: boolean;
74
- } | {
75
- id: string;
76
- type: "select";
77
- select: {
78
- id: string;
79
- name?: string | undefined;
80
- color?: string | undefined;
81
- description?: string | null | undefined;
82
- } | {
83
- name: string;
84
- id?: string | undefined;
85
- color?: string | undefined;
86
- description?: string | null | undefined;
87
- } | null;
88
- } | {
89
- id: string;
90
- type: "status";
91
- status: {
92
- id: string;
93
- name?: string | undefined;
94
- color?: string | undefined;
95
- description?: string | null | undefined;
96
- } | {
97
- name: string;
98
- id?: string | undefined;
99
- color?: string | undefined;
100
- description?: string | null | undefined;
101
- } | null;
102
- } | {
103
- id: string;
104
- type: "multi_select";
105
- multi_select: ({
106
- id: string;
107
- name?: string | undefined;
108
- color?: string | undefined;
109
- description?: string | null | undefined;
110
- } | {
111
- name: string;
112
- id?: string | undefined;
113
- color?: string | undefined;
114
- description?: string | null | undefined;
115
- })[];
116
- } | {
117
- id: string;
118
- type: "date";
119
- date: {
120
- end?: string | null | undefined;
121
- time_zone?: string | null | undefined;
122
- reminder?: {
123
- unit: "day" | "month" | "week" | "year";
124
- value: number;
125
- time: string;
126
- defaultTimeZone?: string | undefined;
127
- } | {
128
- unit: "hour" | "minute";
129
- value: number;
130
- } | {
131
- unit: "none";
132
- } | undefined;
133
- start: string;
134
- } | {
135
- start: string;
136
- end?: string | null | undefined;
137
- reminder?: {
138
- unit: "day" | "month" | "week" | "year";
139
- value: number;
140
- time: string;
141
- defaultTimeZone?: string | undefined;
142
- } | {
143
- unit: "hour" | "minute";
144
- value: number;
145
- } | {
146
- unit: "none";
147
- } | undefined;
148
- time_zone: string;
149
- } | {
150
- start: string;
151
- end?: string | null | undefined;
152
- time_zone?: string | null | undefined;
153
- reminder?: {
154
- unit: "day" | "month" | "week" | "year";
155
- value: number;
156
- time: string;
157
- defaultTimeZone?: string | undefined;
158
- } | {
159
- unit: "none";
160
- } | undefined;
161
- } | null;
162
- } | {
163
- id: string;
164
- type: "people";
165
- people: ({
166
- object?: "user" | undefined;
167
- id: string;
168
- } | {
169
- object: "group";
170
- id: string;
171
- name?: string | null | undefined;
172
- })[];
173
- } | {
174
- id: string;
175
- type: "relation";
176
- has_more?: boolean | undefined;
177
- relation: {
178
- id: string;
179
- }[];
180
- } | {
181
- id: string;
182
- type: "files";
183
- files: ({
184
- type: "external";
185
- external: {
186
- url: string;
187
- };
188
- name: string;
189
- } | {
190
- type: "file";
191
- file: {
192
- url: string;
193
- expiry_time?: string | undefined;
194
- };
195
- name: string;
196
- })[];
197
- } | {
198
- id: string;
199
- type: "place";
200
- place: {
201
- lat: number;
202
- lon: number;
203
- name?: string | null | undefined;
204
- address?: string | null | undefined;
205
- aws_place_id?: string | null | undefined;
206
- google_place_id?: string | null | undefined;
207
- } | null;
208
- } | {
209
- id: string;
210
- type: "created_time";
211
- created_time: string | null;
212
- } | {
213
- id: string;
214
- type: "last_edited_time";
215
- last_edited_time: string | null;
216
- } | {
217
- id: string;
218
- type: "created_by";
219
- created_by: {
220
- id: string;
221
- table: "bot" | "notion_user" | "organization_bot";
222
- spaceId?: string | undefined;
223
- } | null;
224
- } | {
225
- id: string;
226
- type: "last_edited_by";
227
- last_edited_by: {
228
- id: string;
229
- table: "bot" | "notion_user" | "organization_bot";
230
- spaceId?: string | undefined;
231
- } | null;
232
- } | {
233
- id: string;
234
- type: "unique_id";
235
- unique_id: string;
236
- } | {
237
- id: string;
238
- type: "button";
239
- button: string;
240
- } | {
241
- id: string;
242
- type: "formula";
243
- formula: string;
244
- } | {
245
- id: string;
246
- type: "rollup";
247
- rollup: string;
248
- } | {
249
- id: string;
250
- type: "verification";
251
- verification: string;
252
- } | null;
253
- };
254
- created_by: {
255
- id: string;
256
- table: "bot" | "notion_user" | "organization_bot";
257
- spaceId?: string | undefined;
258
- } | null;
259
- last_edited_by: {
260
- id: string;
261
- table: "bot" | "notion_user" | "organization_bot";
262
- spaceId?: string | undefined;
263
- } | null;
264
- created_time: string | null;
265
- last_edited_time: string | null;
266
- icon: {
267
- type: "external";
268
- external: {
269
- url: string;
270
- };
271
- } | {
272
- type: "file";
273
- file: {
274
- url: string;
275
- expiry_time?: string | undefined;
276
- };
277
- } | {
278
- type: "emoji";
279
- emoji: string;
280
- } | {
281
- type: "custom_emoji";
282
- custom_emoji: {
283
- id: string;
284
- name?: string | undefined;
285
- url?: string | undefined;
286
- };
287
- } | ({
288
- type: "icon";
289
- icon: {
290
- name: string;
291
- color?: import("../protocol/icons.js").BridgeIconColor | undefined;
292
- } & {
293
- [key: string]: unknown;
294
- };
295
- } & {
296
- [key: string]: unknown;
297
- }) | null;
298
- cover: {
299
- type: "external";
300
- external: {
301
- url: string;
302
- };
303
- } | {
304
- type: "file";
305
- file: {
306
- url: string;
307
- expiry_time?: string | undefined;
308
- };
309
- } | null;
310
- url: string | null;
311
- public_url: string | null;
312
- is_archived: boolean;
313
- in_trash: boolean;
314
- };
315
- } | {
316
- type: "getPageResult";
317
- requestId: string;
318
- status: "error";
319
- error: {
320
- code: string;
321
- message: string;
322
- isRetryable: boolean;
323
- };
324
- } | {
325
- type: "contrastModeChanged";
326
- contrastMode: "high" | "standard";
327
- } | {
328
- type: "dataSourcesChanged";
329
- dataSources: {
330
- bindings: {
331
- [x: string]: {
332
- dataSourcePointer?: {
333
- id: string & v.Brand<"NotionDataSourceId">;
334
- table: string;
335
- spaceId?: (string & v.Brand<"NotionSpaceId">) | undefined;
336
- } | undefined;
337
- dataSourceSchema?: {
338
- id?: (string & v.Brand<"NotionDataSourceId">) | undefined;
339
- propertiesById: {
340
- [x: string]: {
341
- name: string;
342
- description?: string | undefined;
343
- type: "title";
344
- } | {
345
- name: string;
346
- description?: string | undefined;
347
- type: "rich_text";
348
- } | {
349
- name: string;
350
- description?: string | undefined;
351
- type: "number";
352
- } | {
353
- name: string;
354
- description?: string | undefined;
355
- type: "checkbox";
356
- } | {
357
- name: string;
358
- description?: string | undefined;
359
- type: "url";
360
- } | {
361
- name: string;
362
- description?: string | undefined;
363
- type: "email";
364
- } | {
365
- name: string;
366
- description?: string | undefined;
367
- type: "phone_number";
368
- } | {
369
- name: string;
370
- description?: string | undefined;
371
- type: "select";
372
- options: {
373
- id: string;
374
- name: string;
375
- 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;
376
- description?: string | undefined;
377
- }[];
378
- } | {
379
- name: string;
380
- description?: string | undefined;
381
- type: "multi_select";
382
- options: {
383
- id: string;
384
- name: string;
385
- 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;
386
- description?: string | undefined;
387
- }[];
388
- } | {
389
- name: string;
390
- description?: string | undefined;
391
- type: "status";
392
- options: {
393
- id: string;
394
- name: string;
395
- 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;
396
- description?: string | undefined;
397
- }[];
398
- groups: {
399
- id: string;
400
- name: string;
401
- 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;
402
- option_ids: string[];
403
- }[];
404
- } | {
405
- name: string;
406
- description?: string | undefined;
407
- type: "date";
408
- } | {
409
- name: string;
410
- description?: string | undefined;
411
- type: "people";
412
- } | {
413
- name: string;
414
- description?: string | undefined;
415
- type: "files";
416
- } | {
417
- name: string;
418
- description?: string | undefined;
419
- type: "unique_id";
420
- } | {
421
- name: string;
422
- description?: string | undefined;
423
- type: "relation";
424
- data_source_id?: string | undefined;
425
- dual_property?: {
426
- synced_property_id: string;
427
- synced_property_name: string;
428
- } | undefined;
429
- } | {
430
- name: string;
431
- description?: string | undefined;
432
- type: "place";
433
- } | {
434
- name: string;
435
- description?: string | undefined;
436
- type: "formula";
437
- } | {
438
- name: string;
439
- description?: string | undefined;
440
- type: "rollup";
441
- } | {
442
- name: string;
443
- description?: string | undefined;
444
- type: "button";
445
- } | {
446
- name: string;
447
- description?: string | undefined;
448
- type: "verification";
449
- } | {
450
- name: string;
451
- description?: string | undefined;
452
- type: "created_time";
453
- } | {
454
- name: string;
455
- description?: string | undefined;
456
- type: "last_edited_time";
457
- } | {
458
- name: string;
459
- description?: string | undefined;
460
- type: "created_by";
461
- } | {
462
- name: string;
463
- description?: string | undefined;
464
- type: "last_edited_by";
465
- };
466
- };
467
- } | undefined;
468
- propertyIdsByKey?: {
469
- [x: string]: string | undefined;
470
- } | undefined;
471
- inaccessible?: true | undefined;
472
- };
473
- };
474
- };
475
- } | {
476
- type: "init";
477
- initializationId: string;
478
- status: "success";
479
- theme: "dark" | "light";
480
- contrastMode: "high" | "standard";
481
- blockId: string & v.Brand<"NotionBlockId">;
482
- parent: {
483
- type: "page_id";
484
- page_id: string & v.Brand<"NotionPageId">;
485
- } | {
486
- type: "data_source_id";
487
- data_source_id: string & v.Brand<"NotionDataSourceId">;
488
- } | {
489
- type: "workspace";
490
- workspace: true;
491
- } | {
492
- type: "block_id";
493
- block_id: string & v.Brand<"NotionBlockId">;
494
- } | {
495
- type: "agent_id";
496
- agent_id: string & v.Brand<"NotionAgentId">;
497
- } | {
498
- type: "app_installation_id";
499
- app_installation_id: string & v.Brand<"NotionAppInstallationId">;
500
- } | {
501
- type: "unavailable";
502
- };
503
- page: {
504
- type: "unavailable";
505
- } | {
506
- type: "page";
507
- id: string & v.Brand<"NotionPageId">;
508
- parent: {
509
- type: "page_id";
510
- page_id: string & v.Brand<"NotionPageId">;
511
- } | {
512
- type: "data_source_id";
513
- data_source_id: string & v.Brand<"NotionDataSourceId">;
514
- } | {
515
- type: "workspace";
516
- workspace: true;
517
- } | {
518
- type: "block_id";
519
- block_id: string & v.Brand<"NotionBlockId">;
520
- } | {
521
- type: "agent_id";
522
- agent_id: string & v.Brand<"NotionAgentId">;
523
- } | {
524
- type: "app_installation_id";
525
- app_installation_id: string & v.Brand<"NotionAppInstallationId">;
526
- } | {
527
- type: "unavailable";
528
- };
529
- };
530
- manifest: {
531
- version: 1;
532
- name?: string | undefined;
533
- description?: string | undefined;
534
- slashCommand?: string | undefined;
535
- icon?: {
536
- type: "emoji";
537
- emoji: string;
538
- } | undefined;
539
- dataSources: {
540
- [x: string]: {
541
- name: string;
542
- description?: string | undefined;
543
- icon?: {
544
- type: "emoji";
545
- emoji: string;
546
- } | {
547
- type: "external";
548
- url: string;
549
- } | undefined;
550
- properties: {
551
- [x: string]: {
552
- name: string;
553
- description?: string | undefined;
554
- type: "button" | "checkbox" | "created_by" | "created_time" | "date" | "email" | "files" | "formula" | "last_edited_by" | "last_edited_time" | "multi_select" | "number" | "people" | "phone_number" | "place" | "relation" | "rich_text" | "rollup" | "select" | "status" | "title" | "unique_id" | "url" | "verification";
555
- };
556
- };
557
- };
558
- };
559
- pages?: {
560
- [x: string]: {
561
- name: string;
562
- description?: string | undefined;
563
- icon?: {
564
- type: "emoji";
565
- emoji: string;
566
- } | {
567
- type: "external";
568
- url: string;
569
- } | undefined;
570
- };
571
- } | undefined;
572
- grants?: {
573
- action: string;
574
- resource: string | string[];
575
- }[] | undefined;
576
- };
577
- dataSources: {
578
- bindings: {
579
- [x: string]: {
580
- dataSourcePointer?: {
581
- id: string & v.Brand<"NotionDataSourceId">;
582
- table: string;
583
- spaceId?: (string & v.Brand<"NotionSpaceId">) | undefined;
584
- } | undefined;
585
- dataSourceSchema?: {
586
- id?: (string & v.Brand<"NotionDataSourceId">) | undefined;
587
- propertiesById: {
588
- [x: string]: {
589
- name: string;
590
- description?: string | undefined;
591
- type: "title";
592
- } | {
593
- name: string;
594
- description?: string | undefined;
595
- type: "rich_text";
596
- } | {
597
- name: string;
598
- description?: string | undefined;
599
- type: "number";
600
- } | {
601
- name: string;
602
- description?: string | undefined;
603
- type: "checkbox";
604
- } | {
605
- name: string;
606
- description?: string | undefined;
607
- type: "url";
608
- } | {
609
- name: string;
610
- description?: string | undefined;
611
- type: "email";
612
- } | {
613
- name: string;
614
- description?: string | undefined;
615
- type: "phone_number";
616
- } | {
617
- name: string;
618
- description?: string | undefined;
619
- type: "select";
620
- options: {
621
- id: string;
622
- name: string;
623
- 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;
624
- description?: string | undefined;
625
- }[];
626
- } | {
627
- name: string;
628
- description?: string | undefined;
629
- type: "multi_select";
630
- options: {
631
- id: string;
632
- name: string;
633
- 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;
634
- description?: string | undefined;
635
- }[];
636
- } | {
637
- name: string;
638
- description?: string | undefined;
639
- type: "status";
640
- options: {
641
- id: string;
642
- name: string;
643
- 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;
644
- description?: string | undefined;
645
- }[];
646
- groups: {
647
- id: string;
648
- name: string;
649
- 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;
650
- option_ids: string[];
651
- }[];
652
- } | {
653
- name: string;
654
- description?: string | undefined;
655
- type: "date";
656
- } | {
657
- name: string;
658
- description?: string | undefined;
659
- type: "people";
660
- } | {
661
- name: string;
662
- description?: string | undefined;
663
- type: "files";
664
- } | {
665
- name: string;
666
- description?: string | undefined;
667
- type: "unique_id";
668
- } | {
669
- name: string;
670
- description?: string | undefined;
671
- type: "relation";
672
- data_source_id?: string | undefined;
673
- dual_property?: {
674
- synced_property_id: string;
675
- synced_property_name: string;
676
- } | undefined;
677
- } | {
678
- name: string;
679
- description?: string | undefined;
680
- type: "place";
681
- } | {
682
- name: string;
683
- description?: string | undefined;
684
- type: "formula";
685
- } | {
686
- name: string;
687
- description?: string | undefined;
688
- type: "rollup";
689
- } | {
690
- name: string;
691
- description?: string | undefined;
692
- type: "button";
693
- } | {
694
- name: string;
695
- description?: string | undefined;
696
- type: "verification";
697
- } | {
698
- name: string;
699
- description?: string | undefined;
700
- type: "created_time";
701
- } | {
702
- name: string;
703
- description?: string | undefined;
704
- type: "last_edited_time";
705
- } | {
706
- name: string;
707
- description?: string | undefined;
708
- type: "created_by";
709
- } | {
710
- name: string;
711
- description?: string | undefined;
712
- type: "last_edited_by";
713
- };
714
- };
715
- } | undefined;
716
- propertyIdsByKey?: {
717
- [x: string]: string | undefined;
718
- } | undefined;
719
- inaccessible?: true | undefined;
720
- };
721
- };
722
- };
723
- currentUser: {
724
- object: "user";
725
- id: string & v.Brand<"NotionUserId">;
726
- name?: string | undefined;
727
- avatar_url: string | null;
728
- type: "person";
729
- person: {
730
- email: string;
731
- };
732
- };
733
- } | {
734
- type: "init";
735
- initializationId: string;
736
- status: "error";
737
- error: {
738
- code: string;
739
- message: string;
740
- isRetryable: boolean;
741
- };
742
- } | {
743
- type: "themeChanged";
744
- theme: "dark" | "light";
745
- } | {
746
- type: "parentChanged";
747
- parent: {
748
- type: "page_id";
749
- page_id: string & v.Brand<"NotionPageId">;
750
- } | {
751
- type: "data_source_id";
752
- data_source_id: string & v.Brand<"NotionDataSourceId">;
753
- } | {
754
- type: "workspace";
755
- workspace: true;
756
- } | {
757
- type: "block_id";
758
- block_id: string & v.Brand<"NotionBlockId">;
759
- } | {
760
- type: "agent_id";
761
- agent_id: string & v.Brand<"NotionAgentId">;
762
- } | {
763
- type: "app_installation_id";
764
- app_installation_id: string & v.Brand<"NotionAppInstallationId">;
765
- } | {
766
- type: "unavailable";
767
- };
768
- } | {
769
- type: "pageChanged";
770
- page: {
771
- type: "unavailable";
772
- } | {
773
- type: "page";
774
- id: string & v.Brand<"NotionPageId">;
775
- parent: {
776
- type: "page_id";
777
- page_id: string & v.Brand<"NotionPageId">;
778
- } | {
779
- type: "data_source_id";
780
- data_source_id: string & v.Brand<"NotionDataSourceId">;
781
- } | {
782
- type: "workspace";
783
- workspace: true;
784
- } | {
785
- type: "block_id";
786
- block_id: string & v.Brand<"NotionBlockId">;
787
- } | {
788
- type: "agent_id";
789
- agent_id: string & v.Brand<"NotionAgentId">;
790
- } | {
791
- type: "app_installation_id";
792
- app_installation_id: string & v.Brand<"NotionAppInstallationId">;
793
- } | {
794
- type: "unavailable";
795
- };
796
- };
797
- } | {
798
- type: "currentUserChanged";
799
- currentUser: {
800
- object: "user";
801
- id: string & v.Brand<"NotionUserId">;
802
- name?: string | undefined;
803
- avatar_url: string | null;
804
- type: "person";
805
- person: {
806
- email: string;
807
- };
808
- };
809
- } | {
810
- type: "getUserResult";
811
- requestId: string;
812
- status: "success";
813
- user: {
814
- object: "user";
815
- id: string & v.Brand<"NotionUserId">;
816
- name?: string | undefined;
817
- avatar_url: string | null;
818
- type: "person";
819
- person: {
820
- email: string;
821
- };
822
- };
823
- } | {
824
- type: "getUserResult";
825
- requestId: string;
826
- status: "error";
827
- error: {
828
- code: string;
829
- message: string;
830
- isRetryable: boolean;
831
- };
832
- } | {
833
- type: "listUsersResult";
834
- requestId: string;
835
- status: "success";
836
- list: {
837
- object: "list";
838
- results: {
839
- object: "user";
840
- id: string & v.Brand<"NotionUserId">;
841
- name?: string | undefined;
842
- avatar_url: string | null;
843
- type: "person";
844
- person: {
845
- email: string;
846
- };
847
- }[];
848
- next_cursor: string | null;
849
- has_more: boolean;
850
- type: "user";
851
- user: {
852
- [x: string]: unknown;
853
- };
854
- };
855
- } | {
856
- type: "listUsersResult";
857
- requestId: string;
858
- status: "error";
859
- error: {
860
- code: string;
861
- message: string;
862
- isRetryable: boolean;
863
- };
864
- } | {
865
- type: "openPageResult";
866
- requestId: string;
867
- status: "success";
868
- pageId: string & v.Brand<"NotionPageId">;
869
- } | {
870
- type: "openPageResult";
871
- requestId: string;
872
- status: "error";
873
- error: {
874
- code: string;
875
- message: string;
876
- isRetryable: boolean;
877
- };
878
- } | {
879
- type: "openExternalUrlResult";
880
- requestId: string;
881
- status: "success";
882
- } | {
883
- type: "openExternalUrlResult";
884
- requestId: string;
885
- status: "error";
886
- error: {
887
- code: string;
888
- message: string;
889
- isRetryable: boolean;
890
- };
891
- } | {
892
- type: "invalidSandboxMessage";
893
- requestId?: string | undefined;
894
- reason: string;
895
- } | {
896
- type: "queryDataSourceResult";
897
- subscriptionId: string;
898
- status: "success";
899
- items: {
900
- object: "page";
901
- id: string & v.Brand<"NotionPageId">;
902
- parent: {
903
- type: "page_id";
904
- page_id: string & v.Brand<"NotionPageId">;
905
- } | {
906
- type: "data_source_id";
907
- data_source_id: string & v.Brand<"NotionDataSourceId">;
908
- } | {
909
- type: "workspace";
910
- workspace: true;
911
- } | {
912
- type: "block_id";
913
- block_id: string & v.Brand<"NotionBlockId">;
914
- } | {
915
- type: "agent_id";
916
- agent_id: string & v.Brand<"NotionAgentId">;
917
- } | {
918
- type: "app_installation_id";
919
- app_installation_id: string & v.Brand<"NotionAppInstallationId">;
920
- } | {
921
- type: "unavailable";
922
- };
923
- properties: {
924
- [x: string]: {
925
- id: string;
926
- type: "title";
927
- title: {
928
- [x: string]: unknown;
929
- }[];
930
- } | {
931
- id: string;
932
- type: "rich_text";
933
- rich_text: {
934
- [x: string]: unknown;
935
- }[];
936
- } | {
937
- id: string;
938
- type: "number";
939
- number: number | null;
940
- } | {
941
- id: string;
942
- type: "url";
943
- url: string | null;
944
- } | {
945
- id: string;
946
- type: "email";
947
- email: string | null;
948
- } | {
949
- id: string;
950
- type: "phone_number";
951
- phone_number: string | null;
952
- } | {
953
- id: string;
954
- type: "checkbox";
955
- checkbox: boolean;
956
- } | {
957
- id: string;
958
- type: "select";
959
- select: {
960
- id: string;
961
- name?: string | undefined;
962
- color?: string | undefined;
963
- description?: string | null | undefined;
964
- } | {
965
- name: string;
966
- id?: string | undefined;
967
- color?: string | undefined;
968
- description?: string | null | undefined;
969
- } | null;
970
- } | {
971
- id: string;
972
- type: "status";
973
- status: {
974
- id: string;
975
- name?: string | undefined;
976
- color?: string | undefined;
977
- description?: string | null | undefined;
978
- } | {
979
- name: string;
980
- id?: string | undefined;
981
- color?: string | undefined;
982
- description?: string | null | undefined;
983
- } | null;
984
- } | {
985
- id: string;
986
- type: "multi_select";
987
- multi_select: ({
988
- id: string;
989
- name?: string | undefined;
990
- color?: string | undefined;
991
- description?: string | null | undefined;
992
- } | {
993
- name: string;
994
- id?: string | undefined;
995
- color?: string | undefined;
996
- description?: string | null | undefined;
997
- })[];
998
- } | {
999
- id: string;
1000
- type: "date";
1001
- date: {
1002
- end?: string | null | undefined;
1003
- time_zone?: string | null | undefined;
1004
- reminder?: {
1005
- unit: "day" | "month" | "week" | "year";
1006
- value: number;
1007
- time: string;
1008
- defaultTimeZone?: string | undefined;
1009
- } | {
1010
- unit: "hour" | "minute";
1011
- value: number;
1012
- } | {
1013
- unit: "none";
1014
- } | undefined;
1015
- start: string;
1016
- } | {
1017
- start: string;
1018
- end?: string | null | undefined;
1019
- reminder?: {
1020
- unit: "day" | "month" | "week" | "year";
1021
- value: number;
1022
- time: string;
1023
- defaultTimeZone?: string | undefined;
1024
- } | {
1025
- unit: "hour" | "minute";
1026
- value: number;
1027
- } | {
1028
- unit: "none";
1029
- } | undefined;
1030
- time_zone: string;
1031
- } | {
1032
- start: string;
1033
- end?: string | null | undefined;
1034
- time_zone?: string | null | undefined;
1035
- reminder?: {
1036
- unit: "day" | "month" | "week" | "year";
1037
- value: number;
1038
- time: string;
1039
- defaultTimeZone?: string | undefined;
1040
- } | {
1041
- unit: "none";
1042
- } | undefined;
1043
- } | null;
1044
- } | {
1045
- id: string;
1046
- type: "people";
1047
- people: ({
1048
- object?: "user" | undefined;
1049
- id: string;
1050
- } | {
1051
- object: "group";
1052
- id: string;
1053
- name?: string | null | undefined;
1054
- })[];
1055
- } | {
1056
- id: string;
1057
- type: "relation";
1058
- has_more?: boolean | undefined;
1059
- relation: {
1060
- id: string;
1061
- }[];
1062
- } | {
1063
- id: string;
1064
- type: "files";
1065
- files: ({
1066
- type: "external";
1067
- external: {
1068
- url: string;
1069
- };
1070
- name: string;
1071
- } | {
1072
- type: "file";
1073
- file: {
1074
- url: string;
1075
- expiry_time?: string | undefined;
1076
- };
1077
- name: string;
1078
- })[];
1079
- } | {
1080
- id: string;
1081
- type: "place";
1082
- place: {
1083
- lat: number;
1084
- lon: number;
1085
- name?: string | null | undefined;
1086
- address?: string | null | undefined;
1087
- aws_place_id?: string | null | undefined;
1088
- google_place_id?: string | null | undefined;
1089
- } | null;
1090
- } | {
1091
- id: string;
1092
- type: "created_time";
1093
- created_time: string | null;
1094
- } | {
1095
- id: string;
1096
- type: "last_edited_time";
1097
- last_edited_time: string | null;
1098
- } | {
1099
- id: string;
1100
- type: "created_by";
1101
- created_by: {
1102
- id: string;
1103
- table: "bot" | "notion_user" | "organization_bot";
1104
- spaceId?: string | undefined;
1105
- } | null;
1106
- } | {
1107
- id: string;
1108
- type: "last_edited_by";
1109
- last_edited_by: {
1110
- id: string;
1111
- table: "bot" | "notion_user" | "organization_bot";
1112
- spaceId?: string | undefined;
1113
- } | null;
1114
- } | {
1115
- id: string;
1116
- type: "unique_id";
1117
- unique_id: string;
1118
- } | {
1119
- id: string;
1120
- type: "button";
1121
- button: string;
1122
- } | {
1123
- id: string;
1124
- type: "formula";
1125
- formula: string;
1126
- } | {
1127
- id: string;
1128
- type: "rollup";
1129
- rollup: string;
1130
- } | {
1131
- id: string;
1132
- type: "verification";
1133
- verification: string;
1134
- } | null;
1135
- };
1136
- created_by: {
1137
- id: string;
1138
- table: "bot" | "notion_user" | "organization_bot";
1139
- spaceId?: string | undefined;
1140
- } | null;
1141
- last_edited_by: {
1142
- id: string;
1143
- table: "bot" | "notion_user" | "organization_bot";
1144
- spaceId?: string | undefined;
1145
- } | null;
1146
- created_time: string | null;
1147
- last_edited_time: string | null;
1148
- icon: {
1149
- type: "external";
1150
- external: {
1151
- url: string;
1152
- };
1153
- } | {
1154
- type: "file";
1155
- file: {
1156
- url: string;
1157
- expiry_time?: string | undefined;
1158
- };
1159
- } | {
1160
- type: "emoji";
1161
- emoji: string;
1162
- } | {
1163
- type: "custom_emoji";
1164
- custom_emoji: {
1165
- id: string;
1166
- name?: string | undefined;
1167
- url?: string | undefined;
1168
- };
1169
- } | ({
1170
- type: "icon";
1171
- icon: {
1172
- name: string;
1173
- color?: import("../protocol/icons.js").BridgeIconColor | undefined;
1174
- } & {
1175
- [key: string]: unknown;
1176
- };
1177
- } & {
1178
- [key: string]: unknown;
1179
- }) | null;
1180
- cover: {
1181
- type: "external";
1182
- external: {
1183
- url: string;
1184
- };
1185
- } | {
1186
- type: "file";
1187
- file: {
1188
- url: string;
1189
- expiry_time?: string | undefined;
1190
- };
1191
- } | null;
1192
- url: string | null;
1193
- public_url: string | null;
1194
- is_archived: boolean;
1195
- in_trash: boolean;
1196
- }[];
1197
- hasMore: boolean;
1198
- limitClamp?: {
1199
- requested: number;
1200
- applied: number;
1201
- } | undefined;
1202
- } | {
1203
- type: "queryDataSourceResult";
1204
- subscriptionId: string;
1205
- status: "error";
1206
- error: {
1207
- code: string;
1208
- message: string;
1209
- isRetryable: boolean;
1210
- };
1211
- } | {
1212
- type: "createPageResult";
1213
- requestId: string;
1214
- status: "success";
1215
- page: {
1216
- object: "page";
1217
- id: string & v.Brand<"NotionPageId">;
1218
- parent: {
1219
- type: "page_id";
1220
- page_id: string & v.Brand<"NotionPageId">;
1221
- } | {
1222
- type: "data_source_id";
1223
- data_source_id: string & v.Brand<"NotionDataSourceId">;
1224
- } | {
1225
- type: "workspace";
1226
- workspace: true;
1227
- } | {
1228
- type: "block_id";
1229
- block_id: string & v.Brand<"NotionBlockId">;
1230
- } | {
1231
- type: "agent_id";
1232
- agent_id: string & v.Brand<"NotionAgentId">;
1233
- } | {
1234
- type: "app_installation_id";
1235
- app_installation_id: string & v.Brand<"NotionAppInstallationId">;
1236
- } | {
1237
- type: "unavailable";
1238
- };
1239
- properties: {
1240
- [x: string]: {
1241
- id: string;
1242
- type: "title";
1243
- title: {
1244
- [x: string]: unknown;
1245
- }[];
1246
- } | {
1247
- id: string;
1248
- type: "rich_text";
1249
- rich_text: {
1250
- [x: string]: unknown;
1251
- }[];
1252
- } | {
1253
- id: string;
1254
- type: "number";
1255
- number: number | null;
1256
- } | {
1257
- id: string;
1258
- type: "url";
1259
- url: string | null;
1260
- } | {
1261
- id: string;
1262
- type: "email";
1263
- email: string | null;
1264
- } | {
1265
- id: string;
1266
- type: "phone_number";
1267
- phone_number: string | null;
1268
- } | {
1269
- id: string;
1270
- type: "checkbox";
1271
- checkbox: boolean;
1272
- } | {
1273
- id: string;
1274
- type: "select";
1275
- select: {
1276
- id: string;
1277
- name?: string | undefined;
1278
- color?: string | undefined;
1279
- description?: string | null | undefined;
1280
- } | {
1281
- name: string;
1282
- id?: string | undefined;
1283
- color?: string | undefined;
1284
- description?: string | null | undefined;
1285
- } | null;
1286
- } | {
1287
- id: string;
1288
- type: "status";
1289
- status: {
1290
- id: string;
1291
- name?: string | undefined;
1292
- color?: string | undefined;
1293
- description?: string | null | undefined;
1294
- } | {
1295
- name: string;
1296
- id?: string | undefined;
1297
- color?: string | undefined;
1298
- description?: string | null | undefined;
1299
- } | null;
1300
- } | {
1301
- id: string;
1302
- type: "multi_select";
1303
- multi_select: ({
1304
- id: string;
1305
- name?: string | undefined;
1306
- color?: string | undefined;
1307
- description?: string | null | undefined;
1308
- } | {
1309
- name: string;
1310
- id?: string | undefined;
1311
- color?: string | undefined;
1312
- description?: string | null | undefined;
1313
- })[];
1314
- } | {
1315
- id: string;
1316
- type: "date";
1317
- date: {
1318
- end?: string | null | undefined;
1319
- time_zone?: string | null | undefined;
1320
- reminder?: {
1321
- unit: "day" | "month" | "week" | "year";
1322
- value: number;
1323
- time: string;
1324
- defaultTimeZone?: string | undefined;
1325
- } | {
1326
- unit: "hour" | "minute";
1327
- value: number;
1328
- } | {
1329
- unit: "none";
1330
- } | undefined;
1331
- start: string;
1332
- } | {
1333
- start: string;
1334
- end?: string | null | undefined;
1335
- reminder?: {
1336
- unit: "day" | "month" | "week" | "year";
1337
- value: number;
1338
- time: string;
1339
- defaultTimeZone?: string | undefined;
1340
- } | {
1341
- unit: "hour" | "minute";
1342
- value: number;
1343
- } | {
1344
- unit: "none";
1345
- } | undefined;
1346
- time_zone: string;
1347
- } | {
1348
- start: string;
1349
- end?: string | null | undefined;
1350
- time_zone?: string | null | undefined;
1351
- reminder?: {
1352
- unit: "day" | "month" | "week" | "year";
1353
- value: number;
1354
- time: string;
1355
- defaultTimeZone?: string | undefined;
1356
- } | {
1357
- unit: "none";
1358
- } | undefined;
1359
- } | null;
1360
- } | {
1361
- id: string;
1362
- type: "people";
1363
- people: ({
1364
- object?: "user" | undefined;
1365
- id: string;
1366
- } | {
1367
- object: "group";
1368
- id: string;
1369
- name?: string | null | undefined;
1370
- })[];
1371
- } | {
1372
- id: string;
1373
- type: "relation";
1374
- has_more?: boolean | undefined;
1375
- relation: {
1376
- id: string;
1377
- }[];
1378
- } | {
1379
- id: string;
1380
- type: "files";
1381
- files: ({
1382
- type: "external";
1383
- external: {
1384
- url: string;
1385
- };
1386
- name: string;
1387
- } | {
1388
- type: "file";
1389
- file: {
1390
- url: string;
1391
- expiry_time?: string | undefined;
1392
- };
1393
- name: string;
1394
- })[];
1395
- } | {
1396
- id: string;
1397
- type: "place";
1398
- place: {
1399
- lat: number;
1400
- lon: number;
1401
- name?: string | null | undefined;
1402
- address?: string | null | undefined;
1403
- aws_place_id?: string | null | undefined;
1404
- google_place_id?: string | null | undefined;
1405
- } | null;
1406
- } | {
1407
- id: string;
1408
- type: "created_time";
1409
- created_time: string | null;
1410
- } | {
1411
- id: string;
1412
- type: "last_edited_time";
1413
- last_edited_time: string | null;
1414
- } | {
1415
- id: string;
1416
- type: "created_by";
1417
- created_by: {
1418
- id: string;
1419
- table: "bot" | "notion_user" | "organization_bot";
1420
- spaceId?: string | undefined;
1421
- } | null;
1422
- } | {
1423
- id: string;
1424
- type: "last_edited_by";
1425
- last_edited_by: {
1426
- id: string;
1427
- table: "bot" | "notion_user" | "organization_bot";
1428
- spaceId?: string | undefined;
1429
- } | null;
1430
- } | {
1431
- id: string;
1432
- type: "unique_id";
1433
- unique_id: string;
1434
- } | {
1435
- id: string;
1436
- type: "button";
1437
- button: string;
1438
- } | {
1439
- id: string;
1440
- type: "formula";
1441
- formula: string;
1442
- } | {
1443
- id: string;
1444
- type: "rollup";
1445
- rollup: string;
1446
- } | {
1447
- id: string;
1448
- type: "verification";
1449
- verification: string;
1450
- } | null;
1451
- };
1452
- created_by: {
1453
- id: string;
1454
- table: "bot" | "notion_user" | "organization_bot";
1455
- spaceId?: string | undefined;
1456
- } | null;
1457
- last_edited_by: {
1458
- id: string;
1459
- table: "bot" | "notion_user" | "organization_bot";
1460
- spaceId?: string | undefined;
1461
- } | null;
1462
- created_time: string | null;
1463
- last_edited_time: string | null;
1464
- icon: {
1465
- type: "external";
1466
- external: {
1467
- url: string;
1468
- };
1469
- } | {
1470
- type: "file";
1471
- file: {
1472
- url: string;
1473
- expiry_time?: string | undefined;
1474
- };
1475
- } | {
1476
- type: "emoji";
1477
- emoji: string;
1478
- } | {
1479
- type: "custom_emoji";
1480
- custom_emoji: {
1481
- id: string;
1482
- name?: string | undefined;
1483
- url?: string | undefined;
1484
- };
1485
- } | ({
1486
- type: "icon";
1487
- icon: {
1488
- name: string;
1489
- color?: import("../protocol/icons.js").BridgeIconColor | undefined;
1490
- } & {
1491
- [key: string]: unknown;
1492
- };
1493
- } & {
1494
- [key: string]: unknown;
1495
- }) | null;
1496
- cover: {
1497
- type: "external";
1498
- external: {
1499
- url: string;
1500
- };
1501
- } | {
1502
- type: "file";
1503
- file: {
1504
- url: string;
1505
- expiry_time?: string | undefined;
1506
- };
1507
- } | null;
1508
- url: string | null;
1509
- public_url: string | null;
1510
- is_archived: boolean;
1511
- in_trash: boolean;
1512
- };
1513
- } | {
1514
- type: "createPageResult";
1515
- requestId: string;
1516
- status: "error";
1517
- error: {
1518
- code: string;
1519
- message: string;
1520
- isRetryable: boolean;
1521
- };
1522
- } | {
1523
- type: "updatePageResult";
1524
- requestId: string;
1525
- status: "success";
1526
- page: {
1527
- object: "page";
1528
- id: string & v.Brand<"NotionPageId">;
1529
- parent: {
1530
- type: "page_id";
1531
- page_id: string & v.Brand<"NotionPageId">;
1532
- } | {
1533
- type: "data_source_id";
1534
- data_source_id: string & v.Brand<"NotionDataSourceId">;
1535
- } | {
1536
- type: "workspace";
1537
- workspace: true;
1538
- } | {
1539
- type: "block_id";
1540
- block_id: string & v.Brand<"NotionBlockId">;
1541
- } | {
1542
- type: "agent_id";
1543
- agent_id: string & v.Brand<"NotionAgentId">;
1544
- } | {
1545
- type: "app_installation_id";
1546
- app_installation_id: string & v.Brand<"NotionAppInstallationId">;
1547
- } | {
1548
- type: "unavailable";
1549
- };
1550
- properties: {
1551
- [x: string]: {
1552
- id: string;
1553
- type: "title";
1554
- title: {
1555
- [x: string]: unknown;
1556
- }[];
1557
- } | {
1558
- id: string;
1559
- type: "rich_text";
1560
- rich_text: {
1561
- [x: string]: unknown;
1562
- }[];
1563
- } | {
1564
- id: string;
1565
- type: "number";
1566
- number: number | null;
1567
- } | {
1568
- id: string;
1569
- type: "url";
1570
- url: string | null;
1571
- } | {
1572
- id: string;
1573
- type: "email";
1574
- email: string | null;
1575
- } | {
1576
- id: string;
1577
- type: "phone_number";
1578
- phone_number: string | null;
1579
- } | {
1580
- id: string;
1581
- type: "checkbox";
1582
- checkbox: boolean;
1583
- } | {
1584
- id: string;
1585
- type: "select";
1586
- select: {
1587
- id: string;
1588
- name?: string | undefined;
1589
- color?: string | undefined;
1590
- description?: string | null | undefined;
1591
- } | {
1592
- name: string;
1593
- id?: string | undefined;
1594
- color?: string | undefined;
1595
- description?: string | null | undefined;
1596
- } | null;
1597
- } | {
1598
- id: string;
1599
- type: "status";
1600
- status: {
1601
- id: string;
1602
- name?: string | undefined;
1603
- color?: string | undefined;
1604
- description?: string | null | undefined;
1605
- } | {
1606
- name: string;
1607
- id?: string | undefined;
1608
- color?: string | undefined;
1609
- description?: string | null | undefined;
1610
- } | null;
1611
- } | {
1612
- id: string;
1613
- type: "multi_select";
1614
- multi_select: ({
1615
- id: string;
1616
- name?: string | undefined;
1617
- color?: string | undefined;
1618
- description?: string | null | undefined;
1619
- } | {
1620
- name: string;
1621
- id?: string | undefined;
1622
- color?: string | undefined;
1623
- description?: string | null | undefined;
1624
- })[];
1625
- } | {
1626
- id: string;
1627
- type: "date";
1628
- date: {
1629
- end?: string | null | undefined;
1630
- time_zone?: string | null | undefined;
1631
- reminder?: {
1632
- unit: "day" | "month" | "week" | "year";
1633
- value: number;
1634
- time: string;
1635
- defaultTimeZone?: string | undefined;
1636
- } | {
1637
- unit: "hour" | "minute";
1638
- value: number;
1639
- } | {
1640
- unit: "none";
1641
- } | undefined;
1642
- start: string;
1643
- } | {
1644
- start: string;
1645
- end?: string | null | undefined;
1646
- reminder?: {
1647
- unit: "day" | "month" | "week" | "year";
1648
- value: number;
1649
- time: string;
1650
- defaultTimeZone?: string | undefined;
1651
- } | {
1652
- unit: "hour" | "minute";
1653
- value: number;
1654
- } | {
1655
- unit: "none";
1656
- } | undefined;
1657
- time_zone: string;
1658
- } | {
1659
- start: string;
1660
- end?: string | null | undefined;
1661
- time_zone?: string | null | undefined;
1662
- reminder?: {
1663
- unit: "day" | "month" | "week" | "year";
1664
- value: number;
1665
- time: string;
1666
- defaultTimeZone?: string | undefined;
1667
- } | {
1668
- unit: "none";
1669
- } | undefined;
1670
- } | null;
1671
- } | {
1672
- id: string;
1673
- type: "people";
1674
- people: ({
1675
- object?: "user" | undefined;
1676
- id: string;
1677
- } | {
1678
- object: "group";
1679
- id: string;
1680
- name?: string | null | undefined;
1681
- })[];
1682
- } | {
1683
- id: string;
1684
- type: "relation";
1685
- has_more?: boolean | undefined;
1686
- relation: {
1687
- id: string;
1688
- }[];
1689
- } | {
1690
- id: string;
1691
- type: "files";
1692
- files: ({
1693
- type: "external";
1694
- external: {
1695
- url: string;
1696
- };
1697
- name: string;
1698
- } | {
1699
- type: "file";
1700
- file: {
1701
- url: string;
1702
- expiry_time?: string | undefined;
1703
- };
1704
- name: string;
1705
- })[];
1706
- } | {
1707
- id: string;
1708
- type: "place";
1709
- place: {
1710
- lat: number;
1711
- lon: number;
1712
- name?: string | null | undefined;
1713
- address?: string | null | undefined;
1714
- aws_place_id?: string | null | undefined;
1715
- google_place_id?: string | null | undefined;
1716
- } | null;
1717
- } | {
1718
- id: string;
1719
- type: "created_time";
1720
- created_time: string | null;
1721
- } | {
1722
- id: string;
1723
- type: "last_edited_time";
1724
- last_edited_time: string | null;
1725
- } | {
1726
- id: string;
1727
- type: "created_by";
1728
- created_by: {
1729
- id: string;
1730
- table: "bot" | "notion_user" | "organization_bot";
1731
- spaceId?: string | undefined;
1732
- } | null;
1733
- } | {
1734
- id: string;
1735
- type: "last_edited_by";
1736
- last_edited_by: {
1737
- id: string;
1738
- table: "bot" | "notion_user" | "organization_bot";
1739
- spaceId?: string | undefined;
1740
- } | null;
1741
- } | {
1742
- id: string;
1743
- type: "unique_id";
1744
- unique_id: string;
1745
- } | {
1746
- id: string;
1747
- type: "button";
1748
- button: string;
1749
- } | {
1750
- id: string;
1751
- type: "formula";
1752
- formula: string;
1753
- } | {
1754
- id: string;
1755
- type: "rollup";
1756
- rollup: string;
1757
- } | {
1758
- id: string;
1759
- type: "verification";
1760
- verification: string;
1761
- } | null;
1762
- };
1763
- created_by: {
1764
- id: string;
1765
- table: "bot" | "notion_user" | "organization_bot";
1766
- spaceId?: string | undefined;
1767
- } | null;
1768
- last_edited_by: {
1769
- id: string;
1770
- table: "bot" | "notion_user" | "organization_bot";
1771
- spaceId?: string | undefined;
1772
- } | null;
1773
- created_time: string | null;
1774
- last_edited_time: string | null;
1775
- icon: {
1776
- type: "external";
1777
- external: {
1778
- url: string;
1779
- };
1780
- } | {
1781
- type: "file";
1782
- file: {
1783
- url: string;
1784
- expiry_time?: string | undefined;
1785
- };
1786
- } | {
1787
- type: "emoji";
1788
- emoji: string;
1789
- } | {
1790
- type: "custom_emoji";
1791
- custom_emoji: {
1792
- id: string;
1793
- name?: string | undefined;
1794
- url?: string | undefined;
1795
- };
1796
- } | ({
1797
- type: "icon";
1798
- icon: {
1799
- name: string;
1800
- color?: import("../protocol/icons.js").BridgeIconColor | undefined;
1801
- } & {
1802
- [key: string]: unknown;
1803
- };
1804
- } & {
1805
- [key: string]: unknown;
1806
- }) | null;
1807
- cover: {
1808
- type: "external";
1809
- external: {
1810
- url: string;
1811
- };
1812
- } | {
1813
- type: "file";
1814
- file: {
1815
- url: string;
1816
- expiry_time?: string | undefined;
1817
- };
1818
- } | null;
1819
- url: string | null;
1820
- public_url: string | null;
1821
- is_archived: boolean;
1822
- in_trash: boolean;
1823
- };
1824
- } | {
1825
- type: "updatePageResult";
1826
- requestId: string;
1827
- status: "error";
1828
- error: {
1829
- code: string;
1830
- message: string;
1831
- isRetryable: boolean;
1832
- };
1833
- };
1834
- readonly issues: undefined;
1835
- } | {
1836
- readonly typed: true;
1837
- readonly success: false;
1838
- readonly output: {
1839
- type: "getPageResult";
1840
- requestId: string;
1841
- status: "success";
1842
- page: {
1843
- object: "page";
1844
- id: string & v.Brand<"NotionPageId">;
1845
- parent: {
1846
- type: "page_id";
1847
- page_id: string & v.Brand<"NotionPageId">;
1848
- } | {
1849
- type: "data_source_id";
1850
- data_source_id: string & v.Brand<"NotionDataSourceId">;
1851
- } | {
1852
- type: "workspace";
1853
- workspace: true;
1854
- } | {
1855
- type: "block_id";
1856
- block_id: string & v.Brand<"NotionBlockId">;
1857
- } | {
1858
- type: "agent_id";
1859
- agent_id: string & v.Brand<"NotionAgentId">;
1860
- } | {
1861
- type: "app_installation_id";
1862
- app_installation_id: string & v.Brand<"NotionAppInstallationId">;
1863
- } | {
1864
- type: "unavailable";
1865
- };
1866
- properties: {
1867
- [x: string]: {
1868
- id: string;
1869
- type: "title";
1870
- title: {
1871
- [x: string]: unknown;
1872
- }[];
1873
- } | {
1874
- id: string;
1875
- type: "rich_text";
1876
- rich_text: {
1877
- [x: string]: unknown;
1878
- }[];
1879
- } | {
1880
- id: string;
1881
- type: "number";
1882
- number: number | null;
1883
- } | {
1884
- id: string;
1885
- type: "url";
1886
- url: string | null;
1887
- } | {
1888
- id: string;
1889
- type: "email";
1890
- email: string | null;
1891
- } | {
1892
- id: string;
1893
- type: "phone_number";
1894
- phone_number: string | null;
1895
- } | {
1896
- id: string;
1897
- type: "checkbox";
1898
- checkbox: boolean;
1899
- } | {
1900
- id: string;
1901
- type: "select";
1902
- select: {
1903
- id: string;
1904
- name?: string | undefined;
1905
- color?: string | undefined;
1906
- description?: string | null | undefined;
1907
- } | {
1908
- name: string;
1909
- id?: string | undefined;
1910
- color?: string | undefined;
1911
- description?: string | null | undefined;
1912
- } | null;
1913
- } | {
1914
- id: string;
1915
- type: "status";
1916
- status: {
1917
- id: string;
1918
- name?: string | undefined;
1919
- color?: string | undefined;
1920
- description?: string | null | undefined;
1921
- } | {
1922
- name: string;
1923
- id?: string | undefined;
1924
- color?: string | undefined;
1925
- description?: string | null | undefined;
1926
- } | null;
1927
- } | {
1928
- id: string;
1929
- type: "multi_select";
1930
- multi_select: ({
1931
- id: string;
1932
- name?: string | undefined;
1933
- color?: string | undefined;
1934
- description?: string | null | undefined;
1935
- } | {
1936
- name: string;
1937
- id?: string | undefined;
1938
- color?: string | undefined;
1939
- description?: string | null | undefined;
1940
- })[];
1941
- } | {
1942
- id: string;
1943
- type: "date";
1944
- date: {
1945
- end?: string | null | undefined;
1946
- time_zone?: string | null | undefined;
1947
- reminder?: {
1948
- unit: "day" | "month" | "week" | "year";
1949
- value: number;
1950
- time: string;
1951
- defaultTimeZone?: string | undefined;
1952
- } | {
1953
- unit: "hour" | "minute";
1954
- value: number;
1955
- } | {
1956
- unit: "none";
1957
- } | undefined;
1958
- start: string;
1959
- } | {
1960
- start: string;
1961
- end?: string | null | undefined;
1962
- reminder?: {
1963
- unit: "day" | "month" | "week" | "year";
1964
- value: number;
1965
- time: string;
1966
- defaultTimeZone?: string | undefined;
1967
- } | {
1968
- unit: "hour" | "minute";
1969
- value: number;
1970
- } | {
1971
- unit: "none";
1972
- } | undefined;
1973
- time_zone: string;
1974
- } | {
1975
- start: string;
1976
- end?: string | null | undefined;
1977
- time_zone?: string | null | undefined;
1978
- reminder?: {
1979
- unit: "day" | "month" | "week" | "year";
1980
- value: number;
1981
- time: string;
1982
- defaultTimeZone?: string | undefined;
1983
- } | {
1984
- unit: "none";
1985
- } | undefined;
1986
- } | null;
1987
- } | {
1988
- id: string;
1989
- type: "people";
1990
- people: ({
1991
- object?: "user" | undefined;
1992
- id: string;
1993
- } | {
1994
- object: "group";
1995
- id: string;
1996
- name?: string | null | undefined;
1997
- })[];
1998
- } | {
1999
- id: string;
2000
- type: "relation";
2001
- has_more?: boolean | undefined;
2002
- relation: {
2003
- id: string;
2004
- }[];
2005
- } | {
2006
- id: string;
2007
- type: "files";
2008
- files: ({
2009
- type: "external";
2010
- external: {
2011
- url: string;
2012
- };
2013
- name: string;
2014
- } | {
2015
- type: "file";
2016
- file: {
2017
- url: string;
2018
- expiry_time?: string | undefined;
2019
- };
2020
- name: string;
2021
- })[];
2022
- } | {
2023
- id: string;
2024
- type: "place";
2025
- place: {
2026
- lat: number;
2027
- lon: number;
2028
- name?: string | null | undefined;
2029
- address?: string | null | undefined;
2030
- aws_place_id?: string | null | undefined;
2031
- google_place_id?: string | null | undefined;
2032
- } | null;
2033
- } | {
2034
- id: string;
2035
- type: "created_time";
2036
- created_time: string | null;
2037
- } | {
2038
- id: string;
2039
- type: "last_edited_time";
2040
- last_edited_time: string | null;
2041
- } | {
2042
- id: string;
2043
- type: "created_by";
2044
- created_by: {
2045
- id: string;
2046
- table: "bot" | "notion_user" | "organization_bot";
2047
- spaceId?: string | undefined;
2048
- } | null;
2049
- } | {
2050
- id: string;
2051
- type: "last_edited_by";
2052
- last_edited_by: {
2053
- id: string;
2054
- table: "bot" | "notion_user" | "organization_bot";
2055
- spaceId?: string | undefined;
2056
- } | null;
2057
- } | {
2058
- id: string;
2059
- type: "unique_id";
2060
- unique_id: string;
2061
- } | {
2062
- id: string;
2063
- type: "button";
2064
- button: string;
2065
- } | {
2066
- id: string;
2067
- type: "formula";
2068
- formula: string;
2069
- } | {
2070
- id: string;
2071
- type: "rollup";
2072
- rollup: string;
2073
- } | {
2074
- id: string;
2075
- type: "verification";
2076
- verification: string;
2077
- } | null;
2078
- };
2079
- created_by: {
2080
- id: string;
2081
- table: "bot" | "notion_user" | "organization_bot";
2082
- spaceId?: string | undefined;
2083
- } | null;
2084
- last_edited_by: {
2085
- id: string;
2086
- table: "bot" | "notion_user" | "organization_bot";
2087
- spaceId?: string | undefined;
2088
- } | null;
2089
- created_time: string | null;
2090
- last_edited_time: string | null;
2091
- icon: {
2092
- type: "external";
2093
- external: {
2094
- url: string;
2095
- };
2096
- } | {
2097
- type: "file";
2098
- file: {
2099
- url: string;
2100
- expiry_time?: string | undefined;
2101
- };
2102
- } | {
2103
- type: "emoji";
2104
- emoji: string;
2105
- } | {
2106
- type: "custom_emoji";
2107
- custom_emoji: {
2108
- id: string;
2109
- name?: string | undefined;
2110
- url?: string | undefined;
2111
- };
2112
- } | ({
2113
- type: "icon";
2114
- icon: {
2115
- name: string;
2116
- color?: import("../protocol/icons.js").BridgeIconColor | undefined;
2117
- } & {
2118
- [key: string]: unknown;
2119
- };
2120
- } & {
2121
- [key: string]: unknown;
2122
- }) | null;
2123
- cover: {
2124
- type: "external";
2125
- external: {
2126
- url: string;
2127
- };
2128
- } | {
2129
- type: "file";
2130
- file: {
2131
- url: string;
2132
- expiry_time?: string | undefined;
2133
- };
2134
- } | null;
2135
- url: string | null;
2136
- public_url: string | null;
2137
- is_archived: boolean;
2138
- in_trash: boolean;
2139
- };
2140
- } | {
2141
- type: "getPageResult";
2142
- requestId: string;
2143
- status: "error";
2144
- error: {
2145
- code: string;
2146
- message: string;
2147
- isRetryable: boolean;
2148
- };
2149
- } | {
2150
- type: "contrastModeChanged";
2151
- contrastMode: "high" | "standard";
2152
- } | {
2153
- type: "dataSourcesChanged";
2154
- dataSources: {
2155
- bindings: {
2156
- [x: string]: {
2157
- dataSourcePointer?: {
2158
- id: string & v.Brand<"NotionDataSourceId">;
2159
- table: string;
2160
- spaceId?: (string & v.Brand<"NotionSpaceId">) | undefined;
2161
- } | undefined;
2162
- dataSourceSchema?: {
2163
- id?: (string & v.Brand<"NotionDataSourceId">) | undefined;
2164
- propertiesById: {
2165
- [x: string]: {
2166
- name: string;
2167
- description?: string | undefined;
2168
- type: "title";
2169
- } | {
2170
- name: string;
2171
- description?: string | undefined;
2172
- type: "rich_text";
2173
- } | {
2174
- name: string;
2175
- description?: string | undefined;
2176
- type: "number";
2177
- } | {
2178
- name: string;
2179
- description?: string | undefined;
2180
- type: "checkbox";
2181
- } | {
2182
- name: string;
2183
- description?: string | undefined;
2184
- type: "url";
2185
- } | {
2186
- name: string;
2187
- description?: string | undefined;
2188
- type: "email";
2189
- } | {
2190
- name: string;
2191
- description?: string | undefined;
2192
- type: "phone_number";
2193
- } | {
2194
- name: string;
2195
- description?: string | undefined;
2196
- type: "select";
2197
- options: {
2198
- id: string;
2199
- name: string;
2200
- 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;
2201
- description?: string | undefined;
2202
- }[];
2203
- } | {
2204
- name: string;
2205
- description?: string | undefined;
2206
- type: "multi_select";
2207
- options: {
2208
- id: string;
2209
- name: string;
2210
- 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;
2211
- description?: string | undefined;
2212
- }[];
2213
- } | {
2214
- name: string;
2215
- description?: string | undefined;
2216
- type: "status";
2217
- options: {
2218
- id: string;
2219
- name: string;
2220
- 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;
2221
- description?: string | undefined;
2222
- }[];
2223
- groups: {
2224
- id: string;
2225
- name: string;
2226
- 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;
2227
- option_ids: string[];
2228
- }[];
2229
- } | {
2230
- name: string;
2231
- description?: string | undefined;
2232
- type: "date";
2233
- } | {
2234
- name: string;
2235
- description?: string | undefined;
2236
- type: "people";
2237
- } | {
2238
- name: string;
2239
- description?: string | undefined;
2240
- type: "files";
2241
- } | {
2242
- name: string;
2243
- description?: string | undefined;
2244
- type: "unique_id";
2245
- } | {
2246
- name: string;
2247
- description?: string | undefined;
2248
- type: "relation";
2249
- data_source_id?: string | undefined;
2250
- dual_property?: {
2251
- synced_property_id: string;
2252
- synced_property_name: string;
2253
- } | undefined;
2254
- } | {
2255
- name: string;
2256
- description?: string | undefined;
2257
- type: "place";
2258
- } | {
2259
- name: string;
2260
- description?: string | undefined;
2261
- type: "formula";
2262
- } | {
2263
- name: string;
2264
- description?: string | undefined;
2265
- type: "rollup";
2266
- } | {
2267
- name: string;
2268
- description?: string | undefined;
2269
- type: "button";
2270
- } | {
2271
- name: string;
2272
- description?: string | undefined;
2273
- type: "verification";
2274
- } | {
2275
- name: string;
2276
- description?: string | undefined;
2277
- type: "created_time";
2278
- } | {
2279
- name: string;
2280
- description?: string | undefined;
2281
- type: "last_edited_time";
2282
- } | {
2283
- name: string;
2284
- description?: string | undefined;
2285
- type: "created_by";
2286
- } | {
2287
- name: string;
2288
- description?: string | undefined;
2289
- type: "last_edited_by";
2290
- };
2291
- };
2292
- } | undefined;
2293
- propertyIdsByKey?: {
2294
- [x: string]: string | undefined;
2295
- } | undefined;
2296
- inaccessible?: true | undefined;
2297
- };
2298
- };
2299
- };
2300
- } | {
2301
- type: "init";
2302
- initializationId: string;
2303
- status: "success";
2304
- theme: "dark" | "light";
2305
- contrastMode: "high" | "standard";
2306
- blockId: string & v.Brand<"NotionBlockId">;
2307
- parent: {
2308
- type: "page_id";
2309
- page_id: string & v.Brand<"NotionPageId">;
2310
- } | {
2311
- type: "data_source_id";
2312
- data_source_id: string & v.Brand<"NotionDataSourceId">;
2313
- } | {
2314
- type: "workspace";
2315
- workspace: true;
2316
- } | {
2317
- type: "block_id";
2318
- block_id: string & v.Brand<"NotionBlockId">;
2319
- } | {
2320
- type: "agent_id";
2321
- agent_id: string & v.Brand<"NotionAgentId">;
2322
- } | {
2323
- type: "app_installation_id";
2324
- app_installation_id: string & v.Brand<"NotionAppInstallationId">;
2325
- } | {
2326
- type: "unavailable";
2327
- };
2328
- page: {
2329
- type: "unavailable";
2330
- } | {
2331
- type: "page";
2332
- id: string & v.Brand<"NotionPageId">;
2333
- parent: {
2334
- type: "page_id";
2335
- page_id: string & v.Brand<"NotionPageId">;
2336
- } | {
2337
- type: "data_source_id";
2338
- data_source_id: string & v.Brand<"NotionDataSourceId">;
2339
- } | {
2340
- type: "workspace";
2341
- workspace: true;
2342
- } | {
2343
- type: "block_id";
2344
- block_id: string & v.Brand<"NotionBlockId">;
2345
- } | {
2346
- type: "agent_id";
2347
- agent_id: string & v.Brand<"NotionAgentId">;
2348
- } | {
2349
- type: "app_installation_id";
2350
- app_installation_id: string & v.Brand<"NotionAppInstallationId">;
2351
- } | {
2352
- type: "unavailable";
2353
- };
2354
- };
2355
- manifest: {
2356
- version: 1;
2357
- name?: string | undefined;
2358
- description?: string | undefined;
2359
- slashCommand?: string | undefined;
2360
- icon?: {
2361
- type: "emoji";
2362
- emoji: string;
2363
- } | undefined;
2364
- dataSources: {
2365
- [x: string]: {
2366
- name: string;
2367
- description?: string | undefined;
2368
- icon?: {
2369
- type: "emoji";
2370
- emoji: string;
2371
- } | {
2372
- type: "external";
2373
- url: string;
2374
- } | undefined;
2375
- properties: {
2376
- [x: string]: {
2377
- name: string;
2378
- description?: string | undefined;
2379
- type: "button" | "checkbox" | "created_by" | "created_time" | "date" | "email" | "files" | "formula" | "last_edited_by" | "last_edited_time" | "multi_select" | "number" | "people" | "phone_number" | "place" | "relation" | "rich_text" | "rollup" | "select" | "status" | "title" | "unique_id" | "url" | "verification";
2380
- };
2381
- };
2382
- };
2383
- };
2384
- pages?: {
2385
- [x: string]: {
2386
- name: string;
2387
- description?: string | undefined;
2388
- icon?: {
2389
- type: "emoji";
2390
- emoji: string;
2391
- } | {
2392
- type: "external";
2393
- url: string;
2394
- } | undefined;
2395
- };
2396
- } | undefined;
2397
- grants?: {
2398
- action: string;
2399
- resource: string | string[];
2400
- }[] | undefined;
2401
- };
2402
- dataSources: {
2403
- bindings: {
2404
- [x: string]: {
2405
- dataSourcePointer?: {
2406
- id: string & v.Brand<"NotionDataSourceId">;
2407
- table: string;
2408
- spaceId?: (string & v.Brand<"NotionSpaceId">) | undefined;
2409
- } | undefined;
2410
- dataSourceSchema?: {
2411
- id?: (string & v.Brand<"NotionDataSourceId">) | undefined;
2412
- propertiesById: {
2413
- [x: string]: {
2414
- name: string;
2415
- description?: string | undefined;
2416
- type: "title";
2417
- } | {
2418
- name: string;
2419
- description?: string | undefined;
2420
- type: "rich_text";
2421
- } | {
2422
- name: string;
2423
- description?: string | undefined;
2424
- type: "number";
2425
- } | {
2426
- name: string;
2427
- description?: string | undefined;
2428
- type: "checkbox";
2429
- } | {
2430
- name: string;
2431
- description?: string | undefined;
2432
- type: "url";
2433
- } | {
2434
- name: string;
2435
- description?: string | undefined;
2436
- type: "email";
2437
- } | {
2438
- name: string;
2439
- description?: string | undefined;
2440
- type: "phone_number";
2441
- } | {
2442
- name: string;
2443
- description?: string | undefined;
2444
- type: "select";
2445
- options: {
2446
- id: string;
2447
- name: string;
2448
- 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;
2449
- description?: string | undefined;
2450
- }[];
2451
- } | {
2452
- name: string;
2453
- description?: string | undefined;
2454
- type: "multi_select";
2455
- options: {
2456
- id: string;
2457
- name: string;
2458
- 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;
2459
- description?: string | undefined;
2460
- }[];
2461
- } | {
2462
- name: string;
2463
- description?: string | undefined;
2464
- type: "status";
2465
- options: {
2466
- id: string;
2467
- name: string;
2468
- 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;
2469
- description?: string | undefined;
2470
- }[];
2471
- groups: {
2472
- id: string;
2473
- name: string;
2474
- 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;
2475
- option_ids: string[];
2476
- }[];
2477
- } | {
2478
- name: string;
2479
- description?: string | undefined;
2480
- type: "date";
2481
- } | {
2482
- name: string;
2483
- description?: string | undefined;
2484
- type: "people";
2485
- } | {
2486
- name: string;
2487
- description?: string | undefined;
2488
- type: "files";
2489
- } | {
2490
- name: string;
2491
- description?: string | undefined;
2492
- type: "unique_id";
2493
- } | {
2494
- name: string;
2495
- description?: string | undefined;
2496
- type: "relation";
2497
- data_source_id?: string | undefined;
2498
- dual_property?: {
2499
- synced_property_id: string;
2500
- synced_property_name: string;
2501
- } | undefined;
2502
- } | {
2503
- name: string;
2504
- description?: string | undefined;
2505
- type: "place";
2506
- } | {
2507
- name: string;
2508
- description?: string | undefined;
2509
- type: "formula";
2510
- } | {
2511
- name: string;
2512
- description?: string | undefined;
2513
- type: "rollup";
2514
- } | {
2515
- name: string;
2516
- description?: string | undefined;
2517
- type: "button";
2518
- } | {
2519
- name: string;
2520
- description?: string | undefined;
2521
- type: "verification";
2522
- } | {
2523
- name: string;
2524
- description?: string | undefined;
2525
- type: "created_time";
2526
- } | {
2527
- name: string;
2528
- description?: string | undefined;
2529
- type: "last_edited_time";
2530
- } | {
2531
- name: string;
2532
- description?: string | undefined;
2533
- type: "created_by";
2534
- } | {
2535
- name: string;
2536
- description?: string | undefined;
2537
- type: "last_edited_by";
2538
- };
2539
- };
2540
- } | undefined;
2541
- propertyIdsByKey?: {
2542
- [x: string]: string | undefined;
2543
- } | undefined;
2544
- inaccessible?: true | undefined;
2545
- };
2546
- };
2547
- };
2548
- currentUser: {
2549
- object: "user";
2550
- id: string & v.Brand<"NotionUserId">;
2551
- name?: string | undefined;
2552
- avatar_url: string | null;
2553
- type: "person";
2554
- person: {
2555
- email: string;
2556
- };
2557
- };
2558
- } | {
2559
- type: "init";
2560
- initializationId: string;
2561
- status: "error";
2562
- error: {
2563
- code: string;
2564
- message: string;
2565
- isRetryable: boolean;
2566
- };
2567
- } | {
2568
- type: "themeChanged";
2569
- theme: "dark" | "light";
2570
- } | {
2571
- type: "parentChanged";
2572
- parent: {
2573
- type: "page_id";
2574
- page_id: string & v.Brand<"NotionPageId">;
2575
- } | {
2576
- type: "data_source_id";
2577
- data_source_id: string & v.Brand<"NotionDataSourceId">;
2578
- } | {
2579
- type: "workspace";
2580
- workspace: true;
2581
- } | {
2582
- type: "block_id";
2583
- block_id: string & v.Brand<"NotionBlockId">;
2584
- } | {
2585
- type: "agent_id";
2586
- agent_id: string & v.Brand<"NotionAgentId">;
2587
- } | {
2588
- type: "app_installation_id";
2589
- app_installation_id: string & v.Brand<"NotionAppInstallationId">;
2590
- } | {
2591
- type: "unavailable";
2592
- };
2593
- } | {
2594
- type: "pageChanged";
2595
- page: {
2596
- type: "unavailable";
2597
- } | {
2598
- type: "page";
2599
- id: string & v.Brand<"NotionPageId">;
2600
- parent: {
2601
- type: "page_id";
2602
- page_id: string & v.Brand<"NotionPageId">;
2603
- } | {
2604
- type: "data_source_id";
2605
- data_source_id: string & v.Brand<"NotionDataSourceId">;
2606
- } | {
2607
- type: "workspace";
2608
- workspace: true;
2609
- } | {
2610
- type: "block_id";
2611
- block_id: string & v.Brand<"NotionBlockId">;
2612
- } | {
2613
- type: "agent_id";
2614
- agent_id: string & v.Brand<"NotionAgentId">;
2615
- } | {
2616
- type: "app_installation_id";
2617
- app_installation_id: string & v.Brand<"NotionAppInstallationId">;
2618
- } | {
2619
- type: "unavailable";
2620
- };
2621
- };
2622
- } | {
2623
- type: "currentUserChanged";
2624
- currentUser: {
2625
- object: "user";
2626
- id: string & v.Brand<"NotionUserId">;
2627
- name?: string | undefined;
2628
- avatar_url: string | null;
2629
- type: "person";
2630
- person: {
2631
- email: string;
2632
- };
2633
- };
2634
- } | {
2635
- type: "getUserResult";
2636
- requestId: string;
2637
- status: "success";
2638
- user: {
2639
- object: "user";
2640
- id: string & v.Brand<"NotionUserId">;
2641
- name?: string | undefined;
2642
- avatar_url: string | null;
2643
- type: "person";
2644
- person: {
2645
- email: string;
2646
- };
2647
- };
2648
- } | {
2649
- type: "getUserResult";
2650
- requestId: string;
2651
- status: "error";
2652
- error: {
2653
- code: string;
2654
- message: string;
2655
- isRetryable: boolean;
2656
- };
2657
- } | {
2658
- type: "listUsersResult";
2659
- requestId: string;
2660
- status: "success";
2661
- list: {
2662
- object: "list";
2663
- results: {
2664
- object: "user";
2665
- id: string & v.Brand<"NotionUserId">;
2666
- name?: string | undefined;
2667
- avatar_url: string | null;
2668
- type: "person";
2669
- person: {
2670
- email: string;
2671
- };
2672
- }[];
2673
- next_cursor: string | null;
2674
- has_more: boolean;
2675
- type: "user";
2676
- user: {
2677
- [x: string]: unknown;
2678
- };
2679
- };
2680
- } | {
2681
- type: "listUsersResult";
2682
- requestId: string;
2683
- status: "error";
2684
- error: {
2685
- code: string;
2686
- message: string;
2687
- isRetryable: boolean;
2688
- };
2689
- } | {
2690
- type: "openPageResult";
2691
- requestId: string;
2692
- status: "success";
2693
- pageId: string & v.Brand<"NotionPageId">;
2694
- } | {
2695
- type: "openPageResult";
2696
- requestId: string;
2697
- status: "error";
2698
- error: {
2699
- code: string;
2700
- message: string;
2701
- isRetryable: boolean;
2702
- };
2703
- } | {
2704
- type: "openExternalUrlResult";
2705
- requestId: string;
2706
- status: "success";
2707
- } | {
2708
- type: "openExternalUrlResult";
2709
- requestId: string;
2710
- status: "error";
2711
- error: {
2712
- code: string;
2713
- message: string;
2714
- isRetryable: boolean;
2715
- };
2716
- } | {
2717
- type: "invalidSandboxMessage";
2718
- requestId?: string | undefined;
2719
- reason: string;
2720
- } | {
2721
- type: "queryDataSourceResult";
2722
- subscriptionId: string;
2723
- status: "success";
2724
- items: {
2725
- object: "page";
2726
- id: string & v.Brand<"NotionPageId">;
2727
- parent: {
2728
- type: "page_id";
2729
- page_id: string & v.Brand<"NotionPageId">;
2730
- } | {
2731
- type: "data_source_id";
2732
- data_source_id: string & v.Brand<"NotionDataSourceId">;
2733
- } | {
2734
- type: "workspace";
2735
- workspace: true;
2736
- } | {
2737
- type: "block_id";
2738
- block_id: string & v.Brand<"NotionBlockId">;
2739
- } | {
2740
- type: "agent_id";
2741
- agent_id: string & v.Brand<"NotionAgentId">;
2742
- } | {
2743
- type: "app_installation_id";
2744
- app_installation_id: string & v.Brand<"NotionAppInstallationId">;
2745
- } | {
2746
- type: "unavailable";
2747
- };
2748
- properties: {
2749
- [x: string]: {
2750
- id: string;
2751
- type: "title";
2752
- title: {
2753
- [x: string]: unknown;
2754
- }[];
2755
- } | {
2756
- id: string;
2757
- type: "rich_text";
2758
- rich_text: {
2759
- [x: string]: unknown;
2760
- }[];
2761
- } | {
2762
- id: string;
2763
- type: "number";
2764
- number: number | null;
2765
- } | {
2766
- id: string;
2767
- type: "url";
2768
- url: string | null;
2769
- } | {
2770
- id: string;
2771
- type: "email";
2772
- email: string | null;
2773
- } | {
2774
- id: string;
2775
- type: "phone_number";
2776
- phone_number: string | null;
2777
- } | {
2778
- id: string;
2779
- type: "checkbox";
2780
- checkbox: boolean;
2781
- } | {
2782
- id: string;
2783
- type: "select";
2784
- select: {
2785
- id: string;
2786
- name?: string | undefined;
2787
- color?: string | undefined;
2788
- description?: string | null | undefined;
2789
- } | {
2790
- name: string;
2791
- id?: string | undefined;
2792
- color?: string | undefined;
2793
- description?: string | null | undefined;
2794
- } | null;
2795
- } | {
2796
- id: string;
2797
- type: "status";
2798
- status: {
2799
- id: string;
2800
- name?: string | undefined;
2801
- color?: string | undefined;
2802
- description?: string | null | undefined;
2803
- } | {
2804
- name: string;
2805
- id?: string | undefined;
2806
- color?: string | undefined;
2807
- description?: string | null | undefined;
2808
- } | null;
2809
- } | {
2810
- id: string;
2811
- type: "multi_select";
2812
- multi_select: ({
2813
- id: string;
2814
- name?: string | undefined;
2815
- color?: string | undefined;
2816
- description?: string | null | undefined;
2817
- } | {
2818
- name: string;
2819
- id?: string | undefined;
2820
- color?: string | undefined;
2821
- description?: string | null | undefined;
2822
- })[];
2823
- } | {
2824
- id: string;
2825
- type: "date";
2826
- date: {
2827
- end?: string | null | undefined;
2828
- time_zone?: string | null | undefined;
2829
- reminder?: {
2830
- unit: "day" | "month" | "week" | "year";
2831
- value: number;
2832
- time: string;
2833
- defaultTimeZone?: string | undefined;
2834
- } | {
2835
- unit: "hour" | "minute";
2836
- value: number;
2837
- } | {
2838
- unit: "none";
2839
- } | undefined;
2840
- start: string;
2841
- } | {
2842
- start: string;
2843
- end?: string | null | undefined;
2844
- reminder?: {
2845
- unit: "day" | "month" | "week" | "year";
2846
- value: number;
2847
- time: string;
2848
- defaultTimeZone?: string | undefined;
2849
- } | {
2850
- unit: "hour" | "minute";
2851
- value: number;
2852
- } | {
2853
- unit: "none";
2854
- } | undefined;
2855
- time_zone: string;
2856
- } | {
2857
- start: string;
2858
- end?: string | null | undefined;
2859
- time_zone?: string | null | undefined;
2860
- reminder?: {
2861
- unit: "day" | "month" | "week" | "year";
2862
- value: number;
2863
- time: string;
2864
- defaultTimeZone?: string | undefined;
2865
- } | {
2866
- unit: "none";
2867
- } | undefined;
2868
- } | null;
2869
- } | {
2870
- id: string;
2871
- type: "people";
2872
- people: ({
2873
- object?: "user" | undefined;
2874
- id: string;
2875
- } | {
2876
- object: "group";
2877
- id: string;
2878
- name?: string | null | undefined;
2879
- })[];
2880
- } | {
2881
- id: string;
2882
- type: "relation";
2883
- has_more?: boolean | undefined;
2884
- relation: {
2885
- id: string;
2886
- }[];
2887
- } | {
2888
- id: string;
2889
- type: "files";
2890
- files: ({
2891
- type: "external";
2892
- external: {
2893
- url: string;
2894
- };
2895
- name: string;
2896
- } | {
2897
- type: "file";
2898
- file: {
2899
- url: string;
2900
- expiry_time?: string | undefined;
2901
- };
2902
- name: string;
2903
- })[];
2904
- } | {
2905
- id: string;
2906
- type: "place";
2907
- place: {
2908
- lat: number;
2909
- lon: number;
2910
- name?: string | null | undefined;
2911
- address?: string | null | undefined;
2912
- aws_place_id?: string | null | undefined;
2913
- google_place_id?: string | null | undefined;
2914
- } | null;
2915
- } | {
2916
- id: string;
2917
- type: "created_time";
2918
- created_time: string | null;
2919
- } | {
2920
- id: string;
2921
- type: "last_edited_time";
2922
- last_edited_time: string | null;
2923
- } | {
2924
- id: string;
2925
- type: "created_by";
2926
- created_by: {
2927
- id: string;
2928
- table: "bot" | "notion_user" | "organization_bot";
2929
- spaceId?: string | undefined;
2930
- } | null;
2931
- } | {
2932
- id: string;
2933
- type: "last_edited_by";
2934
- last_edited_by: {
2935
- id: string;
2936
- table: "bot" | "notion_user" | "organization_bot";
2937
- spaceId?: string | undefined;
2938
- } | null;
2939
- } | {
2940
- id: string;
2941
- type: "unique_id";
2942
- unique_id: string;
2943
- } | {
2944
- id: string;
2945
- type: "button";
2946
- button: string;
2947
- } | {
2948
- id: string;
2949
- type: "formula";
2950
- formula: string;
2951
- } | {
2952
- id: string;
2953
- type: "rollup";
2954
- rollup: string;
2955
- } | {
2956
- id: string;
2957
- type: "verification";
2958
- verification: string;
2959
- } | null;
2960
- };
2961
- created_by: {
2962
- id: string;
2963
- table: "bot" | "notion_user" | "organization_bot";
2964
- spaceId?: string | undefined;
2965
- } | null;
2966
- last_edited_by: {
2967
- id: string;
2968
- table: "bot" | "notion_user" | "organization_bot";
2969
- spaceId?: string | undefined;
2970
- } | null;
2971
- created_time: string | null;
2972
- last_edited_time: string | null;
2973
- icon: {
2974
- type: "external";
2975
- external: {
2976
- url: string;
2977
- };
2978
- } | {
2979
- type: "file";
2980
- file: {
2981
- url: string;
2982
- expiry_time?: string | undefined;
2983
- };
2984
- } | {
2985
- type: "emoji";
2986
- emoji: string;
2987
- } | {
2988
- type: "custom_emoji";
2989
- custom_emoji: {
2990
- id: string;
2991
- name?: string | undefined;
2992
- url?: string | undefined;
2993
- };
2994
- } | ({
2995
- type: "icon";
2996
- icon: {
2997
- name: string;
2998
- color?: import("../protocol/icons.js").BridgeIconColor | undefined;
2999
- } & {
3000
- [key: string]: unknown;
3001
- };
3002
- } & {
3003
- [key: string]: unknown;
3004
- }) | null;
3005
- cover: {
3006
- type: "external";
3007
- external: {
3008
- url: string;
3009
- };
3010
- } | {
3011
- type: "file";
3012
- file: {
3013
- url: string;
3014
- expiry_time?: string | undefined;
3015
- };
3016
- } | null;
3017
- url: string | null;
3018
- public_url: string | null;
3019
- is_archived: boolean;
3020
- in_trash: boolean;
3021
- }[];
3022
- hasMore: boolean;
3023
- limitClamp?: {
3024
- requested: number;
3025
- applied: number;
3026
- } | undefined;
3027
- } | {
3028
- type: "queryDataSourceResult";
3029
- subscriptionId: string;
3030
- status: "error";
3031
- error: {
3032
- code: string;
3033
- message: string;
3034
- isRetryable: boolean;
3035
- };
3036
- } | {
3037
- type: "createPageResult";
3038
- requestId: string;
3039
- status: "success";
3040
- page: {
3041
- object: "page";
3042
- id: string & v.Brand<"NotionPageId">;
3043
- parent: {
3044
- type: "page_id";
3045
- page_id: string & v.Brand<"NotionPageId">;
3046
- } | {
3047
- type: "data_source_id";
3048
- data_source_id: string & v.Brand<"NotionDataSourceId">;
3049
- } | {
3050
- type: "workspace";
3051
- workspace: true;
3052
- } | {
3053
- type: "block_id";
3054
- block_id: string & v.Brand<"NotionBlockId">;
3055
- } | {
3056
- type: "agent_id";
3057
- agent_id: string & v.Brand<"NotionAgentId">;
3058
- } | {
3059
- type: "app_installation_id";
3060
- app_installation_id: string & v.Brand<"NotionAppInstallationId">;
3061
- } | {
3062
- type: "unavailable";
3063
- };
3064
- properties: {
3065
- [x: string]: {
3066
- id: string;
3067
- type: "title";
3068
- title: {
3069
- [x: string]: unknown;
3070
- }[];
3071
- } | {
3072
- id: string;
3073
- type: "rich_text";
3074
- rich_text: {
3075
- [x: string]: unknown;
3076
- }[];
3077
- } | {
3078
- id: string;
3079
- type: "number";
3080
- number: number | null;
3081
- } | {
3082
- id: string;
3083
- type: "url";
3084
- url: string | null;
3085
- } | {
3086
- id: string;
3087
- type: "email";
3088
- email: string | null;
3089
- } | {
3090
- id: string;
3091
- type: "phone_number";
3092
- phone_number: string | null;
3093
- } | {
3094
- id: string;
3095
- type: "checkbox";
3096
- checkbox: boolean;
3097
- } | {
3098
- id: string;
3099
- type: "select";
3100
- select: {
3101
- id: string;
3102
- name?: string | undefined;
3103
- color?: string | undefined;
3104
- description?: string | null | undefined;
3105
- } | {
3106
- name: string;
3107
- id?: string | undefined;
3108
- color?: string | undefined;
3109
- description?: string | null | undefined;
3110
- } | null;
3111
- } | {
3112
- id: string;
3113
- type: "status";
3114
- status: {
3115
- id: string;
3116
- name?: string | undefined;
3117
- color?: string | undefined;
3118
- description?: string | null | undefined;
3119
- } | {
3120
- name: string;
3121
- id?: string | undefined;
3122
- color?: string | undefined;
3123
- description?: string | null | undefined;
3124
- } | null;
3125
- } | {
3126
- id: string;
3127
- type: "multi_select";
3128
- multi_select: ({
3129
- id: string;
3130
- name?: string | undefined;
3131
- color?: string | undefined;
3132
- description?: string | null | undefined;
3133
- } | {
3134
- name: string;
3135
- id?: string | undefined;
3136
- color?: string | undefined;
3137
- description?: string | null | undefined;
3138
- })[];
3139
- } | {
3140
- id: string;
3141
- type: "date";
3142
- date: {
3143
- end?: string | null | undefined;
3144
- time_zone?: string | null | undefined;
3145
- reminder?: {
3146
- unit: "day" | "month" | "week" | "year";
3147
- value: number;
3148
- time: string;
3149
- defaultTimeZone?: string | undefined;
3150
- } | {
3151
- unit: "hour" | "minute";
3152
- value: number;
3153
- } | {
3154
- unit: "none";
3155
- } | undefined;
3156
- start: string;
3157
- } | {
3158
- start: string;
3159
- end?: string | null | undefined;
3160
- reminder?: {
3161
- unit: "day" | "month" | "week" | "year";
3162
- value: number;
3163
- time: string;
3164
- defaultTimeZone?: string | undefined;
3165
- } | {
3166
- unit: "hour" | "minute";
3167
- value: number;
3168
- } | {
3169
- unit: "none";
3170
- } | undefined;
3171
- time_zone: string;
3172
- } | {
3173
- start: string;
3174
- end?: string | null | undefined;
3175
- time_zone?: string | null | undefined;
3176
- reminder?: {
3177
- unit: "day" | "month" | "week" | "year";
3178
- value: number;
3179
- time: string;
3180
- defaultTimeZone?: string | undefined;
3181
- } | {
3182
- unit: "none";
3183
- } | undefined;
3184
- } | null;
3185
- } | {
3186
- id: string;
3187
- type: "people";
3188
- people: ({
3189
- object?: "user" | undefined;
3190
- id: string;
3191
- } | {
3192
- object: "group";
3193
- id: string;
3194
- name?: string | null | undefined;
3195
- })[];
3196
- } | {
3197
- id: string;
3198
- type: "relation";
3199
- has_more?: boolean | undefined;
3200
- relation: {
3201
- id: string;
3202
- }[];
3203
- } | {
3204
- id: string;
3205
- type: "files";
3206
- files: ({
3207
- type: "external";
3208
- external: {
3209
- url: string;
3210
- };
3211
- name: string;
3212
- } | {
3213
- type: "file";
3214
- file: {
3215
- url: string;
3216
- expiry_time?: string | undefined;
3217
- };
3218
- name: string;
3219
- })[];
3220
- } | {
3221
- id: string;
3222
- type: "place";
3223
- place: {
3224
- lat: number;
3225
- lon: number;
3226
- name?: string | null | undefined;
3227
- address?: string | null | undefined;
3228
- aws_place_id?: string | null | undefined;
3229
- google_place_id?: string | null | undefined;
3230
- } | null;
3231
- } | {
3232
- id: string;
3233
- type: "created_time";
3234
- created_time: string | null;
3235
- } | {
3236
- id: string;
3237
- type: "last_edited_time";
3238
- last_edited_time: string | null;
3239
- } | {
3240
- id: string;
3241
- type: "created_by";
3242
- created_by: {
3243
- id: string;
3244
- table: "bot" | "notion_user" | "organization_bot";
3245
- spaceId?: string | undefined;
3246
- } | null;
3247
- } | {
3248
- id: string;
3249
- type: "last_edited_by";
3250
- last_edited_by: {
3251
- id: string;
3252
- table: "bot" | "notion_user" | "organization_bot";
3253
- spaceId?: string | undefined;
3254
- } | null;
3255
- } | {
3256
- id: string;
3257
- type: "unique_id";
3258
- unique_id: string;
3259
- } | {
3260
- id: string;
3261
- type: "button";
3262
- button: string;
3263
- } | {
3264
- id: string;
3265
- type: "formula";
3266
- formula: string;
3267
- } | {
3268
- id: string;
3269
- type: "rollup";
3270
- rollup: string;
3271
- } | {
3272
- id: string;
3273
- type: "verification";
3274
- verification: string;
3275
- } | null;
3276
- };
3277
- created_by: {
3278
- id: string;
3279
- table: "bot" | "notion_user" | "organization_bot";
3280
- spaceId?: string | undefined;
3281
- } | null;
3282
- last_edited_by: {
3283
- id: string;
3284
- table: "bot" | "notion_user" | "organization_bot";
3285
- spaceId?: string | undefined;
3286
- } | null;
3287
- created_time: string | null;
3288
- last_edited_time: string | null;
3289
- icon: {
3290
- type: "external";
3291
- external: {
3292
- url: string;
3293
- };
3294
- } | {
3295
- type: "file";
3296
- file: {
3297
- url: string;
3298
- expiry_time?: string | undefined;
3299
- };
3300
- } | {
3301
- type: "emoji";
3302
- emoji: string;
3303
- } | {
3304
- type: "custom_emoji";
3305
- custom_emoji: {
3306
- id: string;
3307
- name?: string | undefined;
3308
- url?: string | undefined;
3309
- };
3310
- } | ({
3311
- type: "icon";
3312
- icon: {
3313
- name: string;
3314
- color?: import("../protocol/icons.js").BridgeIconColor | undefined;
3315
- } & {
3316
- [key: string]: unknown;
3317
- };
3318
- } & {
3319
- [key: string]: unknown;
3320
- }) | null;
3321
- cover: {
3322
- type: "external";
3323
- external: {
3324
- url: string;
3325
- };
3326
- } | {
3327
- type: "file";
3328
- file: {
3329
- url: string;
3330
- expiry_time?: string | undefined;
3331
- };
3332
- } | null;
3333
- url: string | null;
3334
- public_url: string | null;
3335
- is_archived: boolean;
3336
- in_trash: boolean;
3337
- };
3338
- } | {
3339
- type: "createPageResult";
3340
- requestId: string;
3341
- status: "error";
3342
- error: {
3343
- code: string;
3344
- message: string;
3345
- isRetryable: boolean;
3346
- };
3347
- } | {
3348
- type: "updatePageResult";
3349
- requestId: string;
3350
- status: "success";
3351
- page: {
3352
- object: "page";
3353
- id: string & v.Brand<"NotionPageId">;
3354
- parent: {
3355
- type: "page_id";
3356
- page_id: string & v.Brand<"NotionPageId">;
3357
- } | {
3358
- type: "data_source_id";
3359
- data_source_id: string & v.Brand<"NotionDataSourceId">;
3360
- } | {
3361
- type: "workspace";
3362
- workspace: true;
3363
- } | {
3364
- type: "block_id";
3365
- block_id: string & v.Brand<"NotionBlockId">;
3366
- } | {
3367
- type: "agent_id";
3368
- agent_id: string & v.Brand<"NotionAgentId">;
3369
- } | {
3370
- type: "app_installation_id";
3371
- app_installation_id: string & v.Brand<"NotionAppInstallationId">;
3372
- } | {
3373
- type: "unavailable";
3374
- };
3375
- properties: {
3376
- [x: string]: {
3377
- id: string;
3378
- type: "title";
3379
- title: {
3380
- [x: string]: unknown;
3381
- }[];
3382
- } | {
3383
- id: string;
3384
- type: "rich_text";
3385
- rich_text: {
3386
- [x: string]: unknown;
3387
- }[];
3388
- } | {
3389
- id: string;
3390
- type: "number";
3391
- number: number | null;
3392
- } | {
3393
- id: string;
3394
- type: "url";
3395
- url: string | null;
3396
- } | {
3397
- id: string;
3398
- type: "email";
3399
- email: string | null;
3400
- } | {
3401
- id: string;
3402
- type: "phone_number";
3403
- phone_number: string | null;
3404
- } | {
3405
- id: string;
3406
- type: "checkbox";
3407
- checkbox: boolean;
3408
- } | {
3409
- id: string;
3410
- type: "select";
3411
- select: {
3412
- id: string;
3413
- name?: string | undefined;
3414
- color?: string | undefined;
3415
- description?: string | null | undefined;
3416
- } | {
3417
- name: string;
3418
- id?: string | undefined;
3419
- color?: string | undefined;
3420
- description?: string | null | undefined;
3421
- } | null;
3422
- } | {
3423
- id: string;
3424
- type: "status";
3425
- status: {
3426
- id: string;
3427
- name?: string | undefined;
3428
- color?: string | undefined;
3429
- description?: string | null | undefined;
3430
- } | {
3431
- name: string;
3432
- id?: string | undefined;
3433
- color?: string | undefined;
3434
- description?: string | null | undefined;
3435
- } | null;
3436
- } | {
3437
- id: string;
3438
- type: "multi_select";
3439
- multi_select: ({
3440
- id: string;
3441
- name?: string | undefined;
3442
- color?: string | undefined;
3443
- description?: string | null | undefined;
3444
- } | {
3445
- name: string;
3446
- id?: string | undefined;
3447
- color?: string | undefined;
3448
- description?: string | null | undefined;
3449
- })[];
3450
- } | {
3451
- id: string;
3452
- type: "date";
3453
- date: {
3454
- end?: string | null | undefined;
3455
- time_zone?: string | null | undefined;
3456
- reminder?: {
3457
- unit: "day" | "month" | "week" | "year";
3458
- value: number;
3459
- time: string;
3460
- defaultTimeZone?: string | undefined;
3461
- } | {
3462
- unit: "hour" | "minute";
3463
- value: number;
3464
- } | {
3465
- unit: "none";
3466
- } | undefined;
3467
- start: string;
3468
- } | {
3469
- start: string;
3470
- end?: string | null | undefined;
3471
- reminder?: {
3472
- unit: "day" | "month" | "week" | "year";
3473
- value: number;
3474
- time: string;
3475
- defaultTimeZone?: string | undefined;
3476
- } | {
3477
- unit: "hour" | "minute";
3478
- value: number;
3479
- } | {
3480
- unit: "none";
3481
- } | undefined;
3482
- time_zone: string;
3483
- } | {
3484
- start: string;
3485
- end?: string | null | undefined;
3486
- time_zone?: string | null | undefined;
3487
- reminder?: {
3488
- unit: "day" | "month" | "week" | "year";
3489
- value: number;
3490
- time: string;
3491
- defaultTimeZone?: string | undefined;
3492
- } | {
3493
- unit: "none";
3494
- } | undefined;
3495
- } | null;
3496
- } | {
3497
- id: string;
3498
- type: "people";
3499
- people: ({
3500
- object?: "user" | undefined;
3501
- id: string;
3502
- } | {
3503
- object: "group";
3504
- id: string;
3505
- name?: string | null | undefined;
3506
- })[];
3507
- } | {
3508
- id: string;
3509
- type: "relation";
3510
- has_more?: boolean | undefined;
3511
- relation: {
3512
- id: string;
3513
- }[];
3514
- } | {
3515
- id: string;
3516
- type: "files";
3517
- files: ({
3518
- type: "external";
3519
- external: {
3520
- url: string;
3521
- };
3522
- name: string;
3523
- } | {
3524
- type: "file";
3525
- file: {
3526
- url: string;
3527
- expiry_time?: string | undefined;
3528
- };
3529
- name: string;
3530
- })[];
3531
- } | {
3532
- id: string;
3533
- type: "place";
3534
- place: {
3535
- lat: number;
3536
- lon: number;
3537
- name?: string | null | undefined;
3538
- address?: string | null | undefined;
3539
- aws_place_id?: string | null | undefined;
3540
- google_place_id?: string | null | undefined;
3541
- } | null;
3542
- } | {
3543
- id: string;
3544
- type: "created_time";
3545
- created_time: string | null;
3546
- } | {
3547
- id: string;
3548
- type: "last_edited_time";
3549
- last_edited_time: string | null;
3550
- } | {
3551
- id: string;
3552
- type: "created_by";
3553
- created_by: {
3554
- id: string;
3555
- table: "bot" | "notion_user" | "organization_bot";
3556
- spaceId?: string | undefined;
3557
- } | null;
3558
- } | {
3559
- id: string;
3560
- type: "last_edited_by";
3561
- last_edited_by: {
3562
- id: string;
3563
- table: "bot" | "notion_user" | "organization_bot";
3564
- spaceId?: string | undefined;
3565
- } | null;
3566
- } | {
3567
- id: string;
3568
- type: "unique_id";
3569
- unique_id: string;
3570
- } | {
3571
- id: string;
3572
- type: "button";
3573
- button: string;
3574
- } | {
3575
- id: string;
3576
- type: "formula";
3577
- formula: string;
3578
- } | {
3579
- id: string;
3580
- type: "rollup";
3581
- rollup: string;
3582
- } | {
3583
- id: string;
3584
- type: "verification";
3585
- verification: string;
3586
- } | null;
3587
- };
3588
- created_by: {
3589
- id: string;
3590
- table: "bot" | "notion_user" | "organization_bot";
3591
- spaceId?: string | undefined;
3592
- } | null;
3593
- last_edited_by: {
3594
- id: string;
3595
- table: "bot" | "notion_user" | "organization_bot";
3596
- spaceId?: string | undefined;
3597
- } | null;
3598
- created_time: string | null;
3599
- last_edited_time: string | null;
3600
- icon: {
3601
- type: "external";
3602
- external: {
3603
- url: string;
3604
- };
3605
- } | {
3606
- type: "file";
3607
- file: {
3608
- url: string;
3609
- expiry_time?: string | undefined;
3610
- };
3611
- } | {
3612
- type: "emoji";
3613
- emoji: string;
3614
- } | {
3615
- type: "custom_emoji";
3616
- custom_emoji: {
3617
- id: string;
3618
- name?: string | undefined;
3619
- url?: string | undefined;
3620
- };
3621
- } | ({
3622
- type: "icon";
3623
- icon: {
3624
- name: string;
3625
- color?: import("../protocol/icons.js").BridgeIconColor | undefined;
3626
- } & {
3627
- [key: string]: unknown;
3628
- };
3629
- } & {
3630
- [key: string]: unknown;
3631
- }) | null;
3632
- cover: {
3633
- type: "external";
3634
- external: {
3635
- url: string;
3636
- };
3637
- } | {
3638
- type: "file";
3639
- file: {
3640
- url: string;
3641
- expiry_time?: string | undefined;
3642
- };
3643
- } | null;
3644
- url: string | null;
3645
- public_url: string | null;
3646
- is_archived: boolean;
3647
- in_trash: boolean;
3648
- };
3649
- } | {
3650
- type: "updatePageResult";
3651
- requestId: string;
3652
- status: "error";
3653
- error: {
3654
- code: string;
3655
- message: string;
3656
- isRetryable: boolean;
3657
- };
3658
- };
3659
- readonly issues: [v.ArrayIssue | v.BaseIssue<unknown> | v.BooleanIssue | v.CheckIssue<{
3660
- requested: number;
3661
- applied: number;
3662
- }> | v.IncludesIssue<string, "T"> | v.LiteralIssue | v.MinLengthIssue<string[], 1> | v.MinValueIssue<number, 1> | v.NumberIssue | v.PicklistIssue | v.RecordIssue | v.SafeIntegerIssue<number> | v.StringIssue | v.UnionIssue<v.ObjectIssue | v.StringIssue> | v.UnionIssue<v.ArrayIssue | v.MinLengthIssue<string[], 1> | v.StringIssue> | v.UnionIssue<v.LiteralIssue | v.ObjectIssue | v.StringIssue> | v.UnionIssue<v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue> | v.UnionIssue<v.LiteralIssue | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue> | v.UnionIssue<v.LiteralIssue | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue | v.UnionIssue<v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue>> | v.UnionIssue<v.IncludesIssue<string, "T"> | v.LiteralIssue | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue | v.UnionIssue<v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue> | v.UnionIssue<v.LiteralIssue | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue> | v.UnionIssue<v.LiteralIssue | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue | v.UnionIssue<v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue>>> | v.VariantIssue, ...(v.ArrayIssue | v.BaseIssue<unknown> | v.BooleanIssue | v.CheckIssue<{
3663
- requested: number;
3664
- applied: number;
3665
- }> | v.IncludesIssue<string, "T"> | v.LiteralIssue | v.MinLengthIssue<string[], 1> | v.MinValueIssue<number, 1> | v.NumberIssue | v.PicklistIssue | v.RecordIssue | v.SafeIntegerIssue<number> | v.StringIssue | v.UnionIssue<v.ObjectIssue | v.StringIssue> | v.UnionIssue<v.ArrayIssue | v.MinLengthIssue<string[], 1> | v.StringIssue> | v.UnionIssue<v.LiteralIssue | v.ObjectIssue | v.StringIssue> | v.UnionIssue<v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue> | v.UnionIssue<v.LiteralIssue | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue> | v.UnionIssue<v.LiteralIssue | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue | v.UnionIssue<v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue>> | v.UnionIssue<v.IncludesIssue<string, "T"> | v.LiteralIssue | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue | v.UnionIssue<v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue> | v.UnionIssue<v.LiteralIssue | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue> | v.UnionIssue<v.LiteralIssue | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue | v.UnionIssue<v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue>>> | v.VariantIssue)[]];
3666
- } | {
3667
- readonly typed: false;
3668
- readonly success: false;
3669
- readonly output: unknown;
3670
- readonly issues: [v.ArrayIssue | v.BaseIssue<unknown> | v.BooleanIssue | v.CheckIssue<{
3671
- requested: number;
3672
- applied: number;
3673
- }> | v.IncludesIssue<string, "T"> | v.LiteralIssue | v.MinLengthIssue<string[], 1> | v.MinValueIssue<number, 1> | v.NumberIssue | v.PicklistIssue | v.RecordIssue | v.SafeIntegerIssue<number> | v.StringIssue | v.UnionIssue<v.ObjectIssue | v.StringIssue> | v.UnionIssue<v.ArrayIssue | v.MinLengthIssue<string[], 1> | v.StringIssue> | v.UnionIssue<v.LiteralIssue | v.ObjectIssue | v.StringIssue> | v.UnionIssue<v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue> | v.UnionIssue<v.LiteralIssue | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue> | v.UnionIssue<v.LiteralIssue | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue | v.UnionIssue<v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue>> | v.UnionIssue<v.IncludesIssue<string, "T"> | v.LiteralIssue | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue | v.UnionIssue<v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue> | v.UnionIssue<v.LiteralIssue | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue> | v.UnionIssue<v.LiteralIssue | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue | v.UnionIssue<v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue>>> | v.VariantIssue, ...(v.ArrayIssue | v.BaseIssue<unknown> | v.BooleanIssue | v.CheckIssue<{
3674
- requested: number;
3675
- applied: number;
3676
- }> | v.IncludesIssue<string, "T"> | v.LiteralIssue | v.MinLengthIssue<string[], 1> | v.MinValueIssue<number, 1> | v.NumberIssue | v.PicklistIssue | v.RecordIssue | v.SafeIntegerIssue<number> | v.StringIssue | v.UnionIssue<v.ObjectIssue | v.StringIssue> | v.UnionIssue<v.ArrayIssue | v.MinLengthIssue<string[], 1> | v.StringIssue> | v.UnionIssue<v.LiteralIssue | v.ObjectIssue | v.StringIssue> | v.UnionIssue<v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue> | v.UnionIssue<v.LiteralIssue | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue> | v.UnionIssue<v.LiteralIssue | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue | v.UnionIssue<v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue>> | v.UnionIssue<v.IncludesIssue<string, "T"> | v.LiteralIssue | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue | v.UnionIssue<v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue> | v.UnionIssue<v.LiteralIssue | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue> | v.UnionIssue<v.LiteralIssue | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue | v.UnionIssue<v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue>>> | v.VariantIssue)[]];
3677
- };
3678
- //# sourceMappingURL=parseHostToSandboxMessage.d.ts.map