syllable-sdk 0.1.0-alpha.3 → 0.1.0-alpha.30

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 (1031) hide show
  1. package/.devcontainer/devcontainer.json +45 -0
  2. package/FUNCTIONS.md +104 -0
  3. package/README.md +89 -52
  4. package/RUNTIMES.md +48 -0
  5. package/api-reference/openapi.json +4398 -0
  6. package/api-reference/sdks/agents/README.md +224 -0
  7. package/api-reference/sdks/availabletargets/README.md +49 -0
  8. package/api-reference/sdks/channels/README.md +92 -0
  9. package/api-reference/sdks/chats/README.md +55 -0
  10. package/api-reference/sdks/conversations/README.md +91 -0
  11. package/api-reference/sdks/dashboards/README.md +321 -0
  12. package/api-reference/sdks/events/README.md +50 -0
  13. package/api-reference/sdks/greetings/README.md +223 -0
  14. package/api-reference/sdks/organizations/README.md +48 -0
  15. package/api-reference/sdks/prompts/README.md +225 -0
  16. package/api-reference/sdks/sessions/README.md +50 -0
  17. package/api-reference/sdks/syllable/README.md +22 -0
  18. package/api-reference/sdks/targets/README.md +194 -0
  19. package/api-reference/sdks/tools/README.md +92 -0
  20. package/docs/openapi.json +1 -0
  21. package/docs/sdks/agents/README.md +115 -19
  22. package/docs/sdks/channels/README.md +6 -3
  23. package/docs/sdks/conversations/README.md +1 -1
  24. package/docs/sdks/custommessages/README.md +14 -11
  25. package/docs/sdks/dashboards/README.md +41 -319
  26. package/docs/sdks/events/README.md +1 -1
  27. package/docs/sdks/prompts/README.md +89 -10
  28. package/docs/sdks/services/README.md +245 -0
  29. package/docs/sdks/sessionlabels/README.md +6 -4
  30. package/docs/sdks/sessions/README.md +235 -1
  31. package/docs/sdks/syllablesdk/README.md +8 -4
  32. package/docs/sdks/targets/README.md +20 -19
  33. package/docs/sdks/test/README.md +1 -1
  34. package/docs/sdks/tools/README.md +204 -3
  35. package/docs/sdks/v1/README.md +307 -0
  36. package/funcs/agentsAgentGetAvailableVoices.d.ts +15 -0
  37. package/funcs/agentsAgentGetAvailableVoices.d.ts.map +1 -0
  38. package/funcs/{dashboardsGetSessionAgents.js → agentsAgentGetAvailableVoices.js} +17 -14
  39. package/funcs/agentsAgentGetAvailableVoices.js.map +1 -0
  40. package/funcs/agentsCreate.d.ts +1 -1
  41. package/funcs/agentsCreate.d.ts.map +1 -1
  42. package/funcs/agentsCreate.js +9 -7
  43. package/funcs/agentsCreate.js.map +1 -1
  44. package/funcs/agentsDelete.d.ts.map +1 -1
  45. package/funcs/agentsDelete.js +9 -7
  46. package/funcs/agentsDelete.js.map +1 -1
  47. package/funcs/agentsGetById.d.ts +1 -1
  48. package/funcs/agentsGetById.d.ts.map +1 -1
  49. package/funcs/agentsGetById.js +8 -6
  50. package/funcs/agentsGetById.js.map +1 -1
  51. package/funcs/agentsList.d.ts +1 -1
  52. package/funcs/agentsList.d.ts.map +1 -1
  53. package/funcs/agentsList.js +8 -6
  54. package/funcs/agentsList.js.map +1 -1
  55. package/funcs/agentsTestSendTestMessage.d.ts.map +1 -1
  56. package/funcs/agentsTestSendTestMessage.js +8 -6
  57. package/funcs/agentsTestSendTestMessage.js.map +1 -1
  58. package/funcs/agentsUpdate.d.ts +1 -1
  59. package/funcs/agentsUpdate.d.ts.map +1 -1
  60. package/funcs/agentsUpdate.js +10 -8
  61. package/funcs/agentsUpdate.js.map +1 -1
  62. package/funcs/channelsDelete.d.ts +4 -2
  63. package/funcs/channelsDelete.d.ts.map +1 -1
  64. package/funcs/channelsDelete.js +12 -7
  65. package/funcs/channelsDelete.js.map +1 -1
  66. package/funcs/channelsList.d.ts.map +1 -1
  67. package/funcs/channelsList.js +8 -6
  68. package/funcs/channelsList.js.map +1 -1
  69. package/funcs/channelsTargetsAvailableTargets.d.ts.map +1 -1
  70. package/funcs/channelsTargetsAvailableTargets.js +8 -6
  71. package/funcs/channelsTargetsAvailableTargets.js.map +1 -1
  72. package/funcs/channelsTargetsCreate.d.ts +1 -1
  73. package/funcs/channelsTargetsCreate.d.ts.map +1 -1
  74. package/funcs/channelsTargetsCreate.js +8 -6
  75. package/funcs/channelsTargetsCreate.js.map +1 -1
  76. package/funcs/channelsTargetsGetById.d.ts +1 -1
  77. package/funcs/channelsTargetsGetById.d.ts.map +1 -1
  78. package/funcs/channelsTargetsGetById.js +8 -6
  79. package/funcs/channelsTargetsGetById.js.map +1 -1
  80. package/funcs/channelsTargetsList.d.ts +1 -1
  81. package/funcs/channelsTargetsList.d.ts.map +1 -1
  82. package/funcs/channelsTargetsList.js +8 -6
  83. package/funcs/channelsTargetsList.js.map +1 -1
  84. package/funcs/channelsTargetsUpdate.d.ts +1 -1
  85. package/funcs/channelsTargetsUpdate.d.ts.map +1 -1
  86. package/funcs/channelsTargetsUpdate.js +11 -7
  87. package/funcs/channelsTargetsUpdate.js.map +1 -1
  88. package/funcs/conversationsList.d.ts.map +1 -1
  89. package/funcs/conversationsList.js +8 -6
  90. package/funcs/conversationsList.js.map +1 -1
  91. package/funcs/customMessagesCreate.d.ts +2 -2
  92. package/funcs/customMessagesCreate.d.ts.map +1 -1
  93. package/funcs/customMessagesCreate.js +10 -8
  94. package/funcs/customMessagesCreate.js.map +1 -1
  95. package/funcs/customMessagesDelete.d.ts +1 -1
  96. package/funcs/customMessagesDelete.d.ts.map +1 -1
  97. package/funcs/customMessagesDelete.js +9 -7
  98. package/funcs/customMessagesDelete.js.map +1 -1
  99. package/funcs/customMessagesGetById.d.ts +2 -2
  100. package/funcs/customMessagesGetById.d.ts.map +1 -1
  101. package/funcs/customMessagesGetById.js +9 -7
  102. package/funcs/customMessagesGetById.js.map +1 -1
  103. package/funcs/customMessagesList.d.ts +1 -1
  104. package/funcs/customMessagesList.d.ts.map +1 -1
  105. package/funcs/customMessagesList.js +8 -6
  106. package/funcs/customMessagesList.js.map +1 -1
  107. package/funcs/customMessagesUpdate.d.ts +2 -2
  108. package/funcs/customMessagesUpdate.d.ts.map +1 -1
  109. package/funcs/customMessagesUpdate.js +10 -8
  110. package/funcs/customMessagesUpdate.js.map +1 -1
  111. package/funcs/dashboardsPostSessionEventsDashboard.d.ts +18 -0
  112. package/funcs/dashboardsPostSessionEventsDashboard.d.ts.map +1 -0
  113. package/funcs/{dashboardsGetTotalCallVolumeByHour.js → dashboardsPostSessionEventsDashboard.js} +20 -16
  114. package/funcs/dashboardsPostSessionEventsDashboard.js.map +1 -0
  115. package/funcs/dashboardsPostSessionSummaryDashboard.d.ts +18 -0
  116. package/funcs/dashboardsPostSessionSummaryDashboard.d.ts.map +1 -0
  117. package/funcs/{dashboardsGetDailyCallVolumeByHour.js → dashboardsPostSessionSummaryDashboard.js} +20 -16
  118. package/funcs/dashboardsPostSessionSummaryDashboard.js.map +1 -0
  119. package/funcs/dashboardsPostSessionTransfersDashboard.d.ts +18 -0
  120. package/funcs/dashboardsPostSessionTransfersDashboard.d.ts.map +1 -0
  121. package/funcs/dashboardsPostSessionTransfersDashboard.js +90 -0
  122. package/funcs/dashboardsPostSessionTransfersDashboard.js.map +1 -0
  123. package/funcs/dashboardsPostSessionsDashboard.d.ts +18 -0
  124. package/funcs/dashboardsPostSessionsDashboard.d.ts.map +1 -0
  125. package/funcs/{dashboardsTotalCallVolumeByWeekday.js → dashboardsPostSessionsDashboard.js} +20 -16
  126. package/funcs/dashboardsPostSessionsDashboard.js.map +1 -0
  127. package/funcs/eventsList.d.ts.map +1 -1
  128. package/funcs/eventsList.js +8 -6
  129. package/funcs/eventsList.js.map +1 -1
  130. package/funcs/promptsCreate.d.ts +1 -1
  131. package/funcs/promptsCreate.d.ts.map +1 -1
  132. package/funcs/promptsCreate.js +9 -7
  133. package/funcs/promptsCreate.js.map +1 -1
  134. package/funcs/promptsDelete.d.ts +3 -0
  135. package/funcs/promptsDelete.d.ts.map +1 -1
  136. package/funcs/promptsDelete.js +11 -6
  137. package/funcs/promptsDelete.js.map +1 -1
  138. package/funcs/promptsGetById.d.ts +1 -1
  139. package/funcs/promptsGetById.d.ts.map +1 -1
  140. package/funcs/promptsGetById.js +8 -6
  141. package/funcs/promptsGetById.js.map +1 -1
  142. package/funcs/promptsList.d.ts +1 -1
  143. package/funcs/promptsList.d.ts.map +1 -1
  144. package/funcs/promptsList.js +8 -6
  145. package/funcs/promptsList.js.map +1 -1
  146. package/funcs/promptsPromptsHistory.d.ts +17 -0
  147. package/funcs/promptsPromptsHistory.d.ts.map +1 -0
  148. package/funcs/promptsPromptsHistory.js +108 -0
  149. package/funcs/promptsPromptsHistory.js.map +1 -0
  150. package/funcs/promptsUpdate.d.ts +1 -1
  151. package/funcs/promptsUpdate.d.ts.map +1 -1
  152. package/funcs/promptsUpdate.js +9 -7
  153. package/funcs/promptsUpdate.js.map +1 -1
  154. package/funcs/servicesCreate.d.ts +13 -0
  155. package/funcs/servicesCreate.d.ts.map +1 -0
  156. package/funcs/servicesCreate.js +98 -0
  157. package/funcs/servicesCreate.js.map +1 -0
  158. package/funcs/{dashboardsGetSessionSummary.d.ts → servicesList.d.ts} +5 -4
  159. package/funcs/servicesList.d.ts.map +1 -0
  160. package/funcs/{dashboardsGetSessionSummary.js → servicesList.js} +23 -17
  161. package/funcs/servicesList.js.map +1 -0
  162. package/funcs/servicesUpdate.d.ts +13 -0
  163. package/funcs/servicesUpdate.d.ts.map +1 -0
  164. package/funcs/{dashboardsGetMonthlyCallVolumeByWeek.js → servicesUpdate.js} +31 -19
  165. package/funcs/servicesUpdate.js.map +1 -0
  166. package/funcs/sessionLabelsCreate.d.ts.map +1 -1
  167. package/funcs/sessionLabelsCreate.js +8 -6
  168. package/funcs/sessionLabelsCreate.js.map +1 -1
  169. package/funcs/sessionLabelsGetById.d.ts.map +1 -1
  170. package/funcs/sessionLabelsGetById.js +8 -6
  171. package/funcs/sessionLabelsGetById.js.map +1 -1
  172. package/funcs/sessionLabelsList.d.ts.map +1 -1
  173. package/funcs/sessionLabelsList.js +8 -6
  174. package/funcs/sessionLabelsList.js.map +1 -1
  175. package/funcs/sessionsGenerateSessionRecordingUrls.d.ts +14 -0
  176. package/funcs/sessionsGenerateSessionRecordingUrls.d.ts.map +1 -0
  177. package/funcs/sessionsGenerateSessionRecordingUrls.js +104 -0
  178. package/funcs/sessionsGenerateSessionRecordingUrls.js.map +1 -0
  179. package/funcs/sessionsGetById.d.ts +14 -0
  180. package/funcs/sessionsGetById.d.ts.map +1 -0
  181. package/funcs/sessionsGetById.js +104 -0
  182. package/funcs/sessionsGetById.js.map +1 -0
  183. package/funcs/sessionsList.d.ts.map +1 -1
  184. package/funcs/sessionsList.js +8 -6
  185. package/funcs/sessionsList.js.map +1 -1
  186. package/funcs/sessionsSessionRecordingStream.d.ts +13 -0
  187. package/funcs/sessionsSessionRecordingStream.d.ts.map +1 -0
  188. package/funcs/sessionsSessionRecordingStream.js +102 -0
  189. package/funcs/sessionsSessionRecordingStream.js.map +1 -0
  190. package/funcs/sessionsTranscriptGetById.d.ts.map +1 -1
  191. package/funcs/sessionsTranscriptGetById.js +8 -6
  192. package/funcs/sessionsTranscriptGetById.js.map +1 -1
  193. package/funcs/toolsCreate.d.ts +16 -0
  194. package/funcs/toolsCreate.d.ts.map +1 -0
  195. package/funcs/toolsCreate.js +101 -0
  196. package/funcs/toolsCreate.js.map +1 -0
  197. package/funcs/toolsGetByName.d.ts.map +1 -1
  198. package/funcs/toolsGetByName.js +8 -6
  199. package/funcs/toolsGetByName.js.map +1 -1
  200. package/funcs/toolsList.d.ts +2 -2
  201. package/funcs/toolsList.d.ts.map +1 -1
  202. package/funcs/toolsList.js +9 -7
  203. package/funcs/toolsList.js.map +1 -1
  204. package/funcs/toolsUpdate.d.ts +16 -0
  205. package/funcs/toolsUpdate.d.ts.map +1 -0
  206. package/funcs/toolsUpdate.js +101 -0
  207. package/funcs/toolsUpdate.js.map +1 -0
  208. package/funcs/v1PostSessionEventsDashboard.d.ts +18 -0
  209. package/funcs/v1PostSessionEventsDashboard.d.ts.map +1 -0
  210. package/funcs/v1PostSessionEventsDashboard.js +90 -0
  211. package/funcs/v1PostSessionEventsDashboard.js.map +1 -0
  212. package/funcs/{dashboardsGetWeeklyCallVolumeByWeekday.d.ts → v1PostSessionSummaryDashboard.d.ts} +8 -5
  213. package/funcs/v1PostSessionSummaryDashboard.d.ts.map +1 -0
  214. package/funcs/v1PostSessionSummaryDashboard.js +90 -0
  215. package/funcs/v1PostSessionSummaryDashboard.js.map +1 -0
  216. package/funcs/v1PostSessionTransfersDashboard.d.ts +18 -0
  217. package/funcs/v1PostSessionTransfersDashboard.d.ts.map +1 -0
  218. package/funcs/v1PostSessionTransfersDashboard.js +90 -0
  219. package/funcs/v1PostSessionTransfersDashboard.js.map +1 -0
  220. package/funcs/{dashboardsGetMonthlyCallVolumeByWeek.d.ts → v1PostSessionsDashboard.d.ts} +8 -5
  221. package/funcs/v1PostSessionsDashboard.d.ts.map +1 -0
  222. package/funcs/v1PostSessionsDashboard.js +90 -0
  223. package/funcs/v1PostSessionsDashboard.js.map +1 -0
  224. package/hooks/hooks.d.ts.map +1 -1
  225. package/hooks/hooks.js +18 -0
  226. package/hooks/hooks.js.map +1 -1
  227. package/hooks/types.d.ts +1 -0
  228. package/hooks/types.d.ts.map +1 -1
  229. package/jsr.json +27 -0
  230. package/lib/config.d.ts +4 -4
  231. package/lib/config.d.ts.map +1 -1
  232. package/lib/config.js +8 -9
  233. package/lib/config.js.map +1 -1
  234. package/lib/encodings.d.ts +10 -9
  235. package/lib/encodings.d.ts.map +1 -1
  236. package/lib/encodings.js +91 -66
  237. package/lib/encodings.js.map +1 -1
  238. package/lib/env.js +1 -2
  239. package/lib/env.js.map +1 -1
  240. package/lib/http.js +1 -2
  241. package/lib/http.js.map +1 -1
  242. package/lib/matchers.js +6 -7
  243. package/lib/matchers.js.map +1 -1
  244. package/lib/primitives.d.ts +3 -0
  245. package/lib/primitives.d.ts.map +1 -1
  246. package/lib/primitives.js +64 -1
  247. package/lib/primitives.js.map +1 -1
  248. package/lib/retries.js +3 -4
  249. package/lib/retries.js.map +1 -1
  250. package/lib/sdks.d.ts +5 -1
  251. package/lib/sdks.d.ts.map +1 -1
  252. package/lib/sdks.js +20 -17
  253. package/lib/sdks.js.map +1 -1
  254. package/lib/security.js +2 -3
  255. package/lib/security.js.map +1 -1
  256. package/lib/url.js +1 -1
  257. package/lib/url.js.map +1 -1
  258. package/mintlify/mint-backup.json +290 -0
  259. package/mintlify/mint.json +289 -0
  260. package/mintlify/scripts/create-md-script.js +46 -0
  261. package/mintlify/scripts/generate-mintlify-sdk-docs.js +117 -0
  262. package/models/components/agentcreate.d.ts +66 -23
  263. package/models/components/agentcreate.d.ts.map +1 -1
  264. package/models/components/agentcreate.js +41 -22
  265. package/models/components/agentcreate.js.map +1 -1
  266. package/models/components/agentproperties.d.ts +18 -0
  267. package/models/components/agentproperties.d.ts.map +1 -1
  268. package/models/components/agentproperties.js +6 -0
  269. package/models/components/agentproperties.js.map +1 -1
  270. package/models/components/agentresponse.d.ts +131 -0
  271. package/models/components/agentresponse.d.ts.map +1 -0
  272. package/models/components/agentresponse.js +118 -0
  273. package/models/components/agentresponse.js.map +1 -0
  274. package/models/components/agenttooldefaults.d.ts +13 -0
  275. package/models/components/agenttooldefaults.d.ts.map +1 -1
  276. package/models/components/agenttooldefaults.js +9 -0
  277. package/models/components/agenttooldefaults.js.map +1 -1
  278. package/models/components/agenttoolfielddefault.d.ts +13 -0
  279. package/models/components/agenttoolfielddefault.d.ts.map +1 -1
  280. package/models/components/agenttoolfielddefault.js +9 -0
  281. package/models/components/agenttoolfielddefault.js.map +1 -1
  282. package/models/components/agentupdate.d.ts +113 -0
  283. package/models/components/agentupdate.d.ts.map +1 -0
  284. package/models/components/agentupdate.js +120 -0
  285. package/models/components/agentupdate.js.map +1 -0
  286. package/models/components/agentvoice.d.ts +47 -0
  287. package/models/components/agentvoice.d.ts.map +1 -0
  288. package/models/components/agentvoice.js +76 -0
  289. package/models/components/agentvoice.js.map +1 -0
  290. package/models/components/agentvoicevarname.d.ts +112 -0
  291. package/models/components/agentvoicevarname.d.ts.map +1 -0
  292. package/models/components/agentvoicevarname.js +79 -0
  293. package/models/components/agentvoicevarname.js.map +1 -0
  294. package/models/components/availabletarget.d.ts +4 -0
  295. package/models/components/availabletarget.d.ts.map +1 -1
  296. package/models/components/availabletarget.js +9 -0
  297. package/models/components/availabletarget.js.map +1 -1
  298. package/models/components/channel.d.ts +8 -1
  299. package/models/components/channel.d.ts.map +1 -1
  300. package/models/components/channel.js +9 -0
  301. package/models/components/channel.js.map +1 -1
  302. package/models/components/channelservices.d.ts +6 -0
  303. package/models/components/channelservices.d.ts.map +1 -1
  304. package/models/components/channelservices.js +3 -0
  305. package/models/components/channelservices.js.map +1 -1
  306. package/models/components/channeltargetcreaterequest.d.ts +35 -12
  307. package/models/components/channeltargetcreaterequest.d.ts.map +1 -1
  308. package/models/components/channeltargetcreaterequest.js +24 -14
  309. package/models/components/channeltargetcreaterequest.js.map +1 -1
  310. package/models/components/channeltargetproperties.d.ts +3 -0
  311. package/models/components/channeltargetproperties.d.ts.map +1 -1
  312. package/models/components/channeltargetproperties.js +1 -0
  313. package/models/components/channeltargetproperties.js.map +1 -1
  314. package/models/components/channeltargetresponse.d.ts +90 -0
  315. package/models/components/channeltargetresponse.d.ts.map +1 -0
  316. package/models/components/channeltargetresponse.js +104 -0
  317. package/models/components/channeltargetresponse.js.map +1 -0
  318. package/models/components/channeltargetupdaterequest.d.ts +63 -0
  319. package/models/components/channeltargetupdaterequest.d.ts.map +1 -0
  320. package/models/components/channeltargetupdaterequest.js +89 -0
  321. package/models/components/channeltargetupdaterequest.js.map +1 -0
  322. package/models/components/conversation.d.ts +46 -0
  323. package/models/components/conversation.d.ts.map +1 -1
  324. package/models/components/conversation.js +9 -0
  325. package/models/components/conversation.js.map +1 -1
  326. package/models/components/custommessagecreaterequest.d.ts +50 -0
  327. package/models/components/custommessagecreaterequest.d.ts.map +1 -0
  328. package/models/components/custommessagecreaterequest.js +68 -0
  329. package/models/components/custommessagecreaterequest.js.map +1 -0
  330. package/models/components/custommessageproperties.d.ts +6 -0
  331. package/models/components/custommessageproperties.d.ts.map +1 -1
  332. package/models/components/custommessageproperties.js +2 -0
  333. package/models/components/custommessageproperties.js.map +1 -1
  334. package/models/components/custommessageresponse.d.ts +78 -0
  335. package/models/components/custommessageresponse.d.ts.map +1 -0
  336. package/models/components/custommessageresponse.js +89 -0
  337. package/models/components/custommessageresponse.js.map +1 -0
  338. package/models/components/custommessagerule.d.ts +63 -0
  339. package/models/components/custommessagerule.d.ts.map +1 -0
  340. package/models/components/custommessagerule.js +85 -0
  341. package/models/components/custommessagerule.js.map +1 -0
  342. package/models/components/custommessageupdaterequest.d.ts +55 -0
  343. package/models/components/custommessageupdaterequest.d.ts.map +1 -0
  344. package/models/components/custommessageupdaterequest.js +70 -0
  345. package/models/components/custommessageupdaterequest.js.map +1 -0
  346. package/models/components/dashboard.d.ts +50 -0
  347. package/models/components/dashboard.d.ts.map +1 -0
  348. package/models/components/{promptcreate.js → dashboard.js} +32 -22
  349. package/models/components/dashboard.js.map +1 -0
  350. package/models/components/dayofweek.d.ts +43 -0
  351. package/models/components/dayofweek.d.ts.map +1 -0
  352. package/models/components/{provider.js → dayofweek.js} +20 -18
  353. package/models/components/dayofweek.js.map +1 -0
  354. package/models/components/event.d.ts +39 -0
  355. package/models/components/event.d.ts.map +1 -1
  356. package/models/components/event.js +17 -0
  357. package/models/components/event.js.map +1 -1
  358. package/models/components/index.d.ts +43 -14
  359. package/models/components/index.d.ts.map +1 -1
  360. package/models/components/index.js +43 -14
  361. package/models/components/index.js.map +1 -1
  362. package/models/components/internaltool.d.ts +46 -0
  363. package/models/components/internaltool.d.ts.map +1 -0
  364. package/models/components/internaltool.js +62 -0
  365. package/models/components/internaltool.js.map +1 -0
  366. package/models/components/listresponseagentresponse.d.ts +38 -0
  367. package/models/components/listresponseagentresponse.d.ts.map +1 -0
  368. package/models/components/{listresponsecustommessage.js → listresponseagentresponse.js} +23 -14
  369. package/models/components/listresponseagentresponse.js.map +1 -0
  370. package/models/components/listresponseavailabletarget.d.ts +4 -0
  371. package/models/components/listresponseavailabletarget.d.ts.map +1 -1
  372. package/models/components/listresponseavailabletarget.js +9 -0
  373. package/models/components/listresponseavailabletarget.js.map +1 -1
  374. package/models/components/listresponsechannel.d.ts +4 -0
  375. package/models/components/listresponsechannel.d.ts.map +1 -1
  376. package/models/components/listresponsechannel.js +9 -0
  377. package/models/components/listresponsechannel.js.map +1 -1
  378. package/models/components/listresponsechanneltargetresponse.d.ts +38 -0
  379. package/models/components/listresponsechanneltargetresponse.d.ts.map +1 -0
  380. package/models/components/listresponsechanneltargetresponse.js +81 -0
  381. package/models/components/listresponsechanneltargetresponse.js.map +1 -0
  382. package/models/components/listresponseconversation.d.ts +4 -0
  383. package/models/components/listresponseconversation.d.ts.map +1 -1
  384. package/models/components/listresponseconversation.js +9 -0
  385. package/models/components/listresponseconversation.js.map +1 -1
  386. package/models/components/listresponsecustommessageresponse.d.ts +38 -0
  387. package/models/components/listresponsecustommessageresponse.d.ts.map +1 -0
  388. package/models/components/listresponsecustommessageresponse.js +81 -0
  389. package/models/components/listresponsecustommessageresponse.js.map +1 -0
  390. package/models/components/listresponseevent.d.ts +4 -0
  391. package/models/components/listresponseevent.d.ts.map +1 -1
  392. package/models/components/listresponseevent.js +9 -0
  393. package/models/components/listresponseevent.js.map +1 -1
  394. package/models/components/listresponsepromptresponse.d.ts +38 -0
  395. package/models/components/listresponsepromptresponse.d.ts.map +1 -0
  396. package/models/components/{listresponseagent.js → listresponsepromptresponse.js} +23 -14
  397. package/models/components/listresponsepromptresponse.js.map +1 -0
  398. package/models/components/listresponseservice.d.ts +38 -0
  399. package/models/components/listresponseservice.d.ts.map +1 -0
  400. package/models/components/{listresponseprompt.js → listresponseservice.js} +23 -14
  401. package/models/components/listresponseservice.js.map +1 -0
  402. package/models/components/listresponsesession.d.ts +4 -0
  403. package/models/components/listresponsesession.d.ts.map +1 -1
  404. package/models/components/listresponsesession.js +9 -0
  405. package/models/components/listresponsesession.js.map +1 -1
  406. package/models/components/listresponsesessionlabel.d.ts +4 -0
  407. package/models/components/listresponsesessionlabel.d.ts.map +1 -1
  408. package/models/components/listresponsesessionlabel.js +9 -0
  409. package/models/components/listresponsesessionlabel.js.map +1 -1
  410. package/models/components/listresponsetoolresponse.d.ts +38 -0
  411. package/models/components/listresponsetoolresponse.d.ts.map +1 -0
  412. package/models/components/{listresponsechanneltarget.js → listresponsetoolresponse.js} +23 -14
  413. package/models/components/listresponsetoolresponse.js.map +1 -0
  414. package/models/components/promptcreaterequest.d.ts +55 -0
  415. package/models/components/promptcreaterequest.d.ts.map +1 -0
  416. package/models/components/{prompt.js → promptcreaterequest.js} +25 -21
  417. package/models/components/promptcreaterequest.js.map +1 -0
  418. package/models/components/prompthistory.d.ts +70 -0
  419. package/models/components/prompthistory.d.ts.map +1 -0
  420. package/models/components/prompthistory.js +92 -0
  421. package/models/components/prompthistory.js.map +1 -0
  422. package/models/components/promptllmconfig.d.ts +48 -0
  423. package/models/components/promptllmconfig.d.ts.map +1 -0
  424. package/models/components/{llmconfig.js → promptllmconfig.js} +23 -14
  425. package/models/components/promptllmconfig.js.map +1 -0
  426. package/models/components/{provider.d.ts → promptllmprovider.d.ts} +8 -8
  427. package/models/components/promptllmprovider.d.ts.map +1 -0
  428. package/models/components/{custommessagecreate.js → promptllmprovider.js} +18 -19
  429. package/models/components/promptllmprovider.js.map +1 -0
  430. package/models/components/promptproperties.d.ts +15 -0
  431. package/models/components/promptproperties.d.ts.map +1 -1
  432. package/models/components/promptproperties.js +5 -0
  433. package/models/components/promptproperties.js.map +1 -1
  434. package/models/components/promptresponse.d.ts +87 -0
  435. package/models/components/promptresponse.d.ts.map +1 -0
  436. package/models/components/promptresponse.js +97 -0
  437. package/models/components/promptresponse.js.map +1 -0
  438. package/models/components/promptupdaterequest.d.ts +65 -0
  439. package/models/components/promptupdaterequest.d.ts.map +1 -0
  440. package/models/components/promptupdaterequest.js +85 -0
  441. package/models/components/promptupdaterequest.js.map +1 -0
  442. package/models/components/security.d.ts +4 -0
  443. package/models/components/security.d.ts.map +1 -1
  444. package/models/components/security.js +9 -0
  445. package/models/components/security.js.map +1 -1
  446. package/models/components/service.d.ts +50 -0
  447. package/models/components/service.d.ts.map +1 -0
  448. package/models/components/service.js +65 -0
  449. package/models/components/service.js.map +1 -0
  450. package/models/components/servicecreate.d.ts +37 -0
  451. package/models/components/servicecreate.d.ts.map +1 -0
  452. package/models/components/servicecreate.js +61 -0
  453. package/models/components/servicecreate.js.map +1 -0
  454. package/models/components/serviceproperties.d.ts +28 -0
  455. package/models/components/serviceproperties.d.ts.map +1 -0
  456. package/models/{operations/getsessionagents.js → components/serviceproperties.js} +15 -11
  457. package/models/components/serviceproperties.js.map +1 -0
  458. package/models/components/serviceupdate.d.ts +42 -0
  459. package/models/components/serviceupdate.d.ts.map +1 -0
  460. package/models/components/serviceupdate.js +63 -0
  461. package/models/components/serviceupdate.js.map +1 -0
  462. package/models/components/session.d.ts +68 -0
  463. package/models/components/session.d.ts.map +1 -1
  464. package/models/components/session.js +17 -0
  465. package/models/components/session.js.map +1 -1
  466. package/models/components/sessionaction.d.ts +19 -0
  467. package/models/components/sessionaction.d.ts.map +1 -1
  468. package/models/components/sessionaction.js +9 -0
  469. package/models/components/sessionaction.js.map +1 -1
  470. package/models/components/sessionlabel.d.ts +29 -1
  471. package/models/components/sessionlabel.d.ts.map +1 -1
  472. package/models/components/sessionlabel.js +9 -0
  473. package/models/components/sessionlabel.js.map +1 -1
  474. package/models/components/sessionlabelcreate.d.ts +22 -0
  475. package/models/components/sessionlabelcreate.d.ts.map +1 -1
  476. package/models/components/sessionlabelcreate.js +9 -0
  477. package/models/components/sessionlabelcreate.js.map +1 -1
  478. package/models/components/sessionproperties.d.ts +3 -0
  479. package/models/components/sessionproperties.d.ts.map +1 -1
  480. package/models/components/sessionproperties.js +1 -0
  481. package/models/components/sessionproperties.js.map +1 -1
  482. package/models/components/sessionrecordingresponse.d.ts +45 -0
  483. package/models/components/sessionrecordingresponse.d.ts.map +1 -0
  484. package/models/components/sessionrecordingresponse.js +72 -0
  485. package/models/components/sessionrecordingresponse.js.map +1 -0
  486. package/models/components/sessiontext.d.ts +19 -0
  487. package/models/components/sessiontext.d.ts.map +1 -1
  488. package/models/components/sessiontext.js +9 -0
  489. package/models/components/sessiontext.js.map +1 -1
  490. package/models/components/sessiontranscriptionresponse.d.ts +16 -0
  491. package/models/components/sessiontranscriptionresponse.d.ts.map +1 -1
  492. package/models/components/sessiontranscriptionresponse.js +9 -0
  493. package/models/components/sessiontranscriptionresponse.js.map +1 -1
  494. package/models/components/sttprovider.d.ts +37 -0
  495. package/models/components/sttprovider.d.ts.map +1 -0
  496. package/models/components/sttprovider.js +55 -0
  497. package/models/components/sttprovider.js.map +1 -0
  498. package/models/components/targetmodes.d.ts +40 -0
  499. package/models/components/targetmodes.d.ts.map +1 -0
  500. package/models/components/targetmodes.js +56 -0
  501. package/models/components/targetmodes.js.map +1 -0
  502. package/models/components/testmessage.d.ts +29 -0
  503. package/models/components/testmessage.d.ts.map +1 -1
  504. package/models/components/testmessage.js +17 -0
  505. package/models/components/testmessage.js.map +1 -1
  506. package/models/components/testmessageresponse.d.ts +25 -2
  507. package/models/components/testmessageresponse.d.ts.map +1 -1
  508. package/models/components/testmessageresponse.js +23 -2
  509. package/models/components/testmessageresponse.js.map +1 -1
  510. package/models/components/toolargumentlocation.d.ts +52 -0
  511. package/models/components/toolargumentlocation.d.ts.map +1 -0
  512. package/models/components/toolargumentlocation.js +61 -0
  513. package/models/components/toolargumentlocation.js.map +1 -0
  514. package/models/components/toolcreaterequest.d.ts +132 -0
  515. package/models/components/toolcreaterequest.d.ts.map +1 -0
  516. package/models/components/toolcreaterequest.js +73 -0
  517. package/models/components/toolcreaterequest.js.map +1 -0
  518. package/models/components/tooldefinition.d.ts +253 -0
  519. package/models/components/tooldefinition.d.ts.map +1 -0
  520. package/models/components/tooldefinition.js +175 -0
  521. package/models/components/tooldefinition.js.map +1 -0
  522. package/models/components/tooldetailresponse.d.ts +6 -0
  523. package/models/components/tooldetailresponse.d.ts.map +1 -1
  524. package/models/components/tooldetailresponse.js +11 -0
  525. package/models/components/tooldetailresponse.js.map +1 -1
  526. package/models/components/toolfunction.d.ts +74 -0
  527. package/models/components/toolfunction.d.ts.map +1 -0
  528. package/models/components/toolfunction.js +86 -0
  529. package/models/components/toolfunction.js.map +1 -0
  530. package/models/components/toolhttpendpoint.d.ts +53 -0
  531. package/models/components/toolhttpendpoint.d.ts.map +1 -0
  532. package/models/components/toolhttpendpoint.js +74 -0
  533. package/models/components/toolhttpendpoint.js.map +1 -0
  534. package/models/components/toolhttpmethod.d.ts +34 -0
  535. package/models/components/toolhttpmethod.d.ts.map +1 -0
  536. package/models/components/{custommessage.js → toolhttpmethod.js} +18 -21
  537. package/models/components/toolhttpmethod.js.map +1 -0
  538. package/models/components/toolparameterdefault.d.ts +42 -0
  539. package/models/components/toolparameterdefault.d.ts.map +1 -0
  540. package/models/components/toolparameterdefault.js +60 -0
  541. package/models/components/toolparameterdefault.js.map +1 -0
  542. package/models/components/toolparametertransform.d.ts +92 -0
  543. package/models/components/toolparametertransform.d.ts.map +1 -0
  544. package/models/components/toolparametertransform.js +90 -0
  545. package/models/components/toolparametertransform.js.map +1 -0
  546. package/models/components/toolparametertransformcondition.d.ts +45 -0
  547. package/models/components/toolparametertransformcondition.d.ts.map +1 -0
  548. package/models/components/toolparametertransformcondition.js +63 -0
  549. package/models/components/toolparametertransformcondition.js.map +1 -0
  550. package/models/components/toolresponse.d.ts +149 -0
  551. package/models/components/toolresponse.d.ts.map +1 -0
  552. package/models/components/{tool.js → toolresponse.js} +23 -29
  553. package/models/components/toolresponse.js.map +1 -0
  554. package/models/components/toolupdaterequest.d.ts +137 -0
  555. package/models/components/toolupdaterequest.d.ts.map +1 -0
  556. package/models/components/{channeltarget.js → toolupdaterequest.js} +29 -37
  557. package/models/components/toolupdaterequest.js.map +1 -0
  558. package/models/components/validationerror.d.ts +6 -0
  559. package/models/components/validationerror.d.ts.map +1 -1
  560. package/models/components/validationerror.js +17 -0
  561. package/models/components/validationerror.js.map +1 -1
  562. package/models/errors/httpclienterrors.js +2 -2
  563. package/models/errors/httpclienterrors.js.map +1 -1
  564. package/models/operations/agentdelete.d.ts +4 -0
  565. package/models/operations/agentdelete.d.ts.map +1 -1
  566. package/models/operations/agentdelete.js +9 -0
  567. package/models/operations/agentdelete.js.map +1 -1
  568. package/models/operations/agentgetbyid.d.ts +4 -0
  569. package/models/operations/agentgetbyid.d.ts.map +1 -1
  570. package/models/operations/agentgetbyid.js +9 -0
  571. package/models/operations/agentgetbyid.js.map +1 -1
  572. package/models/operations/agentlist.d.ts +8 -4
  573. package/models/operations/agentlist.d.ts.map +1 -1
  574. package/models/operations/agentlist.js +15 -4
  575. package/models/operations/agentlist.js.map +1 -1
  576. package/models/operations/availabletargets.d.ts +8 -4
  577. package/models/operations/availabletargets.d.ts.map +1 -1
  578. package/models/operations/availabletargets.js +17 -4
  579. package/models/operations/availabletargets.js.map +1 -1
  580. package/models/operations/channelslist.d.ts +8 -4
  581. package/models/operations/channelslist.d.ts.map +1 -1
  582. package/models/operations/channelslist.js +15 -4
  583. package/models/operations/channelslist.js.map +1 -1
  584. package/models/operations/channeltargetscreate.d.ts +4 -0
  585. package/models/operations/channeltargetscreate.d.ts.map +1 -1
  586. package/models/operations/channeltargetscreate.js +9 -0
  587. package/models/operations/channeltargetscreate.js.map +1 -1
  588. package/models/operations/channeltargetsdelete.d.ts +4 -0
  589. package/models/operations/channeltargetsdelete.d.ts.map +1 -1
  590. package/models/operations/channeltargetsdelete.js +9 -0
  591. package/models/operations/channeltargetsdelete.js.map +1 -1
  592. package/models/operations/channeltargetsgetbyid.d.ts +4 -0
  593. package/models/operations/channeltargetsgetbyid.d.ts.map +1 -1
  594. package/models/operations/channeltargetsgetbyid.js +9 -0
  595. package/models/operations/channeltargetsgetbyid.js.map +1 -1
  596. package/models/operations/channeltargetslist.d.ts +8 -4
  597. package/models/operations/channeltargetslist.d.ts.map +1 -1
  598. package/models/operations/channeltargetslist.js +17 -4
  599. package/models/operations/channeltargetslist.js.map +1 -1
  600. package/models/operations/channeltargetsupdate.d.ts +6 -2
  601. package/models/operations/channeltargetsupdate.d.ts.map +1 -1
  602. package/models/operations/channeltargetsupdate.js +13 -4
  603. package/models/operations/channeltargetsupdate.js.map +1 -1
  604. package/models/operations/conversationslist.d.ts +8 -4
  605. package/models/operations/conversationslist.d.ts.map +1 -1
  606. package/models/operations/conversationslist.js +17 -4
  607. package/models/operations/conversationslist.js.map +1 -1
  608. package/models/operations/custommessagegetbyid.d.ts +4 -0
  609. package/models/operations/custommessagegetbyid.d.ts.map +1 -1
  610. package/models/operations/custommessagegetbyid.js +9 -0
  611. package/models/operations/custommessagegetbyid.js.map +1 -1
  612. package/models/operations/custommessagesdelete.d.ts +4 -0
  613. package/models/operations/custommessagesdelete.d.ts.map +1 -1
  614. package/models/operations/custommessagesdelete.js +9 -0
  615. package/models/operations/custommessagesdelete.js.map +1 -1
  616. package/models/operations/custommessageslist.d.ts +8 -4
  617. package/models/operations/custommessageslist.d.ts.map +1 -1
  618. package/models/operations/custommessageslist.js +17 -4
  619. package/models/operations/custommessageslist.js.map +1 -1
  620. package/models/operations/eventslist.d.ts +8 -4
  621. package/models/operations/eventslist.d.ts.map +1 -1
  622. package/models/operations/eventslist.js +15 -4
  623. package/models/operations/eventslist.js.map +1 -1
  624. package/models/operations/generatesessionrecordingurls.d.ts +29 -0
  625. package/models/operations/generatesessionrecordingurls.d.ts.map +1 -0
  626. package/models/operations/generatesessionrecordingurls.js +68 -0
  627. package/models/operations/generatesessionrecordingurls.js.map +1 -0
  628. package/models/operations/index.d.ts +5 -8
  629. package/models/operations/index.d.ts.map +1 -1
  630. package/models/operations/index.js +5 -8
  631. package/models/operations/index.js.map +1 -1
  632. package/models/operations/promptsdelete.d.ts +4 -0
  633. package/models/operations/promptsdelete.d.ts.map +1 -1
  634. package/models/operations/promptsdelete.js +9 -0
  635. package/models/operations/promptsdelete.js.map +1 -1
  636. package/models/operations/promptsgetbyid.d.ts +4 -0
  637. package/models/operations/promptsgetbyid.d.ts.map +1 -1
  638. package/models/operations/promptsgetbyid.js +9 -0
  639. package/models/operations/promptsgetbyid.js.map +1 -1
  640. package/models/operations/promptshistory.d.ts +29 -0
  641. package/models/operations/promptshistory.d.ts.map +1 -0
  642. package/models/operations/promptshistory.js +68 -0
  643. package/models/operations/promptshistory.js.map +1 -0
  644. package/models/operations/promptslist.d.ts +8 -4
  645. package/models/operations/promptslist.d.ts.map +1 -1
  646. package/models/operations/promptslist.js +15 -4
  647. package/models/operations/promptslist.js.map +1 -1
  648. package/models/operations/servicelist.d.ts +46 -0
  649. package/models/operations/servicelist.d.ts.map +1 -0
  650. package/models/operations/servicelist.js +99 -0
  651. package/models/operations/servicelist.js.map +1 -0
  652. package/models/operations/sessiongetbyid.d.ts +29 -0
  653. package/models/operations/sessiongetbyid.d.ts.map +1 -0
  654. package/models/{components/listresponsetool.js → operations/sessiongetbyid.js} +24 -28
  655. package/models/operations/sessiongetbyid.js.map +1 -0
  656. package/models/operations/sessionlabelgetbyid.d.ts +4 -0
  657. package/models/operations/sessionlabelgetbyid.d.ts.map +1 -1
  658. package/models/operations/sessionlabelgetbyid.js +9 -0
  659. package/models/operations/sessionlabelgetbyid.js.map +1 -1
  660. package/models/operations/sessionlabelslist.d.ts +8 -4
  661. package/models/operations/sessionlabelslist.d.ts.map +1 -1
  662. package/models/operations/sessionlabelslist.js +17 -4
  663. package/models/operations/sessionlabelslist.js.map +1 -1
  664. package/models/operations/sessionrecordingstream.d.ts +29 -0
  665. package/models/operations/sessionrecordingstream.d.ts.map +1 -0
  666. package/models/operations/sessionrecordingstream.js +59 -0
  667. package/models/operations/sessionrecordingstream.js.map +1 -0
  668. package/models/operations/sessionslist.d.ts +8 -4
  669. package/models/operations/sessionslist.d.ts.map +1 -1
  670. package/models/operations/sessionslist.js +15 -4
  671. package/models/operations/sessionslist.js.map +1 -1
  672. package/models/operations/sessiontranscriptgetbyid.d.ts +4 -0
  673. package/models/operations/sessiontranscriptgetbyid.d.ts.map +1 -1
  674. package/models/operations/sessiontranscriptgetbyid.js +9 -0
  675. package/models/operations/sessiontranscriptgetbyid.js.map +1 -1
  676. package/models/operations/toolgetbyname.d.ts +4 -0
  677. package/models/operations/toolgetbyname.d.ts.map +1 -1
  678. package/models/operations/toolgetbyname.js +9 -0
  679. package/models/operations/toolgetbyname.js.map +1 -1
  680. package/models/operations/toollist.d.ts +8 -4
  681. package/models/operations/toollist.d.ts.map +1 -1
  682. package/models/operations/toollist.js +15 -4
  683. package/models/operations/toollist.js.map +1 -1
  684. package/openapi-final.json +3083 -0
  685. package/openapi.json +8479 -0
  686. package/package.json +1 -1
  687. package/sdk/agents.d.ts +11 -4
  688. package/sdk/agents.d.ts.map +1 -1
  689. package/sdk/agents.js +11 -2
  690. package/sdk/agents.js.map +1 -1
  691. package/sdk/channels.d.ts +4 -1
  692. package/sdk/channels.d.ts.map +1 -1
  693. package/sdk/channels.js +4 -2
  694. package/sdk/channels.js.map +1 -1
  695. package/sdk/custommessages.d.ts +8 -8
  696. package/sdk/custommessages.d.ts.map +1 -1
  697. package/sdk/custommessages.js +4 -4
  698. package/sdk/custommessages.js.map +1 -1
  699. package/sdk/dashboards.d.ts +25 -41
  700. package/sdk/dashboards.d.ts.map +1 -1
  701. package/sdk/dashboards.js +32 -60
  702. package/sdk/dashboards.js.map +1 -1
  703. package/sdk/prompts.d.ts +14 -4
  704. package/sdk/prompts.d.ts.map +1 -1
  705. package/sdk/prompts.js +13 -0
  706. package/sdk/prompts.js.map +1 -1
  707. package/sdk/sdk.d.ts +8 -2
  708. package/sdk/sdk.d.ts.map +1 -1
  709. package/sdk/sdk.js +20 -22
  710. package/sdk/sdk.js.map +1 -1
  711. package/sdk/services.d.ts +21 -0
  712. package/sdk/services.d.ts.map +1 -0
  713. package/sdk/services.js +36 -0
  714. package/sdk/services.js.map +1 -0
  715. package/sdk/sessions.d.ts +12 -0
  716. package/sdk/sessions.d.ts.map +1 -1
  717. package/sdk/sessions.js +22 -2
  718. package/sdk/sessions.js.map +1 -1
  719. package/sdk/targets.d.ts +4 -4
  720. package/sdk/targets.d.ts.map +1 -1
  721. package/sdk/tools.d.ts +16 -2
  722. package/sdk/tools.d.ts.map +1 -1
  723. package/sdk/tools.js +21 -1
  724. package/sdk/tools.js.map +1 -1
  725. package/sdk/v1.d.ts +45 -0
  726. package/sdk/v1.d.ts.map +1 -0
  727. package/sdk/v1.js +64 -0
  728. package/sdk/v1.js.map +1 -0
  729. package/src/funcs/{dashboardsGetSessionAgents.ts → agentsAgentGetAvailableVoices.ts} +16 -15
  730. package/src/funcs/agentsCreate.ts +10 -7
  731. package/src/funcs/agentsDelete.ts +7 -4
  732. package/src/funcs/agentsGetById.ts +9 -6
  733. package/src/funcs/agentsList.ts +9 -6
  734. package/src/funcs/agentsTestSendTestMessage.ts +6 -3
  735. package/src/funcs/agentsUpdate.ts +12 -9
  736. package/src/funcs/channelsDelete.ts +13 -7
  737. package/src/funcs/channelsList.ts +6 -3
  738. package/src/funcs/channelsTargetsAvailableTargets.ts +6 -3
  739. package/src/funcs/channelsTargetsCreate.ts +9 -6
  740. package/src/funcs/channelsTargetsGetById.ts +9 -6
  741. package/src/funcs/channelsTargetsList.ts +9 -6
  742. package/src/funcs/channelsTargetsUpdate.ts +12 -7
  743. package/src/funcs/conversationsList.ts +6 -3
  744. package/src/funcs/customMessagesCreate.ts +13 -9
  745. package/src/funcs/customMessagesDelete.ts +7 -4
  746. package/src/funcs/customMessagesGetById.ts +10 -7
  747. package/src/funcs/customMessagesList.ts +9 -6
  748. package/src/funcs/customMessagesUpdate.ts +13 -9
  749. package/src/funcs/{dashboardsGetDailyCallVolumeByHour.ts → dashboardsPostSessionEventsDashboard.ts} +19 -17
  750. package/src/funcs/{dashboardsGetTotalCallVolumeByHour.ts → dashboardsPostSessionSummaryDashboard.ts} +19 -17
  751. package/src/funcs/dashboardsPostSessionTransfersDashboard.ts +113 -0
  752. package/src/funcs/{dashboardsTotalCallVolumeByWeekday.ts → dashboardsPostSessionsDashboard.ts} +19 -17
  753. package/src/funcs/eventsList.ts +6 -3
  754. package/src/funcs/promptsCreate.ts +11 -8
  755. package/src/funcs/promptsDelete.ts +9 -3
  756. package/src/funcs/promptsGetById.ts +9 -6
  757. package/src/funcs/promptsList.ts +9 -6
  758. package/src/funcs/promptsPromptsHistory.ts +142 -0
  759. package/src/funcs/promptsUpdate.ts +11 -8
  760. package/src/funcs/{dashboardsGetMonthlyCallVolumeByWeek.ts → servicesCreate.ts} +41 -23
  761. package/src/funcs/servicesList.ts +147 -0
  762. package/src/funcs/{dashboardsGetMonthlyCallVolumeByDay.ts → servicesUpdate.ts} +41 -23
  763. package/src/funcs/sessionLabelsCreate.ts +6 -3
  764. package/src/funcs/sessionLabelsGetById.ts +6 -3
  765. package/src/funcs/sessionLabelsList.ts +6 -3
  766. package/src/funcs/sessionsGenerateSessionRecordingUrls.ts +143 -0
  767. package/src/funcs/sessionsGetById.ts +138 -0
  768. package/src/funcs/sessionsList.ts +6 -3
  769. package/src/funcs/{dashboardsGetSessionSummary.ts → sessionsSessionRecordingStream.ts} +19 -25
  770. package/src/funcs/sessionsTranscriptGetById.ts +6 -3
  771. package/src/funcs/toolsCreate.ts +134 -0
  772. package/src/funcs/toolsGetByName.ts +6 -3
  773. package/src/funcs/toolsList.ts +10 -7
  774. package/src/funcs/toolsUpdate.ts +134 -0
  775. package/src/funcs/v1PostSessionEventsDashboard.ts +113 -0
  776. package/src/funcs/v1PostSessionSummaryDashboard.ts +113 -0
  777. package/src/funcs/v1PostSessionTransfersDashboard.ts +113 -0
  778. package/src/funcs/v1PostSessionsDashboard.ts +113 -0
  779. package/src/hooks/hooks.ts +20 -0
  780. package/src/hooks/types.ts +7 -0
  781. package/src/lib/config.ts +7 -7
  782. package/src/lib/encodings.ts +95 -61
  783. package/src/lib/matchers.ts +1 -1
  784. package/src/lib/primitives.ts +76 -0
  785. package/src/lib/sdks.ts +10 -2
  786. package/src/lib/security.ts +1 -1
  787. package/src/models/components/agentcreate.ts +106 -36
  788. package/src/models/components/agentproperties.ts +6 -0
  789. package/src/models/components/agentresponse.ts +235 -0
  790. package/src/models/components/agenttooldefaults.ts +30 -0
  791. package/src/models/components/agenttoolfielddefault.ts +30 -0
  792. package/src/models/components/agentupdate.ts +213 -0
  793. package/src/models/components/agentvoice.ts +103 -0
  794. package/src/models/components/agentvoicevarname.ts +65 -0
  795. package/src/models/components/availabletarget.ts +19 -0
  796. package/src/models/components/channel.ts +21 -1
  797. package/src/models/components/channelservices.ts +6 -0
  798. package/src/models/components/channeltargetcreaterequest.ts +70 -26
  799. package/src/models/components/channeltargetproperties.ts +1 -0
  800. package/src/models/components/channeltargetresponse.ts +179 -0
  801. package/src/models/components/channeltargetupdaterequest.ts +133 -0
  802. package/src/models/components/conversation.ts +59 -0
  803. package/src/models/components/custommessagecreaterequest.ts +100 -0
  804. package/src/models/components/custommessageproperties.ts +2 -0
  805. package/src/models/components/custommessageresponse.ts +149 -0
  806. package/src/models/components/custommessagerule.ts +129 -0
  807. package/src/models/components/custommessageupdaterequest.ts +107 -0
  808. package/src/models/components/dashboard.ts +102 -0
  809. package/src/models/components/dayofweek.ts +36 -0
  810. package/src/models/components/event.ts +64 -0
  811. package/src/models/components/index.ts +43 -14
  812. package/src/models/components/internaltool.ts +86 -0
  813. package/src/models/components/listresponseagentresponse.ts +101 -0
  814. package/src/models/components/listresponseavailabletarget.ts +23 -0
  815. package/src/models/components/listresponsechannel.ts +21 -0
  816. package/src/models/components/listresponsechanneltargetresponse.ts +104 -0
  817. package/src/models/components/listresponseconversation.ts +21 -0
  818. package/src/models/components/listresponsecustommessageresponse.ts +104 -0
  819. package/src/models/components/listresponseevent.ts +21 -0
  820. package/src/models/components/listresponsepromptresponse.ts +101 -0
  821. package/src/models/components/listresponseservice.ts +101 -0
  822. package/src/models/components/listresponsesession.ts +21 -0
  823. package/src/models/components/listresponsesessionlabel.ts +21 -0
  824. package/src/models/components/listresponsetoolresponse.ts +101 -0
  825. package/src/models/components/promptcreaterequest.ts +116 -0
  826. package/src/models/components/prompthistory.ts +136 -0
  827. package/src/models/components/promptllmconfig.ts +102 -0
  828. package/src/models/components/promptllmprovider.ts +39 -0
  829. package/src/models/components/promptproperties.ts +5 -0
  830. package/src/models/components/promptresponse.ts +162 -0
  831. package/src/models/components/promptupdaterequest.ts +132 -0
  832. package/src/models/components/security.ts +17 -0
  833. package/src/models/components/service.ts +86 -0
  834. package/src/models/components/servicecreate.ts +72 -0
  835. package/src/models/components/serviceproperties.ts +33 -0
  836. package/src/models/components/serviceupdate.ts +79 -0
  837. package/src/models/components/session.ts +89 -0
  838. package/src/models/components/sessionaction.ts +32 -0
  839. package/src/models/components/sessionlabel.ts +42 -1
  840. package/src/models/components/sessionlabelcreate.ts +39 -0
  841. package/src/models/components/sessionproperties.ts +1 -0
  842. package/src/models/components/sessionrecordingresponse.ts +95 -0
  843. package/src/models/components/sessiontext.ts +32 -0
  844. package/src/models/components/sessiontranscriptionresponse.ts +35 -0
  845. package/src/models/components/sttprovider.ts +38 -0
  846. package/src/models/components/targetmodes.ts +39 -0
  847. package/src/models/components/testmessage.ts +50 -0
  848. package/src/models/components/testmessageresponse.ts +60 -4
  849. package/src/models/components/toolargumentlocation.ts +53 -0
  850. package/src/models/components/toolcreaterequest.ts +187 -0
  851. package/src/models/components/tooldefinition.ts +386 -0
  852. package/src/models/components/tooldetailresponse.ts +25 -0
  853. package/src/models/components/toolfunction.ts +136 -0
  854. package/src/models/components/toolhttpendpoint.ts +111 -0
  855. package/src/models/components/toolhttpmethod.ts +39 -0
  856. package/src/models/components/toolparameterdefault.ts +84 -0
  857. package/src/models/components/toolparametertransform.ts +138 -0
  858. package/src/models/components/toolparametertransformcondition.ts +88 -0
  859. package/src/models/components/toolresponse.ts +206 -0
  860. package/src/models/components/toolupdaterequest.ts +194 -0
  861. package/src/models/components/validationerror.ts +33 -0
  862. package/src/models/operations/agentdelete.ts +21 -0
  863. package/src/models/operations/agentgetbyid.ts +21 -0
  864. package/src/models/operations/agentlist.ts +31 -8
  865. package/src/models/operations/availabletargets.ts +33 -8
  866. package/src/models/operations/channelslist.ts +31 -8
  867. package/src/models/operations/channeltargetscreate.ts +23 -0
  868. package/src/models/operations/channeltargetsdelete.ts +23 -0
  869. package/src/models/operations/channeltargetsgetbyid.ts +23 -0
  870. package/src/models/operations/channeltargetslist.ts +33 -8
  871. package/src/models/operations/channeltargetsupdate.ts +31 -6
  872. package/src/models/operations/conversationslist.ts +33 -8
  873. package/src/models/operations/custommessagegetbyid.ts +23 -0
  874. package/src/models/operations/custommessagesdelete.ts +23 -0
  875. package/src/models/operations/custommessageslist.ts +33 -8
  876. package/src/models/operations/eventslist.ts +31 -8
  877. package/src/models/operations/generatesessionrecordingurls.ts +80 -0
  878. package/src/models/operations/index.ts +5 -8
  879. package/src/models/operations/promptsdelete.ts +21 -0
  880. package/src/models/operations/promptsgetbyid.ts +21 -0
  881. package/src/models/operations/promptshistory.ts +75 -0
  882. package/src/models/operations/promptslist.ts +31 -8
  883. package/src/models/operations/servicelist.ts +122 -0
  884. package/src/models/operations/sessiongetbyid.ts +75 -0
  885. package/src/models/operations/sessionlabelgetbyid.ts +21 -0
  886. package/src/models/operations/sessionlabelslist.ts +33 -8
  887. package/src/models/operations/sessionrecordingstream.ts +68 -0
  888. package/src/models/operations/sessionslist.ts +31 -8
  889. package/src/models/operations/sessiontranscriptgetbyid.ts +23 -0
  890. package/src/models/operations/toolgetbyname.ts +21 -0
  891. package/src/models/operations/toollist.ts +29 -8
  892. package/src/sdk/agents.ts +21 -5
  893. package/src/sdk/channels.ts +4 -1
  894. package/src/sdk/custommessages.ts +10 -10
  895. package/src/sdk/dashboards.ts +37 -103
  896. package/src/sdk/prompts.ts +27 -6
  897. package/src/sdk/sdk.ts +17 -5
  898. package/src/sdk/services.ts +58 -0
  899. package/src/sdk/sessions.ts +45 -0
  900. package/src/sdk/targets.ts +4 -4
  901. package/src/sdk/tools.ts +38 -2
  902. package/src/sdk/v1.ts +85 -0
  903. package/src/types/operations.ts +11 -5
  904. package/test/sdk/contract/agents.test.ts +113 -0
  905. package/test/sdk/contract/custommessages.test.ts +109 -0
  906. package/test/sdk/contract/helper.ts +190 -0
  907. package/test/sdk/contract/prompts.test.ts +70 -0
  908. package/tsconfig.json +41 -0
  909. package/types/operations.d.ts +5 -3
  910. package/types/operations.d.ts.map +1 -1
  911. package/types/operations.js +3 -0
  912. package/types/operations.js.map +1 -1
  913. package/funcs/dashboardsGetDailyCallVolumeByHour.d.ts +0 -15
  914. package/funcs/dashboardsGetDailyCallVolumeByHour.d.ts.map +0 -1
  915. package/funcs/dashboardsGetDailyCallVolumeByHour.js.map +0 -1
  916. package/funcs/dashboardsGetMonthlyCallVolumeByDay.d.ts +0 -15
  917. package/funcs/dashboardsGetMonthlyCallVolumeByDay.d.ts.map +0 -1
  918. package/funcs/dashboardsGetMonthlyCallVolumeByDay.js +0 -86
  919. package/funcs/dashboardsGetMonthlyCallVolumeByDay.js.map +0 -1
  920. package/funcs/dashboardsGetMonthlyCallVolumeByWeek.d.ts.map +0 -1
  921. package/funcs/dashboardsGetMonthlyCallVolumeByWeek.js.map +0 -1
  922. package/funcs/dashboardsGetSessionAgents.d.ts +0 -15
  923. package/funcs/dashboardsGetSessionAgents.d.ts.map +0 -1
  924. package/funcs/dashboardsGetSessionAgents.js.map +0 -1
  925. package/funcs/dashboardsGetSessionSummary.d.ts.map +0 -1
  926. package/funcs/dashboardsGetSessionSummary.js.map +0 -1
  927. package/funcs/dashboardsGetTotalCallVolumeByHour.d.ts +0 -15
  928. package/funcs/dashboardsGetTotalCallVolumeByHour.d.ts.map +0 -1
  929. package/funcs/dashboardsGetTotalCallVolumeByHour.js.map +0 -1
  930. package/funcs/dashboardsGetWeeklyCallVolumeByWeekday.d.ts.map +0 -1
  931. package/funcs/dashboardsGetWeeklyCallVolumeByWeekday.js +0 -86
  932. package/funcs/dashboardsGetWeeklyCallVolumeByWeekday.js.map +0 -1
  933. package/funcs/dashboardsTotalCallVolumeByWeekday.d.ts +0 -15
  934. package/funcs/dashboardsTotalCallVolumeByWeekday.d.ts.map +0 -1
  935. package/funcs/dashboardsTotalCallVolumeByWeekday.js.map +0 -1
  936. package/models/components/agent.d.ts +0 -70
  937. package/models/components/agent.d.ts.map +0 -1
  938. package/models/components/agent.js +0 -100
  939. package/models/components/agent.js.map +0 -1
  940. package/models/components/channeltarget.d.ts +0 -39
  941. package/models/components/channeltarget.d.ts.map +0 -1
  942. package/models/components/channeltarget.js.map +0 -1
  943. package/models/components/custommessage.d.ts +0 -40
  944. package/models/components/custommessage.d.ts.map +0 -1
  945. package/models/components/custommessage.js.map +0 -1
  946. package/models/components/custommessagecreate.d.ts +0 -35
  947. package/models/components/custommessagecreate.d.ts.map +0 -1
  948. package/models/components/custommessagecreate.js.map +0 -1
  949. package/models/components/listresponseagent.d.ts +0 -34
  950. package/models/components/listresponseagent.d.ts.map +0 -1
  951. package/models/components/listresponseagent.js.map +0 -1
  952. package/models/components/listresponsechanneltarget.d.ts +0 -34
  953. package/models/components/listresponsechanneltarget.d.ts.map +0 -1
  954. package/models/components/listresponsechanneltarget.js.map +0 -1
  955. package/models/components/listresponsecustommessage.d.ts +0 -34
  956. package/models/components/listresponsecustommessage.d.ts.map +0 -1
  957. package/models/components/listresponsecustommessage.js.map +0 -1
  958. package/models/components/listresponseprompt.d.ts +0 -34
  959. package/models/components/listresponseprompt.d.ts.map +0 -1
  960. package/models/components/listresponseprompt.js.map +0 -1
  961. package/models/components/listresponsetool.d.ts +0 -34
  962. package/models/components/listresponsetool.d.ts.map +0 -1
  963. package/models/components/listresponsetool.js.map +0 -1
  964. package/models/components/llmconfig.d.ts +0 -44
  965. package/models/components/llmconfig.d.ts.map +0 -1
  966. package/models/components/llmconfig.js.map +0 -1
  967. package/models/components/prompt.d.ts +0 -56
  968. package/models/components/prompt.d.ts.map +0 -1
  969. package/models/components/prompt.js.map +0 -1
  970. package/models/components/promptcreate.d.ts +0 -46
  971. package/models/components/promptcreate.d.ts.map +0 -1
  972. package/models/components/promptcreate.js.map +0 -1
  973. package/models/components/provider.d.ts.map +0 -1
  974. package/models/components/provider.js.map +0 -1
  975. package/models/components/tool.d.ts +0 -70
  976. package/models/components/tool.d.ts.map +0 -1
  977. package/models/components/tool.js.map +0 -1
  978. package/models/operations/getdailycallvolumebyhour.d.ts +0 -24
  979. package/models/operations/getdailycallvolumebyhour.d.ts.map +0 -1
  980. package/models/operations/getdailycallvolumebyhour.js +0 -46
  981. package/models/operations/getdailycallvolumebyhour.js.map +0 -1
  982. package/models/operations/getmonthlycallvolumebyday.d.ts +0 -24
  983. package/models/operations/getmonthlycallvolumebyday.d.ts.map +0 -1
  984. package/models/operations/getmonthlycallvolumebyday.js +0 -46
  985. package/models/operations/getmonthlycallvolumebyday.js.map +0 -1
  986. package/models/operations/getmonthlycallvolumebyweek.d.ts +0 -24
  987. package/models/operations/getmonthlycallvolumebyweek.d.ts.map +0 -1
  988. package/models/operations/getmonthlycallvolumebyweek.js +0 -46
  989. package/models/operations/getmonthlycallvolumebyweek.js.map +0 -1
  990. package/models/operations/getsessionagents.d.ts +0 -24
  991. package/models/operations/getsessionagents.d.ts.map +0 -1
  992. package/models/operations/getsessionagents.js.map +0 -1
  993. package/models/operations/getsessionsummary.d.ts +0 -57
  994. package/models/operations/getsessionsummary.d.ts.map +0 -1
  995. package/models/operations/getsessionsummary.js +0 -90
  996. package/models/operations/getsessionsummary.js.map +0 -1
  997. package/models/operations/gettotalcallvolumebyhour.d.ts +0 -24
  998. package/models/operations/gettotalcallvolumebyhour.d.ts.map +0 -1
  999. package/models/operations/gettotalcallvolumebyhour.js +0 -46
  1000. package/models/operations/gettotalcallvolumebyhour.js.map +0 -1
  1001. package/models/operations/getweeklycallvolumebyweekday.d.ts +0 -24
  1002. package/models/operations/getweeklycallvolumebyweekday.d.ts.map +0 -1
  1003. package/models/operations/getweeklycallvolumebyweekday.js +0 -46
  1004. package/models/operations/getweeklycallvolumebyweekday.js.map +0 -1
  1005. package/models/operations/totalcallvolumebyweekday.d.ts +0 -24
  1006. package/models/operations/totalcallvolumebyweekday.d.ts.map +0 -1
  1007. package/models/operations/totalcallvolumebyweekday.js +0 -46
  1008. package/models/operations/totalcallvolumebyweekday.js.map +0 -1
  1009. package/src/funcs/dashboardsGetWeeklyCallVolumeByWeekday.ts +0 -113
  1010. package/src/models/components/agent.ts +0 -134
  1011. package/src/models/components/channeltarget.ts +0 -92
  1012. package/src/models/components/custommessage.ts +0 -66
  1013. package/src/models/components/custommessagecreate.ts +0 -59
  1014. package/src/models/components/listresponseagent.ts +0 -80
  1015. package/src/models/components/listresponsechanneltarget.ts +0 -80
  1016. package/src/models/components/listresponsecustommessage.ts +0 -80
  1017. package/src/models/components/listresponseprompt.ts +0 -80
  1018. package/src/models/components/listresponsetool.ts +0 -80
  1019. package/src/models/components/llmconfig.ts +0 -83
  1020. package/src/models/components/prompt.ts +0 -101
  1021. package/src/models/components/promptcreate.ts +0 -88
  1022. package/src/models/components/provider.ts +0 -37
  1023. package/src/models/components/tool.ts +0 -116
  1024. package/src/models/operations/getdailycallvolumebyhour.ts +0 -46
  1025. package/src/models/operations/getmonthlycallvolumebyday.ts +0 -46
  1026. package/src/models/operations/getmonthlycallvolumebyweek.ts +0 -46
  1027. package/src/models/operations/getsessionagents.ts +0 -42
  1028. package/src/models/operations/getsessionsummary.ts +0 -116
  1029. package/src/models/operations/gettotalcallvolumebyhour.ts +0 -46
  1030. package/src/models/operations/getweeklycallvolumebyweekday.ts +0 -47
  1031. package/src/models/operations/totalcallvolumebyweekday.ts +0 -46
@@ -0,0 +1,4398 @@
1
+ {
2
+ "openapi": "3.1.0",
3
+ "info": {
4
+ "title": "SyllableSDK",
5
+ "description": "\n# Syllble Platform SDK\n\nSyllble SDK gives you the power of awesome AI agentry. 🚀\n\n## Overview\n\nThe Syllble SDK provides a comprehensive set of tools and APIs to integrate powerful AI capabilities into your applications. Whether you're building chatbots, virtual assistants, or any other AI-driven solutions, Syllble SDK has got you covered.\n\n## Features\n\n- **Natural Language Processing (NLP)**: Understand and generate human language with ease.\n- **Machine Learning Models**: Leverage pre-trained models or train your own custom models.\n- **Speech Recognition**: Convert speech to text and vice versa.\n- **Image Recognition**: Identify objects, faces, and scenes in images.\n- **Data Analytics**: Analyze and visualize data to gain insights.\n- **Integration**: Seamlessly integrate with other services and platforms.\n\n",
6
+ "version": "0.0.2"
7
+ },
8
+ "servers": [
9
+ {
10
+ "url": "http://127.0.0.1:8001"
11
+ }
12
+ ],
13
+ "paths": {
14
+ "/api/v1/agents/": {
15
+ "get": {
16
+ "tags": [
17
+ "agents"
18
+ ],
19
+ "summary": "Agent List",
20
+ "description": "List the existing agents",
21
+ "operationId": "agent_list",
22
+ "security": [
23
+ {
24
+ "APIKeyHeader": []
25
+ }
26
+ ],
27
+ "parameters": [
28
+ {
29
+ "name": "filter_name",
30
+ "in": "query",
31
+ "required": false,
32
+ "schema": {
33
+ "anyOf": [
34
+ {
35
+ "type": "string"
36
+ },
37
+ {
38
+ "type": "null"
39
+ }
40
+ ],
41
+ "title": "Filter Name"
42
+ }
43
+ },
44
+ {
45
+ "name": "filter_prompt",
46
+ "in": "query",
47
+ "required": false,
48
+ "schema": {
49
+ "anyOf": [
50
+ {
51
+ "type": "string"
52
+ },
53
+ {
54
+ "type": "null"
55
+ }
56
+ ],
57
+ "title": "Filter Prompt"
58
+ }
59
+ },
60
+ {
61
+ "name": "filter_greeting",
62
+ "in": "query",
63
+ "required": false,
64
+ "schema": {
65
+ "anyOf": [
66
+ {
67
+ "type": "string"
68
+ },
69
+ {
70
+ "type": "null"
71
+ }
72
+ ],
73
+ "title": "Filter Greeting"
74
+ }
75
+ },
76
+ {
77
+ "name": "page",
78
+ "in": "query",
79
+ "required": false,
80
+ "schema": {
81
+ "anyOf": [
82
+ {
83
+ "type": "integer",
84
+ "minimum": 0
85
+ },
86
+ {
87
+ "type": "null"
88
+ }
89
+ ],
90
+ "default": 0,
91
+ "title": "Page"
92
+ }
93
+ },
94
+ {
95
+ "name": "limit",
96
+ "in": "query",
97
+ "required": false,
98
+ "schema": {
99
+ "type": "integer",
100
+ "minimum": -1,
101
+ "default": -1,
102
+ "title": "Limit"
103
+ }
104
+ }
105
+ ],
106
+ "responses": {
107
+ "200": {
108
+ "description": "Successful Response",
109
+ "content": {
110
+ "application/json": {
111
+ "schema": {
112
+ "$ref": "#/components/schemas/AgentListResponse"
113
+ }
114
+ }
115
+ }
116
+ },
117
+ "422": {
118
+ "description": "Validation Error",
119
+ "content": {
120
+ "application/json": {
121
+ "schema": {
122
+ "$ref": "#/components/schemas/HTTPValidationError"
123
+ }
124
+ }
125
+ }
126
+ }
127
+ }
128
+ },
129
+ "post": {
130
+ "tags": [
131
+ "agents"
132
+ ],
133
+ "summary": "Create Agent",
134
+ "description": "Create a new agent",
135
+ "operationId": "agent_create",
136
+ "security": [
137
+ {
138
+ "APIKeyHeader": []
139
+ }
140
+ ],
141
+ "requestBody": {
142
+ "required": true,
143
+ "content": {
144
+ "application/json": {
145
+ "schema": {
146
+ "$ref": "#/components/schemas/AgentCreate"
147
+ }
148
+ }
149
+ }
150
+ },
151
+ "responses": {
152
+ "200": {
153
+ "description": "Successful Response",
154
+ "content": {
155
+ "application/json": {
156
+ "schema": {
157
+ "$ref": "#/components/schemas/Agent"
158
+ }
159
+ }
160
+ }
161
+ },
162
+ "422": {
163
+ "description": "Validation Error",
164
+ "content": {
165
+ "application/json": {
166
+ "schema": {
167
+ "$ref": "#/components/schemas/HTTPValidationError"
168
+ }
169
+ }
170
+ }
171
+ }
172
+ }
173
+ },
174
+ "put": {
175
+ "tags": [
176
+ "agents"
177
+ ],
178
+ "summary": "Update Agent",
179
+ "description": "Update an existing agent",
180
+ "operationId": "agent_update",
181
+ "security": [
182
+ {
183
+ "APIKeyHeader": []
184
+ }
185
+ ],
186
+ "requestBody": {
187
+ "required": true,
188
+ "content": {
189
+ "application/json": {
190
+ "schema": {
191
+ "$ref": "#/components/schemas/Agent"
192
+ }
193
+ }
194
+ }
195
+ },
196
+ "responses": {
197
+ "200": {
198
+ "description": "Successful Response",
199
+ "content": {
200
+ "application/json": {
201
+ "schema": {
202
+ "$ref": "#/components/schemas/Agent"
203
+ }
204
+ }
205
+ }
206
+ },
207
+ "422": {
208
+ "description": "Validation Error",
209
+ "content": {
210
+ "application/json": {
211
+ "schema": {
212
+ "$ref": "#/components/schemas/HTTPValidationError"
213
+ }
214
+ }
215
+ }
216
+ }
217
+ }
218
+ }
219
+ },
220
+ "/api/v1/agents/{agent_id}": {
221
+ "get": {
222
+ "tags": [
223
+ "agents"
224
+ ],
225
+ "summary": "Get Agent By Id",
226
+ "description": "Get an agent by ID.",
227
+ "operationId": "agent_get_by_id",
228
+ "security": [
229
+ {
230
+ "APIKeyHeader": []
231
+ }
232
+ ],
233
+ "parameters": [
234
+ {
235
+ "name": "agent_id",
236
+ "in": "path",
237
+ "required": true,
238
+ "schema": {
239
+ "type": "integer",
240
+ "title": "Agent Id"
241
+ }
242
+ }
243
+ ],
244
+ "responses": {
245
+ "200": {
246
+ "description": "Successful Response",
247
+ "content": {
248
+ "application/json": {
249
+ "schema": {
250
+ "$ref": "#/components/schemas/Agent"
251
+ }
252
+ }
253
+ }
254
+ },
255
+ "422": {
256
+ "description": "Validation Error",
257
+ "content": {
258
+ "application/json": {
259
+ "schema": {
260
+ "$ref": "#/components/schemas/HTTPValidationError"
261
+ }
262
+ }
263
+ }
264
+ }
265
+ }
266
+ },
267
+ "delete": {
268
+ "tags": [
269
+ "agents"
270
+ ],
271
+ "summary": "Delete Agent",
272
+ "description": "Delete an agent by ID",
273
+ "operationId": "agent_delete",
274
+ "security": [
275
+ {
276
+ "APIKeyHeader": []
277
+ }
278
+ ],
279
+ "parameters": [
280
+ {
281
+ "name": "agent_id",
282
+ "in": "path",
283
+ "required": true,
284
+ "schema": {
285
+ "type": "integer",
286
+ "title": "Agent Id"
287
+ }
288
+ },
289
+ {
290
+ "name": "reason",
291
+ "in": "query",
292
+ "required": true,
293
+ "schema": {
294
+ "type": "string",
295
+ "title": "Reason"
296
+ }
297
+ }
298
+ ],
299
+ "responses": {
300
+ "200": {
301
+ "description": "Successful Response",
302
+ "content": {
303
+ "application/json": {
304
+ "schema": {}
305
+ }
306
+ }
307
+ },
308
+ "422": {
309
+ "description": "Validation Error",
310
+ "content": {
311
+ "application/json": {
312
+ "schema": {
313
+ "$ref": "#/components/schemas/HTTPValidationError"
314
+ }
315
+ }
316
+ }
317
+ }
318
+ }
319
+ }
320
+ },
321
+ "/api/v1/channels/available-targets": {
322
+ "get": {
323
+ "tags": [
324
+ "channels.targets"
325
+ ],
326
+ "summary": "Available Targets List",
327
+ "description": "List the available phone numbers",
328
+ "operationId": "available_targets",
329
+ "security": [
330
+ {
331
+ "APIKeyHeader": []
332
+ }
333
+ ],
334
+ "parameters": [
335
+ {
336
+ "name": "page",
337
+ "in": "query",
338
+ "required": false,
339
+ "schema": {
340
+ "anyOf": [
341
+ {
342
+ "type": "integer",
343
+ "minimum": 0
344
+ },
345
+ {
346
+ "type": "null"
347
+ }
348
+ ],
349
+ "default": 0,
350
+ "title": "Page"
351
+ }
352
+ },
353
+ {
354
+ "name": "limit",
355
+ "in": "query",
356
+ "required": false,
357
+ "schema": {
358
+ "type": "integer",
359
+ "minimum": -1,
360
+ "default": -1,
361
+ "title": "Limit"
362
+ }
363
+ }
364
+ ],
365
+ "responses": {
366
+ "200": {
367
+ "description": "Successful Response",
368
+ "content": {
369
+ "application/json": {
370
+ "schema": {
371
+ "$ref": "#/components/schemas/AvailableTargetsListResponse"
372
+ }
373
+ }
374
+ }
375
+ },
376
+ "422": {
377
+ "description": "Validation Error",
378
+ "content": {
379
+ "application/json": {
380
+ "schema": {
381
+ "$ref": "#/components/schemas/HTTPValidationError"
382
+ }
383
+ }
384
+ }
385
+ }
386
+ }
387
+ }
388
+ },
389
+ "/api/v1/channels/": {
390
+ "get": {
391
+ "tags": [
392
+ "channels"
393
+ ],
394
+ "summary": "Get Channels",
395
+ "operationId": "channels_list",
396
+ "security": [
397
+ {
398
+ "APIKeyHeader": []
399
+ }
400
+ ],
401
+ "parameters": [
402
+ {
403
+ "name": "page",
404
+ "in": "query",
405
+ "required": false,
406
+ "schema": {
407
+ "anyOf": [
408
+ {
409
+ "type": "integer",
410
+ "minimum": 0
411
+ },
412
+ {
413
+ "type": "null"
414
+ }
415
+ ],
416
+ "default": 0,
417
+ "title": "Page"
418
+ }
419
+ },
420
+ {
421
+ "name": "limit",
422
+ "in": "query",
423
+ "required": false,
424
+ "schema": {
425
+ "type": "integer",
426
+ "minimum": -1,
427
+ "default": -1,
428
+ "title": "Limit"
429
+ }
430
+ }
431
+ ],
432
+ "responses": {
433
+ "200": {
434
+ "description": "Successful Response",
435
+ "content": {
436
+ "application/json": {
437
+ "schema": {
438
+ "$ref": "#/components/schemas/ChannelListResponse"
439
+ }
440
+ }
441
+ }
442
+ },
443
+ "422": {
444
+ "description": "Validation Error",
445
+ "content": {
446
+ "application/json": {
447
+ "schema": {
448
+ "$ref": "#/components/schemas/HTTPValidationError"
449
+ }
450
+ }
451
+ }
452
+ }
453
+ }
454
+ }
455
+ },
456
+ "/api/v1/channels/targets": {
457
+ "get": {
458
+ "tags": [
459
+ "channels.targets"
460
+ ],
461
+ "summary": "Get Channel Targets",
462
+ "operationId": "channel_targets_list",
463
+ "security": [
464
+ {
465
+ "APIKeyHeader": []
466
+ }
467
+ ],
468
+ "parameters": [
469
+ {
470
+ "name": "page",
471
+ "in": "query",
472
+ "required": false,
473
+ "schema": {
474
+ "type": "integer",
475
+ "default": 0,
476
+ "title": "Page"
477
+ }
478
+ },
479
+ {
480
+ "name": "limit",
481
+ "in": "query",
482
+ "required": false,
483
+ "schema": {
484
+ "type": "integer",
485
+ "default": 100,
486
+ "title": "Limit"
487
+ }
488
+ },
489
+ {
490
+ "name": "order_by",
491
+ "in": "query",
492
+ "required": false,
493
+ "schema": {
494
+ "type": "string",
495
+ "default": "target",
496
+ "title": "Order By"
497
+ }
498
+ },
499
+ {
500
+ "name": "order_by_direction",
501
+ "in": "query",
502
+ "required": false,
503
+ "schema": {
504
+ "type": "string",
505
+ "default": "DESC",
506
+ "title": "Order By Direction"
507
+ }
508
+ },
509
+ {
510
+ "name": "agent_id",
511
+ "in": "query",
512
+ "required": false,
513
+ "schema": {
514
+ "anyOf": [
515
+ {
516
+ "type": "string"
517
+ },
518
+ {
519
+ "type": "null"
520
+ }
521
+ ],
522
+ "title": "Agent Id"
523
+ }
524
+ },
525
+ {
526
+ "name": "channel_id",
527
+ "in": "query",
528
+ "required": false,
529
+ "schema": {
530
+ "anyOf": [
531
+ {
532
+ "type": "string"
533
+ },
534
+ {
535
+ "type": "null"
536
+ }
537
+ ],
538
+ "title": "Channel Id"
539
+ }
540
+ },
541
+ {
542
+ "name": "target",
543
+ "in": "query",
544
+ "required": false,
545
+ "schema": {
546
+ "anyOf": [
547
+ {
548
+ "type": "string"
549
+ },
550
+ {
551
+ "type": "null"
552
+ }
553
+ ],
554
+ "title": "Target"
555
+ }
556
+ },
557
+ {
558
+ "name": "fallback_target",
559
+ "in": "query",
560
+ "required": false,
561
+ "schema": {
562
+ "anyOf": [
563
+ {
564
+ "type": "string"
565
+ },
566
+ {
567
+ "type": "null"
568
+ }
569
+ ],
570
+ "title": "Fallback Target"
571
+ }
572
+ }
573
+ ],
574
+ "responses": {
575
+ "200": {
576
+ "description": "Successful Response",
577
+ "content": {
578
+ "application/json": {
579
+ "schema": {
580
+ "$ref": "#/components/schemas/ChannelTargetListResponse"
581
+ }
582
+ }
583
+ }
584
+ },
585
+ "422": {
586
+ "description": "Validation Error",
587
+ "content": {
588
+ "application/json": {
589
+ "schema": {
590
+ "$ref": "#/components/schemas/HTTPValidationError"
591
+ }
592
+ }
593
+ }
594
+ }
595
+ }
596
+ }
597
+ },
598
+ "/api/v1/channels/{channel_id}/targets": {
599
+ "post": {
600
+ "tags": [
601
+ "channels.targets"
602
+ ],
603
+ "summary": "Assign A Channel Target",
604
+ "operationId": "channel_targets_create",
605
+ "security": [
606
+ {
607
+ "APIKeyHeader": []
608
+ }
609
+ ],
610
+ "parameters": [
611
+ {
612
+ "name": "channel_id",
613
+ "in": "path",
614
+ "required": true,
615
+ "schema": {
616
+ "type": "integer",
617
+ "title": "Channel Id"
618
+ }
619
+ }
620
+ ],
621
+ "requestBody": {
622
+ "required": true,
623
+ "content": {
624
+ "application/json": {
625
+ "schema": {
626
+ "$ref": "#/components/schemas/ChannelTargetCreateRequest"
627
+ }
628
+ }
629
+ }
630
+ },
631
+ "responses": {
632
+ "200": {
633
+ "description": "Successful Response",
634
+ "content": {
635
+ "application/json": {
636
+ "schema": {
637
+ "$ref": "#/components/schemas/ChannelTarget"
638
+ }
639
+ }
640
+ }
641
+ },
642
+ "422": {
643
+ "description": "Validation Error",
644
+ "content": {
645
+ "application/json": {
646
+ "schema": {
647
+ "$ref": "#/components/schemas/HTTPValidationError"
648
+ }
649
+ }
650
+ }
651
+ }
652
+ }
653
+ }
654
+ },
655
+ "/api/v1/channels/{channel_id}/targets/{target_id}": {
656
+ "get": {
657
+ "tags": [
658
+ "channels.targets"
659
+ ],
660
+ "summary": "Get A Channel Target",
661
+ "operationId": "channel_targets_get_by_id",
662
+ "security": [
663
+ {
664
+ "APIKeyHeader": []
665
+ }
666
+ ],
667
+ "parameters": [
668
+ {
669
+ "name": "channel_id",
670
+ "in": "path",
671
+ "required": true,
672
+ "schema": {
673
+ "type": "integer",
674
+ "title": "Channel Id"
675
+ }
676
+ },
677
+ {
678
+ "name": "target_id",
679
+ "in": "path",
680
+ "required": true,
681
+ "schema": {
682
+ "type": "integer",
683
+ "title": "Target Id"
684
+ }
685
+ }
686
+ ],
687
+ "responses": {
688
+ "200": {
689
+ "description": "Successful Response",
690
+ "content": {
691
+ "application/json": {
692
+ "schema": {
693
+ "$ref": "#/components/schemas/ChannelTarget"
694
+ }
695
+ }
696
+ }
697
+ },
698
+ "422": {
699
+ "description": "Validation Error",
700
+ "content": {
701
+ "application/json": {
702
+ "schema": {
703
+ "$ref": "#/components/schemas/HTTPValidationError"
704
+ }
705
+ }
706
+ }
707
+ }
708
+ }
709
+ },
710
+ "put": {
711
+ "tags": [
712
+ "channels.targets"
713
+ ],
714
+ "summary": "Edit Channel Target",
715
+ "description": "Update channel target by ID",
716
+ "operationId": "channels_target_update",
717
+ "security": [
718
+ {
719
+ "APIKeyHeader": []
720
+ }
721
+ ],
722
+ "parameters": [
723
+ {
724
+ "name": "channel_id",
725
+ "in": "path",
726
+ "required": true,
727
+ "schema": {
728
+ "type": "integer",
729
+ "title": "Channel Id"
730
+ }
731
+ },
732
+ {
733
+ "name": "target_id",
734
+ "in": "path",
735
+ "required": true,
736
+ "schema": {
737
+ "type": "integer",
738
+ "title": "Target Id"
739
+ }
740
+ }
741
+ ],
742
+ "requestBody": {
743
+ "required": true,
744
+ "content": {
745
+ "application/json": {
746
+ "schema": {
747
+ "$ref": "#/components/schemas/ChannelTarget"
748
+ }
749
+ }
750
+ }
751
+ },
752
+ "responses": {
753
+ "200": {
754
+ "description": "Successful Response",
755
+ "content": {
756
+ "application/json": {
757
+ "schema": {
758
+ "$ref": "#/components/schemas/ChannelTarget"
759
+ }
760
+ }
761
+ }
762
+ },
763
+ "422": {
764
+ "description": "Validation Error",
765
+ "content": {
766
+ "application/json": {
767
+ "schema": {
768
+ "$ref": "#/components/schemas/HTTPValidationError"
769
+ }
770
+ }
771
+ }
772
+ }
773
+ }
774
+ }
775
+ },
776
+ "/api/v1/channels/{channel_id}": {
777
+ "delete": {
778
+ "tags": [
779
+ "channels"
780
+ ],
781
+ "summary": "Delete Channel",
782
+ "description": "Delete channel by ID",
783
+ "operationId": "channels_delete",
784
+ "security": [
785
+ {
786
+ "APIKeyHeader": []
787
+ }
788
+ ],
789
+ "parameters": [
790
+ {
791
+ "name": "channel_id",
792
+ "in": "path",
793
+ "required": true,
794
+ "schema": {
795
+ "type": "string",
796
+ "title": "Channel Id"
797
+ }
798
+ }
799
+ ],
800
+ "responses": {
801
+ "200": {
802
+ "description": "Successful Response",
803
+ "content": {
804
+ "application/json": {
805
+ "schema": {
806
+ "$ref": "#/components/schemas/ChannelTarget"
807
+ }
808
+ }
809
+ }
810
+ },
811
+ "422": {
812
+ "description": "Validation Error",
813
+ "content": {
814
+ "application/json": {
815
+ "schema": {
816
+ "$ref": "#/components/schemas/HTTPValidationError"
817
+ }
818
+ }
819
+ }
820
+ }
821
+ }
822
+ }
823
+ },
824
+ "/api/v1/chats/messages": {
825
+ "post": {
826
+ "tags": [
827
+ "agents.chats"
828
+ ],
829
+ "summary": "Send New Message",
830
+ "description": "Send a new message",
831
+ "operationId": "chats_send_message",
832
+ "requestBody": {
833
+ "content": {
834
+ "application/json": {
835
+ "schema": {
836
+ "$ref": "#/components/schemas/ChatMessage"
837
+ }
838
+ }
839
+ },
840
+ "required": true
841
+ },
842
+ "responses": {
843
+ "200": {
844
+ "description": "Successful Response",
845
+ "content": {
846
+ "application/json": {
847
+ "schema": {
848
+ "$ref": "#/components/schemas/ChatMessageResponse"
849
+ }
850
+ }
851
+ }
852
+ },
853
+ "422": {
854
+ "description": "Validation Error",
855
+ "content": {
856
+ "application/json": {
857
+ "schema": {
858
+ "$ref": "#/components/schemas/HTTPValidationError"
859
+ }
860
+ }
861
+ }
862
+ }
863
+ },
864
+ "security": [
865
+ {
866
+ "APIKeyHeader": []
867
+ }
868
+ ]
869
+ }
870
+ },
871
+ "/api/v1/conversations/": {
872
+ "get": {
873
+ "tags": [
874
+ "conversations"
875
+ ],
876
+ "summary": "Conversations List",
877
+ "operationId": "conversations_list",
878
+ "security": [
879
+ {
880
+ "APIKeyHeader": []
881
+ }
882
+ ],
883
+ "parameters": [
884
+ {
885
+ "name": "page",
886
+ "in": "query",
887
+ "required": false,
888
+ "schema": {
889
+ "type": "integer",
890
+ "default": 0,
891
+ "title": "Page"
892
+ }
893
+ },
894
+ {
895
+ "name": "limit",
896
+ "in": "query",
897
+ "required": false,
898
+ "schema": {
899
+ "type": "integer",
900
+ "default": 100,
901
+ "title": "Limit"
902
+ }
903
+ },
904
+ {
905
+ "name": "order_by",
906
+ "in": "query",
907
+ "required": false,
908
+ "schema": {
909
+ "type": "string",
910
+ "default": "timestamp",
911
+ "title": "Order By"
912
+ }
913
+ },
914
+ {
915
+ "name": "order_by_direction",
916
+ "in": "query",
917
+ "required": false,
918
+ "schema": {
919
+ "type": "string",
920
+ "default": "DESC",
921
+ "title": "Order By Direction"
922
+ }
923
+ },
924
+ {
925
+ "name": "start_time",
926
+ "in": "query",
927
+ "required": false,
928
+ "schema": {
929
+ "anyOf": [
930
+ {
931
+ "type": "string"
932
+ },
933
+ {
934
+ "type": "null"
935
+ }
936
+ ],
937
+ "title": "Start Time"
938
+ }
939
+ },
940
+ {
941
+ "name": "end_time",
942
+ "in": "query",
943
+ "required": false,
944
+ "schema": {
945
+ "anyOf": [
946
+ {
947
+ "type": "string"
948
+ },
949
+ {
950
+ "type": "null"
951
+ }
952
+ ],
953
+ "title": "End Time"
954
+ }
955
+ },
956
+ {
957
+ "name": "agent_type",
958
+ "in": "query",
959
+ "required": false,
960
+ "schema": {
961
+ "anyOf": [
962
+ {
963
+ "type": "string"
964
+ },
965
+ {
966
+ "type": "null"
967
+ }
968
+ ],
969
+ "title": "Agent Type"
970
+ }
971
+ },
972
+ {
973
+ "name": "agent_id",
974
+ "in": "query",
975
+ "required": false,
976
+ "schema": {
977
+ "anyOf": [
978
+ {
979
+ "type": "string"
980
+ },
981
+ {
982
+ "type": "null"
983
+ }
984
+ ],
985
+ "title": "Agent Id"
986
+ }
987
+ },
988
+ {
989
+ "name": "prompt_id",
990
+ "in": "query",
991
+ "required": false,
992
+ "schema": {
993
+ "anyOf": [
994
+ {
995
+ "type": "string"
996
+ },
997
+ {
998
+ "type": "null"
999
+ }
1000
+ ],
1001
+ "title": "Prompt Id"
1002
+ }
1003
+ },
1004
+ {
1005
+ "name": "call_id",
1006
+ "in": "query",
1007
+ "required": false,
1008
+ "schema": {
1009
+ "anyOf": [
1010
+ {
1011
+ "type": "string"
1012
+ },
1013
+ {
1014
+ "type": "null"
1015
+ }
1016
+ ],
1017
+ "title": "Call Id"
1018
+ }
1019
+ },
1020
+ {
1021
+ "name": "source",
1022
+ "in": "query",
1023
+ "required": false,
1024
+ "schema": {
1025
+ "anyOf": [
1026
+ {
1027
+ "type": "string"
1028
+ },
1029
+ {
1030
+ "type": "null"
1031
+ }
1032
+ ],
1033
+ "title": "Source"
1034
+ }
1035
+ },
1036
+ {
1037
+ "name": "target",
1038
+ "in": "query",
1039
+ "required": false,
1040
+ "schema": {
1041
+ "anyOf": [
1042
+ {
1043
+ "type": "string"
1044
+ },
1045
+ {
1046
+ "type": "null"
1047
+ }
1048
+ ],
1049
+ "title": "Target"
1050
+ }
1051
+ },
1052
+ {
1053
+ "name": "is_legacy",
1054
+ "in": "query",
1055
+ "required": false,
1056
+ "schema": {
1057
+ "anyOf": [
1058
+ {
1059
+ "type": "boolean"
1060
+ },
1061
+ {
1062
+ "type": "null"
1063
+ }
1064
+ ],
1065
+ "title": "Is Legacy"
1066
+ }
1067
+ },
1068
+ {
1069
+ "name": "is_test",
1070
+ "in": "query",
1071
+ "required": false,
1072
+ "schema": {
1073
+ "anyOf": [
1074
+ {
1075
+ "type": "boolean"
1076
+ },
1077
+ {
1078
+ "type": "null"
1079
+ }
1080
+ ],
1081
+ "title": "Is Test"
1082
+ }
1083
+ }
1084
+ ],
1085
+ "responses": {
1086
+ "200": {
1087
+ "description": "Successful Response",
1088
+ "content": {
1089
+ "application/json": {
1090
+ "schema": {
1091
+ "$ref": "#/components/schemas/ConversationListResponse"
1092
+ }
1093
+ }
1094
+ }
1095
+ },
1096
+ "422": {
1097
+ "description": "Validation Error",
1098
+ "content": {
1099
+ "application/json": {
1100
+ "schema": {
1101
+ "$ref": "#/components/schemas/HTTPValidationError"
1102
+ }
1103
+ }
1104
+ }
1105
+ }
1106
+ }
1107
+ }
1108
+ },
1109
+ "/api/v1/conversations/{conversation_id}": {
1110
+ "get": {
1111
+ "tags": [
1112
+ "conversations"
1113
+ ],
1114
+ "summary": "Get Conversation By Id",
1115
+ "operationId": "conversation_get_by_id",
1116
+ "security": [
1117
+ {
1118
+ "APIKeyHeader": []
1119
+ }
1120
+ ],
1121
+ "parameters": [
1122
+ {
1123
+ "name": "conversation_id",
1124
+ "in": "path",
1125
+ "required": true,
1126
+ "schema": {
1127
+ "type": "string",
1128
+ "title": "Conversation Id"
1129
+ }
1130
+ }
1131
+ ],
1132
+ "responses": {
1133
+ "200": {
1134
+ "description": "Successful Response",
1135
+ "content": {
1136
+ "application/json": {
1137
+ "schema": {
1138
+ "$ref": "#/components/schemas/ConversationTranscriptionResponse"
1139
+ }
1140
+ }
1141
+ }
1142
+ },
1143
+ "422": {
1144
+ "description": "Validation Error",
1145
+ "content": {
1146
+ "application/json": {
1147
+ "schema": {
1148
+ "$ref": "#/components/schemas/HTTPValidationError"
1149
+ }
1150
+ }
1151
+ }
1152
+ }
1153
+ }
1154
+ }
1155
+ },
1156
+ "/api/v1/dashboards/total_call_volume_by_weekday": {
1157
+ "get": {
1158
+ "tags": [
1159
+ "dashboards"
1160
+ ],
1161
+ "summary": "Get Total Call Volume By Weekday",
1162
+ "description": "Get total call volume by weekday.",
1163
+ "operationId": "total_call_volume_by_weekday",
1164
+ "responses": {
1165
+ "200": {
1166
+ "description": "Successful Response",
1167
+ "content": {
1168
+ "application/json": {
1169
+ "schema": {
1170
+ "type": "object",
1171
+ "title": "Response Total Call Volume By Weekday"
1172
+ }
1173
+ }
1174
+ }
1175
+ }
1176
+ },
1177
+ "security": [
1178
+ {
1179
+ "APIKeyHeader": []
1180
+ }
1181
+ ]
1182
+ }
1183
+ },
1184
+ "/api/v1/dashboards/get_total_call_volume_by_hour": {
1185
+ "get": {
1186
+ "tags": [
1187
+ "dashboards"
1188
+ ],
1189
+ "summary": "Get Total Call Volume By Hour",
1190
+ "description": "Get total call volume by hour.",
1191
+ "operationId": "get_total_call_volume_by_hour",
1192
+ "responses": {
1193
+ "200": {
1194
+ "description": "Successful Response",
1195
+ "content": {
1196
+ "application/json": {
1197
+ "schema": {
1198
+ "type": "object",
1199
+ "title": "Response Get Total Call Volume By Hour"
1200
+ }
1201
+ }
1202
+ }
1203
+ }
1204
+ },
1205
+ "security": [
1206
+ {
1207
+ "APIKeyHeader": []
1208
+ }
1209
+ ]
1210
+ }
1211
+ },
1212
+ "/api/v1/dashboards/get_weekly_call_volume_by_weekday": {
1213
+ "get": {
1214
+ "tags": [
1215
+ "dashboards"
1216
+ ],
1217
+ "summary": "Get Weekly Call Volume By Weekday",
1218
+ "description": "Get weekly call volume by weekday.",
1219
+ "operationId": "get_weekly_call_volume_by_weekday",
1220
+ "responses": {
1221
+ "200": {
1222
+ "description": "Successful Response",
1223
+ "content": {
1224
+ "application/json": {
1225
+ "schema": {
1226
+ "type": "object",
1227
+ "title": "Response Get Weekly Call Volume By Weekday"
1228
+ }
1229
+ }
1230
+ }
1231
+ }
1232
+ },
1233
+ "security": [
1234
+ {
1235
+ "APIKeyHeader": []
1236
+ }
1237
+ ]
1238
+ }
1239
+ },
1240
+ "/api/v1/dashboards/get_daily_call_volume_by_hour": {
1241
+ "get": {
1242
+ "tags": [
1243
+ "dashboards"
1244
+ ],
1245
+ "summary": "Get Daily Call Volume By Hour",
1246
+ "description": "Get daily call volume by hour.",
1247
+ "operationId": "get_daily_call_volume_by_hour",
1248
+ "responses": {
1249
+ "200": {
1250
+ "description": "Successful Response",
1251
+ "content": {
1252
+ "application/json": {
1253
+ "schema": {
1254
+ "type": "object",
1255
+ "title": "Response Get Daily Call Volume By Hour"
1256
+ }
1257
+ }
1258
+ }
1259
+ }
1260
+ },
1261
+ "security": [
1262
+ {
1263
+ "APIKeyHeader": []
1264
+ }
1265
+ ]
1266
+ }
1267
+ },
1268
+ "/api/v1/dashboards/get_monthly_call_volume_by_week": {
1269
+ "get": {
1270
+ "tags": [
1271
+ "dashboards"
1272
+ ],
1273
+ "summary": "Get Monthly Call Volume By Week",
1274
+ "description": "Get monthly cal volume by week.",
1275
+ "operationId": "get_monthly_call_volume_by_week",
1276
+ "responses": {
1277
+ "200": {
1278
+ "description": "Successful Response",
1279
+ "content": {
1280
+ "application/json": {
1281
+ "schema": {
1282
+ "type": "object",
1283
+ "title": "Response Get Monthly Call Volume By Week"
1284
+ }
1285
+ }
1286
+ }
1287
+ }
1288
+ },
1289
+ "security": [
1290
+ {
1291
+ "APIKeyHeader": []
1292
+ }
1293
+ ]
1294
+ }
1295
+ },
1296
+ "/api/v1/dashboards/get_monthly_call_volume_by_day": {
1297
+ "get": {
1298
+ "tags": [
1299
+ "dashboards"
1300
+ ],
1301
+ "summary": "Get Monthly Call Volume By Day",
1302
+ "description": "Get monthly call volume by day.",
1303
+ "operationId": "get_monthly_call_volume_by_day",
1304
+ "responses": {
1305
+ "200": {
1306
+ "description": "Successful Response",
1307
+ "content": {
1308
+ "application/json": {
1309
+ "schema": {
1310
+ "type": "object",
1311
+ "title": "Response Get Monthly Call Volume By Day"
1312
+ }
1313
+ }
1314
+ }
1315
+ }
1316
+ },
1317
+ "security": [
1318
+ {
1319
+ "APIKeyHeader": []
1320
+ }
1321
+ ]
1322
+ }
1323
+ },
1324
+ "/api/v1/dashboards/get_session_summary": {
1325
+ "get": {
1326
+ "tags": [
1327
+ "dashboards"
1328
+ ],
1329
+ "summary": "Get Session Summary",
1330
+ "description": "Get session summary data",
1331
+ "operationId": "get_session_summary",
1332
+ "security": [
1333
+ {
1334
+ "APIKeyHeader": []
1335
+ }
1336
+ ],
1337
+ "parameters": [
1338
+ {
1339
+ "name": "page",
1340
+ "in": "query",
1341
+ "required": false,
1342
+ "schema": {
1343
+ "type": "integer",
1344
+ "default": 0,
1345
+ "title": "Page"
1346
+ }
1347
+ },
1348
+ {
1349
+ "name": "limit",
1350
+ "in": "query",
1351
+ "required": false,
1352
+ "schema": {
1353
+ "type": "integer",
1354
+ "default": 100,
1355
+ "title": "Limit"
1356
+ }
1357
+ },
1358
+ {
1359
+ "name": "start_date",
1360
+ "in": "query",
1361
+ "required": false,
1362
+ "schema": {
1363
+ "anyOf": [
1364
+ {
1365
+ "type": "string"
1366
+ },
1367
+ {
1368
+ "type": "null"
1369
+ }
1370
+ ],
1371
+ "title": "Start Date"
1372
+ }
1373
+ },
1374
+ {
1375
+ "name": "end_date",
1376
+ "in": "query",
1377
+ "required": false,
1378
+ "schema": {
1379
+ "anyOf": [
1380
+ {
1381
+ "type": "string"
1382
+ },
1383
+ {
1384
+ "type": "null"
1385
+ }
1386
+ ],
1387
+ "title": "End Date"
1388
+ }
1389
+ },
1390
+ {
1391
+ "name": "order_by",
1392
+ "in": "query",
1393
+ "required": false,
1394
+ "schema": {
1395
+ "anyOf": [
1396
+ {
1397
+ "type": "string"
1398
+ },
1399
+ {
1400
+ "type": "null"
1401
+ }
1402
+ ],
1403
+ "title": "Order By"
1404
+ }
1405
+ },
1406
+ {
1407
+ "name": "agent_id",
1408
+ "in": "query",
1409
+ "required": false,
1410
+ "schema": {
1411
+ "anyOf": [
1412
+ {
1413
+ "type": "integer"
1414
+ },
1415
+ {
1416
+ "type": "null"
1417
+ }
1418
+ ],
1419
+ "title": "Agent Id"
1420
+ }
1421
+ }
1422
+ ],
1423
+ "responses": {
1424
+ "200": {
1425
+ "description": "Successful Response",
1426
+ "content": {
1427
+ "application/json": {
1428
+ "schema": {
1429
+ "type": "object",
1430
+ "title": "Response Get Session Summary"
1431
+ }
1432
+ }
1433
+ }
1434
+ },
1435
+ "422": {
1436
+ "description": "Validation Error",
1437
+ "content": {
1438
+ "application/json": {
1439
+ "schema": {
1440
+ "$ref": "#/components/schemas/HTTPValidationError"
1441
+ }
1442
+ }
1443
+ }
1444
+ }
1445
+ }
1446
+ }
1447
+ },
1448
+ "/api/v1/dashboards/get_agents": {
1449
+ "get": {
1450
+ "tags": [
1451
+ "dashboards"
1452
+ ],
1453
+ "summary": "Get Agents",
1454
+ "description": "Get list of agents for session summary dropdown",
1455
+ "operationId": "get_session_agents",
1456
+ "responses": {
1457
+ "200": {
1458
+ "description": "Successful Response",
1459
+ "content": {
1460
+ "application/json": {
1461
+ "schema": {
1462
+ "type": "object",
1463
+ "title": "Response Get Session Agents"
1464
+ }
1465
+ }
1466
+ }
1467
+ }
1468
+ },
1469
+ "security": [
1470
+ {
1471
+ "APIKeyHeader": []
1472
+ }
1473
+ ]
1474
+ }
1475
+ },
1476
+ "/api/v1/events/": {
1477
+ "get": {
1478
+ "tags": [
1479
+ "events"
1480
+ ],
1481
+ "summary": "Events List",
1482
+ "operationId": "events_list",
1483
+ "security": [
1484
+ {
1485
+ "APIKeyHeader": []
1486
+ }
1487
+ ],
1488
+ "parameters": [
1489
+ {
1490
+ "name": "page",
1491
+ "in": "query",
1492
+ "required": false,
1493
+ "schema": {
1494
+ "type": "integer",
1495
+ "default": 0,
1496
+ "title": "Page"
1497
+ }
1498
+ },
1499
+ {
1500
+ "name": "limit",
1501
+ "in": "query",
1502
+ "required": false,
1503
+ "schema": {
1504
+ "type": "integer",
1505
+ "default": 100,
1506
+ "title": "Limit"
1507
+ }
1508
+ },
1509
+ {
1510
+ "name": "order_by",
1511
+ "in": "query",
1512
+ "required": false,
1513
+ "schema": {
1514
+ "anyOf": [
1515
+ {
1516
+ "type": "string"
1517
+ },
1518
+ {
1519
+ "type": "null"
1520
+ }
1521
+ ],
1522
+ "title": "Order By"
1523
+ }
1524
+ },
1525
+ {
1526
+ "name": "type",
1527
+ "in": "query",
1528
+ "required": false,
1529
+ "schema": {
1530
+ "anyOf": [
1531
+ {
1532
+ "type": "string"
1533
+ },
1534
+ {
1535
+ "type": "null"
1536
+ }
1537
+ ],
1538
+ "title": "Type"
1539
+ }
1540
+ },
1541
+ {
1542
+ "name": "conversation_id",
1543
+ "in": "query",
1544
+ "required": false,
1545
+ "schema": {
1546
+ "anyOf": [
1547
+ {
1548
+ "type": "string"
1549
+ },
1550
+ {
1551
+ "type": "null"
1552
+ }
1553
+ ],
1554
+ "title": "Conversation Id"
1555
+ }
1556
+ },
1557
+ {
1558
+ "name": "start_time",
1559
+ "in": "query",
1560
+ "required": false,
1561
+ "schema": {
1562
+ "anyOf": [
1563
+ {
1564
+ "type": "string",
1565
+ "format": "date-time"
1566
+ },
1567
+ {
1568
+ "type": "null"
1569
+ }
1570
+ ],
1571
+ "title": "Start Time"
1572
+ }
1573
+ },
1574
+ {
1575
+ "name": "end_time",
1576
+ "in": "query",
1577
+ "required": false,
1578
+ "schema": {
1579
+ "anyOf": [
1580
+ {
1581
+ "type": "string",
1582
+ "format": "date-time"
1583
+ },
1584
+ {
1585
+ "type": "null"
1586
+ }
1587
+ ],
1588
+ "title": "End Time"
1589
+ }
1590
+ }
1591
+ ],
1592
+ "responses": {
1593
+ "200": {
1594
+ "description": "Successful Response",
1595
+ "content": {
1596
+ "application/json": {
1597
+ "schema": {
1598
+ "$ref": "#/components/schemas/EventListResponse"
1599
+ }
1600
+ }
1601
+ }
1602
+ },
1603
+ "422": {
1604
+ "description": "Validation Error",
1605
+ "content": {
1606
+ "application/json": {
1607
+ "schema": {
1608
+ "$ref": "#/components/schemas/HTTPValidationError"
1609
+ }
1610
+ }
1611
+ }
1612
+ }
1613
+ }
1614
+ }
1615
+ },
1616
+ "/api/v1/greetings/": {
1617
+ "get": {
1618
+ "tags": [
1619
+ "greetings"
1620
+ ],
1621
+ "summary": "Greetings List",
1622
+ "description": "List the existing greetings",
1623
+ "operationId": "greetings_list",
1624
+ "security": [
1625
+ {
1626
+ "APIKeyHeader": []
1627
+ }
1628
+ ],
1629
+ "parameters": [
1630
+ {
1631
+ "name": "page",
1632
+ "in": "query",
1633
+ "required": false,
1634
+ "schema": {
1635
+ "anyOf": [
1636
+ {
1637
+ "type": "integer",
1638
+ "minimum": 0
1639
+ },
1640
+ {
1641
+ "type": "null"
1642
+ }
1643
+ ],
1644
+ "default": 0,
1645
+ "title": "Page"
1646
+ }
1647
+ },
1648
+ {
1649
+ "name": "limit",
1650
+ "in": "query",
1651
+ "required": false,
1652
+ "schema": {
1653
+ "type": "integer",
1654
+ "minimum": -1,
1655
+ "default": -1,
1656
+ "title": "Limit"
1657
+ }
1658
+ }
1659
+ ],
1660
+ "responses": {
1661
+ "200": {
1662
+ "description": "Successful Response",
1663
+ "content": {
1664
+ "application/json": {
1665
+ "schema": {
1666
+ "$ref": "#/components/schemas/GreetingListResponse"
1667
+ }
1668
+ }
1669
+ }
1670
+ },
1671
+ "422": {
1672
+ "description": "Validation Error",
1673
+ "content": {
1674
+ "application/json": {
1675
+ "schema": {
1676
+ "$ref": "#/components/schemas/HTTPValidationError"
1677
+ }
1678
+ }
1679
+ }
1680
+ }
1681
+ }
1682
+ },
1683
+ "post": {
1684
+ "tags": [
1685
+ "greetings"
1686
+ ],
1687
+ "summary": "Create Greeting",
1688
+ "description": "Create a new greeting",
1689
+ "operationId": "greetings_create",
1690
+ "security": [
1691
+ {
1692
+ "APIKeyHeader": []
1693
+ }
1694
+ ],
1695
+ "requestBody": {
1696
+ "required": true,
1697
+ "content": {
1698
+ "application/json": {
1699
+ "schema": {
1700
+ "$ref": "#/components/schemas/GreetingCreate"
1701
+ }
1702
+ }
1703
+ }
1704
+ },
1705
+ "responses": {
1706
+ "200": {
1707
+ "description": "Successful Response",
1708
+ "content": {
1709
+ "application/json": {
1710
+ "schema": {
1711
+ "$ref": "#/components/schemas/GreetingResponse"
1712
+ }
1713
+ }
1714
+ }
1715
+ },
1716
+ "422": {
1717
+ "description": "Validation Error",
1718
+ "content": {
1719
+ "application/json": {
1720
+ "schema": {
1721
+ "$ref": "#/components/schemas/HTTPValidationError"
1722
+ }
1723
+ }
1724
+ }
1725
+ }
1726
+ }
1727
+ },
1728
+ "put": {
1729
+ "tags": [
1730
+ "greetings"
1731
+ ],
1732
+ "summary": "Update Greeting",
1733
+ "description": "Update a greeting",
1734
+ "operationId": "greetings_update",
1735
+ "security": [
1736
+ {
1737
+ "APIKeyHeader": []
1738
+ }
1739
+ ],
1740
+ "requestBody": {
1741
+ "required": true,
1742
+ "content": {
1743
+ "application/json": {
1744
+ "schema": {
1745
+ "$ref": "#/components/schemas/Greeting"
1746
+ }
1747
+ }
1748
+ }
1749
+ },
1750
+ "responses": {
1751
+ "200": {
1752
+ "description": "Successful Response",
1753
+ "content": {
1754
+ "application/json": {
1755
+ "schema": {
1756
+ "$ref": "#/components/schemas/GreetingResponse"
1757
+ }
1758
+ }
1759
+ }
1760
+ },
1761
+ "422": {
1762
+ "description": "Validation Error",
1763
+ "content": {
1764
+ "application/json": {
1765
+ "schema": {
1766
+ "$ref": "#/components/schemas/HTTPValidationError"
1767
+ }
1768
+ }
1769
+ }
1770
+ }
1771
+ }
1772
+ }
1773
+ },
1774
+ "/api/v1/greetings/{greeting_id}": {
1775
+ "get": {
1776
+ "tags": [
1777
+ "greetings"
1778
+ ],
1779
+ "summary": "Get Greeting By Id",
1780
+ "description": "Get the greeting by its ID",
1781
+ "operationId": "greetings_get_by_id",
1782
+ "security": [
1783
+ {
1784
+ "APIKeyHeader": []
1785
+ }
1786
+ ],
1787
+ "parameters": [
1788
+ {
1789
+ "name": "greeting_id",
1790
+ "in": "path",
1791
+ "required": true,
1792
+ "schema": {
1793
+ "type": "integer",
1794
+ "title": "Greeting Id"
1795
+ }
1796
+ }
1797
+ ],
1798
+ "responses": {
1799
+ "200": {
1800
+ "description": "Successful Response",
1801
+ "content": {
1802
+ "application/json": {
1803
+ "schema": {
1804
+ "$ref": "#/components/schemas/GreetingResponse"
1805
+ }
1806
+ }
1807
+ }
1808
+ },
1809
+ "422": {
1810
+ "description": "Validation Error",
1811
+ "content": {
1812
+ "application/json": {
1813
+ "schema": {
1814
+ "$ref": "#/components/schemas/HTTPValidationError"
1815
+ }
1816
+ }
1817
+ }
1818
+ }
1819
+ }
1820
+ },
1821
+ "delete": {
1822
+ "tags": [
1823
+ "greetings"
1824
+ ],
1825
+ "summary": "Delete Greeting",
1826
+ "description": "Delete greeting by ID",
1827
+ "operationId": "greetings_delete",
1828
+ "security": [
1829
+ {
1830
+ "APIKeyHeader": []
1831
+ }
1832
+ ],
1833
+ "parameters": [
1834
+ {
1835
+ "name": "greeting_id",
1836
+ "in": "path",
1837
+ "required": true,
1838
+ "schema": {
1839
+ "type": "integer",
1840
+ "title": "Greeting Id"
1841
+ }
1842
+ },
1843
+ {
1844
+ "name": "reason",
1845
+ "in": "query",
1846
+ "required": true,
1847
+ "schema": {
1848
+ "type": "string",
1849
+ "title": "Reason"
1850
+ }
1851
+ }
1852
+ ],
1853
+ "responses": {
1854
+ "200": {
1855
+ "description": "Successful Response",
1856
+ "content": {
1857
+ "application/json": {
1858
+ "schema": {}
1859
+ }
1860
+ }
1861
+ },
1862
+ "422": {
1863
+ "description": "Validation Error",
1864
+ "content": {
1865
+ "application/json": {
1866
+ "schema": {
1867
+ "$ref": "#/components/schemas/HTTPValidationError"
1868
+ }
1869
+ }
1870
+ }
1871
+ }
1872
+ }
1873
+ }
1874
+ },
1875
+ "/api/v1/prompts/": {
1876
+ "get": {
1877
+ "tags": [
1878
+ "prompts"
1879
+ ],
1880
+ "summary": "Prompt List",
1881
+ "description": "List the existing prompts",
1882
+ "operationId": "prompts_list",
1883
+ "security": [
1884
+ {
1885
+ "APIKeyHeader": []
1886
+ }
1887
+ ],
1888
+ "parameters": [
1889
+ {
1890
+ "name": "filter_name",
1891
+ "in": "query",
1892
+ "required": false,
1893
+ "schema": {
1894
+ "anyOf": [
1895
+ {
1896
+ "type": "string"
1897
+ },
1898
+ {
1899
+ "type": "null"
1900
+ }
1901
+ ],
1902
+ "title": "Filter Name"
1903
+ }
1904
+ },
1905
+ {
1906
+ "name": "page",
1907
+ "in": "query",
1908
+ "required": false,
1909
+ "schema": {
1910
+ "anyOf": [
1911
+ {
1912
+ "type": "integer",
1913
+ "minimum": 0
1914
+ },
1915
+ {
1916
+ "type": "null"
1917
+ }
1918
+ ],
1919
+ "default": 0,
1920
+ "title": "Page"
1921
+ }
1922
+ },
1923
+ {
1924
+ "name": "limit",
1925
+ "in": "query",
1926
+ "required": false,
1927
+ "schema": {
1928
+ "type": "integer",
1929
+ "minimum": -1,
1930
+ "default": -1,
1931
+ "title": "Limit"
1932
+ }
1933
+ }
1934
+ ],
1935
+ "responses": {
1936
+ "200": {
1937
+ "description": "Successful Response",
1938
+ "content": {
1939
+ "application/json": {
1940
+ "schema": {
1941
+ "$ref": "#/components/schemas/PromptListResponse"
1942
+ }
1943
+ }
1944
+ }
1945
+ },
1946
+ "422": {
1947
+ "description": "Validation Error",
1948
+ "content": {
1949
+ "application/json": {
1950
+ "schema": {
1951
+ "$ref": "#/components/schemas/HTTPValidationError"
1952
+ }
1953
+ }
1954
+ }
1955
+ }
1956
+ }
1957
+ },
1958
+ "post": {
1959
+ "tags": [
1960
+ "prompts"
1961
+ ],
1962
+ "summary": "Create Prompt",
1963
+ "description": "Create a new prompt",
1964
+ "operationId": "prompts_create",
1965
+ "security": [
1966
+ {
1967
+ "APIKeyHeader": []
1968
+ }
1969
+ ],
1970
+ "requestBody": {
1971
+ "required": true,
1972
+ "content": {
1973
+ "application/json": {
1974
+ "schema": {
1975
+ "$ref": "#/components/schemas/PromptCreate"
1976
+ }
1977
+ }
1978
+ }
1979
+ },
1980
+ "responses": {
1981
+ "200": {
1982
+ "description": "Successful Response",
1983
+ "content": {
1984
+ "application/json": {
1985
+ "schema": {
1986
+ "$ref": "#/components/schemas/Prompt"
1987
+ }
1988
+ }
1989
+ }
1990
+ },
1991
+ "422": {
1992
+ "description": "Validation Error",
1993
+ "content": {
1994
+ "application/json": {
1995
+ "schema": {
1996
+ "$ref": "#/components/schemas/HTTPValidationError"
1997
+ }
1998
+ }
1999
+ }
2000
+ }
2001
+ }
2002
+ },
2003
+ "put": {
2004
+ "tags": [
2005
+ "prompts"
2006
+ ],
2007
+ "summary": "Update Prompt",
2008
+ "description": "Update an existing prompt",
2009
+ "operationId": "prompts_update",
2010
+ "security": [
2011
+ {
2012
+ "APIKeyHeader": []
2013
+ }
2014
+ ],
2015
+ "requestBody": {
2016
+ "required": true,
2017
+ "content": {
2018
+ "application/json": {
2019
+ "schema": {
2020
+ "$ref": "#/components/schemas/Prompt"
2021
+ }
2022
+ }
2023
+ }
2024
+ },
2025
+ "responses": {
2026
+ "200": {
2027
+ "description": "Successful Response",
2028
+ "content": {
2029
+ "application/json": {
2030
+ "schema": {
2031
+ "$ref": "#/components/schemas/Prompt"
2032
+ }
2033
+ }
2034
+ }
2035
+ },
2036
+ "422": {
2037
+ "description": "Validation Error",
2038
+ "content": {
2039
+ "application/json": {
2040
+ "schema": {
2041
+ "$ref": "#/components/schemas/HTTPValidationError"
2042
+ }
2043
+ }
2044
+ }
2045
+ }
2046
+ }
2047
+ }
2048
+ },
2049
+ "/api/v1/prompts/{prompt_id}": {
2050
+ "get": {
2051
+ "tags": [
2052
+ "prompts"
2053
+ ],
2054
+ "summary": "Get Prompt By Id",
2055
+ "description": "Get a prompt by ID",
2056
+ "operationId": "prompts_get_by_id",
2057
+ "security": [
2058
+ {
2059
+ "APIKeyHeader": []
2060
+ }
2061
+ ],
2062
+ "parameters": [
2063
+ {
2064
+ "name": "prompt_id",
2065
+ "in": "path",
2066
+ "required": true,
2067
+ "schema": {
2068
+ "type": "integer",
2069
+ "title": "Prompt Id"
2070
+ }
2071
+ }
2072
+ ],
2073
+ "responses": {
2074
+ "200": {
2075
+ "description": "Successful Response",
2076
+ "content": {
2077
+ "application/json": {
2078
+ "schema": {
2079
+ "$ref": "#/components/schemas/Prompt"
2080
+ }
2081
+ }
2082
+ }
2083
+ },
2084
+ "422": {
2085
+ "description": "Validation Error",
2086
+ "content": {
2087
+ "application/json": {
2088
+ "schema": {
2089
+ "$ref": "#/components/schemas/HTTPValidationError"
2090
+ }
2091
+ }
2092
+ }
2093
+ }
2094
+ }
2095
+ },
2096
+ "delete": {
2097
+ "tags": [
2098
+ "prompts"
2099
+ ],
2100
+ "summary": "Delete Prompt",
2101
+ "description": "Delete an prompt by ID",
2102
+ "operationId": "prompts_delete",
2103
+ "security": [
2104
+ {
2105
+ "APIKeyHeader": []
2106
+ }
2107
+ ],
2108
+ "parameters": [
2109
+ {
2110
+ "name": "prompt_id",
2111
+ "in": "path",
2112
+ "required": true,
2113
+ "schema": {
2114
+ "type": "integer",
2115
+ "title": "Prompt Id"
2116
+ }
2117
+ },
2118
+ {
2119
+ "name": "reason",
2120
+ "in": "query",
2121
+ "required": true,
2122
+ "schema": {
2123
+ "type": "string",
2124
+ "title": "Reason"
2125
+ }
2126
+ }
2127
+ ],
2128
+ "responses": {
2129
+ "200": {
2130
+ "description": "Successful Response",
2131
+ "content": {
2132
+ "application/json": {
2133
+ "schema": {}
2134
+ }
2135
+ }
2136
+ },
2137
+ "422": {
2138
+ "description": "Validation Error",
2139
+ "content": {
2140
+ "application/json": {
2141
+ "schema": {
2142
+ "$ref": "#/components/schemas/HTTPValidationError"
2143
+ }
2144
+ }
2145
+ }
2146
+ }
2147
+ }
2148
+ }
2149
+ },
2150
+ "/api/v1/sessions/": {
2151
+ "get": {
2152
+ "tags": [
2153
+ "sessions"
2154
+ ],
2155
+ "summary": "Sessions List",
2156
+ "operationId": "sessions_list",
2157
+ "security": [
2158
+ {
2159
+ "APIKeyHeader": []
2160
+ }
2161
+ ],
2162
+ "parameters": [
2163
+ {
2164
+ "name": "page",
2165
+ "in": "query",
2166
+ "required": false,
2167
+ "schema": {
2168
+ "type": "integer",
2169
+ "default": 0,
2170
+ "title": "Page"
2171
+ }
2172
+ },
2173
+ {
2174
+ "name": "limit",
2175
+ "in": "query",
2176
+ "required": false,
2177
+ "schema": {
2178
+ "type": "integer",
2179
+ "default": 100,
2180
+ "title": "Limit"
2181
+ }
2182
+ },
2183
+ {
2184
+ "name": "order_by",
2185
+ "in": "query",
2186
+ "required": false,
2187
+ "schema": {
2188
+ "anyOf": [
2189
+ {
2190
+ "type": "string"
2191
+ },
2192
+ {
2193
+ "type": "null"
2194
+ }
2195
+ ],
2196
+ "title": "Order By"
2197
+ }
2198
+ },
2199
+ {
2200
+ "name": "channel_type",
2201
+ "in": "query",
2202
+ "required": false,
2203
+ "schema": {
2204
+ "anyOf": [
2205
+ {
2206
+ "type": "string"
2207
+ },
2208
+ {
2209
+ "type": "null"
2210
+ }
2211
+ ],
2212
+ "title": "Channel Type"
2213
+ }
2214
+ },
2215
+ {
2216
+ "name": "channel_service",
2217
+ "in": "query",
2218
+ "required": false,
2219
+ "schema": {
2220
+ "anyOf": [
2221
+ {
2222
+ "type": "string"
2223
+ },
2224
+ {
2225
+ "type": "null"
2226
+ }
2227
+ ],
2228
+ "title": "Channel Service"
2229
+ }
2230
+ },
2231
+ {
2232
+ "name": "start_time",
2233
+ "in": "query",
2234
+ "required": false,
2235
+ "schema": {
2236
+ "anyOf": [
2237
+ {
2238
+ "type": "string",
2239
+ "format": "date-time"
2240
+ },
2241
+ {
2242
+ "type": "null"
2243
+ }
2244
+ ],
2245
+ "title": "Start Time"
2246
+ }
2247
+ },
2248
+ {
2249
+ "name": "end_time",
2250
+ "in": "query",
2251
+ "required": false,
2252
+ "schema": {
2253
+ "anyOf": [
2254
+ {
2255
+ "type": "string",
2256
+ "format": "date-time"
2257
+ },
2258
+ {
2259
+ "type": "null"
2260
+ }
2261
+ ],
2262
+ "title": "End Time"
2263
+ }
2264
+ },
2265
+ {
2266
+ "name": "include_legacy",
2267
+ "in": "query",
2268
+ "required": false,
2269
+ "schema": {
2270
+ "type": "boolean",
2271
+ "default": false,
2272
+ "title": "Include Legacy"
2273
+ }
2274
+ },
2275
+ {
2276
+ "name": "include_test",
2277
+ "in": "query",
2278
+ "required": false,
2279
+ "schema": {
2280
+ "type": "boolean",
2281
+ "default": false,
2282
+ "title": "Include Test"
2283
+ }
2284
+ }
2285
+ ],
2286
+ "responses": {
2287
+ "200": {
2288
+ "description": "Successful Response",
2289
+ "content": {
2290
+ "application/json": {
2291
+ "schema": {
2292
+ "$ref": "#/components/schemas/SessionListResponse"
2293
+ }
2294
+ }
2295
+ }
2296
+ },
2297
+ "422": {
2298
+ "description": "Validation Error",
2299
+ "content": {
2300
+ "application/json": {
2301
+ "schema": {
2302
+ "$ref": "#/components/schemas/HTTPValidationError"
2303
+ }
2304
+ }
2305
+ }
2306
+ }
2307
+ }
2308
+ }
2309
+ },
2310
+ "/api/v1/tools/": {
2311
+ "get": {
2312
+ "tags": [
2313
+ "tools"
2314
+ ],
2315
+ "summary": "Tool List",
2316
+ "description": "List the existing agents",
2317
+ "operationId": "tool_list",
2318
+ "security": [
2319
+ {
2320
+ "APIKeyHeader": []
2321
+ }
2322
+ ],
2323
+ "parameters": [
2324
+ {
2325
+ "name": "page",
2326
+ "in": "query",
2327
+ "required": false,
2328
+ "schema": {
2329
+ "anyOf": [
2330
+ {
2331
+ "type": "integer",
2332
+ "minimum": 0
2333
+ },
2334
+ {
2335
+ "type": "null"
2336
+ }
2337
+ ],
2338
+ "default": 0,
2339
+ "title": "Page"
2340
+ }
2341
+ },
2342
+ {
2343
+ "name": "limit",
2344
+ "in": "query",
2345
+ "required": false,
2346
+ "schema": {
2347
+ "type": "integer",
2348
+ "minimum": -1,
2349
+ "default": -1,
2350
+ "title": "Limit"
2351
+ }
2352
+ }
2353
+ ],
2354
+ "responses": {
2355
+ "200": {
2356
+ "description": "Successful Response",
2357
+ "content": {
2358
+ "application/json": {
2359
+ "schema": {
2360
+ "$ref": "#/components/schemas/ToolListResponse"
2361
+ }
2362
+ }
2363
+ }
2364
+ },
2365
+ "422": {
2366
+ "description": "Validation Error",
2367
+ "content": {
2368
+ "application/json": {
2369
+ "schema": {
2370
+ "$ref": "#/components/schemas/HTTPValidationError"
2371
+ }
2372
+ }
2373
+ }
2374
+ }
2375
+ }
2376
+ }
2377
+ },
2378
+ "/api/v1/tools/{tool_name}": {
2379
+ "get": {
2380
+ "tags": [
2381
+ "tools"
2382
+ ],
2383
+ "summary": "Tool Info",
2384
+ "description": "Get the details of a specific tool",
2385
+ "operationId": "tool_get_by_name",
2386
+ "security": [
2387
+ {
2388
+ "APIKeyHeader": []
2389
+ }
2390
+ ],
2391
+ "parameters": [
2392
+ {
2393
+ "name": "tool_name",
2394
+ "in": "path",
2395
+ "required": true,
2396
+ "schema": {
2397
+ "type": "string",
2398
+ "title": "Tool Name"
2399
+ }
2400
+ }
2401
+ ],
2402
+ "responses": {
2403
+ "200": {
2404
+ "description": "Successful Response",
2405
+ "content": {
2406
+ "application/json": {
2407
+ "schema": {
2408
+ "$ref": "#/components/schemas/ToolDetailResponse"
2409
+ }
2410
+ }
2411
+ }
2412
+ },
2413
+ "422": {
2414
+ "description": "Validation Error",
2415
+ "content": {
2416
+ "application/json": {
2417
+ "schema": {
2418
+ "$ref": "#/components/schemas/HTTPValidationError"
2419
+ }
2420
+ }
2421
+ }
2422
+ }
2423
+ }
2424
+ }
2425
+ },
2426
+ "/api/v1/organizations/": {
2427
+ "get": {
2428
+ "tags": [
2429
+ "organizations"
2430
+ ],
2431
+ "summary": "Organizations List",
2432
+ "description": "List all organizations",
2433
+ "operationId": "organizations_list",
2434
+ "responses": {
2435
+ "200": {
2436
+ "description": "Successful Response",
2437
+ "content": {
2438
+ "application/json": {
2439
+ "schema": {
2440
+ "items": {
2441
+ "$ref": "#/components/schemas/Organization"
2442
+ },
2443
+ "type": "array",
2444
+ "title": "Response Organizations List"
2445
+ }
2446
+ }
2447
+ }
2448
+ }
2449
+ },
2450
+ "security": [
2451
+ {
2452
+ "APIKeyHeader": []
2453
+ }
2454
+ ]
2455
+ }
2456
+ }
2457
+ },
2458
+ "components": {
2459
+ "schemas": {
2460
+ "Agent": {
2461
+ "properties": {
2462
+ "name": {
2463
+ "type": "string",
2464
+ "title": "Name"
2465
+ },
2466
+ "timezone": {
2467
+ "type": "string",
2468
+ "title": "Timezone"
2469
+ },
2470
+ "type_extra": {
2471
+ "type": "object",
2472
+ "title": "Type Extra"
2473
+ },
2474
+ "variables": {
2475
+ "anyOf": [
2476
+ {
2477
+ "type": "object"
2478
+ },
2479
+ {
2480
+ "type": "null"
2481
+ }
2482
+ ],
2483
+ "title": "Variables"
2484
+ },
2485
+ "id": {
2486
+ "type": "integer",
2487
+ "title": "Id",
2488
+ "description": "The Agent ID"
2489
+ }
2490
+ },
2491
+ "type": "object",
2492
+ "required": [
2493
+ "name",
2494
+ "timezone",
2495
+ "type_extra",
2496
+ "id"
2497
+ ],
2498
+ "title": "Agent"
2499
+ },
2500
+ "AgentCreate": {
2501
+ "properties": {
2502
+ "name": {
2503
+ "type": "string",
2504
+ "title": "Name"
2505
+ },
2506
+ "timezone": {
2507
+ "type": "string",
2508
+ "title": "Timezone"
2509
+ },
2510
+ "type_extra": {
2511
+ "type": "object",
2512
+ "title": "Type Extra"
2513
+ },
2514
+ "variables": {
2515
+ "anyOf": [
2516
+ {
2517
+ "type": "object"
2518
+ },
2519
+ {
2520
+ "type": "null"
2521
+ }
2522
+ ],
2523
+ "title": "Variables"
2524
+ }
2525
+ },
2526
+ "type": "object",
2527
+ "required": [
2528
+ "name",
2529
+ "timezone",
2530
+ "type_extra"
2531
+ ],
2532
+ "title": "AgentCreate"
2533
+ },
2534
+ "AgentListResponse": {
2535
+ "properties": {
2536
+ "agents": {
2537
+ "items": {
2538
+ "$ref": "#/components/schemas/Agent"
2539
+ },
2540
+ "type": "array",
2541
+ "title": "Agents"
2542
+ },
2543
+ "count": {
2544
+ "type": "integer",
2545
+ "title": "Count"
2546
+ }
2547
+ },
2548
+ "type": "object",
2549
+ "required": [
2550
+ "agents",
2551
+ "count"
2552
+ ],
2553
+ "title": "AgentListResponse"
2554
+ },
2555
+ "AvailableTarget": {
2556
+ "properties": {
2557
+ "channel_id": {
2558
+ "type": "integer",
2559
+ "title": "Channel Id"
2560
+ },
2561
+ "channel_name": {
2562
+ "anyOf": [
2563
+ {
2564
+ "type": "string"
2565
+ },
2566
+ {
2567
+ "type": "null"
2568
+ }
2569
+ ],
2570
+ "title": "Channel Name"
2571
+ },
2572
+ "target": {
2573
+ "type": "string",
2574
+ "title": "Target"
2575
+ }
2576
+ },
2577
+ "type": "object",
2578
+ "required": [
2579
+ "channel_id",
2580
+ "channel_name",
2581
+ "target"
2582
+ ],
2583
+ "title": "AvailableTarget"
2584
+ },
2585
+ "AvailableTargetsListResponse": {
2586
+ "properties": {
2587
+ "targets": {
2588
+ "items": {
2589
+ "$ref": "#/components/schemas/AvailableTarget"
2590
+ },
2591
+ "type": "array",
2592
+ "title": "Targets"
2593
+ },
2594
+ "page": {
2595
+ "type": "integer",
2596
+ "title": "Page"
2597
+ },
2598
+ "page_size": {
2599
+ "type": "integer",
2600
+ "title": "Page Size"
2601
+ },
2602
+ "total_pages": {
2603
+ "type": "integer",
2604
+ "title": "Total Pages"
2605
+ },
2606
+ "total_count": {
2607
+ "type": "integer",
2608
+ "title": "Total Count"
2609
+ }
2610
+ },
2611
+ "type": "object",
2612
+ "required": [
2613
+ "targets",
2614
+ "page",
2615
+ "page_size",
2616
+ "total_pages",
2617
+ "total_count"
2618
+ ],
2619
+ "title": "AvailableTargetsListResponse"
2620
+ },
2621
+ "Channel": {
2622
+ "properties": {
2623
+ "id": {
2624
+ "type": "string",
2625
+ "title": "Id"
2626
+ },
2627
+ "name": {
2628
+ "type": "string",
2629
+ "title": "Name"
2630
+ },
2631
+ "channel_service": {
2632
+ "type": "string",
2633
+ "title": "Channel Service"
2634
+ },
2635
+ "supported_modes": {
2636
+ "type": "string",
2637
+ "title": "Supported Modes"
2638
+ }
2639
+ },
2640
+ "type": "object",
2641
+ "required": [
2642
+ "id",
2643
+ "name",
2644
+ "channel_service",
2645
+ "supported_modes"
2646
+ ],
2647
+ "title": "Channel"
2648
+ },
2649
+ "ChannelListResponse": {
2650
+ "properties": {
2651
+ "channels": {
2652
+ "items": {
2653
+ "$ref": "#/components/schemas/Channel"
2654
+ },
2655
+ "type": "array",
2656
+ "title": "Channels"
2657
+ },
2658
+ "page": {
2659
+ "type": "integer",
2660
+ "title": "Page"
2661
+ },
2662
+ "page_size": {
2663
+ "type": "integer",
2664
+ "title": "Page Size"
2665
+ },
2666
+ "total_pages": {
2667
+ "type": "integer",
2668
+ "title": "Total Pages"
2669
+ },
2670
+ "total_count": {
2671
+ "type": "integer",
2672
+ "title": "Total Count"
2673
+ }
2674
+ },
2675
+ "type": "object",
2676
+ "required": [
2677
+ "channels",
2678
+ "page",
2679
+ "page_size",
2680
+ "total_pages",
2681
+ "total_count"
2682
+ ],
2683
+ "title": "ChannelListResponse"
2684
+ },
2685
+ "ChannelTarget": {
2686
+ "properties": {
2687
+ "id": {
2688
+ "type": "integer",
2689
+ "title": "Id"
2690
+ },
2691
+ "channel_id": {
2692
+ "type": "integer",
2693
+ "title": "Channel Id"
2694
+ },
2695
+ "channel_name": {
2696
+ "anyOf": [
2697
+ {
2698
+ "type": "string"
2699
+ },
2700
+ {
2701
+ "type": "null"
2702
+ }
2703
+ ],
2704
+ "title": "Channel Name"
2705
+ },
2706
+ "agent_id": {
2707
+ "anyOf": [
2708
+ {
2709
+ "type": "integer"
2710
+ },
2711
+ {
2712
+ "type": "null"
2713
+ }
2714
+ ],
2715
+ "title": "Agent Id"
2716
+ },
2717
+ "target": {
2718
+ "type": "string",
2719
+ "title": "Target"
2720
+ },
2721
+ "target_mode": {
2722
+ "type": "string",
2723
+ "title": "Target Mode"
2724
+ },
2725
+ "fallback_target": {
2726
+ "anyOf": [
2727
+ {
2728
+ "type": "string"
2729
+ },
2730
+ {
2731
+ "type": "null"
2732
+ }
2733
+ ],
2734
+ "title": "Fallback Target"
2735
+ },
2736
+ "is_test": {
2737
+ "type": "boolean",
2738
+ "title": "Is Test"
2739
+ }
2740
+ },
2741
+ "type": "object",
2742
+ "required": [
2743
+ "id",
2744
+ "channel_id",
2745
+ "channel_name",
2746
+ "agent_id",
2747
+ "target",
2748
+ "target_mode",
2749
+ "fallback_target",
2750
+ "is_test"
2751
+ ],
2752
+ "title": "ChannelTarget"
2753
+ },
2754
+ "ChannelTargetCreateRequest": {
2755
+ "properties": {
2756
+ "channel_id": {
2757
+ "type": "integer",
2758
+ "title": "Channel Id"
2759
+ },
2760
+ "channel_name": {
2761
+ "anyOf": [
2762
+ {
2763
+ "type": "string"
2764
+ },
2765
+ {
2766
+ "type": "null"
2767
+ }
2768
+ ],
2769
+ "title": "Channel Name"
2770
+ },
2771
+ "agent_id": {
2772
+ "anyOf": [
2773
+ {
2774
+ "type": "integer"
2775
+ },
2776
+ {
2777
+ "type": "null"
2778
+ }
2779
+ ],
2780
+ "title": "Agent Id"
2781
+ },
2782
+ "target": {
2783
+ "type": "string",
2784
+ "title": "Target"
2785
+ },
2786
+ "target_mode": {
2787
+ "type": "string",
2788
+ "title": "Target Mode"
2789
+ },
2790
+ "fallback_target": {
2791
+ "anyOf": [
2792
+ {
2793
+ "type": "string"
2794
+ },
2795
+ {
2796
+ "type": "null"
2797
+ }
2798
+ ],
2799
+ "title": "Fallback Target"
2800
+ },
2801
+ "is_test": {
2802
+ "type": "boolean",
2803
+ "title": "Is Test"
2804
+ }
2805
+ },
2806
+ "type": "object",
2807
+ "required": [
2808
+ "channel_id",
2809
+ "channel_name",
2810
+ "agent_id",
2811
+ "target",
2812
+ "target_mode",
2813
+ "fallback_target",
2814
+ "is_test"
2815
+ ],
2816
+ "title": "ChannelTargetCreateRequest"
2817
+ },
2818
+ "ChannelTargetListResponse": {
2819
+ "properties": {
2820
+ "targets": {
2821
+ "items": {
2822
+ "$ref": "#/components/schemas/ChannelTarget"
2823
+ },
2824
+ "type": "array",
2825
+ "title": "Targets"
2826
+ },
2827
+ "page": {
2828
+ "type": "integer",
2829
+ "title": "Page"
2830
+ },
2831
+ "page_size": {
2832
+ "type": "integer",
2833
+ "title": "Page Size"
2834
+ },
2835
+ "total_pages": {
2836
+ "type": "integer",
2837
+ "title": "Total Pages"
2838
+ },
2839
+ "total_count": {
2840
+ "type": "integer",
2841
+ "title": "Total Count"
2842
+ }
2843
+ },
2844
+ "type": "object",
2845
+ "required": [
2846
+ "targets",
2847
+ "page",
2848
+ "page_size",
2849
+ "total_pages",
2850
+ "total_count"
2851
+ ],
2852
+ "title": "ChannelTargetListResponse"
2853
+ },
2854
+ "ChatMessage": {
2855
+ "properties": {
2856
+ "service_name": {
2857
+ "type": "string",
2858
+ "title": "Service Name",
2859
+ "description": "Name of the service producing the message"
2860
+ },
2861
+ "source_name": {
2862
+ "type": "string",
2863
+ "title": "Source Name",
2864
+ "description": "Name of the source of the message, should identify the user, like an email or username"
2865
+ },
2866
+ "chat_id": {
2867
+ "type": "string",
2868
+ "title": "Chat Id"
2869
+ },
2870
+ "agent_id": {
2871
+ "type": "string",
2872
+ "title": "Agent Id"
2873
+ },
2874
+ "org_name": {
2875
+ "type": "string",
2876
+ "title": "Org Name"
2877
+ },
2878
+ "text": {
2879
+ "type": "string",
2880
+ "title": "Text"
2881
+ }
2882
+ },
2883
+ "type": "object",
2884
+ "required": [
2885
+ "service_name",
2886
+ "source_name",
2887
+ "chat_id",
2888
+ "agent_id",
2889
+ "org_name",
2890
+ "text"
2891
+ ],
2892
+ "title": "ChatMessage"
2893
+ },
2894
+ "ChatMessageResponse": {
2895
+ "properties": {
2896
+ "chat_id": {
2897
+ "type": "string",
2898
+ "title": "Chat Id"
2899
+ },
2900
+ "agent_id": {
2901
+ "type": "string",
2902
+ "title": "Agent Id"
2903
+ },
2904
+ "text": {
2905
+ "type": "string",
2906
+ "title": "Text"
2907
+ },
2908
+ "response": {
2909
+ "type": "object",
2910
+ "title": "Response"
2911
+ }
2912
+ },
2913
+ "type": "object",
2914
+ "required": [
2915
+ "chat_id",
2916
+ "agent_id",
2917
+ "text"
2918
+ ],
2919
+ "title": "ChatMessageResponse"
2920
+ },
2921
+ "Conversation": {
2922
+ "properties": {
2923
+ "timestamp": {
2924
+ "type": "string",
2925
+ "format": "date-time",
2926
+ "title": "Timestamp"
2927
+ },
2928
+ "conversation_id": {
2929
+ "type": "string",
2930
+ "title": "Conversation Id"
2931
+ },
2932
+ "session_id": {
2933
+ "anyOf": [
2934
+ {
2935
+ "type": "string"
2936
+ },
2937
+ {
2938
+ "type": "null"
2939
+ }
2940
+ ],
2941
+ "title": "Session Id"
2942
+ },
2943
+ "agent_id": {
2944
+ "anyOf": [
2945
+ {
2946
+ "type": "string"
2947
+ },
2948
+ {
2949
+ "type": "null"
2950
+ }
2951
+ ],
2952
+ "title": "Agent Id"
2953
+ },
2954
+ "agent_name": {
2955
+ "anyOf": [
2956
+ {
2957
+ "type": "string"
2958
+ },
2959
+ {
2960
+ "type": "null"
2961
+ }
2962
+ ],
2963
+ "title": "Agent Name"
2964
+ },
2965
+ "agent_type": {
2966
+ "anyOf": [
2967
+ {
2968
+ "type": "string"
2969
+ },
2970
+ {
2971
+ "type": "null"
2972
+ }
2973
+ ],
2974
+ "title": "Agent Type"
2975
+ },
2976
+ "prompt_id": {
2977
+ "anyOf": [
2978
+ {
2979
+ "type": "string"
2980
+ },
2981
+ {
2982
+ "type": "null"
2983
+ }
2984
+ ],
2985
+ "title": "Prompt Id"
2986
+ },
2987
+ "prompt_name": {
2988
+ "anyOf": [
2989
+ {
2990
+ "type": "string"
2991
+ },
2992
+ {
2993
+ "type": "null"
2994
+ }
2995
+ ],
2996
+ "title": "Prompt Name"
2997
+ },
2998
+ "prompt_version": {
2999
+ "anyOf": [
3000
+ {
3001
+ "type": "string"
3002
+ },
3003
+ {
3004
+ "type": "null"
3005
+ }
3006
+ ],
3007
+ "title": "Prompt Version"
3008
+ },
3009
+ "call_id": {
3010
+ "anyOf": [
3011
+ {
3012
+ "type": "string"
3013
+ },
3014
+ {
3015
+ "type": "null"
3016
+ }
3017
+ ],
3018
+ "title": "Call Id"
3019
+ },
3020
+ "source": {
3021
+ "anyOf": [
3022
+ {
3023
+ "type": "string"
3024
+ },
3025
+ {
3026
+ "type": "null"
3027
+ }
3028
+ ],
3029
+ "title": "Source"
3030
+ },
3031
+ "target": {
3032
+ "anyOf": [
3033
+ {
3034
+ "type": "string"
3035
+ },
3036
+ {
3037
+ "type": "null"
3038
+ }
3039
+ ],
3040
+ "title": "Target"
3041
+ },
3042
+ "is_legacy": {
3043
+ "anyOf": [
3044
+ {
3045
+ "type": "boolean"
3046
+ },
3047
+ {
3048
+ "type": "null"
3049
+ }
3050
+ ],
3051
+ "title": "Is Legacy"
3052
+ },
3053
+ "is_test": {
3054
+ "anyOf": [
3055
+ {
3056
+ "type": "boolean"
3057
+ },
3058
+ {
3059
+ "type": "null"
3060
+ }
3061
+ ],
3062
+ "title": "Is Test"
3063
+ }
3064
+ },
3065
+ "type": "object",
3066
+ "required": [
3067
+ "timestamp",
3068
+ "conversation_id"
3069
+ ],
3070
+ "title": "Conversation"
3071
+ },
3072
+ "ConversationAction": {
3073
+ "properties": {
3074
+ "timestamp": {
3075
+ "type": "string",
3076
+ "format": "date-time",
3077
+ "title": "Timestamp"
3078
+ },
3079
+ "tool_name": {
3080
+ "anyOf": [
3081
+ {
3082
+ "type": "string"
3083
+ },
3084
+ {
3085
+ "type": "null"
3086
+ }
3087
+ ],
3088
+ "title": "Tool Name"
3089
+ },
3090
+ "tool_request": {
3091
+ "anyOf": [
3092
+ {
3093
+ "type": "string"
3094
+ },
3095
+ {
3096
+ "type": "null"
3097
+ }
3098
+ ],
3099
+ "title": "Tool Request"
3100
+ },
3101
+ "tool_result": {
3102
+ "anyOf": [
3103
+ {
3104
+ "type": "string"
3105
+ },
3106
+ {
3107
+ "type": "null"
3108
+ }
3109
+ ],
3110
+ "title": "Tool Result"
3111
+ }
3112
+ },
3113
+ "type": "object",
3114
+ "required": [
3115
+ "timestamp"
3116
+ ],
3117
+ "title": "ConversationAction"
3118
+ },
3119
+ "ConversationListResponse": {
3120
+ "properties": {
3121
+ "conversations": {
3122
+ "items": {
3123
+ "$ref": "#/components/schemas/Conversation"
3124
+ },
3125
+ "type": "array",
3126
+ "title": "Conversations"
3127
+ },
3128
+ "page": {
3129
+ "type": "integer",
3130
+ "title": "Page"
3131
+ },
3132
+ "page_size": {
3133
+ "type": "integer",
3134
+ "title": "Page Size"
3135
+ },
3136
+ "total_pages": {
3137
+ "type": "integer",
3138
+ "title": "Total Pages"
3139
+ },
3140
+ "total_count": {
3141
+ "type": "integer",
3142
+ "title": "Total Count"
3143
+ }
3144
+ },
3145
+ "type": "object",
3146
+ "required": [
3147
+ "conversations",
3148
+ "page",
3149
+ "page_size",
3150
+ "total_pages",
3151
+ "total_count"
3152
+ ],
3153
+ "title": "ConversationListResponse"
3154
+ },
3155
+ "ConversationText": {
3156
+ "properties": {
3157
+ "timestamp": {
3158
+ "type": "string",
3159
+ "format": "date-time",
3160
+ "title": "Timestamp"
3161
+ },
3162
+ "lang": {
3163
+ "anyOf": [
3164
+ {
3165
+ "type": "string"
3166
+ },
3167
+ {
3168
+ "type": "null"
3169
+ }
3170
+ ],
3171
+ "title": "Lang"
3172
+ },
3173
+ "source": {
3174
+ "anyOf": [
3175
+ {
3176
+ "type": "string"
3177
+ },
3178
+ {
3179
+ "type": "null"
3180
+ }
3181
+ ],
3182
+ "title": "Source"
3183
+ },
3184
+ "text": {
3185
+ "anyOf": [
3186
+ {
3187
+ "type": "string"
3188
+ },
3189
+ {
3190
+ "type": "null"
3191
+ }
3192
+ ],
3193
+ "title": "Text"
3194
+ }
3195
+ },
3196
+ "type": "object",
3197
+ "required": [
3198
+ "timestamp"
3199
+ ],
3200
+ "title": "ConversationText"
3201
+ },
3202
+ "ConversationTranscriptionResponse": {
3203
+ "properties": {
3204
+ "conversation_id": {
3205
+ "type": "string",
3206
+ "title": "Conversation Id"
3207
+ },
3208
+ "transcription": {
3209
+ "items": {
3210
+ "$ref": "#/components/schemas/ConversationText"
3211
+ },
3212
+ "type": "array",
3213
+ "title": "Transcription"
3214
+ },
3215
+ "actions": {
3216
+ "items": {
3217
+ "$ref": "#/components/schemas/ConversationAction"
3218
+ },
3219
+ "type": "array",
3220
+ "title": "Actions"
3221
+ }
3222
+ },
3223
+ "type": "object",
3224
+ "required": [
3225
+ "conversation_id",
3226
+ "transcription",
3227
+ "actions"
3228
+ ],
3229
+ "title": "ConversationTranscriptionResponse"
3230
+ },
3231
+ "Defaults": {
3232
+ "properties": {
3233
+ "anyof_schema_1_validator": {
3234
+ "anyOf": [
3235
+ {
3236
+ "type": "object"
3237
+ },
3238
+ {
3239
+ "type": "null"
3240
+ }
3241
+ ],
3242
+ "title": "Anyof Schema 1 Validator"
3243
+ },
3244
+ "anyof_schema_2_validator": {
3245
+ "anyOf": [
3246
+ {
3247
+ "additionalProperties": {
3248
+ "$ref": "#/components/schemas/ToolParameterDefault"
3249
+ },
3250
+ "type": "object"
3251
+ },
3252
+ {
3253
+ "type": "null"
3254
+ }
3255
+ ],
3256
+ "title": "Anyof Schema 2 Validator"
3257
+ },
3258
+ "actual_instance": {
3259
+ "title": "Actual Instance"
3260
+ },
3261
+ "any_of_schemas": {
3262
+ "items": {
3263
+ "type": "string"
3264
+ },
3265
+ "type": "array",
3266
+ "uniqueItems": true,
3267
+ "title": "Any Of Schemas",
3268
+ "default": [
3269
+ "object",
3270
+ "Dict[str, ToolParameterDefault]"
3271
+ ]
3272
+ }
3273
+ },
3274
+ "type": "object",
3275
+ "title": "Defaults",
3276
+ "description": "The default values for the parameters of the function/tool call."
3277
+ },
3278
+ "Event": {
3279
+ "properties": {
3280
+ "timestamp": {
3281
+ "type": "string",
3282
+ "format": "date-time",
3283
+ "title": "Timestamp"
3284
+ },
3285
+ "session_id": {
3286
+ "anyOf": [
3287
+ {
3288
+ "type": "string"
3289
+ },
3290
+ {
3291
+ "type": "null"
3292
+ }
3293
+ ],
3294
+ "title": "Session Id"
3295
+ },
3296
+ "conversation_id": {
3297
+ "anyOf": [
3298
+ {
3299
+ "type": "string"
3300
+ },
3301
+ {
3302
+ "type": "null"
3303
+ }
3304
+ ],
3305
+ "title": "Conversation Id"
3306
+ },
3307
+ "source": {
3308
+ "anyOf": [
3309
+ {
3310
+ "type": "string"
3311
+ },
3312
+ {
3313
+ "type": "null"
3314
+ }
3315
+ ],
3316
+ "title": "Source"
3317
+ },
3318
+ "source_id": {
3319
+ "anyOf": [
3320
+ {
3321
+ "type": "string"
3322
+ },
3323
+ {
3324
+ "type": "null"
3325
+ }
3326
+ ],
3327
+ "title": "Source Id"
3328
+ },
3329
+ "category": {
3330
+ "anyOf": [
3331
+ {
3332
+ "type": "string"
3333
+ },
3334
+ {
3335
+ "type": "null"
3336
+ }
3337
+ ],
3338
+ "title": "Category"
3339
+ },
3340
+ "type": {
3341
+ "anyOf": [
3342
+ {
3343
+ "type": "string"
3344
+ },
3345
+ {
3346
+ "type": "null"
3347
+ }
3348
+ ],
3349
+ "title": "Type"
3350
+ },
3351
+ "user_id": {
3352
+ "anyOf": [
3353
+ {
3354
+ "type": "string"
3355
+ },
3356
+ {
3357
+ "type": "null"
3358
+ }
3359
+ ],
3360
+ "title": "User Id"
3361
+ },
3362
+ "description": {
3363
+ "anyOf": [
3364
+ {
3365
+ "type": "string"
3366
+ },
3367
+ {
3368
+ "type": "null"
3369
+ }
3370
+ ],
3371
+ "title": "Description"
3372
+ },
3373
+ "attributes": {
3374
+ "anyOf": [
3375
+ {
3376
+ "type": "object"
3377
+ },
3378
+ {
3379
+ "type": "null"
3380
+ }
3381
+ ],
3382
+ "title": "Attributes"
3383
+ }
3384
+ },
3385
+ "type": "object",
3386
+ "required": [
3387
+ "timestamp"
3388
+ ],
3389
+ "title": "Event"
3390
+ },
3391
+ "EventListResponse": {
3392
+ "properties": {
3393
+ "events": {
3394
+ "items": {
3395
+ "$ref": "#/components/schemas/Event"
3396
+ },
3397
+ "type": "array",
3398
+ "title": "Events"
3399
+ },
3400
+ "page": {
3401
+ "type": "integer",
3402
+ "title": "Page"
3403
+ },
3404
+ "page_size": {
3405
+ "type": "integer",
3406
+ "title": "Page Size"
3407
+ },
3408
+ "total_pages": {
3409
+ "type": "integer",
3410
+ "title": "Total Pages"
3411
+ },
3412
+ "total_count": {
3413
+ "type": "integer",
3414
+ "title": "Total Count"
3415
+ }
3416
+ },
3417
+ "type": "object",
3418
+ "required": [
3419
+ "events",
3420
+ "page",
3421
+ "page_size",
3422
+ "total_pages",
3423
+ "total_count"
3424
+ ],
3425
+ "title": "EventListResponse"
3426
+ },
3427
+ "Function": {
3428
+ "properties": {
3429
+ "name": {
3430
+ "type": "string",
3431
+ "title": "Name",
3432
+ "description": "The name of the function/tool call."
3433
+ },
3434
+ "description": {
3435
+ "type": "string",
3436
+ "title": "Description",
3437
+ "description": "The description of the tool."
3438
+ },
3439
+ "parameters": {
3440
+ "type": "object",
3441
+ "title": "Parameters",
3442
+ "description": "The JSON Schema of parameters of the function/tool call."
3443
+ }
3444
+ },
3445
+ "type": "object",
3446
+ "required": [
3447
+ "name",
3448
+ "description",
3449
+ "parameters"
3450
+ ],
3451
+ "title": "Function",
3452
+ "description": "A tool definition to be used by the OpenAI API. See: - https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/function-calling"
3453
+ },
3454
+ "Greeting": {
3455
+ "properties": {
3456
+ "name": {
3457
+ "type": "string",
3458
+ "title": "Name",
3459
+ "description": "The name of the greeting"
3460
+ },
3461
+ "text": {
3462
+ "type": "string",
3463
+ "title": "Text",
3464
+ "description": "The text of the greeting"
3465
+ },
3466
+ "id": {
3467
+ "type": "integer",
3468
+ "title": "Id",
3469
+ "description": "The ID of the greeting"
3470
+ }
3471
+ },
3472
+ "type": "object",
3473
+ "required": [
3474
+ "name",
3475
+ "text",
3476
+ "id"
3477
+ ],
3478
+ "title": "Greeting",
3479
+ "description": "Greeting"
3480
+ },
3481
+ "GreetingCreate": {
3482
+ "properties": {
3483
+ "name": {
3484
+ "type": "string",
3485
+ "title": "Name",
3486
+ "description": "The name of the greeting"
3487
+ },
3488
+ "text": {
3489
+ "type": "string",
3490
+ "title": "Text",
3491
+ "description": "The text of the greeting"
3492
+ }
3493
+ },
3494
+ "type": "object",
3495
+ "required": [
3496
+ "name",
3497
+ "text"
3498
+ ],
3499
+ "title": "GreetingCreate",
3500
+ "description": "GreetingCreate"
3501
+ },
3502
+ "GreetingListResponse": {
3503
+ "properties": {
3504
+ "greetings": {
3505
+ "items": {
3506
+ "$ref": "#/components/schemas/Greeting"
3507
+ },
3508
+ "type": "array",
3509
+ "title": "Greetings"
3510
+ }
3511
+ },
3512
+ "type": "object",
3513
+ "required": [
3514
+ "greetings"
3515
+ ],
3516
+ "title": "GreetingListResponse"
3517
+ },
3518
+ "GreetingResponse": {
3519
+ "properties": {
3520
+ "name": {
3521
+ "type": "string",
3522
+ "title": "Name",
3523
+ "description": "The name of the greeting"
3524
+ },
3525
+ "text": {
3526
+ "type": "string",
3527
+ "title": "Text",
3528
+ "description": "The text of the greeting"
3529
+ },
3530
+ "id": {
3531
+ "type": "integer",
3532
+ "title": "Id",
3533
+ "description": "The ID of the greeting"
3534
+ }
3535
+ },
3536
+ "type": "object",
3537
+ "required": [
3538
+ "name",
3539
+ "text",
3540
+ "id"
3541
+ ],
3542
+ "title": "GreetingResponse"
3543
+ },
3544
+ "HTTPValidationError": {
3545
+ "properties": {
3546
+ "detail": {
3547
+ "items": {
3548
+ "$ref": "#/components/schemas/ValidationError"
3549
+ },
3550
+ "type": "array",
3551
+ "title": "Detail"
3552
+ }
3553
+ },
3554
+ "type": "object",
3555
+ "title": "HTTPValidationError"
3556
+ },
3557
+ "HttpEndpoint": {
3558
+ "properties": {
3559
+ "url": {
3560
+ "type": "string",
3561
+ "title": "Url",
3562
+ "description": "The endpoint URL of the external service to call."
3563
+ },
3564
+ "method": {
3565
+ "type": "string",
3566
+ "title": "Method",
3567
+ "description": "The HTTP method to use for the service call."
3568
+ },
3569
+ "argument_location": {
3570
+ "type": "string",
3571
+ "title": "Argument Location",
3572
+ "description": "How to pass the arguments to the request."
3573
+ }
3574
+ },
3575
+ "type": "object",
3576
+ "required": [
3577
+ "url",
3578
+ "method",
3579
+ "argument_location"
3580
+ ],
3581
+ "title": "HttpEndpoint",
3582
+ "description": "The configuration for an HTTP API call."
3583
+ },
3584
+ "LlmConfig": {
3585
+ "properties": {
3586
+ "provider": {
3587
+ "anyOf": [
3588
+ {
3589
+ "$ref": "#/components/schemas/Provider"
3590
+ },
3591
+ {
3592
+ "type": "null"
3593
+ }
3594
+ ],
3595
+ "description": "Provider of the LLM model."
3596
+ },
3597
+ "model": {
3598
+ "anyOf": [
3599
+ {
3600
+ "type": "string"
3601
+ },
3602
+ {
3603
+ "type": "null"
3604
+ }
3605
+ ],
3606
+ "title": "Model",
3607
+ "description": "Name of the model. Must match the deployment name in Azure AI Studio.",
3608
+ "default": "gpt-4o"
3609
+ },
3610
+ "version": {
3611
+ "anyOf": [
3612
+ {
3613
+ "type": "string"
3614
+ },
3615
+ {
3616
+ "type": "null"
3617
+ }
3618
+ ],
3619
+ "title": "Version"
3620
+ },
3621
+ "api_version": {
3622
+ "anyOf": [
3623
+ {
3624
+ "type": "string"
3625
+ },
3626
+ {
3627
+ "type": "null"
3628
+ }
3629
+ ],
3630
+ "title": "Api Version"
3631
+ }
3632
+ },
3633
+ "type": "object",
3634
+ "title": "LlmConfig",
3635
+ "description": "LlmConfig"
3636
+ },
3637
+ "Organization": {
3638
+ "properties": {
3639
+ "id": {
3640
+ "type": "integer",
3641
+ "title": "Id",
3642
+ "description": "The organization ID"
3643
+ },
3644
+ "name": {
3645
+ "type": "string",
3646
+ "title": "Name",
3647
+ "description": "The organization name"
3648
+ },
3649
+ "display_name": {
3650
+ "type": "string",
3651
+ "title": "Display Name",
3652
+ "description": "The organization display name"
3653
+ }
3654
+ },
3655
+ "type": "object",
3656
+ "required": [
3657
+ "id",
3658
+ "name",
3659
+ "display_name"
3660
+ ],
3661
+ "title": "Organization"
3662
+ },
3663
+ "Prompt": {
3664
+ "properties": {
3665
+ "name": {
3666
+ "type": "string",
3667
+ "title": "Name",
3668
+ "description": "The Prompt name"
3669
+ },
3670
+ "context": {
3671
+ "anyOf": [
3672
+ {
3673
+ "type": "string"
3674
+ },
3675
+ {
3676
+ "type": "null"
3677
+ }
3678
+ ],
3679
+ "title": "Context"
3680
+ },
3681
+ "tools": {
3682
+ "anyOf": [
3683
+ {
3684
+ "items": {
3685
+ "type": "string"
3686
+ },
3687
+ "type": "array"
3688
+ },
3689
+ {
3690
+ "type": "null"
3691
+ }
3692
+ ],
3693
+ "title": "Tools",
3694
+ "description": "The tools for the prompt"
3695
+ },
3696
+ "llm_config": {
3697
+ "allOf": [
3698
+ {
3699
+ "$ref": "#/components/schemas/LlmConfig"
3700
+ }
3701
+ ],
3702
+ "description": "The configuration for the language model used by the Cortex API."
3703
+ },
3704
+ "id": {
3705
+ "type": "integer",
3706
+ "title": "Id",
3707
+ "description": "The Prompt ID"
3708
+ },
3709
+ "last_updated": {
3710
+ "anyOf": [
3711
+ {
3712
+ "type": "string"
3713
+ },
3714
+ {
3715
+ "type": "null"
3716
+ }
3717
+ ],
3718
+ "title": "Last Updated"
3719
+ }
3720
+ },
3721
+ "type": "object",
3722
+ "required": [
3723
+ "name",
3724
+ "llm_config",
3725
+ "id",
3726
+ "last_updated"
3727
+ ],
3728
+ "title": "Prompt",
3729
+ "description": "Prompt"
3730
+ },
3731
+ "PromptCreate": {
3732
+ "properties": {
3733
+ "name": {
3734
+ "type": "string",
3735
+ "title": "Name",
3736
+ "description": "The Prompt name"
3737
+ },
3738
+ "context": {
3739
+ "anyOf": [
3740
+ {
3741
+ "type": "string"
3742
+ },
3743
+ {
3744
+ "type": "null"
3745
+ }
3746
+ ],
3747
+ "title": "Context"
3748
+ },
3749
+ "tools": {
3750
+ "anyOf": [
3751
+ {
3752
+ "items": {
3753
+ "type": "string"
3754
+ },
3755
+ "type": "array"
3756
+ },
3757
+ {
3758
+ "type": "null"
3759
+ }
3760
+ ],
3761
+ "title": "Tools",
3762
+ "description": "The tools for the prompt"
3763
+ },
3764
+ "llm_config": {
3765
+ "allOf": [
3766
+ {
3767
+ "$ref": "#/components/schemas/LlmConfig"
3768
+ }
3769
+ ],
3770
+ "description": "The configuration for the language model used by the Cortex API."
3771
+ }
3772
+ },
3773
+ "type": "object",
3774
+ "required": [
3775
+ "name",
3776
+ "llm_config"
3777
+ ],
3778
+ "title": "PromptCreate",
3779
+ "description": "PromptCreate"
3780
+ },
3781
+ "PromptListResponse": {
3782
+ "properties": {
3783
+ "prompts": {
3784
+ "items": {
3785
+ "$ref": "#/components/schemas/Prompt"
3786
+ },
3787
+ "type": "array",
3788
+ "title": "Prompts"
3789
+ },
3790
+ "filter_name": {
3791
+ "anyOf": [
3792
+ {
3793
+ "type": "string"
3794
+ },
3795
+ {
3796
+ "type": "null"
3797
+ }
3798
+ ],
3799
+ "title": "Filter Name"
3800
+ },
3801
+ "page": {
3802
+ "type": "integer",
3803
+ "title": "Page"
3804
+ },
3805
+ "page_size": {
3806
+ "type": "integer",
3807
+ "title": "Page Size"
3808
+ },
3809
+ "total_pages": {
3810
+ "type": "integer",
3811
+ "title": "Total Pages"
3812
+ },
3813
+ "total_count": {
3814
+ "type": "integer",
3815
+ "title": "Total Count"
3816
+ }
3817
+ },
3818
+ "type": "object",
3819
+ "required": [
3820
+ "prompts",
3821
+ "filter_name",
3822
+ "page",
3823
+ "page_size",
3824
+ "total_pages",
3825
+ "total_count"
3826
+ ],
3827
+ "title": "PromptListResponse"
3828
+ },
3829
+ "Provider": {
3830
+ "type": "string",
3831
+ "enum": [
3832
+ "azure_openai",
3833
+ "openai"
3834
+ ],
3835
+ "title": "Provider",
3836
+ "description": "LLM API provider."
3837
+ },
3838
+ "SchemasBubblegumV2ToolsTool": {
3839
+ "properties": {
3840
+ "name": {
3841
+ "type": "string",
3842
+ "title": "Name",
3843
+ "description": "The name of the tool"
3844
+ },
3845
+ "definition": {
3846
+ "anyOf": [
3847
+ {
3848
+ "$ref": "#/components/schemas/ToolDefinition"
3849
+ },
3850
+ {
3851
+ "type": "null"
3852
+ }
3853
+ ],
3854
+ "description": "The definition of the tool"
3855
+ },
3856
+ "service_id": {
3857
+ "type": "integer",
3858
+ "title": "Service Id",
3859
+ "description": "The service this tool belongs to"
3860
+ },
3861
+ "id": {
3862
+ "type": "integer",
3863
+ "title": "Id",
3864
+ "description": "The ID of the tool"
3865
+ },
3866
+ "service_name": {
3867
+ "anyOf": [
3868
+ {
3869
+ "type": "string"
3870
+ },
3871
+ {
3872
+ "type": "null"
3873
+ }
3874
+ ],
3875
+ "title": "Service Name"
3876
+ }
3877
+ },
3878
+ "type": "object",
3879
+ "required": [
3880
+ "name",
3881
+ "service_id",
3882
+ "id"
3883
+ ],
3884
+ "title": "SchemasBubblegumV2ToolsTool",
3885
+ "description": "SchemasBubblegumV2ToolsTool"
3886
+ },
3887
+ "SchemasCortexV1ToolsTool": {
3888
+ "properties": {
3889
+ "type": {
3890
+ "anyOf": [
3891
+ {
3892
+ "type": "string"
3893
+ },
3894
+ {
3895
+ "type": "null"
3896
+ }
3897
+ ],
3898
+ "title": "Type",
3899
+ "description": "Always `function`.",
3900
+ "default": "function"
3901
+ },
3902
+ "function": {
3903
+ "allOf": [
3904
+ {
3905
+ "$ref": "#/components/schemas/Function"
3906
+ }
3907
+ ],
3908
+ "description": "The tool definition including the JSON Schema of its parameters."
3909
+ }
3910
+ },
3911
+ "type": "object",
3912
+ "required": [
3913
+ "function"
3914
+ ],
3915
+ "title": "SchemasCortexV1ToolsTool",
3916
+ "description": "A tool definition to be used by the OpenAI API."
3917
+ },
3918
+ "Session": {
3919
+ "properties": {
3920
+ "timestamp": {
3921
+ "type": "string",
3922
+ "format": "date-time",
3923
+ "title": "Timestamp"
3924
+ },
3925
+ "session_id": {
3926
+ "anyOf": [
3927
+ {
3928
+ "type": "string"
3929
+ },
3930
+ {
3931
+ "type": "null"
3932
+ }
3933
+ ],
3934
+ "title": "Session Id"
3935
+ },
3936
+ "conversation_id": {
3937
+ "anyOf": [
3938
+ {
3939
+ "type": "string"
3940
+ },
3941
+ {
3942
+ "type": "null"
3943
+ }
3944
+ ],
3945
+ "title": "Conversation Id"
3946
+ },
3947
+ "channel_manager_service": {
3948
+ "anyOf": [
3949
+ {
3950
+ "type": "string"
3951
+ },
3952
+ {
3953
+ "type": "null"
3954
+ }
3955
+ ],
3956
+ "title": "Channel Manager Service"
3957
+ },
3958
+ "channel_manager_type": {
3959
+ "anyOf": [
3960
+ {
3961
+ "type": "string"
3962
+ },
3963
+ {
3964
+ "type": "null"
3965
+ }
3966
+ ],
3967
+ "title": "Channel Manager Type"
3968
+ },
3969
+ "channel_manager_sid": {
3970
+ "anyOf": [
3971
+ {
3972
+ "type": "string"
3973
+ },
3974
+ {
3975
+ "type": "null"
3976
+ }
3977
+ ],
3978
+ "title": "Channel Manager Sid"
3979
+ },
3980
+ "source": {
3981
+ "anyOf": [
3982
+ {
3983
+ "type": "string"
3984
+ },
3985
+ {
3986
+ "type": "null"
3987
+ }
3988
+ ],
3989
+ "title": "Source"
3990
+ },
3991
+ "target": {
3992
+ "anyOf": [
3993
+ {
3994
+ "type": "string"
3995
+ },
3996
+ {
3997
+ "type": "null"
3998
+ }
3999
+ ],
4000
+ "title": "Target"
4001
+ },
4002
+ "is_legacy": {
4003
+ "anyOf": [
4004
+ {
4005
+ "type": "boolean"
4006
+ },
4007
+ {
4008
+ "type": "null"
4009
+ }
4010
+ ],
4011
+ "title": "Is Legacy"
4012
+ },
4013
+ "is_test": {
4014
+ "anyOf": [
4015
+ {
4016
+ "type": "boolean"
4017
+ },
4018
+ {
4019
+ "type": "null"
4020
+ }
4021
+ ],
4022
+ "title": "Is Test"
4023
+ }
4024
+ },
4025
+ "type": "object",
4026
+ "required": [
4027
+ "timestamp"
4028
+ ],
4029
+ "title": "Session"
4030
+ },
4031
+ "SessionListResponse": {
4032
+ "properties": {
4033
+ "sessions": {
4034
+ "items": {
4035
+ "$ref": "#/components/schemas/Session"
4036
+ },
4037
+ "type": "array",
4038
+ "title": "Sessions"
4039
+ },
4040
+ "page": {
4041
+ "type": "integer",
4042
+ "title": "Page"
4043
+ },
4044
+ "page_size": {
4045
+ "type": "integer",
4046
+ "title": "Page Size"
4047
+ },
4048
+ "total_pages": {
4049
+ "type": "integer",
4050
+ "title": "Total Pages"
4051
+ },
4052
+ "total_count": {
4053
+ "type": "integer",
4054
+ "title": "Total Count"
4055
+ }
4056
+ },
4057
+ "type": "object",
4058
+ "required": [
4059
+ "sessions",
4060
+ "page",
4061
+ "page_size",
4062
+ "total_pages",
4063
+ "total_count"
4064
+ ],
4065
+ "title": "SessionListResponse"
4066
+ },
4067
+ "ToolDefinition": {
4068
+ "properties": {
4069
+ "type": {
4070
+ "anyOf": [
4071
+ {
4072
+ "type": "string"
4073
+ },
4074
+ {
4075
+ "type": "null"
4076
+ }
4077
+ ],
4078
+ "title": "Type"
4079
+ },
4080
+ "tool": {
4081
+ "allOf": [
4082
+ {
4083
+ "$ref": "#/components/schemas/SchemasCortexV1ToolsTool"
4084
+ }
4085
+ ],
4086
+ "description": "The tool definition to be used by the OpenAI API."
4087
+ },
4088
+ "endpoint": {
4089
+ "anyOf": [
4090
+ {
4091
+ "$ref": "#/components/schemas/HttpEndpoint"
4092
+ },
4093
+ {
4094
+ "type": "null"
4095
+ }
4096
+ ]
4097
+ },
4098
+ "defaults": {
4099
+ "anyOf": [
4100
+ {
4101
+ "$ref": "#/components/schemas/Defaults"
4102
+ },
4103
+ {
4104
+ "type": "null"
4105
+ }
4106
+ ]
4107
+ },
4108
+ "result": {
4109
+ "anyOf": [
4110
+ {
4111
+ "type": "object"
4112
+ },
4113
+ {
4114
+ "type": "null"
4115
+ }
4116
+ ],
4117
+ "title": "Result"
4118
+ }
4119
+ },
4120
+ "type": "object",
4121
+ "required": [
4122
+ "tool"
4123
+ ],
4124
+ "title": "ToolDefinition",
4125
+ "description": "A tool that can be called from GPT during the conversation. The tool can result in one of the following actions depending on the `type` field: - `action`: An `ActionRequest` to return to Bubblegum in `GetResponseResponse`. - `endpoint`: An HTTP API call to an external tool. Requires the `endpoint` field to be set too. - `context`: Sets context variables based on the tool arguments, e.g. to change the session language. Only `language` and `say` context vars are currently supported, but this will be made more generic. For example, to change the current session language: ``` { \"type\": \"context\", \"tool\": { \"function\": { \"name\": \"set_language\", \"parameters\": { \"language\": { \"type\": \"string\", \"description\": \"The ISO 639 language code to set for the session e.g. 'en-US'.\" }, \"message\": { \"type\": \"string\", \"description\": \"Inform the caller we're now speaking in the new language.\" } } } } } ``` If `defaults` is provided, it will be used as the default values for the parameters of the tool call, if GPT doesn't provide them: ``` \"defaults\": { \"hospital\": \"Queens Hospital\" } ``` Some special \"transform\" handling is supported if the value is a dict with a single `transform` key. The parameter value will be transformed by the given `action` before being used as the default value: Removing an unwanted parameter: ``` \"defaults\": { \"hospital\": { \"transform\": { \"action\": \"remove\" } } } ``` Add custom parameters from other parameters using Python's `format`: ``` \"defaults\": { \"hello\": { \"transform\": { \"format\": \"Hello, {name}!\" } } } Modify a value conditionally, e.g. change a `city` parameter with value \"Bronx\" to \"The Bronx\": ``` { \"defaults\": { \"city\": { \"transform\": { \"when\": {\"operator\": \"eq\", \"key\": \"city\", \"value\": \"Bronx\"}, \"action\": \"override\", \"format\": \"The {city}\" } } } } ```"
4126
+ },
4127
+ "ToolDetailResponse": {
4128
+ "properties": {
4129
+ "name": {
4130
+ "type": "string",
4131
+ "title": "Name"
4132
+ },
4133
+ "description": {
4134
+ "type": "string",
4135
+ "title": "Description"
4136
+ },
4137
+ "fields": {
4138
+ "items": {
4139
+ "type": "string"
4140
+ },
4141
+ "type": "array",
4142
+ "title": "Fields"
4143
+ }
4144
+ },
4145
+ "type": "object",
4146
+ "required": [
4147
+ "name",
4148
+ "description",
4149
+ "fields"
4150
+ ],
4151
+ "title": "ToolDetailResponse"
4152
+ },
4153
+ "ToolListResponse": {
4154
+ "properties": {
4155
+ "tools": {
4156
+ "items": {
4157
+ "$ref": "#/components/schemas/SchemasBubblegumV2ToolsTool"
4158
+ },
4159
+ "type": "array",
4160
+ "title": "Tools"
4161
+ },
4162
+ "page": {
4163
+ "type": "integer",
4164
+ "title": "Page"
4165
+ },
4166
+ "page_size": {
4167
+ "type": "integer",
4168
+ "title": "Page Size"
4169
+ },
4170
+ "total_pages": {
4171
+ "type": "integer",
4172
+ "title": "Total Pages"
4173
+ },
4174
+ "total_count": {
4175
+ "type": "integer",
4176
+ "title": "Total Count"
4177
+ }
4178
+ },
4179
+ "type": "object",
4180
+ "required": [
4181
+ "tools",
4182
+ "page",
4183
+ "page_size",
4184
+ "total_pages",
4185
+ "total_count"
4186
+ ],
4187
+ "title": "ToolListResponse"
4188
+ },
4189
+ "ToolParameterDefault": {
4190
+ "properties": {
4191
+ "transform": {
4192
+ "allOf": [
4193
+ {
4194
+ "$ref": "#/components/schemas/ToolParameterTransform"
4195
+ }
4196
+ ],
4197
+ "description": "The transform to apply to the value before using it as the default."
4198
+ }
4199
+ },
4200
+ "type": "object",
4201
+ "required": [
4202
+ "transform"
4203
+ ],
4204
+ "title": "ToolParameterDefault",
4205
+ "description": "The default value for a parameter of the tool call."
4206
+ },
4207
+ "ToolParameterTransform": {
4208
+ "properties": {
4209
+ "when": {
4210
+ "anyOf": [
4211
+ {
4212
+ "$ref": "#/components/schemas/ToolParameterTransformCondition"
4213
+ },
4214
+ {
4215
+ "type": "null"
4216
+ }
4217
+ ]
4218
+ },
4219
+ "action": {
4220
+ "anyOf": [
4221
+ {
4222
+ "type": "string"
4223
+ },
4224
+ {
4225
+ "type": "null"
4226
+ }
4227
+ ],
4228
+ "title": "Action",
4229
+ "description": "The action to perform on the value: `default` means only set the value (using the `format` field) if the parameter doesn't exist or is empty, `override` means always set the value, and `remove` means remove the parameter value.",
4230
+ "default": "default"
4231
+ },
4232
+ "format": {
4233
+ "anyOf": [
4234
+ {
4235
+ "type": "string"
4236
+ },
4237
+ {
4238
+ "type": "null"
4239
+ }
4240
+ ],
4241
+ "title": "Format"
4242
+ }
4243
+ },
4244
+ "type": "object",
4245
+ "title": "ToolParameterTransform",
4246
+ "description": "A transform to be applied to the value of a parameter."
4247
+ },
4248
+ "ToolParameterTransformCondition": {
4249
+ "properties": {
4250
+ "key": {
4251
+ "type": "string",
4252
+ "title": "Key",
4253
+ "description": "The name of the parameter to check."
4254
+ },
4255
+ "value": {
4256
+ "type": "string",
4257
+ "title": "Value",
4258
+ "description": "The value to check against the parameter."
4259
+ },
4260
+ "operator": {
4261
+ "anyOf": [
4262
+ {
4263
+ "type": "string"
4264
+ },
4265
+ {
4266
+ "type": "null"
4267
+ }
4268
+ ],
4269
+ "title": "Operator"
4270
+ }
4271
+ },
4272
+ "type": "object",
4273
+ "required": [
4274
+ "key",
4275
+ "value"
4276
+ ],
4277
+ "title": "ToolParameterTransformCondition",
4278
+ "description": "A condition to be met for a transform to be applied to the value of a parameter."
4279
+ },
4280
+ "ValidationError": {
4281
+ "properties": {
4282
+ "loc": {
4283
+ "items": {
4284
+ "anyOf": [
4285
+ {
4286
+ "type": "string"
4287
+ },
4288
+ {
4289
+ "type": "integer"
4290
+ }
4291
+ ]
4292
+ },
4293
+ "type": "array",
4294
+ "title": "Location"
4295
+ },
4296
+ "msg": {
4297
+ "type": "string",
4298
+ "title": "Message"
4299
+ },
4300
+ "type": {
4301
+ "type": "string",
4302
+ "title": "Error Type"
4303
+ }
4304
+ },
4305
+ "type": "object",
4306
+ "required": [
4307
+ "loc",
4308
+ "msg",
4309
+ "type"
4310
+ ],
4311
+ "title": "ValidationError"
4312
+ }
4313
+ },
4314
+ "securitySchemes": {
4315
+ "APIKeyHeader": {
4316
+ "type": "apiKey",
4317
+ "in": "header",
4318
+ "name": "Syllable-API-Key"
4319
+ }
4320
+ }
4321
+ },
4322
+ "tags": [
4323
+ {
4324
+ "name": "agents",
4325
+ "description": "Operations related to agents"
4326
+ },
4327
+ {
4328
+ "name": "agents.chats",
4329
+ "description": "Operations for webchat with agents"
4330
+ },
4331
+ {
4332
+ "name": "channels",
4333
+ "description": "Operations related to channels"
4334
+ },
4335
+ {
4336
+ "name": "channels.targets",
4337
+ "description": "Operations related to channel targets"
4338
+ },
4339
+ {
4340
+ "name": "conversations",
4341
+ "description": "Operations related to conversations"
4342
+ },
4343
+ {
4344
+ "name": "dashboard",
4345
+ "description": "Operations related to system dashboard"
4346
+ },
4347
+ {
4348
+ "name": "events",
4349
+ "description": "Operations related to agent events"
4350
+ },
4351
+ {
4352
+ "name": "greetings",
4353
+ "description": "Operations related to conversation greetings"
4354
+ },
4355
+ {
4356
+ "name": "organizations",
4357
+ "description": "Operations related to organizations"
4358
+ },
4359
+ {
4360
+ "name": "prompts",
4361
+ "description": "Operations related to prompts"
4362
+ },
4363
+ {
4364
+ "name": "sessions",
4365
+ "description": "Operations related to agent sessions"
4366
+ },
4367
+ {
4368
+ "name": "tools",
4369
+ "description": "Operations related to tools"
4370
+ }
4371
+ ],
4372
+ "x-speakeasy-name-override": [
4373
+ {
4374
+ "operationId": ".*_list$",
4375
+ "methodNameOverride": "list"
4376
+ },
4377
+ {
4378
+ "operationId": ".*_create$",
4379
+ "methodNameOverride": "create"
4380
+ },
4381
+ {
4382
+ "operationId": ".*_update$",
4383
+ "methodNameOverride": "update"
4384
+ },
4385
+ {
4386
+ "operationId": ".*_delete$",
4387
+ "methodNameOverride": "delete"
4388
+ },
4389
+ {
4390
+ "operationId": ".*_get_by_id$",
4391
+ "methodNameOverride": "get_by_id"
4392
+ },
4393
+ {
4394
+ "operationId": ".*_get_by_name$",
4395
+ "methodNameOverride": "get_by_name"
4396
+ }
4397
+ ]
4398
+ }