@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.
- package/LICENSE +35 -0
- package/README.md +219 -0
- package/dist/api-client.d.ts +150 -0
- package/dist/api-client.js +173 -0
- package/dist/apis/CalendarApi.d.ts +140 -0
- package/dist/apis/CalendarApi.js +425 -0
- package/dist/apis/ChatAgentsApi.d.ts +78 -0
- package/dist/apis/ChatAgentsApi.js +239 -0
- package/dist/apis/HistoryApi.d.ts +53 -0
- package/dist/apis/HistoryApi.js +151 -0
- package/dist/apis/InvitationsApi.d.ts +52 -0
- package/dist/apis/InvitationsApi.js +150 -0
- package/dist/apis/LLMProvidersApi.d.ts +31 -0
- package/dist/apis/LLMProvidersApi.js +72 -0
- package/dist/apis/MembersApi.d.ts +29 -0
- package/dist/apis/MembersApi.js +70 -0
- package/dist/apis/OrganizationsApi.d.ts +37 -0
- package/dist/apis/OrganizationsApi.js +104 -0
- package/dist/apis/PlaygroundApi.d.ts +30 -0
- package/dist/apis/PlaygroundApi.js +74 -0
- package/dist/apis/RAGApi.d.ts +132 -0
- package/dist/apis/RAGApi.js +433 -0
- package/dist/apis/RecordingsApi.d.ts +30 -0
- package/dist/apis/RecordingsApi.js +74 -0
- package/dist/apis/SIPApi.d.ts +85 -0
- package/dist/apis/SIPApi.js +267 -0
- package/dist/apis/STTProvidersApi.d.ts +31 -0
- package/dist/apis/STTProvidersApi.js +72 -0
- package/dist/apis/SubscriptionApi.d.ts +169 -0
- package/dist/apis/SubscriptionApi.js +490 -0
- package/dist/apis/TTSProvidersApi.d.ts +31 -0
- package/dist/apis/TTSProvidersApi.js +72 -0
- package/dist/apis/VoiceAgentsApi.d.ts +89 -0
- package/dist/apis/VoiceAgentsApi.js +276 -0
- package/dist/apis/index.d.ts +15 -0
- package/dist/apis/index.js +33 -0
- package/dist/esm/api-client.d.ts +150 -0
- package/dist/esm/api-client.js +169 -0
- package/dist/esm/apis/CalendarApi.d.ts +140 -0
- package/dist/esm/apis/CalendarApi.js +421 -0
- package/dist/esm/apis/ChatAgentsApi.d.ts +78 -0
- package/dist/esm/apis/ChatAgentsApi.js +235 -0
- package/dist/esm/apis/HistoryApi.d.ts +53 -0
- package/dist/esm/apis/HistoryApi.js +147 -0
- package/dist/esm/apis/InvitationsApi.d.ts +52 -0
- package/dist/esm/apis/InvitationsApi.js +146 -0
- package/dist/esm/apis/LLMProvidersApi.d.ts +31 -0
- package/dist/esm/apis/LLMProvidersApi.js +68 -0
- package/dist/esm/apis/MembersApi.d.ts +29 -0
- package/dist/esm/apis/MembersApi.js +66 -0
- package/dist/esm/apis/OrganizationsApi.d.ts +37 -0
- package/dist/esm/apis/OrganizationsApi.js +100 -0
- package/dist/esm/apis/PlaygroundApi.d.ts +30 -0
- package/dist/esm/apis/PlaygroundApi.js +70 -0
- package/dist/esm/apis/RAGApi.d.ts +132 -0
- package/dist/esm/apis/RAGApi.js +429 -0
- package/dist/esm/apis/RecordingsApi.d.ts +30 -0
- package/dist/esm/apis/RecordingsApi.js +70 -0
- package/dist/esm/apis/SIPApi.d.ts +85 -0
- package/dist/esm/apis/SIPApi.js +263 -0
- package/dist/esm/apis/STTProvidersApi.d.ts +31 -0
- package/dist/esm/apis/STTProvidersApi.js +68 -0
- package/dist/esm/apis/SubscriptionApi.d.ts +169 -0
- package/dist/esm/apis/SubscriptionApi.js +486 -0
- package/dist/esm/apis/TTSProvidersApi.d.ts +31 -0
- package/dist/esm/apis/TTSProvidersApi.js +68 -0
- package/dist/esm/apis/VoiceAgentsApi.d.ts +89 -0
- package/dist/esm/apis/VoiceAgentsApi.js +272 -0
- package/dist/esm/apis/index.d.ts +15 -0
- package/dist/esm/apis/index.js +17 -0
- package/dist/esm/index.d.ts +15 -0
- package/dist/esm/index.js +17 -0
- package/dist/esm/models/BillingPortalRequest.d.ts +32 -0
- package/dist/esm/models/BillingPortalRequest.js +43 -0
- package/dist/esm/models/BillingPortalResponse.d.ts +32 -0
- package/dist/esm/models/BillingPortalResponse.js +43 -0
- package/dist/esm/models/Calendar.d.ts +56 -0
- package/dist/esm/models/Calendar.js +59 -0
- package/dist/esm/models/CalendarEvent.d.ts +62 -0
- package/dist/esm/models/CalendarEvent.js +61 -0
- package/dist/esm/models/CalendarEventCreate.d.ts +56 -0
- package/dist/esm/models/CalendarEventCreate.js +57 -0
- package/dist/esm/models/CalendarEventResponse.d.ts +40 -0
- package/dist/esm/models/CalendarEventResponse.js +45 -0
- package/dist/esm/models/CalendarEventUpdate.d.ts +56 -0
- package/dist/esm/models/CalendarEventUpdate.js +49 -0
- package/dist/esm/models/CalendarListResponse.d.ts +33 -0
- package/dist/esm/models/CalendarListResponse.js +44 -0
- package/dist/esm/models/CalendarWithAgent.d.ts +44 -0
- package/dist/esm/models/CalendarWithAgent.js +51 -0
- package/dist/esm/models/CancelSubscriptionRequest.d.ts +38 -0
- package/dist/esm/models/CancelSubscriptionRequest.js +43 -0
- package/dist/esm/models/CancelSubscriptionResponse.d.ts +56 -0
- package/dist/esm/models/CancelSubscriptionResponse.js +49 -0
- package/dist/esm/models/ChatAgent.d.ts +88 -0
- package/dist/esm/models/ChatAgent.js +66 -0
- package/dist/esm/models/ChatAgentCreate.d.ts +64 -0
- package/dist/esm/models/ChatAgentCreate.js +55 -0
- package/dist/esm/models/ChatAgentUpdate.d.ts +64 -0
- package/dist/esm/models/ChatAgentUpdate.js +53 -0
- package/dist/esm/models/CheckoutSessionResponse.d.ts +38 -0
- package/dist/esm/models/CheckoutSessionResponse.js +47 -0
- package/dist/esm/models/CreateCheckoutSessionRequest.d.ts +50 -0
- package/dist/esm/models/CreateCheckoutSessionRequest.js +51 -0
- package/dist/esm/models/CreditBalance.d.ts +68 -0
- package/dist/esm/models/CreditBalance.js +61 -0
- package/dist/esm/models/CreditTransaction.d.ts +98 -0
- package/dist/esm/models/CreditTransaction.js +84 -0
- package/dist/esm/models/CreditTransactionsResponse.d.ts +39 -0
- package/dist/esm/models/CreditTransactionsResponse.js +44 -0
- package/dist/esm/models/DispatchRuleCreate.d.ts +38 -0
- package/dist/esm/models/DispatchRuleCreate.js +47 -0
- package/dist/esm/models/HistoryConversation.d.ts +81 -0
- package/dist/esm/models/HistoryConversation.js +58 -0
- package/dist/esm/models/HistoryMessage.d.ts +44 -0
- package/dist/esm/models/HistoryMessage.js +45 -0
- package/dist/esm/models/HistorySummary.d.ts +74 -0
- package/dist/esm/models/HistorySummary.js +55 -0
- package/dist/esm/models/InvitationAccept.d.ts +32 -0
- package/dist/esm/models/InvitationAccept.js +43 -0
- package/dist/esm/models/InvitationCreate.d.ts +46 -0
- package/dist/esm/models/InvitationCreate.js +54 -0
- package/dist/esm/models/InvitationResponse.d.ts +38 -0
- package/dist/esm/models/InvitationResponse.js +43 -0
- package/dist/esm/models/LlmAgent.d.ts +87 -0
- package/dist/esm/models/LlmAgent.js +60 -0
- package/dist/esm/models/LlmAgentInput.d.ts +87 -0
- package/dist/esm/models/LlmAgentInput.js +62 -0
- package/dist/esm/models/LlmAgentUpdateInput.d.ts +87 -0
- package/dist/esm/models/LlmAgentUpdateInput.js +60 -0
- package/dist/esm/models/LlmConfig.d.ts +44 -0
- package/dist/esm/models/LlmConfig.js +45 -0
- package/dist/esm/models/Member.d.ts +62 -0
- package/dist/esm/models/Member.js +57 -0
- package/dist/esm/models/Organization.d.ts +56 -0
- package/dist/esm/models/Organization.js +51 -0
- package/dist/esm/models/OrganizationCreate.d.ts +38 -0
- package/dist/esm/models/OrganizationCreate.js +45 -0
- package/dist/esm/models/OrganizationUpdate.d.ts +38 -0
- package/dist/esm/models/OrganizationUpdate.js +43 -0
- package/dist/esm/models/OrganizationsOrganizationIdConversationsGet200Response.d.ts +39 -0
- package/dist/esm/models/OrganizationsOrganizationIdConversationsGet200Response.js +44 -0
- package/dist/esm/models/OrganizationsOrganizationIdLlmProvidersGet200ResponseInner.d.ts +74 -0
- package/dist/esm/models/OrganizationsOrganizationIdLlmProvidersGet200ResponseInner.js +55 -0
- package/dist/esm/models/OrganizationsOrganizationIdSipDispatchRulesPost200Response.d.ts +32 -0
- package/dist/esm/models/OrganizationsOrganizationIdSipDispatchRulesPost200Response.js +41 -0
- package/dist/esm/models/OrganizationsOrganizationIdSttProvidersGet200ResponseInner.d.ts +44 -0
- package/dist/esm/models/OrganizationsOrganizationIdSttProvidersGet200ResponseInner.js +45 -0
- package/dist/esm/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInner.d.ts +45 -0
- package/dist/esm/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInner.js +46 -0
- package/dist/esm/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerVoicesInner.d.ts +44 -0
- package/dist/esm/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerVoicesInner.js +45 -0
- package/dist/esm/models/OrganizationsOrganizationIdVoiceAgentsBasicGet200ResponseInner.d.ts +38 -0
- package/dist/esm/models/OrganizationsOrganizationIdVoiceAgentsBasicGet200ResponseInner.js +43 -0
- package/dist/esm/models/PauseSubscriptionRequest.d.ts +32 -0
- package/dist/esm/models/PauseSubscriptionRequest.js +41 -0
- package/dist/esm/models/PauseSubscriptionResponse.d.ts +51 -0
- package/dist/esm/models/PauseSubscriptionResponse.js +48 -0
- package/dist/esm/models/PauseSubscriptionResponsePauseCollection.d.ts +38 -0
- package/dist/esm/models/PauseSubscriptionResponsePauseCollection.js +43 -0
- package/dist/esm/models/PhoneNumber.d.ts +50 -0
- package/dist/esm/models/PhoneNumber.js +47 -0
- package/dist/esm/models/RagConfig.d.ts +112 -0
- package/dist/esm/models/RagConfig.js +87 -0
- package/dist/esm/models/RagConfigCreate.d.ts +38 -0
- package/dist/esm/models/RagConfigCreate.js +45 -0
- package/dist/esm/models/RagDocument.d.ts +104 -0
- package/dist/esm/models/RagDocument.js +78 -0
- package/dist/esm/models/RagDocumentChunk.d.ts +52 -0
- package/dist/esm/models/RagDocumentChunk.js +51 -0
- package/dist/esm/models/RagDocumentChunkList.d.ts +51 -0
- package/dist/esm/models/RagDocumentChunkList.js +56 -0
- package/dist/esm/models/RagDocumentList.d.ts +39 -0
- package/dist/esm/models/RagDocumentList.js +48 -0
- package/dist/esm/models/RecordingSignedUrl.d.ts +32 -0
- package/dist/esm/models/RecordingSignedUrl.js +41 -0
- package/dist/esm/models/ResumeSubscriptionResponse.d.ts +50 -0
- package/dist/esm/models/ResumeSubscriptionResponse.js +47 -0
- package/dist/esm/models/SandboxToken.d.ts +32 -0
- package/dist/esm/models/SandboxToken.js +41 -0
- package/dist/esm/models/SipTrunk.d.ts +62 -0
- package/dist/esm/models/SipTrunk.js +57 -0
- package/dist/esm/models/SipTrunkCreate.d.ts +32 -0
- package/dist/esm/models/SipTrunkCreate.js +43 -0
- package/dist/esm/models/SipTrunkWithAgent.d.ts +69 -0
- package/dist/esm/models/SipTrunkWithAgent.js +60 -0
- package/dist/esm/models/SipTrunkWithAgentAllOfAgents.d.ts +32 -0
- package/dist/esm/models/SipTrunkWithAgentAllOfAgents.js +41 -0
- package/dist/esm/models/SubscriptionDetails.d.ts +142 -0
- package/dist/esm/models/SubscriptionDetails.js +86 -0
- package/dist/esm/models/SubscriptionStatus.d.ts +53 -0
- package/dist/esm/models/SubscriptionStatus.js +52 -0
- package/dist/esm/models/SubscriptionStatusPlan.d.ts +56 -0
- package/dist/esm/models/SubscriptionStatusPlan.js +49 -0
- package/dist/esm/models/SubscriptionStatusService.d.ts +44 -0
- package/dist/esm/models/SubscriptionStatusService.js +45 -0
- package/dist/esm/models/SubscriptionStatusSubscription.d.ts +76 -0
- package/dist/esm/models/SubscriptionStatusSubscription.js +64 -0
- package/dist/esm/models/ToolConfig.d.ts +46 -0
- package/dist/esm/models/ToolConfig.js +49 -0
- package/dist/esm/models/UnpauseSubscriptionResponse.d.ts +50 -0
- package/dist/esm/models/UnpauseSubscriptionResponse.js +47 -0
- package/dist/esm/models/UpdatePlanRequest.d.ts +44 -0
- package/dist/esm/models/UpdatePlanRequest.js +45 -0
- package/dist/esm/models/UpdatePlanResponse.d.ts +50 -0
- package/dist/esm/models/UpdatePlanResponse.js +47 -0
- package/dist/esm/models/VoiceAgent.d.ts +118 -0
- package/dist/esm/models/VoiceAgent.js +75 -0
- package/dist/esm/models/VoiceAgentCreate.d.ts +106 -0
- package/dist/esm/models/VoiceAgentCreate.js +69 -0
- package/dist/esm/models/VoiceAgentMetadata.d.ts +38 -0
- package/dist/esm/models/VoiceAgentMetadata.js +43 -0
- package/dist/esm/models/VoiceAgentUpdate.d.ts +100 -0
- package/dist/esm/models/VoiceAgentUpdate.js +65 -0
- package/dist/esm/models/VoiceAgentWithSipTrunks.d.ts +125 -0
- package/dist/esm/models/VoiceAgentWithSipTrunks.js +78 -0
- package/dist/esm/models/VoiceAgentWithSipTrunksAllOfSipTrunks.d.ts +32 -0
- package/dist/esm/models/VoiceAgentWithSipTrunksAllOfSipTrunks.js +41 -0
- package/dist/esm/models/WidgetConfig.d.ts +65 -0
- package/dist/esm/models/WidgetConfig.js +57 -0
- package/dist/esm/models/WidgetPosition.d.ts +27 -0
- package/dist/esm/models/WidgetPosition.js +45 -0
- package/dist/esm/models/index.d.ts +74 -0
- package/dist/esm/models/index.js +76 -0
- package/dist/esm/runtime.d.ts +184 -0
- package/dist/esm/runtime.js +334 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +33 -0
- package/dist/models/BillingPortalRequest.d.ts +32 -0
- package/dist/models/BillingPortalRequest.js +50 -0
- package/dist/models/BillingPortalResponse.d.ts +32 -0
- package/dist/models/BillingPortalResponse.js +50 -0
- package/dist/models/Calendar.d.ts +56 -0
- package/dist/models/Calendar.js +66 -0
- package/dist/models/CalendarEvent.d.ts +62 -0
- package/dist/models/CalendarEvent.js +68 -0
- package/dist/models/CalendarEventCreate.d.ts +56 -0
- package/dist/models/CalendarEventCreate.js +64 -0
- package/dist/models/CalendarEventResponse.d.ts +40 -0
- package/dist/models/CalendarEventResponse.js +52 -0
- package/dist/models/CalendarEventUpdate.d.ts +56 -0
- package/dist/models/CalendarEventUpdate.js +56 -0
- package/dist/models/CalendarListResponse.d.ts +33 -0
- package/dist/models/CalendarListResponse.js +51 -0
- package/dist/models/CalendarWithAgent.d.ts +44 -0
- package/dist/models/CalendarWithAgent.js +58 -0
- package/dist/models/CancelSubscriptionRequest.d.ts +38 -0
- package/dist/models/CancelSubscriptionRequest.js +50 -0
- package/dist/models/CancelSubscriptionResponse.d.ts +56 -0
- package/dist/models/CancelSubscriptionResponse.js +56 -0
- package/dist/models/ChatAgent.d.ts +88 -0
- package/dist/models/ChatAgent.js +73 -0
- package/dist/models/ChatAgentCreate.d.ts +64 -0
- package/dist/models/ChatAgentCreate.js +62 -0
- package/dist/models/ChatAgentUpdate.d.ts +64 -0
- package/dist/models/ChatAgentUpdate.js +60 -0
- package/dist/models/CheckoutSessionResponse.d.ts +38 -0
- package/dist/models/CheckoutSessionResponse.js +54 -0
- package/dist/models/CreateCheckoutSessionRequest.d.ts +50 -0
- package/dist/models/CreateCheckoutSessionRequest.js +58 -0
- package/dist/models/CreditBalance.d.ts +68 -0
- package/dist/models/CreditBalance.js +68 -0
- package/dist/models/CreditTransaction.d.ts +98 -0
- package/dist/models/CreditTransaction.js +92 -0
- package/dist/models/CreditTransactionsResponse.d.ts +39 -0
- package/dist/models/CreditTransactionsResponse.js +51 -0
- package/dist/models/DispatchRuleCreate.d.ts +38 -0
- package/dist/models/DispatchRuleCreate.js +54 -0
- package/dist/models/HistoryConversation.d.ts +81 -0
- package/dist/models/HistoryConversation.js +65 -0
- package/dist/models/HistoryMessage.d.ts +44 -0
- package/dist/models/HistoryMessage.js +52 -0
- package/dist/models/HistorySummary.d.ts +74 -0
- package/dist/models/HistorySummary.js +62 -0
- package/dist/models/InvitationAccept.d.ts +32 -0
- package/dist/models/InvitationAccept.js +50 -0
- package/dist/models/InvitationCreate.d.ts +46 -0
- package/dist/models/InvitationCreate.js +62 -0
- package/dist/models/InvitationResponse.d.ts +38 -0
- package/dist/models/InvitationResponse.js +50 -0
- package/dist/models/LlmAgent.d.ts +87 -0
- package/dist/models/LlmAgent.js +67 -0
- package/dist/models/LlmAgentInput.d.ts +87 -0
- package/dist/models/LlmAgentInput.js +69 -0
- package/dist/models/LlmAgentUpdateInput.d.ts +87 -0
- package/dist/models/LlmAgentUpdateInput.js +67 -0
- package/dist/models/LlmConfig.d.ts +44 -0
- package/dist/models/LlmConfig.js +52 -0
- package/dist/models/Member.d.ts +62 -0
- package/dist/models/Member.js +64 -0
- package/dist/models/Organization.d.ts +56 -0
- package/dist/models/Organization.js +58 -0
- package/dist/models/OrganizationCreate.d.ts +38 -0
- package/dist/models/OrganizationCreate.js +52 -0
- package/dist/models/OrganizationUpdate.d.ts +38 -0
- package/dist/models/OrganizationUpdate.js +50 -0
- package/dist/models/OrganizationsOrganizationIdConversationsGet200Response.d.ts +39 -0
- package/dist/models/OrganizationsOrganizationIdConversationsGet200Response.js +51 -0
- package/dist/models/OrganizationsOrganizationIdLlmProvidersGet200ResponseInner.d.ts +74 -0
- package/dist/models/OrganizationsOrganizationIdLlmProvidersGet200ResponseInner.js +62 -0
- package/dist/models/OrganizationsOrganizationIdSipDispatchRulesPost200Response.d.ts +32 -0
- package/dist/models/OrganizationsOrganizationIdSipDispatchRulesPost200Response.js +48 -0
- package/dist/models/OrganizationsOrganizationIdSttProvidersGet200ResponseInner.d.ts +44 -0
- package/dist/models/OrganizationsOrganizationIdSttProvidersGet200ResponseInner.js +52 -0
- package/dist/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInner.d.ts +45 -0
- package/dist/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInner.js +53 -0
- package/dist/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerVoicesInner.d.ts +44 -0
- package/dist/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerVoicesInner.js +52 -0
- package/dist/models/OrganizationsOrganizationIdVoiceAgentsBasicGet200ResponseInner.d.ts +38 -0
- package/dist/models/OrganizationsOrganizationIdVoiceAgentsBasicGet200ResponseInner.js +50 -0
- package/dist/models/PauseSubscriptionRequest.d.ts +32 -0
- package/dist/models/PauseSubscriptionRequest.js +48 -0
- package/dist/models/PauseSubscriptionResponse.d.ts +51 -0
- package/dist/models/PauseSubscriptionResponse.js +55 -0
- package/dist/models/PauseSubscriptionResponsePauseCollection.d.ts +38 -0
- package/dist/models/PauseSubscriptionResponsePauseCollection.js +50 -0
- package/dist/models/PhoneNumber.d.ts +50 -0
- package/dist/models/PhoneNumber.js +54 -0
- package/dist/models/RagConfig.d.ts +112 -0
- package/dist/models/RagConfig.js +94 -0
- package/dist/models/RagConfigCreate.d.ts +38 -0
- package/dist/models/RagConfigCreate.js +52 -0
- package/dist/models/RagDocument.d.ts +104 -0
- package/dist/models/RagDocument.js +86 -0
- package/dist/models/RagDocumentChunk.d.ts +52 -0
- package/dist/models/RagDocumentChunk.js +58 -0
- package/dist/models/RagDocumentChunkList.d.ts +51 -0
- package/dist/models/RagDocumentChunkList.js +63 -0
- package/dist/models/RagDocumentList.d.ts +39 -0
- package/dist/models/RagDocumentList.js +55 -0
- package/dist/models/RecordingSignedUrl.d.ts +32 -0
- package/dist/models/RecordingSignedUrl.js +48 -0
- package/dist/models/ResumeSubscriptionResponse.d.ts +50 -0
- package/dist/models/ResumeSubscriptionResponse.js +54 -0
- package/dist/models/SandboxToken.d.ts +32 -0
- package/dist/models/SandboxToken.js +48 -0
- package/dist/models/SipTrunk.d.ts +62 -0
- package/dist/models/SipTrunk.js +64 -0
- package/dist/models/SipTrunkCreate.d.ts +32 -0
- package/dist/models/SipTrunkCreate.js +50 -0
- package/dist/models/SipTrunkWithAgent.d.ts +69 -0
- package/dist/models/SipTrunkWithAgent.js +67 -0
- package/dist/models/SipTrunkWithAgentAllOfAgents.d.ts +32 -0
- package/dist/models/SipTrunkWithAgentAllOfAgents.js +48 -0
- package/dist/models/SubscriptionDetails.d.ts +142 -0
- package/dist/models/SubscriptionDetails.js +94 -0
- package/dist/models/SubscriptionStatus.d.ts +53 -0
- package/dist/models/SubscriptionStatus.js +59 -0
- package/dist/models/SubscriptionStatusPlan.d.ts +56 -0
- package/dist/models/SubscriptionStatusPlan.js +56 -0
- package/dist/models/SubscriptionStatusService.d.ts +44 -0
- package/dist/models/SubscriptionStatusService.js +52 -0
- package/dist/models/SubscriptionStatusSubscription.d.ts +76 -0
- package/dist/models/SubscriptionStatusSubscription.js +72 -0
- package/dist/models/ToolConfig.d.ts +46 -0
- package/dist/models/ToolConfig.js +56 -0
- package/dist/models/UnpauseSubscriptionResponse.d.ts +50 -0
- package/dist/models/UnpauseSubscriptionResponse.js +54 -0
- package/dist/models/UpdatePlanRequest.d.ts +44 -0
- package/dist/models/UpdatePlanRequest.js +52 -0
- package/dist/models/UpdatePlanResponse.d.ts +50 -0
- package/dist/models/UpdatePlanResponse.js +54 -0
- package/dist/models/VoiceAgent.d.ts +118 -0
- package/dist/models/VoiceAgent.js +82 -0
- package/dist/models/VoiceAgentCreate.d.ts +106 -0
- package/dist/models/VoiceAgentCreate.js +76 -0
- package/dist/models/VoiceAgentMetadata.d.ts +38 -0
- package/dist/models/VoiceAgentMetadata.js +50 -0
- package/dist/models/VoiceAgentUpdate.d.ts +100 -0
- package/dist/models/VoiceAgentUpdate.js +72 -0
- package/dist/models/VoiceAgentWithSipTrunks.d.ts +125 -0
- package/dist/models/VoiceAgentWithSipTrunks.js +85 -0
- package/dist/models/VoiceAgentWithSipTrunksAllOfSipTrunks.d.ts +32 -0
- package/dist/models/VoiceAgentWithSipTrunksAllOfSipTrunks.js +48 -0
- package/dist/models/WidgetConfig.d.ts +65 -0
- package/dist/models/WidgetConfig.js +65 -0
- package/dist/models/WidgetPosition.d.ts +27 -0
- package/dist/models/WidgetPosition.js +53 -0
- package/dist/models/index.d.ts +74 -0
- package/dist/models/index.js +92 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +350 -0
- package/package.json +43 -0
- package/src/api-client.ts +324 -0
- package/src/apis/CalendarApi.ts +601 -0
- package/src/apis/ChatAgentsApi.ts +329 -0
- package/src/apis/HistoryApi.ts +197 -0
- package/src/apis/InvitationsApi.ts +196 -0
- package/src/apis/LLMProvidersApi.ts +81 -0
- package/src/apis/MembersApi.ts +79 -0
- package/src/apis/OrganizationsApi.ts +121 -0
- package/src/apis/PlaygroundApi.ts +88 -0
- package/src/apis/RAGApi.ts +613 -0
- package/src/apis/RecordingsApi.ts +88 -0
- package/src/apis/SIPApi.ts +362 -0
- package/src/apis/STTProvidersApi.ts +81 -0
- package/src/apis/SubscriptionApi.ts +692 -0
- package/src/apis/TTSProvidersApi.ts +81 -0
- package/src/apis/VoiceAgentsApi.ts +384 -0
- package/src/apis/index.ts +17 -0
- package/src/index.ts +19 -0
- package/src/models/BillingPortalRequest.ts +66 -0
- package/src/models/BillingPortalResponse.ts +66 -0
- package/src/models/Calendar.ts +102 -0
- package/src/models/CalendarEvent.ts +110 -0
- package/src/models/CalendarEventCreate.ts +101 -0
- package/src/models/CalendarEventResponse.ts +88 -0
- package/src/models/CalendarEventUpdate.ts +97 -0
- package/src/models/CalendarListResponse.ts +74 -0
- package/src/models/CalendarWithAgent.ts +84 -0
- package/src/models/CancelSubscriptionRequest.ts +73 -0
- package/src/models/CancelSubscriptionResponse.ts +97 -0
- package/src/models/ChatAgent.ts +154 -0
- package/src/models/ChatAgentCreate.ts +121 -0
- package/src/models/ChatAgentUpdate.ts +120 -0
- package/src/models/CheckoutSessionResponse.ts +75 -0
- package/src/models/CreateCheckoutSessionRequest.ts +91 -0
- package/src/models/CreditBalance.ts +117 -0
- package/src/models/CreditTransaction.ts +159 -0
- package/src/models/CreditTransactionsResponse.ts +81 -0
- package/src/models/DispatchRuleCreate.ts +75 -0
- package/src/models/HistoryConversation.ts +137 -0
- package/src/models/HistoryMessage.ts +81 -0
- package/src/models/HistorySummary.ts +121 -0
- package/src/models/InvitationAccept.ts +66 -0
- package/src/models/InvitationCreate.ts +86 -0
- package/src/models/InvitationResponse.ts +73 -0
- package/src/models/LlmAgent.ts +145 -0
- package/src/models/LlmAgentInput.ts +146 -0
- package/src/models/LlmAgentUpdateInput.ts +145 -0
- package/src/models/Member.ts +108 -0
- package/src/models/Organization.ts +98 -0
- package/src/models/OrganizationCreate.ts +74 -0
- package/src/models/OrganizationUpdate.ts +73 -0
- package/src/models/OrganizationsOrganizationIdConversationsGet200Response.ts +81 -0
- package/src/models/OrganizationsOrganizationIdLlmProvidersGet200ResponseInner.ts +121 -0
- package/src/models/OrganizationsOrganizationIdSipDispatchRulesPost200Response.ts +65 -0
- package/src/models/OrganizationsOrganizationIdSttProvidersGet200ResponseInner.ts +81 -0
- package/src/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInner.ts +89 -0
- package/src/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerVoicesInner.ts +81 -0
- package/src/models/OrganizationsOrganizationIdVoiceAgentsBasicGet200ResponseInner.ts +73 -0
- package/src/models/PauseSubscriptionRequest.ts +65 -0
- package/src/models/PauseSubscriptionResponse.ts +97 -0
- package/src/models/PauseSubscriptionResponsePauseCollection.ts +73 -0
- package/src/models/PhoneNumber.ts +89 -0
- package/src/models/RagConfig.ts +179 -0
- package/src/models/RagConfigCreate.ts +74 -0
- package/src/models/RagDocument.ts +162 -0
- package/src/models/RagDocumentChunk.ts +91 -0
- package/src/models/RagDocumentChunkList.ts +101 -0
- package/src/models/RagDocumentList.ts +83 -0
- package/src/models/RecordingSignedUrl.ts +65 -0
- package/src/models/ResumeSubscriptionResponse.ts +89 -0
- package/src/models/SandboxToken.ts +65 -0
- package/src/models/SipTrunk.ts +108 -0
- package/src/models/SipTrunkCreate.ts +66 -0
- package/src/models/SipTrunkWithAgent.ts +124 -0
- package/src/models/SipTrunkWithAgentAllOfAgents.ts +65 -0
- package/src/models/SubscriptionDetails.ts +210 -0
- package/src/models/SubscriptionStatus.ts +112 -0
- package/src/models/SubscriptionStatusPlan.ts +97 -0
- package/src/models/SubscriptionStatusService.ts +81 -0
- package/src/models/SubscriptionStatusSubscription.ts +122 -0
- package/src/models/ToolConfig.ts +83 -0
- package/src/models/UnpauseSubscriptionResponse.ts +89 -0
- package/src/models/UpdatePlanRequest.ts +81 -0
- package/src/models/UpdatePlanResponse.ts +89 -0
- package/src/models/VoiceAgent.ts +194 -0
- package/src/models/VoiceAgentCreate.ts +177 -0
- package/src/models/VoiceAgentMetadata.ts +73 -0
- package/src/models/VoiceAgentUpdate.ts +168 -0
- package/src/models/VoiceAgentWithSipTrunks.ts +209 -0
- package/src/models/VoiceAgentWithSipTrunksAllOfSipTrunks.ts +65 -0
- package/src/models/WidgetConfig.ts +116 -0
- package/src/models/WidgetPosition.ts +55 -0
- package/src/models/index.ts +76 -0
- package/src/runtime.ts +432 -0
|
@@ -0,0 +1,31 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { OrganizationsOrganizationIdLlmProvidersGet200ResponseInner } from '../models/index';
|
|
14
|
+
export interface OrganizationsOrganizationIdLlmProvidersGetRequest {
|
|
15
|
+
organizationId: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare class LLMProvidersApi extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* Returns the list of LLM providers configured in the langchain service. Providers are global (not per-organization).
|
|
23
|
+
* List available LLM providers
|
|
24
|
+
*/
|
|
25
|
+
organizationsOrganizationIdLlmProvidersGetRaw(requestParameters: OrganizationsOrganizationIdLlmProvidersGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<OrganizationsOrganizationIdLlmProvidersGet200ResponseInner>>>;
|
|
26
|
+
/**
|
|
27
|
+
* Returns the list of LLM providers configured in the langchain service. Providers are global (not per-organization).
|
|
28
|
+
* List available LLM providers
|
|
29
|
+
*/
|
|
30
|
+
organizationsOrganizationIdLlmProvidersGet(requestParameters: OrganizationsOrganizationIdLlmProvidersGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<OrganizationsOrganizationIdLlmProvidersGet200ResponseInner>>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.LLMProvidersApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class LLMProvidersApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Returns the list of LLM providers configured in the langchain service. Providers are global (not per-organization).
|
|
34
|
+
* List available LLM providers
|
|
35
|
+
*/
|
|
36
|
+
organizationsOrganizationIdLlmProvidersGetRaw(requestParameters, initOverrides) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
if (requestParameters['organizationId'] == null) {
|
|
39
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdLlmProvidersGet().');
|
|
40
|
+
}
|
|
41
|
+
const queryParameters = {};
|
|
42
|
+
const headerParameters = {};
|
|
43
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
44
|
+
const token = this.configuration.accessToken;
|
|
45
|
+
const tokenString = yield token("bearerAuth", []);
|
|
46
|
+
if (tokenString) {
|
|
47
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
let urlPath = `/organizations/{organizationId}/llm-providers`;
|
|
51
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
52
|
+
const response = yield this.request({
|
|
53
|
+
path: urlPath,
|
|
54
|
+
method: 'GET',
|
|
55
|
+
headers: headerParameters,
|
|
56
|
+
query: queryParameters,
|
|
57
|
+
}, initOverrides);
|
|
58
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.OrganizationsOrganizationIdLlmProvidersGet200ResponseInnerFromJSON));
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Returns the list of LLM providers configured in the langchain service. Providers are global (not per-organization).
|
|
63
|
+
* List available LLM providers
|
|
64
|
+
*/
|
|
65
|
+
organizationsOrganizationIdLlmProvidersGet(requestParameters, initOverrides) {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
const response = yield this.organizationsOrganizationIdLlmProvidersGetRaw(requestParameters, initOverrides);
|
|
68
|
+
return yield response.value();
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
exports.LLMProvidersApi = LLMProvidersApi;
|
|
@@ -0,0 +1,29 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { Member } from '../models/index';
|
|
14
|
+
export interface OrganizationsOrganizationIdMembersGetRequest {
|
|
15
|
+
organizationId: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare class MembersApi extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* List all members of an organization
|
|
23
|
+
*/
|
|
24
|
+
organizationsOrganizationIdMembersGetRaw(requestParameters: OrganizationsOrganizationIdMembersGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Member>>>;
|
|
25
|
+
/**
|
|
26
|
+
* List all members of an organization
|
|
27
|
+
*/
|
|
28
|
+
organizationsOrganizationIdMembersGet(requestParameters: OrganizationsOrganizationIdMembersGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Member>>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.MembersApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class MembersApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* List all members of an organization
|
|
34
|
+
*/
|
|
35
|
+
organizationsOrganizationIdMembersGetRaw(requestParameters, initOverrides) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
if (requestParameters['organizationId'] == null) {
|
|
38
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdMembersGet().');
|
|
39
|
+
}
|
|
40
|
+
const queryParameters = {};
|
|
41
|
+
const headerParameters = {};
|
|
42
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
43
|
+
const token = this.configuration.accessToken;
|
|
44
|
+
const tokenString = yield token("bearerAuth", []);
|
|
45
|
+
if (tokenString) {
|
|
46
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
let urlPath = `/organizations/{organizationId}/members`;
|
|
50
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
51
|
+
const response = yield this.request({
|
|
52
|
+
path: urlPath,
|
|
53
|
+
method: 'GET',
|
|
54
|
+
headers: headerParameters,
|
|
55
|
+
query: queryParameters,
|
|
56
|
+
}, initOverrides);
|
|
57
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.MemberFromJSON));
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* List all members of an organization
|
|
62
|
+
*/
|
|
63
|
+
organizationsOrganizationIdMembersGet(requestParameters, initOverrides) {
|
|
64
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
+
const response = yield this.organizationsOrganizationIdMembersGetRaw(requestParameters, initOverrides);
|
|
66
|
+
return yield response.value();
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.MembersApi = MembersApi;
|
|
@@ -0,0 +1,37 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { Organization, OrganizationCreate } from '../models/index';
|
|
14
|
+
export interface OrganizationsPostRequest {
|
|
15
|
+
organizationCreate: OrganizationCreate;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare class OrganizationsApi extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* List all organizations for the authenticated user
|
|
23
|
+
*/
|
|
24
|
+
organizationsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Organization>>>;
|
|
25
|
+
/**
|
|
26
|
+
* List all organizations for the authenticated user
|
|
27
|
+
*/
|
|
28
|
+
organizationsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Organization>>;
|
|
29
|
+
/**
|
|
30
|
+
* Create a new organization
|
|
31
|
+
*/
|
|
32
|
+
organizationsPostRaw(requestParameters: OrganizationsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Organization>>;
|
|
33
|
+
/**
|
|
34
|
+
* Create a new organization
|
|
35
|
+
*/
|
|
36
|
+
organizationsPost(requestParameters: OrganizationsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Organization>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.OrganizationsApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class OrganizationsApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* List all organizations for the authenticated user
|
|
34
|
+
*/
|
|
35
|
+
organizationsGetRaw(initOverrides) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
40
|
+
const token = this.configuration.accessToken;
|
|
41
|
+
const tokenString = yield token("bearerAuth", []);
|
|
42
|
+
if (tokenString) {
|
|
43
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
let urlPath = `/organizations`;
|
|
47
|
+
const response = yield this.request({
|
|
48
|
+
path: urlPath,
|
|
49
|
+
method: 'GET',
|
|
50
|
+
headers: headerParameters,
|
|
51
|
+
query: queryParameters,
|
|
52
|
+
}, initOverrides);
|
|
53
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.OrganizationFromJSON));
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* List all organizations for the authenticated user
|
|
58
|
+
*/
|
|
59
|
+
organizationsGet(initOverrides) {
|
|
60
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
const response = yield this.organizationsGetRaw(initOverrides);
|
|
62
|
+
return yield response.value();
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Create a new organization
|
|
67
|
+
*/
|
|
68
|
+
organizationsPostRaw(requestParameters, initOverrides) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
if (requestParameters['organizationCreate'] == null) {
|
|
71
|
+
throw new runtime.RequiredError('organizationCreate', 'Required parameter "organizationCreate" was null or undefined when calling organizationsPost().');
|
|
72
|
+
}
|
|
73
|
+
const queryParameters = {};
|
|
74
|
+
const headerParameters = {};
|
|
75
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
76
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
77
|
+
const token = this.configuration.accessToken;
|
|
78
|
+
const tokenString = yield token("bearerAuth", []);
|
|
79
|
+
if (tokenString) {
|
|
80
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
let urlPath = `/organizations`;
|
|
84
|
+
const response = yield this.request({
|
|
85
|
+
path: urlPath,
|
|
86
|
+
method: 'POST',
|
|
87
|
+
headers: headerParameters,
|
|
88
|
+
query: queryParameters,
|
|
89
|
+
body: (0, index_1.OrganizationCreateToJSON)(requestParameters['organizationCreate']),
|
|
90
|
+
}, initOverrides);
|
|
91
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrganizationFromJSON)(jsonValue));
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Create a new organization
|
|
96
|
+
*/
|
|
97
|
+
organizationsPost(requestParameters, initOverrides) {
|
|
98
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
99
|
+
const response = yield this.organizationsPostRaw(requestParameters, initOverrides);
|
|
100
|
+
return yield response.value();
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.OrganizationsApi = OrganizationsApi;
|
|
@@ -0,0 +1,30 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { SandboxToken } from '../models/index';
|
|
14
|
+
export interface OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest {
|
|
15
|
+
organizationId: string;
|
|
16
|
+
voiceAgentId: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
export declare class PlaygroundApi extends runtime.BaseAPI {
|
|
22
|
+
/**
|
|
23
|
+
* Get a sandbox token for voice agent testing
|
|
24
|
+
*/
|
|
25
|
+
organizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRaw(requestParameters: OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SandboxToken>>;
|
|
26
|
+
/**
|
|
27
|
+
* Get a sandbox token for voice agent testing
|
|
28
|
+
*/
|
|
29
|
+
organizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPost(requestParameters: OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SandboxToken>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.PlaygroundApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class PlaygroundApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Get a sandbox token for voice agent testing
|
|
34
|
+
*/
|
|
35
|
+
organizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRaw(requestParameters, initOverrides) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
if (requestParameters['organizationId'] == null) {
|
|
38
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPost().');
|
|
39
|
+
}
|
|
40
|
+
if (requestParameters['voiceAgentId'] == null) {
|
|
41
|
+
throw new runtime.RequiredError('voiceAgentId', 'Required parameter "voiceAgentId" was null or undefined when calling organizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPost().');
|
|
42
|
+
}
|
|
43
|
+
const queryParameters = {};
|
|
44
|
+
const headerParameters = {};
|
|
45
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
46
|
+
const token = this.configuration.accessToken;
|
|
47
|
+
const tokenString = yield token("bearerAuth", []);
|
|
48
|
+
if (tokenString) {
|
|
49
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
let urlPath = `/organizations/{organizationId}/voice-agents/{voiceAgentId}/sandbox-token`;
|
|
53
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
54
|
+
urlPath = urlPath.replace(`{${"voiceAgentId"}}`, encodeURIComponent(String(requestParameters['voiceAgentId'])));
|
|
55
|
+
const response = yield this.request({
|
|
56
|
+
path: urlPath,
|
|
57
|
+
method: 'POST',
|
|
58
|
+
headers: headerParameters,
|
|
59
|
+
query: queryParameters,
|
|
60
|
+
}, initOverrides);
|
|
61
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SandboxTokenFromJSON)(jsonValue));
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Get a sandbox token for voice agent testing
|
|
66
|
+
*/
|
|
67
|
+
organizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPost(requestParameters, initOverrides) {
|
|
68
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
69
|
+
const response = yield this.organizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRaw(requestParameters, initOverrides);
|
|
70
|
+
return yield response.value();
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
exports.PlaygroundApi = PlaygroundApi;
|
|
@@ -0,0 +1,132 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { RagConfig, RagConfigCreate, RagDocument, RagDocumentChunkList, RagDocumentList } from '../models/index';
|
|
14
|
+
export interface OrganizationsOrganizationIdRagGetRequest {
|
|
15
|
+
organizationId: string;
|
|
16
|
+
}
|
|
17
|
+
export interface OrganizationsOrganizationIdRagPostRequest {
|
|
18
|
+
organizationId: string;
|
|
19
|
+
ragConfigCreate: RagConfigCreate;
|
|
20
|
+
}
|
|
21
|
+
export interface OrganizationsOrganizationIdRagRagConfigIdDeleteRequest {
|
|
22
|
+
organizationId: string;
|
|
23
|
+
ragConfigId: string;
|
|
24
|
+
}
|
|
25
|
+
export interface OrganizationsOrganizationIdRagRagConfigIdDocumentsDocumentIdDeleteRequest {
|
|
26
|
+
organizationId: string;
|
|
27
|
+
ragConfigId: string;
|
|
28
|
+
documentId: string;
|
|
29
|
+
}
|
|
30
|
+
export interface OrganizationsOrganizationIdRagRagConfigIdDocumentsDocumentIdGetRequest {
|
|
31
|
+
organizationId: string;
|
|
32
|
+
ragConfigId: string;
|
|
33
|
+
documentId: string;
|
|
34
|
+
}
|
|
35
|
+
export interface OrganizationsOrganizationIdRagRagConfigIdDocumentsDocumentIdPutRequest {
|
|
36
|
+
organizationId: string;
|
|
37
|
+
ragConfigId: string;
|
|
38
|
+
documentId: string;
|
|
39
|
+
file: Blob;
|
|
40
|
+
sourceUrl?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface OrganizationsOrganizationIdRagRagConfigIdDocumentsGetRequest {
|
|
43
|
+
organizationId: string;
|
|
44
|
+
ragConfigId: string;
|
|
45
|
+
status?: OrganizationsOrganizationIdRagRagConfigIdDocumentsGetStatusEnum;
|
|
46
|
+
}
|
|
47
|
+
export interface OrganizationsOrganizationIdRagRagConfigIdDocumentsPostRequest {
|
|
48
|
+
organizationId: string;
|
|
49
|
+
ragConfigId: string;
|
|
50
|
+
file: Blob;
|
|
51
|
+
sourceUrl?: string;
|
|
52
|
+
metadata?: string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
*/
|
|
57
|
+
export declare class RAGApi extends runtime.BaseAPI {
|
|
58
|
+
/**
|
|
59
|
+
* List all RAG configurations for an organization
|
|
60
|
+
*/
|
|
61
|
+
organizationsOrganizationIdRagGetRaw(requestParameters: OrganizationsOrganizationIdRagGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<RagConfig>>>;
|
|
62
|
+
/**
|
|
63
|
+
* List all RAG configurations for an organization
|
|
64
|
+
*/
|
|
65
|
+
organizationsOrganizationIdRagGet(requestParameters: OrganizationsOrganizationIdRagGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<RagConfig>>;
|
|
66
|
+
/**
|
|
67
|
+
* Create a new RAG configuration
|
|
68
|
+
*/
|
|
69
|
+
organizationsOrganizationIdRagPostRaw(requestParameters: OrganizationsOrganizationIdRagPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RagConfig>>;
|
|
70
|
+
/**
|
|
71
|
+
* Create a new RAG configuration
|
|
72
|
+
*/
|
|
73
|
+
organizationsOrganizationIdRagPost(requestParameters: OrganizationsOrganizationIdRagPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RagConfig>;
|
|
74
|
+
/**
|
|
75
|
+
* Delete a RAG configuration
|
|
76
|
+
*/
|
|
77
|
+
organizationsOrganizationIdRagRagConfigIdDeleteRaw(requestParameters: OrganizationsOrganizationIdRagRagConfigIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
78
|
+
/**
|
|
79
|
+
* Delete a RAG configuration
|
|
80
|
+
*/
|
|
81
|
+
organizationsOrganizationIdRagRagConfigIdDelete(requestParameters: OrganizationsOrganizationIdRagRagConfigIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
82
|
+
/**
|
|
83
|
+
* Delete a document from a RAG configuration
|
|
84
|
+
*/
|
|
85
|
+
organizationsOrganizationIdRagRagConfigIdDocumentsDocumentIdDeleteRaw(requestParameters: OrganizationsOrganizationIdRagRagConfigIdDocumentsDocumentIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
86
|
+
/**
|
|
87
|
+
* Delete a document from a RAG configuration
|
|
88
|
+
*/
|
|
89
|
+
organizationsOrganizationIdRagRagConfigIdDocumentsDocumentIdDelete(requestParameters: OrganizationsOrganizationIdRagRagConfigIdDocumentsDocumentIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
90
|
+
/**
|
|
91
|
+
* Get document chunks
|
|
92
|
+
*/
|
|
93
|
+
organizationsOrganizationIdRagRagConfigIdDocumentsDocumentIdGetRaw(requestParameters: OrganizationsOrganizationIdRagRagConfigIdDocumentsDocumentIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RagDocumentChunkList>>;
|
|
94
|
+
/**
|
|
95
|
+
* Get document chunks
|
|
96
|
+
*/
|
|
97
|
+
organizationsOrganizationIdRagRagConfigIdDocumentsDocumentIdGet(requestParameters: OrganizationsOrganizationIdRagRagConfigIdDocumentsDocumentIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RagDocumentChunkList>;
|
|
98
|
+
/**
|
|
99
|
+
* Replace a document in a RAG configuration
|
|
100
|
+
*/
|
|
101
|
+
organizationsOrganizationIdRagRagConfigIdDocumentsDocumentIdPutRaw(requestParameters: OrganizationsOrganizationIdRagRagConfigIdDocumentsDocumentIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RagDocument>>;
|
|
102
|
+
/**
|
|
103
|
+
* Replace a document in a RAG configuration
|
|
104
|
+
*/
|
|
105
|
+
organizationsOrganizationIdRagRagConfigIdDocumentsDocumentIdPut(requestParameters: OrganizationsOrganizationIdRagRagConfigIdDocumentsDocumentIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RagDocument>;
|
|
106
|
+
/**
|
|
107
|
+
* List documents in a RAG configuration
|
|
108
|
+
*/
|
|
109
|
+
organizationsOrganizationIdRagRagConfigIdDocumentsGetRaw(requestParameters: OrganizationsOrganizationIdRagRagConfigIdDocumentsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RagDocumentList>>;
|
|
110
|
+
/**
|
|
111
|
+
* List documents in a RAG configuration
|
|
112
|
+
*/
|
|
113
|
+
organizationsOrganizationIdRagRagConfigIdDocumentsGet(requestParameters: OrganizationsOrganizationIdRagRagConfigIdDocumentsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RagDocumentList>;
|
|
114
|
+
/**
|
|
115
|
+
* Upload a document to a RAG configuration
|
|
116
|
+
*/
|
|
117
|
+
organizationsOrganizationIdRagRagConfigIdDocumentsPostRaw(requestParameters: OrganizationsOrganizationIdRagRagConfigIdDocumentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RagDocument>>;
|
|
118
|
+
/**
|
|
119
|
+
* Upload a document to a RAG configuration
|
|
120
|
+
*/
|
|
121
|
+
organizationsOrganizationIdRagRagConfigIdDocumentsPost(requestParameters: OrganizationsOrganizationIdRagRagConfigIdDocumentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RagDocument>;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* @export
|
|
125
|
+
*/
|
|
126
|
+
export declare const OrganizationsOrganizationIdRagRagConfigIdDocumentsGetStatusEnum: {
|
|
127
|
+
readonly Pending: "pending";
|
|
128
|
+
readonly Processing: "processing";
|
|
129
|
+
readonly Completed: "completed";
|
|
130
|
+
readonly Failed: "failed";
|
|
131
|
+
};
|
|
132
|
+
export type OrganizationsOrganizationIdRagRagConfigIdDocumentsGetStatusEnum = typeof OrganizationsOrganizationIdRagRagConfigIdDocumentsGetStatusEnum[keyof typeof OrganizationsOrganizationIdRagRagConfigIdDocumentsGetStatusEnum];
|