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