@mackenly/planningcenterkit 0.4.42 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (422) hide show
  1. package/README.md +472 -31
  2. package/dist/cjs/client.d.ts +145 -0
  3. package/dist/cjs/client.d.ts.map +1 -0
  4. package/dist/cjs/client.js +176 -0
  5. package/dist/cjs/client.js.map +1 -0
  6. package/dist/cjs/core/auth.d.ts +105 -0
  7. package/dist/cjs/core/auth.d.ts.map +1 -0
  8. package/dist/cjs/core/auth.js +219 -0
  9. package/dist/cjs/core/auth.js.map +1 -0
  10. package/dist/cjs/core/errors.d.ts +145 -0
  11. package/dist/cjs/core/errors.d.ts.map +1 -0
  12. package/dist/cjs/core/errors.js +202 -0
  13. package/dist/cjs/core/errors.js.map +1 -0
  14. package/dist/cjs/core/graph.d.ts +110 -0
  15. package/dist/cjs/core/graph.d.ts.map +1 -0
  16. package/dist/cjs/core/graph.js +14 -0
  17. package/dist/cjs/core/graph.js.map +1 -0
  18. package/dist/cjs/core/http.d.ts +147 -0
  19. package/dist/cjs/core/http.d.ts.map +1 -0
  20. package/dist/cjs/core/http.js +478 -0
  21. package/dist/cjs/core/http.js.map +1 -0
  22. package/dist/cjs/core/jsonapi.d.ts +65 -0
  23. package/dist/cjs/core/jsonapi.d.ts.map +1 -0
  24. package/dist/{types.js → cjs/core/jsonapi.js} +1 -2
  25. package/dist/cjs/core/jsonapi.js.map +1 -0
  26. package/dist/cjs/core/oauth.d.ts +202 -0
  27. package/dist/cjs/core/oauth.d.ts.map +1 -0
  28. package/dist/cjs/core/oauth.js +290 -0
  29. package/dist/cjs/core/oauth.js.map +1 -0
  30. package/dist/cjs/core/product.d.ts +78 -0
  31. package/dist/cjs/core/product.d.ts.map +1 -0
  32. package/dist/cjs/core/product.js +57 -0
  33. package/dist/cjs/core/product.js.map +1 -0
  34. package/dist/cjs/core/query.d.ts +489 -0
  35. package/dist/cjs/core/query.d.ts.map +1 -0
  36. package/dist/cjs/core/query.js +435 -0
  37. package/dist/cjs/core/query.js.map +1 -0
  38. package/dist/cjs/core/transport.d.ts +57 -0
  39. package/dist/cjs/core/transport.d.ts.map +1 -0
  40. package/dist/cjs/core/transport.js +7 -0
  41. package/dist/cjs/core/transport.js.map +1 -0
  42. package/dist/cjs/entries/api.d.ts +26 -0
  43. package/dist/cjs/entries/api.d.ts.map +1 -0
  44. package/dist/cjs/entries/api.js +40 -0
  45. package/dist/cjs/entries/api.js.map +1 -0
  46. package/dist/cjs/entries/calendar.d.ts +26 -0
  47. package/dist/cjs/entries/calendar.d.ts.map +1 -0
  48. package/dist/cjs/entries/calendar.js +40 -0
  49. package/dist/cjs/entries/calendar.js.map +1 -0
  50. package/dist/cjs/entries/check-ins.d.ts +26 -0
  51. package/dist/cjs/entries/check-ins.d.ts.map +1 -0
  52. package/dist/cjs/entries/check-ins.js +40 -0
  53. package/dist/cjs/entries/check-ins.js.map +1 -0
  54. package/dist/cjs/entries/current.d.ts +26 -0
  55. package/dist/cjs/entries/current.d.ts.map +1 -0
  56. package/dist/cjs/entries/current.js +40 -0
  57. package/dist/cjs/entries/current.js.map +1 -0
  58. package/dist/cjs/entries/giving.d.ts +26 -0
  59. package/dist/cjs/entries/giving.d.ts.map +1 -0
  60. package/dist/cjs/entries/giving.js +40 -0
  61. package/dist/cjs/entries/giving.js.map +1 -0
  62. package/dist/cjs/entries/groups.d.ts +26 -0
  63. package/dist/cjs/entries/groups.d.ts.map +1 -0
  64. package/dist/cjs/entries/groups.js +40 -0
  65. package/dist/cjs/entries/groups.js.map +1 -0
  66. package/dist/cjs/entries/oauth.d.ts +8 -0
  67. package/dist/cjs/entries/oauth.d.ts.map +1 -0
  68. package/dist/cjs/entries/oauth.js +27 -0
  69. package/dist/cjs/entries/oauth.js.map +1 -0
  70. package/dist/cjs/entries/people.d.ts +26 -0
  71. package/dist/cjs/entries/people.d.ts.map +1 -0
  72. package/dist/cjs/entries/people.js +40 -0
  73. package/dist/cjs/entries/people.js.map +1 -0
  74. package/dist/cjs/entries/publishing.d.ts +26 -0
  75. package/dist/cjs/entries/publishing.d.ts.map +1 -0
  76. package/dist/cjs/entries/publishing.js +40 -0
  77. package/dist/cjs/entries/publishing.js.map +1 -0
  78. package/dist/cjs/entries/registrations.d.ts +26 -0
  79. package/dist/cjs/entries/registrations.d.ts.map +1 -0
  80. package/dist/cjs/entries/registrations.js +40 -0
  81. package/dist/cjs/entries/registrations.js.map +1 -0
  82. package/dist/cjs/entries/services.d.ts +26 -0
  83. package/dist/cjs/entries/services.d.ts.map +1 -0
  84. package/dist/cjs/entries/services.js +40 -0
  85. package/dist/cjs/entries/services.js.map +1 -0
  86. package/dist/cjs/entries/webhooks-api.d.ts +26 -0
  87. package/dist/cjs/entries/webhooks-api.d.ts.map +1 -0
  88. package/dist/cjs/entries/webhooks-api.js +40 -0
  89. package/dist/cjs/entries/webhooks-api.js.map +1 -0
  90. package/dist/cjs/entries/webhooks.d.ts +6 -0
  91. package/dist/cjs/entries/webhooks.d.ts.map +1 -0
  92. package/dist/cjs/entries/webhooks.js +22 -0
  93. package/dist/cjs/entries/webhooks.js.map +1 -0
  94. package/dist/cjs/generated/api.d.ts +426 -0
  95. package/dist/cjs/generated/api.d.ts.map +1 -0
  96. package/dist/cjs/generated/api.js +77 -0
  97. package/dist/cjs/generated/api.js.map +1 -0
  98. package/dist/cjs/generated/calendar.d.ts +2849 -0
  99. package/dist/cjs/generated/calendar.d.ts.map +1 -0
  100. package/dist/cjs/generated/calendar.js +299 -0
  101. package/dist/cjs/generated/calendar.js.map +1 -0
  102. package/dist/cjs/generated/check-ins.d.ts +2383 -0
  103. package/dist/cjs/generated/check-ins.d.ts.map +1 -0
  104. package/dist/cjs/generated/check-ins.js +298 -0
  105. package/dist/cjs/generated/check-ins.js.map +1 -0
  106. package/dist/cjs/generated/current.d.ts +135 -0
  107. package/dist/cjs/generated/current.d.ts.map +1 -0
  108. package/dist/cjs/generated/current.js +34 -0
  109. package/dist/cjs/generated/current.js.map +1 -0
  110. package/dist/cjs/generated/giving.d.ts +2309 -0
  111. package/dist/cjs/generated/giving.d.ts.map +1 -0
  112. package/dist/cjs/generated/giving.js +228 -0
  113. package/dist/cjs/generated/giving.js.map +1 -0
  114. package/dist/cjs/generated/groups.d.ts +1789 -0
  115. package/dist/cjs/generated/groups.d.ts.map +1 -0
  116. package/dist/cjs/generated/groups.js +200 -0
  117. package/dist/cjs/generated/groups.js.map +1 -0
  118. package/dist/cjs/generated/index.d.ts +5067 -0
  119. package/dist/cjs/generated/index.d.ts.map +1 -0
  120. package/dist/cjs/generated/index.js +73 -0
  121. package/dist/cjs/generated/index.js.map +1 -0
  122. package/dist/cjs/generated/people.d.ts +6001 -0
  123. package/dist/cjs/generated/people.d.ts.map +1 -0
  124. package/dist/cjs/generated/people.js +694 -0
  125. package/dist/cjs/generated/people.js.map +1 -0
  126. package/dist/cjs/generated/publishing.d.ts +1468 -0
  127. package/dist/cjs/generated/publishing.d.ts.map +1 -0
  128. package/dist/cjs/generated/publishing.js +180 -0
  129. package/dist/cjs/generated/publishing.js.map +1 -0
  130. package/dist/cjs/generated/registrations.d.ts +936 -0
  131. package/dist/cjs/generated/registrations.d.ts.map +1 -0
  132. package/dist/cjs/generated/registrations.js +122 -0
  133. package/dist/cjs/generated/registrations.js.map +1 -0
  134. package/dist/cjs/generated/services.d.ts +6301 -0
  135. package/dist/cjs/generated/services.d.ts.map +1 -0
  136. package/dist/cjs/generated/services.js +634 -0
  137. package/dist/cjs/generated/services.js.map +1 -0
  138. package/dist/cjs/generated/webhooks.d.ts +325 -0
  139. package/dist/cjs/generated/webhooks.d.ts.map +1 -0
  140. package/dist/cjs/generated/webhooks.js +58 -0
  141. package/dist/cjs/generated/webhooks.js.map +1 -0
  142. package/dist/cjs/index.d.ts +29 -0
  143. package/dist/cjs/index.d.ts.map +1 -0
  144. package/dist/cjs/index.js +51 -0
  145. package/dist/cjs/index.js.map +1 -0
  146. package/dist/cjs/package.json +1 -0
  147. package/dist/cjs/webhooks/errors.d.ts +51 -0
  148. package/dist/cjs/webhooks/errors.d.ts.map +1 -0
  149. package/dist/cjs/webhooks/errors.js +56 -0
  150. package/dist/cjs/webhooks/errors.js.map +1 -0
  151. package/dist/cjs/webhooks/events.d.ts +144 -0
  152. package/dist/cjs/webhooks/events.d.ts.map +1 -0
  153. package/dist/cjs/webhooks/events.js +160 -0
  154. package/dist/cjs/webhooks/events.js.map +1 -0
  155. package/dist/cjs/webhooks/handle.d.ts +103 -0
  156. package/dist/cjs/webhooks/handle.d.ts.map +1 -0
  157. package/dist/cjs/webhooks/handle.js +140 -0
  158. package/dist/cjs/webhooks/handle.js.map +1 -0
  159. package/dist/cjs/webhooks/index.d.ts +33 -0
  160. package/dist/cjs/webhooks/index.d.ts.map +1 -0
  161. package/dist/cjs/webhooks/index.js +46 -0
  162. package/dist/cjs/webhooks/index.js.map +1 -0
  163. package/dist/cjs/webhooks/signature.d.ts +84 -0
  164. package/dist/cjs/webhooks/signature.d.ts.map +1 -0
  165. package/dist/cjs/webhooks/signature.js +126 -0
  166. package/dist/cjs/webhooks/signature.js.map +1 -0
  167. package/dist/esm/client.d.ts +145 -0
  168. package/dist/esm/client.d.ts.map +1 -0
  169. package/dist/esm/client.js +172 -0
  170. package/dist/esm/client.js.map +1 -0
  171. package/dist/esm/core/auth.d.ts +105 -0
  172. package/dist/esm/core/auth.d.ts.map +1 -0
  173. package/dist/esm/core/auth.js +215 -0
  174. package/dist/esm/core/auth.js.map +1 -0
  175. package/dist/esm/core/errors.d.ts +145 -0
  176. package/dist/esm/core/errors.d.ts.map +1 -0
  177. package/dist/esm/core/errors.js +185 -0
  178. package/dist/esm/core/errors.js.map +1 -0
  179. package/dist/esm/core/graph.d.ts +110 -0
  180. package/dist/esm/core/graph.d.ts.map +1 -0
  181. package/dist/esm/core/graph.js +13 -0
  182. package/dist/esm/core/graph.js.map +1 -0
  183. package/dist/esm/core/http.d.ts +147 -0
  184. package/dist/esm/core/http.d.ts.map +1 -0
  185. package/dist/esm/core/http.js +473 -0
  186. package/dist/esm/core/http.js.map +1 -0
  187. package/dist/esm/core/jsonapi.d.ts +65 -0
  188. package/dist/esm/core/jsonapi.d.ts.map +1 -0
  189. package/dist/esm/core/jsonapi.js +2 -0
  190. package/dist/esm/core/jsonapi.js.map +1 -0
  191. package/dist/esm/core/oauth.d.ts +202 -0
  192. package/dist/esm/core/oauth.d.ts.map +1 -0
  193. package/dist/esm/core/oauth.js +280 -0
  194. package/dist/esm/core/oauth.js.map +1 -0
  195. package/dist/esm/core/product.d.ts +78 -0
  196. package/dist/esm/core/product.d.ts.map +1 -0
  197. package/dist/esm/core/product.js +54 -0
  198. package/dist/esm/core/product.js.map +1 -0
  199. package/dist/esm/core/query.d.ts +489 -0
  200. package/dist/esm/core/query.d.ts.map +1 -0
  201. package/dist/esm/core/query.js +431 -0
  202. package/dist/esm/core/query.js.map +1 -0
  203. package/dist/esm/core/transport.d.ts +57 -0
  204. package/dist/esm/core/transport.d.ts.map +1 -0
  205. package/dist/esm/core/transport.js +6 -0
  206. package/dist/esm/core/transport.js.map +1 -0
  207. package/dist/esm/entries/api.d.ts +26 -0
  208. package/dist/esm/entries/api.d.ts.map +1 -0
  209. package/dist/esm/entries/api.js +23 -0
  210. package/dist/esm/entries/api.js.map +1 -0
  211. package/dist/esm/entries/calendar.d.ts +26 -0
  212. package/dist/esm/entries/calendar.d.ts.map +1 -0
  213. package/dist/esm/entries/calendar.js +23 -0
  214. package/dist/esm/entries/calendar.js.map +1 -0
  215. package/dist/esm/entries/check-ins.d.ts +26 -0
  216. package/dist/esm/entries/check-ins.d.ts.map +1 -0
  217. package/dist/esm/entries/check-ins.js +23 -0
  218. package/dist/esm/entries/check-ins.js.map +1 -0
  219. package/dist/esm/entries/current.d.ts +26 -0
  220. package/dist/esm/entries/current.d.ts.map +1 -0
  221. package/dist/esm/entries/current.js +23 -0
  222. package/dist/esm/entries/current.js.map +1 -0
  223. package/dist/esm/entries/giving.d.ts +26 -0
  224. package/dist/esm/entries/giving.d.ts.map +1 -0
  225. package/dist/esm/entries/giving.js +23 -0
  226. package/dist/esm/entries/giving.js.map +1 -0
  227. package/dist/esm/entries/groups.d.ts +26 -0
  228. package/dist/esm/entries/groups.d.ts.map +1 -0
  229. package/dist/esm/entries/groups.js +23 -0
  230. package/dist/esm/entries/groups.js.map +1 -0
  231. package/dist/esm/entries/oauth.d.ts +8 -0
  232. package/dist/esm/entries/oauth.d.ts.map +1 -0
  233. package/dist/esm/entries/oauth.js +7 -0
  234. package/dist/esm/entries/oauth.js.map +1 -0
  235. package/dist/esm/entries/people.d.ts +26 -0
  236. package/dist/esm/entries/people.d.ts.map +1 -0
  237. package/dist/esm/entries/people.js +23 -0
  238. package/dist/esm/entries/people.js.map +1 -0
  239. package/dist/esm/entries/publishing.d.ts +26 -0
  240. package/dist/esm/entries/publishing.d.ts.map +1 -0
  241. package/dist/esm/entries/publishing.js +23 -0
  242. package/dist/esm/entries/publishing.js.map +1 -0
  243. package/dist/esm/entries/registrations.d.ts +26 -0
  244. package/dist/esm/entries/registrations.d.ts.map +1 -0
  245. package/dist/esm/entries/registrations.js +23 -0
  246. package/dist/esm/entries/registrations.js.map +1 -0
  247. package/dist/esm/entries/services.d.ts +26 -0
  248. package/dist/esm/entries/services.d.ts.map +1 -0
  249. package/dist/esm/entries/services.js +23 -0
  250. package/dist/esm/entries/services.js.map +1 -0
  251. package/dist/esm/entries/webhooks-api.d.ts +26 -0
  252. package/dist/esm/entries/webhooks-api.d.ts.map +1 -0
  253. package/dist/esm/entries/webhooks-api.js +23 -0
  254. package/dist/esm/entries/webhooks-api.js.map +1 -0
  255. package/dist/esm/entries/webhooks.d.ts +6 -0
  256. package/dist/esm/entries/webhooks.d.ts.map +1 -0
  257. package/dist/esm/entries/webhooks.js +6 -0
  258. package/dist/esm/entries/webhooks.js.map +1 -0
  259. package/dist/esm/generated/api.d.ts +426 -0
  260. package/dist/esm/generated/api.d.ts.map +1 -0
  261. package/dist/esm/generated/api.js +74 -0
  262. package/dist/esm/generated/api.js.map +1 -0
  263. package/dist/esm/generated/calendar.d.ts +2849 -0
  264. package/dist/esm/generated/calendar.d.ts.map +1 -0
  265. package/dist/esm/generated/calendar.js +296 -0
  266. package/dist/esm/generated/calendar.js.map +1 -0
  267. package/dist/esm/generated/check-ins.d.ts +2383 -0
  268. package/dist/esm/generated/check-ins.d.ts.map +1 -0
  269. package/dist/esm/generated/check-ins.js +295 -0
  270. package/dist/esm/generated/check-ins.js.map +1 -0
  271. package/dist/esm/generated/current.d.ts +135 -0
  272. package/dist/esm/generated/current.d.ts.map +1 -0
  273. package/dist/esm/generated/current.js +31 -0
  274. package/dist/esm/generated/current.js.map +1 -0
  275. package/dist/esm/generated/giving.d.ts +2309 -0
  276. package/dist/esm/generated/giving.d.ts.map +1 -0
  277. package/dist/esm/generated/giving.js +225 -0
  278. package/dist/esm/generated/giving.js.map +1 -0
  279. package/dist/esm/generated/groups.d.ts +1789 -0
  280. package/dist/esm/generated/groups.d.ts.map +1 -0
  281. package/dist/esm/generated/groups.js +197 -0
  282. package/dist/esm/generated/groups.js.map +1 -0
  283. package/dist/esm/generated/index.d.ts +5067 -0
  284. package/dist/esm/generated/index.d.ts.map +1 -0
  285. package/dist/esm/generated/index.js +37 -0
  286. package/dist/esm/generated/index.js.map +1 -0
  287. package/dist/esm/generated/people.d.ts +6001 -0
  288. package/dist/esm/generated/people.d.ts.map +1 -0
  289. package/dist/esm/generated/people.js +691 -0
  290. package/dist/esm/generated/people.js.map +1 -0
  291. package/dist/esm/generated/publishing.d.ts +1468 -0
  292. package/dist/esm/generated/publishing.d.ts.map +1 -0
  293. package/dist/esm/generated/publishing.js +177 -0
  294. package/dist/esm/generated/publishing.js.map +1 -0
  295. package/dist/esm/generated/registrations.d.ts +936 -0
  296. package/dist/esm/generated/registrations.d.ts.map +1 -0
  297. package/dist/esm/generated/registrations.js +119 -0
  298. package/dist/esm/generated/registrations.js.map +1 -0
  299. package/dist/esm/generated/services.d.ts +6301 -0
  300. package/dist/esm/generated/services.d.ts.map +1 -0
  301. package/dist/esm/generated/services.js +631 -0
  302. package/dist/esm/generated/services.js.map +1 -0
  303. package/dist/esm/generated/webhooks.d.ts +325 -0
  304. package/dist/esm/generated/webhooks.d.ts.map +1 -0
  305. package/dist/esm/generated/webhooks.js +55 -0
  306. package/dist/esm/generated/webhooks.js.map +1 -0
  307. package/dist/esm/index.d.ts +29 -0
  308. package/dist/esm/index.d.ts.map +1 -0
  309. package/dist/esm/index.js +26 -0
  310. package/dist/esm/index.js.map +1 -0
  311. package/dist/esm/webhooks/errors.d.ts +51 -0
  312. package/dist/esm/webhooks/errors.d.ts.map +1 -0
  313. package/dist/esm/webhooks/errors.js +51 -0
  314. package/dist/esm/webhooks/errors.js.map +1 -0
  315. package/dist/esm/webhooks/events.d.ts +144 -0
  316. package/dist/esm/webhooks/events.d.ts.map +1 -0
  317. package/dist/esm/webhooks/events.js +155 -0
  318. package/dist/esm/webhooks/events.js.map +1 -0
  319. package/dist/esm/webhooks/handle.d.ts +103 -0
  320. package/dist/esm/webhooks/handle.d.ts.map +1 -0
  321. package/dist/esm/webhooks/handle.js +137 -0
  322. package/dist/esm/webhooks/handle.js.map +1 -0
  323. package/dist/esm/webhooks/index.d.ts +33 -0
  324. package/dist/esm/webhooks/index.d.ts.map +1 -0
  325. package/dist/esm/webhooks/index.js +33 -0
  326. package/dist/esm/webhooks/index.js.map +1 -0
  327. package/dist/esm/webhooks/signature.d.ts +84 -0
  328. package/dist/esm/webhooks/signature.d.ts.map +1 -0
  329. package/dist/esm/webhooks/signature.js +120 -0
  330. package/dist/esm/webhooks/signature.js.map +1 -0
  331. package/llms.txt +119 -0
  332. package/package.json +79 -14
  333. package/src/client.ts +169 -282
  334. package/src/core/auth.ts +317 -0
  335. package/src/core/errors.ts +219 -0
  336. package/src/core/graph.ts +137 -0
  337. package/src/core/http.ts +594 -0
  338. package/src/core/jsonapi.ts +64 -0
  339. package/src/core/oauth.ts +403 -0
  340. package/src/core/product.ts +137 -0
  341. package/src/core/query.ts +1011 -0
  342. package/src/core/transport.ts +62 -0
  343. package/src/entries/api.ts +28 -0
  344. package/src/entries/calendar.ts +28 -0
  345. package/src/entries/check-ins.ts +28 -0
  346. package/src/entries/current.ts +28 -0
  347. package/src/entries/giving.ts +28 -0
  348. package/src/entries/groups.ts +28 -0
  349. package/src/entries/oauth.ts +7 -0
  350. package/src/entries/people.ts +28 -0
  351. package/src/entries/publishing.ts +28 -0
  352. package/src/entries/registrations.ts +28 -0
  353. package/src/entries/services.ts +28 -0
  354. package/src/entries/webhooks-api.ts +28 -0
  355. package/src/entries/webhooks.ts +5 -0
  356. package/src/generated/api.ts +401 -0
  357. package/src/generated/calendar.ts +2380 -0
  358. package/src/generated/check-ins.ts +1783 -0
  359. package/src/generated/current.ts +136 -0
  360. package/src/generated/giving.ts +1956 -0
  361. package/src/generated/groups.ts +1474 -0
  362. package/src/generated/index.ts +59 -0
  363. package/src/generated/people.ts +5103 -0
  364. package/src/generated/publishing.ts +1321 -0
  365. package/src/generated/registrations.ts +799 -0
  366. package/src/generated/services.ts +5427 -0
  367. package/src/generated/webhooks.ts +314 -0
  368. package/src/index.ts +74 -4
  369. package/src/webhooks/errors.ts +52 -0
  370. package/src/webhooks/events.ts +272 -0
  371. package/src/webhooks/handle.ts +163 -0
  372. package/src/webhooks/index.ts +54 -0
  373. package/src/webhooks/signature.ts +140 -0
  374. package/.gitattributes +0 -2
  375. package/.github/FUNDING.yml +0 -3
  376. package/.github/dependabot.yml +0 -21
  377. package/.github/workflows/ci-publish.yml +0 -84
  378. package/SECURITY.md +0 -13
  379. package/TODO.md +0 -6
  380. package/dist/client.d.ts +0 -216
  381. package/dist/client.js +0 -265
  382. package/dist/client.js.map +0 -1
  383. package/dist/index.d.ts +0 -4
  384. package/dist/index.js +0 -6
  385. package/dist/index.js.map +0 -1
  386. package/dist/modules/calendar.d.ts +0 -5
  387. package/dist/modules/calendar.js +0 -11
  388. package/dist/modules/calendar.js.map +0 -1
  389. package/dist/modules/checkins.d.ts +0 -0
  390. package/dist/modules/checkins.js +0 -2
  391. package/dist/modules/checkins.js.map +0 -1
  392. package/dist/modules/giving.d.ts +0 -0
  393. package/dist/modules/giving.js +0 -2
  394. package/dist/modules/giving.js.map +0 -1
  395. package/dist/modules/groups.d.ts +0 -4
  396. package/dist/modules/groups.js +0 -22
  397. package/dist/modules/groups.js.map +0 -1
  398. package/dist/modules/people.d.ts +0 -66
  399. package/dist/modules/people.js +0 -40
  400. package/dist/modules/people.js.map +0 -1
  401. package/dist/modules/publishing.d.ts +0 -0
  402. package/dist/modules/publishing.js +0 -2
  403. package/dist/modules/publishing.js.map +0 -1
  404. package/dist/modules/services.d.ts +0 -0
  405. package/dist/modules/services.js +0 -2
  406. package/dist/modules/services.js.map +0 -1
  407. package/dist/modules/webhooks.d.ts +0 -0
  408. package/dist/modules/webhooks.js +0 -2
  409. package/dist/modules/webhooks.js.map +0 -1
  410. package/dist/types.d.ts +0 -6
  411. package/dist/types.js.map +0 -1
  412. package/src/index.test.ts +0 -7
  413. package/src/modules/calendar.ts +0 -11
  414. package/src/modules/checkins.ts +0 -0
  415. package/src/modules/giving.ts +0 -0
  416. package/src/modules/groups.ts +0 -7
  417. package/src/modules/people.ts +0 -92
  418. package/src/modules/publishing.ts +0 -0
  419. package/src/modules/services.ts +0 -0
  420. package/src/modules/webhooks.ts +0 -0
  421. package/src/types.ts +0 -8
  422. package/tsconfig.json +0 -111
@@ -0,0 +1,2380 @@
1
+ /**
2
+ * Planning Center Calendar API (`/calendar/v2`).
3
+ *
4
+ * Generated from the Planning Center API documentation, version 2026-06-22, by
5
+ * scripts/generate.ts. Do not edit: run `npm run spec:fetch && npm run generate`.
6
+ *
7
+ * @module
8
+ */
9
+ import type { ProductGraph, ProductSchema, RootSchema } from '../core/graph.js';
10
+ import type { PcoResource } from '../core/jsonapi.js';
11
+
12
+ /** Runtime metadata for Planning Center Calendar: paths and capabilities only. */
13
+ export const calendarGraph = {
14
+ product: 'calendar',
15
+ slug: 'calendar',
16
+ basePath: '/calendar/v2',
17
+ version: '2026-06-22',
18
+ rootVertex: 'organization',
19
+ root: {
20
+ attachments: { vertex: 'attachment', many: true, canCreate: false },
21
+ calendars: { vertex: 'calendar', many: true, canCreate: false },
22
+ conflicts: { vertex: 'conflict', many: true, canCreate: false },
23
+ event_instances: { vertex: 'event_instance', many: true, canCreate: false },
24
+ event_resource_requests: { vertex: 'event_resource_request', many: true, canCreate: false },
25
+ events: { vertex: 'event', many: true, canCreate: false },
26
+ feeds: { vertex: 'feed', many: true, canCreate: false },
27
+ job_statuses: { vertex: 'job_status', many: true, canCreate: false },
28
+ people: { vertex: 'person', many: true, canCreate: false },
29
+ report_templates: { vertex: 'report_template', many: true, canCreate: true },
30
+ resource_approval_groups: { vertex: 'resource_approval_group', many: true, canCreate: false },
31
+ resource_bookings: { vertex: 'resource_booking', many: true, canCreate: false },
32
+ resource_folders: { vertex: 'resource_folder', many: true, canCreate: true },
33
+ resource_questions: { vertex: 'resource_question', many: true, canCreate: false },
34
+ resources: { vertex: 'resource', many: true, canCreate: true },
35
+ room_setups: { vertex: 'room_setup', many: true, canCreate: false },
36
+ tag_groups: { vertex: 'tag_group', many: true, canCreate: true },
37
+ tags: { vertex: 'tag', many: true, canCreate: true },
38
+ },
39
+ vertices: {
40
+ attachment: {
41
+ type: 'Attachment',
42
+ edges: {
43
+ event: { vertex: 'event', many: true, canCreate: false },
44
+ },
45
+ actions: [],
46
+ canUpdate: false,
47
+ canDelete: false,
48
+ canonicalPath: '/calendar/v2/attachments',
49
+ },
50
+ calendar: {
51
+ type: 'Calendar',
52
+ edges: {
53
+ approval_groups: { vertex: 'resource_approval_group', many: true, canCreate: false },
54
+ events: { vertex: 'event', many: true, canCreate: false },
55
+ },
56
+ actions: [],
57
+ canUpdate: false,
58
+ canDelete: false,
59
+ canonicalPath: '/calendar/v2/calendars',
60
+ },
61
+ conflict: {
62
+ type: 'Conflict',
63
+ edges: {
64
+ resolved_by: { vertex: 'person', many: true, canCreate: false },
65
+ resource: { vertex: 'resource', many: true, canCreate: false },
66
+ winner: { vertex: 'event', many: true, canCreate: false },
67
+ },
68
+ actions: [],
69
+ canUpdate: false,
70
+ canDelete: false,
71
+ canonicalPath: '/calendar/v2/conflicts',
72
+ },
73
+ containing_resource: {
74
+ type: 'ContainingResource',
75
+ edges: {},
76
+ actions: [],
77
+ canUpdate: false,
78
+ canDelete: false,
79
+ },
80
+ event: {
81
+ type: 'Event',
82
+ edges: {
83
+ attachments: { vertex: 'attachment', many: true, canCreate: false },
84
+ calendar: { vertex: 'calendar', many: true, canCreate: false },
85
+ conflicts: { vertex: 'conflict', many: true, canCreate: false },
86
+ event_connections: { vertex: 'event_connection', many: true, canCreate: true },
87
+ event_instances: { vertex: 'event_instance', many: true, canCreate: false },
88
+ event_resource_requests: { vertex: 'event_resource_request', many: true, canCreate: false },
89
+ feed: { vertex: 'feed', many: true, canCreate: false },
90
+ owner: { vertex: 'person', many: true, canCreate: false },
91
+ resource_bookings: { vertex: 'resource_booking', many: true, canCreate: false },
92
+ tags: { vertex: 'tag', many: true, canCreate: false },
93
+ },
94
+ actions: [],
95
+ canUpdate: false,
96
+ canDelete: false,
97
+ canonicalPath: '/calendar/v2/events',
98
+ },
99
+ event_connection: {
100
+ type: 'EventConnection',
101
+ edges: {},
102
+ actions: [],
103
+ canUpdate: true,
104
+ canDelete: true,
105
+ },
106
+ event_instance: {
107
+ type: 'EventInstance',
108
+ edges: {
109
+ event: { vertex: 'event', many: true, canCreate: false },
110
+ event_times: { vertex: 'event_time', many: true, canCreate: false },
111
+ resource_bookings: { vertex: 'resource_booking', many: true, canCreate: false },
112
+ tags: { vertex: 'tag', many: true, canCreate: false },
113
+ },
114
+ actions: [],
115
+ canUpdate: false,
116
+ canDelete: false,
117
+ canonicalPath: '/calendar/v2/event_instances',
118
+ },
119
+ event_resource_answer: {
120
+ type: 'EventResourceAnswer',
121
+ edges: {},
122
+ actions: [],
123
+ canUpdate: false,
124
+ canDelete: false,
125
+ },
126
+ event_resource_request: {
127
+ type: 'EventResourceRequest',
128
+ edges: {
129
+ answers: { vertex: 'event_resource_answer', many: true, canCreate: false },
130
+ created_by: { vertex: 'person', many: true, canCreate: false },
131
+ event: { vertex: 'event', many: true, canCreate: false },
132
+ resource: { vertex: 'resource', many: true, canCreate: false },
133
+ resource_bookings: { vertex: 'resource_booking', many: true, canCreate: false },
134
+ room_setup: { vertex: 'room_setup', many: true, canCreate: false },
135
+ updated_by: { vertex: 'person', many: true, canCreate: false },
136
+ },
137
+ actions: [],
138
+ canUpdate: false,
139
+ canDelete: false,
140
+ canonicalPath: '/calendar/v2/event_resource_requests',
141
+ },
142
+ event_time: {
143
+ type: 'EventTime',
144
+ edges: {
145
+ event: { vertex: 'event', many: true, canCreate: false },
146
+ },
147
+ actions: [],
148
+ canUpdate: false,
149
+ canDelete: false,
150
+ },
151
+ feed: {
152
+ type: 'Feed',
153
+ edges: {},
154
+ actions: [],
155
+ canUpdate: false,
156
+ canDelete: false,
157
+ canonicalPath: '/calendar/v2/feeds',
158
+ },
159
+ job_status: {
160
+ type: 'JobStatus',
161
+ edges: {},
162
+ actions: [],
163
+ canUpdate: false,
164
+ canDelete: false,
165
+ canonicalPath: '/calendar/v2/job_statuses',
166
+ },
167
+ organization: {
168
+ type: 'Organization',
169
+ edges: {},
170
+ actions: [],
171
+ canUpdate: false,
172
+ canDelete: false,
173
+ },
174
+ person: {
175
+ type: 'Person',
176
+ edges: {
177
+ event_resource_requests: { vertex: 'event_resource_request', many: true, canCreate: false },
178
+ organization: { vertex: 'organization', many: true, canCreate: false },
179
+ },
180
+ actions: [],
181
+ canUpdate: false,
182
+ canDelete: false,
183
+ canonicalPath: '/calendar/v2/people',
184
+ },
185
+ report_template: {
186
+ type: 'ReportTemplate',
187
+ edges: {},
188
+ actions: [],
189
+ canUpdate: true,
190
+ canDelete: true,
191
+ canonicalPath: '/calendar/v2/report_templates',
192
+ },
193
+ required_approval: {
194
+ type: 'RequiredApproval',
195
+ edges: {
196
+ resource: { vertex: 'resource', many: true, canCreate: false },
197
+ },
198
+ actions: [],
199
+ canUpdate: false,
200
+ canDelete: false,
201
+ },
202
+ resource: {
203
+ type: 'Resource',
204
+ edges: {
205
+ conflicts: { vertex: 'conflict', many: true, canCreate: false },
206
+ event_resource_requests: { vertex: 'event_resource_request', many: true, canCreate: false },
207
+ required_approvals: { vertex: 'required_approval', many: true, canCreate: false },
208
+ resource_approval_groups: { vertex: 'resource_approval_group', many: true, canCreate: false },
209
+ resource_bookings: { vertex: 'resource_booking', many: true, canCreate: false },
210
+ resource_folder: { vertex: 'resource_folder', many: true, canCreate: false },
211
+ resource_questions: { vertex: 'resource_question', many: true, canCreate: true },
212
+ room_setups: { vertex: 'room_setup', many: true, canCreate: false },
213
+ },
214
+ actions: [],
215
+ canUpdate: true,
216
+ canDelete: true,
217
+ canonicalPath: '/calendar/v2/resources',
218
+ },
219
+ resource_approval_group: {
220
+ type: 'ResourceApprovalGroup',
221
+ edges: {
222
+ calendars: { vertex: 'calendar', many: true, canCreate: false },
223
+ event_resource_requests: { vertex: 'event_resource_request', many: true, canCreate: false },
224
+ people: { vertex: 'person', many: true, canCreate: false },
225
+ required_approvals: { vertex: 'required_approval', many: true, canCreate: false },
226
+ resources: { vertex: 'resource', many: true, canCreate: false },
227
+ },
228
+ actions: [],
229
+ canUpdate: false,
230
+ canDelete: false,
231
+ canonicalPath: '/calendar/v2/resource_approval_groups',
232
+ },
233
+ resource_booking: {
234
+ type: 'ResourceBooking',
235
+ edges: {
236
+ event_resource_request: { vertex: 'event_resource_request', many: true, canCreate: false },
237
+ resource: { vertex: 'resource', many: true, canCreate: false },
238
+ },
239
+ actions: [],
240
+ canUpdate: false,
241
+ canDelete: false,
242
+ canonicalPath: '/calendar/v2/resource_bookings',
243
+ },
244
+ resource_folder: {
245
+ type: 'ResourceFolder',
246
+ edges: {
247
+ resources: { vertex: 'resource', many: true, canCreate: false },
248
+ },
249
+ actions: [],
250
+ canUpdate: true,
251
+ canDelete: true,
252
+ canonicalPath: '/calendar/v2/resource_folders',
253
+ },
254
+ resource_question: {
255
+ type: 'ResourceQuestion',
256
+ edges: {},
257
+ actions: [],
258
+ canUpdate: true,
259
+ canDelete: true,
260
+ canonicalPath: '/calendar/v2/resource_questions',
261
+ },
262
+ resource_suggestion: {
263
+ type: 'ResourceSuggestion',
264
+ edges: {
265
+ resource: { vertex: 'resource', many: true, canCreate: false },
266
+ },
267
+ actions: [],
268
+ canUpdate: false,
269
+ canDelete: false,
270
+ },
271
+ room_setup: {
272
+ type: 'RoomSetup',
273
+ edges: {
274
+ containing_resource: { vertex: 'containing_resource', many: true, canCreate: false },
275
+ resource_suggestions: { vertex: 'resource_suggestion', many: true, canCreate: false },
276
+ },
277
+ actions: [],
278
+ canUpdate: false,
279
+ canDelete: false,
280
+ canonicalPath: '/calendar/v2/room_setups',
281
+ },
282
+ tag: {
283
+ type: 'Tag',
284
+ edges: {
285
+ event_instances: { vertex: 'event_instance', many: true, canCreate: false },
286
+ events: { vertex: 'event', many: true, canCreate: false },
287
+ tag_group: { vertex: 'tag_group', many: true, canCreate: false },
288
+ },
289
+ actions: [],
290
+ canUpdate: true,
291
+ canDelete: true,
292
+ canonicalPath: '/calendar/v2/tags',
293
+ },
294
+ tag_group: {
295
+ type: 'TagGroup',
296
+ edges: {
297
+ events: { vertex: 'event', many: true, canCreate: false },
298
+ tags: { vertex: 'tag', many: true, canCreate: false },
299
+ },
300
+ actions: [],
301
+ canUpdate: true,
302
+ canDelete: true,
303
+ canonicalPath: '/calendar/v2/tag_groups',
304
+ },
305
+ },
306
+ } as const satisfies ProductGraph;
307
+
308
+ /**
309
+ * Type-level schema of {@link Attachment}: attributes, query options, writable fields, and edges.
310
+ *
311
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/attachment
312
+ */
313
+ export interface AttachmentSchema {
314
+ type: 'Attachment';
315
+ attributes: {
316
+ /** MIME type of the attachment. Null for external links. */
317
+ content_type: string | null;
318
+ /** UTC time at which the attachment was created */
319
+ created_at: string | null;
320
+ /** Description of the attachment */
321
+ description: string | null;
322
+ /** File size in bytes. Null for external links. */
323
+ file_size: number | null;
324
+ /**
325
+ * Possible values: file_upload, external_link
326
+ *
327
+ * Possible values: `file_upload` or `external_link`
328
+ */
329
+ kind: string | null;
330
+ /** Set to the file name if not provided */
331
+ name: string | null;
332
+ /** UTC time at which the attachment was updated */
333
+ updated_at: string | null;
334
+ /**
335
+ * Path to where the attachment is stored, or the external link URL for external_link attachments
336
+ */
337
+ url: string | null;
338
+ };
339
+ relationships: 'event';
340
+ includes: 'event';
341
+ related: {
342
+ event: 'event';
343
+ };
344
+ where: {
345
+ content_type: string;
346
+ created_at: string | Date;
347
+ description: string;
348
+ file_size: number;
349
+ kind: string;
350
+ name: string;
351
+ updated_at: string | Date;
352
+ };
353
+ whereOps: {
354
+ created_at: 'gt' | 'gte' | 'lt' | 'lte';
355
+ updated_at: 'gt' | 'gte' | 'lt' | 'lte';
356
+ };
357
+ order:
358
+ | 'content_type'
359
+ | 'created_at'
360
+ | 'description'
361
+ | 'file_size'
362
+ | 'kind'
363
+ | 'name'
364
+ | 'updated_at';
365
+ create: {};
366
+ update: {};
367
+ delete: false;
368
+ actions: never;
369
+ edges: {
370
+ event: { vertex: 'event'; many: true; filters: never; create: false };
371
+ };
372
+ }
373
+
374
+ /**
375
+ * Type-level schema of {@link Calendar2}: attributes, query options, writable fields, and edges.
376
+ *
377
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/calendar
378
+ */
379
+ export interface Calendar2Schema {
380
+ type: 'Calendar';
381
+ attributes: {
382
+ access: string | null;
383
+ access_restricted: boolean | null;
384
+ /**
385
+ * Possible values: `blue`, `aqua`, `teal`, `green`, `yellow`, `orange`, `pink`, `purple`, `magenta`, `indigo`, `aqua_bold`, `teal_bold`, `orange_bold`, `magenta_bold`, `blue_bold`, `green_bold`, `yellow_bold`, `pink_bold`, `purple_bold`, or `indigo_bold`
386
+ */
387
+ color: string | null;
388
+ /**
389
+ * The number of pending events that would confirm if the calendar stopped requiring approval
390
+ *
391
+ * Only available when requested with the `?fields` param
392
+ */
393
+ confirmable_event_count: number | null;
394
+ created_at: string | null;
395
+ default: boolean | null;
396
+ description: string | null;
397
+ name: string | null;
398
+ requires_approval: boolean | null;
399
+ updated_at: string | null;
400
+ };
401
+ relationships: never;
402
+ includes: 'approval_groups';
403
+ related: {
404
+ approval_groups: 'resource_approval_group';
405
+ };
406
+ where: {};
407
+ whereOps: {};
408
+ order: 'name';
409
+ create: {};
410
+ update: {};
411
+ delete: false;
412
+ actions: never;
413
+ edges: {
414
+ approval_groups: { vertex: 'resource_approval_group'; many: true; filters: never; create: false };
415
+ events: { vertex: 'event'; many: true; filters: never; create: false };
416
+ };
417
+ }
418
+
419
+ /**
420
+ * Type-level schema of {@link Conflict}: attributes, query options, writable fields, and edges.
421
+ *
422
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/conflict
423
+ */
424
+ export interface ConflictSchema {
425
+ type: 'Conflict';
426
+ attributes: {
427
+ /** UTC time at which the conflict was created */
428
+ created_at: string | null;
429
+ /** Additional information about the conflict or resolution */
430
+ note: string | null;
431
+ /** UTC time at which the conflict was resolved */
432
+ resolved_at: string | null;
433
+ /** UTC time at which the conflict was updated */
434
+ updated_at: string | null;
435
+ };
436
+ relationships: 'resolved_by' | 'resource' | 'winner';
437
+ includes: 'resolved_by' | 'resource' | 'winner';
438
+ related: {
439
+ resolved_by: 'person';
440
+ resource: 'resource';
441
+ winner: 'event';
442
+ };
443
+ where: {};
444
+ whereOps: {};
445
+ order: 'resolved_at';
446
+ create: {};
447
+ update: {};
448
+ delete: false;
449
+ actions: never;
450
+ edges: {
451
+ resolved_by: { vertex: 'person'; many: true; filters: never; create: false };
452
+ resource: { vertex: 'resource'; many: true; filters: never; create: false };
453
+ winner: { vertex: 'event'; many: true; filters: never; create: false };
454
+ };
455
+ }
456
+
457
+ /**
458
+ * Type-level schema of {@link ContainingResource}: attributes, query options, writable fields, and edges.
459
+ *
460
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/containing_resource
461
+ */
462
+ export interface ContainingResourceSchema {
463
+ type: 'ContainingResource';
464
+ attributes: {};
465
+ relationships: never;
466
+ includes: never;
467
+ related: {};
468
+ where: {};
469
+ whereOps: {};
470
+ order: never;
471
+ create: {};
472
+ update: {};
473
+ delete: false;
474
+ actions: never;
475
+ edges: {};
476
+ }
477
+
478
+ /**
479
+ * Type-level schema of {@link Event}: attributes, query options, writable fields, and edges.
480
+ *
481
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/event
482
+ */
483
+ export interface EventSchema {
484
+ type: 'Event';
485
+ attributes: {
486
+ /**
487
+ * Possible values:
488
+ * - `A`: approved.
489
+ * - `P`: pending.
490
+ * - `R`: rejected.
491
+ */
492
+ approval_status: string | null;
493
+ /** UTC time at which the event was created */
494
+ created_at: string | null;
495
+ /** A rich text public-facing summary of the event */
496
+ description: string | null;
497
+ /**
498
+ * - `true` indicates the event is featured on Church Center
499
+ * - `false` indicates the event is not featured on Church Center
500
+ */
501
+ featured: boolean | null;
502
+ /** Path to where the event image is stored */
503
+ image_url: string | null;
504
+ /**
505
+ * - `true` indicates the event is published to Church Center through the link only
506
+ * - `false` indicates the event is published to Church Center normally
507
+ */
508
+ link_only: boolean | null;
509
+ /** The name of the event */
510
+ name: string | null;
511
+ /**
512
+ * Calculated by taking the sum of the `percent_approved` for all
513
+ * future `ReservationBlocks` and dividing that by the `count` of all future
514
+ * `ReservationBlocks`.
515
+ *
516
+ * If there are no future `ReservationBlocks`, returns `100`
517
+ */
518
+ percent_approved: number | null;
519
+ /**
520
+ * Calculated by taking the sum of the `percent_rejected` for all
521
+ * future `ReservationBlocks` and dividing that by the `count` of all future
522
+ * `ReservationBlocks`.
523
+ *
524
+ * If there are no future `ReservationBlocks`, returns `0`
525
+ */
526
+ percent_rejected: number | null;
527
+ /** The registration URL for the event */
528
+ registration_url: string | null;
529
+ /** A plain text public-facing summary of the event */
530
+ summary: string | null;
531
+ /** UTC time at which the event was updated */
532
+ updated_at: string | null;
533
+ /**
534
+ * - `true` indicates the event Church Center visibility is set to 'Published'
535
+ * - `false` indicates the event Church Center visibility is set to 'Hidden'
536
+ */
537
+ visible_in_church_center: boolean | null;
538
+ };
539
+ relationships: 'calendar' | 'owner';
540
+ includes: 'attachments' | 'calendar' | 'feed' | 'owner' | 'tags';
541
+ related: {
542
+ attachments: 'attachment';
543
+ calendar: 'calendar';
544
+ feed: 'feed';
545
+ owner: 'person';
546
+ tags: 'tag';
547
+ };
548
+ where: {
549
+ approval_status: string;
550
+ created_at: string | Date;
551
+ featured: boolean;
552
+ link_only: boolean;
553
+ name: string;
554
+ percent_approved: number;
555
+ percent_rejected: number;
556
+ updated_at: string | Date;
557
+ visible_in_church_center: boolean;
558
+ };
559
+ whereOps: {
560
+ created_at: 'gt' | 'gte' | 'lt' | 'lte';
561
+ updated_at: 'gt' | 'gte' | 'lt' | 'lte';
562
+ };
563
+ order: never;
564
+ create: {};
565
+ update: {};
566
+ delete: false;
567
+ actions: never;
568
+ edges: {
569
+ attachments: { vertex: 'attachment'; many: true; filters: never; create: false };
570
+ calendar: { vertex: 'calendar'; many: true; filters: never; create: false };
571
+ conflicts: { vertex: 'conflict'; many: true; filters: never; create: false };
572
+ event_connections: { vertex: 'event_connection'; many: true; filters: never; create: true };
573
+ event_instances: { vertex: 'event_instance'; many: true; filters: 'canceled' | 'future' | 'not_canceled'; create: false };
574
+ event_resource_requests: { vertex: 'event_resource_request'; many: true; filters: never; create: false };
575
+ feed: { vertex: 'feed'; many: true; filters: never; create: false };
576
+ owner: { vertex: 'person'; many: true; filters: never; create: false };
577
+ resource_bookings: { vertex: 'resource_booking'; many: true; filters: 'future'; create: false };
578
+ tags: { vertex: 'tag'; many: true; filters: never; create: false };
579
+ };
580
+ }
581
+
582
+ /**
583
+ * Type-level schema of {@link EventConnection}: attributes, query options, writable fields, and edges.
584
+ *
585
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/event_connection
586
+ */
587
+ export interface EventConnectionSchema {
588
+ type: 'EventConnection';
589
+ attributes: {
590
+ /** Unique identifier for the connected record */
591
+ connected_to_id: string | null;
592
+ /** Name of the record that the event is connected to */
593
+ connected_to_name: string | null;
594
+ /** Currently we support `signup`, `group`, `event`, and `service_type` */
595
+ connected_to_type: string | null;
596
+ /** A link to the connected record */
597
+ connected_to_url: string | null;
598
+ /** Currently we support `registrations`, `groups`, `check-ins`, and `services` */
599
+ product_name: string | null;
600
+ /**
601
+ * Whether this connection is promoted for display (only applies to Groups connections)
602
+ *
603
+ * Only available when requested with the `?fields` param
604
+ */
605
+ promoted: boolean | null;
606
+ };
607
+ relationships: 'event';
608
+ includes: never;
609
+ related: {
610
+ event: 'event';
611
+ };
612
+ where: {
613
+ connected_to_id: string;
614
+ product_name: string;
615
+ promoted: boolean;
616
+ };
617
+ whereOps: {};
618
+ order: never;
619
+ create: {
620
+ /** Unique identifier for the connected record */
621
+ connected_to_id?: string | null;
622
+ /** Name of the record that the event is connected to */
623
+ connected_to_name?: string | null;
624
+ /** Currently we support `signup`, `group`, `event`, and `service_type` */
625
+ connected_to_type?: string | null;
626
+ /** Currently we support `registrations`, `groups`, `check-ins`, and `services` */
627
+ product_name?: string | null;
628
+ /**
629
+ * Whether this connection is promoted for display (only applies to Groups connections)
630
+ *
631
+ * Only available when requested with the `?fields` param
632
+ */
633
+ promoted?: boolean | null;
634
+ };
635
+ update: {
636
+ /** Unique identifier for the connected record */
637
+ connected_to_id?: string | null;
638
+ /** Name of the record that the event is connected to */
639
+ connected_to_name?: string | null;
640
+ /** Currently we support `signup`, `group`, `event`, and `service_type` */
641
+ connected_to_type?: string | null;
642
+ /** Currently we support `registrations`, `groups`, `check-ins`, and `services` */
643
+ product_name?: string | null;
644
+ /**
645
+ * Whether this connection is promoted for display (only applies to Groups connections)
646
+ *
647
+ * Only available when requested with the `?fields` param
648
+ */
649
+ promoted?: boolean | null;
650
+ };
651
+ delete: true;
652
+ actions: never;
653
+ edges: {};
654
+ }
655
+
656
+ /**
657
+ * Type-level schema of {@link EventInstance}: attributes, query options, writable fields, and edges.
658
+ *
659
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/event_instance
660
+ */
661
+ export interface EventInstanceSchema {
662
+ type: 'EventInstance';
663
+ attributes: {
664
+ /** Indicates whether event instance lasts all day */
665
+ all_day_event: boolean | null;
666
+ /** Indicates whether the event instance is canceled */
667
+ canceled: boolean | null;
668
+ /**
669
+ * UTC time at which the event instance was canceled. `null` when it is not canceled
670
+ */
671
+ canceled_at: string | null;
672
+ /** The URL for the event on Church Center */
673
+ church_center_url: string | null;
674
+ /** Compact representation of event instance's recurrence pattern */
675
+ compact_recurrence_description: string | null;
676
+ /** UTC time at which the event instance was created */
677
+ created_at: string | null;
678
+ /**
679
+ * A rich text public-facing summary of the event
680
+ *
681
+ * Only available when requested with the `?fields` param
682
+ */
683
+ description: string | null;
684
+ /** UTC time at which the event instance ends */
685
+ ends_at: string | null;
686
+ /**
687
+ * Path to where the event image is stored
688
+ *
689
+ * Only available when requested with the `?fields` param
690
+ */
691
+ image_url: string | null;
692
+ /**
693
+ * The type of event: `standard` or `blockout`
694
+ *
695
+ * Only available when requested with the `?fields` param
696
+ */
697
+ kind: string | null;
698
+ /** Representation of where the event instance takes place */
699
+ location: string | null;
700
+ /** Name of event. Can be overridden for specific instances */
701
+ name: string | null;
702
+ /** Publicly visible end time */
703
+ published_ends_at: string | null;
704
+ /** Publicly visible start time */
705
+ published_starts_at: string | null;
706
+ /**
707
+ * For a recurring event instance, the interval of how often the event instance occurs
708
+ */
709
+ recurrence: string | null;
710
+ /** Longer description of the event instance's recurrence pattern */
711
+ recurrence_description: string | null;
712
+ /** UTC time at which the event instance starts */
713
+ starts_at: string | null;
714
+ /** UTC time at which the event instance was updated */
715
+ updated_at: string | null;
716
+ };
717
+ relationships: 'event';
718
+ includes: 'event' | 'event_times' | 'resource_bookings' | 'tags';
719
+ related: {
720
+ event: 'event';
721
+ event_times: 'event_time';
722
+ resource_bookings: 'resource_booking';
723
+ tags: 'tag';
724
+ };
725
+ where: {
726
+ created_at: string | Date;
727
+ ends_at: string | Date;
728
+ kind: string;
729
+ starts_at: string | Date;
730
+ updated_at: string | Date;
731
+ };
732
+ whereOps: {
733
+ created_at: 'gt' | 'gte' | 'lt' | 'lte';
734
+ ends_at: 'gt' | 'gte' | 'lt' | 'lte';
735
+ starts_at: 'gt' | 'gte' | 'lt' | 'lte';
736
+ updated_at: 'gt' | 'gte' | 'lt' | 'lte';
737
+ };
738
+ order: 'created_at' | 'ends_at' | 'starts_at' | 'updated_at';
739
+ create: {};
740
+ update: {};
741
+ delete: false;
742
+ actions: never;
743
+ edges: {
744
+ event: { vertex: 'event'; many: true; filters: never; create: false };
745
+ event_times: { vertex: 'event_time'; many: true; filters: never; create: false };
746
+ resource_bookings: { vertex: 'resource_booking'; many: true; filters: 'future' | 'resources' | 'rooms'; create: false };
747
+ tags: { vertex: 'tag'; many: true; filters: never; create: false };
748
+ };
749
+ }
750
+
751
+ /**
752
+ * Type-level schema of {@link EventResourceAnswer}: attributes, query options, writable fields, and edges.
753
+ *
754
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/event_resource_answer
755
+ */
756
+ export interface EventResourceAnswerSchema {
757
+ type: 'EventResourceAnswer';
758
+ attributes: {
759
+ /** The answer formatted for display */
760
+ answer: Record<string, unknown> | null;
761
+ created_at: string | null;
762
+ /** Only available when requested with the `?fields` param */
763
+ db_answer: string | null;
764
+ /** Question details as of when it was answered */
765
+ question: Record<string, unknown> | null;
766
+ updated_at: string | null;
767
+ };
768
+ relationships: 'created_by' | 'event_resource_request' | 'resource_question' | 'updated_by';
769
+ includes: never;
770
+ related: {
771
+ created_by: 'person';
772
+ event_resource_request: 'event_resource_request';
773
+ resource_question: 'resource_question';
774
+ updated_by: 'person';
775
+ };
776
+ where: {};
777
+ whereOps: {};
778
+ order: never;
779
+ create: {};
780
+ update: {};
781
+ delete: false;
782
+ actions: never;
783
+ edges: {};
784
+ }
785
+
786
+ /**
787
+ * Type-level schema of {@link EventResourceRequest}: attributes, query options, writable fields, and edges.
788
+ *
789
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/event_resource_request
790
+ */
791
+ export interface EventResourceRequestSchema {
792
+ type: 'EventResourceRequest';
793
+ attributes: {
794
+ /** Whether or not an email has been sent to request approval */
795
+ approval_sent: boolean | null;
796
+ /**
797
+ * Possible values:
798
+ * - `A`: approved
799
+ * - `P`: pending
800
+ * - `R`: rejected
801
+ */
802
+ approval_status: string | null;
803
+ /** UTC time at which request was created */
804
+ created_at: string | null;
805
+ /** Additional information about the room or resource request */
806
+ notes: string | null;
807
+ /** How many of the rooms or resources are being requested */
808
+ quantity: number | null;
809
+ /** UTC time at which request was updated */
810
+ updated_at: string | null;
811
+ /** Whether this resource request is visible on kiosks */
812
+ visible_on_kiosks: boolean | null;
813
+ };
814
+ relationships:
815
+ | 'created_by'
816
+ | 'event'
817
+ | 'event_resource_request'
818
+ | 'resource'
819
+ | 'room_setup'
820
+ | 'updated_by';
821
+ includes: 'created_by' | 'event' | 'resource' | 'room_setup' | 'updated_by';
822
+ related: {
823
+ created_by: 'person';
824
+ event: 'event';
825
+ event_resource_request: 'event_resource_request';
826
+ resource: 'resource';
827
+ room_setup: 'room_setup';
828
+ updated_by: 'person';
829
+ };
830
+ where: {
831
+ approval_sent: boolean;
832
+ approval_status: string;
833
+ created_at: string | Date;
834
+ updated_at: string | Date;
835
+ };
836
+ whereOps: {
837
+ created_at: 'gt' | 'gte' | 'lt' | 'lte';
838
+ updated_at: 'gt' | 'gte' | 'lt' | 'lte';
839
+ };
840
+ order: never;
841
+ create: {};
842
+ update: {};
843
+ delete: false;
844
+ actions: never;
845
+ edges: {
846
+ answers: { vertex: 'event_resource_answer'; many: true; filters: never; create: false };
847
+ created_by: { vertex: 'person'; many: true; filters: never; create: false };
848
+ event: { vertex: 'event'; many: true; filters: never; create: false };
849
+ resource: { vertex: 'resource'; many: true; filters: never; create: false };
850
+ resource_bookings: { vertex: 'resource_booking'; many: true; filters:
851
+ | 'approved'
852
+ | 'approved_conflict'
853
+ | 'approved_pending'
854
+ | 'approved_pending_conflict'
855
+ | 'approved_pending_rejected'
856
+ | 'approved_pending_rejected_conflict'
857
+ | 'approved_rejected'
858
+ | 'approved_rejected_conflict'
859
+ | 'conflict'
860
+ | 'future'
861
+ | 'pending'
862
+ | 'pending_conflict'
863
+ | 'pending_rejected'
864
+ | 'pending_rejected_conflict'
865
+ | 'rejected'
866
+ | 'rejected_conflict'; create: false };
867
+ room_setup: { vertex: 'room_setup'; many: true; filters: never; create: false };
868
+ updated_by: { vertex: 'person'; many: true; filters: never; create: false };
869
+ };
870
+ }
871
+
872
+ /**
873
+ * Type-level schema of {@link EventTime}: attributes, query options, writable fields, and edges.
874
+ *
875
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/event_time
876
+ */
877
+ export interface EventTimeSchema {
878
+ type: 'EventTime';
879
+ attributes: {
880
+ /** UTC time at which the event time ends */
881
+ ends_at: string | null;
882
+ /** Name of the event time */
883
+ name: string | null;
884
+ /** UTC time at which the event time starts */
885
+ starts_at: string | null;
886
+ /** Set to `true` if the time is visible on kiosk */
887
+ visible_on_kiosks: boolean | null;
888
+ /** Set to `true` if the time is visible on widget or iCal */
889
+ visible_on_widget_and_ical: boolean | null;
890
+ };
891
+ relationships: 'event';
892
+ includes: 'event';
893
+ related: {
894
+ event: 'event';
895
+ };
896
+ where: {
897
+ ends_at: string | Date;
898
+ name: string;
899
+ starts_at: string | Date;
900
+ visible_on_kiosks: boolean;
901
+ visible_on_widget_and_ical: boolean;
902
+ };
903
+ whereOps: {
904
+ ends_at: 'gt' | 'gte' | 'lt' | 'lte';
905
+ starts_at: 'gt' | 'gte' | 'lt' | 'lte';
906
+ };
907
+ order: 'ends_at' | 'starts_at';
908
+ create: {};
909
+ update: {};
910
+ delete: false;
911
+ actions: never;
912
+ edges: {
913
+ event: { vertex: 'event'; many: true; filters: never; create: false };
914
+ };
915
+ }
916
+
917
+ /**
918
+ * Type-level schema of {@link Feed}: attributes, query options, writable fields, and edges.
919
+ *
920
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/feed
921
+ */
922
+ export interface FeedSchema {
923
+ type: 'Feed';
924
+ attributes: {
925
+ can_delete: boolean | null;
926
+ /** Possible values: `hidden` or `published` */
927
+ default_church_center_visibility: string | null;
928
+ deleting: boolean | null;
929
+ /** Possible values: `registrations`, `groups`, `ical`, or `form` */
930
+ feed_type: string | null;
931
+ imported_at: string | null;
932
+ name: string | null;
933
+ /** Only available when requested with the `?fields` param */
934
+ prefix_event_names: boolean | null;
935
+ source_id: string | null;
936
+ /** Only available when requested with the `?fields` param */
937
+ sync_campus_tags: boolean | null;
938
+ };
939
+ relationships: 'default_calendar' | 'event_owner';
940
+ includes: never;
941
+ related: {
942
+ default_calendar: 'calendar';
943
+ event_owner: 'person';
944
+ };
945
+ where: {
946
+ feed_type: string;
947
+ source_id: string;
948
+ };
949
+ whereOps: {};
950
+ order: 'name';
951
+ create: {};
952
+ update: {};
953
+ delete: false;
954
+ actions: never;
955
+ edges: {};
956
+ }
957
+
958
+ /**
959
+ * Type-level schema of {@link JobStatus}: attributes, query options, writable fields, and edges.
960
+ *
961
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/job_status
962
+ */
963
+ export interface JobStatusSchema {
964
+ type: 'JobStatus';
965
+ attributes: {
966
+ errors: Record<string, unknown> | null;
967
+ message: string | null;
968
+ retries: number | null;
969
+ started_at: string | null;
970
+ status: string | null;
971
+ };
972
+ relationships: never;
973
+ includes: never;
974
+ related: {};
975
+ where: {};
976
+ whereOps: {};
977
+ order: never;
978
+ create: {};
979
+ update: {};
980
+ delete: false;
981
+ actions: never;
982
+ edges: {};
983
+ }
984
+
985
+ /**
986
+ * Type-level schema of {@link Organization}: attributes, query options, writable fields, and edges.
987
+ *
988
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/organization
989
+ */
990
+ export interface OrganizationSchema {
991
+ type: 'Organization';
992
+ attributes: {
993
+ /** The day of the week the calendar starts on */
994
+ calendar_starts_on: string | null;
995
+ /**
996
+ * Possible values:
997
+ * - `%d/%m/%Y`: indicates date/month/year formatting
998
+ * - `%m/%d/%Y`: indicates month/date/year formatting
999
+ */
1000
+ date_format: string | null;
1001
+ /** The name of the organization */
1002
+ name: string | null;
1003
+ /** Only available when requested with the `?fields` param */
1004
+ onboarding: boolean | null;
1005
+ /** The time zone of the organization */
1006
+ time_zone: string | null;
1007
+ /**
1008
+ * - `true` indicates hours for times will use a 24-hour clock
1009
+ * - `false` indicates hours for times will use a 12-hour clock
1010
+ */
1011
+ twenty_four_hour_time: boolean | null;
1012
+ };
1013
+ relationships: never;
1014
+ includes: never;
1015
+ related: {};
1016
+ where: {};
1017
+ whereOps: {};
1018
+ order: never;
1019
+ create: {};
1020
+ update: {};
1021
+ delete: false;
1022
+ actions: never;
1023
+ edges: {};
1024
+ }
1025
+
1026
+ /**
1027
+ * Type-level schema of {@link Person}: attributes, query options, writable fields, and edges.
1028
+ *
1029
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/person
1030
+ */
1031
+ export interface PersonSchema {
1032
+ type: 'Person';
1033
+ attributes: {
1034
+ /** Path to where the avatar image is stored */
1035
+ avatar_url: string | null;
1036
+ /** Indicates whether the person can edit other people */
1037
+ can_edit_people: boolean | null;
1038
+ /** Indicates whether the person can edit resources */
1039
+ can_edit_resources: boolean | null;
1040
+ /** Indicates whether the person can edit rooms */
1041
+ can_edit_rooms: boolean | null;
1042
+ /** Indicates whether the person is a child */
1043
+ child: boolean | null;
1044
+ /**
1045
+ * An object containing the person's contact data.
1046
+ *
1047
+ * This can include an array of `email_addresses`, `addresses` and `phone_numbers`
1048
+ */
1049
+ contact_data: string | null;
1050
+ /** UTC time at which the person was created */
1051
+ created_at: string | null;
1052
+ /**
1053
+ * Indicates whether the person is an Event Administrator, and therefore has access to every calendar
1054
+ *
1055
+ *
1056
+ * Only available when requested with the `?fields` param
1057
+ */
1058
+ event_administrator: boolean | null;
1059
+ /** Event permissions for the person */
1060
+ event_permissions_type: string | null;
1061
+ /** The person's first name */
1062
+ first_name: string | null;
1063
+ /** `M` indicates male, `F` indicates female */
1064
+ gender: string | null;
1065
+ /** Indicates whether the person has access to Calendar */
1066
+ has_access: boolean | null;
1067
+ /**
1068
+ * Indicates whether the person has full (not limited, event-level-only) access to at least one calendar
1069
+ *
1070
+ *
1071
+ * Only available when requested with the `?fields` param
1072
+ */
1073
+ has_full_access_to_any_calendar: boolean | null;
1074
+ /** The person's last name */
1075
+ last_name: string | null;
1076
+ /**
1077
+ * Indicates whether the person is a member of at least one approval group
1078
+ *
1079
+ * Only available when requested with the `?fields` param
1080
+ */
1081
+ member_of_approval_groups: boolean | null;
1082
+ /** The person's middle name */
1083
+ middle_name: string | null;
1084
+ /** The person's first name, last name, and name suffix */
1085
+ name: string | null;
1086
+ /**
1087
+ * Possible values:
1088
+ * - `Mr.`
1089
+ * - `Mrs.`
1090
+ * - `Ms.`
1091
+ * - `Miss`
1092
+ * - `Dr.`
1093
+ * - `Rev.`
1094
+ */
1095
+ name_prefix: string | null;
1096
+ /**
1097
+ * Possible values:
1098
+ * - `Jr.`
1099
+ * - `Sr.`
1100
+ * - `Ph.D.`
1101
+ * - `II`
1102
+ * - `III`
1103
+ */
1104
+ name_suffix: string | null;
1105
+ /**
1106
+ * If the person is a member of an approval group, the number of EventResourceRequests needing resolution.
1107
+ *
1108
+ * If `resolves_conflicts` is `true`, the count will also include the number of Conflicts needing resolution.
1109
+ */
1110
+ pending_request_count: number | null;
1111
+ /** People permissions for the person */
1112
+ people_permissions_type: string | null;
1113
+ /** Integer that corresponds to the person's permissions in Calendar */
1114
+ permissions: number | null;
1115
+ /** Indicates whether the person is able to resolve Conflicts */
1116
+ resolves_conflicts: boolean | null;
1117
+ /** Resource permissions for the person */
1118
+ resources_permissions_type: string | null;
1119
+ /** Room permissions for the person */
1120
+ room_permissions_type: string | null;
1121
+ /** Indicates whether the person is a Organization Administrator */
1122
+ site_administrator: boolean | null;
1123
+ /**
1124
+ * Possible values:
1125
+ * - `active`: The person is marked "active" in People
1126
+ * - `inactive`: The person is marked "inactive" in People
1127
+ *
1128
+ *
1129
+ * Possible values: `active`, `pending`, or `inactive`
1130
+ */
1131
+ status: string | null;
1132
+ /** UTC time at which the person was updated */
1133
+ updated_at: string | null;
1134
+ };
1135
+ relationships: never;
1136
+ includes: 'organization';
1137
+ related: {
1138
+ organization: 'organization';
1139
+ };
1140
+ where: {
1141
+ created_at: string | Date;
1142
+ first_name: string;
1143
+ last_name: string;
1144
+ middle_name: string;
1145
+ updated_at: string | Date;
1146
+ };
1147
+ whereOps: {
1148
+ created_at: 'gt' | 'gte' | 'lt' | 'lte';
1149
+ updated_at: 'gt' | 'gte' | 'lt' | 'lte';
1150
+ };
1151
+ order: 'created_at' | 'first_name' | 'last_name' | 'resolves_conflicts' | 'updated_at';
1152
+ create: {};
1153
+ update: {};
1154
+ delete: false;
1155
+ actions: never;
1156
+ edges: {
1157
+ event_resource_requests: { vertex: 'event_resource_request'; many: true; filters:
1158
+ | 'awaiting_response'
1159
+ | 'future'
1160
+ | 'not_in_conflict'
1161
+ | 'not_overbooked'
1162
+ | 'overbooked'; create: false };
1163
+ organization: { vertex: 'organization'; many: true; filters: never; create: false };
1164
+ };
1165
+ }
1166
+
1167
+ /**
1168
+ * Type-level schema of {@link ReportTemplate}: attributes, query options, writable fields, and edges.
1169
+ *
1170
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/report_template
1171
+ */
1172
+ export interface ReportTemplateSchema {
1173
+ type: 'ReportTemplate';
1174
+ attributes: {
1175
+ /** The contents of the report template */
1176
+ body: string | null;
1177
+ /** UTC time at which the report was created */
1178
+ created_at: string | null;
1179
+ /** A summarization of the report */
1180
+ description: string | null;
1181
+ /** The title of the report */
1182
+ title: string | null;
1183
+ /** UTC time at which the report was updated */
1184
+ updated_at: string | null;
1185
+ };
1186
+ relationships: never;
1187
+ includes: never;
1188
+ related: {};
1189
+ where: {};
1190
+ whereOps: {};
1191
+ order: never;
1192
+ create: {
1193
+ /** The contents of the report template */
1194
+ body?: string | null;
1195
+ /** A summarization of the report */
1196
+ description?: string | null;
1197
+ /** The title of the report */
1198
+ title?: string | null;
1199
+ };
1200
+ update: {
1201
+ /** The contents of the report template */
1202
+ body?: string | null;
1203
+ /** A summarization of the report */
1204
+ description?: string | null;
1205
+ /** The title of the report */
1206
+ title?: string | null;
1207
+ };
1208
+ delete: true;
1209
+ actions: never;
1210
+ edges: {};
1211
+ }
1212
+
1213
+ /**
1214
+ * Type-level schema of {@link RequiredApproval}: attributes, query options, writable fields, and edges.
1215
+ *
1216
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/required_approval
1217
+ */
1218
+ export interface RequiredApprovalSchema {
1219
+ type: 'RequiredApproval';
1220
+ attributes: {};
1221
+ relationships: never;
1222
+ includes: 'resource';
1223
+ related: {
1224
+ resource: 'resource';
1225
+ };
1226
+ where: {};
1227
+ whereOps: {};
1228
+ order: never;
1229
+ create: {};
1230
+ update: {};
1231
+ delete: false;
1232
+ actions: never;
1233
+ edges: {
1234
+ resource: { vertex: 'resource'; many: true; filters: never; create: false };
1235
+ };
1236
+ }
1237
+
1238
+ /**
1239
+ * Type-level schema of {@link Resource}: attributes, query options, writable fields, and edges.
1240
+ *
1241
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/resource
1242
+ */
1243
+ export interface ResourceSchema {
1244
+ type: 'Resource';
1245
+ attributes: {
1246
+ /** UTC time at which the room or resource was created */
1247
+ created_at: string | null;
1248
+ /** Description of the room or resource */
1249
+ description: string | null;
1250
+ /** UTC time at which the resource expires */
1251
+ expires_at: string | null;
1252
+ /** Where the resource is normally kept */
1253
+ home_location: string | null;
1254
+ /** Path to where resource image is stored */
1255
+ image: string | null;
1256
+ /** The type of resource, can either be `Room` or `Resource` */
1257
+ kind: string | null;
1258
+ /** The name of the room or resource */
1259
+ name: string | null;
1260
+ /**
1261
+ * A string representing the location of the resource if it is nested within a folder.
1262
+ *
1263
+ * Each parent folder is separated by `/`
1264
+ */
1265
+ path_name: string | null;
1266
+ /** The quantity of the resource */
1267
+ quantity: number | null;
1268
+ /** The serial number of the resource */
1269
+ serial_number: string | null;
1270
+ /** UTC time at which the room or resource was updated */
1271
+ updated_at: string | null;
1272
+ };
1273
+ relationships: never;
1274
+ includes:
1275
+ | 'resource_approval_groups'
1276
+ | 'resource_folder'
1277
+ | 'resource_questions'
1278
+ | 'room_setups';
1279
+ related: {
1280
+ resource_approval_groups: 'resource_approval_group';
1281
+ resource_folder: 'resource_folder';
1282
+ resource_questions: 'resource_question';
1283
+ room_setups: 'room_setup';
1284
+ };
1285
+ where: {
1286
+ created_at: string | Date;
1287
+ id: string;
1288
+ kind: string;
1289
+ name: string;
1290
+ path_name: string;
1291
+ serial_number: string;
1292
+ updated_at: string | Date;
1293
+ };
1294
+ whereOps: {
1295
+ created_at: 'gt' | 'gte' | 'lt' | 'lte';
1296
+ updated_at: 'gt' | 'gte' | 'lt' | 'lte';
1297
+ };
1298
+ order: 'created_at' | 'expires_at' | 'name' | 'updated_at';
1299
+ create: {
1300
+ /** Description of the room or resource */
1301
+ description?: string | null;
1302
+ /** UTC time at which the resource expires */
1303
+ expires_at?: string | null;
1304
+ /** Where the resource is normally kept */
1305
+ home_location?: string | null;
1306
+ /** The type of resource, can either be `Room` or `Resource` */
1307
+ kind?: string | null;
1308
+ /** The name of the room or resource */
1309
+ name?: string | null;
1310
+ /** The quantity of the resource */
1311
+ quantity?: number | null;
1312
+ resource_approval_group_ids?: string[];
1313
+ resource_folder_id?: string;
1314
+ room_setup_ids?: string[];
1315
+ /** The serial number of the resource */
1316
+ serial_number?: string | null;
1317
+ };
1318
+ update: {
1319
+ /** Description of the room or resource */
1320
+ description?: string | null;
1321
+ /** UTC time at which the resource expires */
1322
+ expires_at?: string | null;
1323
+ /** Where the resource is normally kept */
1324
+ home_location?: string | null;
1325
+ /** The name of the room or resource */
1326
+ name?: string | null;
1327
+ /** The quantity of the resource */
1328
+ quantity?: number | null;
1329
+ resource_approval_group_ids?: string[];
1330
+ resource_folder_id?: string;
1331
+ /** The serial number of the resource */
1332
+ serial_number?: string | null;
1333
+ };
1334
+ delete: true;
1335
+ actions: never;
1336
+ edges: {
1337
+ conflicts: { vertex: 'conflict'; many: true; filters: never; create: false };
1338
+ event_resource_requests: { vertex: 'event_resource_request'; many: true; filters: never; create: false };
1339
+ required_approvals: { vertex: 'required_approval'; many: true; filters: never; create: false };
1340
+ resource_approval_groups: { vertex: 'resource_approval_group'; many: true; filters: never; create: false };
1341
+ resource_bookings: { vertex: 'resource_booking'; many: true; filters:
1342
+ | 'approved'
1343
+ | 'approved_conflict'
1344
+ | 'approved_pending'
1345
+ | 'approved_pending_conflict'
1346
+ | 'approved_pending_rejected'
1347
+ | 'approved_pending_rejected_conflict'
1348
+ | 'approved_rejected'
1349
+ | 'approved_rejected_conflict'
1350
+ | 'conflict'
1351
+ | 'future'
1352
+ | 'pending'
1353
+ | 'pending_conflict'
1354
+ | 'pending_rejected'
1355
+ | 'pending_rejected_conflict'
1356
+ | 'rejected'
1357
+ | 'rejected_conflict'; create: false };
1358
+ resource_folder: { vertex: 'resource_folder'; many: true; filters: never; create: false };
1359
+ resource_questions: { vertex: 'resource_question'; many: true; filters: never; create: true };
1360
+ room_setups: { vertex: 'room_setup'; many: true; filters: never; create: false };
1361
+ };
1362
+ }
1363
+
1364
+ /**
1365
+ * Type-level schema of {@link ResourceApprovalGroup}: attributes, query options, writable fields, and edges.
1366
+ *
1367
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/resource_approval_group
1368
+ */
1369
+ export interface ResourceApprovalGroupSchema {
1370
+ type: 'ResourceApprovalGroup';
1371
+ attributes: {
1372
+ /**
1373
+ * The number of calendars that require approval from the group
1374
+ *
1375
+ * Only available when requested with the `?fields` param
1376
+ */
1377
+ calendar_count: number | null;
1378
+ /** UTC time at which the approval group was created */
1379
+ created_at: string | null;
1380
+ /** Only available when requested with the `?fields` param */
1381
+ form_count: number | null;
1382
+ /** Name of the approval group */
1383
+ name: string | null;
1384
+ /**
1385
+ * The number of people in the approval group
1386
+ *
1387
+ * Only available when requested with the `?fields` param
1388
+ */
1389
+ person_count: number | null;
1390
+ /**
1391
+ * The number of resources in the approval group
1392
+ *
1393
+ * Only available when requested with the `?fields` param
1394
+ */
1395
+ resource_count: number | null;
1396
+ /**
1397
+ * The number of rooms in the approval group
1398
+ *
1399
+ * Only available when requested with the `?fields` param
1400
+ */
1401
+ room_count: number | null;
1402
+ /** UTC time at which the approval group was updated */
1403
+ updated_at: string | null;
1404
+ };
1405
+ relationships: never;
1406
+ includes: 'calendars' | 'people' | 'resources';
1407
+ related: {
1408
+ calendars: 'calendar';
1409
+ people: 'person';
1410
+ resources: 'resource';
1411
+ };
1412
+ where: {
1413
+ created_at: string | Date;
1414
+ id: string;
1415
+ name: string;
1416
+ updated_at: string | Date;
1417
+ };
1418
+ whereOps: {
1419
+ created_at: 'gt' | 'gte' | 'lt' | 'lte';
1420
+ updated_at: 'gt' | 'gte' | 'lt' | 'lte';
1421
+ };
1422
+ order: 'created_at' | 'name' | 'updated_at';
1423
+ create: {};
1424
+ update: {};
1425
+ delete: false;
1426
+ actions: never;
1427
+ edges: {
1428
+ calendars: { vertex: 'calendar'; many: true; filters: never; create: false };
1429
+ event_resource_requests: { vertex: 'event_resource_request'; many: true; filters:
1430
+ | 'awaiting_response'
1431
+ | 'future'
1432
+ | 'not_in_conflict'
1433
+ | 'not_overbooked'
1434
+ | 'overbooked'; create: false };
1435
+ people: { vertex: 'person'; many: true; filters: never; create: false };
1436
+ required_approvals: { vertex: 'required_approval'; many: true; filters: 'resources' | 'rooms'; create: false };
1437
+ resources: { vertex: 'resource'; many: true; filters: 'resources' | 'rooms'; create: false };
1438
+ };
1439
+ }
1440
+
1441
+ /**
1442
+ * Type-level schema of {@link ResourceBooking}: attributes, query options, writable fields, and edges.
1443
+ *
1444
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/resource_booking
1445
+ */
1446
+ export interface ResourceBookingSchema {
1447
+ type: 'ResourceBooking';
1448
+ attributes: {
1449
+ /** UTC time at which the booking was created */
1450
+ created_at: string | null;
1451
+ /** UTC time at which usage of the booked room or resource ends */
1452
+ ends_at: string | null;
1453
+ /** The quantity of the rooms or resources booked */
1454
+ quantity: number | null;
1455
+ /** UTC time at which usage of the booked room or resource starts */
1456
+ starts_at: string | null;
1457
+ /** UTC time at which the booking was updated */
1458
+ updated_at: string | null;
1459
+ };
1460
+ relationships: 'event' | 'event_instance' | 'resource';
1461
+ includes: 'event_resource_request' | 'resource';
1462
+ related: {
1463
+ event: 'event';
1464
+ event_instance: 'event_instance';
1465
+ event_resource_request: 'event_resource_request';
1466
+ resource: 'resource';
1467
+ };
1468
+ where: {
1469
+ created_at: string | Date;
1470
+ ends_at: string | Date;
1471
+ starts_at: string | Date;
1472
+ updated_at: string | Date;
1473
+ };
1474
+ whereOps: {
1475
+ created_at: 'gt' | 'gte' | 'lt' | 'lte';
1476
+ ends_at: 'gt' | 'gte' | 'lt' | 'lte';
1477
+ starts_at: 'gt' | 'gte' | 'lt' | 'lte';
1478
+ updated_at: 'gt' | 'gte' | 'lt' | 'lte';
1479
+ };
1480
+ order: 'created_at' | 'ends_at' | 'starts_at' | 'updated_at';
1481
+ create: {};
1482
+ update: {};
1483
+ delete: false;
1484
+ actions: never;
1485
+ edges: {
1486
+ event_resource_request: { vertex: 'event_resource_request'; many: true; filters: never; create: false };
1487
+ resource: { vertex: 'resource'; many: true; filters: never; create: false };
1488
+ };
1489
+ }
1490
+
1491
+ /**
1492
+ * Type-level schema of {@link ResourceFolder}: attributes, query options, writable fields, and edges.
1493
+ *
1494
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/resource_folder
1495
+ */
1496
+ export interface ResourceFolderSchema {
1497
+ type: 'ResourceFolder';
1498
+ attributes: {
1499
+ ancestry: string | null;
1500
+ /** UTC time at which the folder was created */
1501
+ created_at: string | null;
1502
+ /** The type of folder, can either be `Room` or `Resource` */
1503
+ kind: string | null;
1504
+ /** The folder name */
1505
+ name: string | null;
1506
+ /**
1507
+ * A string representing the location of the folder if it is nested.
1508
+ *
1509
+ * Each parent folder is separated by `/`
1510
+ */
1511
+ path_name: string | null;
1512
+ /** UTC time at which the folder was updated */
1513
+ updated_at: string | null;
1514
+ };
1515
+ relationships: never;
1516
+ includes: 'resources';
1517
+ related: {
1518
+ resources: 'resource';
1519
+ };
1520
+ where: {
1521
+ ancestry: string;
1522
+ created_at: string | Date;
1523
+ name: string;
1524
+ path_name: string;
1525
+ updated_at: string | Date;
1526
+ };
1527
+ whereOps: {
1528
+ created_at: 'gt' | 'gte' | 'lt' | 'lte';
1529
+ updated_at: 'gt' | 'gte' | 'lt' | 'lte';
1530
+ };
1531
+ order: 'ancestry' | 'created_at' | 'name' | 'updated_at';
1532
+ create: {
1533
+ /** The type of folder, can either be `Room` or `Resource` */
1534
+ kind?: string | null;
1535
+ /** The folder name */
1536
+ name?: string | null;
1537
+ resource_folder_id?: string;
1538
+ };
1539
+ update: {
1540
+ /** The folder name */
1541
+ name?: string | null;
1542
+ resource_folder_id?: string;
1543
+ };
1544
+ delete: true;
1545
+ actions: never;
1546
+ edges: {
1547
+ resources: { vertex: 'resource'; many: true; filters: never; create: false };
1548
+ };
1549
+ }
1550
+
1551
+ /**
1552
+ * Type-level schema of {@link ResourceQuestion}: attributes, query options, writable fields, and edges.
1553
+ *
1554
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/resource_question
1555
+ */
1556
+ export interface ResourceQuestionSchema {
1557
+ type: 'ResourceQuestion';
1558
+ attributes: {
1559
+ /**
1560
+ * If `kind` is `dropdown`, represents a string of dropdown choices
1561
+ * separated by the `|` character
1562
+ */
1563
+ choices: string | null;
1564
+ /** UTC time at which the question was created */
1565
+ created_at: string | null;
1566
+ /** Optional description of the question */
1567
+ description: string | null;
1568
+ /**
1569
+ * Possible values:
1570
+ * - `dropdown`: predefined list of choices as an answer
1571
+ * - `paragraph`: expected answer is a paragraph
1572
+ * - `text`: expected answer is a sentence
1573
+ * - `yesno`: expected answer is 'Yes' or 'No'
1574
+ *
1575
+ * - `section_header`: used to separate questions in the UI, no expected answer
1576
+ */
1577
+ kind: string | null;
1578
+ /**
1579
+ * If `kind` is `dropdown`,
1580
+ * `true` indicates that more than one selection is permitted
1581
+ */
1582
+ multiple_select: boolean | null;
1583
+ /**
1584
+ * - `true` indicates answering the question is not required when booking
1585
+ * - `false` indicates answering the question is required when booking
1586
+ */
1587
+ optional: boolean | null;
1588
+ /** Position of question in list in the UI */
1589
+ position: number | null;
1590
+ /** The question to be answered */
1591
+ question: string | null;
1592
+ /** UTC time at which the question was updated */
1593
+ updated_at: string | null;
1594
+ };
1595
+ relationships: 'resource';
1596
+ includes: never;
1597
+ related: {
1598
+ resource: 'resource';
1599
+ };
1600
+ where: {
1601
+ created_at: string | Date;
1602
+ kind: string;
1603
+ updated_at: string | Date;
1604
+ };
1605
+ whereOps: {
1606
+ created_at: 'gt' | 'gte' | 'lt' | 'lte';
1607
+ updated_at: 'gt' | 'gte' | 'lt' | 'lte';
1608
+ };
1609
+ order: never;
1610
+ create: {
1611
+ /**
1612
+ * If `kind` is `dropdown`, represents a string of dropdown choices
1613
+ * separated by the `|` character
1614
+ */
1615
+ choices?: string | null;
1616
+ /** Optional description of the question */
1617
+ description?: string | null;
1618
+ /**
1619
+ * Possible values:
1620
+ * - `dropdown`: predefined list of choices as an answer
1621
+ * - `paragraph`: expected answer is a paragraph
1622
+ * - `text`: expected answer is a sentence
1623
+ * - `yesno`: expected answer is 'Yes' or 'No'
1624
+ *
1625
+ * - `section_header`: used to separate questions in the UI, no expected answer
1626
+ */
1627
+ kind?: string | null;
1628
+ /**
1629
+ * If `kind` is `dropdown`,
1630
+ * `true` indicates that more than one selection is permitted
1631
+ */
1632
+ multiple_select?: boolean | null;
1633
+ /**
1634
+ * - `true` indicates answering the question is not required when booking
1635
+ * - `false` indicates answering the question is required when booking
1636
+ */
1637
+ optional?: boolean | null;
1638
+ /** Position of question in list in the UI */
1639
+ position?: number | null;
1640
+ /** The question to be answered */
1641
+ question?: string | null;
1642
+ };
1643
+ update: {
1644
+ /**
1645
+ * If `kind` is `dropdown`, represents a string of dropdown choices
1646
+ * separated by the `|` character
1647
+ */
1648
+ choices?: string | null;
1649
+ /** Optional description of the question */
1650
+ description?: string | null;
1651
+ /**
1652
+ * Possible values:
1653
+ * - `dropdown`: predefined list of choices as an answer
1654
+ * - `paragraph`: expected answer is a paragraph
1655
+ * - `text`: expected answer is a sentence
1656
+ * - `yesno`: expected answer is 'Yes' or 'No'
1657
+ *
1658
+ * - `section_header`: used to separate questions in the UI, no expected answer
1659
+ */
1660
+ kind?: string | null;
1661
+ /**
1662
+ * If `kind` is `dropdown`,
1663
+ * `true` indicates that more than one selection is permitted
1664
+ */
1665
+ multiple_select?: boolean | null;
1666
+ /**
1667
+ * - `true` indicates answering the question is not required when booking
1668
+ * - `false` indicates answering the question is required when booking
1669
+ */
1670
+ optional?: boolean | null;
1671
+ /** Position of question in list in the UI */
1672
+ position?: number | null;
1673
+ /** The question to be answered */
1674
+ question?: string | null;
1675
+ };
1676
+ delete: true;
1677
+ actions: never;
1678
+ edges: {};
1679
+ }
1680
+
1681
+ /**
1682
+ * Type-level schema of {@link ResourceSuggestion}: attributes, query options, writable fields, and edges.
1683
+ *
1684
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/resource_suggestion
1685
+ */
1686
+ export interface ResourceSuggestionSchema {
1687
+ type: 'ResourceSuggestion';
1688
+ attributes: {
1689
+ /** UTC time at which the suggestion was created */
1690
+ created_at: string | null;
1691
+ /** How many resources should be requested */
1692
+ quantity: number | null;
1693
+ /** UTC time at which the suggestion was updated */
1694
+ updated_at: string | null;
1695
+ };
1696
+ relationships: 'resource' | 'room_setup';
1697
+ includes: 'resource';
1698
+ related: {
1699
+ resource: 'resource';
1700
+ room_setup: 'room_setup';
1701
+ };
1702
+ where: {};
1703
+ whereOps: {};
1704
+ order: never;
1705
+ create: {};
1706
+ update: {};
1707
+ delete: false;
1708
+ actions: never;
1709
+ edges: {
1710
+ resource: { vertex: 'resource'; many: true; filters: never; create: false };
1711
+ };
1712
+ }
1713
+
1714
+ /**
1715
+ * Type-level schema of {@link RoomSetup}: attributes, query options, writable fields, and edges.
1716
+ *
1717
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/room_setup
1718
+ */
1719
+ export interface RoomSetupSchema {
1720
+ type: 'RoomSetup';
1721
+ attributes: {
1722
+ /** UTC time at which the room setup was created */
1723
+ created_at: string | null;
1724
+ /** A description of the room setup */
1725
+ description: string | null;
1726
+ /**
1727
+ * An object containing `url` and `thumbnail`.
1728
+ *
1729
+ * `url` is path to where room setup is stored.
1730
+ * `thumbnail` contains `url` path to where thumbnail is stored.
1731
+ */
1732
+ diagram: string | null;
1733
+ /** Path to where thumbnail version of room setup is stored */
1734
+ diagram_thumbnail_url: string | null;
1735
+ /** Path to where room setup is stored */
1736
+ diagram_url: string | null;
1737
+ /** The name of the room setup */
1738
+ name: string | null;
1739
+ /** UTC time at which the room setup was updated */
1740
+ updated_at: string | null;
1741
+ };
1742
+ relationships: 'containing_resource' | 'resource_suggestions' | 'room_setup';
1743
+ includes: 'containing_resource' | 'resource_suggestions';
1744
+ related: {
1745
+ containing_resource: 'resource';
1746
+ resource_suggestions: 'resource_suggestion';
1747
+ room_setup: 'room_setup';
1748
+ };
1749
+ where: {
1750
+ created_at: string | Date;
1751
+ name: string;
1752
+ updated_at: string | Date;
1753
+ };
1754
+ whereOps: {
1755
+ created_at: 'gt' | 'gte' | 'lt' | 'lte';
1756
+ updated_at: 'gt' | 'gte' | 'lt' | 'lte';
1757
+ };
1758
+ order: 'created_at' | 'name' | 'updated_at';
1759
+ create: {};
1760
+ update: {};
1761
+ delete: false;
1762
+ actions: never;
1763
+ edges: {
1764
+ containing_resource: { vertex: 'containing_resource'; many: true; filters: never; create: false };
1765
+ resource_suggestions: { vertex: 'resource_suggestion'; many: true; filters: never; create: false };
1766
+ };
1767
+ }
1768
+
1769
+ /**
1770
+ * Type-level schema of {@link Tag}: attributes, query options, writable fields, and edges.
1771
+ *
1772
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/tag
1773
+ */
1774
+ export interface TagSchema {
1775
+ type: 'Tag';
1776
+ attributes: {
1777
+ /** `true` indicates that this tag is used as a category on Church Center */
1778
+ church_center_category: boolean | null;
1779
+ /** Hex color code of the tag */
1780
+ color: string | null;
1781
+ /** UTC time at which the tag was created */
1782
+ created_at: string | null;
1783
+ /** The tag name */
1784
+ name: string | null;
1785
+ /**
1786
+ * If the tag belongs to a TagGroup,
1787
+ * position indicates place in list within TagGroup in the UI.
1788
+ *
1789
+ * If the tag does not belong to a TagGroup,
1790
+ * position indicates place in list under "Individual Tags" in the UI.
1791
+ */
1792
+ position: number | null;
1793
+ /** UTC time at which the tag was updated */
1794
+ updated_at: string | null;
1795
+ };
1796
+ relationships: never;
1797
+ includes: 'tag_group';
1798
+ related: {
1799
+ tag_group: 'tag_group';
1800
+ };
1801
+ where: {
1802
+ church_center_category: boolean;
1803
+ color: string;
1804
+ created_at: string | Date;
1805
+ id: string;
1806
+ name: string;
1807
+ position: number;
1808
+ updated_at: string | Date;
1809
+ };
1810
+ whereOps: {
1811
+ created_at: 'gt' | 'gte' | 'lt' | 'lte';
1812
+ updated_at: 'gt' | 'gte' | 'lt' | 'lte';
1813
+ };
1814
+ order: 'name' | 'position';
1815
+ create: {
1816
+ /** `true` indicates that this tag is used as a category on Church Center */
1817
+ church_center_category?: boolean | null;
1818
+ /** Hex color code of the tag */
1819
+ color?: string | null;
1820
+ events_ids?: string[];
1821
+ /** The tag name */
1822
+ name?: string | null;
1823
+ /**
1824
+ * If the tag belongs to a TagGroup,
1825
+ * position indicates place in list within TagGroup in the UI.
1826
+ *
1827
+ * If the tag does not belong to a TagGroup,
1828
+ * position indicates place in list under "Individual Tags" in the UI.
1829
+ */
1830
+ position?: number | null;
1831
+ tag_group_id?: string;
1832
+ };
1833
+ update: {
1834
+ /** `true` indicates that this tag is used as a category on Church Center */
1835
+ church_center_category?: boolean | null;
1836
+ /** Hex color code of the tag */
1837
+ color?: string | null;
1838
+ events_ids?: string[];
1839
+ /** The tag name */
1840
+ name?: string | null;
1841
+ /**
1842
+ * If the tag belongs to a TagGroup,
1843
+ * position indicates place in list within TagGroup in the UI.
1844
+ *
1845
+ * If the tag does not belong to a TagGroup,
1846
+ * position indicates place in list under "Individual Tags" in the UI.
1847
+ */
1848
+ position?: number | null;
1849
+ tag_group_id?: string;
1850
+ };
1851
+ delete: true;
1852
+ actions: never;
1853
+ edges: {
1854
+ event_instances: { vertex: 'event_instance'; many: true; filters: 'canceled' | 'not_canceled'; create: false };
1855
+ events: { vertex: 'event'; many: true; filters: never; create: false };
1856
+ tag_group: { vertex: 'tag_group'; many: true; filters: never; create: false };
1857
+ };
1858
+ }
1859
+
1860
+ /**
1861
+ * Type-level schema of {@link TagGroup}: attributes, query options, writable fields, and edges.
1862
+ *
1863
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/tag_group
1864
+ */
1865
+ export interface TagGroupSchema {
1866
+ type: 'TagGroup';
1867
+ attributes: {
1868
+ /** UTC time at which the tag group was created */
1869
+ created_at: string | null;
1870
+ /** The name of the tag group */
1871
+ name: string | null;
1872
+ /**
1873
+ * - `true` indicates tag from this tag group must be applied when creating an event
1874
+ */
1875
+ required: boolean | null;
1876
+ /** UTC time at which the tag group was updated */
1877
+ updated_at: string | null;
1878
+ };
1879
+ relationships: never;
1880
+ includes: 'events' | 'tags';
1881
+ related: {
1882
+ events: 'event';
1883
+ tags: 'tag';
1884
+ };
1885
+ where: {
1886
+ created_at: string | Date;
1887
+ name: string;
1888
+ updated_at: string | Date;
1889
+ };
1890
+ whereOps: {
1891
+ created_at: 'gt' | 'gte' | 'lt' | 'lte';
1892
+ updated_at: 'gt' | 'gte' | 'lt' | 'lte';
1893
+ };
1894
+ order: 'name';
1895
+ create: {
1896
+ /** The name of the tag group */
1897
+ name?: string | null;
1898
+ /**
1899
+ * - `true` indicates tag from this tag group must be applied when creating an event
1900
+ */
1901
+ required?: boolean | null;
1902
+ };
1903
+ update: {
1904
+ /** The name of the tag group */
1905
+ name?: string | null;
1906
+ /**
1907
+ * - `true` indicates tag from this tag group must be applied when creating an event
1908
+ */
1909
+ required?: boolean | null;
1910
+ };
1911
+ delete: true;
1912
+ actions: never;
1913
+ edges: {
1914
+ events: { vertex: 'event'; many: true; filters: never; create: false };
1915
+ tags: { vertex: 'tag'; many: true; filters: never; create: false };
1916
+ };
1917
+ }
1918
+
1919
+ /** Type-level schema of every Planning Center Calendar resource, keyed by vertex id. */
1920
+ export type CalendarSchema = {
1921
+ attachment: AttachmentSchema;
1922
+ calendar: Calendar2Schema;
1923
+ conflict: ConflictSchema;
1924
+ containing_resource: ContainingResourceSchema;
1925
+ event: EventSchema;
1926
+ event_connection: EventConnectionSchema;
1927
+ event_instance: EventInstanceSchema;
1928
+ event_resource_answer: EventResourceAnswerSchema;
1929
+ event_resource_request: EventResourceRequestSchema;
1930
+ event_time: EventTimeSchema;
1931
+ feed: FeedSchema;
1932
+ job_status: JobStatusSchema;
1933
+ organization: OrganizationSchema;
1934
+ person: PersonSchema;
1935
+ report_template: ReportTemplateSchema;
1936
+ required_approval: RequiredApprovalSchema;
1937
+ resource: ResourceSchema;
1938
+ resource_approval_group: ResourceApprovalGroupSchema;
1939
+ resource_booking: ResourceBookingSchema;
1940
+ resource_folder: ResourceFolderSchema;
1941
+ resource_question: ResourceQuestionSchema;
1942
+ resource_suggestion: ResourceSuggestionSchema;
1943
+ room_setup: RoomSetupSchema;
1944
+ tag: TagSchema;
1945
+ tag_group: TagGroupSchema;
1946
+ };
1947
+
1948
+ /** Edges available from the product root (`/calendar/v2`). */
1949
+ export type CalendarRoot = {
1950
+ attachments: { vertex: 'attachment'; many: true; filters: never; create: false };
1951
+ calendars: { vertex: 'calendar'; many: true; filters: never; create: false };
1952
+ conflicts: { vertex: 'conflict'; many: true; filters: 'future' | 'resolved' | 'unresolved'; create: false };
1953
+ event_instances: { vertex: 'event_instance'; many: true; filters:
1954
+ | 'all'
1955
+ | 'approved'
1956
+ | 'approved_conflict'
1957
+ | 'approved_pending'
1958
+ | 'approved_pending_conflict'
1959
+ | 'approved_pending_rejected'
1960
+ | 'approved_pending_rejected_conflict'
1961
+ | 'approved_rejected'
1962
+ | 'approved_rejected_conflict'
1963
+ | 'approver'
1964
+ | 'approver_subscriber'
1965
+ | 'canceled'
1966
+ | 'conflict'
1967
+ | 'event_request_approved'
1968
+ | 'event_request_approved_pending'
1969
+ | 'event_request_approved_pending_rejected'
1970
+ | 'event_request_approved_rejected'
1971
+ | 'event_request_pending'
1972
+ | 'event_request_pending_rejected'
1973
+ | 'event_request_rejected'
1974
+ | 'future'
1975
+ | 'lost'
1976
+ | 'lost_due_to_blockout'
1977
+ | 'manager'
1978
+ | 'manager_approver'
1979
+ | 'manager_approver_subscriber'
1980
+ | 'manager_subscriber'
1981
+ | 'not_canceled'
1982
+ | 'not_pending_event_requests'
1983
+ | 'owner'
1984
+ | 'owner_approver'
1985
+ | 'owner_approver_subscriber'
1986
+ | 'owner_manager'
1987
+ | 'owner_manager_approver'
1988
+ | 'owner_manager_approver_subscriber'
1989
+ | 'owner_manager_subscriber'
1990
+ | 'owner_subscriber'
1991
+ | 'pending'
1992
+ | 'pending_conflict'
1993
+ | 'pending_rejected'
1994
+ | 'pending_rejected_conflict'
1995
+ | 'rejected'
1996
+ | 'rejected_conflict'
1997
+ | 'shared'
1998
+ | 'subscriber'
1999
+ | 'unresolved'; create: false };
2000
+ event_resource_requests: { vertex: 'event_resource_request'; many: true; filters: never; create: false };
2001
+ events: { vertex: 'event'; many: true; filters: 'future'; create: false };
2002
+ feeds: { vertex: 'feed'; many: true; filters: never; create: false };
2003
+ job_statuses: { vertex: 'job_status'; many: true; filters: never; create: false };
2004
+ people: { vertex: 'person'; many: true; filters: 'active' | 'event_owners'; create: false };
2005
+ report_templates: { vertex: 'report_template'; many: true; filters: never; create: true };
2006
+ resource_approval_groups: { vertex: 'resource_approval_group'; many: true; filters: never; create: false };
2007
+ resource_bookings: { vertex: 'resource_booking'; many: true; filters:
2008
+ | 'approved'
2009
+ | 'approved_conflict'
2010
+ | 'approved_pending'
2011
+ | 'approved_pending_conflict'
2012
+ | 'approved_pending_rejected'
2013
+ | 'approved_pending_rejected_conflict'
2014
+ | 'approved_rejected'
2015
+ | 'approved_rejected_conflict'
2016
+ | 'conflict'
2017
+ | 'future'
2018
+ | 'pending'
2019
+ | 'pending_conflict'
2020
+ | 'pending_rejected'
2021
+ | 'pending_rejected_conflict'
2022
+ | 'rejected'
2023
+ | 'rejected_conflict'
2024
+ | 'resources'
2025
+ | 'rooms'; create: false };
2026
+ resource_folders: { vertex: 'resource_folder'; many: true; filters: 'resources' | 'rooms'; create: true };
2027
+ resource_questions: { vertex: 'resource_question'; many: true; filters: never; create: false };
2028
+ resources: { vertex: 'resource'; many: true; filters: 'resources' | 'rooms'; create: true };
2029
+ room_setups: { vertex: 'room_setup'; many: true; filters: 'shared_room_setups'; create: false };
2030
+ tag_groups: { vertex: 'tag_group'; many: true; filters: 'required'; create: true };
2031
+ tags: { vertex: 'tag'; many: true; filters: 'individual'; create: true };
2032
+ };
2033
+
2034
+ type AssertSchema<T extends ProductSchema> = T;
2035
+ type AssertRoot<T extends RootSchema> = T;
2036
+ type SchemaCheck = [AssertSchema<CalendarSchema>, AssertRoot<CalendarRoot>];
2037
+
2038
+ /**
2039
+ * A file or external link attached to an event.
2040
+ *
2041
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/attachment
2042
+ */
2043
+ export type Attachment = PcoResource<AttachmentSchema>;
2044
+ /**
2045
+ * Attributes of {@link Attachment}.
2046
+ *
2047
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/attachment
2048
+ */
2049
+ export type AttachmentAttributes = AttachmentSchema['attributes'];
2050
+
2051
+ /**
2052
+ * Calendars associated with an Organization.
2053
+ *
2054
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/calendar
2055
+ */
2056
+ export type Calendar2 = PcoResource<Calendar2Schema>;
2057
+ /**
2058
+ * Attributes of {@link Calendar2}.
2059
+ *
2060
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/calendar
2061
+ */
2062
+ export type Calendar2Attributes = Calendar2Schema['attributes'];
2063
+
2064
+ /**
2065
+ * A conflict between two events caused by overlapping event resource
2066
+ * requests.
2067
+ *
2068
+ * If the conflict has been resolved, `resolved_at` will be present.
2069
+ *
2070
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/conflict
2071
+ */
2072
+ export type Conflict = PcoResource<ConflictSchema>;
2073
+ /**
2074
+ * Attributes of {@link Conflict}.
2075
+ *
2076
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/conflict
2077
+ */
2078
+ export type ConflictAttributes = ConflictSchema['attributes'];
2079
+
2080
+ /**
2081
+ * The containing record for a RoomSetup. Can be a Resource or
2082
+ * an Organization
2083
+ *
2084
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/containing_resource
2085
+ */
2086
+ export type ContainingResource = PcoResource<ContainingResourceSchema>;
2087
+ /**
2088
+ * Attributes of {@link ContainingResource}.
2089
+ *
2090
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/containing_resource
2091
+ */
2092
+ export type ContainingResourceAttributes = ContainingResourceSchema['attributes'];
2093
+
2094
+ /**
2095
+ * An event.
2096
+ *
2097
+ * May contain information such as who owns
2098
+ * the event, visibility on Church Center and a public-facing summary.
2099
+ *
2100
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/event
2101
+ */
2102
+ export type Event = PcoResource<EventSchema>;
2103
+ /**
2104
+ * Attributes of {@link Event}.
2105
+ *
2106
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/event
2107
+ */
2108
+ export type EventAttributes = EventSchema['attributes'];
2109
+
2110
+ /**
2111
+ * A connection between a Calendar event and a record in another product
2112
+ *
2113
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/event_connection
2114
+ */
2115
+ export type EventConnection = PcoResource<EventConnectionSchema>;
2116
+ /**
2117
+ * Attributes of {@link EventConnection}.
2118
+ *
2119
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/event_connection
2120
+ */
2121
+ export type EventConnectionAttributes = EventConnectionSchema['attributes'];
2122
+
2123
+ /**
2124
+ * A specific occurrence of an event.
2125
+ *
2126
+ * If the event is recurring, `recurrence` will be set and
2127
+ * `recurrence_description` will provide an overview of the recurrence pattern.
2128
+ *
2129
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/event_instance
2130
+ */
2131
+ export type EventInstance = PcoResource<EventInstanceSchema>;
2132
+ /**
2133
+ * Attributes of {@link EventInstance}.
2134
+ *
2135
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/event_instance
2136
+ */
2137
+ export type EventInstanceAttributes = EventInstanceSchema['attributes'];
2138
+
2139
+ /**
2140
+ * An answer to a question in a room or resource request.
2141
+ *
2142
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/event_resource_answer
2143
+ */
2144
+ export type EventResourceAnswer = PcoResource<EventResourceAnswerSchema>;
2145
+ /**
2146
+ * Attributes of {@link EventResourceAnswer}.
2147
+ *
2148
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/event_resource_answer
2149
+ */
2150
+ export type EventResourceAnswerAttributes = EventResourceAnswerSchema['attributes'];
2151
+
2152
+ /**
2153
+ * A room or resource request for a specific event.
2154
+ *
2155
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/event_resource_request
2156
+ */
2157
+ export type EventResourceRequest = PcoResource<EventResourceRequestSchema>;
2158
+ /**
2159
+ * Attributes of {@link EventResourceRequest}.
2160
+ *
2161
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/event_resource_request
2162
+ */
2163
+ export type EventResourceRequestAttributes = EventResourceRequestSchema['attributes'];
2164
+
2165
+ /**
2166
+ * Start and end times for each event instance.
2167
+ *
2168
+ * In the Calendar UI, these are represented under the "Schedule" section and
2169
+ * may include "Setup" and "Teardown" times for the instance.
2170
+ *
2171
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/event_time
2172
+ */
2173
+ export type EventTime = PcoResource<EventTimeSchema>;
2174
+ /**
2175
+ * Attributes of {@link EventTime}.
2176
+ *
2177
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/event_time
2178
+ */
2179
+ export type EventTimeAttributes = EventTimeSchema['attributes'];
2180
+
2181
+ /**
2182
+ * A feed belonging to an organization.
2183
+ *
2184
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/feed
2185
+ */
2186
+ export type Feed = PcoResource<FeedSchema>;
2187
+ /**
2188
+ * Attributes of {@link Feed}.
2189
+ *
2190
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/feed
2191
+ */
2192
+ export type FeedAttributes = FeedSchema['attributes'];
2193
+
2194
+ /**
2195
+ * A JobStatus resource.
2196
+ *
2197
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/job_status
2198
+ */
2199
+ export type JobStatus = PcoResource<JobStatusSchema>;
2200
+ /**
2201
+ * Attributes of {@link JobStatus}.
2202
+ *
2203
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/job_status
2204
+ */
2205
+ export type JobStatusAttributes = JobStatusSchema['attributes'];
2206
+
2207
+ /**
2208
+ * An administrative structure, usually representing a single church.
2209
+ * Contains date/time formatting and time zone preferences.
2210
+ *
2211
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/organization
2212
+ */
2213
+ export type Organization = PcoResource<OrganizationSchema>;
2214
+ /**
2215
+ * Attributes of {@link Organization}.
2216
+ *
2217
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/organization
2218
+ */
2219
+ export type OrganizationAttributes = OrganizationSchema['attributes'];
2220
+
2221
+ /**
2222
+ * The people in your organization with access to Calendar.
2223
+ *
2224
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/person
2225
+ */
2226
+ export type Person = PcoResource<PersonSchema>;
2227
+ /**
2228
+ * Attributes of {@link Person}.
2229
+ *
2230
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/person
2231
+ */
2232
+ export type PersonAttributes = PersonSchema['attributes'];
2233
+
2234
+ /**
2235
+ * A template for generating a report.
2236
+ *
2237
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/report_template
2238
+ */
2239
+ export type ReportTemplate = PcoResource<ReportTemplateSchema>;
2240
+ /**
2241
+ * Attributes of {@link ReportTemplate}.
2242
+ *
2243
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/report_template
2244
+ */
2245
+ export type ReportTemplateAttributes = ReportTemplateSchema['attributes'];
2246
+
2247
+ /**
2248
+ * Represents the relationship between a Resource and a Resource Approval Group.
2249
+ *
2250
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/required_approval
2251
+ */
2252
+ export type RequiredApproval = PcoResource<RequiredApprovalSchema>;
2253
+ /**
2254
+ * Attributes of {@link RequiredApproval}.
2255
+ *
2256
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/required_approval
2257
+ */
2258
+ export type RequiredApprovalAttributes = RequiredApprovalSchema['attributes'];
2259
+
2260
+ /**
2261
+ * A room or resource that can be requested for use as part of
2262
+ * an event.
2263
+ *
2264
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/resource
2265
+ */
2266
+ export type Resource = PcoResource<ResourceSchema>;
2267
+ /**
2268
+ * Attributes of {@link Resource}.
2269
+ *
2270
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/resource
2271
+ */
2272
+ export type ResourceAttributes = ResourceSchema['attributes'];
2273
+
2274
+ /**
2275
+ * A group of people that can be attached to a room or resource
2276
+ * in order to require their approval for booking.
2277
+ *
2278
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/resource_approval_group
2279
+ */
2280
+ export type ResourceApprovalGroup = PcoResource<ResourceApprovalGroupSchema>;
2281
+ /**
2282
+ * Attributes of {@link ResourceApprovalGroup}.
2283
+ *
2284
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/resource_approval_group
2285
+ */
2286
+ export type ResourceApprovalGroupAttributes = ResourceApprovalGroupSchema['attributes'];
2287
+
2288
+ /**
2289
+ * A specific booking of a room or resource for an event instance.
2290
+ *
2291
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/resource_booking
2292
+ */
2293
+ export type ResourceBooking = PcoResource<ResourceBookingSchema>;
2294
+ /**
2295
+ * Attributes of {@link ResourceBooking}.
2296
+ *
2297
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/resource_booking
2298
+ */
2299
+ export type ResourceBookingAttributes = ResourceBookingSchema['attributes'];
2300
+
2301
+ /**
2302
+ * An organizational folder containing rooms or resources.
2303
+ *
2304
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/resource_folder
2305
+ */
2306
+ export type ResourceFolder = PcoResource<ResourceFolderSchema>;
2307
+ /**
2308
+ * Attributes of {@link ResourceFolder}.
2309
+ *
2310
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/resource_folder
2311
+ */
2312
+ export type ResourceFolderAttributes = ResourceFolderSchema['attributes'];
2313
+
2314
+ /**
2315
+ * A question to answer when requesting to book a room or resource.
2316
+ *
2317
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/resource_question
2318
+ */
2319
+ export type ResourceQuestion = PcoResource<ResourceQuestionSchema>;
2320
+ /**
2321
+ * Attributes of {@link ResourceQuestion}.
2322
+ *
2323
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/resource_question
2324
+ */
2325
+ export type ResourceQuestionAttributes = ResourceQuestionSchema['attributes'];
2326
+
2327
+ /**
2328
+ * A resource and quantity suggested by a room setup.
2329
+ *
2330
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/resource_suggestion
2331
+ */
2332
+ export type ResourceSuggestion = PcoResource<ResourceSuggestionSchema>;
2333
+ /**
2334
+ * Attributes of {@link ResourceSuggestion}.
2335
+ *
2336
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/resource_suggestion
2337
+ */
2338
+ export type ResourceSuggestionAttributes = ResourceSuggestionSchema['attributes'];
2339
+
2340
+ /**
2341
+ * A diagram and list of suggested resources useful for predefined room setups.
2342
+ *
2343
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/room_setup
2344
+ */
2345
+ export type RoomSetup = PcoResource<RoomSetupSchema>;
2346
+ /**
2347
+ * Attributes of {@link RoomSetup}.
2348
+ *
2349
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/room_setup
2350
+ */
2351
+ export type RoomSetupAttributes = RoomSetupSchema['attributes'];
2352
+
2353
+ /**
2354
+ * An organizational tag that can be applied to events.
2355
+ *
2356
+ * Applied tags can be used to filter events on the calendar or
2357
+ * filter events for reports, iCal feeds, kiosk, and the widget.
2358
+ *
2359
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/tag
2360
+ */
2361
+ export type Tag = PcoResource<TagSchema>;
2362
+ /**
2363
+ * Attributes of {@link Tag}.
2364
+ *
2365
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/tag
2366
+ */
2367
+ export type TagAttributes = TagSchema['attributes'];
2368
+
2369
+ /**
2370
+ * A grouping of tags for organizational purposes.
2371
+ *
2372
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/tag_group
2373
+ */
2374
+ export type TagGroup = PcoResource<TagGroupSchema>;
2375
+ /**
2376
+ * Attributes of {@link TagGroup}.
2377
+ *
2378
+ * @see https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/tag_group
2379
+ */
2380
+ export type TagGroupAttributes = TagGroupSchema['attributes'];