@dalmore/api-contracts 0.0.0-dev.801385 → 0.0.0-dev.9c066a6

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