@notionhq/custom-blocks 0.5.2 → 0.6.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 (555) hide show
  1. package/README.md +43 -43
  2. package/bin/notion-custom-blocks/tar.js +1 -1
  3. package/dist/bridge/SandboxBridge.d.ts +96 -8
  4. package/dist/bridge/SandboxBridge.d.ts.map +1 -1
  5. package/dist/bridge/SandboxBridge.js +310 -54
  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/getInitializedHostState.d.ts.map +1 -0
  10. package/dist/bridge/getInitializedHostState.js +8 -0
  11. package/dist/bridge/hostState.d.ts +29 -0
  12. package/dist/bridge/hostState.d.ts.map +1 -0
  13. package/dist/bridge/initialization/SandboxInitialization.d.ts +43 -21
  14. package/dist/bridge/initialization/SandboxInitialization.d.ts.map +1 -1
  15. package/dist/bridge/initialization/SandboxInitialization.js +258 -84
  16. package/dist/bridge/requests.d.ts +1 -1
  17. package/dist/bridge/requests.d.ts.map +1 -1
  18. package/dist/bridge/requests.js +4 -3
  19. package/dist/bridge/subscribeToHostStateField.d.ts +11 -0
  20. package/dist/bridge/subscribeToHostStateField.d.ts.map +1 -0
  21. package/dist/{context/subscribeToContext.js → bridge/subscribeToHostStateField.js} +8 -8
  22. package/dist/data-sources.d.ts +10 -0
  23. package/dist/data-sources.d.ts.map +1 -0
  24. package/dist/data-sources.js +1 -0
  25. package/dist/dataSources/NotionDataSource.d.ts +35 -0
  26. package/dist/dataSources/NotionDataSource.d.ts.map +1 -0
  27. package/dist/dataSources/NotionDataSource.js +50 -0
  28. package/dist/dataSources/bridge/applyDataSourceBindings.d.ts +1 -1
  29. package/dist/dataSources/bridge/applyDataSourceBindings.d.ts.map +1 -1
  30. package/dist/dataSources/bridge/makeDataSourceReadResponseSchema.d.ts +2001 -0
  31. package/dist/dataSources/bridge/makeDataSourceReadResponseSchema.d.ts.map +1 -0
  32. package/dist/dataSources/bridge/makeDataSourceReadResponseSchema.js +19 -0
  33. package/dist/dataSources/bridge/resolveDataSourceQuery.d.ts +2 -2
  34. package/dist/dataSources/bridge/resolveDataSourceQuery.d.ts.map +1 -1
  35. package/dist/dataSources/bridge/resolveDataSources.d.ts +1 -1
  36. package/dist/dataSources/bridge/resolveDataSources.js +1 -1
  37. package/dist/dataSources/dataSourceState.d.ts +26 -0
  38. package/dist/dataSources/dataSourceState.d.ts.map +1 -0
  39. package/dist/dataSources/dataSourceState.js +39 -0
  40. package/dist/dataSources/ensureDataSource.d.ts +554 -0
  41. package/dist/dataSources/ensureDataSource.d.ts.map +1 -0
  42. package/dist/dataSources/ensureDataSource.js +24 -0
  43. package/dist/dataSources/getDataSourcePage.d.ts.map +1 -1
  44. package/dist/dataSources/getDataSourcePage.js +8 -3
  45. package/dist/dataSources/observeDataSource.d.ts +8 -0
  46. package/dist/dataSources/observeDataSource.d.ts.map +1 -0
  47. package/dist/dataSources/observeDataSource.js +76 -0
  48. package/dist/dataSources/properties/resolvePropertyWriteMapForDataSource.d.ts +1 -1
  49. package/dist/dataSources/properties/resolvePropertyWriteMapForDataSource.js +1 -1
  50. package/dist/dataSources/resolvePageDataSource.d.ts +1 -1
  51. package/dist/dataSources/resolvePageDataSource.d.ts.map +1 -1
  52. package/dist/dataSources/subscribeToDataSource.d.ts +1 -1
  53. package/dist/dataSources/subscribeToDataSource.d.ts.map +1 -1
  54. package/dist/dataSources/subscribeToDataSource.js +72 -48
  55. package/dist/dataSources/types.d.ts +18 -15
  56. package/dist/dataSources/types.d.ts.map +1 -1
  57. package/dist/index.d.ts +18 -33
  58. package/dist/index.d.ts.map +1 -1
  59. package/dist/index.js +10 -9
  60. package/dist/initialization/initCustomBlock.d.ts +6 -4
  61. package/dist/initialization/initCustomBlock.d.ts.map +1 -1
  62. package/dist/initialization/initCustomBlock.js +6 -4
  63. package/dist/initialization/notifyReady.d.ts +14 -0
  64. package/dist/initialization/notifyReady.d.ts.map +1 -0
  65. package/dist/initialization/notifyReady.js +9 -0
  66. package/dist/initialization/react/useCustomBlockInit.d.ts +18 -36
  67. package/dist/initialization/react/useCustomBlockInit.d.ts.map +1 -1
  68. package/dist/initialization/react/useCustomBlockInit.js +9 -22
  69. package/dist/initialization/resolveInitialState.d.ts +3 -12
  70. package/dist/initialization/resolveInitialState.d.ts.map +1 -1
  71. package/dist/initialization/resolveInitialState.js +8 -25
  72. package/dist/initialization/types.d.ts +17 -14
  73. package/dist/initialization/types.d.ts.map +1 -1
  74. package/dist/layout/autoResize.d.ts +1 -0
  75. package/dist/layout/autoResize.d.ts.map +1 -1
  76. package/dist/layout/autoResize.js +57 -37
  77. package/dist/location/getContainingPage.d.ts +4 -0
  78. package/dist/location/getContainingPage.d.ts.map +1 -0
  79. package/dist/location/getContainingPage.js +10 -0
  80. package/dist/location/getInstance.d.ts +7 -0
  81. package/dist/location/getInstance.d.ts.map +1 -0
  82. package/dist/location/getInstance.js +8 -0
  83. package/dist/location/getParent.d.ts +4 -0
  84. package/dist/location/getParent.d.ts.map +1 -0
  85. package/dist/location/getParent.js +10 -0
  86. package/dist/location/mapContainingPage.d.ts +4 -0
  87. package/dist/location/mapContainingPage.d.ts.map +1 -0
  88. package/dist/location/mapContainingPage.js +10 -0
  89. package/dist/location/mapParent.d.ts +4 -0
  90. package/dist/location/mapParent.d.ts.map +1 -0
  91. package/dist/location/mapParent.js +20 -0
  92. package/dist/location/subscribeToContainingPage.d.ts +5 -0
  93. package/dist/location/subscribeToContainingPage.d.ts.map +1 -0
  94. package/dist/location/subscribeToContainingPage.js +9 -0
  95. package/dist/location/subscribeToParent.d.ts +5 -0
  96. package/dist/location/subscribeToParent.d.ts.map +1 -0
  97. package/dist/location/subscribeToParent.js +9 -0
  98. package/dist/location/types.d.ts +45 -0
  99. package/dist/location/types.d.ts.map +1 -0
  100. package/dist/location/types.js +1 -0
  101. package/dist/manifest/getManifest.d.ts +1 -1
  102. package/dist/manifest/getManifest.js +2 -2
  103. package/dist/navigation/openExternalUrl.d.ts +1 -1
  104. package/dist/navigation/openExternalUrl.d.ts.map +1 -1
  105. package/dist/navigation/openExternalUrl.js +1 -1
  106. package/dist/navigation.d.ts +16 -0
  107. package/dist/navigation.d.ts.map +1 -0
  108. package/dist/navigation.js +21 -0
  109. package/dist/pages/NotionPage.d.ts +34 -0
  110. package/dist/pages/NotionPage.d.ts.map +1 -0
  111. package/dist/pages/NotionPage.js +105 -0
  112. package/dist/pages/bridge/getPageForDataSource.d.ts +1 -1
  113. package/dist/pages/bridge/getPageForDataSource.d.ts.map +1 -1
  114. package/dist/pages/bridge/getPageForDataSource.js +2 -2
  115. package/dist/pages/bridge/resolveCreatePageDestination.d.ts +1 -1
  116. package/dist/pages/bridge/resolveCreatePageDestination.d.ts.map +1 -1
  117. package/dist/pages/bridge/sendCreatePageRequest.d.ts.map +1 -1
  118. package/dist/pages/bridge/sendCreatePageRequest.js +3 -2
  119. package/dist/pages/bridge/toNotionPageFromBridgePage.d.ts +3 -9
  120. package/dist/pages/bridge/toNotionPageFromBridgePage.d.ts.map +1 -1
  121. package/dist/pages/bridge/toNotionPageFromBridgePage.js +36 -11
  122. package/dist/pages/bridge/updatePage.d.ts +4 -3
  123. package/dist/pages/bridge/updatePage.d.ts.map +1 -1
  124. package/dist/pages/bridge/updatePage.js +3 -3
  125. package/dist/pages/createPage.d.ts.map +1 -1
  126. package/dist/pages/createPage.js +9 -1
  127. package/dist/pages/getPage.d.ts +2 -2
  128. package/dist/pages/getPage.d.ts.map +1 -1
  129. package/dist/pages/getPage.js +1 -1
  130. package/dist/pages/identityBlockKey.d.ts +4 -0
  131. package/dist/pages/identityBlockKey.d.ts.map +1 -0
  132. package/dist/pages/identityBlockKey.js +6 -0
  133. package/dist/pages/identityPageKey.d.ts +7 -0
  134. package/dist/pages/identityPageKey.d.ts.map +1 -0
  135. package/dist/pages/identityPageKey.js +9 -0
  136. package/dist/pages/parent.d.ts +0 -2
  137. package/dist/pages/parent.d.ts.map +1 -1
  138. package/dist/pages/types.d.ts +20 -48
  139. package/dist/pages/types.d.ts.map +1 -1
  140. package/dist/pages.d.ts +56 -0
  141. package/dist/pages.d.ts.map +1 -0
  142. package/dist/pages.js +69 -0
  143. package/dist/preferences/backgroundColors.d.ts.map +1 -0
  144. package/dist/preferences/getContrastMode.d.ts.map +1 -0
  145. package/dist/{context → preferences}/getContrastMode.js +1 -1
  146. package/dist/preferences/getTheme.d.ts.map +1 -0
  147. package/dist/{context → preferences}/getTheme.js +1 -1
  148. package/dist/preferences/react/useContrastMode.d.ts.map +1 -0
  149. package/dist/preferences/react/useTheme.d.ts.map +1 -0
  150. package/dist/{context → preferences}/subscribeToContrastMode.d.ts +1 -1
  151. package/dist/preferences/subscribeToContrastMode.d.ts.map +1 -0
  152. package/dist/{context → preferences}/subscribeToContrastMode.js +2 -2
  153. package/dist/{context → preferences}/subscribeToTheme.d.ts +1 -1
  154. package/dist/preferences/subscribeToTheme.d.ts.map +1 -0
  155. package/dist/{context → preferences}/subscribeToTheme.js +2 -2
  156. package/dist/preferences/syncDocumentAppearance.d.ts +11 -0
  157. package/dist/preferences/syncDocumentAppearance.d.ts.map +1 -0
  158. package/dist/{context → preferences}/syncDocumentAppearance.js +2 -5
  159. package/dist/preferences.d.ts +7 -0
  160. package/dist/preferences.d.ts.map +1 -0
  161. package/dist/preferences.js +4 -0
  162. package/dist/protocol/context/containingPage.d.ts +2 -0
  163. package/dist/protocol/context/containingPage.js +4 -2
  164. package/dist/protocol/context/instance.d.ts +13 -0
  165. package/dist/protocol/context/instance.js +8 -0
  166. package/dist/protocol/context/messages/pageChanged.d.ts +1 -0
  167. package/dist/protocol/context/messages/pageError.d.ts +11 -0
  168. package/dist/protocol/context/messages/pageError.js +7 -0
  169. package/dist/protocol/context/messages/parentError.d.ts +11 -0
  170. package/dist/protocol/context/messages/parentError.js +7 -0
  171. package/dist/protocol/context/parent.d.ts +6 -6
  172. package/dist/protocol/dataSources/bridgeDataSourceBinding.d.ts +4 -4
  173. package/dist/protocol/dataSources/bridgeDataSourceBindings.d.ts +4 -4
  174. package/dist/protocol/dataSources/dataSourceSchema.d.ts +4 -4
  175. package/dist/protocol/dataSources/errors.d.ts +27 -3
  176. package/dist/protocol/dataSources/messages/getDataSource.d.ts +1857 -0
  177. package/dist/protocol/dataSources/messages/getDataSource.js +27 -0
  178. package/dist/protocol/dataSources/messages/queryDataSource.d.ts +37 -383
  179. package/dist/protocol/dataSources/messages/queryDataSource.js +0 -17
  180. package/dist/protocol/dataSources/notionDataSource.d.ts +8 -8
  181. package/dist/protocol/dataSources/properties/propertySchema.d.ts +15 -20
  182. package/dist/protocol/dataSources/properties/propertySchema.js +5 -10
  183. package/dist/protocol/handshake/connect.d.ts +11 -23
  184. package/dist/protocol/handshake/connect.js +12 -34
  185. package/dist/protocol/handshake/connectResult.d.ts +19 -0
  186. package/dist/protocol/handshake/connectResult.js +18 -0
  187. package/dist/protocol/handshake/init.d.ts +41 -219
  188. package/dist/protocol/handshake/init.js +11 -30
  189. package/dist/protocol/handshake/initResult.d.ts +9 -14
  190. package/dist/protocol/handshake/initResult.js +7 -10
  191. package/dist/protocol/handshake/isInitHandshakeMessage.d.ts +3 -3
  192. package/dist/protocol/handshake/isInitHandshakeMessage.js +1 -0
  193. package/dist/protocol/handshake/ready.d.ts +11 -0
  194. package/dist/protocol/handshake/ready.js +10 -0
  195. package/dist/protocol/icons.d.ts +1 -1
  196. package/dist/protocol/icons.js +1 -1
  197. package/dist/protocol/manifest/manifest.d.ts +2 -3
  198. package/dist/protocol/manifest/manifest.js +2 -3
  199. package/dist/protocol/messages/hostToSandbox.d.ts +1889 -2963
  200. package/dist/protocol/messages/hostToSandbox.js +21 -24
  201. package/dist/protocol/messages/incomingType.d.ts +2 -6
  202. package/dist/protocol/messages/incomingType.js +2 -6
  203. package/dist/protocol/messages/invalidHostMessage.d.ts +2 -0
  204. package/dist/protocol/messages/invalidHostMessage.js +2 -0
  205. package/dist/protocol/messages/invalidSandboxMessage.d.ts +2 -0
  206. package/dist/protocol/messages/invalidSandboxMessage.js +2 -0
  207. package/dist/protocol/messages/sandboxToHost.d.ts +26 -28
  208. package/dist/protocol/messages/sandboxToHost.js +13 -8
  209. package/dist/protocol/pages/bridgePage.d.ts +12 -6
  210. package/dist/protocol/pages/bridgePage.js +6 -1
  211. package/dist/protocol/pages/messages/createPage.d.ts +49 -596
  212. package/dist/protocol/pages/messages/createPage.js +0 -16
  213. package/dist/protocol/pages/messages/getPage.d.ts +12 -586
  214. package/dist/protocol/pages/messages/getPage.js +0 -15
  215. package/dist/protocol/pages/messages/updatePage.d.ts +15 -589
  216. package/dist/protocol/pages/messages/updatePage.js +1 -16
  217. package/dist/protocol/pages/properties/bridgePagePropertyMaps.d.ts +4 -4
  218. package/dist/protocol/pages/properties/bridgePagePropertyValue.d.ts +2 -2
  219. package/dist/protocol/pages/properties/metadataActor.d.ts +1 -1
  220. package/dist/protocol/pages/properties/metadataActor.js +0 -1
  221. package/dist/protocol/users/bridgeUser.d.ts +2 -1
  222. package/dist/protocol/users/bridgeUser.js +2 -1
  223. package/dist/protocol/users/bridgeUserList.d.ts +1 -1
  224. package/dist/protocol/users/makeBridgeUser.d.ts +1 -1
  225. package/dist/protocol/users/makeBridgeUser.js +2 -1
  226. package/dist/protocol/users/messages/getCurrentUser.d.ts +32 -0
  227. package/dist/protocol/users/messages/getCurrentUser.js +22 -0
  228. package/dist/protocol/users/messages/getUser.d.ts +1 -1
  229. package/dist/protocol/users/messages/getViewer.d.ts +29 -0
  230. package/dist/protocol/users/messages/getViewer.js +23 -0
  231. package/dist/protocol/users/messages/listUsers.d.ts +1 -1
  232. package/dist/protocol/users/viewer.d.ts +9 -0
  233. package/dist/protocol/users/viewer.js +10 -0
  234. package/dist/protocol/utils/errors.d.ts +33 -3
  235. package/dist/protocol/utils/ids.d.ts +3 -0
  236. package/dist/protocol/utils/ids.js +2 -0
  237. package/dist/protocol/utils/protocolVersion.d.ts +2 -5
  238. package/dist/protocol/utils/protocolVersion.js +3 -10
  239. package/dist/protocol/utils/readSubscriptionId.d.ts +2 -0
  240. package/dist/protocol/utils/readSubscriptionId.js +7 -0
  241. package/dist/react/NotionCustomBlock.d.ts +6 -26
  242. package/dist/react/NotionCustomBlock.d.ts.map +1 -1
  243. package/dist/react/NotionCustomBlock.js +15 -41
  244. package/dist/react/NotionTokenScope.js +2 -2
  245. package/dist/react/index.d.ts +12 -14
  246. package/dist/react/index.d.ts.map +1 -1
  247. package/dist/react/index.js +11 -14
  248. package/dist/react/useAsyncRead.d.ts +16 -0
  249. package/dist/react/useAsyncRead.d.ts.map +1 -0
  250. package/dist/react/useAsyncRead.js +25 -0
  251. package/dist/react/useContainingPage.d.ts +5 -0
  252. package/dist/react/useContainingPage.d.ts.map +1 -0
  253. package/dist/react/useContainingPage.js +16 -0
  254. package/dist/react/useLiveLocationRead.d.ts +14 -0
  255. package/dist/react/useLiveLocationRead.d.ts.map +1 -0
  256. package/dist/react/useLiveLocationRead.js +35 -0
  257. package/dist/react/usePage.d.ts +7 -0
  258. package/dist/react/usePage.d.ts.map +1 -0
  259. package/dist/react/usePage.js +38 -0
  260. package/dist/react/useParent.d.ts +7 -0
  261. package/dist/react/useParent.d.ts.map +1 -0
  262. package/dist/react/useParent.js +18 -0
  263. package/dist/react/useQuerySubscription.d.ts +22 -0
  264. package/dist/react/useQuerySubscription.d.ts.map +1 -0
  265. package/dist/react/useQuerySubscription.js +43 -0
  266. package/dist/react/useUserFields.d.ts +9 -0
  267. package/dist/react/useUserFields.d.ts.map +1 -0
  268. package/dist/react/useUserFields.js +14 -0
  269. package/dist/react/useViewer.d.ts +3 -0
  270. package/dist/react/useViewer.d.ts.map +1 -0
  271. package/dist/react/useViewer.js +6 -0
  272. package/dist/users/NotionUser.d.ts +21 -0
  273. package/dist/users/NotionUser.d.ts.map +1 -0
  274. package/dist/users/NotionUser.js +51 -0
  275. package/dist/users/bridge/toNotionUserDataFromBridgeUser.d.ts +4 -0
  276. package/dist/users/bridge/toNotionUserDataFromBridgeUser.d.ts.map +1 -0
  277. package/dist/users/bridge/{toNotionUserFromBridgeUser.js → toNotionUserDataFromBridgeUser.js} +2 -2
  278. package/dist/users/getUser.d.ts +1 -1
  279. package/dist/users/getUser.js +3 -3
  280. package/dist/users/getViewer.d.ts +19 -0
  281. package/dist/users/getViewer.d.ts.map +1 -0
  282. package/dist/users/getViewer.js +21 -0
  283. package/dist/users/listUsers.d.ts.map +1 -1
  284. package/dist/users/listUsers.js +15 -5
  285. package/dist/users/types.d.ts +9 -7
  286. package/dist/users/types.d.ts.map +1 -1
  287. package/dist/users.d.ts +9 -0
  288. package/dist/users.d.ts.map +1 -0
  289. package/dist/users.js +3 -0
  290. package/dist/utils/makeUuid.d.ts +2 -0
  291. package/dist/utils/makeUuid.d.ts.map +1 -0
  292. package/dist/utils/makeUuid.js +3 -0
  293. package/dist/utils/unreachable.d.ts +1 -5
  294. package/dist/utils/unreachable.d.ts.map +1 -1
  295. package/dist/utils/unreachable.js +1 -5
  296. package/dist/utils/version.js +1 -1
  297. package/docs/block-location.md +114 -134
  298. package/docs/data-sources.md +243 -380
  299. package/docs/deployment.md +8 -8
  300. package/docs/errors.md +87 -68
  301. package/docs/grants.md +18 -27
  302. package/docs/lifecycle.md +94 -188
  303. package/docs/links.md +14 -16
  304. package/docs/pages.md +136 -148
  305. package/docs/users.md +81 -126
  306. package/package.json +21 -1
  307. package/src/bridge/SandboxBridge.ts +387 -66
  308. package/src/{context/applyContextMessage.ts → bridge/applyHostStateMessage.ts} +9 -9
  309. package/src/{context → bridge}/getInitializedHostState.ts +2 -2
  310. package/src/bridge/hostState.ts +31 -0
  311. package/src/bridge/initialization/SandboxInitialization.ts +323 -117
  312. package/src/bridge/requests.ts +6 -3
  313. package/src/{context/subscribeToContext.ts → bridge/subscribeToHostStateField.ts} +11 -9
  314. package/src/data-sources.ts +24 -0
  315. package/src/dataSources/NotionDataSource.ts +114 -0
  316. package/src/dataSources/bridge/applyDataSourceBindings.ts +1 -1
  317. package/src/dataSources/bridge/makeDataSourceReadResponseSchema.ts +29 -0
  318. package/src/dataSources/bridge/resolveDataSourceQuery.ts +2 -2
  319. package/src/dataSources/bridge/resolveDataSources.ts +1 -1
  320. package/src/dataSources/dataSourceState.ts +65 -0
  321. package/src/dataSources/ensureDataSource.ts +33 -0
  322. package/src/dataSources/getDataSourcePage.ts +8 -3
  323. package/src/dataSources/observeDataSource.ts +94 -0
  324. package/src/dataSources/properties/resolvePropertyWriteMapForDataSource.ts +1 -1
  325. package/src/dataSources/resolvePageDataSource.ts +1 -1
  326. package/src/dataSources/subscribeToDataSource.ts +78 -49
  327. package/src/dataSources/types.ts +16 -16
  328. package/src/index.ts +25 -66
  329. package/src/initialization/initCustomBlock.ts +9 -5
  330. package/src/initialization/notifyReady.ts +15 -0
  331. package/src/initialization/react/useCustomBlockInit.ts +22 -37
  332. package/src/initialization/resolveInitialState.ts +13 -32
  333. package/src/initialization/types.ts +20 -14
  334. package/src/layout/autoResize.ts +57 -40
  335. package/src/location/getContainingPage.ts +14 -0
  336. package/src/location/getInstance.ts +10 -0
  337. package/src/location/getParent.ts +14 -0
  338. package/src/location/mapContainingPage.ts +13 -0
  339. package/src/location/mapParent.ts +23 -0
  340. package/src/location/subscribeToContainingPage.ts +14 -0
  341. package/src/location/subscribeToParent.ts +14 -0
  342. package/src/location/types.ts +29 -0
  343. package/src/manifest/getManifest.ts +2 -2
  344. package/src/navigation/openExternalUrl.ts +1 -1
  345. package/src/navigation.ts +45 -0
  346. package/src/pages/NotionPage.ts +144 -0
  347. package/src/pages/bridge/getPageForDataSource.ts +3 -3
  348. package/src/pages/bridge/resolveCreatePageDestination.ts +1 -1
  349. package/src/pages/bridge/sendCreatePageRequest.ts +3 -2
  350. package/src/pages/bridge/toNotionPageFromBridgePage.ts +45 -19
  351. package/src/pages/bridge/updatePage.ts +6 -6
  352. package/src/pages/createPage.ts +14 -1
  353. package/src/pages/getPage.ts +2 -2
  354. package/src/pages/identityBlockKey.ts +10 -0
  355. package/src/pages/identityPageKey.ts +13 -0
  356. package/src/pages/parent.ts +0 -10
  357. package/src/pages/types.ts +23 -42
  358. package/src/pages.ts +144 -0
  359. package/src/{context → preferences}/getContrastMode.ts +1 -1
  360. package/src/{context → preferences}/getTheme.ts +1 -1
  361. package/src/{context → preferences}/subscribeToContrastMode.ts +3 -3
  362. package/src/{context → preferences}/subscribeToTheme.ts +3 -3
  363. package/src/{context → preferences}/syncDocumentAppearance.ts +2 -5
  364. package/src/preferences.ts +6 -0
  365. package/src/react/NotionCustomBlock.tsx +21 -52
  366. package/src/react/NotionTokenScope.tsx +2 -2
  367. package/src/react/index.ts +20 -14
  368. package/src/react/useAsyncRead.ts +44 -0
  369. package/src/react/useContainingPage.ts +20 -0
  370. package/src/react/useLiveLocationRead.ts +53 -0
  371. package/src/react/usePage.ts +61 -0
  372. package/src/react/useParent.ts +22 -0
  373. package/src/react/useQuerySubscription.ts +71 -0
  374. package/src/react/useUserFields.ts +24 -0
  375. package/src/react/useViewer.ts +7 -0
  376. package/src/users/NotionUser.ts +70 -0
  377. package/src/users/bridge/{toNotionUserFromBridgeUser.ts → toNotionUserDataFromBridgeUser.ts} +6 -3
  378. package/src/users/getUser.ts +3 -3
  379. package/src/users/getViewer.ts +36 -0
  380. package/src/users/listUsers.ts +15 -5
  381. package/src/users/types.ts +9 -7
  382. package/src/users.ts +20 -0
  383. package/src/utils/makeUuid.ts +3 -0
  384. package/src/utils/unreachable.ts +1 -6
  385. package/dist/bridge/parseHostToSandboxMessage.d.ts +0 -3678
  386. package/dist/bridge/parseHostToSandboxMessage.d.ts.map +0 -1
  387. package/dist/bridge/parseHostToSandboxMessage.js +0 -47
  388. package/dist/context/applyContextMessage.d.ts.map +0 -1
  389. package/dist/context/backgroundColors.d.ts.map +0 -1
  390. package/dist/context/getBlockId.d.ts +0 -7
  391. package/dist/context/getBlockId.d.ts.map +0 -1
  392. package/dist/context/getBlockId.js +0 -8
  393. package/dist/context/getContrastMode.d.ts.map +0 -1
  394. package/dist/context/getInitializedHostState.d.ts.map +0 -1
  395. package/dist/context/getInitializedHostState.js +0 -8
  396. package/dist/context/getPage.d.ts +0 -7
  397. package/dist/context/getPage.d.ts.map +0 -1
  398. package/dist/context/getPage.js +0 -8
  399. package/dist/context/getParent.d.ts +0 -7
  400. package/dist/context/getParent.d.ts.map +0 -1
  401. package/dist/context/getParent.js +0 -8
  402. package/dist/context/getTheme.d.ts.map +0 -1
  403. package/dist/context/hostState.d.ts +0 -15
  404. package/dist/context/hostState.d.ts.map +0 -1
  405. package/dist/context/index.d.ts +0 -42
  406. package/dist/context/index.d.ts.map +0 -1
  407. package/dist/context/index.js +0 -41
  408. package/dist/context/react/useBlockId.d.ts +0 -11
  409. package/dist/context/react/useBlockId.d.ts.map +0 -1
  410. package/dist/context/react/useBlockId.js +0 -14
  411. package/dist/context/react/useContrastMode.d.ts.map +0 -1
  412. package/dist/context/react/usePage.d.ts +0 -12
  413. package/dist/context/react/usePage.d.ts.map +0 -1
  414. package/dist/context/react/usePage.js +0 -15
  415. package/dist/context/react/useParent.d.ts +0 -12
  416. package/dist/context/react/useParent.d.ts.map +0 -1
  417. package/dist/context/react/useParent.js +0 -15
  418. package/dist/context/react/useTheme.d.ts.map +0 -1
  419. package/dist/context/subscribeToBlockId.d.ts +0 -8
  420. package/dist/context/subscribeToBlockId.d.ts.map +0 -1
  421. package/dist/context/subscribeToBlockId.js +0 -8
  422. package/dist/context/subscribeToContext.d.ts +0 -12
  423. package/dist/context/subscribeToContext.d.ts.map +0 -1
  424. package/dist/context/subscribeToContrastMode.d.ts.map +0 -1
  425. package/dist/context/subscribeToPage.d.ts +0 -8
  426. package/dist/context/subscribeToPage.d.ts.map +0 -1
  427. package/dist/context/subscribeToPage.js +0 -8
  428. package/dist/context/subscribeToParent.d.ts +0 -8
  429. package/dist/context/subscribeToParent.d.ts.map +0 -1
  430. package/dist/context/subscribeToParent.js +0 -8
  431. package/dist/context/subscribeToTheme.d.ts.map +0 -1
  432. package/dist/context/syncDocumentAppearance.d.ts +0 -14
  433. package/dist/context/syncDocumentAppearance.d.ts.map +0 -1
  434. package/dist/dataSources/createDataSourcePage.d.ts +0 -4
  435. package/dist/dataSources/createDataSourcePage.d.ts.map +0 -1
  436. package/dist/dataSources/createDataSourcePage.js +0 -44
  437. package/dist/dataSources/index.d.ts +0 -9
  438. package/dist/dataSources/index.d.ts.map +0 -1
  439. package/dist/dataSources/index.js +0 -8
  440. package/dist/dataSources/queryDataSource.d.ts +0 -3
  441. package/dist/dataSources/queryDataSource.d.ts.map +0 -1
  442. package/dist/dataSources/queryDataSource.js +0 -56
  443. package/dist/dataSources/react/useDataSource.d.ts +0 -13
  444. package/dist/dataSources/react/useDataSource.d.ts.map +0 -1
  445. package/dist/dataSources/react/useDataSource.js +0 -58
  446. package/dist/initialization/getInitBindingError.d.ts +0 -5
  447. package/dist/initialization/getInitBindingError.d.ts.map +0 -1
  448. package/dist/initialization/getInitBindingError.js +0 -26
  449. package/dist/layout/postResize.d.ts +0 -2
  450. package/dist/layout/postResize.d.ts.map +0 -1
  451. package/dist/layout/postResize.js +0 -12
  452. package/dist/manifest/react/useManifest.d.ts +0 -15
  453. package/dist/manifest/react/useManifest.d.ts.map +0 -1
  454. package/dist/manifest/react/useManifest.js +0 -18
  455. package/dist/manifest/subscribeToManifest.d.ts +0 -8
  456. package/dist/manifest/subscribeToManifest.d.ts.map +0 -1
  457. package/dist/manifest/subscribeToManifest.js +0 -8
  458. package/dist/navigation/index.d.ts +0 -5
  459. package/dist/navigation/index.d.ts.map +0 -1
  460. package/dist/navigation/index.js +0 -4
  461. package/dist/pages/bridge/makeUpdatePageByKey.d.ts +0 -8
  462. package/dist/pages/bridge/makeUpdatePageByKey.d.ts.map +0 -1
  463. package/dist/pages/bridge/makeUpdatePageByKey.js +0 -17
  464. package/dist/pages/bridge/toNotionPageFieldsFromBridgePage.d.ts +0 -89
  465. package/dist/pages/bridge/toNotionPageFieldsFromBridgePage.d.ts.map +0 -1
  466. package/dist/pages/bridge/toNotionPageFieldsFromBridgePage.js +0 -24
  467. package/dist/pages/bridge/updateNotionPageFromBridgePage.d.ts +0 -4
  468. package/dist/pages/bridge/updateNotionPageFromBridgePage.d.ts.map +0 -1
  469. package/dist/pages/bridge/updateNotionPageFromBridgePage.js +0 -4
  470. package/dist/pages/index.d.ts +0 -9
  471. package/dist/pages/index.d.ts.map +0 -1
  472. package/dist/pages/index.js +0 -8
  473. package/dist/pages/makeNotionPage.d.ts +0 -11
  474. package/dist/pages/makeNotionPage.d.ts.map +0 -1
  475. package/dist/pages/makeNotionPage.js +0 -34
  476. package/dist/pages/properties/getPropertyById.d.ts +0 -6
  477. package/dist/pages/properties/getPropertyById.d.ts.map +0 -1
  478. package/dist/pages/properties/getPropertyById.js +0 -3
  479. package/dist/pages/properties/getPropertyByKey.d.ts +0 -9
  480. package/dist/pages/properties/getPropertyByKey.d.ts.map +0 -1
  481. package/dist/pages/properties/getPropertyByKey.js +0 -16
  482. package/dist/protocol/compatibility/protocol3To10/dataSourceBindings.d.ts +0 -530
  483. package/dist/protocol/compatibility/protocol3To10/dataSourceBindings.js +0 -25
  484. package/dist/protocol/compatibility/protocol3To5/bridgePage.d.ts +0 -282
  485. package/dist/protocol/compatibility/protocol3To5/bridgePage.js +0 -21
  486. package/dist/protocol/compatibility/protocol3To5/dataSourcePage.d.ts +0 -73
  487. package/dist/protocol/compatibility/protocol3To5/dataSourcePage.js +0 -14
  488. package/dist/protocol/compatibility/protocol3To5/dataSourceValue.d.ts +0 -66
  489. package/dist/protocol/compatibility/protocol3To5/dataSourceValue.js +0 -14
  490. package/dist/protocol/dataSources/messages/dataSourcesChanged.d.ts +0 -150
  491. package/dist/protocol/dataSources/messages/dataSourcesChanged.js +0 -13
  492. package/dist/protocol/index.d.ts +0 -158
  493. package/dist/protocol/index.js +0 -80
  494. package/dist/protocol/users/messages/currentUserChanged.d.ts +0 -18
  495. package/dist/protocol/users/messages/currentUserChanged.js +0 -9
  496. package/dist/users/bridge/toNotionUserFromBridgeUser.d.ts +0 -4
  497. package/dist/users/bridge/toNotionUserFromBridgeUser.d.ts.map +0 -1
  498. package/dist/users/getCurrentUser.d.ts +0 -7
  499. package/dist/users/getCurrentUser.d.ts.map +0 -1
  500. package/dist/users/getCurrentUser.js +0 -8
  501. package/dist/users/index.d.ts +0 -7
  502. package/dist/users/index.d.ts.map +0 -1
  503. package/dist/users/index.js +0 -6
  504. package/dist/users/react/useCurrentUser.d.ts +0 -12
  505. package/dist/users/react/useCurrentUser.d.ts.map +0 -1
  506. package/dist/users/react/useCurrentUser.js +0 -15
  507. package/dist/users/subscribeToCurrentUser.d.ts +0 -8
  508. package/dist/users/subscribeToCurrentUser.d.ts.map +0 -1
  509. package/dist/users/subscribeToCurrentUser.js +0 -8
  510. package/src/bridge/parseHostToSandboxMessage.ts +0 -54
  511. package/src/context/getBlockId.ts +0 -10
  512. package/src/context/getPage.ts +0 -10
  513. package/src/context/getParent.ts +0 -10
  514. package/src/context/hostState.ts +0 -17
  515. package/src/context/index.ts +0 -42
  516. package/src/context/react/useBlockId.ts +0 -16
  517. package/src/context/react/usePage.ts +0 -17
  518. package/src/context/react/useParent.ts +0 -17
  519. package/src/context/subscribeToBlockId.ts +0 -13
  520. package/src/context/subscribeToPage.ts +0 -13
  521. package/src/context/subscribeToParent.ts +0 -13
  522. package/src/dataSources/createDataSourcePage.ts +0 -50
  523. package/src/dataSources/index.ts +0 -9
  524. package/src/dataSources/queryDataSource.ts +0 -62
  525. package/src/dataSources/react/useDataSource.ts +0 -71
  526. package/src/initialization/getInitBindingError.ts +0 -39
  527. package/src/layout/postResize.ts +0 -15
  528. package/src/manifest/react/useManifest.ts +0 -20
  529. package/src/manifest/subscribeToManifest.ts +0 -13
  530. package/src/navigation/index.ts +0 -5
  531. package/src/pages/bridge/makeUpdatePageByKey.ts +0 -25
  532. package/src/pages/bridge/toNotionPageFieldsFromBridgePage.ts +0 -27
  533. package/src/pages/bridge/updateNotionPageFromBridgePage.ts +0 -10
  534. package/src/pages/index.ts +0 -9
  535. package/src/pages/makeNotionPage.ts +0 -55
  536. package/src/pages/properties/getPropertyById.ts +0 -12
  537. package/src/pages/properties/getPropertyByKey.ts +0 -30
  538. package/src/styles/nds.css.metadata.json +0 -6
  539. package/src/users/getCurrentUser.ts +0 -10
  540. package/src/users/index.ts +0 -7
  541. package/src/users/react/useCurrentUser.ts +0 -17
  542. package/src/users/subscribeToCurrentUser.ts +0 -13
  543. /package/dist/{context → bridge}/getInitializedHostState.d.ts +0 -0
  544. /package/dist/{context → bridge}/hostState.js +0 -0
  545. /package/dist/{context → preferences}/backgroundColors.d.ts +0 -0
  546. /package/dist/{context → preferences}/backgroundColors.js +0 -0
  547. /package/dist/{context → preferences}/getContrastMode.d.ts +0 -0
  548. /package/dist/{context → preferences}/getTheme.d.ts +0 -0
  549. /package/dist/{context → preferences}/react/useContrastMode.d.ts +0 -0
  550. /package/dist/{context → preferences}/react/useContrastMode.js +0 -0
  551. /package/dist/{context → preferences}/react/useTheme.d.ts +0 -0
  552. /package/dist/{context → preferences}/react/useTheme.js +0 -0
  553. /package/src/{context → preferences}/backgroundColors.ts +0 -0
  554. /package/src/{context → preferences}/react/useContrastMode.ts +0 -0
  555. /package/src/{context → preferences}/react/useTheme.ts +0 -0
@@ -0,0 +1,2001 @@
1
+ import type { BridgeCustomBlockManifest } from "../../protocol/manifest/manifest.js";
2
+ import * as v from "valibot";
3
+ /** Builds response validation for one declared data source without requiring metadata for other sources. */
4
+ export declare function makeDataSourceReadResponseSchema(manifest: BridgeCustomBlockManifest, key: string): v.SchemaWithPipe<readonly [v.VariantSchema<"status", [v.ObjectSchema<{
5
+ readonly type: v.LiteralSchema<"getDataSourceResult", undefined>;
6
+ readonly requestId: v.StringSchema<undefined>;
7
+ readonly status: v.LiteralSchema<"success", undefined>;
8
+ readonly binding: Omit<Omit<v.ObjectSchema<{
9
+ readonly dataSourcePointer: v.OptionalSchema<v.ObjectSchema<{
10
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
11
+ readonly table: v.StringSchema<undefined>;
12
+ readonly spaceId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionSpaceId">]>, undefined>;
13
+ }, undefined>, undefined>;
14
+ readonly dataSourceSchema: v.OptionalSchema<v.ObjectSchema<{
15
+ readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>, undefined>;
16
+ readonly propertiesById: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
17
+ readonly name: v.StringSchema<undefined>;
18
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
19
+ readonly type: v.LiteralSchema<"title", undefined>;
20
+ }, undefined>, v.ObjectSchema<{
21
+ readonly name: v.StringSchema<undefined>;
22
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
23
+ readonly type: v.LiteralSchema<"rich_text", undefined>;
24
+ }, undefined>, v.ObjectSchema<{
25
+ readonly name: v.StringSchema<undefined>;
26
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
27
+ readonly type: v.LiteralSchema<"number", undefined>;
28
+ }, undefined>, v.ObjectSchema<{
29
+ readonly name: v.StringSchema<undefined>;
30
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
31
+ readonly type: v.LiteralSchema<"checkbox", undefined>;
32
+ }, undefined>, v.ObjectSchema<{
33
+ readonly name: v.StringSchema<undefined>;
34
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
35
+ readonly type: v.LiteralSchema<"url", undefined>;
36
+ }, undefined>, v.ObjectSchema<{
37
+ readonly name: v.StringSchema<undefined>;
38
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
39
+ readonly type: v.LiteralSchema<"email", undefined>;
40
+ }, undefined>, v.ObjectSchema<{
41
+ readonly name: v.StringSchema<undefined>;
42
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
43
+ readonly type: v.LiteralSchema<"phone_number", undefined>;
44
+ }, undefined>, v.ObjectSchema<{
45
+ readonly name: v.StringSchema<undefined>;
46
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
47
+ readonly type: v.LiteralSchema<"select", undefined>;
48
+ readonly options: v.ArraySchema<v.ObjectSchema<{
49
+ readonly id: v.StringSchema<undefined>;
50
+ readonly name: v.StringSchema<undefined>;
51
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor>, undefined>;
52
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
53
+ }, undefined>, undefined>;
54
+ }, undefined>, v.ObjectSchema<{
55
+ readonly name: v.StringSchema<undefined>;
56
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
57
+ readonly type: v.LiteralSchema<"multi_select", undefined>;
58
+ readonly options: v.ArraySchema<v.ObjectSchema<{
59
+ readonly id: v.StringSchema<undefined>;
60
+ readonly name: v.StringSchema<undefined>;
61
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor>, undefined>;
62
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
63
+ }, undefined>, undefined>;
64
+ }, undefined>, v.ObjectSchema<{
65
+ readonly name: v.StringSchema<undefined>;
66
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
67
+ readonly type: v.LiteralSchema<"status", undefined>;
68
+ readonly options: v.ArraySchema<v.ObjectSchema<{
69
+ readonly id: v.StringSchema<undefined>;
70
+ readonly name: v.StringSchema<undefined>;
71
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor>, undefined>;
72
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
73
+ }, undefined>, undefined>;
74
+ readonly groups: v.ArraySchema<v.ObjectSchema<{
75
+ readonly id: v.StringSchema<undefined>;
76
+ readonly name: v.StringSchema<undefined>;
77
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor>, undefined>;
78
+ readonly option_ids: v.ArraySchema<v.StringSchema<undefined>, undefined>;
79
+ }, undefined>, undefined>;
80
+ }, undefined>, v.ObjectSchema<{
81
+ readonly name: v.StringSchema<undefined>;
82
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
83
+ readonly type: v.LiteralSchema<"date", undefined>;
84
+ }, undefined>, v.ObjectSchema<{
85
+ readonly name: v.StringSchema<undefined>;
86
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
87
+ readonly type: v.LiteralSchema<"people", undefined>;
88
+ }, undefined>, v.ObjectSchema<{
89
+ readonly name: v.StringSchema<undefined>;
90
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
91
+ readonly type: v.LiteralSchema<"files", undefined>;
92
+ }, undefined>, v.ObjectSchema<{
93
+ readonly name: v.StringSchema<undefined>;
94
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
95
+ readonly type: v.LiteralSchema<"unique_id", undefined>;
96
+ }, undefined>, v.ObjectSchema<{
97
+ readonly name: v.StringSchema<undefined>;
98
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
99
+ readonly type: v.LiteralSchema<"relation", undefined>;
100
+ readonly data_source_id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
101
+ readonly dual_property: v.OptionalSchema<v.ObjectSchema<{
102
+ readonly synced_property_id: v.StringSchema<undefined>;
103
+ readonly synced_property_name: v.StringSchema<undefined>;
104
+ }, undefined>, undefined>;
105
+ }, undefined>, v.ObjectSchema<{
106
+ readonly name: v.StringSchema<undefined>;
107
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
108
+ readonly type: v.LiteralSchema<"place", undefined>;
109
+ }, undefined>, v.ObjectSchema<{
110
+ readonly name: v.StringSchema<undefined>;
111
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
112
+ readonly type: v.LiteralSchema<"formula", undefined>;
113
+ }, undefined>, v.ObjectSchema<{
114
+ readonly name: v.StringSchema<undefined>;
115
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
116
+ readonly type: v.LiteralSchema<"rollup", undefined>;
117
+ }, undefined>, v.ObjectSchema<{
118
+ readonly name: v.StringSchema<undefined>;
119
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
120
+ readonly type: v.LiteralSchema<"button", undefined>;
121
+ }, undefined>, v.ObjectSchema<{
122
+ readonly name: v.StringSchema<undefined>;
123
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
124
+ readonly type: v.LiteralSchema<"verification", undefined>;
125
+ }, undefined>, v.ObjectSchema<{
126
+ readonly name: v.StringSchema<undefined>;
127
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
128
+ readonly type: v.LiteralSchema<"created_time", undefined>;
129
+ }, undefined>, v.ObjectSchema<{
130
+ readonly name: v.StringSchema<undefined>;
131
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
132
+ readonly type: v.LiteralSchema<"last_edited_time", undefined>;
133
+ }, undefined>, v.ObjectSchema<{
134
+ readonly name: v.StringSchema<undefined>;
135
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
136
+ readonly type: v.LiteralSchema<"created_by", undefined>;
137
+ }, undefined>, v.ObjectSchema<{
138
+ readonly name: v.StringSchema<undefined>;
139
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
140
+ readonly type: v.LiteralSchema<"last_edited_by", undefined>;
141
+ }, undefined>], undefined>, undefined>;
142
+ }, undefined>, undefined>;
143
+ readonly propertyIdsByKey: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
144
+ readonly inaccessible: v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>;
145
+ }, undefined>, "entries" | "~run" | "~standard" | "~types"> & {
146
+ readonly entries: Omit<{
147
+ readonly dataSourcePointer: v.OptionalSchema<v.ObjectSchema<{
148
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
149
+ readonly table: v.StringSchema<undefined>;
150
+ readonly spaceId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionSpaceId">]>, undefined>;
151
+ }, undefined>, undefined>;
152
+ readonly dataSourceSchema: v.OptionalSchema<v.ObjectSchema<{
153
+ readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>, undefined>;
154
+ readonly propertiesById: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
155
+ readonly name: v.StringSchema<undefined>;
156
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
157
+ readonly type: v.LiteralSchema<"title", undefined>;
158
+ }, undefined>, v.ObjectSchema<{
159
+ readonly name: v.StringSchema<undefined>;
160
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
161
+ readonly type: v.LiteralSchema<"rich_text", undefined>;
162
+ }, undefined>, v.ObjectSchema<{
163
+ readonly name: v.StringSchema<undefined>;
164
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
165
+ readonly type: v.LiteralSchema<"number", undefined>;
166
+ }, undefined>, v.ObjectSchema<{
167
+ readonly name: v.StringSchema<undefined>;
168
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
169
+ readonly type: v.LiteralSchema<"checkbox", undefined>;
170
+ }, undefined>, v.ObjectSchema<{
171
+ readonly name: v.StringSchema<undefined>;
172
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
173
+ readonly type: v.LiteralSchema<"url", undefined>;
174
+ }, undefined>, v.ObjectSchema<{
175
+ readonly name: v.StringSchema<undefined>;
176
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
177
+ readonly type: v.LiteralSchema<"email", undefined>;
178
+ }, undefined>, v.ObjectSchema<{
179
+ readonly name: v.StringSchema<undefined>;
180
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
181
+ readonly type: v.LiteralSchema<"phone_number", undefined>;
182
+ }, undefined>, v.ObjectSchema<{
183
+ readonly name: v.StringSchema<undefined>;
184
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
185
+ readonly type: v.LiteralSchema<"select", undefined>;
186
+ readonly options: v.ArraySchema<v.ObjectSchema<{
187
+ readonly id: v.StringSchema<undefined>;
188
+ readonly name: v.StringSchema<undefined>;
189
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor>, undefined>;
190
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
191
+ }, undefined>, undefined>;
192
+ }, undefined>, v.ObjectSchema<{
193
+ readonly name: v.StringSchema<undefined>;
194
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
195
+ readonly type: v.LiteralSchema<"multi_select", undefined>;
196
+ readonly options: v.ArraySchema<v.ObjectSchema<{
197
+ readonly id: v.StringSchema<undefined>;
198
+ readonly name: v.StringSchema<undefined>;
199
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor>, undefined>;
200
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
201
+ }, undefined>, undefined>;
202
+ }, undefined>, v.ObjectSchema<{
203
+ readonly name: v.StringSchema<undefined>;
204
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
205
+ readonly type: v.LiteralSchema<"status", undefined>;
206
+ readonly options: v.ArraySchema<v.ObjectSchema<{
207
+ readonly id: v.StringSchema<undefined>;
208
+ readonly name: v.StringSchema<undefined>;
209
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor>, undefined>;
210
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
211
+ }, undefined>, undefined>;
212
+ readonly groups: v.ArraySchema<v.ObjectSchema<{
213
+ readonly id: v.StringSchema<undefined>;
214
+ readonly name: v.StringSchema<undefined>;
215
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor>, undefined>;
216
+ readonly option_ids: v.ArraySchema<v.StringSchema<undefined>, undefined>;
217
+ }, undefined>, undefined>;
218
+ }, undefined>, v.ObjectSchema<{
219
+ readonly name: v.StringSchema<undefined>;
220
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
221
+ readonly type: v.LiteralSchema<"date", undefined>;
222
+ }, undefined>, v.ObjectSchema<{
223
+ readonly name: v.StringSchema<undefined>;
224
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
225
+ readonly type: v.LiteralSchema<"people", undefined>;
226
+ }, undefined>, v.ObjectSchema<{
227
+ readonly name: v.StringSchema<undefined>;
228
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
229
+ readonly type: v.LiteralSchema<"files", undefined>;
230
+ }, undefined>, v.ObjectSchema<{
231
+ readonly name: v.StringSchema<undefined>;
232
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
233
+ readonly type: v.LiteralSchema<"unique_id", undefined>;
234
+ }, undefined>, v.ObjectSchema<{
235
+ readonly name: v.StringSchema<undefined>;
236
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
237
+ readonly type: v.LiteralSchema<"relation", undefined>;
238
+ readonly data_source_id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
239
+ readonly dual_property: v.OptionalSchema<v.ObjectSchema<{
240
+ readonly synced_property_id: v.StringSchema<undefined>;
241
+ readonly synced_property_name: v.StringSchema<undefined>;
242
+ }, undefined>, undefined>;
243
+ }, undefined>, v.ObjectSchema<{
244
+ readonly name: v.StringSchema<undefined>;
245
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
246
+ readonly type: v.LiteralSchema<"place", undefined>;
247
+ }, undefined>, v.ObjectSchema<{
248
+ readonly name: v.StringSchema<undefined>;
249
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
250
+ readonly type: v.LiteralSchema<"formula", undefined>;
251
+ }, undefined>, v.ObjectSchema<{
252
+ readonly name: v.StringSchema<undefined>;
253
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
254
+ readonly type: v.LiteralSchema<"rollup", undefined>;
255
+ }, undefined>, v.ObjectSchema<{
256
+ readonly name: v.StringSchema<undefined>;
257
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
258
+ readonly type: v.LiteralSchema<"button", undefined>;
259
+ }, undefined>, v.ObjectSchema<{
260
+ readonly name: v.StringSchema<undefined>;
261
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
262
+ readonly type: v.LiteralSchema<"verification", undefined>;
263
+ }, undefined>, v.ObjectSchema<{
264
+ readonly name: v.StringSchema<undefined>;
265
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
266
+ readonly type: v.LiteralSchema<"created_time", undefined>;
267
+ }, undefined>, v.ObjectSchema<{
268
+ readonly name: v.StringSchema<undefined>;
269
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
270
+ readonly type: v.LiteralSchema<"last_edited_time", undefined>;
271
+ }, undefined>, v.ObjectSchema<{
272
+ readonly name: v.StringSchema<undefined>;
273
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
274
+ readonly type: v.LiteralSchema<"created_by", undefined>;
275
+ }, undefined>, v.ObjectSchema<{
276
+ readonly name: v.StringSchema<undefined>;
277
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
278
+ readonly type: v.LiteralSchema<"last_edited_by", undefined>;
279
+ }, undefined>], undefined>, undefined>;
280
+ }, undefined>, undefined>;
281
+ readonly propertyIdsByKey: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
282
+ readonly inaccessible: v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>;
283
+ }, "inaccessible">;
284
+ readonly "~standard": v.StandardProps<{
285
+ dataSourcePointer?: {
286
+ id: string;
287
+ table: string;
288
+ spaceId?: string | undefined;
289
+ } | undefined;
290
+ dataSourceSchema?: {
291
+ id?: string | undefined;
292
+ propertiesById: {
293
+ [x: string]: {
294
+ name: string;
295
+ description?: string | undefined;
296
+ type: "title";
297
+ } | {
298
+ name: string;
299
+ description?: string | undefined;
300
+ type: "rich_text";
301
+ } | {
302
+ name: string;
303
+ description?: string | undefined;
304
+ type: "number";
305
+ } | {
306
+ name: string;
307
+ description?: string | undefined;
308
+ type: "checkbox";
309
+ } | {
310
+ name: string;
311
+ description?: string | undefined;
312
+ type: "url";
313
+ } | {
314
+ name: string;
315
+ description?: string | undefined;
316
+ type: "email";
317
+ } | {
318
+ name: string;
319
+ description?: string | undefined;
320
+ type: "phone_number";
321
+ } | {
322
+ name: string;
323
+ description?: string | undefined;
324
+ type: "select";
325
+ options: {
326
+ id: string;
327
+ name: string;
328
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
329
+ description?: string | undefined;
330
+ }[];
331
+ } | {
332
+ name: string;
333
+ description?: string | undefined;
334
+ type: "multi_select";
335
+ options: {
336
+ id: string;
337
+ name: string;
338
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
339
+ description?: string | undefined;
340
+ }[];
341
+ } | {
342
+ name: string;
343
+ description?: string | undefined;
344
+ type: "status";
345
+ options: {
346
+ id: string;
347
+ name: string;
348
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
349
+ description?: string | undefined;
350
+ }[];
351
+ groups: {
352
+ id: string;
353
+ name: string;
354
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
355
+ option_ids: string[];
356
+ }[];
357
+ } | {
358
+ name: string;
359
+ description?: string | undefined;
360
+ type: "date";
361
+ } | {
362
+ name: string;
363
+ description?: string | undefined;
364
+ type: "people";
365
+ } | {
366
+ name: string;
367
+ description?: string | undefined;
368
+ type: "files";
369
+ } | {
370
+ name: string;
371
+ description?: string | undefined;
372
+ type: "unique_id";
373
+ } | {
374
+ name: string;
375
+ description?: string | undefined;
376
+ type: "relation";
377
+ data_source_id?: string | undefined;
378
+ dual_property?: {
379
+ synced_property_id: string;
380
+ synced_property_name: string;
381
+ } | undefined;
382
+ } | {
383
+ name: string;
384
+ description?: string | undefined;
385
+ type: "place";
386
+ } | {
387
+ name: string;
388
+ description?: string | undefined;
389
+ type: "formula";
390
+ } | {
391
+ name: string;
392
+ description?: string | undefined;
393
+ type: "rollup";
394
+ } | {
395
+ name: string;
396
+ description?: string | undefined;
397
+ type: "button";
398
+ } | {
399
+ name: string;
400
+ description?: string | undefined;
401
+ type: "verification";
402
+ } | {
403
+ name: string;
404
+ description?: string | undefined;
405
+ type: "created_time";
406
+ } | {
407
+ name: string;
408
+ description?: string | undefined;
409
+ type: "last_edited_time";
410
+ } | {
411
+ name: string;
412
+ description?: string | undefined;
413
+ type: "created_by";
414
+ } | {
415
+ name: string;
416
+ description?: string | undefined;
417
+ type: "last_edited_by";
418
+ };
419
+ };
420
+ } | undefined;
421
+ propertyIdsByKey?: {
422
+ [x: string]: string | undefined;
423
+ } | undefined;
424
+ }, {
425
+ dataSourcePointer?: {
426
+ id: string & v.Brand<"NotionDataSourceId">;
427
+ table: string;
428
+ spaceId?: (string & v.Brand<"NotionSpaceId">) | undefined;
429
+ } | undefined;
430
+ dataSourceSchema?: {
431
+ id?: (string & v.Brand<"NotionDataSourceId">) | undefined;
432
+ propertiesById: {
433
+ [x: string]: {
434
+ name: string;
435
+ description?: string | undefined;
436
+ type: "title";
437
+ } | {
438
+ name: string;
439
+ description?: string | undefined;
440
+ type: "rich_text";
441
+ } | {
442
+ name: string;
443
+ description?: string | undefined;
444
+ type: "number";
445
+ } | {
446
+ name: string;
447
+ description?: string | undefined;
448
+ type: "checkbox";
449
+ } | {
450
+ name: string;
451
+ description?: string | undefined;
452
+ type: "url";
453
+ } | {
454
+ name: string;
455
+ description?: string | undefined;
456
+ type: "email";
457
+ } | {
458
+ name: string;
459
+ description?: string | undefined;
460
+ type: "phone_number";
461
+ } | {
462
+ name: string;
463
+ description?: string | undefined;
464
+ type: "select";
465
+ options: {
466
+ id: string;
467
+ name: string;
468
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
469
+ description?: string | undefined;
470
+ }[];
471
+ } | {
472
+ name: string;
473
+ description?: string | undefined;
474
+ type: "multi_select";
475
+ options: {
476
+ id: string;
477
+ name: string;
478
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
479
+ description?: string | undefined;
480
+ }[];
481
+ } | {
482
+ name: string;
483
+ description?: string | undefined;
484
+ type: "status";
485
+ options: {
486
+ id: string;
487
+ name: string;
488
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
489
+ description?: string | undefined;
490
+ }[];
491
+ groups: {
492
+ id: string;
493
+ name: string;
494
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
495
+ option_ids: string[];
496
+ }[];
497
+ } | {
498
+ name: string;
499
+ description?: string | undefined;
500
+ type: "date";
501
+ } | {
502
+ name: string;
503
+ description?: string | undefined;
504
+ type: "people";
505
+ } | {
506
+ name: string;
507
+ description?: string | undefined;
508
+ type: "files";
509
+ } | {
510
+ name: string;
511
+ description?: string | undefined;
512
+ type: "unique_id";
513
+ } | {
514
+ name: string;
515
+ description?: string | undefined;
516
+ type: "relation";
517
+ data_source_id?: string | undefined;
518
+ dual_property?: {
519
+ synced_property_id: string;
520
+ synced_property_name: string;
521
+ } | undefined;
522
+ } | {
523
+ name: string;
524
+ description?: string | undefined;
525
+ type: "place";
526
+ } | {
527
+ name: string;
528
+ description?: string | undefined;
529
+ type: "formula";
530
+ } | {
531
+ name: string;
532
+ description?: string | undefined;
533
+ type: "rollup";
534
+ } | {
535
+ name: string;
536
+ description?: string | undefined;
537
+ type: "button";
538
+ } | {
539
+ name: string;
540
+ description?: string | undefined;
541
+ type: "verification";
542
+ } | {
543
+ name: string;
544
+ description?: string | undefined;
545
+ type: "created_time";
546
+ } | {
547
+ name: string;
548
+ description?: string | undefined;
549
+ type: "last_edited_time";
550
+ } | {
551
+ name: string;
552
+ description?: string | undefined;
553
+ type: "created_by";
554
+ } | {
555
+ name: string;
556
+ description?: string | undefined;
557
+ type: "last_edited_by";
558
+ };
559
+ };
560
+ } | undefined;
561
+ propertyIdsByKey?: {
562
+ [x: string]: string | undefined;
563
+ } | undefined;
564
+ }>;
565
+ readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
566
+ dataSourcePointer?: {
567
+ id: string & v.Brand<"NotionDataSourceId">;
568
+ table: string;
569
+ spaceId?: (string & v.Brand<"NotionSpaceId">) | undefined;
570
+ } | undefined;
571
+ dataSourceSchema?: {
572
+ id?: (string & v.Brand<"NotionDataSourceId">) | undefined;
573
+ propertiesById: {
574
+ [x: string]: {
575
+ name: string;
576
+ description?: string | undefined;
577
+ type: "title";
578
+ } | {
579
+ name: string;
580
+ description?: string | undefined;
581
+ type: "rich_text";
582
+ } | {
583
+ name: string;
584
+ description?: string | undefined;
585
+ type: "number";
586
+ } | {
587
+ name: string;
588
+ description?: string | undefined;
589
+ type: "checkbox";
590
+ } | {
591
+ name: string;
592
+ description?: string | undefined;
593
+ type: "url";
594
+ } | {
595
+ name: string;
596
+ description?: string | undefined;
597
+ type: "email";
598
+ } | {
599
+ name: string;
600
+ description?: string | undefined;
601
+ type: "phone_number";
602
+ } | {
603
+ name: string;
604
+ description?: string | undefined;
605
+ type: "select";
606
+ options: {
607
+ id: string;
608
+ name: string;
609
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
610
+ description?: string | undefined;
611
+ }[];
612
+ } | {
613
+ name: string;
614
+ description?: string | undefined;
615
+ type: "multi_select";
616
+ options: {
617
+ id: string;
618
+ name: string;
619
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
620
+ description?: string | undefined;
621
+ }[];
622
+ } | {
623
+ name: string;
624
+ description?: string | undefined;
625
+ type: "status";
626
+ options: {
627
+ id: string;
628
+ name: string;
629
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
630
+ description?: string | undefined;
631
+ }[];
632
+ groups: {
633
+ id: string;
634
+ name: string;
635
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
636
+ option_ids: string[];
637
+ }[];
638
+ } | {
639
+ name: string;
640
+ description?: string | undefined;
641
+ type: "date";
642
+ } | {
643
+ name: string;
644
+ description?: string | undefined;
645
+ type: "people";
646
+ } | {
647
+ name: string;
648
+ description?: string | undefined;
649
+ type: "files";
650
+ } | {
651
+ name: string;
652
+ description?: string | undefined;
653
+ type: "unique_id";
654
+ } | {
655
+ name: string;
656
+ description?: string | undefined;
657
+ type: "relation";
658
+ data_source_id?: string | undefined;
659
+ dual_property?: {
660
+ synced_property_id: string;
661
+ synced_property_name: string;
662
+ } | undefined;
663
+ } | {
664
+ name: string;
665
+ description?: string | undefined;
666
+ type: "place";
667
+ } | {
668
+ name: string;
669
+ description?: string | undefined;
670
+ type: "formula";
671
+ } | {
672
+ name: string;
673
+ description?: string | undefined;
674
+ type: "rollup";
675
+ } | {
676
+ name: string;
677
+ description?: string | undefined;
678
+ type: "button";
679
+ } | {
680
+ name: string;
681
+ description?: string | undefined;
682
+ type: "verification";
683
+ } | {
684
+ name: string;
685
+ description?: string | undefined;
686
+ type: "created_time";
687
+ } | {
688
+ name: string;
689
+ description?: string | undefined;
690
+ type: "last_edited_time";
691
+ } | {
692
+ name: string;
693
+ description?: string | undefined;
694
+ type: "created_by";
695
+ } | {
696
+ name: string;
697
+ description?: string | undefined;
698
+ type: "last_edited_by";
699
+ };
700
+ };
701
+ } | undefined;
702
+ propertyIdsByKey?: {
703
+ [x: string]: string | undefined;
704
+ } | undefined;
705
+ }, v.ArrayIssue | v.BaseIssue<unknown> | v.LiteralIssue | v.ObjectIssue | v.RecordIssue | v.StringIssue | v.VariantIssue>;
706
+ readonly "~types"?: {
707
+ readonly input: {
708
+ dataSourcePointer?: {
709
+ id: string;
710
+ table: string;
711
+ spaceId?: string | undefined;
712
+ } | undefined;
713
+ dataSourceSchema?: {
714
+ id?: string | undefined;
715
+ propertiesById: {
716
+ [x: string]: {
717
+ name: string;
718
+ description?: string | undefined;
719
+ type: "title";
720
+ } | {
721
+ name: string;
722
+ description?: string | undefined;
723
+ type: "rich_text";
724
+ } | {
725
+ name: string;
726
+ description?: string | undefined;
727
+ type: "number";
728
+ } | {
729
+ name: string;
730
+ description?: string | undefined;
731
+ type: "checkbox";
732
+ } | {
733
+ name: string;
734
+ description?: string | undefined;
735
+ type: "url";
736
+ } | {
737
+ name: string;
738
+ description?: string | undefined;
739
+ type: "email";
740
+ } | {
741
+ name: string;
742
+ description?: string | undefined;
743
+ type: "phone_number";
744
+ } | {
745
+ name: string;
746
+ description?: string | undefined;
747
+ type: "select";
748
+ options: {
749
+ id: string;
750
+ name: string;
751
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
752
+ description?: string | undefined;
753
+ }[];
754
+ } | {
755
+ name: string;
756
+ description?: string | undefined;
757
+ type: "multi_select";
758
+ options: {
759
+ id: string;
760
+ name: string;
761
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
762
+ description?: string | undefined;
763
+ }[];
764
+ } | {
765
+ name: string;
766
+ description?: string | undefined;
767
+ type: "status";
768
+ options: {
769
+ id: string;
770
+ name: string;
771
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
772
+ description?: string | undefined;
773
+ }[];
774
+ groups: {
775
+ id: string;
776
+ name: string;
777
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
778
+ option_ids: string[];
779
+ }[];
780
+ } | {
781
+ name: string;
782
+ description?: string | undefined;
783
+ type: "date";
784
+ } | {
785
+ name: string;
786
+ description?: string | undefined;
787
+ type: "people";
788
+ } | {
789
+ name: string;
790
+ description?: string | undefined;
791
+ type: "files";
792
+ } | {
793
+ name: string;
794
+ description?: string | undefined;
795
+ type: "unique_id";
796
+ } | {
797
+ name: string;
798
+ description?: string | undefined;
799
+ type: "relation";
800
+ data_source_id?: string | undefined;
801
+ dual_property?: {
802
+ synced_property_id: string;
803
+ synced_property_name: string;
804
+ } | undefined;
805
+ } | {
806
+ name: string;
807
+ description?: string | undefined;
808
+ type: "place";
809
+ } | {
810
+ name: string;
811
+ description?: string | undefined;
812
+ type: "formula";
813
+ } | {
814
+ name: string;
815
+ description?: string | undefined;
816
+ type: "rollup";
817
+ } | {
818
+ name: string;
819
+ description?: string | undefined;
820
+ type: "button";
821
+ } | {
822
+ name: string;
823
+ description?: string | undefined;
824
+ type: "verification";
825
+ } | {
826
+ name: string;
827
+ description?: string | undefined;
828
+ type: "created_time";
829
+ } | {
830
+ name: string;
831
+ description?: string | undefined;
832
+ type: "last_edited_time";
833
+ } | {
834
+ name: string;
835
+ description?: string | undefined;
836
+ type: "created_by";
837
+ } | {
838
+ name: string;
839
+ description?: string | undefined;
840
+ type: "last_edited_by";
841
+ };
842
+ };
843
+ } | undefined;
844
+ propertyIdsByKey?: {
845
+ [x: string]: string | undefined;
846
+ } | undefined;
847
+ };
848
+ readonly output: {
849
+ dataSourcePointer?: {
850
+ id: string & v.Brand<"NotionDataSourceId">;
851
+ table: string;
852
+ spaceId?: (string & v.Brand<"NotionSpaceId">) | undefined;
853
+ } | undefined;
854
+ dataSourceSchema?: {
855
+ id?: (string & v.Brand<"NotionDataSourceId">) | undefined;
856
+ propertiesById: {
857
+ [x: string]: {
858
+ name: string;
859
+ description?: string | undefined;
860
+ type: "title";
861
+ } | {
862
+ name: string;
863
+ description?: string | undefined;
864
+ type: "rich_text";
865
+ } | {
866
+ name: string;
867
+ description?: string | undefined;
868
+ type: "number";
869
+ } | {
870
+ name: string;
871
+ description?: string | undefined;
872
+ type: "checkbox";
873
+ } | {
874
+ name: string;
875
+ description?: string | undefined;
876
+ type: "url";
877
+ } | {
878
+ name: string;
879
+ description?: string | undefined;
880
+ type: "email";
881
+ } | {
882
+ name: string;
883
+ description?: string | undefined;
884
+ type: "phone_number";
885
+ } | {
886
+ name: string;
887
+ description?: string | undefined;
888
+ type: "select";
889
+ options: {
890
+ id: string;
891
+ name: string;
892
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
893
+ description?: string | undefined;
894
+ }[];
895
+ } | {
896
+ name: string;
897
+ description?: string | undefined;
898
+ type: "multi_select";
899
+ options: {
900
+ id: string;
901
+ name: string;
902
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
903
+ description?: string | undefined;
904
+ }[];
905
+ } | {
906
+ name: string;
907
+ description?: string | undefined;
908
+ type: "status";
909
+ options: {
910
+ id: string;
911
+ name: string;
912
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
913
+ description?: string | undefined;
914
+ }[];
915
+ groups: {
916
+ id: string;
917
+ name: string;
918
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
919
+ option_ids: string[];
920
+ }[];
921
+ } | {
922
+ name: string;
923
+ description?: string | undefined;
924
+ type: "date";
925
+ } | {
926
+ name: string;
927
+ description?: string | undefined;
928
+ type: "people";
929
+ } | {
930
+ name: string;
931
+ description?: string | undefined;
932
+ type: "files";
933
+ } | {
934
+ name: string;
935
+ description?: string | undefined;
936
+ type: "unique_id";
937
+ } | {
938
+ name: string;
939
+ description?: string | undefined;
940
+ type: "relation";
941
+ data_source_id?: string | undefined;
942
+ dual_property?: {
943
+ synced_property_id: string;
944
+ synced_property_name: string;
945
+ } | undefined;
946
+ } | {
947
+ name: string;
948
+ description?: string | undefined;
949
+ type: "place";
950
+ } | {
951
+ name: string;
952
+ description?: string | undefined;
953
+ type: "formula";
954
+ } | {
955
+ name: string;
956
+ description?: string | undefined;
957
+ type: "rollup";
958
+ } | {
959
+ name: string;
960
+ description?: string | undefined;
961
+ type: "button";
962
+ } | {
963
+ name: string;
964
+ description?: string | undefined;
965
+ type: "verification";
966
+ } | {
967
+ name: string;
968
+ description?: string | undefined;
969
+ type: "created_time";
970
+ } | {
971
+ name: string;
972
+ description?: string | undefined;
973
+ type: "last_edited_time";
974
+ } | {
975
+ name: string;
976
+ description?: string | undefined;
977
+ type: "created_by";
978
+ } | {
979
+ name: string;
980
+ description?: string | undefined;
981
+ type: "last_edited_by";
982
+ };
983
+ };
984
+ } | undefined;
985
+ propertyIdsByKey?: {
986
+ [x: string]: string | undefined;
987
+ } | undefined;
988
+ };
989
+ readonly issue: v.ArrayIssue | v.BaseIssue<unknown> | v.LiteralIssue | v.ObjectIssue | v.RecordIssue | v.StringIssue | v.VariantIssue;
990
+ } | undefined;
991
+ }, "entries" | "~run" | "~standard" | "~types"> & {
992
+ readonly entries: {
993
+ readonly dataSourcePointer: v.NonOptionalSchema<v.OptionalSchema<v.ObjectSchema<{
994
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
995
+ readonly table: v.StringSchema<undefined>;
996
+ readonly spaceId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionSpaceId">]>, undefined>;
997
+ }, undefined>, undefined>, undefined>;
998
+ readonly dataSourceSchema: v.NonOptionalSchema<v.OptionalSchema<v.ObjectSchema<{
999
+ readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>, undefined>;
1000
+ readonly propertiesById: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
1001
+ readonly name: v.StringSchema<undefined>;
1002
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1003
+ readonly type: v.LiteralSchema<"title", undefined>;
1004
+ }, undefined>, v.ObjectSchema<{
1005
+ readonly name: v.StringSchema<undefined>;
1006
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1007
+ readonly type: v.LiteralSchema<"rich_text", undefined>;
1008
+ }, undefined>, v.ObjectSchema<{
1009
+ readonly name: v.StringSchema<undefined>;
1010
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1011
+ readonly type: v.LiteralSchema<"number", undefined>;
1012
+ }, undefined>, v.ObjectSchema<{
1013
+ readonly name: v.StringSchema<undefined>;
1014
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1015
+ readonly type: v.LiteralSchema<"checkbox", undefined>;
1016
+ }, undefined>, v.ObjectSchema<{
1017
+ readonly name: v.StringSchema<undefined>;
1018
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1019
+ readonly type: v.LiteralSchema<"url", undefined>;
1020
+ }, undefined>, v.ObjectSchema<{
1021
+ readonly name: v.StringSchema<undefined>;
1022
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1023
+ readonly type: v.LiteralSchema<"email", undefined>;
1024
+ }, undefined>, v.ObjectSchema<{
1025
+ readonly name: v.StringSchema<undefined>;
1026
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1027
+ readonly type: v.LiteralSchema<"phone_number", undefined>;
1028
+ }, undefined>, v.ObjectSchema<{
1029
+ readonly name: v.StringSchema<undefined>;
1030
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1031
+ readonly type: v.LiteralSchema<"select", undefined>;
1032
+ readonly options: v.ArraySchema<v.ObjectSchema<{
1033
+ readonly id: v.StringSchema<undefined>;
1034
+ readonly name: v.StringSchema<undefined>;
1035
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor>, undefined>;
1036
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1037
+ }, undefined>, undefined>;
1038
+ }, undefined>, v.ObjectSchema<{
1039
+ readonly name: v.StringSchema<undefined>;
1040
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1041
+ readonly type: v.LiteralSchema<"multi_select", undefined>;
1042
+ readonly options: v.ArraySchema<v.ObjectSchema<{
1043
+ readonly id: v.StringSchema<undefined>;
1044
+ readonly name: v.StringSchema<undefined>;
1045
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor>, undefined>;
1046
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1047
+ }, undefined>, undefined>;
1048
+ }, undefined>, v.ObjectSchema<{
1049
+ readonly name: v.StringSchema<undefined>;
1050
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1051
+ readonly type: v.LiteralSchema<"status", undefined>;
1052
+ readonly options: v.ArraySchema<v.ObjectSchema<{
1053
+ readonly id: v.StringSchema<undefined>;
1054
+ readonly name: v.StringSchema<undefined>;
1055
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor>, undefined>;
1056
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1057
+ }, undefined>, undefined>;
1058
+ readonly groups: v.ArraySchema<v.ObjectSchema<{
1059
+ readonly id: v.StringSchema<undefined>;
1060
+ readonly name: v.StringSchema<undefined>;
1061
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor>, undefined>;
1062
+ readonly option_ids: v.ArraySchema<v.StringSchema<undefined>, undefined>;
1063
+ }, undefined>, undefined>;
1064
+ }, undefined>, v.ObjectSchema<{
1065
+ readonly name: v.StringSchema<undefined>;
1066
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1067
+ readonly type: v.LiteralSchema<"date", undefined>;
1068
+ }, undefined>, v.ObjectSchema<{
1069
+ readonly name: v.StringSchema<undefined>;
1070
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1071
+ readonly type: v.LiteralSchema<"people", undefined>;
1072
+ }, undefined>, v.ObjectSchema<{
1073
+ readonly name: v.StringSchema<undefined>;
1074
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1075
+ readonly type: v.LiteralSchema<"files", undefined>;
1076
+ }, undefined>, v.ObjectSchema<{
1077
+ readonly name: v.StringSchema<undefined>;
1078
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1079
+ readonly type: v.LiteralSchema<"unique_id", undefined>;
1080
+ }, undefined>, v.ObjectSchema<{
1081
+ readonly name: v.StringSchema<undefined>;
1082
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1083
+ readonly type: v.LiteralSchema<"relation", undefined>;
1084
+ readonly data_source_id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1085
+ readonly dual_property: v.OptionalSchema<v.ObjectSchema<{
1086
+ readonly synced_property_id: v.StringSchema<undefined>;
1087
+ readonly synced_property_name: v.StringSchema<undefined>;
1088
+ }, undefined>, undefined>;
1089
+ }, undefined>, v.ObjectSchema<{
1090
+ readonly name: v.StringSchema<undefined>;
1091
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1092
+ readonly type: v.LiteralSchema<"place", undefined>;
1093
+ }, undefined>, v.ObjectSchema<{
1094
+ readonly name: v.StringSchema<undefined>;
1095
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1096
+ readonly type: v.LiteralSchema<"formula", undefined>;
1097
+ }, undefined>, v.ObjectSchema<{
1098
+ readonly name: v.StringSchema<undefined>;
1099
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1100
+ readonly type: v.LiteralSchema<"rollup", undefined>;
1101
+ }, undefined>, v.ObjectSchema<{
1102
+ readonly name: v.StringSchema<undefined>;
1103
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1104
+ readonly type: v.LiteralSchema<"button", undefined>;
1105
+ }, undefined>, v.ObjectSchema<{
1106
+ readonly name: v.StringSchema<undefined>;
1107
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1108
+ readonly type: v.LiteralSchema<"verification", undefined>;
1109
+ }, undefined>, v.ObjectSchema<{
1110
+ readonly name: v.StringSchema<undefined>;
1111
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1112
+ readonly type: v.LiteralSchema<"created_time", undefined>;
1113
+ }, undefined>, v.ObjectSchema<{
1114
+ readonly name: v.StringSchema<undefined>;
1115
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1116
+ readonly type: v.LiteralSchema<"last_edited_time", undefined>;
1117
+ }, undefined>, v.ObjectSchema<{
1118
+ readonly name: v.StringSchema<undefined>;
1119
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1120
+ readonly type: v.LiteralSchema<"created_by", undefined>;
1121
+ }, undefined>, v.ObjectSchema<{
1122
+ readonly name: v.StringSchema<undefined>;
1123
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1124
+ readonly type: v.LiteralSchema<"last_edited_by", undefined>;
1125
+ }, undefined>], undefined>, undefined>;
1126
+ }, undefined>, undefined>, undefined>;
1127
+ readonly propertyIdsByKey: v.NonOptionalSchema<v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
1128
+ };
1129
+ readonly "~standard": v.StandardProps<{
1130
+ dataSourcePointer: {
1131
+ id: string;
1132
+ table: string;
1133
+ spaceId?: string | undefined;
1134
+ };
1135
+ dataSourceSchema: {
1136
+ id?: string | undefined;
1137
+ propertiesById: {
1138
+ [x: string]: {
1139
+ name: string;
1140
+ description?: string | undefined;
1141
+ type: "title";
1142
+ } | {
1143
+ name: string;
1144
+ description?: string | undefined;
1145
+ type: "rich_text";
1146
+ } | {
1147
+ name: string;
1148
+ description?: string | undefined;
1149
+ type: "number";
1150
+ } | {
1151
+ name: string;
1152
+ description?: string | undefined;
1153
+ type: "checkbox";
1154
+ } | {
1155
+ name: string;
1156
+ description?: string | undefined;
1157
+ type: "url";
1158
+ } | {
1159
+ name: string;
1160
+ description?: string | undefined;
1161
+ type: "email";
1162
+ } | {
1163
+ name: string;
1164
+ description?: string | undefined;
1165
+ type: "phone_number";
1166
+ } | {
1167
+ name: string;
1168
+ description?: string | undefined;
1169
+ type: "select";
1170
+ options: {
1171
+ id: string;
1172
+ name: string;
1173
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
1174
+ description?: string | undefined;
1175
+ }[];
1176
+ } | {
1177
+ name: string;
1178
+ description?: string | undefined;
1179
+ type: "multi_select";
1180
+ options: {
1181
+ id: string;
1182
+ name: string;
1183
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
1184
+ description?: string | undefined;
1185
+ }[];
1186
+ } | {
1187
+ name: string;
1188
+ description?: string | undefined;
1189
+ type: "status";
1190
+ options: {
1191
+ id: string;
1192
+ name: string;
1193
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
1194
+ description?: string | undefined;
1195
+ }[];
1196
+ groups: {
1197
+ id: string;
1198
+ name: string;
1199
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
1200
+ option_ids: string[];
1201
+ }[];
1202
+ } | {
1203
+ name: string;
1204
+ description?: string | undefined;
1205
+ type: "date";
1206
+ } | {
1207
+ name: string;
1208
+ description?: string | undefined;
1209
+ type: "people";
1210
+ } | {
1211
+ name: string;
1212
+ description?: string | undefined;
1213
+ type: "files";
1214
+ } | {
1215
+ name: string;
1216
+ description?: string | undefined;
1217
+ type: "unique_id";
1218
+ } | {
1219
+ name: string;
1220
+ description?: string | undefined;
1221
+ type: "relation";
1222
+ data_source_id?: string | undefined;
1223
+ dual_property?: {
1224
+ synced_property_id: string;
1225
+ synced_property_name: string;
1226
+ } | undefined;
1227
+ } | {
1228
+ name: string;
1229
+ description?: string | undefined;
1230
+ type: "place";
1231
+ } | {
1232
+ name: string;
1233
+ description?: string | undefined;
1234
+ type: "formula";
1235
+ } | {
1236
+ name: string;
1237
+ description?: string | undefined;
1238
+ type: "rollup";
1239
+ } | {
1240
+ name: string;
1241
+ description?: string | undefined;
1242
+ type: "button";
1243
+ } | {
1244
+ name: string;
1245
+ description?: string | undefined;
1246
+ type: "verification";
1247
+ } | {
1248
+ name: string;
1249
+ description?: string | undefined;
1250
+ type: "created_time";
1251
+ } | {
1252
+ name: string;
1253
+ description?: string | undefined;
1254
+ type: "last_edited_time";
1255
+ } | {
1256
+ name: string;
1257
+ description?: string | undefined;
1258
+ type: "created_by";
1259
+ } | {
1260
+ name: string;
1261
+ description?: string | undefined;
1262
+ type: "last_edited_by";
1263
+ };
1264
+ };
1265
+ };
1266
+ propertyIdsByKey: {
1267
+ [x: string]: string | undefined;
1268
+ };
1269
+ }, {
1270
+ dataSourcePointer: {
1271
+ id: string & v.Brand<"NotionDataSourceId">;
1272
+ table: string;
1273
+ spaceId?: (string & v.Brand<"NotionSpaceId">) | undefined;
1274
+ };
1275
+ dataSourceSchema: {
1276
+ id?: (string & v.Brand<"NotionDataSourceId">) | undefined;
1277
+ propertiesById: {
1278
+ [x: string]: {
1279
+ name: string;
1280
+ description?: string | undefined;
1281
+ type: "title";
1282
+ } | {
1283
+ name: string;
1284
+ description?: string | undefined;
1285
+ type: "rich_text";
1286
+ } | {
1287
+ name: string;
1288
+ description?: string | undefined;
1289
+ type: "number";
1290
+ } | {
1291
+ name: string;
1292
+ description?: string | undefined;
1293
+ type: "checkbox";
1294
+ } | {
1295
+ name: string;
1296
+ description?: string | undefined;
1297
+ type: "url";
1298
+ } | {
1299
+ name: string;
1300
+ description?: string | undefined;
1301
+ type: "email";
1302
+ } | {
1303
+ name: string;
1304
+ description?: string | undefined;
1305
+ type: "phone_number";
1306
+ } | {
1307
+ name: string;
1308
+ description?: string | undefined;
1309
+ type: "select";
1310
+ options: {
1311
+ id: string;
1312
+ name: string;
1313
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
1314
+ description?: string | undefined;
1315
+ }[];
1316
+ } | {
1317
+ name: string;
1318
+ description?: string | undefined;
1319
+ type: "multi_select";
1320
+ options: {
1321
+ id: string;
1322
+ name: string;
1323
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
1324
+ description?: string | undefined;
1325
+ }[];
1326
+ } | {
1327
+ name: string;
1328
+ description?: string | undefined;
1329
+ type: "status";
1330
+ options: {
1331
+ id: string;
1332
+ name: string;
1333
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
1334
+ description?: string | undefined;
1335
+ }[];
1336
+ groups: {
1337
+ id: string;
1338
+ name: string;
1339
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
1340
+ option_ids: string[];
1341
+ }[];
1342
+ } | {
1343
+ name: string;
1344
+ description?: string | undefined;
1345
+ type: "date";
1346
+ } | {
1347
+ name: string;
1348
+ description?: string | undefined;
1349
+ type: "people";
1350
+ } | {
1351
+ name: string;
1352
+ description?: string | undefined;
1353
+ type: "files";
1354
+ } | {
1355
+ name: string;
1356
+ description?: string | undefined;
1357
+ type: "unique_id";
1358
+ } | {
1359
+ name: string;
1360
+ description?: string | undefined;
1361
+ type: "relation";
1362
+ data_source_id?: string | undefined;
1363
+ dual_property?: {
1364
+ synced_property_id: string;
1365
+ synced_property_name: string;
1366
+ } | undefined;
1367
+ } | {
1368
+ name: string;
1369
+ description?: string | undefined;
1370
+ type: "place";
1371
+ } | {
1372
+ name: string;
1373
+ description?: string | undefined;
1374
+ type: "formula";
1375
+ } | {
1376
+ name: string;
1377
+ description?: string | undefined;
1378
+ type: "rollup";
1379
+ } | {
1380
+ name: string;
1381
+ description?: string | undefined;
1382
+ type: "button";
1383
+ } | {
1384
+ name: string;
1385
+ description?: string | undefined;
1386
+ type: "verification";
1387
+ } | {
1388
+ name: string;
1389
+ description?: string | undefined;
1390
+ type: "created_time";
1391
+ } | {
1392
+ name: string;
1393
+ description?: string | undefined;
1394
+ type: "last_edited_time";
1395
+ } | {
1396
+ name: string;
1397
+ description?: string | undefined;
1398
+ type: "created_by";
1399
+ } | {
1400
+ name: string;
1401
+ description?: string | undefined;
1402
+ type: "last_edited_by";
1403
+ };
1404
+ };
1405
+ };
1406
+ propertyIdsByKey: {
1407
+ [x: string]: string | undefined;
1408
+ };
1409
+ }>;
1410
+ readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
1411
+ dataSourcePointer: {
1412
+ id: string & v.Brand<"NotionDataSourceId">;
1413
+ table: string;
1414
+ spaceId?: (string & v.Brand<"NotionSpaceId">) | undefined;
1415
+ };
1416
+ dataSourceSchema: {
1417
+ id?: (string & v.Brand<"NotionDataSourceId">) | undefined;
1418
+ propertiesById: {
1419
+ [x: string]: {
1420
+ name: string;
1421
+ description?: string | undefined;
1422
+ type: "title";
1423
+ } | {
1424
+ name: string;
1425
+ description?: string | undefined;
1426
+ type: "rich_text";
1427
+ } | {
1428
+ name: string;
1429
+ description?: string | undefined;
1430
+ type: "number";
1431
+ } | {
1432
+ name: string;
1433
+ description?: string | undefined;
1434
+ type: "checkbox";
1435
+ } | {
1436
+ name: string;
1437
+ description?: string | undefined;
1438
+ type: "url";
1439
+ } | {
1440
+ name: string;
1441
+ description?: string | undefined;
1442
+ type: "email";
1443
+ } | {
1444
+ name: string;
1445
+ description?: string | undefined;
1446
+ type: "phone_number";
1447
+ } | {
1448
+ name: string;
1449
+ description?: string | undefined;
1450
+ type: "select";
1451
+ options: {
1452
+ id: string;
1453
+ name: string;
1454
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
1455
+ description?: string | undefined;
1456
+ }[];
1457
+ } | {
1458
+ name: string;
1459
+ description?: string | undefined;
1460
+ type: "multi_select";
1461
+ options: {
1462
+ id: string;
1463
+ name: string;
1464
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
1465
+ description?: string | undefined;
1466
+ }[];
1467
+ } | {
1468
+ name: string;
1469
+ description?: string | undefined;
1470
+ type: "status";
1471
+ options: {
1472
+ id: string;
1473
+ name: string;
1474
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
1475
+ description?: string | undefined;
1476
+ }[];
1477
+ groups: {
1478
+ id: string;
1479
+ name: string;
1480
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
1481
+ option_ids: string[];
1482
+ }[];
1483
+ } | {
1484
+ name: string;
1485
+ description?: string | undefined;
1486
+ type: "date";
1487
+ } | {
1488
+ name: string;
1489
+ description?: string | undefined;
1490
+ type: "people";
1491
+ } | {
1492
+ name: string;
1493
+ description?: string | undefined;
1494
+ type: "files";
1495
+ } | {
1496
+ name: string;
1497
+ description?: string | undefined;
1498
+ type: "unique_id";
1499
+ } | {
1500
+ name: string;
1501
+ description?: string | undefined;
1502
+ type: "relation";
1503
+ data_source_id?: string | undefined;
1504
+ dual_property?: {
1505
+ synced_property_id: string;
1506
+ synced_property_name: string;
1507
+ } | undefined;
1508
+ } | {
1509
+ name: string;
1510
+ description?: string | undefined;
1511
+ type: "place";
1512
+ } | {
1513
+ name: string;
1514
+ description?: string | undefined;
1515
+ type: "formula";
1516
+ } | {
1517
+ name: string;
1518
+ description?: string | undefined;
1519
+ type: "rollup";
1520
+ } | {
1521
+ name: string;
1522
+ description?: string | undefined;
1523
+ type: "button";
1524
+ } | {
1525
+ name: string;
1526
+ description?: string | undefined;
1527
+ type: "verification";
1528
+ } | {
1529
+ name: string;
1530
+ description?: string | undefined;
1531
+ type: "created_time";
1532
+ } | {
1533
+ name: string;
1534
+ description?: string | undefined;
1535
+ type: "last_edited_time";
1536
+ } | {
1537
+ name: string;
1538
+ description?: string | undefined;
1539
+ type: "created_by";
1540
+ } | {
1541
+ name: string;
1542
+ description?: string | undefined;
1543
+ type: "last_edited_by";
1544
+ };
1545
+ };
1546
+ };
1547
+ propertyIdsByKey: {
1548
+ [x: string]: string | undefined;
1549
+ };
1550
+ }, v.ArrayIssue | v.BaseIssue<unknown> | v.LiteralIssue | v.NonOptionalIssue | v.ObjectIssue | v.RecordIssue | v.StringIssue | v.VariantIssue>;
1551
+ readonly "~types"?: {
1552
+ readonly input: {
1553
+ dataSourcePointer: {
1554
+ id: string;
1555
+ table: string;
1556
+ spaceId?: string | undefined;
1557
+ };
1558
+ dataSourceSchema: {
1559
+ id?: string | undefined;
1560
+ propertiesById: {
1561
+ [x: string]: {
1562
+ name: string;
1563
+ description?: string | undefined;
1564
+ type: "title";
1565
+ } | {
1566
+ name: string;
1567
+ description?: string | undefined;
1568
+ type: "rich_text";
1569
+ } | {
1570
+ name: string;
1571
+ description?: string | undefined;
1572
+ type: "number";
1573
+ } | {
1574
+ name: string;
1575
+ description?: string | undefined;
1576
+ type: "checkbox";
1577
+ } | {
1578
+ name: string;
1579
+ description?: string | undefined;
1580
+ type: "url";
1581
+ } | {
1582
+ name: string;
1583
+ description?: string | undefined;
1584
+ type: "email";
1585
+ } | {
1586
+ name: string;
1587
+ description?: string | undefined;
1588
+ type: "phone_number";
1589
+ } | {
1590
+ name: string;
1591
+ description?: string | undefined;
1592
+ type: "select";
1593
+ options: {
1594
+ id: string;
1595
+ name: string;
1596
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
1597
+ description?: string | undefined;
1598
+ }[];
1599
+ } | {
1600
+ name: string;
1601
+ description?: string | undefined;
1602
+ type: "multi_select";
1603
+ options: {
1604
+ id: string;
1605
+ name: string;
1606
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
1607
+ description?: string | undefined;
1608
+ }[];
1609
+ } | {
1610
+ name: string;
1611
+ description?: string | undefined;
1612
+ type: "status";
1613
+ options: {
1614
+ id: string;
1615
+ name: string;
1616
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
1617
+ description?: string | undefined;
1618
+ }[];
1619
+ groups: {
1620
+ id: string;
1621
+ name: string;
1622
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
1623
+ option_ids: string[];
1624
+ }[];
1625
+ } | {
1626
+ name: string;
1627
+ description?: string | undefined;
1628
+ type: "date";
1629
+ } | {
1630
+ name: string;
1631
+ description?: string | undefined;
1632
+ type: "people";
1633
+ } | {
1634
+ name: string;
1635
+ description?: string | undefined;
1636
+ type: "files";
1637
+ } | {
1638
+ name: string;
1639
+ description?: string | undefined;
1640
+ type: "unique_id";
1641
+ } | {
1642
+ name: string;
1643
+ description?: string | undefined;
1644
+ type: "relation";
1645
+ data_source_id?: string | undefined;
1646
+ dual_property?: {
1647
+ synced_property_id: string;
1648
+ synced_property_name: string;
1649
+ } | undefined;
1650
+ } | {
1651
+ name: string;
1652
+ description?: string | undefined;
1653
+ type: "place";
1654
+ } | {
1655
+ name: string;
1656
+ description?: string | undefined;
1657
+ type: "formula";
1658
+ } | {
1659
+ name: string;
1660
+ description?: string | undefined;
1661
+ type: "rollup";
1662
+ } | {
1663
+ name: string;
1664
+ description?: string | undefined;
1665
+ type: "button";
1666
+ } | {
1667
+ name: string;
1668
+ description?: string | undefined;
1669
+ type: "verification";
1670
+ } | {
1671
+ name: string;
1672
+ description?: string | undefined;
1673
+ type: "created_time";
1674
+ } | {
1675
+ name: string;
1676
+ description?: string | undefined;
1677
+ type: "last_edited_time";
1678
+ } | {
1679
+ name: string;
1680
+ description?: string | undefined;
1681
+ type: "created_by";
1682
+ } | {
1683
+ name: string;
1684
+ description?: string | undefined;
1685
+ type: "last_edited_by";
1686
+ };
1687
+ };
1688
+ };
1689
+ propertyIdsByKey: {
1690
+ [x: string]: string | undefined;
1691
+ };
1692
+ };
1693
+ readonly output: {
1694
+ dataSourcePointer: {
1695
+ id: string & v.Brand<"NotionDataSourceId">;
1696
+ table: string;
1697
+ spaceId?: (string & v.Brand<"NotionSpaceId">) | undefined;
1698
+ };
1699
+ dataSourceSchema: {
1700
+ id?: (string & v.Brand<"NotionDataSourceId">) | undefined;
1701
+ propertiesById: {
1702
+ [x: string]: {
1703
+ name: string;
1704
+ description?: string | undefined;
1705
+ type: "title";
1706
+ } | {
1707
+ name: string;
1708
+ description?: string | undefined;
1709
+ type: "rich_text";
1710
+ } | {
1711
+ name: string;
1712
+ description?: string | undefined;
1713
+ type: "number";
1714
+ } | {
1715
+ name: string;
1716
+ description?: string | undefined;
1717
+ type: "checkbox";
1718
+ } | {
1719
+ name: string;
1720
+ description?: string | undefined;
1721
+ type: "url";
1722
+ } | {
1723
+ name: string;
1724
+ description?: string | undefined;
1725
+ type: "email";
1726
+ } | {
1727
+ name: string;
1728
+ description?: string | undefined;
1729
+ type: "phone_number";
1730
+ } | {
1731
+ name: string;
1732
+ description?: string | undefined;
1733
+ type: "select";
1734
+ options: {
1735
+ id: string;
1736
+ name: string;
1737
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
1738
+ description?: string | undefined;
1739
+ }[];
1740
+ } | {
1741
+ name: string;
1742
+ description?: string | undefined;
1743
+ type: "multi_select";
1744
+ options: {
1745
+ id: string;
1746
+ name: string;
1747
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
1748
+ description?: string | undefined;
1749
+ }[];
1750
+ } | {
1751
+ name: string;
1752
+ description?: string | undefined;
1753
+ type: "status";
1754
+ options: {
1755
+ id: string;
1756
+ name: string;
1757
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
1758
+ description?: string | undefined;
1759
+ }[];
1760
+ groups: {
1761
+ id: string;
1762
+ name: string;
1763
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
1764
+ option_ids: string[];
1765
+ }[];
1766
+ } | {
1767
+ name: string;
1768
+ description?: string | undefined;
1769
+ type: "date";
1770
+ } | {
1771
+ name: string;
1772
+ description?: string | undefined;
1773
+ type: "people";
1774
+ } | {
1775
+ name: string;
1776
+ description?: string | undefined;
1777
+ type: "files";
1778
+ } | {
1779
+ name: string;
1780
+ description?: string | undefined;
1781
+ type: "unique_id";
1782
+ } | {
1783
+ name: string;
1784
+ description?: string | undefined;
1785
+ type: "relation";
1786
+ data_source_id?: string | undefined;
1787
+ dual_property?: {
1788
+ synced_property_id: string;
1789
+ synced_property_name: string;
1790
+ } | undefined;
1791
+ } | {
1792
+ name: string;
1793
+ description?: string | undefined;
1794
+ type: "place";
1795
+ } | {
1796
+ name: string;
1797
+ description?: string | undefined;
1798
+ type: "formula";
1799
+ } | {
1800
+ name: string;
1801
+ description?: string | undefined;
1802
+ type: "rollup";
1803
+ } | {
1804
+ name: string;
1805
+ description?: string | undefined;
1806
+ type: "button";
1807
+ } | {
1808
+ name: string;
1809
+ description?: string | undefined;
1810
+ type: "verification";
1811
+ } | {
1812
+ name: string;
1813
+ description?: string | undefined;
1814
+ type: "created_time";
1815
+ } | {
1816
+ name: string;
1817
+ description?: string | undefined;
1818
+ type: "last_edited_time";
1819
+ } | {
1820
+ name: string;
1821
+ description?: string | undefined;
1822
+ type: "created_by";
1823
+ } | {
1824
+ name: string;
1825
+ description?: string | undefined;
1826
+ type: "last_edited_by";
1827
+ };
1828
+ };
1829
+ };
1830
+ propertyIdsByKey: {
1831
+ [x: string]: string | undefined;
1832
+ };
1833
+ };
1834
+ readonly issue: v.ArrayIssue | v.BaseIssue<unknown> | v.LiteralIssue | v.NonOptionalIssue | v.ObjectIssue | v.RecordIssue | v.StringIssue | v.VariantIssue;
1835
+ } | undefined;
1836
+ };
1837
+ }, undefined>, v.ObjectSchema<{
1838
+ readonly type: v.LiteralSchema<"getDataSourceResult", undefined>;
1839
+ readonly requestId: v.StringSchema<undefined>;
1840
+ readonly status: v.LiteralSchema<"error", undefined>;
1841
+ readonly error: v.ObjectSchema<{
1842
+ readonly code: v.StringSchema<undefined>;
1843
+ readonly message: v.StringSchema<undefined>;
1844
+ readonly isRetryable: v.BooleanSchema<undefined>;
1845
+ }, undefined>;
1846
+ }, undefined>], undefined>, v.CheckAction<{
1847
+ type: "getDataSourceResult";
1848
+ requestId: string;
1849
+ status: "success";
1850
+ binding: {
1851
+ dataSourcePointer: {
1852
+ id: string & v.Brand<"NotionDataSourceId">;
1853
+ table: string;
1854
+ spaceId?: (string & v.Brand<"NotionSpaceId">) | undefined;
1855
+ };
1856
+ dataSourceSchema: {
1857
+ id?: (string & v.Brand<"NotionDataSourceId">) | undefined;
1858
+ propertiesById: {
1859
+ [x: string]: {
1860
+ name: string;
1861
+ description?: string | undefined;
1862
+ type: "title";
1863
+ } | {
1864
+ name: string;
1865
+ description?: string | undefined;
1866
+ type: "rich_text";
1867
+ } | {
1868
+ name: string;
1869
+ description?: string | undefined;
1870
+ type: "number";
1871
+ } | {
1872
+ name: string;
1873
+ description?: string | undefined;
1874
+ type: "checkbox";
1875
+ } | {
1876
+ name: string;
1877
+ description?: string | undefined;
1878
+ type: "url";
1879
+ } | {
1880
+ name: string;
1881
+ description?: string | undefined;
1882
+ type: "email";
1883
+ } | {
1884
+ name: string;
1885
+ description?: string | undefined;
1886
+ type: "phone_number";
1887
+ } | {
1888
+ name: string;
1889
+ description?: string | undefined;
1890
+ type: "select";
1891
+ options: {
1892
+ id: string;
1893
+ name: string;
1894
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
1895
+ description?: string | undefined;
1896
+ }[];
1897
+ } | {
1898
+ name: string;
1899
+ description?: string | undefined;
1900
+ type: "multi_select";
1901
+ options: {
1902
+ id: string;
1903
+ name: string;
1904
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
1905
+ description?: string | undefined;
1906
+ }[];
1907
+ } | {
1908
+ name: string;
1909
+ description?: string | undefined;
1910
+ type: "status";
1911
+ options: {
1912
+ id: string;
1913
+ name: string;
1914
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
1915
+ description?: string | undefined;
1916
+ }[];
1917
+ groups: {
1918
+ id: string;
1919
+ name: string;
1920
+ color?: import("../../protocol/dataSources/properties/propertySchema.js").NotionPropertyColor | undefined;
1921
+ option_ids: string[];
1922
+ }[];
1923
+ } | {
1924
+ name: string;
1925
+ description?: string | undefined;
1926
+ type: "date";
1927
+ } | {
1928
+ name: string;
1929
+ description?: string | undefined;
1930
+ type: "people";
1931
+ } | {
1932
+ name: string;
1933
+ description?: string | undefined;
1934
+ type: "files";
1935
+ } | {
1936
+ name: string;
1937
+ description?: string | undefined;
1938
+ type: "unique_id";
1939
+ } | {
1940
+ name: string;
1941
+ description?: string | undefined;
1942
+ type: "relation";
1943
+ data_source_id?: string | undefined;
1944
+ dual_property?: {
1945
+ synced_property_id: string;
1946
+ synced_property_name: string;
1947
+ } | undefined;
1948
+ } | {
1949
+ name: string;
1950
+ description?: string | undefined;
1951
+ type: "place";
1952
+ } | {
1953
+ name: string;
1954
+ description?: string | undefined;
1955
+ type: "formula";
1956
+ } | {
1957
+ name: string;
1958
+ description?: string | undefined;
1959
+ type: "rollup";
1960
+ } | {
1961
+ name: string;
1962
+ description?: string | undefined;
1963
+ type: "button";
1964
+ } | {
1965
+ name: string;
1966
+ description?: string | undefined;
1967
+ type: "verification";
1968
+ } | {
1969
+ name: string;
1970
+ description?: string | undefined;
1971
+ type: "created_time";
1972
+ } | {
1973
+ name: string;
1974
+ description?: string | undefined;
1975
+ type: "last_edited_time";
1976
+ } | {
1977
+ name: string;
1978
+ description?: string | undefined;
1979
+ type: "created_by";
1980
+ } | {
1981
+ name: string;
1982
+ description?: string | undefined;
1983
+ type: "last_edited_by";
1984
+ };
1985
+ };
1986
+ };
1987
+ propertyIdsByKey: {
1988
+ [x: string]: string | undefined;
1989
+ };
1990
+ };
1991
+ } | {
1992
+ type: "getDataSourceResult";
1993
+ requestId: string;
1994
+ status: "error";
1995
+ error: {
1996
+ code: string;
1997
+ message: string;
1998
+ isRetryable: boolean;
1999
+ };
2000
+ }, "The host returned an incomplete or invalid source binding.">]>;
2001
+ //# sourceMappingURL=makeDataSourceReadResponseSchema.d.ts.map