@rox-one/sdk 0.0.0-stage → 0.7.1

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 (483) hide show
  1. package/CALLS.md +82 -0
  2. package/README.md +1259 -2
  3. package/dist/chunk-AOHK5YXC.js +5585 -0
  4. package/dist/chunk-CATFKTFD.js +80 -0
  5. package/dist/chunk-FQGPXWPJ.js +1491 -0
  6. package/dist/chunk-G43PLP2U.js +1087 -0
  7. package/dist/chunk-LMJW65ML.js +836 -0
  8. package/dist/chunk-MCSQNZ4E.js +836 -0
  9. package/dist/chunk-NSJ3GKUC.js +1552 -0
  10. package/dist/chunk-OGFKJOK7.js +2068 -0
  11. package/dist/chunk-RDEJZJBZ.js +1351 -0
  12. package/dist/chunk-TMTYN2UK.js +1128 -0
  13. package/dist/chunk-V45LUJDI.js +838 -0
  14. package/dist/chunk-YRUXFEZM.js +1044 -0
  15. package/dist/chunk-ZYBAKW25.js +994 -0
  16. package/dist/generated/agent-fold/index.d.ts +4520 -0
  17. package/dist/generated/agent-fold/index.js +0 -0
  18. package/dist/generated/agent-harness/client/client.gen.d.ts +2 -0
  19. package/dist/generated/agent-harness/client/index.d.ts +10 -0
  20. package/dist/generated/agent-harness/client/types.gen.d.ts +120 -0
  21. package/dist/generated/agent-harness/client/utils.gen.d.ts +37 -0
  22. package/dist/generated/agent-harness/client.gen.d.ts +12 -0
  23. package/dist/generated/agent-harness/core/auth.gen.d.ts +25 -0
  24. package/dist/generated/agent-harness/core/bodySerializer.gen.d.ts +25 -0
  25. package/dist/generated/agent-harness/core/params.gen.d.ts +43 -0
  26. package/dist/generated/agent-harness/core/pathSerializer.gen.d.ts +33 -0
  27. package/dist/generated/agent-harness/core/queryKeySerializer.gen.d.ts +18 -0
  28. package/dist/generated/agent-harness/core/serverSentEvents.gen.d.ts +71 -0
  29. package/dist/generated/agent-harness/core/types.gen.d.ts +83 -0
  30. package/dist/generated/agent-harness/core/utils.gen.d.ts +19 -0
  31. package/dist/generated/agent-harness/index.d.ts +2 -0
  32. package/dist/generated/agent-harness/index.js +6 -0
  33. package/dist/generated/agent-harness/sdk.gen.d.ts +375 -0
  34. package/dist/generated/agent-harness/types.gen.d.ts +4725 -0
  35. package/dist/generated/agent-reviews/index.d.ts +895 -0
  36. package/dist/generated/agent-reviews/index.js +0 -0
  37. package/dist/generated/auth/client/client.gen.d.ts +2 -0
  38. package/dist/generated/auth/client/index.d.ts +10 -0
  39. package/dist/generated/auth/client/types.gen.d.ts +120 -0
  40. package/dist/generated/auth/client/utils.gen.d.ts +37 -0
  41. package/dist/generated/auth/client.gen.d.ts +12 -0
  42. package/dist/generated/auth/core/auth.gen.d.ts +25 -0
  43. package/dist/generated/auth/core/bodySerializer.gen.d.ts +25 -0
  44. package/dist/generated/auth/core/params.gen.d.ts +43 -0
  45. package/dist/generated/auth/core/pathSerializer.gen.d.ts +33 -0
  46. package/dist/generated/auth/core/queryKeySerializer.gen.d.ts +18 -0
  47. package/dist/generated/auth/core/serverSentEvents.gen.d.ts +71 -0
  48. package/dist/generated/auth/core/types.gen.d.ts +83 -0
  49. package/dist/generated/auth/core/utils.gen.d.ts +19 -0
  50. package/dist/generated/auth/index.d.ts +2 -0
  51. package/dist/generated/auth/index.js +6 -0
  52. package/dist/generated/auth/sdk.gen.d.ts +674 -0
  53. package/dist/generated/auth/types.gen.d.ts +5233 -0
  54. package/dist/generated/calendar/client/client.gen.d.ts +2 -0
  55. package/dist/generated/calendar/client/index.d.ts +10 -0
  56. package/dist/generated/calendar/client/types.gen.d.ts +120 -0
  57. package/dist/generated/calendar/client/utils.gen.d.ts +37 -0
  58. package/dist/generated/calendar/client.gen.d.ts +12 -0
  59. package/dist/generated/calendar/core/auth.gen.d.ts +25 -0
  60. package/dist/generated/calendar/core/bodySerializer.gen.d.ts +25 -0
  61. package/dist/generated/calendar/core/params.gen.d.ts +43 -0
  62. package/dist/generated/calendar/core/pathSerializer.gen.d.ts +33 -0
  63. package/dist/generated/calendar/core/queryKeySerializer.gen.d.ts +18 -0
  64. package/dist/generated/calendar/core/serverSentEvents.gen.d.ts +71 -0
  65. package/dist/generated/calendar/core/types.gen.d.ts +83 -0
  66. package/dist/generated/calendar/core/utils.gen.d.ts +19 -0
  67. package/dist/generated/calendar/index.d.ts +2 -0
  68. package/dist/generated/calendar/index.js +6 -0
  69. package/dist/generated/calendar/sdk.gen.d.ts +157 -0
  70. package/dist/generated/calendar/types.gen.d.ts +2333 -0
  71. package/dist/generated/cognition/client/client.gen.d.ts +2 -0
  72. package/dist/generated/cognition/client/index.d.ts +10 -0
  73. package/dist/generated/cognition/client/types.gen.d.ts +120 -0
  74. package/dist/generated/cognition/client/utils.gen.d.ts +37 -0
  75. package/dist/generated/cognition/client.gen.d.ts +12 -0
  76. package/dist/generated/cognition/core/auth.gen.d.ts +25 -0
  77. package/dist/generated/cognition/core/bodySerializer.gen.d.ts +25 -0
  78. package/dist/generated/cognition/core/params.gen.d.ts +43 -0
  79. package/dist/generated/cognition/core/pathSerializer.gen.d.ts +33 -0
  80. package/dist/generated/cognition/core/queryKeySerializer.gen.d.ts +18 -0
  81. package/dist/generated/cognition/core/serverSentEvents.gen.d.ts +71 -0
  82. package/dist/generated/cognition/core/types.gen.d.ts +83 -0
  83. package/dist/generated/cognition/core/utils.gen.d.ts +19 -0
  84. package/dist/generated/cognition/index.d.ts +2 -0
  85. package/dist/generated/cognition/index.js +6 -0
  86. package/dist/generated/cognition/sdk.gen.d.ts +348 -0
  87. package/dist/generated/cognition/types.gen.d.ts +4228 -0
  88. package/dist/generated/connection/client/client.gen.d.ts +2 -0
  89. package/dist/generated/connection/client/index.d.ts +10 -0
  90. package/dist/generated/connection/client/types.gen.d.ts +120 -0
  91. package/dist/generated/connection/client/utils.gen.d.ts +37 -0
  92. package/dist/generated/connection/client.gen.d.ts +12 -0
  93. package/dist/generated/connection/core/auth.gen.d.ts +25 -0
  94. package/dist/generated/connection/core/bodySerializer.gen.d.ts +25 -0
  95. package/dist/generated/connection/core/params.gen.d.ts +43 -0
  96. package/dist/generated/connection/core/pathSerializer.gen.d.ts +33 -0
  97. package/dist/generated/connection/core/queryKeySerializer.gen.d.ts +18 -0
  98. package/dist/generated/connection/core/serverSentEvents.gen.d.ts +71 -0
  99. package/dist/generated/connection/core/types.gen.d.ts +83 -0
  100. package/dist/generated/connection/core/utils.gen.d.ts +19 -0
  101. package/dist/generated/connection/index.d.ts +2 -0
  102. package/dist/generated/connection/index.js +854 -0
  103. package/dist/generated/connection/sdk.gen.d.ts +43 -0
  104. package/dist/generated/connection/types.gen.d.ts +252 -0
  105. package/dist/generated/contacts/client/client.gen.d.ts +2 -0
  106. package/dist/generated/contacts/client/index.d.ts +10 -0
  107. package/dist/generated/contacts/client/types.gen.d.ts +120 -0
  108. package/dist/generated/contacts/client/utils.gen.d.ts +37 -0
  109. package/dist/generated/contacts/client.gen.d.ts +12 -0
  110. package/dist/generated/contacts/core/auth.gen.d.ts +25 -0
  111. package/dist/generated/contacts/core/bodySerializer.gen.d.ts +25 -0
  112. package/dist/generated/contacts/core/params.gen.d.ts +43 -0
  113. package/dist/generated/contacts/core/pathSerializer.gen.d.ts +33 -0
  114. package/dist/generated/contacts/core/queryKeySerializer.gen.d.ts +18 -0
  115. package/dist/generated/contacts/core/serverSentEvents.gen.d.ts +71 -0
  116. package/dist/generated/contacts/core/types.gen.d.ts +83 -0
  117. package/dist/generated/contacts/core/utils.gen.d.ts +19 -0
  118. package/dist/generated/contacts/index.d.ts +2 -0
  119. package/dist/generated/contacts/index.js +6 -0
  120. package/dist/generated/contacts/sdk.gen.d.ts +47 -0
  121. package/dist/generated/contacts/types.gen.d.ts +108 -0
  122. package/dist/generated/email/client/client.gen.d.ts +2 -0
  123. package/dist/generated/email/client/index.d.ts +10 -0
  124. package/dist/generated/email/client/types.gen.d.ts +120 -0
  125. package/dist/generated/email/client/utils.gen.d.ts +37 -0
  126. package/dist/generated/email/client.gen.d.ts +12 -0
  127. package/dist/generated/email/core/auth.gen.d.ts +25 -0
  128. package/dist/generated/email/core/bodySerializer.gen.d.ts +25 -0
  129. package/dist/generated/email/core/params.gen.d.ts +43 -0
  130. package/dist/generated/email/core/pathSerializer.gen.d.ts +33 -0
  131. package/dist/generated/email/core/queryKeySerializer.gen.d.ts +18 -0
  132. package/dist/generated/email/core/serverSentEvents.gen.d.ts +71 -0
  133. package/dist/generated/email/core/types.gen.d.ts +83 -0
  134. package/dist/generated/email/core/utils.gen.d.ts +19 -0
  135. package/dist/generated/email/index.d.ts +2 -0
  136. package/dist/generated/email/index.js +6 -0
  137. package/dist/generated/email/sdk.gen.d.ts +301 -0
  138. package/dist/generated/email/types.gen.d.ts +3262 -0
  139. package/dist/generated/notification/client/client.gen.d.ts +2 -0
  140. package/dist/generated/notification/client/index.d.ts +10 -0
  141. package/dist/generated/notification/client/types.gen.d.ts +120 -0
  142. package/dist/generated/notification/client/utils.gen.d.ts +37 -0
  143. package/dist/generated/notification/client.gen.d.ts +12 -0
  144. package/dist/generated/notification/core/auth.gen.d.ts +25 -0
  145. package/dist/generated/notification/core/bodySerializer.gen.d.ts +25 -0
  146. package/dist/generated/notification/core/params.gen.d.ts +43 -0
  147. package/dist/generated/notification/core/pathSerializer.gen.d.ts +33 -0
  148. package/dist/generated/notification/core/queryKeySerializer.gen.d.ts +18 -0
  149. package/dist/generated/notification/core/serverSentEvents.gen.d.ts +71 -0
  150. package/dist/generated/notification/core/types.gen.d.ts +83 -0
  151. package/dist/generated/notification/core/utils.gen.d.ts +19 -0
  152. package/dist/generated/notification/index.d.ts +2 -0
  153. package/dist/generated/notification/index.js +6 -0
  154. package/dist/generated/notification/sdk.gen.d.ts +127 -0
  155. package/dist/generated/notification/types.gen.d.ts +2084 -0
  156. package/dist/generated/properties/client/client.gen.d.ts +2 -0
  157. package/dist/generated/properties/client/index.d.ts +10 -0
  158. package/dist/generated/properties/client/types.gen.d.ts +120 -0
  159. package/dist/generated/properties/client/utils.gen.d.ts +37 -0
  160. package/dist/generated/properties/client.gen.d.ts +12 -0
  161. package/dist/generated/properties/core/auth.gen.d.ts +25 -0
  162. package/dist/generated/properties/core/bodySerializer.gen.d.ts +25 -0
  163. package/dist/generated/properties/core/params.gen.d.ts +43 -0
  164. package/dist/generated/properties/core/pathSerializer.gen.d.ts +33 -0
  165. package/dist/generated/properties/core/queryKeySerializer.gen.d.ts +18 -0
  166. package/dist/generated/properties/core/serverSentEvents.gen.d.ts +71 -0
  167. package/dist/generated/properties/core/types.gen.d.ts +83 -0
  168. package/dist/generated/properties/core/utils.gen.d.ts +19 -0
  169. package/dist/generated/properties/index.d.ts +2 -0
  170. package/dist/generated/properties/index.js +6 -0
  171. package/dist/generated/properties/sdk.gen.d.ts +158 -0
  172. package/dist/generated/properties/types.gen.d.ts +1311 -0
  173. package/dist/generated/scheduled-action/client/client.gen.d.ts +2 -0
  174. package/dist/generated/scheduled-action/client/index.d.ts +10 -0
  175. package/dist/generated/scheduled-action/client/types.gen.d.ts +120 -0
  176. package/dist/generated/scheduled-action/client/utils.gen.d.ts +37 -0
  177. package/dist/generated/scheduled-action/client.gen.d.ts +12 -0
  178. package/dist/generated/scheduled-action/core/auth.gen.d.ts +25 -0
  179. package/dist/generated/scheduled-action/core/bodySerializer.gen.d.ts +25 -0
  180. package/dist/generated/scheduled-action/core/params.gen.d.ts +43 -0
  181. package/dist/generated/scheduled-action/core/pathSerializer.gen.d.ts +33 -0
  182. package/dist/generated/scheduled-action/core/queryKeySerializer.gen.d.ts +18 -0
  183. package/dist/generated/scheduled-action/core/serverSentEvents.gen.d.ts +71 -0
  184. package/dist/generated/scheduled-action/core/types.gen.d.ts +83 -0
  185. package/dist/generated/scheduled-action/core/utils.gen.d.ts +19 -0
  186. package/dist/generated/scheduled-action/index.d.ts +2 -0
  187. package/dist/generated/scheduled-action/index.js +6 -0
  188. package/dist/generated/scheduled-action/sdk.gen.d.ts +156 -0
  189. package/dist/generated/scheduled-action/types.gen.d.ts +3099 -0
  190. package/dist/generated/search/client/client.gen.d.ts +2 -0
  191. package/dist/generated/search/client/index.d.ts +10 -0
  192. package/dist/generated/search/client/types.gen.d.ts +120 -0
  193. package/dist/generated/search/client/utils.gen.d.ts +37 -0
  194. package/dist/generated/search/client.gen.d.ts +12 -0
  195. package/dist/generated/search/core/auth.gen.d.ts +25 -0
  196. package/dist/generated/search/core/bodySerializer.gen.d.ts +25 -0
  197. package/dist/generated/search/core/params.gen.d.ts +43 -0
  198. package/dist/generated/search/core/pathSerializer.gen.d.ts +33 -0
  199. package/dist/generated/search/core/queryKeySerializer.gen.d.ts +18 -0
  200. package/dist/generated/search/core/serverSentEvents.gen.d.ts +71 -0
  201. package/dist/generated/search/core/types.gen.d.ts +83 -0
  202. package/dist/generated/search/core/utils.gen.d.ts +19 -0
  203. package/dist/generated/search/index.d.ts +2 -0
  204. package/dist/generated/search/index.js +6 -0
  205. package/dist/generated/search/sdk.gen.d.ts +44 -0
  206. package/dist/generated/search/types.gen.d.ts +2532 -0
  207. package/dist/generated/static-files/client/client.gen.d.ts +2 -0
  208. package/dist/generated/static-files/client/index.d.ts +10 -0
  209. package/dist/generated/static-files/client/types.gen.d.ts +120 -0
  210. package/dist/generated/static-files/client/utils.gen.d.ts +37 -0
  211. package/dist/generated/static-files/client.gen.d.ts +12 -0
  212. package/dist/generated/static-files/core/auth.gen.d.ts +25 -0
  213. package/dist/generated/static-files/core/bodySerializer.gen.d.ts +25 -0
  214. package/dist/generated/static-files/core/params.gen.d.ts +43 -0
  215. package/dist/generated/static-files/core/pathSerializer.gen.d.ts +33 -0
  216. package/dist/generated/static-files/core/queryKeySerializer.gen.d.ts +18 -0
  217. package/dist/generated/static-files/core/serverSentEvents.gen.d.ts +71 -0
  218. package/dist/generated/static-files/core/types.gen.d.ts +83 -0
  219. package/dist/generated/static-files/core/utils.gen.d.ts +19 -0
  220. package/dist/generated/static-files/index.d.ts +2 -0
  221. package/dist/generated/static-files/index.js +842 -0
  222. package/dist/generated/static-files/sdk.gen.d.ts +43 -0
  223. package/dist/generated/static-files/types.gen.d.ts +220 -0
  224. package/dist/generated/storage/client/client.gen.d.ts +2 -0
  225. package/dist/generated/storage/client/index.d.ts +10 -0
  226. package/dist/generated/storage/client/types.gen.d.ts +120 -0
  227. package/dist/generated/storage/client/utils.gen.d.ts +37 -0
  228. package/dist/generated/storage/client.gen.d.ts +12 -0
  229. package/dist/generated/storage/core/auth.gen.d.ts +25 -0
  230. package/dist/generated/storage/core/bodySerializer.gen.d.ts +25 -0
  231. package/dist/generated/storage/core/params.gen.d.ts +43 -0
  232. package/dist/generated/storage/core/pathSerializer.gen.d.ts +33 -0
  233. package/dist/generated/storage/core/queryKeySerializer.gen.d.ts +18 -0
  234. package/dist/generated/storage/core/serverSentEvents.gen.d.ts +71 -0
  235. package/dist/generated/storage/core/types.gen.d.ts +83 -0
  236. package/dist/generated/storage/core/utils.gen.d.ts +19 -0
  237. package/dist/generated/storage/index.d.ts +2 -0
  238. package/dist/generated/storage/index.js +6 -0
  239. package/dist/generated/storage/sdk.gen.d.ts +2285 -0
  240. package/dist/generated/storage/types.gen.d.ts +34546 -0
  241. package/dist/generated/unfurl/client/client.gen.d.ts +2 -0
  242. package/dist/generated/unfurl/client/index.d.ts +10 -0
  243. package/dist/generated/unfurl/client/types.gen.d.ts +120 -0
  244. package/dist/generated/unfurl/client/utils.gen.d.ts +37 -0
  245. package/dist/generated/unfurl/client.gen.d.ts +12 -0
  246. package/dist/generated/unfurl/core/auth.gen.d.ts +25 -0
  247. package/dist/generated/unfurl/core/bodySerializer.gen.d.ts +25 -0
  248. package/dist/generated/unfurl/core/params.gen.d.ts +43 -0
  249. package/dist/generated/unfurl/core/pathSerializer.gen.d.ts +33 -0
  250. package/dist/generated/unfurl/core/queryKeySerializer.gen.d.ts +18 -0
  251. package/dist/generated/unfurl/core/serverSentEvents.gen.d.ts +71 -0
  252. package/dist/generated/unfurl/core/types.gen.d.ts +83 -0
  253. package/dist/generated/unfurl/core/utils.gen.d.ts +19 -0
  254. package/dist/generated/unfurl/index.d.ts +2 -0
  255. package/dist/generated/unfurl/index.js +6 -0
  256. package/dist/generated/unfurl/sdk.gen.d.ts +47 -0
  257. package/dist/generated/unfurl/types.gen.d.ts +145 -0
  258. package/dist/src/calls/browser.d.ts +14 -0
  259. package/dist/src/calls/browser.js +102 -0
  260. package/dist/src/calls/common.d.ts +18 -0
  261. package/dist/src/calls/node.d.ts +24 -0
  262. package/dist/src/calls/node.js +145 -0
  263. package/dist/src/calls/telemetry.d.ts +5 -0
  264. package/dist/src/config.d.ts +71 -0
  265. package/dist/src/entities/account-managers/grant.d.ts +62 -0
  266. package/dist/src/entities/account-managers/namespace.d.ts +29 -0
  267. package/dist/src/entities/activity/entity.d.ts +7 -0
  268. package/dist/src/entities/activity/namespace.d.ts +58 -0
  269. package/dist/src/entities/activity/namespace.test.d.ts +1 -0
  270. package/dist/src/entities/agent-sessions/activity.d.ts +48 -0
  271. package/dist/src/entities/agent-sessions/agent-session.d.ts +518 -0
  272. package/dist/src/entities/agent-sessions/code-execution.d.ts +60 -0
  273. package/dist/src/entities/agent-sessions/conversation.d.ts +91 -0
  274. package/dist/src/entities/agent-sessions/namespace.d.ts +142 -0
  275. package/dist/src/entities/agent-sessions/origin.d.ts +94 -0
  276. package/dist/src/entities/agent-sessions/queued-action.d.ts +60 -0
  277. package/dist/src/entities/agent-sessions/review.d.ts +114 -0
  278. package/dist/src/entities/agent-sessions/tool-approval.d.ts +25 -0
  279. package/dist/src/entities/agent-sessions/view.d.ts +11 -0
  280. package/dist/src/entities/agents/agent.d.ts +142 -0
  281. package/dist/src/entities/agents/namespace.d.ts +66 -0
  282. package/dist/src/entities/ai/namespace.d.ts +36 -0
  283. package/dist/src/entities/api-keys/api-key.d.ts +22 -0
  284. package/dist/src/entities/api-keys/namespace.d.ts +37 -0
  285. package/dist/src/entities/bots/bot.d.ts +143 -0
  286. package/dist/src/entities/bots/namespace.d.ts +50 -0
  287. package/dist/src/entities/bots/token.d.ts +39 -0
  288. package/dist/src/entities/calendar/booking-link.d.ts +55 -0
  289. package/dist/src/entities/calendar/booking-namespace.d.ts +143 -0
  290. package/dist/src/entities/calendar/booking-namespace.test.d.ts +1 -0
  291. package/dist/src/entities/calendar/booking.d.ts +97 -0
  292. package/dist/src/entities/calendar/calendar.d.ts +49 -0
  293. package/dist/src/entities/calendar/create-confirmed.test.d.ts +1 -0
  294. package/dist/src/entities/calendar/event.d.ts +283 -0
  295. package/dist/src/entities/calendar/event.test.d.ts +1 -0
  296. package/dist/src/entities/calendar/namespace.d.ts +334 -0
  297. package/dist/src/entities/calendar/namespace.test.d.ts +1 -0
  298. package/dist/src/entities/calendar/replacement.d.ts +31 -0
  299. package/dist/src/entities/calls/call-record.d.ts +231 -0
  300. package/dist/src/entities/calls/connection.d.ts +59 -0
  301. package/dist/src/entities/calls/errors.d.ts +15 -0
  302. package/dist/src/entities/calls/message.d.ts +55 -0
  303. package/dist/src/entities/calls/namespace.d.ts +41 -0
  304. package/dist/src/entities/calls/participant.d.ts +22 -0
  305. package/dist/src/entities/canvases/canvas.d.ts +329 -0
  306. package/dist/src/entities/channels/access-request.d.ts +42 -0
  307. package/dist/src/entities/channels/activity.d.ts +40 -0
  308. package/dist/src/entities/channels/channel.d.ts +302 -0
  309. package/dist/src/entities/channels/labels.d.ts +73 -0
  310. package/dist/src/entities/channels/message.d.ts +153 -0
  311. package/dist/src/entities/channels/message.test.d.ts +1 -0
  312. package/dist/src/entities/channels/namespace.d.ts +82 -0
  313. package/dist/src/entities/channels/namespace.test.d.ts +1 -0
  314. package/dist/src/entities/channels/picture.d.ts +11 -0
  315. package/dist/src/entities/channels/post.d.ts +37 -0
  316. package/dist/src/entities/channels/post.test.d.ts +1 -0
  317. package/dist/src/entities/channels/share.d.ts +9 -0
  318. package/dist/src/entities/channels/share.test.d.ts +1 -0
  319. package/dist/src/entities/channels/thread.d.ts +64 -0
  320. package/dist/src/entities/chats/chat.d.ts +121 -0
  321. package/dist/src/entities/chats/generation.d.ts +55 -0
  322. package/dist/src/entities/chats/namespace.d.ts +35 -0
  323. package/dist/src/entities/connected-apps/connected-app.d.ts +121 -0
  324. package/dist/src/entities/connected-apps/connector.d.ts +59 -0
  325. package/dist/src/entities/connected-apps/namespace.d.ts +92 -0
  326. package/dist/src/entities/crm/company.d.ts +154 -0
  327. package/dist/src/entities/crm/contact.d.ts +168 -0
  328. package/dist/src/entities/crm/namespace.d.ts +163 -0
  329. package/dist/src/entities/crm/pipeline-entry.d.ts +109 -0
  330. package/dist/src/entities/crm/pipeline.d.ts +426 -0
  331. package/dist/src/entities/crm/pipelines.d.ts +79 -0
  332. package/dist/src/entities/crm-email-privacy/email-privacy.d.ts +238 -0
  333. package/dist/src/entities/crm-email-privacy/email-rule-preview.d.ts +55 -0
  334. package/dist/src/entities/crm-email-privacy/email-rule-revision.d.ts +27 -0
  335. package/dist/src/entities/crm-email-privacy/email-rules.d.ts +32 -0
  336. package/dist/src/entities/databases/column.d.ts +122 -0
  337. package/dist/src/entities/databases/database.d.ts +431 -0
  338. package/dist/src/entities/databases/namespace.d.ts +109 -0
  339. package/dist/src/entities/databases/query.d.ts +86 -0
  340. package/dist/src/entities/databases/row.d.ts +29 -0
  341. package/dist/src/entities/databases/saved-query.d.ts +151 -0
  342. package/dist/src/entities/databases/table.d.ts +124 -0
  343. package/dist/src/entities/databases/view.d.ts +72 -0
  344. package/dist/src/entities/databases/webhook.d.ts +39 -0
  345. package/dist/src/entities/documents/ai-edit.d.ts +54 -0
  346. package/dist/src/entities/documents/anchor.d.ts +39 -0
  347. package/dist/src/entities/documents/comment.d.ts +68 -0
  348. package/dist/src/entities/documents/create.test.d.ts +1 -0
  349. package/dist/src/entities/documents/document.d.ts +675 -0
  350. package/dist/src/entities/documents/markdown.d.ts +25 -0
  351. package/dist/src/entities/documents/namespace.d.ts +291 -0
  352. package/dist/src/entities/documents/office-files.d.ts +47 -0
  353. package/dist/src/entities/documents/skills.test.d.ts +1 -0
  354. package/dist/src/entities/documents/system-skill.d.ts +36 -0
  355. package/dist/src/entities/documents/text-comment.d.ts +41 -0
  356. package/dist/src/entities/documents/text-comment.test.d.ts +1 -0
  357. package/dist/src/entities/documents/version.d.ts +26 -0
  358. package/dist/src/entities/email/attachment.d.ts +39 -0
  359. package/dist/src/entities/email/body-rox-compat.d.ts +22 -0
  360. package/dist/src/entities/email/draft.d.ts +164 -0
  361. package/dist/src/entities/email/filter.d.ts +44 -0
  362. package/dist/src/entities/email/label.d.ts +37 -0
  363. package/dist/src/entities/email/link.d.ts +35 -0
  364. package/dist/src/entities/email/message.d.ts +223 -0
  365. package/dist/src/entities/email/namespace.d.ts +235 -0
  366. package/dist/src/entities/email/namespace.test.d.ts +1 -0
  367. package/dist/src/entities/email/thread.d.ts +268 -0
  368. package/dist/src/entities/entity-mentions/mention.d.ts +21 -0
  369. package/dist/src/entities/entity-mentions/namespace.d.ts +20 -0
  370. package/dist/src/entities/entity.d.ts +167 -0
  371. package/dist/src/entities/external-chat/chat.d.ts +173 -0
  372. package/dist/src/entities/external-chat/message.d.ts +54 -0
  373. package/dist/src/entities/external-chat/namespace.d.ts +22 -0
  374. package/dist/src/entities/external-chat/participant.d.ts +28 -0
  375. package/dist/src/entities/external-chat/send.d.ts +40 -0
  376. package/dist/src/entities/external-chat/upload.d.ts +25 -0
  377. package/dist/src/entities/favorites/namespace.d.ts +52 -0
  378. package/dist/src/entities/foreign/foreign-entity.d.ts +36 -0
  379. package/dist/src/entities/foreign/namespace.d.ts +54 -0
  380. package/dist/src/entities/forms/form.d.ts +319 -0
  381. package/dist/src/entities/forms/namespace.d.ts +30 -0
  382. package/dist/src/entities/forms/question.d.ts +65 -0
  383. package/dist/src/entities/forms/response.d.ts +52 -0
  384. package/dist/src/entities/forms/section.d.ts +31 -0
  385. package/dist/src/entities/github-pull-requests/namespace.d.ts +20 -0
  386. package/dist/src/entities/github-pull-requests/pull-request.d.ts +64 -0
  387. package/dist/src/entities/harnesses/harness.d.ts +76 -0
  388. package/dist/src/entities/harnesses/namespace.d.ts +83 -0
  389. package/dist/src/entities/harnesses/pairing.d.ts +50 -0
  390. package/dist/src/entities/images/image.d.ts +88 -0
  391. package/dist/src/entities/images/namespace.d.ts +55 -0
  392. package/dist/src/entities/images/namespace.test.d.ts +1 -0
  393. package/dist/src/entities/imports/entry.d.ts +65 -0
  394. package/dist/src/entities/imports/namespace.d.ts +103 -0
  395. package/dist/src/entities/imports/namespace.test.d.ts +1 -0
  396. package/dist/src/entities/initiatives/initiative.d.ts +185 -0
  397. package/dist/src/entities/initiatives/initiative.test.d.ts +1 -0
  398. package/dist/src/entities/initiatives/namespace.d.ts +90 -0
  399. package/dist/src/entities/me/namespace.d.ts +68 -0
  400. package/dist/src/entities/meetings/meeting.d.ts +81 -0
  401. package/dist/src/entities/meetings/namespace.d.ts +38 -0
  402. package/dist/src/entities/memory/namespace.d.ts +49 -0
  403. package/dist/src/entities/memory/namespace.test.d.ts +1 -0
  404. package/dist/src/entities/messages/discussion.d.ts +84 -0
  405. package/dist/src/entities/messages/thread.d.ts +115 -0
  406. package/dist/src/entities/notifications/namespace.d.ts +66 -0
  407. package/dist/src/entities/notifications/notification.d.ts +78 -0
  408. package/dist/src/entities/notifications/notification.test.d.ts +1 -0
  409. package/dist/src/entities/passwords/item.d.ts +118 -0
  410. package/dist/src/entities/passwords/namespace.d.ts +45 -0
  411. package/dist/src/entities/pins/namespace.d.ts +42 -0
  412. package/dist/src/entities/projects/namespace.d.ts +45 -0
  413. package/dist/src/entities/projects/project.d.ts +108 -0
  414. package/dist/src/entities/properties/namespace.d.ts +105 -0
  415. package/dist/src/entities/properties/namespace.test.d.ts +1 -0
  416. package/dist/src/entities/properties/property-definition.d.ts +70 -0
  417. package/dist/src/entities/properties/property-option.d.ts +44 -0
  418. package/dist/src/entities/reference.d.ts +82 -0
  419. package/dist/src/entities/referrals/namespace.d.ts +40 -0
  420. package/dist/src/entities/routines/namespace.d.ts +239 -0
  421. package/dist/src/entities/routines/routine.d.ts +341 -0
  422. package/dist/src/entities/routines/suggestion.d.ts +38 -0
  423. package/dist/src/entities/saved-views/namespace.d.ts +58 -0
  424. package/dist/src/entities/saved-views/saved-view.d.ts +78 -0
  425. package/dist/src/entities/search/exclusions.d.ts +6 -0
  426. package/dist/src/entities/search/namespace.d.ts +71 -0
  427. package/dist/src/entities/search/options.d.ts +30 -0
  428. package/dist/src/entities/search/types.d.ts +90 -0
  429. package/dist/src/entities/sharing/access.d.ts +120 -0
  430. package/dist/src/entities/sharing/permissions.d.ts +13 -0
  431. package/dist/src/entities/spreadsheets/spreadsheet.d.ts +201 -0
  432. package/dist/src/entities/suggestions/namespace.d.ts +118 -0
  433. package/dist/src/entities/suggestions/suggestion.d.ts +172 -0
  434. package/dist/src/entities/suggestions/suggestion.test.d.ts +1 -0
  435. package/dist/src/entities/tasks/namespace.d.ts +77 -0
  436. package/dist/src/entities/tasks/task.d.ts +99 -0
  437. package/dist/src/entities/teams/invite.d.ts +33 -0
  438. package/dist/src/entities/teams/namespace.d.ts +23 -0
  439. package/dist/src/entities/teams/team.d.ts +129 -0
  440. package/dist/src/entities/ui/app-link.d.ts +24 -0
  441. package/dist/src/entities/ui/namespace.d.ts +75 -0
  442. package/dist/src/entities/unfurls/namespace.d.ts +24 -0
  443. package/dist/src/entities/users/namespace.d.ts +41 -0
  444. package/dist/src/entities/users/profile-picture.d.ts +29 -0
  445. package/dist/src/entities/users/profile-picture.test.d.ts +1 -0
  446. package/dist/src/entities/users/user.d.ts +102 -0
  447. package/dist/src/entities/web/namespace.d.ts +67 -0
  448. package/dist/src/entities/web/namespace.test.d.ts +1 -0
  449. package/dist/src/entities/webhooks/namespace.d.ts +38 -0
  450. package/dist/src/entities/webhooks/webhook.d.ts +130 -0
  451. package/dist/src/entities/whatsapp/account.d.ts +24 -0
  452. package/dist/src/entities/whatsapp/chat.d.ts +62 -0
  453. package/dist/src/entities/whatsapp/namespace.d.ts +29 -0
  454. package/dist/src/entities/workspace/items.d.ts +14 -0
  455. package/dist/src/entities/workspace/namespace.d.ts +96 -0
  456. package/dist/src/entities/workspace/query.d.ts +39 -0
  457. package/dist/src/entities/workspace/query.test.d.ts +1 -0
  458. package/dist/src/entities/workspace/types.d.ts +99 -0
  459. package/dist/src/events/hydrate/agentSession.d.ts +192 -0
  460. package/dist/src/events/hydrate/call.d.ts +101 -0
  461. package/dist/src/events/hydrate/channel.d.ts +55 -0
  462. package/dist/src/events/hydrate/document.d.ts +59 -0
  463. package/dist/src/events/hydrate/message.d.ts +70 -0
  464. package/dist/src/events/hydrate/user.d.ts +14 -0
  465. package/dist/src/events/receiver.d.ts +91 -0
  466. package/dist/src/events/types.d.ts +44 -0
  467. package/dist/src/events/verify.d.ts +13 -0
  468. package/dist/src/local-portmap.d.ts +8 -0
  469. package/dist/src/mentions.d.ts +42 -0
  470. package/dist/src/raw.d.ts +12 -0
  471. package/dist/src/rox.d.ts +268 -0
  472. package/dist/src/rox.js +23231 -0
  473. package/dist/src/utils/activity.d.ts +34 -0
  474. package/dist/src/utils/activity.test.d.ts +1 -0
  475. package/dist/src/utils/client.d.ts +62 -0
  476. package/dist/src/utils/concurrency.d.ts +5 -0
  477. package/dist/src/utils/index.d.ts +5 -0
  478. package/dist/src/utils/lazy.d.ts +37 -0
  479. package/dist/src/utils/options.d.ts +7 -0
  480. package/dist/src/utils/pagination.d.ts +28 -0
  481. package/dist/src/utils/unwrap.d.ts +48 -0
  482. package/dist/src/utils/verbs.d.ts +3 -0
  483. package/package.json +82 -4
@@ -0,0 +1,2333 @@
1
+ export type ClientOptions = {
2
+ baseUrl: `${string}://${string}` | (string & {});
3
+ };
4
+ /**
5
+ * RSVP state for an attendee.
6
+ */
7
+ export type AttendeeResponseStatus = 'needs_action' | 'accepted' | 'declined' | 'tentative';
8
+ /**
9
+ * Per-user inclusion of a source calendar in personal availability.
10
+ */
11
+ export type AvailabilityCalendar = {
12
+ /**
13
+ * Visible source calendar.
14
+ */
15
+ calendarId: string;
16
+ /**
17
+ * Whether its events normally block the user's time.
18
+ */
19
+ contributesToAvailability: boolean;
20
+ /**
21
+ * Whether this is the connected account's primary calendar.
22
+ */
23
+ isPrimary: boolean;
24
+ /**
25
+ * Source name.
26
+ */
27
+ name: string;
28
+ };
29
+ /**
30
+ * Own-user source inclusion preference.
31
+ */
32
+ export type AvailabilityCalendarBody = {
33
+ /**
34
+ * Whether this calendar contributes to personal availability.
35
+ */
36
+ contributesToAvailability: boolean;
37
+ };
38
+ /**
39
+ * Source calendar settings returned to their viewer.
40
+ */
41
+ export type AvailabilityCalendarsResponse = {
42
+ /**
43
+ * Directly visible source calendars.
44
+ */
45
+ calendars: Array<AvailabilityCalendar>;
46
+ };
47
+ /**
48
+ * Public booking details, also visible to authorized profile members.
49
+ */
50
+ export type Booking = {
51
+ /**
52
+ * When Macro stopped trying to update the host's calendar for the
53
+ * booking's latest change. A failed booking with this set is not being
54
+ * retried, and cancelling it is the way to release its time.
55
+ */
56
+ abandonedAt?: string | null;
57
+ /**
58
+ * Answers keyed by question identity.
59
+ */
60
+ answers: {
61
+ [key: string]: string;
62
+ };
63
+ /**
64
+ * Explicit attendance outcome; existing booking records default to unknown.
65
+ */
66
+ attendance?: BookingAttendance;
67
+ /**
68
+ * Booker's email.
69
+ */
70
+ email: string;
71
+ /**
72
+ * Absolute meeting end.
73
+ */
74
+ endsAt: string;
75
+ /**
76
+ * Booking link identity.
77
+ */
78
+ eventTypeId: string;
79
+ /**
80
+ * Assigned hosts.
81
+ */
82
+ hosts: Array<string>;
83
+ /**
84
+ * Booking identity.
85
+ */
86
+ id: string;
87
+ /**
88
+ * Final location or conference URL.
89
+ */
90
+ location: string;
91
+ /**
92
+ * Booker's name.
93
+ */
94
+ name: string;
95
+ /**
96
+ * Original labels for answers, independent of later event-type edits.
97
+ */
98
+ questionLabels?: {
99
+ [key: string]: string;
100
+ };
101
+ /**
102
+ * Number of successfully completed moves to a different start time.
103
+ */
104
+ rescheduleCount?: number;
105
+ /**
106
+ * When the most recent successful reschedule completed.
107
+ */
108
+ rescheduledAt?: string | null;
109
+ /**
110
+ * Absolute meeting start.
111
+ */
112
+ startsAt: string;
113
+ /**
114
+ * Current lifecycle state.
115
+ */
116
+ status: BookingStatus;
117
+ /**
118
+ * Booker's display time zone.
119
+ */
120
+ timeZone: string;
121
+ /**
122
+ * Snapshot of the meeting title.
123
+ */
124
+ title: string;
125
+ };
126
+ /**
127
+ * Attendance recorded by an assigned host or profile administrator after a meeting.
128
+ */
129
+ export type BookingAttendance = 'unknown' | 'attended' | 'guestNoShow' | 'hostNoShow';
130
+ /**
131
+ * A host's requested change to a booked meeting.
132
+ */
133
+ export type BookingChange = {
134
+ action: 'approve';
135
+ } | {
136
+ action: 'cancel';
137
+ } | {
138
+ action: 'attendance';
139
+ /**
140
+ * Recorded outcome.
141
+ */
142
+ attendance: BookingAttendance;
143
+ } | {
144
+ action: 'reschedule';
145
+ /**
146
+ * Absolute start chosen from available replacement slots.
147
+ */
148
+ startsAt: string;
149
+ };
150
+ /**
151
+ * Replacement availability for one date.
152
+ */
153
+ export type BookingDateOverride = {
154
+ /**
155
+ * Local date in the schedule zone.
156
+ */
157
+ date: string;
158
+ /**
159
+ * Empty means unavailable all day.
160
+ */
161
+ windows: Array<BookingTimeWindow>;
162
+ };
163
+ /**
164
+ * A reusable booking link.
165
+ */
166
+ export type BookingEventType = {
167
+ /**
168
+ * Protected time after a meeting.
169
+ */
170
+ afterMinutes: number;
171
+ /**
172
+ * Protected time before a meeting.
173
+ */
174
+ beforeMinutes: number;
175
+ /**
176
+ * Maximum bookings for this event on one schedule-local day.
177
+ */
178
+ dailyLimit?: number | null;
179
+ /**
180
+ * Public description.
181
+ */
182
+ description: string;
183
+ /**
184
+ * Meeting duration.
185
+ */
186
+ durationMinutes: number;
187
+ /**
188
+ * Whether new bookings are accepted.
189
+ */
190
+ enabled: boolean;
191
+ /**
192
+ * Generate a Google Meet conference. Mutually exclusive with a Rox call.
193
+ */
194
+ googleMeet: boolean;
195
+ /**
196
+ * Maximum days ahead.
197
+ */
198
+ horizonDays: number;
199
+ /**
200
+ * Current Rox user identities selected as hosts.
201
+ */
202
+ hosts: Array<string>;
203
+ /**
204
+ * Stable identity.
205
+ */
206
+ id: string;
207
+ /**
208
+ * Spacing of offered start times.
209
+ */
210
+ intervalMinutes: number;
211
+ /**
212
+ * Meeting location.
213
+ */
214
+ location: string;
215
+ /**
216
+ * Generate a Rox call and attach its join link when someone books.
217
+ * Mutually exclusive with Google Meet. Omitted on links saved before
218
+ * Rox calls were a booking option, which keep their previous conference.
219
+ */
220
+ macroCall?: boolean;
221
+ /**
222
+ * Host assignment policy.
223
+ */
224
+ mode: SchedulingMode;
225
+ /**
226
+ * Minimum notice in minutes.
227
+ */
228
+ noticeMinutes: number;
229
+ /**
230
+ * Additional form fields.
231
+ */
232
+ questions: Array<BookingQuestion>;
233
+ /**
234
+ * Hold bookings for host approval.
235
+ */
236
+ requiresConfirmation: boolean;
237
+ /**
238
+ * Referenced availability schedule.
239
+ */
240
+ scheduleId: string;
241
+ /**
242
+ * Unique link segment within a profile.
243
+ */
244
+ slug: string;
245
+ /**
246
+ * Public title.
247
+ */
248
+ title: string;
249
+ };
250
+ /**
251
+ * Current and equally long preceding local-calendar periods.
252
+ */
253
+ export type BookingInsights = {
254
+ /**
255
+ * Time at which completion was evaluated.
256
+ */
257
+ asOf: string;
258
+ /**
259
+ * Requested period.
260
+ */
261
+ current: InsightPeriod;
262
+ /**
263
+ * Comparison period, using identical filters and definitions.
264
+ */
265
+ previous: InsightPeriod;
266
+ /**
267
+ * Preceding period's first local date.
268
+ */
269
+ previousFrom: string;
270
+ /**
271
+ * Preceding period's last local date.
272
+ */
273
+ previousTo: string;
274
+ };
275
+ /**
276
+ * Saved link with actual identities and revision for subsequent edits.
277
+ */
278
+ export type BookingLink = {
279
+ /**
280
+ * Full editable configuration.
281
+ */
282
+ draft: BookingLinkDraft;
283
+ /**
284
+ * Stable link identity.
285
+ */
286
+ eventTypeId: string;
287
+ /**
288
+ * Owning profile.
289
+ */
290
+ profileId: string;
291
+ /**
292
+ * Profile revision to supply when editing.
293
+ */
294
+ revision: number;
295
+ };
296
+ /**
297
+ * Complete proposal reviewed and validated before saving.
298
+ */
299
+ export type BookingLinkDraft = {
300
+ /**
301
+ * Public details, hosts, booking rules and questions.
302
+ */
303
+ event: BookingLinkEvent;
304
+ /**
305
+ * Weekly hours, IANA time zone, and date overrides for this link.
306
+ */
307
+ schedule: BookingLinkSchedule;
308
+ };
309
+ /**
310
+ * All editable rules for one link. Personal links must use the authenticated user as host.
311
+ */
312
+ export type BookingLinkEvent = {
313
+ /**
314
+ * Protected time after a meeting.
315
+ */
316
+ afterMinutes: number;
317
+ /**
318
+ * Protected time before a meeting.
319
+ */
320
+ beforeMinutes: number;
321
+ /**
322
+ * Maximum bookings for this event on one schedule-local day.
323
+ */
324
+ dailyLimit?: number | null;
325
+ /**
326
+ * Public description.
327
+ */
328
+ description: string;
329
+ /**
330
+ * Meeting duration.
331
+ */
332
+ durationMinutes: number;
333
+ /**
334
+ * Whether new bookings are accepted.
335
+ */
336
+ enabled: boolean;
337
+ /**
338
+ * Generate a Google Meet conference. Mutually exclusive with `macroCall`.
339
+ */
340
+ googleMeet: boolean;
341
+ /**
342
+ * Maximum days ahead.
343
+ */
344
+ horizonDays: number;
345
+ /**
346
+ * Current Rox user identities selected as hosts.
347
+ */
348
+ hosts: Array<string>;
349
+ /**
350
+ * Spacing of offered start times.
351
+ */
352
+ intervalMinutes: number;
353
+ /**
354
+ * Meeting location.
355
+ */
356
+ location: string;
357
+ /**
358
+ * Attach a Rox call when someone books. A join link is created for that
359
+ * booking and written onto the calendar invitation. Mutually exclusive
360
+ * with `googleMeet`. Set it when the user wants a Rox call; omit or false when
361
+ * the link should use Google Meet or no video. False is omitted so drafts
362
+ * saved before this field still round-trip unchanged.
363
+ */
364
+ macroCall?: boolean;
365
+ /**
366
+ * Host assignment policy.
367
+ */
368
+ mode: SchedulingMode;
369
+ /**
370
+ * Minimum notice in minutes.
371
+ */
372
+ noticeMinutes: number;
373
+ /**
374
+ * Additional form fields.
375
+ */
376
+ questions: Array<BookingQuestion>;
377
+ /**
378
+ * Hold bookings for host approval.
379
+ */
380
+ requiresConfirmation: boolean;
381
+ /**
382
+ * Unique link segment within a profile.
383
+ */
384
+ slug: string;
385
+ /**
386
+ * Public title.
387
+ */
388
+ title: string;
389
+ };
390
+ /**
391
+ * Authorized discovery results including reusable availability.
392
+ */
393
+ export type BookingLinkListing = {
394
+ /**
395
+ * Links whose title, slug or description matches the search, including paused links.
396
+ */
397
+ links: Array<BookingLink>;
398
+ /**
399
+ * Owning profile identity, including unsaved new profiles.
400
+ */
401
+ profileId: string;
402
+ /**
403
+ * Current revision.
404
+ */
405
+ revision: number;
406
+ /**
407
+ * Reusable schedules, even when no links match.
408
+ */
409
+ schedules: Array<BookingSchedule>;
410
+ /**
411
+ * Current team identities that can be used to discover team links.
412
+ */
413
+ teamIds: Array<string>;
414
+ /**
415
+ * Current authenticated host identity for personal drafts.
416
+ */
417
+ userId: string;
418
+ };
419
+ /**
420
+ * Availability copied into a dedicated schedule when it changes; other links retain their hours.
421
+ */
422
+ export type BookingLinkSchedule = {
423
+ /**
424
+ * Display name.
425
+ */
426
+ name: string;
427
+ /**
428
+ * Date-specific replacements.
429
+ */
430
+ overrides: Array<BookingDateOverride>;
431
+ /**
432
+ * IANA time zone.
433
+ */
434
+ timeZone: string;
435
+ /**
436
+ * Weekly windows.
437
+ */
438
+ weekly: Array<BookingWeeklyDay>;
439
+ };
440
+ /**
441
+ * Editable configuration for a person or team.
442
+ */
443
+ export type BookingProfile = {
444
+ /**
445
+ * Personal hours used by team events; absent legacy profiles use their first schedule.
446
+ */
447
+ defaultScheduleId?: string | null;
448
+ /**
449
+ * Public introduction.
450
+ */
451
+ description: string;
452
+ /**
453
+ * Booking links.
454
+ */
455
+ eventTypes: Array<BookingEventType>;
456
+ /**
457
+ * Public, opaque profile identity.
458
+ */
459
+ id: string;
460
+ /**
461
+ * Display name on the public page.
462
+ */
463
+ name: string;
464
+ /**
465
+ * Optimistic concurrency version.
466
+ */
467
+ revision: number;
468
+ /**
469
+ * Reusable schedules.
470
+ */
471
+ schedules: Array<BookingSchedule>;
472
+ };
473
+ /**
474
+ * A question on the booking form.
475
+ */
476
+ export type BookingQuestion = {
477
+ /**
478
+ * Stable identity.
479
+ */
480
+ id: string;
481
+ /**
482
+ * Public question label.
483
+ */
484
+ label: string;
485
+ /**
486
+ * Whether an answer is mandatory.
487
+ */
488
+ required: boolean;
489
+ };
490
+ /**
491
+ * One booking after a change.
492
+ */
493
+ export type BookingResponse = {
494
+ /**
495
+ * The saved booking.
496
+ */
497
+ booking: Booking;
498
+ };
499
+ /**
500
+ * Reusable hours, with DST interpreted in an IANA zone.
501
+ */
502
+ export type BookingSchedule = {
503
+ /**
504
+ * Stable schedule identity.
505
+ */
506
+ id: string;
507
+ /**
508
+ * Display name.
509
+ */
510
+ name: string;
511
+ /**
512
+ * Date-specific replacements.
513
+ */
514
+ overrides: Array<BookingDateOverride>;
515
+ /**
516
+ * IANA time zone.
517
+ */
518
+ timeZone: string;
519
+ /**
520
+ * Weekly windows.
521
+ */
522
+ weekly: Array<BookingWeeklyDay>;
523
+ };
524
+ /**
525
+ * Available slot and the hosts who can satisfy it.
526
+ */
527
+ export type BookingSlot = {
528
+ /**
529
+ * Absolute end.
530
+ */
531
+ endsAt: string;
532
+ /**
533
+ * Absolute start.
534
+ */
535
+ startsAt: string;
536
+ };
537
+ /**
538
+ * Booking lifecycle state.
539
+ */
540
+ export type BookingStatus = 'pending' | 'confirmed' | 'cancelled' | 'processing' | 'failed';
541
+ /**
542
+ * A wall-clock window in an availability schedule.
543
+ */
544
+ export type BookingTimeWindow = {
545
+ /**
546
+ * Exclusive HH:MM end.
547
+ */
548
+ end: string;
549
+ /**
550
+ * Inclusive HH:MM start.
551
+ */
552
+ start: string;
553
+ };
554
+ /**
555
+ * Availability for one weekday.
556
+ */
557
+ export type BookingWeeklyDay = {
558
+ /**
559
+ * Sunday is zero.
560
+ */
561
+ day: number;
562
+ /**
563
+ * Non-overlapping local windows.
564
+ */
565
+ windows: Array<BookingTimeWindow>;
566
+ };
567
+ /**
568
+ * Bookings of one profile.
569
+ */
570
+ export type BookingsResponse = {
571
+ /**
572
+ * Every matching booking.
573
+ */
574
+ bookings: Array<Booking>;
575
+ };
576
+ /**
577
+ * An attendee on a calendar event.
578
+ */
579
+ export type CalendarAttendee = {
580
+ /**
581
+ * Optional attendee comment.
582
+ */
583
+ comment?: string | null;
584
+ /**
585
+ * Provider display name.
586
+ */
587
+ displayName?: string | null;
588
+ /**
589
+ * Normalized email address.
590
+ */
591
+ email: string;
592
+ /**
593
+ * Whether attendance is optional.
594
+ */
595
+ isOptional: boolean;
596
+ /**
597
+ * Whether this attendee is the organizer.
598
+ */
599
+ isOrganizer: boolean;
600
+ /**
601
+ * Whether this attendee is one of the viewing requester's inboxes.
602
+ */
603
+ isSelf: boolean;
604
+ /**
605
+ * RSVP state.
606
+ */
607
+ responseStatus: AttendeeResponseStatus;
608
+ };
609
+ /**
610
+ * An attendee supplied to a calendar mutation.
611
+ */
612
+ export type CalendarAttendeeInputBody = {
613
+ /**
614
+ * Attendee email address.
615
+ */
616
+ email: string;
617
+ /**
618
+ * Whether attendance is optional.
619
+ */
620
+ isOptional?: boolean;
621
+ };
622
+ /**
623
+ * Actual provider capabilities used by calendar editors.
624
+ */
625
+ export type CalendarCapabilities = {
626
+ /**
627
+ * Whether event-level automatic invitation declines are supported.
628
+ */
629
+ autoDecline: boolean;
630
+ conferenceProvider?: null | ConferenceProvider;
631
+ /**
632
+ * Whether arbitrary RFC 5545 recurrence properties can be written.
633
+ */
634
+ customRecurrence: boolean;
635
+ /**
636
+ * Whether email reminders are delivered by the provider or Rox.
637
+ */
638
+ emailReminders: boolean;
639
+ /**
640
+ * Whether the organizer can set what guests may do.
641
+ */
642
+ guestPolicy: boolean;
643
+ /**
644
+ * Whether an existing conference can be detached.
645
+ */
646
+ removeConference: boolean;
647
+ /**
648
+ * Whether an attendee can reset their RSVP to unanswered.
649
+ */
650
+ resetRsvp: boolean;
651
+ };
652
+ /**
653
+ * How much of a recurring series a deletion removes.
654
+ */
655
+ export type CalendarDeletionScopeParam = 'all' | 'this_event' | 'this_and_following';
656
+ /**
657
+ * A stable, first-class Rox calendar event entity.
658
+ *
659
+ * Content fields hold the canonical source's values: the account's primary
660
+ * calendar copy when one is synced, else the freshest remaining copy.
661
+ */
662
+ export type CalendarEvent = {
663
+ /**
664
+ * Attendees, keyed by email during persistence.
665
+ */
666
+ attendees: Array<CalendarAttendee>;
667
+ /**
668
+ * Calendar the canonical source belongs to, when known. Absent only in
669
+ * projections stored before calendars were attributed.
670
+ */
671
+ calendarId?: string | null;
672
+ conferenceProvider?: null | ConferenceProvider;
673
+ /**
674
+ * Direct join URL when known.
675
+ */
676
+ conferenceUrl?: string | null;
677
+ /**
678
+ * Entity creation time.
679
+ */
680
+ createdAt: string;
681
+ /**
682
+ * Provider-reported creator email. Distinct from the organizer when
683
+ * someone writes onto a calendar they do not own. Omitted from stored
684
+ * projections when unknown so events ingested before this field still
685
+ * compare equal.
686
+ */
687
+ creatorEmail?: string | null;
688
+ /**
689
+ * Provider-reported creator display name.
690
+ */
691
+ creatorName?: string | null;
692
+ /**
693
+ * Optional event body.
694
+ */
695
+ description?: string | null;
696
+ /**
697
+ * Provider event type. Skipped when it is the regular type so
698
+ * projections stored before event types were modeled still compare
699
+ * equal.
700
+ */
701
+ eventType?: EventType;
702
+ /**
703
+ * What the organizer lets guests do: the canonical copy's values, or
704
+ * Google's defaults for an event synced before the policy was modeled.
705
+ */
706
+ guestPolicy: GuestPolicy;
707
+ /**
708
+ * RFC 5545 UID used to reconcile provider and email sources.
709
+ */
710
+ icalUid: string;
711
+ /**
712
+ * Rox entity identifier.
713
+ */
714
+ id: string;
715
+ /**
716
+ * Whether the canonical source's calendar prohibits editing it.
717
+ */
718
+ isReadOnly: boolean;
719
+ /**
720
+ * Whether this is a snapshot of a meeting shared with the owner, which
721
+ * Rox added to their calendar as a private copy: the meeting's changes
722
+ * never reach it, and nothing done to it reaches the meeting.
723
+ */
724
+ isSnapshot: boolean;
725
+ /**
726
+ * Optional physical or virtual location label.
727
+ */
728
+ location?: string | null;
729
+ /**
730
+ * Organizer email.
731
+ */
732
+ organizerEmail?: string | null;
733
+ /**
734
+ * Organizer display name.
735
+ */
736
+ organizerName?: string | null;
737
+ /**
738
+ * Rox user who owns this event entity.
739
+ */
740
+ ownerId: string;
741
+ /**
742
+ * Raw RFC 5545 recurrence properties (`RRULE`, `RDATE`, `EXDATE`).
743
+ */
744
+ recurrenceLines: Array<string>;
745
+ /**
746
+ * Per-user reminder configuration. Skipped when it is the provider
747
+ * default so projections stored before reminders were modeled still
748
+ * compare equal.
749
+ */
750
+ reminders?: EventReminders;
751
+ /**
752
+ * Provider/iCalendar sequence number.
753
+ */
754
+ sequence: number;
755
+ /**
756
+ * Content of every active copy of this event, canonical first: the
757
+ * primary calendar's copy, then the freshest. A client picks the copy
758
+ * whose calendar it is showing and falls back to the first. Populated
759
+ * only on the read path, so stored projections omit it.
760
+ */
761
+ sources?: Array<CalendarEventSourceContent>;
762
+ /**
763
+ * Event status.
764
+ */
765
+ status: EventStatus;
766
+ /**
767
+ * Timed or all-day shape.
768
+ */
769
+ time: EventTime;
770
+ /**
771
+ * Display title.
772
+ */
773
+ title: string;
774
+ /**
775
+ * Availability behavior.
776
+ */
777
+ transparency: EventTransparency;
778
+ /**
779
+ * Entity update time.
780
+ */
781
+ updatedAt: string;
782
+ /**
783
+ * What the viewing requester may do with the event. Resolved only on
784
+ * the read path, alongside each attendee's `is_self`; nothing when no
785
+ * viewer is known. Source projections never store it.
786
+ */
787
+ viewerCan: ViewerCapabilities;
788
+ /**
789
+ * Event visibility.
790
+ */
791
+ visibility: EventVisibility;
792
+ };
793
+ /**
794
+ * Provider-validated external event link.
795
+ */
796
+ export type CalendarEventProviderUrl = {
797
+ /**
798
+ * None when the event no longer exists at its provider.
799
+ */
800
+ url?: string | null;
801
+ };
802
+ /**
803
+ * The content one provider copy of an event carries.
804
+ *
805
+ * Google keeps these fields per calendar copy: a shared calendar's copy of a
806
+ * member's event can have its own title, type, reminders, and access role.
807
+ * The entity holds its canonical source's values. Every other copy's values
808
+ * are read from here so a client can show the copy that belongs to the
809
+ * calendar being viewed.
810
+ */
811
+ export type CalendarEventSourceContent = {
812
+ /**
813
+ * Calendar this copy lives on.
814
+ */
815
+ calendarId: string;
816
+ /**
817
+ * Provider-reported creator email.
818
+ */
819
+ creatorEmail?: string | null;
820
+ /**
821
+ * Provider-reported creator display name.
822
+ */
823
+ creatorName?: string | null;
824
+ /**
825
+ * Optional event body.
826
+ */
827
+ description?: string | null;
828
+ /**
829
+ * Provider event type.
830
+ */
831
+ eventType: EventType;
832
+ /**
833
+ * Whether the calendar's access role prohibits editing this copy.
834
+ */
835
+ isReadOnly: boolean;
836
+ /**
837
+ * Optional physical or virtual location label.
838
+ */
839
+ location?: string | null;
840
+ /**
841
+ * Reminder configuration of this copy.
842
+ */
843
+ reminders: EventReminders;
844
+ /**
845
+ * Display title.
846
+ */
847
+ title: string;
848
+ /**
849
+ * Availability behavior.
850
+ */
851
+ transparency: EventTransparency;
852
+ /**
853
+ * Event visibility.
854
+ */
855
+ visibility: EventVisibility;
856
+ };
857
+ /**
858
+ * A guest added to an event.
859
+ */
860
+ export type CalendarGuestInputBody = {
861
+ /**
862
+ * Guest email address.
863
+ */
864
+ email: string;
865
+ /**
866
+ * Whether attendance is optional.
867
+ */
868
+ optional?: boolean;
869
+ };
870
+ /**
871
+ * A channel member's request to be added as a guest of an event they see
872
+ * only through a channel share.
873
+ */
874
+ export type CalendarJoinRequest = {
875
+ /**
876
+ * When the request was made.
877
+ */
878
+ createdAt: string;
879
+ /**
880
+ * The sharer's event entity that was shared with the channel.
881
+ */
882
+ eventId: string;
883
+ /**
884
+ * Request identifier.
885
+ */
886
+ id: string;
887
+ /**
888
+ * Address the sharer invites when accepting.
889
+ */
890
+ requesterEmail: string;
891
+ /**
892
+ * Rox user asking to join.
893
+ */
894
+ requesterId: string;
895
+ /**
896
+ * Where the request stands.
897
+ */
898
+ status: CalendarJoinRequestStatus;
899
+ };
900
+ /**
901
+ * How a sharer answers a request to join their event.
902
+ */
903
+ export type CalendarJoinRequestDecision = 'accept' | 'decline';
904
+ /**
905
+ * Lifecycle of a request to be added as a guest of a shared event.
906
+ */
907
+ export type CalendarJoinRequestStatus = 'pending' | 'accepted' | 'declined';
908
+ /**
909
+ * HTTP error body returned by calendar mutation endpoints.
910
+ */
911
+ export type CalendarMutationApiError = {
912
+ /**
913
+ * Machine-readable failure category.
914
+ */
915
+ code: CalendarMutationErrorCode;
916
+ /**
917
+ * Human-readable failure description.
918
+ */
919
+ message: string;
920
+ };
921
+ /**
922
+ * Machine-readable failure category for calendar mutations.
923
+ */
924
+ export type CalendarMutationErrorCode = 'not_found' | 'occurrence_not_found' | 'read_only' | 'no_writable_calendar' | 'not_attendee' | 'not_organizer' | 'guests_cannot_invite' | 'guest_list_hidden' | 'guests_cannot_modify' | 'already_on_calendar' | 'join_request_open' | 'copy_refused' | 'snapshot' | 'invalid_input' | 'reauth_required' | 'provider_rejected' | 'retryable' | 'persist_failed' | 'macro_call_failed' | 'copy_choice_required' | 'confirmation_required';
925
+ /**
926
+ * Provider selected from the persisted calendar account and email binding.
927
+ */
928
+ export type CalendarProvider = 'google' | 'outlook';
929
+ /**
930
+ * Safe preview and recovery response; never exposes the opaque provider snapshot.
931
+ */
932
+ export type CalendarReplacementView = {
933
+ /**
934
+ * Guest count for cancellation and reinvitation confirmation.
935
+ */
936
+ attendeeCount: number;
937
+ /**
938
+ * Number of completed provider steps.
939
+ */
940
+ completedSteps: number;
941
+ event?: null | CalendarEvent;
942
+ /**
943
+ * Entire recurring series, including exceptions, is replaced.
944
+ */
945
+ isSeries: boolean;
946
+ /**
947
+ * Use this identity when confirming or checking progress.
948
+ */
949
+ operationId: string;
950
+ /**
951
+ * Original event for manual review.
952
+ */
953
+ providerUrl?: string | null;
954
+ /**
955
+ * The provider conference is removed.
956
+ */
957
+ removeConference: boolean;
958
+ /**
959
+ * New provider event, when creation was confirmed.
960
+ */
961
+ replacementUrl?: string | null;
962
+ /**
963
+ * Current durable state.
964
+ */
965
+ status: ReplacementStatus;
966
+ /**
967
+ * Frozen time.
968
+ */
969
+ time: EventTime;
970
+ /**
971
+ * Frozen title.
972
+ */
973
+ title: string;
974
+ /**
975
+ * Number of provider steps in this operation.
976
+ */
977
+ totalSteps: number;
978
+ };
979
+ /**
980
+ * How much of a recurring series an RSVP applies to.
981
+ *
982
+ * Unlike deletion there is no this-and-following variant: the provider
983
+ * cannot express a forward-scoped response, so offering one would be a
984
+ * promise sync could not keep.
985
+ */
986
+ export type CalendarRsvpScopeParam = 'all' | 'this_event';
987
+ /**
988
+ * How much of a recurring series an update applies to.
989
+ *
990
+ * Like RSVPs there is no this-and-following variant: the provider cannot
991
+ * express a forward-scoped edit as one write, and emulating it (truncate
992
+ * the series, insert an edited clone) is non-atomic and re-invites the
993
+ * attendees of the clone. Compose it from a this-and-following deletion
994
+ * and a create when that shape is wanted.
995
+ */
996
+ export type CalendarUpdateScopeParam = 'all' | 'this_event';
997
+ /**
998
+ * A requested change to an event's conferencing. Omitting the field leaves
999
+ * the existing conference untouched; only these values change it.
1000
+ */
1001
+ export type ConferenceChange = 'provider_default' | 'microsoft_teams' | 'google_meet' | 'none';
1002
+ /**
1003
+ * The conferencing system backing an event's join URL.
1004
+ *
1005
+ * Calendars can create Google Meet or Microsoft Teams according to their
1006
+ * capabilities. Imported third-party conferences are labeled separately.
1007
+ * Omitting a conference change preserves the current conference; explicit
1008
+ * changes still require provider and calendar capability validation.
1009
+ */
1010
+ export type ConferenceProvider = 'microsoft_teams' | 'google_meet' | 'other';
1011
+ /**
1012
+ * Request body adding a shared event to the requester's calendar.
1013
+ */
1014
+ export type CopyCalendarEventRequest = {
1015
+ /**
1016
+ * Google calendar to add the copy to; defaults to the requester's
1017
+ * primary inbox's primary calendar.
1018
+ */
1019
+ calendarId?: string | null;
1020
+ };
1021
+ /**
1022
+ * A new booking link, saved after the user approved it.
1023
+ */
1024
+ export type CreateBookingLinkRequest = {
1025
+ /**
1026
+ * Full booking rules and availability the user approved.
1027
+ */
1028
+ draft: BookingLinkDraft;
1029
+ /**
1030
+ * The user's reply approving this proposal, quoted verbatim.
1031
+ */
1032
+ userConfirmation: string;
1033
+ };
1034
+ /**
1035
+ * Request body creating a calendar event on the requester's calendar.
1036
+ */
1037
+ export type CreateCalendarEventRequest = {
1038
+ /**
1039
+ * Invited attendees.
1040
+ */
1041
+ attendees?: Array<CalendarAttendeeInputBody>;
1042
+ /**
1043
+ * Exact calendar to create the event on; takes precedence over the
1044
+ * inbox default.
1045
+ */
1046
+ calendarId?: string | null;
1047
+ conference?: null | ConferenceChange;
1048
+ /**
1049
+ * Optional event body.
1050
+ */
1051
+ description?: string | null;
1052
+ /**
1053
+ * Connected inbox whose primary calendar receives the event; defaults
1054
+ * to the requester's primary inbox.
1055
+ */
1056
+ emailLinkId?: string | null;
1057
+ guestPolicy?: null | GuestPolicy;
1058
+ /**
1059
+ * Stable retry identity, scoped to the authenticated organizer.
1060
+ */
1061
+ idempotencyKey?: string | null;
1062
+ /**
1063
+ * Optional location label.
1064
+ */
1065
+ location?: string | null;
1066
+ /**
1067
+ * Mint a Rox call and write its join link into the description and
1068
+ * location before creating the event, so the invitation carries it.
1069
+ * Cannot be combined with `conference`.
1070
+ */
1071
+ macroCall?: boolean;
1072
+ outOfOffice?: null | OutOfOfficeProperties;
1073
+ /**
1074
+ * Raw RFC 5545 recurrence properties (`RRULE`, `RDATE`, `EXDATE`).
1075
+ */
1076
+ recurrenceLines?: Array<string>;
1077
+ reminders?: null | EventReminders;
1078
+ /**
1079
+ * Timed or all-day shape.
1080
+ */
1081
+ time: EventTime;
1082
+ /**
1083
+ * Display title.
1084
+ */
1085
+ title: string;
1086
+ transparency?: null | EventTransparency;
1087
+ visibility?: null | EventVisibility;
1088
+ };
1089
+ /**
1090
+ * Replacement configuration for one booking link, saved after the user approved it.
1091
+ */
1092
+ export type EditBookingLinkRequest = {
1093
+ /**
1094
+ * Full edited booking rules and availability the user approved.
1095
+ */
1096
+ draft: BookingLinkDraft;
1097
+ /**
1098
+ * Profile revision the edit was prepared from; a newer revision conflicts.
1099
+ */
1100
+ expectedRevision: number;
1101
+ /**
1102
+ * The user's reply approving this proposal, quoted verbatim.
1103
+ */
1104
+ userConfirmation: string;
1105
+ };
1106
+ /**
1107
+ * One reminder: how it alerts and how many minutes before the event start
1108
+ * (before midnight in the calendar's zone for all-day events) it fires.
1109
+ */
1110
+ export type EventReminderOverride = {
1111
+ /**
1112
+ * Provider method, stored verbatim; only `popup` fires Macro
1113
+ * notifications.
1114
+ */
1115
+ method: string;
1116
+ /**
1117
+ * Minutes before the event start.
1118
+ */
1119
+ minutes: number;
1120
+ };
1121
+ /**
1122
+ * Per-user reminder configuration for an event, mirroring Google's model:
1123
+ * either the calendar's default reminders apply, or the explicit overrides
1124
+ * replace them entirely.
1125
+ */
1126
+ export type EventReminders = {
1127
+ /**
1128
+ * Explicit reminders replacing the defaults when `use_default` is off.
1129
+ */
1130
+ overrides?: Array<EventReminderOverride>;
1131
+ /**
1132
+ * Whether the calendar's default reminders apply.
1133
+ */
1134
+ useDefault: boolean;
1135
+ };
1136
+ /**
1137
+ * Canonical event status.
1138
+ */
1139
+ export type EventStatus = 'confirmed' | 'tentative' | 'cancelled';
1140
+ /**
1141
+ * The mutually exclusive time shape of a calendar event.
1142
+ *
1143
+ * Fields are renamed per variant rather than with `rename_all_fields`
1144
+ * because utoipa only honors variant-level serde renames when it
1145
+ * derives the OpenAPI schema.
1146
+ */
1147
+ export type EventTime = {
1148
+ /**
1149
+ * Exclusive end instant; equal to the start for an imported point event.
1150
+ */
1151
+ endsAt: string;
1152
+ kind: 'timed';
1153
+ /**
1154
+ * Inclusive start instant.
1155
+ */
1156
+ startsAt: string;
1157
+ /**
1158
+ * Original IANA time-zone identifier, when supplied.
1159
+ */
1160
+ timeZone?: string | null;
1161
+ } | {
1162
+ /**
1163
+ * Exclusive local end date.
1164
+ */
1165
+ endDate: string;
1166
+ kind: 'allDay';
1167
+ /**
1168
+ * Inclusive local start date.
1169
+ */
1170
+ startDate: string;
1171
+ };
1172
+ /**
1173
+ * Whether an event blocks availability.
1174
+ */
1175
+ export type EventTransparency = 'opaque' | 'transparent';
1176
+ /**
1177
+ * Google's event type: ordinary meetings versus the status-style entries
1178
+ * (working location, out of office, focus time, birthdays) Google renders
1179
+ * and notifies differently. Immutable at the provider after creation.
1180
+ */
1181
+ export type EventType = 'default' | 'out_of_office' | 'focus_time' | 'working_location' | 'birthday' | 'from_gmail';
1182
+ /**
1183
+ * Visibility of event details.
1184
+ */
1185
+ export type EventVisibility = 'default' | 'public' | 'private' | 'confidential';
1186
+ /**
1187
+ * The switches an organizer sets on an event to bound what its guests may
1188
+ * do. Google omits a switch from the payload while it holds its default.
1189
+ */
1190
+ export type GuestPolicy = {
1191
+ /**
1192
+ * Whether guests may invite others.
1193
+ */
1194
+ canInviteOthers: boolean;
1195
+ /**
1196
+ * Whether guests may change the event, including its guest list.
1197
+ */
1198
+ canModify: boolean;
1199
+ /**
1200
+ * Whether guests may see the guest list.
1201
+ */
1202
+ canSeeOtherGuests: boolean;
1203
+ };
1204
+ /**
1205
+ * Counts can overlap: a rescheduled event can also be completed or cancelled.
1206
+ */
1207
+ export type InsightCounts = {
1208
+ /**
1209
+ * Cancelled bookings, grouped by their scheduled start.
1210
+ */
1211
+ cancelled: number;
1212
+ /**
1213
+ * Confirmed, ended bookings excluding explicit no-shows.
1214
+ */
1215
+ completed: number;
1216
+ /**
1217
+ * Explicit guest no-shows only.
1218
+ */
1219
+ guestNoShow: number;
1220
+ /**
1221
+ * Explicit host no-shows only.
1222
+ */
1223
+ hostNoShow: number;
1224
+ /**
1225
+ * Bookings with at least one completed reschedule, counted once.
1226
+ */
1227
+ rescheduled: number;
1228
+ /**
1229
+ * All bookings except failed and processing requests.
1230
+ */
1231
+ total: number;
1232
+ };
1233
+ /**
1234
+ * One complete period of metrics and chart data, with no guest contact information.
1235
+ */
1236
+ export type InsightPeriod = {
1237
+ /**
1238
+ * Average scheduled duration of all confirmed bookings, including future ones.
1239
+ */
1240
+ averageMinutes: number;
1241
+ /**
1242
+ * Summary event counts.
1243
+ */
1244
+ counts: InsightCounts;
1245
+ /**
1246
+ * Local-date counts, including dates with zero bookings.
1247
+ */
1248
+ days: {
1249
+ [key: string]: InsightCounts;
1250
+ };
1251
+ /**
1252
+ * Booking counts by link identity.
1253
+ */
1254
+ eventCounts: {
1255
+ [key: string]: number;
1256
+ };
1257
+ /**
1258
+ * Booking counts by host; collective bookings count once for each host.
1259
+ */
1260
+ hostCounts: {
1261
+ [key: string]: number;
1262
+ };
1263
+ /**
1264
+ * Booking counts by local hour, indexed from 0 to 23.
1265
+ */
1266
+ hours: Array<number>;
1267
+ /**
1268
+ * Scheduled minutes of completed meetings, not actual call duration.
1269
+ */
1270
+ meetingMinutes: number;
1271
+ };
1272
+ /**
1273
+ * Inclusive local dates and optional booking/host filters.
1274
+ */
1275
+ export type InsightQuery = {
1276
+ /**
1277
+ * Restrict to one booking link; omit for all links.
1278
+ */
1279
+ eventTypeId?: string | null;
1280
+ /**
1281
+ * First local date, inclusive.
1282
+ */
1283
+ from: string;
1284
+ /**
1285
+ * Restrict to one assigned host; omit for all hosts.
1286
+ */
1287
+ hostId?: string | null;
1288
+ /**
1289
+ * IANA zone used for dates and hour-of-day grouping.
1290
+ */
1291
+ timeZone: string;
1292
+ /**
1293
+ * Last local date, inclusive; maximum 366 days.
1294
+ */
1295
+ to: string;
1296
+ };
1297
+ /**
1298
+ * Request body adding guests to an event without touching anyone already
1299
+ * invited.
1300
+ */
1301
+ export type InviteCalendarEventGuestsRequest = {
1302
+ /**
1303
+ * Calendar whose copy of the event is written, for an event synced from
1304
+ * more than one calendar. Omit to write the canonical copy.
1305
+ */
1306
+ calendarId?: string | null;
1307
+ /**
1308
+ * Guests to add; anyone already on the event is skipped.
1309
+ */
1310
+ guests: Array<CalendarGuestInputBody>;
1311
+ /**
1312
+ * Inbox address holding the copy this request changes. An agent run
1313
+ * must name it when the meeting is on more than one of the requester's
1314
+ * inboxes, and it must be the inbox holding the addressed copy; a
1315
+ * mismatch is refused whoever sends it.
1316
+ */
1317
+ inbox?: string | null;
1318
+ /**
1319
+ * Original-start key of the occurrence the guests are added to.
1320
+ */
1321
+ recurrenceId?: string | null;
1322
+ scope?: null | CalendarUpdateScopeParam;
1323
+ };
1324
+ /**
1325
+ * Calendars visible to the requester across connected and delegated inboxes.
1326
+ */
1327
+ export type ListCalendarsResponse = {
1328
+ /**
1329
+ * Primaries and writable calendars first.
1330
+ */
1331
+ calendars: Array<VisibleCalendar>;
1332
+ };
1333
+ /**
1334
+ * How an out-of-office event responds to conflicting invitations, mirroring
1335
+ * Google's `autoDeclineMode`.
1336
+ */
1337
+ export type OutOfOfficeAutoDeclineMode = 'decline_none' | 'decline_all_conflicting_invitations' | 'decline_only_new_conflicting_invitations';
1338
+ /**
1339
+ * The extra properties Google requires on an out-of-office event, mirroring
1340
+ * its `outOfOfficeProperties` block. Their presence on a draft or patch is
1341
+ * what marks the mutation as out-of-office.
1342
+ */
1343
+ export type OutOfOfficeProperties = {
1344
+ /**
1345
+ * How conflicting invitations are handled while the user is out.
1346
+ */
1347
+ autoDeclineMode?: OutOfOfficeAutoDeclineMode;
1348
+ /**
1349
+ * Message returned to organizers whose invitations are auto-declined.
1350
+ */
1351
+ declineMessage?: string | null;
1352
+ };
1353
+ /**
1354
+ * A read-only preview request. Confirmation uses the returned operation identity.
1355
+ */
1356
+ export type PrepareCalendarReplacementRequest = {
1357
+ /**
1358
+ * Exact calendar copy; defaults to canonical.
1359
+ */
1360
+ calendarId?: string | null;
1361
+ /**
1362
+ * Original-start key; omitted to replace the entire series.
1363
+ */
1364
+ recurrenceId?: string | null;
1365
+ /**
1366
+ * Omit the provider conference in the replacement.
1367
+ */
1368
+ removeConference: boolean;
1369
+ };
1370
+ /**
1371
+ * Booking settings of one profile.
1372
+ */
1373
+ export type ProfileResponse = {
1374
+ /**
1375
+ * Full settings, including the revision to save against.
1376
+ */
1377
+ profile: BookingProfile;
1378
+ };
1379
+ /**
1380
+ * A booking with its booker management capability.
1381
+ */
1382
+ export type ReceiptResponse = {
1383
+ /**
1384
+ * The booking.
1385
+ */
1386
+ booking: Booking;
1387
+ /**
1388
+ * IANA time zone of the booking's availability schedule.
1389
+ */
1390
+ scheduleTimeZone: string;
1391
+ /**
1392
+ * Bearer capability for the booker's receipt, reschedule and cancel pages.
1393
+ */
1394
+ token: string;
1395
+ };
1396
+ /**
1397
+ * Realtime signal that a connected inbox's calendar projection changed.
1398
+ */
1399
+ export type RefreshCalendarEvent = {
1400
+ event: 'synced';
1401
+ /**
1402
+ * Connected inbox whose calendars changed.
1403
+ */
1404
+ link_id: string;
1405
+ /**
1406
+ * False only when the run excludes changes to teammate OOO projections.
1407
+ */
1408
+ team_ooo_changed: boolean;
1409
+ } | {
1410
+ event: 'team_sharing_changed';
1411
+ /**
1412
+ * True for sharing changes and any possibly affected OOO projection.
1413
+ */
1414
+ team_ooo_changed: boolean;
1415
+ } | {
1416
+ event: 'join_request_answered';
1417
+ /**
1418
+ * The shared event they asked to join.
1419
+ */
1420
+ event_id: string;
1421
+ };
1422
+ /**
1423
+ * User-visible workflow state.
1424
+ */
1425
+ export type ReplacementStatus = 'needs_confirmation' | 'in_progress' | 'complete';
1426
+ /**
1427
+ * Request body answering a join request.
1428
+ */
1429
+ export type RespondToJoinRequestRequest = {
1430
+ /**
1431
+ * The sharer's answer.
1432
+ */
1433
+ decision: CalendarJoinRequestDecision;
1434
+ };
1435
+ /**
1436
+ * Request body setting the requester's RSVP on an event.
1437
+ */
1438
+ export type RsvpCalendarEventRequest = {
1439
+ /**
1440
+ * Calendar whose copy of the event is answered, for an event synced
1441
+ * from more than one calendar. Omit to answer on the canonical copy.
1442
+ */
1443
+ calendarId?: string | null;
1444
+ /**
1445
+ * Original-start key of the occurrence the response targets.
1446
+ */
1447
+ recurrenceId?: string | null;
1448
+ /**
1449
+ * The owned connected address whose attendance is changed. Validated by the domain.
1450
+ * Omit to answer as the inbox the addressed copy syncs through.
1451
+ */
1452
+ respondingEmail?: string | null;
1453
+ /**
1454
+ * The response to record for the connected account.
1455
+ */
1456
+ response: AttendeeResponseStatus;
1457
+ scope?: null | CalendarRsvpScopeParam;
1458
+ };
1459
+ /**
1460
+ * Team host assignment policy.
1461
+ */
1462
+ export type SchedulingMode = 'individual' | 'collective' | 'roundRobin';
1463
+ /**
1464
+ * Available start times.
1465
+ */
1466
+ export type SlotsResponse = {
1467
+ /**
1468
+ * Every available slot.
1469
+ */
1470
+ slots: Array<BookingSlot>;
1471
+ };
1472
+ /**
1473
+ * What a user exposes through their team membership.
1474
+ */
1475
+ export type TeamCalendarSharing = 'all' | 'busy_only' | 'none';
1476
+ /**
1477
+ * Own-user sharing preference.
1478
+ */
1479
+ export type TeamCalendarSharingBody = {
1480
+ /**
1481
+ * Busy-only is the default, including when no setting has been saved.
1482
+ */
1483
+ sharing: TeamCalendarSharing;
1484
+ };
1485
+ /**
1486
+ * Request body patching an event; omitted fields are left untouched.
1487
+ */
1488
+ export type UpdateCalendarEventRequest = {
1489
+ /**
1490
+ * Replacement attendee list.
1491
+ */
1492
+ attendees?: Array<CalendarAttendeeInputBody> | null;
1493
+ /**
1494
+ * Calendar whose copy of the event is patched, for an event synced from
1495
+ * more than one calendar. Omit to patch the canonical copy.
1496
+ */
1497
+ calendarId?: string | null;
1498
+ conference?: null | ConferenceChange;
1499
+ /**
1500
+ * Replacement description; an empty string clears it.
1501
+ */
1502
+ description?: string | null;
1503
+ guestPolicy?: null | GuestPolicy;
1504
+ /**
1505
+ * Inbox address holding the copy this request changes. An agent run
1506
+ * must name it when the meeting is on more than one of the requester's
1507
+ * inboxes, and it must be the inbox holding the addressed copy; a
1508
+ * mismatch is refused whoever sends it.
1509
+ */
1510
+ inbox?: string | null;
1511
+ /**
1512
+ * Replacement location; an empty string clears it.
1513
+ */
1514
+ location?: string | null;
1515
+ /**
1516
+ * Switch the event to a Rox call in this write: mint one, write its
1517
+ * join link into the description and location, and detach any provider
1518
+ * conference. An event already holding a Rox call keeps it. Cannot be
1519
+ * combined with `conference`.
1520
+ */
1521
+ macroCall?: boolean;
1522
+ outOfOffice?: null | OutOfOfficeProperties;
1523
+ /**
1524
+ * Original-start key of the occurrence the update targets.
1525
+ */
1526
+ recurrenceId?: string | null;
1527
+ /**
1528
+ * Replacement recurrence properties; an empty list clears them.
1529
+ */
1530
+ recurrenceLines?: Array<string> | null;
1531
+ reminders?: null | EventReminders;
1532
+ scope?: null | CalendarUpdateScopeParam;
1533
+ time?: null | EventTime;
1534
+ /**
1535
+ * Replacement title; an empty string clears it.
1536
+ */
1537
+ title?: string | null;
1538
+ transparency?: null | EventTransparency;
1539
+ visibility?: null | EventVisibility;
1540
+ };
1541
+ /**
1542
+ * What the viewing requester may do with an event.
1543
+ */
1544
+ export type ViewerCapabilities = {
1545
+ /**
1546
+ * Change the event's details (title, time, description, conference).
1547
+ */
1548
+ editDetails: boolean;
1549
+ /**
1550
+ * Add guests.
1551
+ */
1552
+ inviteGuests: boolean;
1553
+ /**
1554
+ * Act as the event's organizer: replace its whole guest list and manage
1555
+ * its conferencing.
1556
+ */
1557
+ organize: boolean;
1558
+ /**
1559
+ * Remove guests.
1560
+ */
1561
+ removeGuests: boolean;
1562
+ /**
1563
+ * Answer the invitation.
1564
+ */
1565
+ rsvp: boolean;
1566
+ /**
1567
+ * Change the event's guest policy, which only Google calendars have.
1568
+ */
1569
+ setGuestPolicy: boolean;
1570
+ };
1571
+ /**
1572
+ * A calendar visible to a requester, listed for pickers and filters.
1573
+ */
1574
+ export type VisibleCalendar = {
1575
+ /**
1576
+ * Provider features available on this actual calendar.
1577
+ */
1578
+ capabilities: CalendarCapabilities;
1579
+ /**
1580
+ * Provider color.
1581
+ */
1582
+ color?: string | null;
1583
+ /**
1584
+ * Whether this calendar counts toward the requester's busy time: their
1585
+ * setting in Settings → Calendar, on by default for every calendar.
1586
+ * The nearest thing to "this is the requester's own": a provider's
1587
+ * access role only says what they may do, on a colleague's calendar too.
1588
+ */
1589
+ contributesToAvailability?: boolean;
1590
+ /**
1591
+ * Default reminders applied to events that keep `useDefault`.
1592
+ */
1593
+ defaultReminders: Array<EventReminderOverride>;
1594
+ /**
1595
+ * Connected inbox address, for grouping in multi-inbox pickers.
1596
+ */
1597
+ emailAddress: string;
1598
+ /**
1599
+ * Connected inbox that syncs this calendar.
1600
+ */
1601
+ emailLinkId: string;
1602
+ /**
1603
+ * Persisted Rox calendar identifier.
1604
+ */
1605
+ id: string;
1606
+ /**
1607
+ * Whether this is its account's primary calendar.
1608
+ */
1609
+ isPrimary: boolean;
1610
+ /**
1611
+ * Whether this is one of Google's shared system calendars (holidays,
1612
+ * birthdays) the account subscribes to rather than one a person maintains.
1613
+ */
1614
+ isSubscription: boolean;
1615
+ /**
1616
+ * Whether the grant can create and modify events on this calendar.
1617
+ */
1618
+ isWritable: boolean;
1619
+ /**
1620
+ * Provider display name.
1621
+ */
1622
+ name: string;
1623
+ /**
1624
+ * Calendar provider, for display and reconnect routing.
1625
+ */
1626
+ provider: CalendarProvider;
1627
+ /**
1628
+ * A persistent sync failure isolated to this calendar, surfaced so the
1629
+ * settings row can badge it. `None` while the calendar is syncing
1630
+ * normally or a failure has not yet crossed the persistence threshold.
1631
+ */
1632
+ syncError?: string | null;
1633
+ };
1634
+ export type GetAvailabilityCalendarsData = {
1635
+ body?: never;
1636
+ path?: never;
1637
+ query?: never;
1638
+ url: '/availability-calendars';
1639
+ };
1640
+ export type GetAvailabilityCalendarsResponses = {
1641
+ 200: AvailabilityCalendarsResponse;
1642
+ };
1643
+ export type GetAvailabilityCalendarsResponse = GetAvailabilityCalendarsResponses[keyof GetAvailabilityCalendarsResponses];
1644
+ export type SetAvailabilityCalendarData = {
1645
+ body: AvailabilityCalendarBody;
1646
+ path: {
1647
+ calendar_id: string;
1648
+ };
1649
+ query?: never;
1650
+ url: '/availability-calendars/{calendar_id}';
1651
+ };
1652
+ export type SetAvailabilityCalendarResponses = {
1653
+ 204: void;
1654
+ };
1655
+ export type SetAvailabilityCalendarResponse = SetAvailabilityCalendarResponses[keyof SetAvailabilityCalendarResponses];
1656
+ export type ListCalendarsData = {
1657
+ body?: never;
1658
+ path?: never;
1659
+ query?: never;
1660
+ url: '/calendars';
1661
+ };
1662
+ export type ListCalendarsErrors = {
1663
+ /**
1664
+ * Authentication required
1665
+ */
1666
+ 401: unknown;
1667
+ /**
1668
+ * Transient failure
1669
+ */
1670
+ 503: CalendarMutationApiError;
1671
+ };
1672
+ export type ListCalendarsError = ListCalendarsErrors[keyof ListCalendarsErrors];
1673
+ export type ListCalendarsResponses = {
1674
+ /**
1675
+ * Calendars visible to the requester
1676
+ */
1677
+ 200: ListCalendarsResponse;
1678
+ };
1679
+ export type ListCalendarsResponse2 = ListCalendarsResponses[keyof ListCalendarsResponses];
1680
+ export type CreateCalendarEventData = {
1681
+ body: CreateCalendarEventRequest;
1682
+ path?: never;
1683
+ query?: never;
1684
+ url: '/events';
1685
+ };
1686
+ export type CreateCalendarEventErrors = {
1687
+ /**
1688
+ * Invalid event fields
1689
+ */
1690
+ 400: CalendarMutationApiError;
1691
+ /**
1692
+ * Authentication required
1693
+ */
1694
+ 401: unknown;
1695
+ /**
1696
+ * Calendar is read-only or needs reauthorization, or an agent's program asked to create without a review or confirmation
1697
+ */
1698
+ 403: CalendarMutationApiError;
1699
+ /**
1700
+ * No writable calendar or the provider rejected the event
1701
+ */
1702
+ 409: CalendarMutationApiError;
1703
+ /**
1704
+ * Transient provider failure, or the Rox call could not be created
1705
+ */
1706
+ 503: CalendarMutationApiError;
1707
+ };
1708
+ export type CreateCalendarEventError = CreateCalendarEventErrors[keyof CreateCalendarEventErrors];
1709
+ export type CreateCalendarEventResponses = {
1710
+ /**
1711
+ * The created calendar event
1712
+ */
1713
+ 201: CalendarEvent;
1714
+ };
1715
+ export type CreateCalendarEventResponse = CreateCalendarEventResponses[keyof CreateCalendarEventResponses];
1716
+ export type DeleteCalendarEventData = {
1717
+ body?: never;
1718
+ path: {
1719
+ /**
1720
+ * Calendar event entity id
1721
+ */
1722
+ event_id: string;
1723
+ };
1724
+ query?: {
1725
+ /**
1726
+ * Calendar whose copy of the event is deleted, for an event synced from
1727
+ * more than one calendar. Omit to delete the canonical copy.
1728
+ */
1729
+ calendarId?: string;
1730
+ /**
1731
+ * Deletion scope; defaults to the entire event or series.
1732
+ */
1733
+ scope?: CalendarDeletionScopeParam;
1734
+ /**
1735
+ * Original-start key of the occurrence a scoped deletion targets.
1736
+ */
1737
+ recurrenceId?: string;
1738
+ /**
1739
+ * Inbox address holding the copy this request deletes. An agent run
1740
+ * must name it when the meeting is on more than one of the requester's
1741
+ * inboxes, and it must be the inbox holding the addressed copy; a
1742
+ * mismatch is refused whoever sends it.
1743
+ */
1744
+ inbox?: string;
1745
+ };
1746
+ url: '/events/{event_id}';
1747
+ };
1748
+ export type DeleteCalendarEventErrors = {
1749
+ /**
1750
+ * Authentication required
1751
+ */
1752
+ 401: unknown;
1753
+ /**
1754
+ * Calendar is read-only or needs reauthorization
1755
+ */
1756
+ 403: CalendarMutationApiError;
1757
+ /**
1758
+ * Event not found
1759
+ */
1760
+ 404: CalendarMutationApiError;
1761
+ /**
1762
+ * The provider rejected the deletion
1763
+ */
1764
+ 409: CalendarMutationApiError;
1765
+ /**
1766
+ * Transient provider failure
1767
+ */
1768
+ 503: CalendarMutationApiError;
1769
+ };
1770
+ export type DeleteCalendarEventError = DeleteCalendarEventErrors[keyof DeleteCalendarEventErrors];
1771
+ export type DeleteCalendarEventResponses = {
1772
+ /**
1773
+ * The event was deleted
1774
+ */
1775
+ 204: void;
1776
+ };
1777
+ export type DeleteCalendarEventResponse = DeleteCalendarEventResponses[keyof DeleteCalendarEventResponses];
1778
+ export type UpdateCalendarEventData = {
1779
+ body: UpdateCalendarEventRequest;
1780
+ path: {
1781
+ /**
1782
+ * Calendar event entity id
1783
+ */
1784
+ event_id: string;
1785
+ };
1786
+ query?: never;
1787
+ url: '/events/{event_id}';
1788
+ };
1789
+ export type UpdateCalendarEventErrors = {
1790
+ /**
1791
+ * Invalid event fields
1792
+ */
1793
+ 400: CalendarMutationApiError;
1794
+ /**
1795
+ * Authentication required
1796
+ */
1797
+ 401: unknown;
1798
+ /**
1799
+ * Calendar is read-only or needs reauthorization, or the event is a snapshot of a shared meeting
1800
+ */
1801
+ 403: CalendarMutationApiError;
1802
+ /**
1803
+ * Event or targeted occurrence not found
1804
+ */
1805
+ 404: CalendarMutationApiError;
1806
+ /**
1807
+ * The provider rejected the update
1808
+ */
1809
+ 409: CalendarMutationApiError;
1810
+ /**
1811
+ * Transient provider failure, or the Rox call could not be created
1812
+ */
1813
+ 503: CalendarMutationApiError;
1814
+ };
1815
+ export type UpdateCalendarEventError = UpdateCalendarEventErrors[keyof UpdateCalendarEventErrors];
1816
+ export type UpdateCalendarEventResponses = {
1817
+ /**
1818
+ * The updated calendar event
1819
+ */
1820
+ 200: CalendarEvent;
1821
+ };
1822
+ export type UpdateCalendarEventResponse = UpdateCalendarEventResponses[keyof UpdateCalendarEventResponses];
1823
+ export type CopyCalendarEventData = {
1824
+ body: CopyCalendarEventRequest;
1825
+ path: {
1826
+ /**
1827
+ * Shared calendar event entity id
1828
+ */
1829
+ event_id: string;
1830
+ };
1831
+ query?: never;
1832
+ url: '/events/{event_id}/copy';
1833
+ };
1834
+ export type CopyCalendarEventErrors = {
1835
+ /**
1836
+ * The event cannot be copied, or the calendar is not a Google calendar
1837
+ */
1838
+ 400: CalendarMutationApiError;
1839
+ /**
1840
+ * Authentication required
1841
+ */
1842
+ 401: unknown;
1843
+ /**
1844
+ * Calendar is read-only or needs reauthorization
1845
+ */
1846
+ 403: CalendarMutationApiError;
1847
+ /**
1848
+ * Event not found or not shared with the requester
1849
+ */
1850
+ 404: CalendarMutationApiError;
1851
+ /**
1852
+ * Already on the requester's calendar, a request to join it is pending or accepted, no writable calendar, or the provider refused the copy
1853
+ */
1854
+ 409: CalendarMutationApiError;
1855
+ /**
1856
+ * Transient provider failure
1857
+ */
1858
+ 503: CalendarMutationApiError;
1859
+ };
1860
+ export type CopyCalendarEventError = CopyCalendarEventErrors[keyof CopyCalendarEventErrors];
1861
+ export type CopyCalendarEventResponses = {
1862
+ /**
1863
+ * The copy on the requester's calendar
1864
+ */
1865
+ 201: CalendarEvent;
1866
+ };
1867
+ export type CopyCalendarEventResponse = CopyCalendarEventResponses[keyof CopyCalendarEventResponses];
1868
+ export type InviteCalendarEventGuestsData = {
1869
+ body: InviteCalendarEventGuestsRequest;
1870
+ path: {
1871
+ /**
1872
+ * Calendar event entity id
1873
+ */
1874
+ event_id: string;
1875
+ };
1876
+ query?: never;
1877
+ url: '/events/{event_id}/guests';
1878
+ };
1879
+ export type InviteCalendarEventGuestsErrors = {
1880
+ /**
1881
+ * Invalid guests or scope
1882
+ */
1883
+ 400: CalendarMutationApiError;
1884
+ /**
1885
+ * Authentication required
1886
+ */
1887
+ 401: unknown;
1888
+ /**
1889
+ * Calendar is read-only, only the organizer can invite guests, the event is a snapshot of a shared meeting, or the calendar needs reauthorization
1890
+ */
1891
+ 403: CalendarMutationApiError;
1892
+ /**
1893
+ * Event or occurrence not found
1894
+ */
1895
+ 404: CalendarMutationApiError;
1896
+ /**
1897
+ * The connected account neither organizes nor attends the event
1898
+ */
1899
+ 409: CalendarMutationApiError;
1900
+ /**
1901
+ * Transient provider failure
1902
+ */
1903
+ 503: CalendarMutationApiError;
1904
+ };
1905
+ export type InviteCalendarEventGuestsError = InviteCalendarEventGuestsErrors[keyof InviteCalendarEventGuestsErrors];
1906
+ export type InviteCalendarEventGuestsResponses = {
1907
+ /**
1908
+ * The updated calendar event
1909
+ */
1910
+ 200: CalendarEvent;
1911
+ };
1912
+ export type InviteCalendarEventGuestsResponse = InviteCalendarEventGuestsResponses[keyof InviteCalendarEventGuestsResponses];
1913
+ export type CalendarEventProviderUrlData = {
1914
+ body?: never;
1915
+ path: {
1916
+ event_id: string;
1917
+ };
1918
+ query?: {
1919
+ /**
1920
+ * Exact calendar copy; defaults to the canonical copy.
1921
+ */
1922
+ calendarId?: string | null;
1923
+ /**
1924
+ * Original-start key of one occurrence; omitted for the entire series.
1925
+ */
1926
+ recurrenceId?: string | null;
1927
+ };
1928
+ url: '/events/{event_id}/provider-url';
1929
+ };
1930
+ export type CalendarEventProviderUrlErrors = {
1931
+ 404: CalendarMutationApiError;
1932
+ };
1933
+ export type CalendarEventProviderUrlError = CalendarEventProviderUrlErrors[keyof CalendarEventProviderUrlErrors];
1934
+ export type CalendarEventProviderUrlResponses = {
1935
+ 200: CalendarEventProviderUrl;
1936
+ };
1937
+ export type CalendarEventProviderUrlResponse = CalendarEventProviderUrlResponses[keyof CalendarEventProviderUrlResponses];
1938
+ export type PrepareCalendarReplacementData = {
1939
+ body: PrepareCalendarReplacementRequest;
1940
+ path: {
1941
+ event_id: string;
1942
+ };
1943
+ query?: never;
1944
+ url: '/events/{event_id}/replacement';
1945
+ };
1946
+ export type PrepareCalendarReplacementErrors = {
1947
+ 409: CalendarMutationApiError;
1948
+ };
1949
+ export type PrepareCalendarReplacementError = PrepareCalendarReplacementErrors[keyof PrepareCalendarReplacementErrors];
1950
+ export type PrepareCalendarReplacementResponses = {
1951
+ 200: CalendarReplacementView;
1952
+ };
1953
+ export type PrepareCalendarReplacementResponse = PrepareCalendarReplacementResponses[keyof PrepareCalendarReplacementResponses];
1954
+ export type RsvpCalendarEventData = {
1955
+ body: RsvpCalendarEventRequest;
1956
+ path: {
1957
+ /**
1958
+ * Calendar event entity id
1959
+ */
1960
+ event_id: string;
1961
+ };
1962
+ query?: never;
1963
+ url: '/events/{event_id}/rsvp';
1964
+ };
1965
+ export type RsvpCalendarEventErrors = {
1966
+ /**
1967
+ * Authentication required
1968
+ */
1969
+ 401: unknown;
1970
+ /**
1971
+ * Calendar is read-only or needs reauthorization, or the event is a snapshot of a shared meeting
1972
+ */
1973
+ 403: CalendarMutationApiError;
1974
+ /**
1975
+ * Event not found
1976
+ */
1977
+ 404: CalendarMutationApiError;
1978
+ /**
1979
+ * The connected account is not an attendee
1980
+ */
1981
+ 409: CalendarMutationApiError;
1982
+ /**
1983
+ * Transient provider failure
1984
+ */
1985
+ 503: CalendarMutationApiError;
1986
+ };
1987
+ export type RsvpCalendarEventError = RsvpCalendarEventErrors[keyof RsvpCalendarEventErrors];
1988
+ export type RsvpCalendarEventResponses = {
1989
+ /**
1990
+ * The updated calendar event
1991
+ */
1992
+ 200: CalendarEvent;
1993
+ };
1994
+ export type RsvpCalendarEventResponse = RsvpCalendarEventResponses[keyof RsvpCalendarEventResponses];
1995
+ export type HealthHandlerData = {
1996
+ body?: never;
1997
+ path?: never;
1998
+ query?: never;
1999
+ url: '/health';
2000
+ };
2001
+ export type HealthHandlerResponses = {
2002
+ /**
2003
+ * health
2004
+ */
2005
+ 200: string;
2006
+ };
2007
+ export type HealthHandlerResponse = HealthHandlerResponses[keyof HealthHandlerResponses];
2008
+ export type RespondToJoinRequestData = {
2009
+ body: RespondToJoinRequestRequest;
2010
+ path: {
2011
+ /**
2012
+ * Join request id
2013
+ */
2014
+ request_id: string;
2015
+ };
2016
+ query?: never;
2017
+ url: '/join-requests/{request_id}';
2018
+ };
2019
+ export type RespondToJoinRequestErrors = {
2020
+ /**
2021
+ * Authentication required
2022
+ */
2023
+ 401: unknown;
2024
+ /**
2025
+ * Calendar is read-only, the organizer doesn't let guests invite others, or the calendar needs reauthorization
2026
+ */
2027
+ 403: CalendarMutationApiError;
2028
+ /**
2029
+ * Request not found or its event cannot be changed by the requester
2030
+ */
2031
+ 404: CalendarMutationApiError;
2032
+ /**
2033
+ * The provider rejected the new guest
2034
+ */
2035
+ 409: CalendarMutationApiError;
2036
+ /**
2037
+ * Transient provider failure
2038
+ */
2039
+ 503: CalendarMutationApiError;
2040
+ };
2041
+ export type RespondToJoinRequestError = RespondToJoinRequestErrors[keyof RespondToJoinRequestErrors];
2042
+ export type RespondToJoinRequestResponses = {
2043
+ /**
2044
+ * The answered join request
2045
+ */
2046
+ 200: CalendarJoinRequest;
2047
+ };
2048
+ export type RespondToJoinRequestResponse = RespondToJoinRequestResponses[keyof RespondToJoinRequestResponses];
2049
+ export type DiscardCalendarReplacementData = {
2050
+ body?: never;
2051
+ path: {
2052
+ operation_id: string;
2053
+ };
2054
+ query?: never;
2055
+ url: '/replacements/{operation_id}';
2056
+ };
2057
+ export type DiscardCalendarReplacementErrors = {
2058
+ 409: CalendarMutationApiError;
2059
+ };
2060
+ export type DiscardCalendarReplacementError = DiscardCalendarReplacementErrors[keyof DiscardCalendarReplacementErrors];
2061
+ export type DiscardCalendarReplacementResponses = {
2062
+ 204: void;
2063
+ };
2064
+ export type DiscardCalendarReplacementResponse = DiscardCalendarReplacementResponses[keyof DiscardCalendarReplacementResponses];
2065
+ export type CalendarReplacementStatusData = {
2066
+ body?: never;
2067
+ path: {
2068
+ operation_id: string;
2069
+ };
2070
+ query?: never;
2071
+ url: '/replacements/{operation_id}';
2072
+ };
2073
+ export type CalendarReplacementStatusErrors = {
2074
+ 404: CalendarMutationApiError;
2075
+ };
2076
+ export type CalendarReplacementStatusError = CalendarReplacementStatusErrors[keyof CalendarReplacementStatusErrors];
2077
+ export type CalendarReplacementStatusResponses = {
2078
+ 200: CalendarReplacementView;
2079
+ };
2080
+ export type CalendarReplacementStatusResponse = CalendarReplacementStatusResponses[keyof CalendarReplacementStatusResponses];
2081
+ export type ConfirmCalendarReplacementData = {
2082
+ body?: never;
2083
+ path: {
2084
+ operation_id: string;
2085
+ };
2086
+ query?: never;
2087
+ url: '/replacements/{operation_id}/confirm';
2088
+ };
2089
+ export type ConfirmCalendarReplacementErrors = {
2090
+ 409: CalendarMutationApiError;
2091
+ };
2092
+ export type ConfirmCalendarReplacementError = ConfirmCalendarReplacementErrors[keyof ConfirmCalendarReplacementErrors];
2093
+ export type ConfirmCalendarReplacementResponses = {
2094
+ 200: CalendarReplacementView;
2095
+ };
2096
+ export type ConfirmCalendarReplacementResponse = ConfirmCalendarReplacementResponses[keyof ConfirmCalendarReplacementResponses];
2097
+ export type ListBookingsData = {
2098
+ body?: never;
2099
+ path?: never;
2100
+ query?: {
2101
+ /**
2102
+ * Existing Rox team; omit for personal bookings.
2103
+ */
2104
+ teamId?: string;
2105
+ /**
2106
+ * Inclusive start; supply together with `to`, at most 733 days apart.
2107
+ */
2108
+ from?: string;
2109
+ /**
2110
+ * Exclusive end; supply together with `from`.
2111
+ */
2112
+ to?: string;
2113
+ };
2114
+ url: '/scheduling/bookings';
2115
+ };
2116
+ export type ListBookingsErrors = {
2117
+ 400: unknown;
2118
+ 403: unknown;
2119
+ };
2120
+ export type ListBookingsResponses = {
2121
+ 200: BookingsResponse;
2122
+ };
2123
+ export type ListBookingsResponse = ListBookingsResponses[keyof ListBookingsResponses];
2124
+ export type ChangeBookingData = {
2125
+ body: BookingChange;
2126
+ path: {
2127
+ /**
2128
+ * Booking identity
2129
+ */
2130
+ id: string;
2131
+ };
2132
+ query?: never;
2133
+ url: '/scheduling/bookings/{id}/change';
2134
+ };
2135
+ export type ChangeBookingErrors = {
2136
+ 400: unknown;
2137
+ 403: unknown;
2138
+ 404: unknown;
2139
+ 409: unknown;
2140
+ };
2141
+ export type ChangeBookingResponses = {
2142
+ 200: BookingResponse;
2143
+ };
2144
+ export type ChangeBookingResponse = ChangeBookingResponses[keyof ChangeBookingResponses];
2145
+ export type GetManagedBookingData = {
2146
+ body?: never;
2147
+ path: {
2148
+ /**
2149
+ * Booking identity
2150
+ */
2151
+ id: string;
2152
+ };
2153
+ query?: never;
2154
+ url: '/scheduling/bookings/{id}/manage';
2155
+ };
2156
+ export type GetManagedBookingErrors = {
2157
+ 403: unknown;
2158
+ 404: unknown;
2159
+ };
2160
+ export type GetManagedBookingResponses = {
2161
+ 200: ReceiptResponse;
2162
+ };
2163
+ export type GetManagedBookingResponse = GetManagedBookingResponses[keyof GetManagedBookingResponses];
2164
+ export type ListBookingRescheduleSlotsData = {
2165
+ body?: never;
2166
+ path: {
2167
+ /**
2168
+ * Booking identity
2169
+ */
2170
+ id: string;
2171
+ };
2172
+ query: {
2173
+ /**
2174
+ * Date in the booking's schedule time zone.
2175
+ */
2176
+ date: string;
2177
+ };
2178
+ url: '/scheduling/bookings/{id}/slots';
2179
+ };
2180
+ export type ListBookingRescheduleSlotsErrors = {
2181
+ 403: unknown;
2182
+ 404: unknown;
2183
+ };
2184
+ export type ListBookingRescheduleSlotsResponses = {
2185
+ 200: SlotsResponse;
2186
+ };
2187
+ export type ListBookingRescheduleSlotsResponse = ListBookingRescheduleSlotsResponses[keyof ListBookingRescheduleSlotsResponses];
2188
+ export type GetBookingInsightsData = {
2189
+ body: InsightQuery;
2190
+ path?: never;
2191
+ query?: {
2192
+ /**
2193
+ * Existing Rox team; omit for the caller's personal booking links.
2194
+ */
2195
+ teamId?: string;
2196
+ };
2197
+ url: '/scheduling/insights';
2198
+ };
2199
+ export type GetBookingInsightsErrors = {
2200
+ 400: unknown;
2201
+ 403: unknown;
2202
+ };
2203
+ export type GetBookingInsightsResponses = {
2204
+ 200: BookingInsights;
2205
+ };
2206
+ export type GetBookingInsightsResponse = GetBookingInsightsResponses[keyof GetBookingInsightsResponses];
2207
+ export type ListBookingLinksData = {
2208
+ body?: never;
2209
+ path?: never;
2210
+ query?: {
2211
+ /**
2212
+ * Existing Rox team; omit for personal links.
2213
+ */
2214
+ teamId?: string;
2215
+ /**
2216
+ * Text matched against link title, slug and description; omit for all links.
2217
+ */
2218
+ query?: string;
2219
+ };
2220
+ url: '/scheduling/links';
2221
+ };
2222
+ export type ListBookingLinksErrors = {
2223
+ 403: unknown;
2224
+ };
2225
+ export type ListBookingLinksResponses = {
2226
+ 200: BookingLinkListing;
2227
+ };
2228
+ export type ListBookingLinksResponse = ListBookingLinksResponses[keyof ListBookingLinksResponses];
2229
+ export type CreateBookingLinkData = {
2230
+ body: CreateBookingLinkRequest;
2231
+ path?: never;
2232
+ query?: {
2233
+ /**
2234
+ * Existing Rox team; omit for the caller's personal booking links.
2235
+ */
2236
+ teamId?: string;
2237
+ };
2238
+ url: '/scheduling/links';
2239
+ };
2240
+ export type CreateBookingLinkErrors = {
2241
+ 400: unknown;
2242
+ 403: unknown;
2243
+ 409: unknown;
2244
+ };
2245
+ export type CreateBookingLinkResponses = {
2246
+ 200: BookingLink;
2247
+ };
2248
+ export type CreateBookingLinkResponse = CreateBookingLinkResponses[keyof CreateBookingLinkResponses];
2249
+ export type EditBookingLinkData = {
2250
+ body: EditBookingLinkRequest;
2251
+ path: {
2252
+ /**
2253
+ * Booking link (event type) identity
2254
+ */
2255
+ id: string;
2256
+ };
2257
+ query?: {
2258
+ /**
2259
+ * Existing Rox team; omit for the caller's personal booking links.
2260
+ */
2261
+ teamId?: string;
2262
+ };
2263
+ url: '/scheduling/links/{id}';
2264
+ };
2265
+ export type EditBookingLinkErrors = {
2266
+ 400: unknown;
2267
+ 403: unknown;
2268
+ 404: unknown;
2269
+ 409: unknown;
2270
+ };
2271
+ export type EditBookingLinkResponses = {
2272
+ 200: BookingLink;
2273
+ };
2274
+ export type EditBookingLinkResponse = EditBookingLinkResponses[keyof EditBookingLinkResponses];
2275
+ export type GetBookingSettingsData = {
2276
+ body?: never;
2277
+ path?: never;
2278
+ query?: {
2279
+ /**
2280
+ * Existing Rox team; omit for the caller's personal booking links.
2281
+ */
2282
+ teamId?: string;
2283
+ };
2284
+ url: '/scheduling/settings';
2285
+ };
2286
+ export type GetBookingSettingsErrors = {
2287
+ 403: unknown;
2288
+ 404: unknown;
2289
+ };
2290
+ export type GetBookingSettingsResponses = {
2291
+ 200: ProfileResponse;
2292
+ };
2293
+ export type GetBookingSettingsResponse = GetBookingSettingsResponses[keyof GetBookingSettingsResponses];
2294
+ export type SaveBookingSettingsData = {
2295
+ body: BookingProfile;
2296
+ path?: never;
2297
+ query?: {
2298
+ /**
2299
+ * Existing Rox team; omit for the caller's personal booking links.
2300
+ */
2301
+ teamId?: string;
2302
+ };
2303
+ url: '/scheduling/settings';
2304
+ };
2305
+ export type SaveBookingSettingsErrors = {
2306
+ 400: unknown;
2307
+ 403: unknown;
2308
+ 409: unknown;
2309
+ };
2310
+ export type SaveBookingSettingsResponses = {
2311
+ 200: ProfileResponse;
2312
+ };
2313
+ export type SaveBookingSettingsResponse = SaveBookingSettingsResponses[keyof SaveBookingSettingsResponses];
2314
+ export type GetTeamSharingData = {
2315
+ body?: never;
2316
+ path?: never;
2317
+ query?: never;
2318
+ url: '/team-sharing';
2319
+ };
2320
+ export type GetTeamSharingResponses = {
2321
+ 200: TeamCalendarSharingBody;
2322
+ };
2323
+ export type GetTeamSharingResponse = GetTeamSharingResponses[keyof GetTeamSharingResponses];
2324
+ export type SetTeamSharingData = {
2325
+ body: TeamCalendarSharingBody;
2326
+ path?: never;
2327
+ query?: never;
2328
+ url: '/team-sharing';
2329
+ };
2330
+ export type SetTeamSharingResponses = {
2331
+ 200: TeamCalendarSharingBody;
2332
+ };
2333
+ export type SetTeamSharingResponse = SetTeamSharingResponses[keyof SetTeamSharingResponses];