telnyx 7.30.0 → 7.31.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 (357) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/client.d.mts +22 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +22 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js +18 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +18 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/agent-gateways/agent-gateways.d.mts +360 -0
  12. package/resources/agent-gateways/agent-gateways.d.mts.map +1 -0
  13. package/resources/agent-gateways/agent-gateways.d.ts +360 -0
  14. package/resources/agent-gateways/agent-gateways.d.ts.map +1 -0
  15. package/resources/agent-gateways/agent-gateways.js +140 -0
  16. package/resources/agent-gateways/agent-gateways.js.map +1 -0
  17. package/resources/agent-gateways/agent-gateways.mjs +135 -0
  18. package/resources/agent-gateways/agent-gateways.mjs.map +1 -0
  19. package/resources/agent-gateways/apis.d.mts +300 -0
  20. package/resources/agent-gateways/apis.d.mts.map +1 -0
  21. package/resources/agent-gateways/apis.d.ts +300 -0
  22. package/resources/agent-gateways/apis.d.ts.map +1 -0
  23. package/resources/agent-gateways/apis.js +89 -0
  24. package/resources/agent-gateways/apis.js.map +1 -0
  25. package/resources/agent-gateways/apis.mjs +85 -0
  26. package/resources/agent-gateways/apis.mjs.map +1 -0
  27. package/resources/agent-gateways/guardrails.d.mts +210 -0
  28. package/resources/agent-gateways/guardrails.d.mts.map +1 -0
  29. package/resources/agent-gateways/guardrails.d.ts +210 -0
  30. package/resources/agent-gateways/guardrails.d.ts.map +1 -0
  31. package/resources/agent-gateways/guardrails.js +96 -0
  32. package/resources/agent-gateways/guardrails.js.map +1 -0
  33. package/resources/agent-gateways/guardrails.mjs +92 -0
  34. package/resources/agent-gateways/guardrails.mjs.map +1 -0
  35. package/resources/agent-gateways/index.d.mts +9 -0
  36. package/resources/agent-gateways/index.d.mts.map +1 -0
  37. package/resources/agent-gateways/index.d.ts +9 -0
  38. package/resources/agent-gateways/index.d.ts.map +1 -0
  39. package/resources/agent-gateways/index.js +21 -0
  40. package/resources/agent-gateways/index.js.map +1 -0
  41. package/resources/agent-gateways/index.mjs +10 -0
  42. package/resources/agent-gateways/index.mjs.map +1 -0
  43. package/resources/agent-gateways/keys/index.d.mts +3 -0
  44. package/resources/agent-gateways/keys/index.d.mts.map +1 -0
  45. package/resources/agent-gateways/keys/index.d.ts +3 -0
  46. package/resources/agent-gateways/keys/index.d.ts.map +1 -0
  47. package/resources/agent-gateways/keys/index.js +9 -0
  48. package/resources/agent-gateways/keys/index.js.map +1 -0
  49. package/resources/agent-gateways/keys/index.mjs +4 -0
  50. package/resources/agent-gateways/keys/index.mjs.map +1 -0
  51. package/resources/agent-gateways/keys/keys.d.mts +329 -0
  52. package/resources/agent-gateways/keys/keys.d.mts.map +1 -0
  53. package/resources/agent-gateways/keys/keys.d.ts +329 -0
  54. package/resources/agent-gateways/keys/keys.d.ts.map +1 -0
  55. package/resources/agent-gateways/keys/keys.js +99 -0
  56. package/resources/agent-gateways/keys/keys.js.map +1 -0
  57. package/resources/agent-gateways/keys/keys.mjs +94 -0
  58. package/resources/agent-gateways/keys/keys.mjs.map +1 -0
  59. package/resources/agent-gateways/keys/tool-permissions.d.mts +103 -0
  60. package/resources/agent-gateways/keys/tool-permissions.d.mts.map +1 -0
  61. package/resources/agent-gateways/keys/tool-permissions.d.ts +103 -0
  62. package/resources/agent-gateways/keys/tool-permissions.d.ts.map +1 -0
  63. package/resources/agent-gateways/keys/tool-permissions.js +62 -0
  64. package/resources/agent-gateways/keys/tool-permissions.js.map +1 -0
  65. package/resources/agent-gateways/keys/tool-permissions.mjs +58 -0
  66. package/resources/agent-gateways/keys/tool-permissions.mjs.map +1 -0
  67. package/resources/agent-gateways/keys.d.mts +2 -0
  68. package/resources/agent-gateways/keys.d.mts.map +1 -0
  69. package/resources/agent-gateways/keys.d.ts +2 -0
  70. package/resources/agent-gateways/keys.d.ts.map +1 -0
  71. package/resources/agent-gateways/keys.js +6 -0
  72. package/resources/agent-gateways/keys.js.map +1 -0
  73. package/resources/agent-gateways/keys.mjs +3 -0
  74. package/resources/agent-gateways/keys.mjs.map +1 -0
  75. package/resources/agent-gateways/mcp-servers.d.mts +246 -0
  76. package/resources/agent-gateways/mcp-servers.d.mts.map +1 -0
  77. package/resources/agent-gateways/mcp-servers.d.ts +246 -0
  78. package/resources/agent-gateways/mcp-servers.d.ts.map +1 -0
  79. package/resources/agent-gateways/mcp-servers.js +97 -0
  80. package/resources/agent-gateways/mcp-servers.js.map +1 -0
  81. package/resources/agent-gateways/mcp-servers.mjs +93 -0
  82. package/resources/agent-gateways/mcp-servers.mjs.map +1 -0
  83. package/resources/agent-gateways/policies.d.mts +266 -0
  84. package/resources/agent-gateways/policies.d.mts.map +1 -0
  85. package/resources/agent-gateways/policies.d.ts +266 -0
  86. package/resources/agent-gateways/policies.d.ts.map +1 -0
  87. package/resources/agent-gateways/policies.js +97 -0
  88. package/resources/agent-gateways/policies.js.map +1 -0
  89. package/resources/agent-gateways/policies.mjs +93 -0
  90. package/resources/agent-gateways/policies.mjs.map +1 -0
  91. package/resources/agent-gateways/policy-attachments.d.mts +123 -0
  92. package/resources/agent-gateways/policy-attachments.d.mts.map +1 -0
  93. package/resources/agent-gateways/policy-attachments.d.ts +123 -0
  94. package/resources/agent-gateways/policy-attachments.d.ts.map +1 -0
  95. package/resources/agent-gateways/policy-attachments.js +63 -0
  96. package/resources/agent-gateways/policy-attachments.js.map +1 -0
  97. package/resources/agent-gateways/policy-attachments.mjs +59 -0
  98. package/resources/agent-gateways/policy-attachments.mjs.map +1 -0
  99. package/resources/agent-gateways/teams/index.d.mts +3 -0
  100. package/resources/agent-gateways/teams/index.d.mts.map +1 -0
  101. package/resources/agent-gateways/teams/index.d.ts +3 -0
  102. package/resources/agent-gateways/teams/index.d.ts.map +1 -0
  103. package/resources/agent-gateways/teams/index.js +9 -0
  104. package/resources/agent-gateways/teams/index.js.map +1 -0
  105. package/resources/agent-gateways/teams/index.mjs +4 -0
  106. package/resources/agent-gateways/teams/index.mjs.map +1 -0
  107. package/resources/agent-gateways/teams/teams.d.mts +210 -0
  108. package/resources/agent-gateways/teams/teams.d.mts.map +1 -0
  109. package/resources/agent-gateways/teams/teams.d.ts +210 -0
  110. package/resources/agent-gateways/teams/teams.d.ts.map +1 -0
  111. package/resources/agent-gateways/teams/teams.js +98 -0
  112. package/resources/agent-gateways/teams/teams.js.map +1 -0
  113. package/resources/agent-gateways/teams/teams.mjs +93 -0
  114. package/resources/agent-gateways/teams/teams.mjs.map +1 -0
  115. package/resources/agent-gateways/teams/tool-permissions.d.mts +82 -0
  116. package/resources/agent-gateways/teams/tool-permissions.d.mts.map +1 -0
  117. package/resources/agent-gateways/teams/tool-permissions.d.ts +82 -0
  118. package/resources/agent-gateways/teams/tool-permissions.d.ts.map +1 -0
  119. package/resources/agent-gateways/teams/tool-permissions.js +62 -0
  120. package/resources/agent-gateways/teams/tool-permissions.js.map +1 -0
  121. package/resources/agent-gateways/teams/tool-permissions.mjs +58 -0
  122. package/resources/agent-gateways/teams/tool-permissions.mjs.map +1 -0
  123. package/resources/agent-gateways/teams.d.mts +2 -0
  124. package/resources/agent-gateways/teams.d.mts.map +1 -0
  125. package/resources/agent-gateways/teams.d.ts +2 -0
  126. package/resources/agent-gateways/teams.d.ts.map +1 -0
  127. package/resources/agent-gateways/teams.js +6 -0
  128. package/resources/agent-gateways/teams.js.map +1 -0
  129. package/resources/agent-gateways/teams.mjs +3 -0
  130. package/resources/agent-gateways/teams.mjs.map +1 -0
  131. package/resources/agent-gateways.d.mts +2 -0
  132. package/resources/agent-gateways.d.mts.map +1 -0
  133. package/resources/agent-gateways.d.ts +2 -0
  134. package/resources/agent-gateways.d.ts.map +1 -0
  135. package/resources/agent-gateways.js +6 -0
  136. package/resources/agent-gateways.js.map +1 -0
  137. package/resources/agent-gateways.mjs +3 -0
  138. package/resources/agent-gateways.mjs.map +1 -0
  139. package/resources/ai/assistants/assistants.d.mts +23 -9
  140. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  141. package/resources/ai/assistants/assistants.d.ts +23 -9
  142. package/resources/ai/assistants/assistants.d.ts.map +1 -1
  143. package/resources/ai/assistants/assistants.js.map +1 -1
  144. package/resources/ai/assistants/assistants.mjs.map +1 -1
  145. package/resources/ai/memory/namespaces/index.d.mts +1 -1
  146. package/resources/ai/memory/namespaces/index.d.mts.map +1 -1
  147. package/resources/ai/memory/namespaces/index.d.ts +1 -1
  148. package/resources/ai/memory/namespaces/index.d.ts.map +1 -1
  149. package/resources/ai/memory/namespaces/index.js.map +1 -1
  150. package/resources/ai/memory/namespaces/index.mjs.map +1 -1
  151. package/resources/ai/memory/namespaces/namespaces.d.mts +2 -2
  152. package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -1
  153. package/resources/ai/memory/namespaces/namespaces.d.ts +2 -2
  154. package/resources/ai/memory/namespaces/namespaces.d.ts.map +1 -1
  155. package/resources/ai/memory/namespaces/namespaces.js.map +1 -1
  156. package/resources/ai/memory/namespaces/namespaces.mjs.map +1 -1
  157. package/resources/ai/memory/namespaces/profiles/index.d.mts +1 -1
  158. package/resources/ai/memory/namespaces/profiles/index.d.mts.map +1 -1
  159. package/resources/ai/memory/namespaces/profiles/index.d.ts +1 -1
  160. package/resources/ai/memory/namespaces/profiles/index.d.ts.map +1 -1
  161. package/resources/ai/memory/namespaces/profiles/index.js.map +1 -1
  162. package/resources/ai/memory/namespaces/profiles/index.mjs.map +1 -1
  163. package/resources/ai/memory/namespaces/profiles/profiles.d.mts +20 -2
  164. package/resources/ai/memory/namespaces/profiles/profiles.d.mts.map +1 -1
  165. package/resources/ai/memory/namespaces/profiles/profiles.d.ts +20 -2
  166. package/resources/ai/memory/namespaces/profiles/profiles.d.ts.map +1 -1
  167. package/resources/ai/memory/namespaces/profiles/profiles.js.map +1 -1
  168. package/resources/ai/memory/namespaces/profiles/profiles.mjs.map +1 -1
  169. package/resources/calendar-connections/calendar-connections.d.mts +380 -0
  170. package/resources/calendar-connections/calendar-connections.d.mts.map +1 -0
  171. package/resources/calendar-connections/calendar-connections.d.ts +380 -0
  172. package/resources/calendar-connections/calendar-connections.d.ts.map +1 -0
  173. package/resources/calendar-connections/calendar-connections.js +102 -0
  174. package/resources/calendar-connections/calendar-connections.js.map +1 -0
  175. package/resources/calendar-connections/calendar-connections.mjs +97 -0
  176. package/resources/calendar-connections/calendar-connections.mjs.map +1 -0
  177. package/resources/calendar-connections/index.d.mts +3 -0
  178. package/resources/calendar-connections/index.d.mts.map +1 -0
  179. package/resources/calendar-connections/index.d.ts +3 -0
  180. package/resources/calendar-connections/index.d.ts.map +1 -0
  181. package/resources/calendar-connections/index.js +9 -0
  182. package/resources/calendar-connections/index.js.map +1 -0
  183. package/resources/calendar-connections/index.mjs +4 -0
  184. package/resources/calendar-connections/index.mjs.map +1 -0
  185. package/resources/calendar-connections/meetings.d.mts +149 -0
  186. package/resources/calendar-connections/meetings.d.mts.map +1 -0
  187. package/resources/calendar-connections/meetings.d.ts +149 -0
  188. package/resources/calendar-connections/meetings.d.ts.map +1 -0
  189. package/resources/calendar-connections/meetings.js +47 -0
  190. package/resources/calendar-connections/meetings.js.map +1 -0
  191. package/resources/calendar-connections/meetings.mjs +43 -0
  192. package/resources/calendar-connections/meetings.mjs.map +1 -0
  193. package/resources/calendar-connections.d.mts +2 -0
  194. package/resources/calendar-connections.d.mts.map +1 -0
  195. package/resources/calendar-connections.d.ts +2 -0
  196. package/resources/calendar-connections.d.ts.map +1 -0
  197. package/resources/calendar-connections.js +6 -0
  198. package/resources/calendar-connections.js.map +1 -0
  199. package/resources/calendar-connections.mjs +3 -0
  200. package/resources/calendar-connections.mjs.map +1 -0
  201. package/resources/calls/actions.d.mts +11 -5
  202. package/resources/calls/actions.d.mts.map +1 -1
  203. package/resources/calls/actions.d.ts +11 -5
  204. package/resources/calls/actions.d.ts.map +1 -1
  205. package/resources/calls/calls.d.mts +4 -4
  206. package/resources/calls/calls.d.mts.map +1 -1
  207. package/resources/calls/calls.d.ts +4 -4
  208. package/resources/calls/calls.d.ts.map +1 -1
  209. package/resources/calls/calls.js.map +1 -1
  210. package/resources/calls/calls.mjs.map +1 -1
  211. package/resources/calls/index.d.mts +1 -1
  212. package/resources/calls/index.d.mts.map +1 -1
  213. package/resources/calls/index.d.ts +1 -1
  214. package/resources/calls/index.d.ts.map +1 -1
  215. package/resources/calls/index.js.map +1 -1
  216. package/resources/calls/index.mjs.map +1 -1
  217. package/resources/conferences/actions.d.mts +1 -1
  218. package/resources/conferences/actions.d.mts.map +1 -1
  219. package/resources/conferences/actions.d.ts +1 -1
  220. package/resources/conferences/actions.d.ts.map +1 -1
  221. package/resources/index.d.mts +6 -2
  222. package/resources/index.d.mts.map +1 -1
  223. package/resources/index.d.ts +6 -2
  224. package/resources/index.d.ts.map +1 -1
  225. package/resources/index.js +13 -4
  226. package/resources/index.js.map +1 -1
  227. package/resources/index.mjs +4 -0
  228. package/resources/index.mjs.map +1 -1
  229. package/resources/meeting-bot/calendar.d.mts +34 -0
  230. package/resources/meeting-bot/calendar.d.mts.map +1 -0
  231. package/resources/meeting-bot/calendar.d.ts +34 -0
  232. package/resources/meeting-bot/calendar.d.ts.map +1 -0
  233. package/resources/meeting-bot/calendar.js +26 -0
  234. package/resources/meeting-bot/calendar.js.map +1 -0
  235. package/resources/meeting-bot/calendar.mjs +22 -0
  236. package/resources/meeting-bot/calendar.mjs.map +1 -0
  237. package/resources/meeting-bot/index.d.mts +3 -0
  238. package/resources/meeting-bot/index.d.mts.map +1 -0
  239. package/resources/meeting-bot/index.d.ts +3 -0
  240. package/resources/meeting-bot/index.d.ts.map +1 -0
  241. package/resources/meeting-bot/index.js +9 -0
  242. package/resources/meeting-bot/index.js.map +1 -0
  243. package/resources/meeting-bot/index.mjs +4 -0
  244. package/resources/meeting-bot/index.mjs.map +1 -0
  245. package/resources/meeting-bot/meeting-bot.d.mts +10 -0
  246. package/resources/meeting-bot/meeting-bot.d.mts.map +1 -0
  247. package/resources/meeting-bot/meeting-bot.d.ts +10 -0
  248. package/resources/meeting-bot/meeting-bot.d.ts.map +1 -0
  249. package/resources/meeting-bot/meeting-bot.js +17 -0
  250. package/resources/meeting-bot/meeting-bot.js.map +1 -0
  251. package/resources/meeting-bot/meeting-bot.mjs +12 -0
  252. package/resources/meeting-bot/meeting-bot.mjs.map +1 -0
  253. package/resources/meeting-bot.d.mts +2 -0
  254. package/resources/meeting-bot.d.mts.map +1 -0
  255. package/resources/meeting-bot.d.ts +2 -0
  256. package/resources/meeting-bot.d.ts.map +1 -0
  257. package/resources/meeting-bot.js +6 -0
  258. package/resources/meeting-bot.js.map +1 -0
  259. package/resources/meeting-bot.mjs +3 -0
  260. package/resources/meeting-bot.mjs.map +1 -0
  261. package/resources/meeting-sessions/actions.d.mts +17 -11
  262. package/resources/meeting-sessions/actions.d.mts.map +1 -1
  263. package/resources/meeting-sessions/actions.d.ts +17 -11
  264. package/resources/meeting-sessions/actions.d.ts.map +1 -1
  265. package/resources/meeting-sessions/actions.js +14 -10
  266. package/resources/meeting-sessions/actions.js.map +1 -1
  267. package/resources/meeting-sessions/actions.mjs +14 -10
  268. package/resources/meeting-sessions/actions.mjs.map +1 -1
  269. package/resources/meeting-sessions/artifacts.d.mts +8 -7
  270. package/resources/meeting-sessions/artifacts.d.mts.map +1 -1
  271. package/resources/meeting-sessions/artifacts.d.ts +8 -7
  272. package/resources/meeting-sessions/artifacts.d.ts.map +1 -1
  273. package/resources/meeting-sessions/artifacts.js +8 -7
  274. package/resources/meeting-sessions/artifacts.js.map +1 -1
  275. package/resources/meeting-sessions/artifacts.mjs +8 -7
  276. package/resources/meeting-sessions/artifacts.mjs.map +1 -1
  277. package/resources/meeting-sessions/index.d.mts +1 -1
  278. package/resources/meeting-sessions/index.d.mts.map +1 -1
  279. package/resources/meeting-sessions/index.d.ts +1 -1
  280. package/resources/meeting-sessions/index.d.ts.map +1 -1
  281. package/resources/meeting-sessions/index.js.map +1 -1
  282. package/resources/meeting-sessions/index.mjs.map +1 -1
  283. package/resources/meeting-sessions/meeting-sessions.d.mts +281 -103
  284. package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
  285. package/resources/meeting-sessions/meeting-sessions.d.ts +281 -103
  286. package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
  287. package/resources/meeting-sessions/meeting-sessions.js +53 -21
  288. package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
  289. package/resources/meeting-sessions/meeting-sessions.mjs +53 -21
  290. package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -1
  291. package/resources/text-to-speech/text-to-speech.d.mts +45 -5
  292. package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
  293. package/resources/text-to-speech/text-to-speech.d.ts +45 -5
  294. package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
  295. package/resources/text-to-speech/text-to-speech.js +8 -2
  296. package/resources/text-to-speech/text-to-speech.js.map +1 -1
  297. package/resources/text-to-speech/text-to-speech.mjs +8 -2
  298. package/resources/text-to-speech/text-to-speech.mjs.map +1 -1
  299. package/resources/user-profile.d.mts +284 -0
  300. package/resources/user-profile.d.mts.map +1 -0
  301. package/resources/user-profile.d.ts +284 -0
  302. package/resources/user-profile.d.ts.map +1 -0
  303. package/resources/user-profile.js +42 -0
  304. package/resources/user-profile.js.map +1 -0
  305. package/resources/user-profile.mjs +38 -0
  306. package/resources/user-profile.mjs.map +1 -0
  307. package/resources/webhooks.d.mts +129 -3
  308. package/resources/webhooks.d.mts.map +1 -1
  309. package/resources/webhooks.d.ts +129 -3
  310. package/resources/webhooks.d.ts.map +1 -1
  311. package/src/client.ts +90 -0
  312. package/src/resources/agent-gateways/agent-gateways.ts +605 -0
  313. package/src/resources/agent-gateways/apis.ts +388 -0
  314. package/src/resources/agent-gateways/guardrails.ts +304 -0
  315. package/src/resources/agent-gateways/index.ts +87 -0
  316. package/src/resources/agent-gateways/keys/index.ts +20 -0
  317. package/src/resources/agent-gateways/keys/keys.ts +437 -0
  318. package/src/resources/agent-gateways/keys/tool-permissions.ts +139 -0
  319. package/src/resources/agent-gateways/keys.ts +3 -0
  320. package/src/resources/agent-gateways/mcp-servers.ts +328 -0
  321. package/src/resources/agent-gateways/policies.ts +348 -0
  322. package/src/resources/agent-gateways/policy-attachments.ts +167 -0
  323. package/src/resources/agent-gateways/teams/index.ts +16 -0
  324. package/src/resources/agent-gateways/teams/teams.ts +282 -0
  325. package/src/resources/agent-gateways/teams/tool-permissions.ts +112 -0
  326. package/src/resources/agent-gateways/teams.ts +3 -0
  327. package/src/resources/agent-gateways.ts +3 -0
  328. package/src/resources/ai/assistants/assistants.ts +24 -9
  329. package/src/resources/ai/memory/namespaces/index.ts +1 -0
  330. package/src/resources/ai/memory/namespaces/namespaces.ts +2 -0
  331. package/src/resources/ai/memory/namespaces/profiles/index.ts +1 -0
  332. package/src/resources/ai/memory/namespaces/profiles/profiles.ts +24 -1
  333. package/src/resources/calendar-connections/calendar-connections.ts +486 -0
  334. package/src/resources/calendar-connections/index.ts +21 -0
  335. package/src/resources/calendar-connections/meetings.ts +205 -0
  336. package/src/resources/calendar-connections.ts +3 -0
  337. package/src/resources/calls/actions.ts +16 -4
  338. package/src/resources/calls/calls.ts +6 -2
  339. package/src/resources/calls/index.ts +1 -0
  340. package/src/resources/conferences/actions.ts +2 -1
  341. package/src/resources/index.ts +36 -0
  342. package/src/resources/meeting-bot/calendar.ts +54 -0
  343. package/src/resources/meeting-bot/index.ts +8 -0
  344. package/src/resources/meeting-bot/meeting-bot.ts +23 -0
  345. package/src/resources/meeting-bot.ts +3 -0
  346. package/src/resources/meeting-sessions/actions.ts +17 -11
  347. package/src/resources/meeting-sessions/artifacts.ts +8 -7
  348. package/src/resources/meeting-sessions/index.ts +4 -0
  349. package/src/resources/meeting-sessions/meeting-sessions.ts +321 -102
  350. package/src/resources/text-to-speech/text-to-speech.ts +81 -5
  351. package/src/resources/user-profile.ts +357 -0
  352. package/src/resources/webhooks.ts +216 -0
  353. package/src/version.ts +1 -1
  354. package/version.d.mts +1 -1
  355. package/version.d.ts +1 -1
  356. package/version.js +1 -1
  357. package/version.mjs +1 -1
@@ -0,0 +1,380 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import * as CalendarConnectionsAPI from "./calendar-connections.js";
3
+ import * as MeetingsAPI from "./meetings.js";
4
+ import { CalendarMeeting, MeetingListParams, MeetingListResponse, MeetingUpdateParams, MeetingUpdateResponse, Meetings } from "./meetings.js";
5
+ import * as MeetingSessionsAPI from "../meeting-sessions/meeting-sessions.js";
6
+ import { APIPromise } from "../../core/api-promise.js";
7
+ import { RequestOptions } from "../../internal/request-options.js";
8
+ /**
9
+ * Connect calendars and manage automatic meeting joins.
10
+ */
11
+ export declare class CalendarConnections extends APIResource {
12
+ meetings: MeetingsAPI.Meetings;
13
+ /**
14
+ * List only the authenticated connecting user’s calendar connections. Session
15
+ * resources created by those connections are shared within the organization.
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * const calendarConnections =
20
+ * await client.calendarConnections.list();
21
+ * ```
22
+ */
23
+ list(options?: RequestOptions): APIPromise<CalendarConnectionListResponse>;
24
+ /**
25
+ * Start Google Calendar or Microsoft Outlook OAuth. Open oauth_url in a browser.
26
+ * No connection exists until authorization succeeds. The resulting connection is
27
+ * owned by the connecting user.
28
+ *
29
+ * @example
30
+ * ```ts
31
+ * const calendarConnection =
32
+ * await client.calendarConnections.create({
33
+ * platform: 'google_calendar',
34
+ * });
35
+ * ```
36
+ */
37
+ create(body: CalendarConnectionCreateParams, options?: RequestOptions): APIPromise<CalendarConnectionCreateResponse>;
38
+ /**
39
+ * Disconnect the calendar, cancel future joins, and clear retained calendar
40
+ * identity fields. Previously created session records, transcripts, artifacts, and
41
+ * Storage objects remain. The response is the updated connection.
42
+ *
43
+ * @example
44
+ * ```ts
45
+ * const calendarConnectionResponse =
46
+ * await client.calendarConnections.delete('id');
47
+ * ```
48
+ */
49
+ delete(id: string, options?: RequestOptions): APIPromise<CalendarConnectionResponse>;
50
+ /**
51
+ * Retrieve a calendar connection owned by the authenticated connecting user.
52
+ * Missing and foreign connections both return 404. Signing secrets are omitted.
53
+ *
54
+ * @example
55
+ * ```ts
56
+ * const calendarConnectionResponse =
57
+ * await client.calendarConnections.retrieve('id');
58
+ * ```
59
+ */
60
+ retrieve(id: string, options?: RequestOptions): APIPromise<CalendarConnectionResponse>;
61
+ /**
62
+ * Update policy or defaults for future sessions. Supply at least one field.
63
+ * Existing sessions retain their configuration. Null clears nullable overrides.
64
+ * Assistant, recording, and webhook defaults apply to Google Meet and Teams.
65
+ * Assistant defaults require default_barge_in to be false or null and
66
+ * default_voice to be null. Recording=true requires a destination; false rejects
67
+ * one. A non-null default_webhook_url update returns webhook_secret once; save it
68
+ * to verify future session deliveries.
69
+ *
70
+ * @example
71
+ * ```ts
72
+ * const calendarConnection =
73
+ * await client.calendarConnections.update('id', {
74
+ * default_recording: true,
75
+ * default_recording_export: {
76
+ * bucket: 'meeting-recordings',
77
+ * },
78
+ * default_webhook_url:
79
+ * 'https://example.com/meeting-events',
80
+ * });
81
+ * ```
82
+ */
83
+ update(id: string, body: CalendarConnectionUpdateParams, options?: RequestOptions): APIPromise<CalendarConnectionUpdateResponse>;
84
+ }
85
+ export interface CalendarConnection {
86
+ /**
87
+ * Calendar connection ID.
88
+ */
89
+ id: string;
90
+ /**
91
+ * all_meetings joins eligible events; external_organizer_excluded requires the
92
+ * connected user to be the organizer; per_meeting requires an explicit opt-in.
93
+ */
94
+ auto_join_policy: 'all_meetings' | 'external_organizer_excluded' | 'per_meeting';
95
+ /**
96
+ * Bot display name; null clears the override.
97
+ */
98
+ bot_name: string | null;
99
+ /**
100
+ * Creation time.
101
+ */
102
+ created_at: string;
103
+ default_assistant: MeetingSessionAssistant | null;
104
+ /**
105
+ * Default manual speech interruption. Cannot be true with default_assistant.
106
+ */
107
+ default_barge_in: boolean | null;
108
+ /**
109
+ * Google Meet and Teams recording intent. When null, recording is enabled only if
110
+ * a destination is set. True requires default_recording_export; false cannot be
111
+ * combined with a destination.
112
+ */
113
+ default_recording: boolean | null;
114
+ /**
115
+ * Customer-owned Telnyx Storage destination for recording exports. Uses the
116
+ * authenticated organization and user; do not supply credentials, region,
117
+ * organization ID or object key.
118
+ */
119
+ default_recording_export: MeetingSessionsAPI.MeetingSessionRecordingDestination | null;
120
+ /**
121
+ * Generate a summary when each future session transcript finalizes.
122
+ */
123
+ default_summarize_on_end: boolean | null;
124
+ /**
125
+ * Manual-speech voice; must be null when default_assistant is set.
126
+ */
127
+ default_voice: string | null;
128
+ /**
129
+ * HTTPS destination for future session webhooks. Null clears the default. A
130
+ * non-null update returns webhook_secret once; save it to verify signatures for
131
+ * sessions created with this default. Existing sessions retain their original
132
+ * signing secret.
133
+ */
134
+ default_webhook_url: string | null;
135
+ /**
136
+ * Calendar provider: Google Calendar or Microsoft Outlook.
137
+ */
138
+ platform: 'google_calendar' | 'microsoft_outlook';
139
+ /**
140
+ * Connected calendar email address.
141
+ */
142
+ platform_email: string | null;
143
+ /**
144
+ * Connection status.
145
+ */
146
+ status: 'connected' | 'disconnected' | 'error';
147
+ /**
148
+ * Additional connection status detail.
149
+ */
150
+ status_detail: string | null;
151
+ /**
152
+ * Last update time.
153
+ */
154
+ updated_at: string;
155
+ }
156
+ export interface CalendarConnectionResponse {
157
+ data: CalendarConnection;
158
+ }
159
+ export interface MeetingSessionAssistant {
160
+ /**
161
+ * Identifier of the assistant.
162
+ */
163
+ id: string;
164
+ /**
165
+ * Audio gating strategy in force for the assistant call leg.
166
+ */
167
+ audio_gate: 'half_duplex' | 'full_duplex';
168
+ /**
169
+ * Whether the bot leaves when the Assistant's conversation ends or fails.
170
+ */
171
+ leave_on_end: boolean;
172
+ /**
173
+ * Dynamic variables in individual-session responses; null when none were supplied.
174
+ * Omitted from session list items.
175
+ */
176
+ dynamic_variables?: {
177
+ [key: string]: string;
178
+ } | null;
179
+ }
180
+ export interface CalendarConnectionCreateResponse {
181
+ data: CalendarConnectionCreateResponse.Data;
182
+ }
183
+ export declare namespace CalendarConnectionCreateResponse {
184
+ interface Data {
185
+ /**
186
+ * Open in a browser to authorize calendar access.
187
+ */
188
+ oauth_url: string;
189
+ /**
190
+ * Calendar provider: Google Calendar or Microsoft Outlook.
191
+ */
192
+ platform: 'google_calendar' | 'microsoft_outlook';
193
+ /**
194
+ * Authorization has not completed.
195
+ */
196
+ status: 'pending_oauth';
197
+ }
198
+ }
199
+ export interface CalendarConnectionUpdateResponse {
200
+ data: CalendarConnectionUpdateResponse.Data;
201
+ }
202
+ export declare namespace CalendarConnectionUpdateResponse {
203
+ interface Data {
204
+ /**
205
+ * Calendar connection ID.
206
+ */
207
+ id: string;
208
+ /**
209
+ * all_meetings joins eligible events; external_organizer_excluded requires the
210
+ * connected user to be the organizer; per_meeting requires an explicit opt-in.
211
+ */
212
+ auto_join_policy: 'all_meetings' | 'external_organizer_excluded' | 'per_meeting';
213
+ /**
214
+ * Bot display name; null clears the override.
215
+ */
216
+ bot_name: string | null;
217
+ /**
218
+ * Creation time.
219
+ */
220
+ created_at: string;
221
+ default_assistant: CalendarConnectionsAPI.MeetingSessionAssistant | null;
222
+ /**
223
+ * Default manual speech interruption. Cannot be true with default_assistant.
224
+ */
225
+ default_barge_in: boolean | null;
226
+ /**
227
+ * Google Meet and Teams recording intent. When null, recording is enabled only if
228
+ * a destination is set. True requires default_recording_export; false cannot be
229
+ * combined with a destination.
230
+ */
231
+ default_recording: boolean | null;
232
+ /**
233
+ * Customer-owned Telnyx Storage destination for recording exports. Uses the
234
+ * authenticated organization and user; do not supply credentials, region,
235
+ * organization ID or object key.
236
+ */
237
+ default_recording_export: MeetingSessionsAPI.MeetingSessionRecordingDestination | null;
238
+ /**
239
+ * Generate a summary when each future session transcript finalizes.
240
+ */
241
+ default_summarize_on_end: boolean | null;
242
+ /**
243
+ * Manual-speech voice; must be null when default_assistant is set.
244
+ */
245
+ default_voice: string | null;
246
+ /**
247
+ * HTTPS destination for future session webhooks. Null clears the default. A
248
+ * non-null update returns webhook_secret once; save it to verify signatures for
249
+ * sessions created with this default. Existing sessions retain their original
250
+ * signing secret.
251
+ */
252
+ default_webhook_url: string | null;
253
+ /**
254
+ * Calendar provider: Google Calendar or Microsoft Outlook.
255
+ */
256
+ platform: 'google_calendar' | 'microsoft_outlook';
257
+ /**
258
+ * Connected calendar email address.
259
+ */
260
+ platform_email: string | null;
261
+ /**
262
+ * Connection status.
263
+ */
264
+ status: 'connected' | 'disconnected' | 'error';
265
+ /**
266
+ * Additional connection status detail.
267
+ */
268
+ status_detail: string | null;
269
+ /**
270
+ * Last update time.
271
+ */
272
+ updated_at: string;
273
+ /**
274
+ * Returned only when PATCH supplies a non-null default_webhook_url. Not returned
275
+ * by list or retrieve. Save this secret to verify webhooks for future sessions.
276
+ */
277
+ webhook_secret?: string;
278
+ }
279
+ }
280
+ export interface CalendarConnectionListResponse {
281
+ data: Array<CalendarConnection>;
282
+ }
283
+ export interface CalendarConnectionCreateParams {
284
+ /**
285
+ * Calendar provider: Google Calendar or Microsoft Outlook.
286
+ */
287
+ platform: 'google_calendar' | 'microsoft_outlook';
288
+ }
289
+ export interface CalendarConnectionUpdateParams {
290
+ /**
291
+ * all_meetings joins eligible events; external_organizer_excluded requires the
292
+ * connected user to be the organizer; per_meeting requires an explicit opt-in.
293
+ */
294
+ auto_join_policy?: 'all_meetings' | 'external_organizer_excluded' | 'per_meeting';
295
+ /**
296
+ * Bot display name; null clears the override.
297
+ */
298
+ bot_name?: string | null;
299
+ /**
300
+ * Default assistant for future calendar-scheduled Google Meet and Teams sessions.
301
+ * The saved configuration must fit within 8 KiB. Use id, audio_gate,
302
+ * dynamic_variables, and leave_on_end; avatar is not accepted. audio_gate defaults
303
+ * to full_duplex.
304
+ */
305
+ default_assistant?: CalendarConnectionUpdateParams.DefaultAssistant | null;
306
+ /**
307
+ * Default manual speech interruption. Cannot be true with default_assistant.
308
+ */
309
+ default_barge_in?: boolean | null;
310
+ /**
311
+ * Google Meet and Teams recording intent. When null, recording is enabled only if
312
+ * a destination is set. True requires default_recording_export; false cannot be
313
+ * combined with a destination.
314
+ */
315
+ default_recording?: boolean | null;
316
+ /**
317
+ * Customer-owned Telnyx Storage destination for recording exports. Uses the
318
+ * authenticated organization and user; do not supply credentials, region,
319
+ * organization ID or object key.
320
+ */
321
+ default_recording_export?: MeetingSessionsAPI.MeetingSessionRecordingDestination | null;
322
+ /**
323
+ * Generate a summary when each future session transcript finalizes.
324
+ */
325
+ default_summarize_on_end?: boolean | null;
326
+ /**
327
+ * Manual-speech voice; must be null when default_assistant is set.
328
+ */
329
+ default_voice?: string | null;
330
+ /**
331
+ * HTTPS destination for future session webhooks. Null clears the default. A
332
+ * non-null update returns webhook_secret once; save it to verify signatures for
333
+ * sessions created with this default. Existing sessions retain their original
334
+ * signing secret.
335
+ */
336
+ default_webhook_url?: string | null;
337
+ }
338
+ export declare namespace CalendarConnectionUpdateParams {
339
+ /**
340
+ * Default assistant for future calendar-scheduled Google Meet and Teams sessions.
341
+ * The saved configuration must fit within 8 KiB. Use id, audio_gate,
342
+ * dynamic_variables, and leave_on_end; avatar is not accepted. audio_gate defaults
343
+ * to full_duplex.
344
+ */
345
+ interface DefaultAssistant {
346
+ /**
347
+ * Identifier of the assistant to attach.
348
+ */
349
+ id: string;
350
+ /**
351
+ * Use full_duplex (default) to allow participants to interrupt, or half_duplex to
352
+ * pause listening while the assistant speaks. Full-duplex pricing depends on
353
+ * participant audio usage; see the Meeting pricing guide.
354
+ */
355
+ audio_gate?: 'half_duplex' | 'full_duplex';
356
+ /**
357
+ * Per-conversation values for the
358
+ * [dynamic variables](/docs/inference/ai-assistants/dynamic-variables) used in the
359
+ * Assistant's instructions, greeting, or tools. Delivered before the Assistant's
360
+ * first utterance, so they resolve for the opening line as well as the rest of the
361
+ * conversation. At most 63 entries; keys 1-128 characters; values must be strings.
362
+ * The map is budgeted in aggregate at 1,047,552 bytes (1023 KiB) rather than
363
+ * capped per value. `streaming_audio`, `ai_assistant_streaming_audio` and
364
+ * `meeting_session_id` are reserved and rejected with `400 invalid_request`.
365
+ */
366
+ dynamic_variables?: {
367
+ [key: string]: string;
368
+ };
369
+ /**
370
+ * Leave when the assistant conversation ends or fails. Defaults to false. Other
371
+ * leave-policy rules and explicit leave requests still apply.
372
+ */
373
+ leave_on_end?: boolean;
374
+ }
375
+ }
376
+ export declare namespace CalendarConnections {
377
+ export { type CalendarConnection as CalendarConnection, type CalendarConnectionResponse as CalendarConnectionResponse, type MeetingSessionAssistant as MeetingSessionAssistant, type CalendarConnectionCreateResponse as CalendarConnectionCreateResponse, type CalendarConnectionUpdateResponse as CalendarConnectionUpdateResponse, type CalendarConnectionListResponse as CalendarConnectionListResponse, type CalendarConnectionCreateParams as CalendarConnectionCreateParams, type CalendarConnectionUpdateParams as CalendarConnectionUpdateParams, };
378
+ export { Meetings as Meetings, type CalendarMeeting as CalendarMeeting, type MeetingUpdateResponse as MeetingUpdateResponse, type MeetingListResponse as MeetingListResponse, type MeetingListParams as MeetingListParams, type MeetingUpdateParams as MeetingUpdateParams, };
379
+ }
380
+ //# sourceMappingURL=calendar-connections.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar-connections.d.ts","sourceRoot":"","sources":["../../src/resources/calendar-connections/calendar-connections.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,sBAAsB,kCAA+B;AACjE,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,QAAQ,EACT,sBAAmB;AACpB,OAAO,KAAK,kBAAkB,gDAA6C;AAC3E,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,WAAW;IAClD,QAAQ,EAAE,WAAW,CAAC,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,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CalendarConnections = void 0;
5
+ const tslib_1 = require("../../internal/tslib.js");
6
+ const resource_1 = require("../../core/resource.js");
7
+ const MeetingsAPI = tslib_1.__importStar(require("./meetings.js"));
8
+ const meetings_1 = require("./meetings.js");
9
+ const path_1 = require("../../internal/utils/path.js");
10
+ /**
11
+ * Connect calendars and manage automatic meeting joins.
12
+ */
13
+ class CalendarConnections extends resource_1.APIResource {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.meetings = new MeetingsAPI.Meetings(this._client);
17
+ }
18
+ /**
19
+ * List only the authenticated connecting user’s calendar connections. Session
20
+ * resources created by those connections are shared within the organization.
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const calendarConnections =
25
+ * await client.calendarConnections.list();
26
+ * ```
27
+ */
28
+ list(options) {
29
+ return this._client.get('/calendar_connections', options);
30
+ }
31
+ /**
32
+ * Start Google Calendar or Microsoft Outlook OAuth. Open oauth_url in a browser.
33
+ * No connection exists until authorization succeeds. The resulting connection is
34
+ * owned by the connecting user.
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const calendarConnection =
39
+ * await client.calendarConnections.create({
40
+ * platform: 'google_calendar',
41
+ * });
42
+ * ```
43
+ */
44
+ create(body, options) {
45
+ return this._client.post('/calendar_connections', { body, ...options });
46
+ }
47
+ /**
48
+ * Disconnect the calendar, cancel future joins, and clear retained calendar
49
+ * identity fields. Previously created session records, transcripts, artifacts, and
50
+ * Storage objects remain. The response is the updated connection.
51
+ *
52
+ * @example
53
+ * ```ts
54
+ * const calendarConnectionResponse =
55
+ * await client.calendarConnections.delete('id');
56
+ * ```
57
+ */
58
+ delete(id, options) {
59
+ return this._client.delete((0, path_1.path) `/calendar_connections/${id}`, options);
60
+ }
61
+ /**
62
+ * Retrieve a calendar connection owned by the authenticated connecting user.
63
+ * Missing and foreign connections both return 404. Signing secrets are omitted.
64
+ *
65
+ * @example
66
+ * ```ts
67
+ * const calendarConnectionResponse =
68
+ * await client.calendarConnections.retrieve('id');
69
+ * ```
70
+ */
71
+ retrieve(id, options) {
72
+ return this._client.get((0, path_1.path) `/calendar_connections/${id}`, options);
73
+ }
74
+ /**
75
+ * Update policy or defaults for future sessions. Supply at least one field.
76
+ * Existing sessions retain their configuration. Null clears nullable overrides.
77
+ * Assistant, recording, and webhook defaults apply to Google Meet and Teams.
78
+ * Assistant defaults require default_barge_in to be false or null and
79
+ * default_voice to be null. Recording=true requires a destination; false rejects
80
+ * one. A non-null default_webhook_url update returns webhook_secret once; save it
81
+ * to verify future session deliveries.
82
+ *
83
+ * @example
84
+ * ```ts
85
+ * const calendarConnection =
86
+ * await client.calendarConnections.update('id', {
87
+ * default_recording: true,
88
+ * default_recording_export: {
89
+ * bucket: 'meeting-recordings',
90
+ * },
91
+ * default_webhook_url:
92
+ * 'https://example.com/meeting-events',
93
+ * });
94
+ * ```
95
+ */
96
+ update(id, body, options) {
97
+ return this._client.patch((0, path_1.path) `/calendar_connections/${id}`, { body, ...options });
98
+ }
99
+ }
100
+ exports.CalendarConnections = CalendarConnections;
101
+ CalendarConnections.Meetings = meetings_1.Meetings;
102
+ //# sourceMappingURL=calendar-connections.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar-connections.js","sourceRoot":"","sources":["../../src/resources/calendar-connections/calendar-connections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,mEAA0C;AAC1C,4CAOoB;AAIpB,uDAAiD;AAEjD;;GAEG;AACH,MAAa,mBAAoB,SAAQ,sBAAW;IAApD;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA8F1E,CAAC;IA5FC;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CACJ,EAAU,EACV,IAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;CACF;AA/FD,kDA+FC;AA2VD,mBAAmB,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
@@ -0,0 +1,97 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import * as MeetingsAPI from "./meetings.mjs";
4
+ import { Meetings, } from "./meetings.mjs";
5
+ import { path } from "../../internal/utils/path.mjs";
6
+ /**
7
+ * Connect calendars and manage automatic meeting joins.
8
+ */
9
+ export class CalendarConnections extends APIResource {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.meetings = new MeetingsAPI.Meetings(this._client);
13
+ }
14
+ /**
15
+ * List only the authenticated connecting user’s calendar connections. Session
16
+ * resources created by those connections are shared within the organization.
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * const calendarConnections =
21
+ * await client.calendarConnections.list();
22
+ * ```
23
+ */
24
+ list(options) {
25
+ return this._client.get('/calendar_connections', options);
26
+ }
27
+ /**
28
+ * Start Google Calendar or Microsoft Outlook OAuth. Open oauth_url in a browser.
29
+ * No connection exists until authorization succeeds. The resulting connection is
30
+ * owned by the connecting user.
31
+ *
32
+ * @example
33
+ * ```ts
34
+ * const calendarConnection =
35
+ * await client.calendarConnections.create({
36
+ * platform: 'google_calendar',
37
+ * });
38
+ * ```
39
+ */
40
+ create(body, options) {
41
+ return this._client.post('/calendar_connections', { body, ...options });
42
+ }
43
+ /**
44
+ * Disconnect the calendar, cancel future joins, and clear retained calendar
45
+ * identity fields. Previously created session records, transcripts, artifacts, and
46
+ * Storage objects remain. The response is the updated connection.
47
+ *
48
+ * @example
49
+ * ```ts
50
+ * const calendarConnectionResponse =
51
+ * await client.calendarConnections.delete('id');
52
+ * ```
53
+ */
54
+ delete(id, options) {
55
+ return this._client.delete(path `/calendar_connections/${id}`, options);
56
+ }
57
+ /**
58
+ * Retrieve a calendar connection owned by the authenticated connecting user.
59
+ * Missing and foreign connections both return 404. Signing secrets are omitted.
60
+ *
61
+ * @example
62
+ * ```ts
63
+ * const calendarConnectionResponse =
64
+ * await client.calendarConnections.retrieve('id');
65
+ * ```
66
+ */
67
+ retrieve(id, options) {
68
+ return this._client.get(path `/calendar_connections/${id}`, options);
69
+ }
70
+ /**
71
+ * Update policy or defaults for future sessions. Supply at least one field.
72
+ * Existing sessions retain their configuration. Null clears nullable overrides.
73
+ * Assistant, recording, and webhook defaults apply to Google Meet and Teams.
74
+ * Assistant defaults require default_barge_in to be false or null and
75
+ * default_voice to be null. Recording=true requires a destination; false rejects
76
+ * one. A non-null default_webhook_url update returns webhook_secret once; save it
77
+ * to verify future session deliveries.
78
+ *
79
+ * @example
80
+ * ```ts
81
+ * const calendarConnection =
82
+ * await client.calendarConnections.update('id', {
83
+ * default_recording: true,
84
+ * default_recording_export: {
85
+ * bucket: 'meeting-recordings',
86
+ * },
87
+ * default_webhook_url:
88
+ * 'https://example.com/meeting-events',
89
+ * });
90
+ * ```
91
+ */
92
+ update(id, body, options) {
93
+ return this._client.patch(path `/calendar_connections/${id}`, { body, ...options });
94
+ }
95
+ }
96
+ CalendarConnections.Meetings = Meetings;
97
+ //# sourceMappingURL=calendar-connections.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar-connections.mjs","sourceRoot":"","sources":["../../src/resources/calendar-connections/calendar-connections.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAML,QAAQ,GACT,uBAAmB;AAIpB,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,WAAW;IAApD;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA8F1E,CAAC;IA5FC;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,yBAAyB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,yBAAyB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CACJ,EAAU,EACV,IAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,yBAAyB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;CACF;AA2VD,mBAAmB,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { CalendarConnections, type CalendarConnection, type CalendarConnectionResponse, type MeetingSessionAssistant, type CalendarConnectionCreateResponse, type CalendarConnectionUpdateResponse, type CalendarConnectionListResponse, type CalendarConnectionCreateParams, type CalendarConnectionUpdateParams, } from "./calendar-connections.mjs";
2
+ export { Meetings, type CalendarMeeting, type MeetingUpdateResponse, type MeetingListResponse, type MeetingListParams, type MeetingUpdateParams, } from "./meetings.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/calendar-connections/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,GACpC,mCAA+B;AAChC,OAAO,EACL,QAAQ,EACR,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,GACzB,uBAAmB"}
@@ -0,0 +1,3 @@
1
+ export { CalendarConnections, type CalendarConnection, type CalendarConnectionResponse, type MeetingSessionAssistant, type CalendarConnectionCreateResponse, type CalendarConnectionUpdateResponse, type CalendarConnectionListResponse, type CalendarConnectionCreateParams, type CalendarConnectionUpdateParams, } from "./calendar-connections.js";
2
+ export { Meetings, type CalendarMeeting, type MeetingUpdateResponse, type MeetingListResponse, type MeetingListParams, type MeetingUpdateParams, } from "./meetings.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/calendar-connections/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,GACpC,kCAA+B;AAChC,OAAO,EACL,QAAQ,EACR,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,GACzB,sBAAmB"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Meetings = exports.CalendarConnections = void 0;
5
+ var calendar_connections_1 = require("./calendar-connections.js");
6
+ Object.defineProperty(exports, "CalendarConnections", { enumerable: true, get: function () { return calendar_connections_1.CalendarConnections; } });
7
+ var meetings_1 = require("./meetings.js");
8
+ Object.defineProperty(exports, "Meetings", { enumerable: true, get: function () { return meetings_1.Meetings; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/calendar-connections/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kEAUgC;AAT9B,2HAAA,mBAAmB,OAAA;AAUrB,0CAOoB;AANlB,oGAAA,QAAQ,OAAA"}
@@ -0,0 +1,4 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { CalendarConnections, } from "./calendar-connections.mjs";
3
+ export { Meetings, } from "./meetings.mjs";
4
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/calendar-connections/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,mBAAmB,GASpB,mCAA+B;AAChC,OAAO,EACL,QAAQ,GAMT,uBAAmB"}