@l7mp/tivadar-ai-api-sdk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (477) hide show
  1. package/LICENSE +35 -0
  2. package/README.md +219 -0
  3. package/dist/api-client.d.ts +150 -0
  4. package/dist/api-client.js +173 -0
  5. package/dist/apis/CalendarApi.d.ts +140 -0
  6. package/dist/apis/CalendarApi.js +425 -0
  7. package/dist/apis/ChatAgentsApi.d.ts +78 -0
  8. package/dist/apis/ChatAgentsApi.js +239 -0
  9. package/dist/apis/HistoryApi.d.ts +53 -0
  10. package/dist/apis/HistoryApi.js +151 -0
  11. package/dist/apis/InvitationsApi.d.ts +52 -0
  12. package/dist/apis/InvitationsApi.js +150 -0
  13. package/dist/apis/LLMProvidersApi.d.ts +31 -0
  14. package/dist/apis/LLMProvidersApi.js +72 -0
  15. package/dist/apis/MembersApi.d.ts +29 -0
  16. package/dist/apis/MembersApi.js +70 -0
  17. package/dist/apis/OrganizationsApi.d.ts +37 -0
  18. package/dist/apis/OrganizationsApi.js +104 -0
  19. package/dist/apis/PlaygroundApi.d.ts +30 -0
  20. package/dist/apis/PlaygroundApi.js +74 -0
  21. package/dist/apis/RAGApi.d.ts +132 -0
  22. package/dist/apis/RAGApi.js +433 -0
  23. package/dist/apis/RecordingsApi.d.ts +30 -0
  24. package/dist/apis/RecordingsApi.js +74 -0
  25. package/dist/apis/SIPApi.d.ts +85 -0
  26. package/dist/apis/SIPApi.js +267 -0
  27. package/dist/apis/STTProvidersApi.d.ts +31 -0
  28. package/dist/apis/STTProvidersApi.js +72 -0
  29. package/dist/apis/SubscriptionApi.d.ts +169 -0
  30. package/dist/apis/SubscriptionApi.js +490 -0
  31. package/dist/apis/TTSProvidersApi.d.ts +31 -0
  32. package/dist/apis/TTSProvidersApi.js +72 -0
  33. package/dist/apis/VoiceAgentsApi.d.ts +89 -0
  34. package/dist/apis/VoiceAgentsApi.js +276 -0
  35. package/dist/apis/index.d.ts +15 -0
  36. package/dist/apis/index.js +33 -0
  37. package/dist/esm/api-client.d.ts +150 -0
  38. package/dist/esm/api-client.js +169 -0
  39. package/dist/esm/apis/CalendarApi.d.ts +140 -0
  40. package/dist/esm/apis/CalendarApi.js +421 -0
  41. package/dist/esm/apis/ChatAgentsApi.d.ts +78 -0
  42. package/dist/esm/apis/ChatAgentsApi.js +235 -0
  43. package/dist/esm/apis/HistoryApi.d.ts +53 -0
  44. package/dist/esm/apis/HistoryApi.js +147 -0
  45. package/dist/esm/apis/InvitationsApi.d.ts +52 -0
  46. package/dist/esm/apis/InvitationsApi.js +146 -0
  47. package/dist/esm/apis/LLMProvidersApi.d.ts +31 -0
  48. package/dist/esm/apis/LLMProvidersApi.js +68 -0
  49. package/dist/esm/apis/MembersApi.d.ts +29 -0
  50. package/dist/esm/apis/MembersApi.js +66 -0
  51. package/dist/esm/apis/OrganizationsApi.d.ts +37 -0
  52. package/dist/esm/apis/OrganizationsApi.js +100 -0
  53. package/dist/esm/apis/PlaygroundApi.d.ts +30 -0
  54. package/dist/esm/apis/PlaygroundApi.js +70 -0
  55. package/dist/esm/apis/RAGApi.d.ts +132 -0
  56. package/dist/esm/apis/RAGApi.js +429 -0
  57. package/dist/esm/apis/RecordingsApi.d.ts +30 -0
  58. package/dist/esm/apis/RecordingsApi.js +70 -0
  59. package/dist/esm/apis/SIPApi.d.ts +85 -0
  60. package/dist/esm/apis/SIPApi.js +263 -0
  61. package/dist/esm/apis/STTProvidersApi.d.ts +31 -0
  62. package/dist/esm/apis/STTProvidersApi.js +68 -0
  63. package/dist/esm/apis/SubscriptionApi.d.ts +169 -0
  64. package/dist/esm/apis/SubscriptionApi.js +486 -0
  65. package/dist/esm/apis/TTSProvidersApi.d.ts +31 -0
  66. package/dist/esm/apis/TTSProvidersApi.js +68 -0
  67. package/dist/esm/apis/VoiceAgentsApi.d.ts +89 -0
  68. package/dist/esm/apis/VoiceAgentsApi.js +272 -0
  69. package/dist/esm/apis/index.d.ts +15 -0
  70. package/dist/esm/apis/index.js +17 -0
  71. package/dist/esm/index.d.ts +15 -0
  72. package/dist/esm/index.js +17 -0
  73. package/dist/esm/models/BillingPortalRequest.d.ts +32 -0
  74. package/dist/esm/models/BillingPortalRequest.js +43 -0
  75. package/dist/esm/models/BillingPortalResponse.d.ts +32 -0
  76. package/dist/esm/models/BillingPortalResponse.js +43 -0
  77. package/dist/esm/models/Calendar.d.ts +56 -0
  78. package/dist/esm/models/Calendar.js +59 -0
  79. package/dist/esm/models/CalendarEvent.d.ts +62 -0
  80. package/dist/esm/models/CalendarEvent.js +61 -0
  81. package/dist/esm/models/CalendarEventCreate.d.ts +56 -0
  82. package/dist/esm/models/CalendarEventCreate.js +57 -0
  83. package/dist/esm/models/CalendarEventResponse.d.ts +40 -0
  84. package/dist/esm/models/CalendarEventResponse.js +45 -0
  85. package/dist/esm/models/CalendarEventUpdate.d.ts +56 -0
  86. package/dist/esm/models/CalendarEventUpdate.js +49 -0
  87. package/dist/esm/models/CalendarListResponse.d.ts +33 -0
  88. package/dist/esm/models/CalendarListResponse.js +44 -0
  89. package/dist/esm/models/CalendarWithAgent.d.ts +44 -0
  90. package/dist/esm/models/CalendarWithAgent.js +51 -0
  91. package/dist/esm/models/CancelSubscriptionRequest.d.ts +38 -0
  92. package/dist/esm/models/CancelSubscriptionRequest.js +43 -0
  93. package/dist/esm/models/CancelSubscriptionResponse.d.ts +56 -0
  94. package/dist/esm/models/CancelSubscriptionResponse.js +49 -0
  95. package/dist/esm/models/ChatAgent.d.ts +88 -0
  96. package/dist/esm/models/ChatAgent.js +66 -0
  97. package/dist/esm/models/ChatAgentCreate.d.ts +64 -0
  98. package/dist/esm/models/ChatAgentCreate.js +55 -0
  99. package/dist/esm/models/ChatAgentUpdate.d.ts +64 -0
  100. package/dist/esm/models/ChatAgentUpdate.js +53 -0
  101. package/dist/esm/models/CheckoutSessionResponse.d.ts +38 -0
  102. package/dist/esm/models/CheckoutSessionResponse.js +47 -0
  103. package/dist/esm/models/CreateCheckoutSessionRequest.d.ts +50 -0
  104. package/dist/esm/models/CreateCheckoutSessionRequest.js +51 -0
  105. package/dist/esm/models/CreditBalance.d.ts +68 -0
  106. package/dist/esm/models/CreditBalance.js +61 -0
  107. package/dist/esm/models/CreditTransaction.d.ts +98 -0
  108. package/dist/esm/models/CreditTransaction.js +84 -0
  109. package/dist/esm/models/CreditTransactionsResponse.d.ts +39 -0
  110. package/dist/esm/models/CreditTransactionsResponse.js +44 -0
  111. package/dist/esm/models/DispatchRuleCreate.d.ts +38 -0
  112. package/dist/esm/models/DispatchRuleCreate.js +47 -0
  113. package/dist/esm/models/HistoryConversation.d.ts +81 -0
  114. package/dist/esm/models/HistoryConversation.js +58 -0
  115. package/dist/esm/models/HistoryMessage.d.ts +44 -0
  116. package/dist/esm/models/HistoryMessage.js +45 -0
  117. package/dist/esm/models/HistorySummary.d.ts +74 -0
  118. package/dist/esm/models/HistorySummary.js +55 -0
  119. package/dist/esm/models/InvitationAccept.d.ts +32 -0
  120. package/dist/esm/models/InvitationAccept.js +43 -0
  121. package/dist/esm/models/InvitationCreate.d.ts +46 -0
  122. package/dist/esm/models/InvitationCreate.js +54 -0
  123. package/dist/esm/models/InvitationResponse.d.ts +38 -0
  124. package/dist/esm/models/InvitationResponse.js +43 -0
  125. package/dist/esm/models/LlmAgent.d.ts +87 -0
  126. package/dist/esm/models/LlmAgent.js +60 -0
  127. package/dist/esm/models/LlmAgentInput.d.ts +87 -0
  128. package/dist/esm/models/LlmAgentInput.js +62 -0
  129. package/dist/esm/models/LlmAgentUpdateInput.d.ts +87 -0
  130. package/dist/esm/models/LlmAgentUpdateInput.js +60 -0
  131. package/dist/esm/models/LlmConfig.d.ts +44 -0
  132. package/dist/esm/models/LlmConfig.js +45 -0
  133. package/dist/esm/models/Member.d.ts +62 -0
  134. package/dist/esm/models/Member.js +57 -0
  135. package/dist/esm/models/Organization.d.ts +56 -0
  136. package/dist/esm/models/Organization.js +51 -0
  137. package/dist/esm/models/OrganizationCreate.d.ts +38 -0
  138. package/dist/esm/models/OrganizationCreate.js +45 -0
  139. package/dist/esm/models/OrganizationUpdate.d.ts +38 -0
  140. package/dist/esm/models/OrganizationUpdate.js +43 -0
  141. package/dist/esm/models/OrganizationsOrganizationIdConversationsGet200Response.d.ts +39 -0
  142. package/dist/esm/models/OrganizationsOrganizationIdConversationsGet200Response.js +44 -0
  143. package/dist/esm/models/OrganizationsOrganizationIdLlmProvidersGet200ResponseInner.d.ts +74 -0
  144. package/dist/esm/models/OrganizationsOrganizationIdLlmProvidersGet200ResponseInner.js +55 -0
  145. package/dist/esm/models/OrganizationsOrganizationIdSipDispatchRulesPost200Response.d.ts +32 -0
  146. package/dist/esm/models/OrganizationsOrganizationIdSipDispatchRulesPost200Response.js +41 -0
  147. package/dist/esm/models/OrganizationsOrganizationIdSttProvidersGet200ResponseInner.d.ts +44 -0
  148. package/dist/esm/models/OrganizationsOrganizationIdSttProvidersGet200ResponseInner.js +45 -0
  149. package/dist/esm/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInner.d.ts +45 -0
  150. package/dist/esm/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInner.js +46 -0
  151. package/dist/esm/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerVoicesInner.d.ts +44 -0
  152. package/dist/esm/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerVoicesInner.js +45 -0
  153. package/dist/esm/models/OrganizationsOrganizationIdVoiceAgentsBasicGet200ResponseInner.d.ts +38 -0
  154. package/dist/esm/models/OrganizationsOrganizationIdVoiceAgentsBasicGet200ResponseInner.js +43 -0
  155. package/dist/esm/models/PauseSubscriptionRequest.d.ts +32 -0
  156. package/dist/esm/models/PauseSubscriptionRequest.js +41 -0
  157. package/dist/esm/models/PauseSubscriptionResponse.d.ts +51 -0
  158. package/dist/esm/models/PauseSubscriptionResponse.js +48 -0
  159. package/dist/esm/models/PauseSubscriptionResponsePauseCollection.d.ts +38 -0
  160. package/dist/esm/models/PauseSubscriptionResponsePauseCollection.js +43 -0
  161. package/dist/esm/models/PhoneNumber.d.ts +50 -0
  162. package/dist/esm/models/PhoneNumber.js +47 -0
  163. package/dist/esm/models/RagConfig.d.ts +112 -0
  164. package/dist/esm/models/RagConfig.js +87 -0
  165. package/dist/esm/models/RagConfigCreate.d.ts +38 -0
  166. package/dist/esm/models/RagConfigCreate.js +45 -0
  167. package/dist/esm/models/RagDocument.d.ts +104 -0
  168. package/dist/esm/models/RagDocument.js +78 -0
  169. package/dist/esm/models/RagDocumentChunk.d.ts +52 -0
  170. package/dist/esm/models/RagDocumentChunk.js +51 -0
  171. package/dist/esm/models/RagDocumentChunkList.d.ts +51 -0
  172. package/dist/esm/models/RagDocumentChunkList.js +56 -0
  173. package/dist/esm/models/RagDocumentList.d.ts +39 -0
  174. package/dist/esm/models/RagDocumentList.js +48 -0
  175. package/dist/esm/models/RecordingSignedUrl.d.ts +32 -0
  176. package/dist/esm/models/RecordingSignedUrl.js +41 -0
  177. package/dist/esm/models/ResumeSubscriptionResponse.d.ts +50 -0
  178. package/dist/esm/models/ResumeSubscriptionResponse.js +47 -0
  179. package/dist/esm/models/SandboxToken.d.ts +32 -0
  180. package/dist/esm/models/SandboxToken.js +41 -0
  181. package/dist/esm/models/SipTrunk.d.ts +62 -0
  182. package/dist/esm/models/SipTrunk.js +57 -0
  183. package/dist/esm/models/SipTrunkCreate.d.ts +32 -0
  184. package/dist/esm/models/SipTrunkCreate.js +43 -0
  185. package/dist/esm/models/SipTrunkWithAgent.d.ts +69 -0
  186. package/dist/esm/models/SipTrunkWithAgent.js +60 -0
  187. package/dist/esm/models/SipTrunkWithAgentAllOfAgents.d.ts +32 -0
  188. package/dist/esm/models/SipTrunkWithAgentAllOfAgents.js +41 -0
  189. package/dist/esm/models/SubscriptionDetails.d.ts +142 -0
  190. package/dist/esm/models/SubscriptionDetails.js +86 -0
  191. package/dist/esm/models/SubscriptionStatus.d.ts +53 -0
  192. package/dist/esm/models/SubscriptionStatus.js +52 -0
  193. package/dist/esm/models/SubscriptionStatusPlan.d.ts +56 -0
  194. package/dist/esm/models/SubscriptionStatusPlan.js +49 -0
  195. package/dist/esm/models/SubscriptionStatusService.d.ts +44 -0
  196. package/dist/esm/models/SubscriptionStatusService.js +45 -0
  197. package/dist/esm/models/SubscriptionStatusSubscription.d.ts +76 -0
  198. package/dist/esm/models/SubscriptionStatusSubscription.js +64 -0
  199. package/dist/esm/models/ToolConfig.d.ts +46 -0
  200. package/dist/esm/models/ToolConfig.js +49 -0
  201. package/dist/esm/models/UnpauseSubscriptionResponse.d.ts +50 -0
  202. package/dist/esm/models/UnpauseSubscriptionResponse.js +47 -0
  203. package/dist/esm/models/UpdatePlanRequest.d.ts +44 -0
  204. package/dist/esm/models/UpdatePlanRequest.js +45 -0
  205. package/dist/esm/models/UpdatePlanResponse.d.ts +50 -0
  206. package/dist/esm/models/UpdatePlanResponse.js +47 -0
  207. package/dist/esm/models/VoiceAgent.d.ts +118 -0
  208. package/dist/esm/models/VoiceAgent.js +75 -0
  209. package/dist/esm/models/VoiceAgentCreate.d.ts +106 -0
  210. package/dist/esm/models/VoiceAgentCreate.js +69 -0
  211. package/dist/esm/models/VoiceAgentMetadata.d.ts +38 -0
  212. package/dist/esm/models/VoiceAgentMetadata.js +43 -0
  213. package/dist/esm/models/VoiceAgentUpdate.d.ts +100 -0
  214. package/dist/esm/models/VoiceAgentUpdate.js +65 -0
  215. package/dist/esm/models/VoiceAgentWithSipTrunks.d.ts +125 -0
  216. package/dist/esm/models/VoiceAgentWithSipTrunks.js +78 -0
  217. package/dist/esm/models/VoiceAgentWithSipTrunksAllOfSipTrunks.d.ts +32 -0
  218. package/dist/esm/models/VoiceAgentWithSipTrunksAllOfSipTrunks.js +41 -0
  219. package/dist/esm/models/WidgetConfig.d.ts +65 -0
  220. package/dist/esm/models/WidgetConfig.js +57 -0
  221. package/dist/esm/models/WidgetPosition.d.ts +27 -0
  222. package/dist/esm/models/WidgetPosition.js +45 -0
  223. package/dist/esm/models/index.d.ts +74 -0
  224. package/dist/esm/models/index.js +76 -0
  225. package/dist/esm/runtime.d.ts +184 -0
  226. package/dist/esm/runtime.js +334 -0
  227. package/dist/index.d.ts +15 -0
  228. package/dist/index.js +33 -0
  229. package/dist/models/BillingPortalRequest.d.ts +32 -0
  230. package/dist/models/BillingPortalRequest.js +50 -0
  231. package/dist/models/BillingPortalResponse.d.ts +32 -0
  232. package/dist/models/BillingPortalResponse.js +50 -0
  233. package/dist/models/Calendar.d.ts +56 -0
  234. package/dist/models/Calendar.js +66 -0
  235. package/dist/models/CalendarEvent.d.ts +62 -0
  236. package/dist/models/CalendarEvent.js +68 -0
  237. package/dist/models/CalendarEventCreate.d.ts +56 -0
  238. package/dist/models/CalendarEventCreate.js +64 -0
  239. package/dist/models/CalendarEventResponse.d.ts +40 -0
  240. package/dist/models/CalendarEventResponse.js +52 -0
  241. package/dist/models/CalendarEventUpdate.d.ts +56 -0
  242. package/dist/models/CalendarEventUpdate.js +56 -0
  243. package/dist/models/CalendarListResponse.d.ts +33 -0
  244. package/dist/models/CalendarListResponse.js +51 -0
  245. package/dist/models/CalendarWithAgent.d.ts +44 -0
  246. package/dist/models/CalendarWithAgent.js +58 -0
  247. package/dist/models/CancelSubscriptionRequest.d.ts +38 -0
  248. package/dist/models/CancelSubscriptionRequest.js +50 -0
  249. package/dist/models/CancelSubscriptionResponse.d.ts +56 -0
  250. package/dist/models/CancelSubscriptionResponse.js +56 -0
  251. package/dist/models/ChatAgent.d.ts +88 -0
  252. package/dist/models/ChatAgent.js +73 -0
  253. package/dist/models/ChatAgentCreate.d.ts +64 -0
  254. package/dist/models/ChatAgentCreate.js +62 -0
  255. package/dist/models/ChatAgentUpdate.d.ts +64 -0
  256. package/dist/models/ChatAgentUpdate.js +60 -0
  257. package/dist/models/CheckoutSessionResponse.d.ts +38 -0
  258. package/dist/models/CheckoutSessionResponse.js +54 -0
  259. package/dist/models/CreateCheckoutSessionRequest.d.ts +50 -0
  260. package/dist/models/CreateCheckoutSessionRequest.js +58 -0
  261. package/dist/models/CreditBalance.d.ts +68 -0
  262. package/dist/models/CreditBalance.js +68 -0
  263. package/dist/models/CreditTransaction.d.ts +98 -0
  264. package/dist/models/CreditTransaction.js +92 -0
  265. package/dist/models/CreditTransactionsResponse.d.ts +39 -0
  266. package/dist/models/CreditTransactionsResponse.js +51 -0
  267. package/dist/models/DispatchRuleCreate.d.ts +38 -0
  268. package/dist/models/DispatchRuleCreate.js +54 -0
  269. package/dist/models/HistoryConversation.d.ts +81 -0
  270. package/dist/models/HistoryConversation.js +65 -0
  271. package/dist/models/HistoryMessage.d.ts +44 -0
  272. package/dist/models/HistoryMessage.js +52 -0
  273. package/dist/models/HistorySummary.d.ts +74 -0
  274. package/dist/models/HistorySummary.js +62 -0
  275. package/dist/models/InvitationAccept.d.ts +32 -0
  276. package/dist/models/InvitationAccept.js +50 -0
  277. package/dist/models/InvitationCreate.d.ts +46 -0
  278. package/dist/models/InvitationCreate.js +62 -0
  279. package/dist/models/InvitationResponse.d.ts +38 -0
  280. package/dist/models/InvitationResponse.js +50 -0
  281. package/dist/models/LlmAgent.d.ts +87 -0
  282. package/dist/models/LlmAgent.js +67 -0
  283. package/dist/models/LlmAgentInput.d.ts +87 -0
  284. package/dist/models/LlmAgentInput.js +69 -0
  285. package/dist/models/LlmAgentUpdateInput.d.ts +87 -0
  286. package/dist/models/LlmAgentUpdateInput.js +67 -0
  287. package/dist/models/LlmConfig.d.ts +44 -0
  288. package/dist/models/LlmConfig.js +52 -0
  289. package/dist/models/Member.d.ts +62 -0
  290. package/dist/models/Member.js +64 -0
  291. package/dist/models/Organization.d.ts +56 -0
  292. package/dist/models/Organization.js +58 -0
  293. package/dist/models/OrganizationCreate.d.ts +38 -0
  294. package/dist/models/OrganizationCreate.js +52 -0
  295. package/dist/models/OrganizationUpdate.d.ts +38 -0
  296. package/dist/models/OrganizationUpdate.js +50 -0
  297. package/dist/models/OrganizationsOrganizationIdConversationsGet200Response.d.ts +39 -0
  298. package/dist/models/OrganizationsOrganizationIdConversationsGet200Response.js +51 -0
  299. package/dist/models/OrganizationsOrganizationIdLlmProvidersGet200ResponseInner.d.ts +74 -0
  300. package/dist/models/OrganizationsOrganizationIdLlmProvidersGet200ResponseInner.js +62 -0
  301. package/dist/models/OrganizationsOrganizationIdSipDispatchRulesPost200Response.d.ts +32 -0
  302. package/dist/models/OrganizationsOrganizationIdSipDispatchRulesPost200Response.js +48 -0
  303. package/dist/models/OrganizationsOrganizationIdSttProvidersGet200ResponseInner.d.ts +44 -0
  304. package/dist/models/OrganizationsOrganizationIdSttProvidersGet200ResponseInner.js +52 -0
  305. package/dist/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInner.d.ts +45 -0
  306. package/dist/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInner.js +53 -0
  307. package/dist/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerVoicesInner.d.ts +44 -0
  308. package/dist/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerVoicesInner.js +52 -0
  309. package/dist/models/OrganizationsOrganizationIdVoiceAgentsBasicGet200ResponseInner.d.ts +38 -0
  310. package/dist/models/OrganizationsOrganizationIdVoiceAgentsBasicGet200ResponseInner.js +50 -0
  311. package/dist/models/PauseSubscriptionRequest.d.ts +32 -0
  312. package/dist/models/PauseSubscriptionRequest.js +48 -0
  313. package/dist/models/PauseSubscriptionResponse.d.ts +51 -0
  314. package/dist/models/PauseSubscriptionResponse.js +55 -0
  315. package/dist/models/PauseSubscriptionResponsePauseCollection.d.ts +38 -0
  316. package/dist/models/PauseSubscriptionResponsePauseCollection.js +50 -0
  317. package/dist/models/PhoneNumber.d.ts +50 -0
  318. package/dist/models/PhoneNumber.js +54 -0
  319. package/dist/models/RagConfig.d.ts +112 -0
  320. package/dist/models/RagConfig.js +94 -0
  321. package/dist/models/RagConfigCreate.d.ts +38 -0
  322. package/dist/models/RagConfigCreate.js +52 -0
  323. package/dist/models/RagDocument.d.ts +104 -0
  324. package/dist/models/RagDocument.js +86 -0
  325. package/dist/models/RagDocumentChunk.d.ts +52 -0
  326. package/dist/models/RagDocumentChunk.js +58 -0
  327. package/dist/models/RagDocumentChunkList.d.ts +51 -0
  328. package/dist/models/RagDocumentChunkList.js +63 -0
  329. package/dist/models/RagDocumentList.d.ts +39 -0
  330. package/dist/models/RagDocumentList.js +55 -0
  331. package/dist/models/RecordingSignedUrl.d.ts +32 -0
  332. package/dist/models/RecordingSignedUrl.js +48 -0
  333. package/dist/models/ResumeSubscriptionResponse.d.ts +50 -0
  334. package/dist/models/ResumeSubscriptionResponse.js +54 -0
  335. package/dist/models/SandboxToken.d.ts +32 -0
  336. package/dist/models/SandboxToken.js +48 -0
  337. package/dist/models/SipTrunk.d.ts +62 -0
  338. package/dist/models/SipTrunk.js +64 -0
  339. package/dist/models/SipTrunkCreate.d.ts +32 -0
  340. package/dist/models/SipTrunkCreate.js +50 -0
  341. package/dist/models/SipTrunkWithAgent.d.ts +69 -0
  342. package/dist/models/SipTrunkWithAgent.js +67 -0
  343. package/dist/models/SipTrunkWithAgentAllOfAgents.d.ts +32 -0
  344. package/dist/models/SipTrunkWithAgentAllOfAgents.js +48 -0
  345. package/dist/models/SubscriptionDetails.d.ts +142 -0
  346. package/dist/models/SubscriptionDetails.js +94 -0
  347. package/dist/models/SubscriptionStatus.d.ts +53 -0
  348. package/dist/models/SubscriptionStatus.js +59 -0
  349. package/dist/models/SubscriptionStatusPlan.d.ts +56 -0
  350. package/dist/models/SubscriptionStatusPlan.js +56 -0
  351. package/dist/models/SubscriptionStatusService.d.ts +44 -0
  352. package/dist/models/SubscriptionStatusService.js +52 -0
  353. package/dist/models/SubscriptionStatusSubscription.d.ts +76 -0
  354. package/dist/models/SubscriptionStatusSubscription.js +72 -0
  355. package/dist/models/ToolConfig.d.ts +46 -0
  356. package/dist/models/ToolConfig.js +56 -0
  357. package/dist/models/UnpauseSubscriptionResponse.d.ts +50 -0
  358. package/dist/models/UnpauseSubscriptionResponse.js +54 -0
  359. package/dist/models/UpdatePlanRequest.d.ts +44 -0
  360. package/dist/models/UpdatePlanRequest.js +52 -0
  361. package/dist/models/UpdatePlanResponse.d.ts +50 -0
  362. package/dist/models/UpdatePlanResponse.js +54 -0
  363. package/dist/models/VoiceAgent.d.ts +118 -0
  364. package/dist/models/VoiceAgent.js +82 -0
  365. package/dist/models/VoiceAgentCreate.d.ts +106 -0
  366. package/dist/models/VoiceAgentCreate.js +76 -0
  367. package/dist/models/VoiceAgentMetadata.d.ts +38 -0
  368. package/dist/models/VoiceAgentMetadata.js +50 -0
  369. package/dist/models/VoiceAgentUpdate.d.ts +100 -0
  370. package/dist/models/VoiceAgentUpdate.js +72 -0
  371. package/dist/models/VoiceAgentWithSipTrunks.d.ts +125 -0
  372. package/dist/models/VoiceAgentWithSipTrunks.js +85 -0
  373. package/dist/models/VoiceAgentWithSipTrunksAllOfSipTrunks.d.ts +32 -0
  374. package/dist/models/VoiceAgentWithSipTrunksAllOfSipTrunks.js +48 -0
  375. package/dist/models/WidgetConfig.d.ts +65 -0
  376. package/dist/models/WidgetConfig.js +65 -0
  377. package/dist/models/WidgetPosition.d.ts +27 -0
  378. package/dist/models/WidgetPosition.js +53 -0
  379. package/dist/models/index.d.ts +74 -0
  380. package/dist/models/index.js +92 -0
  381. package/dist/runtime.d.ts +184 -0
  382. package/dist/runtime.js +350 -0
  383. package/package.json +43 -0
  384. package/src/api-client.ts +324 -0
  385. package/src/apis/CalendarApi.ts +601 -0
  386. package/src/apis/ChatAgentsApi.ts +329 -0
  387. package/src/apis/HistoryApi.ts +197 -0
  388. package/src/apis/InvitationsApi.ts +196 -0
  389. package/src/apis/LLMProvidersApi.ts +81 -0
  390. package/src/apis/MembersApi.ts +79 -0
  391. package/src/apis/OrganizationsApi.ts +121 -0
  392. package/src/apis/PlaygroundApi.ts +88 -0
  393. package/src/apis/RAGApi.ts +613 -0
  394. package/src/apis/RecordingsApi.ts +88 -0
  395. package/src/apis/SIPApi.ts +362 -0
  396. package/src/apis/STTProvidersApi.ts +81 -0
  397. package/src/apis/SubscriptionApi.ts +692 -0
  398. package/src/apis/TTSProvidersApi.ts +81 -0
  399. package/src/apis/VoiceAgentsApi.ts +384 -0
  400. package/src/apis/index.ts +17 -0
  401. package/src/index.ts +19 -0
  402. package/src/models/BillingPortalRequest.ts +66 -0
  403. package/src/models/BillingPortalResponse.ts +66 -0
  404. package/src/models/Calendar.ts +102 -0
  405. package/src/models/CalendarEvent.ts +110 -0
  406. package/src/models/CalendarEventCreate.ts +101 -0
  407. package/src/models/CalendarEventResponse.ts +88 -0
  408. package/src/models/CalendarEventUpdate.ts +97 -0
  409. package/src/models/CalendarListResponse.ts +74 -0
  410. package/src/models/CalendarWithAgent.ts +84 -0
  411. package/src/models/CancelSubscriptionRequest.ts +73 -0
  412. package/src/models/CancelSubscriptionResponse.ts +97 -0
  413. package/src/models/ChatAgent.ts +154 -0
  414. package/src/models/ChatAgentCreate.ts +121 -0
  415. package/src/models/ChatAgentUpdate.ts +120 -0
  416. package/src/models/CheckoutSessionResponse.ts +75 -0
  417. package/src/models/CreateCheckoutSessionRequest.ts +91 -0
  418. package/src/models/CreditBalance.ts +117 -0
  419. package/src/models/CreditTransaction.ts +159 -0
  420. package/src/models/CreditTransactionsResponse.ts +81 -0
  421. package/src/models/DispatchRuleCreate.ts +75 -0
  422. package/src/models/HistoryConversation.ts +137 -0
  423. package/src/models/HistoryMessage.ts +81 -0
  424. package/src/models/HistorySummary.ts +121 -0
  425. package/src/models/InvitationAccept.ts +66 -0
  426. package/src/models/InvitationCreate.ts +86 -0
  427. package/src/models/InvitationResponse.ts +73 -0
  428. package/src/models/LlmAgent.ts +145 -0
  429. package/src/models/LlmAgentInput.ts +146 -0
  430. package/src/models/LlmAgentUpdateInput.ts +145 -0
  431. package/src/models/Member.ts +108 -0
  432. package/src/models/Organization.ts +98 -0
  433. package/src/models/OrganizationCreate.ts +74 -0
  434. package/src/models/OrganizationUpdate.ts +73 -0
  435. package/src/models/OrganizationsOrganizationIdConversationsGet200Response.ts +81 -0
  436. package/src/models/OrganizationsOrganizationIdLlmProvidersGet200ResponseInner.ts +121 -0
  437. package/src/models/OrganizationsOrganizationIdSipDispatchRulesPost200Response.ts +65 -0
  438. package/src/models/OrganizationsOrganizationIdSttProvidersGet200ResponseInner.ts +81 -0
  439. package/src/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInner.ts +89 -0
  440. package/src/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerVoicesInner.ts +81 -0
  441. package/src/models/OrganizationsOrganizationIdVoiceAgentsBasicGet200ResponseInner.ts +73 -0
  442. package/src/models/PauseSubscriptionRequest.ts +65 -0
  443. package/src/models/PauseSubscriptionResponse.ts +97 -0
  444. package/src/models/PauseSubscriptionResponsePauseCollection.ts +73 -0
  445. package/src/models/PhoneNumber.ts +89 -0
  446. package/src/models/RagConfig.ts +179 -0
  447. package/src/models/RagConfigCreate.ts +74 -0
  448. package/src/models/RagDocument.ts +162 -0
  449. package/src/models/RagDocumentChunk.ts +91 -0
  450. package/src/models/RagDocumentChunkList.ts +101 -0
  451. package/src/models/RagDocumentList.ts +83 -0
  452. package/src/models/RecordingSignedUrl.ts +65 -0
  453. package/src/models/ResumeSubscriptionResponse.ts +89 -0
  454. package/src/models/SandboxToken.ts +65 -0
  455. package/src/models/SipTrunk.ts +108 -0
  456. package/src/models/SipTrunkCreate.ts +66 -0
  457. package/src/models/SipTrunkWithAgent.ts +124 -0
  458. package/src/models/SipTrunkWithAgentAllOfAgents.ts +65 -0
  459. package/src/models/SubscriptionDetails.ts +210 -0
  460. package/src/models/SubscriptionStatus.ts +112 -0
  461. package/src/models/SubscriptionStatusPlan.ts +97 -0
  462. package/src/models/SubscriptionStatusService.ts +81 -0
  463. package/src/models/SubscriptionStatusSubscription.ts +122 -0
  464. package/src/models/ToolConfig.ts +83 -0
  465. package/src/models/UnpauseSubscriptionResponse.ts +89 -0
  466. package/src/models/UpdatePlanRequest.ts +81 -0
  467. package/src/models/UpdatePlanResponse.ts +89 -0
  468. package/src/models/VoiceAgent.ts +194 -0
  469. package/src/models/VoiceAgentCreate.ts +177 -0
  470. package/src/models/VoiceAgentMetadata.ts +73 -0
  471. package/src/models/VoiceAgentUpdate.ts +168 -0
  472. package/src/models/VoiceAgentWithSipTrunks.ts +209 -0
  473. package/src/models/VoiceAgentWithSipTrunksAllOfSipTrunks.ts +65 -0
  474. package/src/models/WidgetConfig.ts +116 -0
  475. package/src/models/WidgetPosition.ts +55 -0
  476. package/src/models/index.ts +76 -0
  477. package/src/runtime.ts +432 -0
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Tivadar AI Backend API
3
+ * Unified REST API for Tivadar AI Voice Agents platform
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { WidgetConfig } from './WidgetConfig';
13
+ import type { LlmAgentInput } from './LlmAgentInput';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ChatAgentCreate
18
+ */
19
+ export interface ChatAgentCreate {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof ChatAgentCreate
24
+ */
25
+ name: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof ChatAgentCreate
30
+ */
31
+ system_prompt?: string;
32
+ /**
33
+ *
34
+ * @type {Array<string>}
35
+ * @memberof ChatAgentCreate
36
+ */
37
+ allowed_domains?: Array<string>;
38
+ /**
39
+ *
40
+ * @type {number}
41
+ * @memberof ChatAgentCreate
42
+ */
43
+ rate_limit?: number;
44
+ /**
45
+ *
46
+ * @type {WidgetConfig}
47
+ * @memberof ChatAgentCreate
48
+ */
49
+ widget_config?: WidgetConfig;
50
+ /**
51
+ *
52
+ * @type {LlmAgentInput}
53
+ * @memberof ChatAgentCreate
54
+ */
55
+ llm_agent?: LlmAgentInput;
56
+ }
57
+ /**
58
+ * Check if a given object implements the ChatAgentCreate interface.
59
+ */
60
+ export declare function instanceOfChatAgentCreate(value: object): value is ChatAgentCreate;
61
+ export declare function ChatAgentCreateFromJSON(json: any): ChatAgentCreate;
62
+ export declare function ChatAgentCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatAgentCreate;
63
+ export declare function ChatAgentCreateToJSON(json: any): ChatAgentCreate;
64
+ export declare function ChatAgentCreateToJSONTyped(value?: ChatAgentCreate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Tivadar AI Backend API
6
+ * Unified REST API for Tivadar AI Voice Agents platform
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfChatAgentCreate = instanceOfChatAgentCreate;
17
+ exports.ChatAgentCreateFromJSON = ChatAgentCreateFromJSON;
18
+ exports.ChatAgentCreateFromJSONTyped = ChatAgentCreateFromJSONTyped;
19
+ exports.ChatAgentCreateToJSON = ChatAgentCreateToJSON;
20
+ exports.ChatAgentCreateToJSONTyped = ChatAgentCreateToJSONTyped;
21
+ const WidgetConfig_1 = require("./WidgetConfig");
22
+ const LlmAgentInput_1 = require("./LlmAgentInput");
23
+ /**
24
+ * Check if a given object implements the ChatAgentCreate interface.
25
+ */
26
+ function instanceOfChatAgentCreate(value) {
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function ChatAgentCreateFromJSON(json) {
32
+ return ChatAgentCreateFromJSONTyped(json, false);
33
+ }
34
+ function ChatAgentCreateFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'name': json['name'],
40
+ 'system_prompt': json['system_prompt'] == null ? undefined : json['system_prompt'],
41
+ 'allowed_domains': json['allowed_domains'] == null ? undefined : json['allowed_domains'],
42
+ 'rate_limit': json['rate_limit'] == null ? undefined : json['rate_limit'],
43
+ 'widget_config': json['widget_config'] == null ? undefined : (0, WidgetConfig_1.WidgetConfigFromJSON)(json['widget_config']),
44
+ 'llm_agent': json['llm_agent'] == null ? undefined : (0, LlmAgentInput_1.LlmAgentInputFromJSON)(json['llm_agent']),
45
+ };
46
+ }
47
+ function ChatAgentCreateToJSON(json) {
48
+ return ChatAgentCreateToJSONTyped(json, false);
49
+ }
50
+ function ChatAgentCreateToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'name': value['name'],
56
+ 'system_prompt': value['system_prompt'],
57
+ 'allowed_domains': value['allowed_domains'],
58
+ 'rate_limit': value['rate_limit'],
59
+ 'widget_config': (0, WidgetConfig_1.WidgetConfigToJSON)(value['widget_config']),
60
+ 'llm_agent': (0, LlmAgentInput_1.LlmAgentInputToJSON)(value['llm_agent']),
61
+ };
62
+ }
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Tivadar AI Backend API
3
+ * Unified REST API for Tivadar AI Voice Agents platform
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { WidgetConfig } from './WidgetConfig';
13
+ import type { LlmAgentUpdateInput } from './LlmAgentUpdateInput';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ChatAgentUpdate
18
+ */
19
+ export interface ChatAgentUpdate {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof ChatAgentUpdate
24
+ */
25
+ name?: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof ChatAgentUpdate
30
+ */
31
+ system_prompt?: string;
32
+ /**
33
+ *
34
+ * @type {Array<string>}
35
+ * @memberof ChatAgentUpdate
36
+ */
37
+ allowed_domains?: Array<string>;
38
+ /**
39
+ *
40
+ * @type {number}
41
+ * @memberof ChatAgentUpdate
42
+ */
43
+ rate_limit?: number;
44
+ /**
45
+ *
46
+ * @type {WidgetConfig}
47
+ * @memberof ChatAgentUpdate
48
+ */
49
+ widget_config?: WidgetConfig;
50
+ /**
51
+ *
52
+ * @type {LlmAgentUpdateInput}
53
+ * @memberof ChatAgentUpdate
54
+ */
55
+ llm_agent?: LlmAgentUpdateInput;
56
+ }
57
+ /**
58
+ * Check if a given object implements the ChatAgentUpdate interface.
59
+ */
60
+ export declare function instanceOfChatAgentUpdate(value: object): value is ChatAgentUpdate;
61
+ export declare function ChatAgentUpdateFromJSON(json: any): ChatAgentUpdate;
62
+ export declare function ChatAgentUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatAgentUpdate;
63
+ export declare function ChatAgentUpdateToJSON(json: any): ChatAgentUpdate;
64
+ export declare function ChatAgentUpdateToJSONTyped(value?: ChatAgentUpdate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Tivadar AI Backend API
6
+ * Unified REST API for Tivadar AI Voice Agents platform
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfChatAgentUpdate = instanceOfChatAgentUpdate;
17
+ exports.ChatAgentUpdateFromJSON = ChatAgentUpdateFromJSON;
18
+ exports.ChatAgentUpdateFromJSONTyped = ChatAgentUpdateFromJSONTyped;
19
+ exports.ChatAgentUpdateToJSON = ChatAgentUpdateToJSON;
20
+ exports.ChatAgentUpdateToJSONTyped = ChatAgentUpdateToJSONTyped;
21
+ const WidgetConfig_1 = require("./WidgetConfig");
22
+ const LlmAgentUpdateInput_1 = require("./LlmAgentUpdateInput");
23
+ /**
24
+ * Check if a given object implements the ChatAgentUpdate interface.
25
+ */
26
+ function instanceOfChatAgentUpdate(value) {
27
+ return true;
28
+ }
29
+ function ChatAgentUpdateFromJSON(json) {
30
+ return ChatAgentUpdateFromJSONTyped(json, false);
31
+ }
32
+ function ChatAgentUpdateFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'name': json['name'] == null ? undefined : json['name'],
38
+ 'system_prompt': json['system_prompt'] == null ? undefined : json['system_prompt'],
39
+ 'allowed_domains': json['allowed_domains'] == null ? undefined : json['allowed_domains'],
40
+ 'rate_limit': json['rate_limit'] == null ? undefined : json['rate_limit'],
41
+ 'widget_config': json['widget_config'] == null ? undefined : (0, WidgetConfig_1.WidgetConfigFromJSON)(json['widget_config']),
42
+ 'llm_agent': json['llm_agent'] == null ? undefined : (0, LlmAgentUpdateInput_1.LlmAgentUpdateInputFromJSON)(json['llm_agent']),
43
+ };
44
+ }
45
+ function ChatAgentUpdateToJSON(json) {
46
+ return ChatAgentUpdateToJSONTyped(json, false);
47
+ }
48
+ function ChatAgentUpdateToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'name': value['name'],
54
+ 'system_prompt': value['system_prompt'],
55
+ 'allowed_domains': value['allowed_domains'],
56
+ 'rate_limit': value['rate_limit'],
57
+ 'widget_config': (0, WidgetConfig_1.WidgetConfigToJSON)(value['widget_config']),
58
+ 'llm_agent': (0, LlmAgentUpdateInput_1.LlmAgentUpdateInputToJSON)(value['llm_agent']),
59
+ };
60
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Tivadar AI Backend API
3
+ * Unified REST API for Tivadar AI Voice Agents platform
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CheckoutSessionResponse
16
+ */
17
+ export interface CheckoutSessionResponse {
18
+ /**
19
+ * Stripe checkout session ID
20
+ * @type {string}
21
+ * @memberof CheckoutSessionResponse
22
+ */
23
+ id: string;
24
+ /**
25
+ * URL to redirect the user to for checkout
26
+ * @type {string}
27
+ * @memberof CheckoutSessionResponse
28
+ */
29
+ url: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the CheckoutSessionResponse interface.
33
+ */
34
+ export declare function instanceOfCheckoutSessionResponse(value: object): value is CheckoutSessionResponse;
35
+ export declare function CheckoutSessionResponseFromJSON(json: any): CheckoutSessionResponse;
36
+ export declare function CheckoutSessionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutSessionResponse;
37
+ export declare function CheckoutSessionResponseToJSON(json: any): CheckoutSessionResponse;
38
+ export declare function CheckoutSessionResponseToJSONTyped(value?: CheckoutSessionResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Tivadar AI Backend API
6
+ * Unified REST API for Tivadar AI Voice Agents platform
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCheckoutSessionResponse = instanceOfCheckoutSessionResponse;
17
+ exports.CheckoutSessionResponseFromJSON = CheckoutSessionResponseFromJSON;
18
+ exports.CheckoutSessionResponseFromJSONTyped = CheckoutSessionResponseFromJSONTyped;
19
+ exports.CheckoutSessionResponseToJSON = CheckoutSessionResponseToJSON;
20
+ exports.CheckoutSessionResponseToJSONTyped = CheckoutSessionResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CheckoutSessionResponse interface.
23
+ */
24
+ function instanceOfCheckoutSessionResponse(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('url' in value) || value['url'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function CheckoutSessionResponseFromJSON(json) {
32
+ return CheckoutSessionResponseFromJSONTyped(json, false);
33
+ }
34
+ function CheckoutSessionResponseFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'url': json['url'],
41
+ };
42
+ }
43
+ function CheckoutSessionResponseToJSON(json) {
44
+ return CheckoutSessionResponseToJSONTyped(json, false);
45
+ }
46
+ function CheckoutSessionResponseToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'id': value['id'],
52
+ 'url': value['url'],
53
+ };
54
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Tivadar AI Backend API
3
+ * Unified REST API for Tivadar AI Voice Agents platform
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CreateCheckoutSessionRequest
16
+ */
17
+ export interface CreateCheckoutSessionRequest {
18
+ /**
19
+ * The plan slug to subscribe to (e.g., 'starter', 'pro', 'enterprise')
20
+ * @type {string}
21
+ * @memberof CreateCheckoutSessionRequest
22
+ */
23
+ planSlug: string;
24
+ /**
25
+ * The price slug for billing interval (e.g., 'monthly', 'yearly')
26
+ * @type {string}
27
+ * @memberof CreateCheckoutSessionRequest
28
+ */
29
+ priceSlug: string;
30
+ /**
31
+ * URL to redirect to after successful checkout
32
+ * @type {string}
33
+ * @memberof CreateCheckoutSessionRequest
34
+ */
35
+ successUrl?: string;
36
+ /**
37
+ * URL to redirect to if checkout is cancelled
38
+ * @type {string}
39
+ * @memberof CreateCheckoutSessionRequest
40
+ */
41
+ cancelUrl?: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the CreateCheckoutSessionRequest interface.
45
+ */
46
+ export declare function instanceOfCreateCheckoutSessionRequest(value: object): value is CreateCheckoutSessionRequest;
47
+ export declare function CreateCheckoutSessionRequestFromJSON(json: any): CreateCheckoutSessionRequest;
48
+ export declare function CreateCheckoutSessionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCheckoutSessionRequest;
49
+ export declare function CreateCheckoutSessionRequestToJSON(json: any): CreateCheckoutSessionRequest;
50
+ export declare function CreateCheckoutSessionRequestToJSONTyped(value?: CreateCheckoutSessionRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Tivadar AI Backend API
6
+ * Unified REST API for Tivadar AI Voice Agents platform
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCreateCheckoutSessionRequest = instanceOfCreateCheckoutSessionRequest;
17
+ exports.CreateCheckoutSessionRequestFromJSON = CreateCheckoutSessionRequestFromJSON;
18
+ exports.CreateCheckoutSessionRequestFromJSONTyped = CreateCheckoutSessionRequestFromJSONTyped;
19
+ exports.CreateCheckoutSessionRequestToJSON = CreateCheckoutSessionRequestToJSON;
20
+ exports.CreateCheckoutSessionRequestToJSONTyped = CreateCheckoutSessionRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CreateCheckoutSessionRequest interface.
23
+ */
24
+ function instanceOfCreateCheckoutSessionRequest(value) {
25
+ if (!('planSlug' in value) || value['planSlug'] === undefined)
26
+ return false;
27
+ if (!('priceSlug' in value) || value['priceSlug'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function CreateCheckoutSessionRequestFromJSON(json) {
32
+ return CreateCheckoutSessionRequestFromJSONTyped(json, false);
33
+ }
34
+ function CreateCheckoutSessionRequestFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'planSlug': json['planSlug'],
40
+ 'priceSlug': json['priceSlug'],
41
+ 'successUrl': json['successUrl'] == null ? undefined : json['successUrl'],
42
+ 'cancelUrl': json['cancelUrl'] == null ? undefined : json['cancelUrl'],
43
+ };
44
+ }
45
+ function CreateCheckoutSessionRequestToJSON(json) {
46
+ return CreateCheckoutSessionRequestToJSONTyped(json, false);
47
+ }
48
+ function CreateCheckoutSessionRequestToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'planSlug': value['planSlug'],
54
+ 'priceSlug': value['priceSlug'],
55
+ 'successUrl': value['successUrl'],
56
+ 'cancelUrl': value['cancelUrl'],
57
+ };
58
+ }
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Tivadar AI Backend API
3
+ * Unified REST API for Tivadar AI Voice Agents platform
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CreditBalance
16
+ */
17
+ export interface CreditBalance {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CreditBalance
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CreditBalance
28
+ */
29
+ subscriptionId: string;
30
+ /**
31
+ * Type of credit (e.g., 'api_credits', 'voice_minutes')
32
+ * @type {string}
33
+ * @memberof CreditBalance
34
+ */
35
+ creditType: string;
36
+ /**
37
+ * Current credit balance
38
+ * @type {number}
39
+ * @memberof CreditBalance
40
+ */
41
+ balance: number;
42
+ /**
43
+ * Monthly allowance that resets periodically
44
+ * @type {number}
45
+ * @memberof CreditBalance
46
+ */
47
+ monthlyAllowance?: number | null;
48
+ /**
49
+ * Next reset date for monthly allowance
50
+ * @type {Date}
51
+ * @memberof CreditBalance
52
+ */
53
+ resetsAt?: Date | null;
54
+ /**
55
+ * Last reset date
56
+ * @type {Date}
57
+ * @memberof CreditBalance
58
+ */
59
+ lastResetAt?: Date | null;
60
+ }
61
+ /**
62
+ * Check if a given object implements the CreditBalance interface.
63
+ */
64
+ export declare function instanceOfCreditBalance(value: object): value is CreditBalance;
65
+ export declare function CreditBalanceFromJSON(json: any): CreditBalance;
66
+ export declare function CreditBalanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreditBalance;
67
+ export declare function CreditBalanceToJSON(json: any): CreditBalance;
68
+ export declare function CreditBalanceToJSONTyped(value?: CreditBalance | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Tivadar AI Backend API
6
+ * Unified REST API for Tivadar AI Voice Agents platform
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCreditBalance = instanceOfCreditBalance;
17
+ exports.CreditBalanceFromJSON = CreditBalanceFromJSON;
18
+ exports.CreditBalanceFromJSONTyped = CreditBalanceFromJSONTyped;
19
+ exports.CreditBalanceToJSON = CreditBalanceToJSON;
20
+ exports.CreditBalanceToJSONTyped = CreditBalanceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CreditBalance interface.
23
+ */
24
+ function instanceOfCreditBalance(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('subscriptionId' in value) || value['subscriptionId'] === undefined)
28
+ return false;
29
+ if (!('creditType' in value) || value['creditType'] === undefined)
30
+ return false;
31
+ if (!('balance' in value) || value['balance'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function CreditBalanceFromJSON(json) {
36
+ return CreditBalanceFromJSONTyped(json, false);
37
+ }
38
+ function CreditBalanceFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'id': json['id'],
44
+ 'subscriptionId': json['subscriptionId'],
45
+ 'creditType': json['creditType'],
46
+ 'balance': json['balance'],
47
+ 'monthlyAllowance': json['monthlyAllowance'] == null ? undefined : json['monthlyAllowance'],
48
+ 'resetsAt': json['resetsAt'] == null ? undefined : (new Date(json['resetsAt'])),
49
+ 'lastResetAt': json['lastResetAt'] == null ? undefined : (new Date(json['lastResetAt'])),
50
+ };
51
+ }
52
+ function CreditBalanceToJSON(json) {
53
+ return CreditBalanceToJSONTyped(json, false);
54
+ }
55
+ function CreditBalanceToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'id': value['id'],
61
+ 'subscriptionId': value['subscriptionId'],
62
+ 'creditType': value['creditType'],
63
+ 'balance': value['balance'],
64
+ 'monthlyAllowance': value['monthlyAllowance'],
65
+ 'resetsAt': value['resetsAt'] == null ? value['resetsAt'] : value['resetsAt'].toISOString(),
66
+ 'lastResetAt': value['lastResetAt'] == null ? value['lastResetAt'] : value['lastResetAt'].toISOString(),
67
+ };
68
+ }
@@ -0,0 +1,98 @@
1
+ /**
2
+ * Tivadar AI Backend API
3
+ * Unified REST API for Tivadar AI Voice Agents platform
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CreditTransaction
16
+ */
17
+ export interface CreditTransaction {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CreditTransaction
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CreditTransaction
28
+ */
29
+ subscriptionId: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof CreditTransaction
34
+ */
35
+ creditType: string;
36
+ /**
37
+ * Amount of credits (positive for grants, negative for consumption)
38
+ * @type {number}
39
+ * @memberof CreditTransaction
40
+ */
41
+ amount: number;
42
+ /**
43
+ * Balance after this transaction
44
+ * @type {number}
45
+ * @memberof CreditTransaction
46
+ */
47
+ balanceAfter: number;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof CreditTransaction
52
+ */
53
+ transactionType: CreditTransactionTransactionTypeEnum;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof CreditTransaction
58
+ */
59
+ description?: string | null;
60
+ /**
61
+ * External reference ID
62
+ * @type {string}
63
+ * @memberof CreditTransaction
64
+ */
65
+ referenceId?: string | null;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof CreditTransaction
70
+ */
71
+ idempotencyKey?: string | null;
72
+ /**
73
+ *
74
+ * @type {Date}
75
+ * @memberof CreditTransaction
76
+ */
77
+ createdAt: Date;
78
+ }
79
+ /**
80
+ * @export
81
+ */
82
+ export declare const CreditTransactionTransactionTypeEnum: {
83
+ readonly Grant: "grant";
84
+ readonly Consume: "consume";
85
+ readonly Reset: "reset";
86
+ readonly Refund: "refund";
87
+ readonly Expire: "expire";
88
+ readonly Purchase: "purchase";
89
+ };
90
+ export type CreditTransactionTransactionTypeEnum = typeof CreditTransactionTransactionTypeEnum[keyof typeof CreditTransactionTransactionTypeEnum];
91
+ /**
92
+ * Check if a given object implements the CreditTransaction interface.
93
+ */
94
+ export declare function instanceOfCreditTransaction(value: object): value is CreditTransaction;
95
+ export declare function CreditTransactionFromJSON(json: any): CreditTransaction;
96
+ export declare function CreditTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreditTransaction;
97
+ export declare function CreditTransactionToJSON(json: any): CreditTransaction;
98
+ export declare function CreditTransactionToJSONTyped(value?: CreditTransaction | null, ignoreDiscriminator?: boolean): any;