@unified-api/typescript-sdk 2.18.0 → 2.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (436) hide show
  1. package/README.md +36 -0
  2. package/docs/sdks/busy/README.md +88 -0
  3. package/docs/sdks/calendar/README.md +1800 -0
  4. package/docs/sdks/event/README.md +524 -0
  5. package/docs/sdks/link/README.md +512 -0
  6. package/docs/sdks/recording/README.md +171 -0
  7. package/funcs/busyListCalendarBusies.d.ts +14 -0
  8. package/funcs/busyListCalendarBusies.d.ts.map +1 -0
  9. package/funcs/busyListCalendarBusies.js +118 -0
  10. package/funcs/busyListCalendarBusies.js.map +1 -0
  11. package/funcs/calendarCreateCalendarCalendar.d.ts +14 -0
  12. package/funcs/calendarCreateCalendarCalendar.d.ts.map +1 -0
  13. package/funcs/calendarCreateCalendarCalendar.js +109 -0
  14. package/funcs/calendarCreateCalendarCalendar.js.map +1 -0
  15. package/funcs/calendarCreateCalendarEvent.d.ts +14 -0
  16. package/funcs/calendarCreateCalendarEvent.d.ts.map +1 -0
  17. package/funcs/calendarCreateCalendarEvent.js +109 -0
  18. package/funcs/calendarCreateCalendarEvent.js.map +1 -0
  19. package/funcs/calendarCreateCalendarLink.d.ts +14 -0
  20. package/funcs/calendarCreateCalendarLink.d.ts.map +1 -0
  21. package/funcs/calendarCreateCalendarLink.js +109 -0
  22. package/funcs/calendarCreateCalendarLink.js.map +1 -0
  23. package/funcs/calendarGetCalendarCalendar.d.ts +14 -0
  24. package/funcs/calendarGetCalendarCalendar.d.ts.map +1 -0
  25. package/funcs/calendarGetCalendarCalendar.js +112 -0
  26. package/funcs/calendarGetCalendarCalendar.js.map +1 -0
  27. package/funcs/calendarGetCalendarEvent.d.ts +14 -0
  28. package/funcs/calendarGetCalendarEvent.d.ts.map +1 -0
  29. package/funcs/calendarGetCalendarEvent.js +112 -0
  30. package/funcs/calendarGetCalendarEvent.js.map +1 -0
  31. package/funcs/calendarGetCalendarLink.d.ts +14 -0
  32. package/funcs/calendarGetCalendarLink.d.ts.map +1 -0
  33. package/funcs/calendarGetCalendarLink.js +112 -0
  34. package/funcs/calendarGetCalendarLink.js.map +1 -0
  35. package/funcs/calendarGetCalendarRecording.d.ts +14 -0
  36. package/funcs/calendarGetCalendarRecording.d.ts.map +1 -0
  37. package/funcs/calendarGetCalendarRecording.js +112 -0
  38. package/funcs/calendarGetCalendarRecording.js.map +1 -0
  39. package/funcs/calendarListCalendarBusies.d.ts +14 -0
  40. package/funcs/calendarListCalendarBusies.d.ts.map +1 -0
  41. package/funcs/calendarListCalendarBusies.js +118 -0
  42. package/funcs/calendarListCalendarBusies.js.map +1 -0
  43. package/funcs/calendarListCalendarCalendars.d.ts +14 -0
  44. package/funcs/calendarListCalendarCalendars.d.ts.map +1 -0
  45. package/funcs/calendarListCalendarCalendars.js +115 -0
  46. package/funcs/calendarListCalendarCalendars.js.map +1 -0
  47. package/funcs/calendarListCalendarEvents.d.ts +14 -0
  48. package/funcs/calendarListCalendarEvents.d.ts.map +1 -0
  49. package/funcs/calendarListCalendarEvents.js +118 -0
  50. package/funcs/calendarListCalendarEvents.js.map +1 -0
  51. package/funcs/calendarListCalendarLinks.d.ts +14 -0
  52. package/funcs/calendarListCalendarLinks.d.ts.map +1 -0
  53. package/funcs/calendarListCalendarLinks.js +115 -0
  54. package/funcs/calendarListCalendarLinks.js.map +1 -0
  55. package/funcs/calendarListCalendarRecordings.d.ts +14 -0
  56. package/funcs/calendarListCalendarRecordings.d.ts.map +1 -0
  57. package/funcs/calendarListCalendarRecordings.js +118 -0
  58. package/funcs/calendarListCalendarRecordings.js.map +1 -0
  59. package/funcs/calendarPatchCalendarCalendar.d.ts +14 -0
  60. package/funcs/calendarPatchCalendarCalendar.d.ts.map +1 -0
  61. package/funcs/calendarPatchCalendarCalendar.js +113 -0
  62. package/funcs/calendarPatchCalendarCalendar.js.map +1 -0
  63. package/funcs/calendarPatchCalendarEvent.d.ts +14 -0
  64. package/funcs/calendarPatchCalendarEvent.d.ts.map +1 -0
  65. package/funcs/calendarPatchCalendarEvent.js +113 -0
  66. package/funcs/calendarPatchCalendarEvent.js.map +1 -0
  67. package/funcs/calendarPatchCalendarLink.d.ts +14 -0
  68. package/funcs/calendarPatchCalendarLink.d.ts.map +1 -0
  69. package/funcs/calendarPatchCalendarLink.js +113 -0
  70. package/funcs/calendarPatchCalendarLink.js.map +1 -0
  71. package/funcs/calendarRemoveCalendarCalendar.d.ts +13 -0
  72. package/funcs/calendarRemoveCalendarCalendar.d.ts.map +1 -0
  73. package/funcs/calendarRemoveCalendarCalendar.js +110 -0
  74. package/funcs/calendarRemoveCalendarCalendar.js.map +1 -0
  75. package/funcs/calendarRemoveCalendarEvent.d.ts +13 -0
  76. package/funcs/calendarRemoveCalendarEvent.d.ts.map +1 -0
  77. package/funcs/calendarRemoveCalendarEvent.js +110 -0
  78. package/funcs/calendarRemoveCalendarEvent.js.map +1 -0
  79. package/funcs/calendarRemoveCalendarLink.d.ts +13 -0
  80. package/funcs/calendarRemoveCalendarLink.d.ts.map +1 -0
  81. package/funcs/calendarRemoveCalendarLink.js +110 -0
  82. package/funcs/calendarRemoveCalendarLink.js.map +1 -0
  83. package/funcs/calendarUpdateCalendarCalendar.d.ts +14 -0
  84. package/funcs/calendarUpdateCalendarCalendar.d.ts.map +1 -0
  85. package/funcs/calendarUpdateCalendarCalendar.js +113 -0
  86. package/funcs/calendarUpdateCalendarCalendar.js.map +1 -0
  87. package/funcs/calendarUpdateCalendarEvent.d.ts +14 -0
  88. package/funcs/calendarUpdateCalendarEvent.d.ts.map +1 -0
  89. package/funcs/calendarUpdateCalendarEvent.js +113 -0
  90. package/funcs/calendarUpdateCalendarEvent.js.map +1 -0
  91. package/funcs/calendarUpdateCalendarLink.d.ts +14 -0
  92. package/funcs/calendarUpdateCalendarLink.d.ts.map +1 -0
  93. package/funcs/calendarUpdateCalendarLink.js +113 -0
  94. package/funcs/calendarUpdateCalendarLink.js.map +1 -0
  95. package/funcs/eventCreateCalendarEvent.d.ts +14 -0
  96. package/funcs/eventCreateCalendarEvent.d.ts.map +1 -0
  97. package/funcs/eventCreateCalendarEvent.js +109 -0
  98. package/funcs/eventCreateCalendarEvent.js.map +1 -0
  99. package/funcs/eventGetCalendarEvent.d.ts +14 -0
  100. package/funcs/eventGetCalendarEvent.d.ts.map +1 -0
  101. package/funcs/eventGetCalendarEvent.js +112 -0
  102. package/funcs/eventGetCalendarEvent.js.map +1 -0
  103. package/funcs/eventListCalendarEvents.d.ts +14 -0
  104. package/funcs/eventListCalendarEvents.d.ts.map +1 -0
  105. package/funcs/eventListCalendarEvents.js +118 -0
  106. package/funcs/eventListCalendarEvents.js.map +1 -0
  107. package/funcs/eventPatchCalendarEvent.d.ts +14 -0
  108. package/funcs/eventPatchCalendarEvent.d.ts.map +1 -0
  109. package/funcs/eventPatchCalendarEvent.js +113 -0
  110. package/funcs/eventPatchCalendarEvent.js.map +1 -0
  111. package/funcs/eventRemoveCalendarEvent.d.ts +13 -0
  112. package/funcs/eventRemoveCalendarEvent.d.ts.map +1 -0
  113. package/funcs/eventRemoveCalendarEvent.js +110 -0
  114. package/funcs/eventRemoveCalendarEvent.js.map +1 -0
  115. package/funcs/eventUpdateCalendarEvent.d.ts +14 -0
  116. package/funcs/eventUpdateCalendarEvent.d.ts.map +1 -0
  117. package/funcs/eventUpdateCalendarEvent.js +113 -0
  118. package/funcs/eventUpdateCalendarEvent.js.map +1 -0
  119. package/funcs/linkCreateCalendarLink.d.ts +14 -0
  120. package/funcs/linkCreateCalendarLink.d.ts.map +1 -0
  121. package/funcs/linkCreateCalendarLink.js +109 -0
  122. package/funcs/linkCreateCalendarLink.js.map +1 -0
  123. package/funcs/linkGetCalendarLink.d.ts +14 -0
  124. package/funcs/linkGetCalendarLink.d.ts.map +1 -0
  125. package/funcs/linkGetCalendarLink.js +112 -0
  126. package/funcs/linkGetCalendarLink.js.map +1 -0
  127. package/funcs/linkListCalendarLinks.d.ts +14 -0
  128. package/funcs/linkListCalendarLinks.d.ts.map +1 -0
  129. package/funcs/linkListCalendarLinks.js +115 -0
  130. package/funcs/linkListCalendarLinks.js.map +1 -0
  131. package/funcs/linkPatchCalendarLink.d.ts +14 -0
  132. package/funcs/linkPatchCalendarLink.d.ts.map +1 -0
  133. package/funcs/linkPatchCalendarLink.js +113 -0
  134. package/funcs/linkPatchCalendarLink.js.map +1 -0
  135. package/funcs/linkRemoveCalendarLink.d.ts +13 -0
  136. package/funcs/linkRemoveCalendarLink.d.ts.map +1 -0
  137. package/funcs/linkRemoveCalendarLink.js +110 -0
  138. package/funcs/linkRemoveCalendarLink.js.map +1 -0
  139. package/funcs/linkUpdateCalendarLink.d.ts +14 -0
  140. package/funcs/linkUpdateCalendarLink.d.ts.map +1 -0
  141. package/funcs/linkUpdateCalendarLink.js +113 -0
  142. package/funcs/linkUpdateCalendarLink.js.map +1 -0
  143. package/funcs/recordingGetCalendarRecording.d.ts +14 -0
  144. package/funcs/recordingGetCalendarRecording.d.ts.map +1 -0
  145. package/funcs/recordingGetCalendarRecording.js +112 -0
  146. package/funcs/recordingGetCalendarRecording.js.map +1 -0
  147. package/funcs/recordingListCalendarRecordings.d.ts +14 -0
  148. package/funcs/recordingListCalendarRecordings.d.ts.map +1 -0
  149. package/funcs/recordingListCalendarRecordings.js +118 -0
  150. package/funcs/recordingListCalendarRecordings.js.map +1 -0
  151. package/jsr.json +1 -1
  152. package/lib/config.d.ts +2 -2
  153. package/lib/config.js +2 -2
  154. package/package.json +1 -1
  155. package/sdk/busy.d.ts +10 -0
  156. package/sdk/busy.d.ts.map +1 -0
  157. package/sdk/busy.js +19 -0
  158. package/sdk/busy.js.map +1 -0
  159. package/sdk/calendar.d.ts +90 -0
  160. package/sdk/calendar.d.ts.map +1 -0
  161. package/sdk/calendar.js +159 -0
  162. package/sdk/calendar.js.map +1 -0
  163. package/sdk/event.d.ts +24 -0
  164. package/sdk/event.d.ts.map +1 -1
  165. package/sdk/event.js +42 -0
  166. package/sdk/event.js.map +1 -1
  167. package/sdk/link.d.ts +24 -0
  168. package/sdk/link.d.ts.map +1 -1
  169. package/sdk/link.js +42 -0
  170. package/sdk/link.js.map +1 -1
  171. package/sdk/models/operations/createcalendarcalendar.d.ts +40 -0
  172. package/sdk/models/operations/createcalendarcalendar.d.ts.map +1 -0
  173. package/sdk/models/operations/createcalendarcalendar.js +75 -0
  174. package/sdk/models/operations/createcalendarcalendar.js.map +1 -0
  175. package/sdk/models/operations/createcalendarevent.d.ts +40 -0
  176. package/sdk/models/operations/createcalendarevent.d.ts.map +1 -0
  177. package/sdk/models/operations/createcalendarevent.js +75 -0
  178. package/sdk/models/operations/createcalendarevent.js.map +1 -0
  179. package/sdk/models/operations/createcalendarlink.d.ts +40 -0
  180. package/sdk/models/operations/createcalendarlink.d.ts.map +1 -0
  181. package/sdk/models/operations/createcalendarlink.js +75 -0
  182. package/sdk/models/operations/createcalendarlink.js.map +1 -0
  183. package/sdk/models/operations/getcalendarcalendar.d.ts +42 -0
  184. package/sdk/models/operations/getcalendarcalendar.d.ts.map +1 -0
  185. package/sdk/models/operations/getcalendarcalendar.js +72 -0
  186. package/sdk/models/operations/getcalendarcalendar.js.map +1 -0
  187. package/sdk/models/operations/getcalendarevent.d.ts +42 -0
  188. package/sdk/models/operations/getcalendarevent.d.ts.map +1 -0
  189. package/sdk/models/operations/getcalendarevent.js +72 -0
  190. package/sdk/models/operations/getcalendarevent.js.map +1 -0
  191. package/sdk/models/operations/getcalendarlink.d.ts +42 -0
  192. package/sdk/models/operations/getcalendarlink.d.ts.map +1 -0
  193. package/sdk/models/operations/getcalendarlink.js +72 -0
  194. package/sdk/models/operations/getcalendarlink.js.map +1 -0
  195. package/sdk/models/operations/getcalendarrecording.d.ts +42 -0
  196. package/sdk/models/operations/getcalendarrecording.d.ts.map +1 -0
  197. package/sdk/models/operations/getcalendarrecording.js +72 -0
  198. package/sdk/models/operations/getcalendarrecording.js.map +1 -0
  199. package/sdk/models/operations/getunifiedintegrationauth.d.ts +30 -0
  200. package/sdk/models/operations/getunifiedintegrationauth.d.ts.map +1 -1
  201. package/sdk/models/operations/getunifiedintegrationauth.js +10 -0
  202. package/sdk/models/operations/getunifiedintegrationauth.js.map +1 -1
  203. package/sdk/models/operations/index.d.ts +21 -0
  204. package/sdk/models/operations/index.d.ts.map +1 -1
  205. package/sdk/models/operations/index.js +21 -0
  206. package/sdk/models/operations/index.js.map +1 -1
  207. package/sdk/models/operations/listcalendarbusies.d.ts +61 -0
  208. package/sdk/models/operations/listcalendarbusies.d.ts.map +1 -0
  209. package/sdk/models/operations/listcalendarbusies.js +97 -0
  210. package/sdk/models/operations/listcalendarbusies.js.map +1 -0
  211. package/sdk/models/operations/listcalendarcalendars.d.ts +55 -0
  212. package/sdk/models/operations/listcalendarcalendars.d.ts.map +1 -0
  213. package/sdk/models/operations/listcalendarcalendars.js +85 -0
  214. package/sdk/models/operations/listcalendarcalendars.js.map +1 -0
  215. package/sdk/models/operations/listcalendarevents.d.ts +61 -0
  216. package/sdk/models/operations/listcalendarevents.d.ts.map +1 -0
  217. package/sdk/models/operations/listcalendarevents.js +97 -0
  218. package/sdk/models/operations/listcalendarevents.js.map +1 -0
  219. package/sdk/models/operations/listcalendarlinks.d.ts +55 -0
  220. package/sdk/models/operations/listcalendarlinks.d.ts.map +1 -0
  221. package/sdk/models/operations/listcalendarlinks.js +85 -0
  222. package/sdk/models/operations/listcalendarlinks.js.map +1 -0
  223. package/sdk/models/operations/listcalendarrecordings.d.ts +61 -0
  224. package/sdk/models/operations/listcalendarrecordings.d.ts.map +1 -0
  225. package/sdk/models/operations/listcalendarrecordings.js +97 -0
  226. package/sdk/models/operations/listcalendarrecordings.js.map +1 -0
  227. package/sdk/models/operations/listunifiedconnections.d.ts +3 -0
  228. package/sdk/models/operations/listunifiedconnections.d.ts.map +1 -1
  229. package/sdk/models/operations/listunifiedconnections.js +1 -0
  230. package/sdk/models/operations/listunifiedconnections.js.map +1 -1
  231. package/sdk/models/operations/listunifiedintegrations.d.ts +3 -0
  232. package/sdk/models/operations/listunifiedintegrations.d.ts.map +1 -1
  233. package/sdk/models/operations/listunifiedintegrations.js +1 -0
  234. package/sdk/models/operations/listunifiedintegrations.js.map +1 -1
  235. package/sdk/models/operations/listunifiedintegrationworkspaces.d.ts +3 -0
  236. package/sdk/models/operations/listunifiedintegrationworkspaces.d.ts.map +1 -1
  237. package/sdk/models/operations/listunifiedintegrationworkspaces.js +1 -0
  238. package/sdk/models/operations/listunifiedintegrationworkspaces.js.map +1 -1
  239. package/sdk/models/operations/patchcalendarcalendar.d.ts +45 -0
  240. package/sdk/models/operations/patchcalendarcalendar.d.ts.map +1 -0
  241. package/sdk/models/operations/patchcalendarcalendar.js +77 -0
  242. package/sdk/models/operations/patchcalendarcalendar.js.map +1 -0
  243. package/sdk/models/operations/patchcalendarevent.d.ts +45 -0
  244. package/sdk/models/operations/patchcalendarevent.d.ts.map +1 -0
  245. package/sdk/models/operations/patchcalendarevent.js +77 -0
  246. package/sdk/models/operations/patchcalendarevent.js.map +1 -0
  247. package/sdk/models/operations/patchcalendarlink.d.ts +45 -0
  248. package/sdk/models/operations/patchcalendarlink.d.ts.map +1 -0
  249. package/sdk/models/operations/patchcalendarlink.js +77 -0
  250. package/sdk/models/operations/patchcalendarlink.js.map +1 -0
  251. package/sdk/models/operations/removecalendarcalendar.d.ts +66 -0
  252. package/sdk/models/operations/removecalendarcalendar.d.ts.map +1 -0
  253. package/sdk/models/operations/removecalendarcalendar.js +105 -0
  254. package/sdk/models/operations/removecalendarcalendar.js.map +1 -0
  255. package/sdk/models/operations/removecalendarevent.d.ts +66 -0
  256. package/sdk/models/operations/removecalendarevent.d.ts.map +1 -0
  257. package/sdk/models/operations/removecalendarevent.js +105 -0
  258. package/sdk/models/operations/removecalendarevent.js.map +1 -0
  259. package/sdk/models/operations/removecalendarlink.d.ts +66 -0
  260. package/sdk/models/operations/removecalendarlink.d.ts.map +1 -0
  261. package/sdk/models/operations/removecalendarlink.js +105 -0
  262. package/sdk/models/operations/removecalendarlink.js.map +1 -0
  263. package/sdk/models/operations/updatecalendarcalendar.d.ts +45 -0
  264. package/sdk/models/operations/updatecalendarcalendar.d.ts.map +1 -0
  265. package/sdk/models/operations/updatecalendarcalendar.js +77 -0
  266. package/sdk/models/operations/updatecalendarcalendar.js.map +1 -0
  267. package/sdk/models/operations/updatecalendarevent.d.ts +45 -0
  268. package/sdk/models/operations/updatecalendarevent.d.ts.map +1 -0
  269. package/sdk/models/operations/updatecalendarevent.js +77 -0
  270. package/sdk/models/operations/updatecalendarevent.js.map +1 -0
  271. package/sdk/models/operations/updatecalendarlink.d.ts +45 -0
  272. package/sdk/models/operations/updatecalendarlink.d.ts.map +1 -0
  273. package/sdk/models/operations/updatecalendarlink.js +77 -0
  274. package/sdk/models/operations/updatecalendarlink.js.map +1 -0
  275. package/sdk/models/shared/calendarattendee.d.ts +66 -0
  276. package/sdk/models/shared/calendarattendee.d.ts.map +1 -0
  277. package/sdk/models/shared/calendarattendee.js +96 -0
  278. package/sdk/models/shared/calendarattendee.js.map +1 -0
  279. package/sdk/models/shared/calendarbusy.d.ts +60 -0
  280. package/sdk/models/shared/calendarbusy.d.ts.map +1 -0
  281. package/sdk/models/shared/calendarbusy.js +103 -0
  282. package/sdk/models/shared/calendarbusy.js.map +1 -0
  283. package/sdk/models/shared/calendarcalendar.d.ts +62 -0
  284. package/sdk/models/shared/calendarcalendar.d.ts.map +1 -0
  285. package/sdk/models/shared/calendarcalendar.js +107 -0
  286. package/sdk/models/shared/calendarcalendar.js.map +1 -0
  287. package/sdk/models/shared/calendarevent.d.ts +115 -0
  288. package/sdk/models/shared/calendarevent.d.ts.map +1 -0
  289. package/sdk/models/shared/calendarevent.js +163 -0
  290. package/sdk/models/shared/calendarevent.js.map +1 -0
  291. package/sdk/models/shared/calendarlink.d.ts +70 -0
  292. package/sdk/models/shared/calendarlink.d.ts.map +1 -0
  293. package/sdk/models/shared/calendarlink.js +119 -0
  294. package/sdk/models/shared/calendarlink.js.map +1 -0
  295. package/sdk/models/shared/calendarrecording.d.ts +69 -0
  296. package/sdk/models/shared/calendarrecording.d.ts.map +1 -0
  297. package/sdk/models/shared/calendarrecording.js +127 -0
  298. package/sdk/models/shared/calendarrecording.js.map +1 -0
  299. package/sdk/models/shared/calendarrecordingmedia.d.ts +43 -0
  300. package/sdk/models/shared/calendarrecordingmedia.d.ts.map +1 -0
  301. package/sdk/models/shared/calendarrecordingmedia.js +90 -0
  302. package/sdk/models/shared/calendarrecordingmedia.js.map +1 -0
  303. package/sdk/models/shared/calendarrecordingtranscript.d.ts +38 -0
  304. package/sdk/models/shared/calendarrecordingtranscript.d.ts.map +1 -0
  305. package/sdk/models/shared/calendarrecordingtranscript.js +83 -0
  306. package/sdk/models/shared/calendarrecordingtranscript.js.map +1 -0
  307. package/sdk/models/shared/index.d.ts +10 -0
  308. package/sdk/models/shared/index.d.ts.map +1 -1
  309. package/sdk/models/shared/index.js +10 -0
  310. package/sdk/models/shared/index.js.map +1 -1
  311. package/sdk/models/shared/integrationsupport.d.ts +60 -0
  312. package/sdk/models/shared/integrationsupport.d.ts.map +1 -1
  313. package/sdk/models/shared/integrationsupport.js +55 -6
  314. package/sdk/models/shared/integrationsupport.js.map +1 -1
  315. package/sdk/models/shared/propertycalendareventorganizer.d.ts +66 -0
  316. package/sdk/models/shared/propertycalendareventorganizer.d.ts.map +1 -0
  317. package/sdk/models/shared/propertycalendareventorganizer.js +96 -0
  318. package/sdk/models/shared/propertycalendareventorganizer.js.map +1 -0
  319. package/sdk/models/shared/propertycalendarrecordingtranscriptattendee.d.ts +66 -0
  320. package/sdk/models/shared/propertycalendarrecordingtranscriptattendee.d.ts.map +1 -0
  321. package/sdk/models/shared/propertycalendarrecordingtranscriptattendee.js +99 -0
  322. package/sdk/models/shared/propertycalendarrecordingtranscriptattendee.js.map +1 -0
  323. package/sdk/models/shared/propertyconnectionauth.d.ts +2 -0
  324. package/sdk/models/shared/propertyconnectionauth.d.ts.map +1 -1
  325. package/sdk/models/shared/propertyconnectionauth.js +4 -0
  326. package/sdk/models/shared/propertyconnectionauth.js.map +1 -1
  327. package/sdk/models/shared/propertyconnectioncategories.d.ts +3 -0
  328. package/sdk/models/shared/propertyconnectioncategories.d.ts.map +1 -1
  329. package/sdk/models/shared/propertyconnectioncategories.js +1 -0
  330. package/sdk/models/shared/propertyconnectioncategories.js.map +1 -1
  331. package/sdk/models/shared/propertyconnectionpermissions.d.ts +30 -0
  332. package/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
  333. package/sdk/models/shared/propertyconnectionpermissions.js +10 -0
  334. package/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
  335. package/sdk/models/shared/propertyintegrationcategories.d.ts +3 -0
  336. package/sdk/models/shared/propertyintegrationcategories.d.ts.map +1 -1
  337. package/sdk/models/shared/propertyintegrationcategories.js +1 -0
  338. package/sdk/models/shared/propertyintegrationcategories.js.map +1 -1
  339. package/sdk/models/shared/webhook.d.ts +15 -0
  340. package/sdk/models/shared/webhook.d.ts.map +1 -1
  341. package/sdk/models/shared/webhook.js +5 -0
  342. package/sdk/models/shared/webhook.js.map +1 -1
  343. package/sdk/recording.d.ts +14 -0
  344. package/sdk/recording.d.ts.map +1 -0
  345. package/sdk/recording.js +26 -0
  346. package/sdk/recording.js.map +1 -0
  347. package/sdk/sdk.d.ts +13 -4
  348. package/sdk/sdk.d.ts.map +1 -1
  349. package/sdk/sdk.js +18 -6
  350. package/sdk/sdk.js.map +1 -1
  351. package/src/funcs/busyListCalendarBusies.ts +172 -0
  352. package/src/funcs/calendarCreateCalendarCalendar.ts +164 -0
  353. package/src/funcs/calendarCreateCalendarEvent.ts +164 -0
  354. package/src/funcs/calendarCreateCalendarLink.ts +163 -0
  355. package/src/funcs/calendarGetCalendarCalendar.ts +169 -0
  356. package/src/funcs/calendarGetCalendarEvent.ts +166 -0
  357. package/src/funcs/calendarGetCalendarLink.ts +166 -0
  358. package/src/funcs/calendarGetCalendarRecording.ts +169 -0
  359. package/src/funcs/calendarListCalendarBusies.ts +172 -0
  360. package/src/funcs/calendarListCalendarCalendars.ts +170 -0
  361. package/src/funcs/calendarListCalendarEvents.ts +172 -0
  362. package/src/funcs/calendarListCalendarLinks.ts +169 -0
  363. package/src/funcs/calendarListCalendarRecordings.ts +173 -0
  364. package/src/funcs/calendarPatchCalendarCalendar.ts +170 -0
  365. package/src/funcs/calendarPatchCalendarEvent.ts +167 -0
  366. package/src/funcs/calendarPatchCalendarLink.ts +167 -0
  367. package/src/funcs/calendarRemoveCalendarCalendar.ts +175 -0
  368. package/src/funcs/calendarRemoveCalendarEvent.ts +170 -0
  369. package/src/funcs/calendarRemoveCalendarLink.ts +169 -0
  370. package/src/funcs/calendarUpdateCalendarCalendar.ts +170 -0
  371. package/src/funcs/calendarUpdateCalendarEvent.ts +168 -0
  372. package/src/funcs/calendarUpdateCalendarLink.ts +167 -0
  373. package/src/funcs/eventCreateCalendarEvent.ts +164 -0
  374. package/src/funcs/eventGetCalendarEvent.ts +166 -0
  375. package/src/funcs/eventListCalendarEvents.ts +172 -0
  376. package/src/funcs/eventPatchCalendarEvent.ts +167 -0
  377. package/src/funcs/eventRemoveCalendarEvent.ts +170 -0
  378. package/src/funcs/eventUpdateCalendarEvent.ts +168 -0
  379. package/src/funcs/linkCreateCalendarLink.ts +163 -0
  380. package/src/funcs/linkGetCalendarLink.ts +166 -0
  381. package/src/funcs/linkListCalendarLinks.ts +169 -0
  382. package/src/funcs/linkPatchCalendarLink.ts +167 -0
  383. package/src/funcs/linkRemoveCalendarLink.ts +169 -0
  384. package/src/funcs/linkUpdateCalendarLink.ts +167 -0
  385. package/src/funcs/recordingGetCalendarRecording.ts +169 -0
  386. package/src/funcs/recordingListCalendarRecordings.ts +173 -0
  387. package/src/lib/config.ts +2 -2
  388. package/src/sdk/busy.ts +25 -0
  389. package/src/sdk/calendar.ts +325 -0
  390. package/src/sdk/event.ts +90 -0
  391. package/src/sdk/link.ts +90 -0
  392. package/src/sdk/models/operations/createcalendarcalendar.ts +94 -0
  393. package/src/sdk/models/operations/createcalendarevent.ts +92 -0
  394. package/src/sdk/models/operations/createcalendarlink.ts +92 -0
  395. package/src/sdk/models/operations/getcalendarcalendar.ts +92 -0
  396. package/src/sdk/models/operations/getcalendarevent.ts +92 -0
  397. package/src/sdk/models/operations/getcalendarlink.ts +92 -0
  398. package/src/sdk/models/operations/getcalendarrecording.ts +94 -0
  399. package/src/sdk/models/operations/getunifiedintegrationauth.ts +10 -0
  400. package/src/sdk/models/operations/index.ts +21 -0
  401. package/src/sdk/models/operations/listcalendarbusies.ts +136 -0
  402. package/src/sdk/models/operations/listcalendarcalendars.ts +120 -0
  403. package/src/sdk/models/operations/listcalendarevents.ts +136 -0
  404. package/src/sdk/models/operations/listcalendarlinks.ts +118 -0
  405. package/src/sdk/models/operations/listcalendarrecordings.ts +138 -0
  406. package/src/sdk/models/operations/listunifiedconnections.ts +1 -0
  407. package/src/sdk/models/operations/listunifiedintegrations.ts +1 -0
  408. package/src/sdk/models/operations/listunifiedintegrationworkspaces.ts +1 -0
  409. package/src/sdk/models/operations/patchcalendarcalendar.ts +101 -0
  410. package/src/sdk/models/operations/patchcalendarevent.ts +99 -0
  411. package/src/sdk/models/operations/patchcalendarlink.ts +99 -0
  412. package/src/sdk/models/operations/removecalendarcalendar.ts +155 -0
  413. package/src/sdk/models/operations/removecalendarevent.ts +153 -0
  414. package/src/sdk/models/operations/removecalendarlink.ts +151 -0
  415. package/src/sdk/models/operations/updatecalendarcalendar.ts +101 -0
  416. package/src/sdk/models/operations/updatecalendarevent.ts +99 -0
  417. package/src/sdk/models/operations/updatecalendarlink.ts +99 -0
  418. package/src/sdk/models/shared/calendarattendee.ts +120 -0
  419. package/src/sdk/models/shared/calendarbusy.ts +141 -0
  420. package/src/sdk/models/shared/calendarcalendar.ts +153 -0
  421. package/src/sdk/models/shared/calendarevent.ts +246 -0
  422. package/src/sdk/models/shared/calendarlink.ts +167 -0
  423. package/src/sdk/models/shared/calendarrecording.ts +184 -0
  424. package/src/sdk/models/shared/calendarrecordingmedia.ts +119 -0
  425. package/src/sdk/models/shared/calendarrecordingtranscript.ts +105 -0
  426. package/src/sdk/models/shared/index.ts +10 -0
  427. package/src/sdk/models/shared/integrationsupport.ts +66 -0
  428. package/src/sdk/models/shared/propertycalendareventorganizer.ts +127 -0
  429. package/src/sdk/models/shared/propertycalendarrecordingtranscriptattendee.ts +139 -0
  430. package/src/sdk/models/shared/propertyconnectionauth.ts +6 -0
  431. package/src/sdk/models/shared/propertyconnectioncategories.ts +1 -0
  432. package/src/sdk/models/shared/propertyconnectionpermissions.ts +10 -0
  433. package/src/sdk/models/shared/propertyintegrationcategories.ts +1 -0
  434. package/src/sdk/models/shared/webhook.ts +5 -0
  435. package/src/sdk/recording.ts +40 -0
  436. package/src/sdk/sdk.ts +28 -10
@@ -0,0 +1,166 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { UnifiedToCore } from "../core.js";
6
+ import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { safeParse } from "../lib/schemas.js";
10
+ import { RequestOptions } from "../lib/sdks.js";
11
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
+ import { pathToFunc } from "../lib/url.js";
13
+ import {
14
+ ConnectionError,
15
+ InvalidRequestError,
16
+ RequestAbortedError,
17
+ RequestTimeoutError,
18
+ UnexpectedClientError,
19
+ } from "../sdk/models/errors/httpclienterrors.js";
20
+ import { SDKError } from "../sdk/models/errors/sdkerror.js";
21
+ import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
22
+ import * as operations from "../sdk/models/operations/index.js";
23
+ import * as shared from "../sdk/models/shared/index.js";
24
+ import { APICall, APIPromise } from "../sdk/types/async.js";
25
+ import { Result } from "../sdk/types/fp.js";
26
+
27
+ /**
28
+ * Retrieve a link
29
+ */
30
+ export function linkGetCalendarLink(
31
+ client: UnifiedToCore,
32
+ request: operations.GetCalendarLinkRequest,
33
+ options?: RequestOptions,
34
+ ): APIPromise<
35
+ Result<
36
+ shared.CalendarLink,
37
+ | SDKError
38
+ | SDKValidationError
39
+ | UnexpectedClientError
40
+ | InvalidRequestError
41
+ | RequestAbortedError
42
+ | RequestTimeoutError
43
+ | ConnectionError
44
+ >
45
+ > {
46
+ return new APIPromise($do(
47
+ client,
48
+ request,
49
+ options,
50
+ ));
51
+ }
52
+
53
+ async function $do(
54
+ client: UnifiedToCore,
55
+ request: operations.GetCalendarLinkRequest,
56
+ options?: RequestOptions,
57
+ ): Promise<
58
+ [
59
+ Result<
60
+ shared.CalendarLink,
61
+ | SDKError
62
+ | SDKValidationError
63
+ | UnexpectedClientError
64
+ | InvalidRequestError
65
+ | RequestAbortedError
66
+ | RequestTimeoutError
67
+ | ConnectionError
68
+ >,
69
+ APICall,
70
+ ]
71
+ > {
72
+ const parsed = safeParse(
73
+ request,
74
+ (value) => operations.GetCalendarLinkRequest$outboundSchema.parse(value),
75
+ "Input validation failed",
76
+ );
77
+ if (!parsed.ok) {
78
+ return [parsed, { status: "invalid" }];
79
+ }
80
+ const payload = parsed.value;
81
+ const body = null;
82
+
83
+ const pathParams = {
84
+ connection_id: encodeSimple("connection_id", payload.connection_id, {
85
+ explode: false,
86
+ charEncoding: "percent",
87
+ }),
88
+ id: encodeSimple("id", payload.id, {
89
+ explode: false,
90
+ charEncoding: "percent",
91
+ }),
92
+ };
93
+
94
+ const path = pathToFunc("/calendar/{connection_id}/link/{id}")(pathParams);
95
+
96
+ const query = encodeFormQuery({
97
+ "fields": payload.fields,
98
+ });
99
+
100
+ const headers = new Headers(compactMap({
101
+ Accept: "application/json",
102
+ }));
103
+
104
+ const securityInput = await extractSecurity(client._options.security);
105
+ const requestSecurity = resolveGlobalSecurity(securityInput);
106
+
107
+ const context = {
108
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
109
+ operationID: "getCalendarLink",
110
+ oAuth2Scopes: [],
111
+
112
+ resolvedSecurity: requestSecurity,
113
+
114
+ securitySource: client._options.security,
115
+ retryConfig: options?.retries
116
+ || client._options.retryConfig
117
+ || { strategy: "none" },
118
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
119
+ };
120
+
121
+ const requestRes = client._createRequest(context, {
122
+ security: requestSecurity,
123
+ method: "GET",
124
+ baseURL: options?.serverURL,
125
+ path: path,
126
+ headers: headers,
127
+ query: query,
128
+ body: body,
129
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
130
+ }, options);
131
+ if (!requestRes.ok) {
132
+ return [requestRes, { status: "invalid" }];
133
+ }
134
+ const req = requestRes.value;
135
+
136
+ const doResult = await client._do(req, {
137
+ context,
138
+ errorCodes: ["4XX", "5XX"],
139
+ retryConfig: context.retryConfig,
140
+ retryCodes: context.retryCodes,
141
+ });
142
+ if (!doResult.ok) {
143
+ return [doResult, { status: "request-error", request: req }];
144
+ }
145
+ const response = doResult.value;
146
+
147
+ const [result] = await M.match<
148
+ shared.CalendarLink,
149
+ | SDKError
150
+ | SDKValidationError
151
+ | UnexpectedClientError
152
+ | InvalidRequestError
153
+ | RequestAbortedError
154
+ | RequestTimeoutError
155
+ | ConnectionError
156
+ >(
157
+ M.json(200, shared.CalendarLink$inboundSchema),
158
+ M.fail("4XX"),
159
+ M.fail("5XX"),
160
+ )(response);
161
+ if (!result.ok) {
162
+ return [result, { status: "complete", request: req, response }];
163
+ }
164
+
165
+ return [result, { status: "complete", request: req, response }];
166
+ }
@@ -0,0 +1,169 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { UnifiedToCore } from "../core.js";
7
+ import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../sdk/models/errors/httpclienterrors.js";
21
+ import { SDKError } from "../sdk/models/errors/sdkerror.js";
22
+ import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
23
+ import * as operations from "../sdk/models/operations/index.js";
24
+ import * as shared from "../sdk/models/shared/index.js";
25
+ import { APICall, APIPromise } from "../sdk/types/async.js";
26
+ import { Result } from "../sdk/types/fp.js";
27
+
28
+ /**
29
+ * List all links
30
+ */
31
+ export function linkListCalendarLinks(
32
+ client: UnifiedToCore,
33
+ request: operations.ListCalendarLinksRequest,
34
+ options?: RequestOptions,
35
+ ): APIPromise<
36
+ Result<
37
+ Array<shared.CalendarLink>,
38
+ | SDKError
39
+ | SDKValidationError
40
+ | UnexpectedClientError
41
+ | InvalidRequestError
42
+ | RequestAbortedError
43
+ | RequestTimeoutError
44
+ | ConnectionError
45
+ >
46
+ > {
47
+ return new APIPromise($do(
48
+ client,
49
+ request,
50
+ options,
51
+ ));
52
+ }
53
+
54
+ async function $do(
55
+ client: UnifiedToCore,
56
+ request: operations.ListCalendarLinksRequest,
57
+ options?: RequestOptions,
58
+ ): Promise<
59
+ [
60
+ Result<
61
+ Array<shared.CalendarLink>,
62
+ | SDKError
63
+ | SDKValidationError
64
+ | UnexpectedClientError
65
+ | InvalidRequestError
66
+ | RequestAbortedError
67
+ | RequestTimeoutError
68
+ | ConnectionError
69
+ >,
70
+ APICall,
71
+ ]
72
+ > {
73
+ const parsed = safeParse(
74
+ request,
75
+ (value) => operations.ListCalendarLinksRequest$outboundSchema.parse(value),
76
+ "Input validation failed",
77
+ );
78
+ if (!parsed.ok) {
79
+ return [parsed, { status: "invalid" }];
80
+ }
81
+ const payload = parsed.value;
82
+ const body = null;
83
+
84
+ const pathParams = {
85
+ connection_id: encodeSimple("connection_id", payload.connection_id, {
86
+ explode: false,
87
+ charEncoding: "percent",
88
+ }),
89
+ };
90
+
91
+ const path = pathToFunc("/calendar/{connection_id}/link")(pathParams);
92
+
93
+ const query = encodeFormQuery({
94
+ "fields": payload.fields,
95
+ "limit": payload.limit,
96
+ "offset": payload.offset,
97
+ "order": payload.order,
98
+ "query": payload.query,
99
+ "sort": payload.sort,
100
+ "updated_gte": payload.updated_gte,
101
+ });
102
+
103
+ const headers = new Headers(compactMap({
104
+ Accept: "application/json",
105
+ }));
106
+
107
+ const securityInput = await extractSecurity(client._options.security);
108
+ const requestSecurity = resolveGlobalSecurity(securityInput);
109
+
110
+ const context = {
111
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
112
+ operationID: "listCalendarLinks",
113
+ oAuth2Scopes: [],
114
+
115
+ resolvedSecurity: requestSecurity,
116
+
117
+ securitySource: client._options.security,
118
+ retryConfig: options?.retries
119
+ || client._options.retryConfig
120
+ || { strategy: "none" },
121
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
122
+ };
123
+
124
+ const requestRes = client._createRequest(context, {
125
+ security: requestSecurity,
126
+ method: "GET",
127
+ baseURL: options?.serverURL,
128
+ path: path,
129
+ headers: headers,
130
+ query: query,
131
+ body: body,
132
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
133
+ }, options);
134
+ if (!requestRes.ok) {
135
+ return [requestRes, { status: "invalid" }];
136
+ }
137
+ const req = requestRes.value;
138
+
139
+ const doResult = await client._do(req, {
140
+ context,
141
+ errorCodes: ["4XX", "5XX"],
142
+ retryConfig: context.retryConfig,
143
+ retryCodes: context.retryCodes,
144
+ });
145
+ if (!doResult.ok) {
146
+ return [doResult, { status: "request-error", request: req }];
147
+ }
148
+ const response = doResult.value;
149
+
150
+ const [result] = await M.match<
151
+ Array<shared.CalendarLink>,
152
+ | SDKError
153
+ | SDKValidationError
154
+ | UnexpectedClientError
155
+ | InvalidRequestError
156
+ | RequestAbortedError
157
+ | RequestTimeoutError
158
+ | ConnectionError
159
+ >(
160
+ M.json(200, z.array(shared.CalendarLink$inboundSchema)),
161
+ M.fail("4XX"),
162
+ M.fail("5XX"),
163
+ )(response);
164
+ if (!result.ok) {
165
+ return [result, { status: "complete", request: req, response }];
166
+ }
167
+
168
+ return [result, { status: "complete", request: req, response }];
169
+ }
@@ -0,0 +1,167 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { UnifiedToCore } from "../core.js";
6
+ import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { safeParse } from "../lib/schemas.js";
10
+ import { RequestOptions } from "../lib/sdks.js";
11
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
+ import { pathToFunc } from "../lib/url.js";
13
+ import {
14
+ ConnectionError,
15
+ InvalidRequestError,
16
+ RequestAbortedError,
17
+ RequestTimeoutError,
18
+ UnexpectedClientError,
19
+ } from "../sdk/models/errors/httpclienterrors.js";
20
+ import { SDKError } from "../sdk/models/errors/sdkerror.js";
21
+ import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
22
+ import * as operations from "../sdk/models/operations/index.js";
23
+ import * as shared from "../sdk/models/shared/index.js";
24
+ import { APICall, APIPromise } from "../sdk/types/async.js";
25
+ import { Result } from "../sdk/types/fp.js";
26
+
27
+ /**
28
+ * Update a link
29
+ */
30
+ export function linkPatchCalendarLink(
31
+ client: UnifiedToCore,
32
+ request: operations.PatchCalendarLinkRequest,
33
+ options?: RequestOptions,
34
+ ): APIPromise<
35
+ Result<
36
+ shared.CalendarLink,
37
+ | SDKError
38
+ | SDKValidationError
39
+ | UnexpectedClientError
40
+ | InvalidRequestError
41
+ | RequestAbortedError
42
+ | RequestTimeoutError
43
+ | ConnectionError
44
+ >
45
+ > {
46
+ return new APIPromise($do(
47
+ client,
48
+ request,
49
+ options,
50
+ ));
51
+ }
52
+
53
+ async function $do(
54
+ client: UnifiedToCore,
55
+ request: operations.PatchCalendarLinkRequest,
56
+ options?: RequestOptions,
57
+ ): Promise<
58
+ [
59
+ Result<
60
+ shared.CalendarLink,
61
+ | SDKError
62
+ | SDKValidationError
63
+ | UnexpectedClientError
64
+ | InvalidRequestError
65
+ | RequestAbortedError
66
+ | RequestTimeoutError
67
+ | ConnectionError
68
+ >,
69
+ APICall,
70
+ ]
71
+ > {
72
+ const parsed = safeParse(
73
+ request,
74
+ (value) => operations.PatchCalendarLinkRequest$outboundSchema.parse(value),
75
+ "Input validation failed",
76
+ );
77
+ if (!parsed.ok) {
78
+ return [parsed, { status: "invalid" }];
79
+ }
80
+ const payload = parsed.value;
81
+ const body = encodeJSON("body", payload.CalendarLink, { explode: true });
82
+
83
+ const pathParams = {
84
+ connection_id: encodeSimple("connection_id", payload.connection_id, {
85
+ explode: false,
86
+ charEncoding: "percent",
87
+ }),
88
+ id: encodeSimple("id", payload.id, {
89
+ explode: false,
90
+ charEncoding: "percent",
91
+ }),
92
+ };
93
+
94
+ const path = pathToFunc("/calendar/{connection_id}/link/{id}")(pathParams);
95
+
96
+ const query = encodeFormQuery({
97
+ "fields": payload.fields,
98
+ });
99
+
100
+ const headers = new Headers(compactMap({
101
+ "Content-Type": "application/json",
102
+ Accept: "application/json",
103
+ }));
104
+
105
+ const securityInput = await extractSecurity(client._options.security);
106
+ const requestSecurity = resolveGlobalSecurity(securityInput);
107
+
108
+ const context = {
109
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
110
+ operationID: "patchCalendarLink",
111
+ oAuth2Scopes: [],
112
+
113
+ resolvedSecurity: requestSecurity,
114
+
115
+ securitySource: client._options.security,
116
+ retryConfig: options?.retries
117
+ || client._options.retryConfig
118
+ || { strategy: "none" },
119
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
120
+ };
121
+
122
+ const requestRes = client._createRequest(context, {
123
+ security: requestSecurity,
124
+ method: "PATCH",
125
+ baseURL: options?.serverURL,
126
+ path: path,
127
+ headers: headers,
128
+ query: query,
129
+ body: body,
130
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
131
+ }, options);
132
+ if (!requestRes.ok) {
133
+ return [requestRes, { status: "invalid" }];
134
+ }
135
+ const req = requestRes.value;
136
+
137
+ const doResult = await client._do(req, {
138
+ context,
139
+ errorCodes: ["4XX", "5XX"],
140
+ retryConfig: context.retryConfig,
141
+ retryCodes: context.retryCodes,
142
+ });
143
+ if (!doResult.ok) {
144
+ return [doResult, { status: "request-error", request: req }];
145
+ }
146
+ const response = doResult.value;
147
+
148
+ const [result] = await M.match<
149
+ shared.CalendarLink,
150
+ | SDKError
151
+ | SDKValidationError
152
+ | UnexpectedClientError
153
+ | InvalidRequestError
154
+ | RequestAbortedError
155
+ | RequestTimeoutError
156
+ | ConnectionError
157
+ >(
158
+ M.json(200, shared.CalendarLink$inboundSchema),
159
+ M.fail("4XX"),
160
+ M.fail("5XX"),
161
+ )(response);
162
+ if (!result.ok) {
163
+ return [result, { status: "complete", request: req, response }];
164
+ }
165
+
166
+ return [result, { status: "complete", request: req, response }];
167
+ }
@@ -0,0 +1,169 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { UnifiedToCore } from "../core.js";
6
+ import { encodeSimple } from "../lib/encodings.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { safeParse } from "../lib/schemas.js";
10
+ import { RequestOptions } from "../lib/sdks.js";
11
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
+ import { pathToFunc } from "../lib/url.js";
13
+ import {
14
+ ConnectionError,
15
+ InvalidRequestError,
16
+ RequestAbortedError,
17
+ RequestTimeoutError,
18
+ UnexpectedClientError,
19
+ } from "../sdk/models/errors/httpclienterrors.js";
20
+ import { SDKError } from "../sdk/models/errors/sdkerror.js";
21
+ import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
22
+ import * as operations from "../sdk/models/operations/index.js";
23
+ import { APICall, APIPromise } from "../sdk/types/async.js";
24
+ import { Result } from "../sdk/types/fp.js";
25
+
26
+ /**
27
+ * Remove a link
28
+ */
29
+ export function linkRemoveCalendarLink(
30
+ client: UnifiedToCore,
31
+ request: operations.RemoveCalendarLinkRequest,
32
+ options?: RequestOptions,
33
+ ): APIPromise<
34
+ Result<
35
+ operations.RemoveCalendarLinkResponse | undefined,
36
+ | SDKError
37
+ | SDKValidationError
38
+ | UnexpectedClientError
39
+ | InvalidRequestError
40
+ | RequestAbortedError
41
+ | RequestTimeoutError
42
+ | ConnectionError
43
+ >
44
+ > {
45
+ return new APIPromise($do(
46
+ client,
47
+ request,
48
+ options,
49
+ ));
50
+ }
51
+
52
+ async function $do(
53
+ client: UnifiedToCore,
54
+ request: operations.RemoveCalendarLinkRequest,
55
+ options?: RequestOptions,
56
+ ): Promise<
57
+ [
58
+ Result<
59
+ operations.RemoveCalendarLinkResponse | undefined,
60
+ | SDKError
61
+ | SDKValidationError
62
+ | UnexpectedClientError
63
+ | InvalidRequestError
64
+ | RequestAbortedError
65
+ | RequestTimeoutError
66
+ | ConnectionError
67
+ >,
68
+ APICall,
69
+ ]
70
+ > {
71
+ const parsed = safeParse(
72
+ request,
73
+ (value) => operations.RemoveCalendarLinkRequest$outboundSchema.parse(value),
74
+ "Input validation failed",
75
+ );
76
+ if (!parsed.ok) {
77
+ return [parsed, { status: "invalid" }];
78
+ }
79
+ const payload = parsed.value;
80
+ const body = null;
81
+
82
+ const pathParams = {
83
+ connection_id: encodeSimple("connection_id", payload.connection_id, {
84
+ explode: false,
85
+ charEncoding: "percent",
86
+ }),
87
+ id: encodeSimple("id", payload.id, {
88
+ explode: false,
89
+ charEncoding: "percent",
90
+ }),
91
+ };
92
+
93
+ const path = pathToFunc("/calendar/{connection_id}/link/{id}")(pathParams);
94
+
95
+ const headers = new Headers(compactMap({
96
+ Accept: "*/*",
97
+ }));
98
+
99
+ const securityInput = await extractSecurity(client._options.security);
100
+ const requestSecurity = resolveGlobalSecurity(securityInput);
101
+
102
+ const context = {
103
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
104
+ operationID: "removeCalendarLink",
105
+ oAuth2Scopes: [],
106
+
107
+ resolvedSecurity: requestSecurity,
108
+
109
+ securitySource: client._options.security,
110
+ retryConfig: options?.retries
111
+ || client._options.retryConfig
112
+ || { strategy: "none" },
113
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
114
+ };
115
+
116
+ const requestRes = client._createRequest(context, {
117
+ security: requestSecurity,
118
+ method: "DELETE",
119
+ baseURL: options?.serverURL,
120
+ path: path,
121
+ headers: headers,
122
+ body: body,
123
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
124
+ }, options);
125
+ if (!requestRes.ok) {
126
+ return [requestRes, { status: "invalid" }];
127
+ }
128
+ const req = requestRes.value;
129
+
130
+ const doResult = await client._do(req, {
131
+ context,
132
+ errorCodes: ["4XX", "5XX"],
133
+ retryConfig: context.retryConfig,
134
+ retryCodes: context.retryCodes,
135
+ });
136
+ if (!doResult.ok) {
137
+ return [doResult, { status: "request-error", request: req }];
138
+ }
139
+ const response = doResult.value;
140
+
141
+ const responseFields = {
142
+ HttpMeta: { Response: response, Request: req },
143
+ };
144
+
145
+ const [result] = await M.match<
146
+ operations.RemoveCalendarLinkResponse | undefined,
147
+ | SDKError
148
+ | SDKValidationError
149
+ | UnexpectedClientError
150
+ | InvalidRequestError
151
+ | RequestAbortedError
152
+ | RequestTimeoutError
153
+ | ConnectionError
154
+ >(
155
+ M.nil(200, operations.RemoveCalendarLinkResponse$inboundSchema.optional()),
156
+ M.fail("4XX"),
157
+ M.fail("5XX"),
158
+ M.nil(
159
+ "default",
160
+ operations.RemoveCalendarLinkResponse$inboundSchema.optional(),
161
+ { hdrs: true },
162
+ ),
163
+ )(response, { extraFields: responseFields });
164
+ if (!result.ok) {
165
+ return [result, { status: "complete", request: req, response }];
166
+ }
167
+
168
+ return [result, { status: "complete", request: req, response }];
169
+ }