@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,239 @@
|
|
|
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.ChatAgentsApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class ChatAgentsApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Delete a chat agent
|
|
34
|
+
*/
|
|
35
|
+
organizationsOrganizationIdChatAgentsChatAgentIdDeleteRaw(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 organizationsOrganizationIdChatAgentsChatAgentIdDelete().');
|
|
39
|
+
}
|
|
40
|
+
if (requestParameters['chatAgentId'] == null) {
|
|
41
|
+
throw new runtime.RequiredError('chatAgentId', 'Required parameter "chatAgentId" was null or undefined when calling organizationsOrganizationIdChatAgentsChatAgentIdDelete().');
|
|
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}/chat-agents/{chatAgentId}`;
|
|
53
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
54
|
+
urlPath = urlPath.replace(`{${"chatAgentId"}}`, encodeURIComponent(String(requestParameters['chatAgentId'])));
|
|
55
|
+
const response = yield this.request({
|
|
56
|
+
path: urlPath,
|
|
57
|
+
method: 'DELETE',
|
|
58
|
+
headers: headerParameters,
|
|
59
|
+
query: queryParameters,
|
|
60
|
+
}, initOverrides);
|
|
61
|
+
return new runtime.VoidApiResponse(response);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Delete a chat agent
|
|
66
|
+
*/
|
|
67
|
+
organizationsOrganizationIdChatAgentsChatAgentIdDelete(requestParameters, initOverrides) {
|
|
68
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
69
|
+
yield this.organizationsOrganizationIdChatAgentsChatAgentIdDeleteRaw(requestParameters, initOverrides);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Get a chat agent by ID
|
|
74
|
+
*/
|
|
75
|
+
organizationsOrganizationIdChatAgentsChatAgentIdGetRaw(requestParameters, initOverrides) {
|
|
76
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
if (requestParameters['organizationId'] == null) {
|
|
78
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdChatAgentsChatAgentIdGet().');
|
|
79
|
+
}
|
|
80
|
+
if (requestParameters['chatAgentId'] == null) {
|
|
81
|
+
throw new runtime.RequiredError('chatAgentId', 'Required parameter "chatAgentId" was null or undefined when calling organizationsOrganizationIdChatAgentsChatAgentIdGet().');
|
|
82
|
+
}
|
|
83
|
+
const queryParameters = {};
|
|
84
|
+
const headerParameters = {};
|
|
85
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
86
|
+
const token = this.configuration.accessToken;
|
|
87
|
+
const tokenString = yield token("bearerAuth", []);
|
|
88
|
+
if (tokenString) {
|
|
89
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
let urlPath = `/organizations/{organizationId}/chat-agents/{chatAgentId}`;
|
|
93
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
94
|
+
urlPath = urlPath.replace(`{${"chatAgentId"}}`, encodeURIComponent(String(requestParameters['chatAgentId'])));
|
|
95
|
+
const response = yield this.request({
|
|
96
|
+
path: urlPath,
|
|
97
|
+
method: 'GET',
|
|
98
|
+
headers: headerParameters,
|
|
99
|
+
query: queryParameters,
|
|
100
|
+
}, initOverrides);
|
|
101
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChatAgentFromJSON)(jsonValue));
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Get a chat agent by ID
|
|
106
|
+
*/
|
|
107
|
+
organizationsOrganizationIdChatAgentsChatAgentIdGet(requestParameters, initOverrides) {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
const response = yield this.organizationsOrganizationIdChatAgentsChatAgentIdGetRaw(requestParameters, initOverrides);
|
|
110
|
+
return yield response.value();
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Update a chat agent
|
|
115
|
+
*/
|
|
116
|
+
organizationsOrganizationIdChatAgentsChatAgentIdPutRaw(requestParameters, initOverrides) {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
if (requestParameters['organizationId'] == null) {
|
|
119
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdChatAgentsChatAgentIdPut().');
|
|
120
|
+
}
|
|
121
|
+
if (requestParameters['chatAgentId'] == null) {
|
|
122
|
+
throw new runtime.RequiredError('chatAgentId', 'Required parameter "chatAgentId" was null or undefined when calling organizationsOrganizationIdChatAgentsChatAgentIdPut().');
|
|
123
|
+
}
|
|
124
|
+
if (requestParameters['chatAgentUpdate'] == null) {
|
|
125
|
+
throw new runtime.RequiredError('chatAgentUpdate', 'Required parameter "chatAgentUpdate" was null or undefined when calling organizationsOrganizationIdChatAgentsChatAgentIdPut().');
|
|
126
|
+
}
|
|
127
|
+
const queryParameters = {};
|
|
128
|
+
const headerParameters = {};
|
|
129
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
130
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
131
|
+
const token = this.configuration.accessToken;
|
|
132
|
+
const tokenString = yield token("bearerAuth", []);
|
|
133
|
+
if (tokenString) {
|
|
134
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
let urlPath = `/organizations/{organizationId}/chat-agents/{chatAgentId}`;
|
|
138
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
139
|
+
urlPath = urlPath.replace(`{${"chatAgentId"}}`, encodeURIComponent(String(requestParameters['chatAgentId'])));
|
|
140
|
+
const response = yield this.request({
|
|
141
|
+
path: urlPath,
|
|
142
|
+
method: 'PUT',
|
|
143
|
+
headers: headerParameters,
|
|
144
|
+
query: queryParameters,
|
|
145
|
+
body: (0, index_1.ChatAgentUpdateToJSON)(requestParameters['chatAgentUpdate']),
|
|
146
|
+
}, initOverrides);
|
|
147
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChatAgentFromJSON)(jsonValue));
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Update a chat agent
|
|
152
|
+
*/
|
|
153
|
+
organizationsOrganizationIdChatAgentsChatAgentIdPut(requestParameters, initOverrides) {
|
|
154
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
155
|
+
const response = yield this.organizationsOrganizationIdChatAgentsChatAgentIdPutRaw(requestParameters, initOverrides);
|
|
156
|
+
return yield response.value();
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* List all chat agents for an organization
|
|
161
|
+
*/
|
|
162
|
+
organizationsOrganizationIdChatAgentsGetRaw(requestParameters, initOverrides) {
|
|
163
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
164
|
+
if (requestParameters['organizationId'] == null) {
|
|
165
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdChatAgentsGet().');
|
|
166
|
+
}
|
|
167
|
+
const queryParameters = {};
|
|
168
|
+
const headerParameters = {};
|
|
169
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
170
|
+
const token = this.configuration.accessToken;
|
|
171
|
+
const tokenString = yield token("bearerAuth", []);
|
|
172
|
+
if (tokenString) {
|
|
173
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
let urlPath = `/organizations/{organizationId}/chat-agents`;
|
|
177
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
178
|
+
const response = yield this.request({
|
|
179
|
+
path: urlPath,
|
|
180
|
+
method: 'GET',
|
|
181
|
+
headers: headerParameters,
|
|
182
|
+
query: queryParameters,
|
|
183
|
+
}, initOverrides);
|
|
184
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ChatAgentFromJSON));
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* List all chat agents for an organization
|
|
189
|
+
*/
|
|
190
|
+
organizationsOrganizationIdChatAgentsGet(requestParameters, initOverrides) {
|
|
191
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
192
|
+
const response = yield this.organizationsOrganizationIdChatAgentsGetRaw(requestParameters, initOverrides);
|
|
193
|
+
return yield response.value();
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Create a new chat agent
|
|
198
|
+
*/
|
|
199
|
+
organizationsOrganizationIdChatAgentsPostRaw(requestParameters, initOverrides) {
|
|
200
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
201
|
+
if (requestParameters['organizationId'] == null) {
|
|
202
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdChatAgentsPost().');
|
|
203
|
+
}
|
|
204
|
+
if (requestParameters['chatAgentCreate'] == null) {
|
|
205
|
+
throw new runtime.RequiredError('chatAgentCreate', 'Required parameter "chatAgentCreate" was null or undefined when calling organizationsOrganizationIdChatAgentsPost().');
|
|
206
|
+
}
|
|
207
|
+
const queryParameters = {};
|
|
208
|
+
const headerParameters = {};
|
|
209
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
210
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
211
|
+
const token = this.configuration.accessToken;
|
|
212
|
+
const tokenString = yield token("bearerAuth", []);
|
|
213
|
+
if (tokenString) {
|
|
214
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
let urlPath = `/organizations/{organizationId}/chat-agents`;
|
|
218
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
219
|
+
const response = yield this.request({
|
|
220
|
+
path: urlPath,
|
|
221
|
+
method: 'POST',
|
|
222
|
+
headers: headerParameters,
|
|
223
|
+
query: queryParameters,
|
|
224
|
+
body: (0, index_1.ChatAgentCreateToJSON)(requestParameters['chatAgentCreate']),
|
|
225
|
+
}, initOverrides);
|
|
226
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChatAgentFromJSON)(jsonValue));
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Create a new chat agent
|
|
231
|
+
*/
|
|
232
|
+
organizationsOrganizationIdChatAgentsPost(requestParameters, initOverrides) {
|
|
233
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
234
|
+
const response = yield this.organizationsOrganizationIdChatAgentsPostRaw(requestParameters, initOverrides);
|
|
235
|
+
return yield response.value();
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
exports.ChatAgentsApi = ChatAgentsApi;
|
|
@@ -0,0 +1,53 @@
|
|
|
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 { HistoryConversation, OrganizationsOrganizationIdConversationsGet200Response } from '../models/index';
|
|
14
|
+
export interface OrganizationsOrganizationIdConversationsConversationIdDeleteRequest {
|
|
15
|
+
organizationId: string;
|
|
16
|
+
conversationId: string;
|
|
17
|
+
}
|
|
18
|
+
export interface OrganizationsOrganizationIdConversationsConversationIdGetRequest {
|
|
19
|
+
organizationId: string;
|
|
20
|
+
conversationId: string;
|
|
21
|
+
}
|
|
22
|
+
export interface OrganizationsOrganizationIdConversationsGetRequest {
|
|
23
|
+
organizationId: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare class HistoryApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Delete a conversation
|
|
31
|
+
*/
|
|
32
|
+
organizationsOrganizationIdConversationsConversationIdDeleteRaw(requestParameters: OrganizationsOrganizationIdConversationsConversationIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
33
|
+
/**
|
|
34
|
+
* Delete a conversation
|
|
35
|
+
*/
|
|
36
|
+
organizationsOrganizationIdConversationsConversationIdDelete(requestParameters: OrganizationsOrganizationIdConversationsConversationIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* Get a conversation by ID
|
|
39
|
+
*/
|
|
40
|
+
organizationsOrganizationIdConversationsConversationIdGetRaw(requestParameters: OrganizationsOrganizationIdConversationsConversationIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HistoryConversation>>;
|
|
41
|
+
/**
|
|
42
|
+
* Get a conversation by ID
|
|
43
|
+
*/
|
|
44
|
+
organizationsOrganizationIdConversationsConversationIdGet(requestParameters: OrganizationsOrganizationIdConversationsConversationIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HistoryConversation>;
|
|
45
|
+
/**
|
|
46
|
+
* List all conversations for an organization
|
|
47
|
+
*/
|
|
48
|
+
organizationsOrganizationIdConversationsGetRaw(requestParameters: OrganizationsOrganizationIdConversationsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrganizationsOrganizationIdConversationsGet200Response>>;
|
|
49
|
+
/**
|
|
50
|
+
* List all conversations for an organization
|
|
51
|
+
*/
|
|
52
|
+
organizationsOrganizationIdConversationsGet(requestParameters: OrganizationsOrganizationIdConversationsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationsOrganizationIdConversationsGet200Response>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
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.HistoryApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class HistoryApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Delete a conversation
|
|
34
|
+
*/
|
|
35
|
+
organizationsOrganizationIdConversationsConversationIdDeleteRaw(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 organizationsOrganizationIdConversationsConversationIdDelete().');
|
|
39
|
+
}
|
|
40
|
+
if (requestParameters['conversationId'] == null) {
|
|
41
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling organizationsOrganizationIdConversationsConversationIdDelete().');
|
|
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}/conversations/{conversationId}`;
|
|
53
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
54
|
+
urlPath = urlPath.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId'])));
|
|
55
|
+
const response = yield this.request({
|
|
56
|
+
path: urlPath,
|
|
57
|
+
method: 'DELETE',
|
|
58
|
+
headers: headerParameters,
|
|
59
|
+
query: queryParameters,
|
|
60
|
+
}, initOverrides);
|
|
61
|
+
return new runtime.VoidApiResponse(response);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Delete a conversation
|
|
66
|
+
*/
|
|
67
|
+
organizationsOrganizationIdConversationsConversationIdDelete(requestParameters, initOverrides) {
|
|
68
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
69
|
+
yield this.organizationsOrganizationIdConversationsConversationIdDeleteRaw(requestParameters, initOverrides);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Get a conversation by ID
|
|
74
|
+
*/
|
|
75
|
+
organizationsOrganizationIdConversationsConversationIdGetRaw(requestParameters, initOverrides) {
|
|
76
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
if (requestParameters['organizationId'] == null) {
|
|
78
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdConversationsConversationIdGet().');
|
|
79
|
+
}
|
|
80
|
+
if (requestParameters['conversationId'] == null) {
|
|
81
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling organizationsOrganizationIdConversationsConversationIdGet().');
|
|
82
|
+
}
|
|
83
|
+
const queryParameters = {};
|
|
84
|
+
const headerParameters = {};
|
|
85
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
86
|
+
const token = this.configuration.accessToken;
|
|
87
|
+
const tokenString = yield token("bearerAuth", []);
|
|
88
|
+
if (tokenString) {
|
|
89
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
let urlPath = `/organizations/{organizationId}/conversations/{conversationId}`;
|
|
93
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
94
|
+
urlPath = urlPath.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId'])));
|
|
95
|
+
const response = yield this.request({
|
|
96
|
+
path: urlPath,
|
|
97
|
+
method: 'GET',
|
|
98
|
+
headers: headerParameters,
|
|
99
|
+
query: queryParameters,
|
|
100
|
+
}, initOverrides);
|
|
101
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.HistoryConversationFromJSON)(jsonValue));
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Get a conversation by ID
|
|
106
|
+
*/
|
|
107
|
+
organizationsOrganizationIdConversationsConversationIdGet(requestParameters, initOverrides) {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
const response = yield this.organizationsOrganizationIdConversationsConversationIdGetRaw(requestParameters, initOverrides);
|
|
110
|
+
return yield response.value();
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* List all conversations for an organization
|
|
115
|
+
*/
|
|
116
|
+
organizationsOrganizationIdConversationsGetRaw(requestParameters, initOverrides) {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
if (requestParameters['organizationId'] == null) {
|
|
119
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdConversationsGet().');
|
|
120
|
+
}
|
|
121
|
+
const queryParameters = {};
|
|
122
|
+
const headerParameters = {};
|
|
123
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
124
|
+
const token = this.configuration.accessToken;
|
|
125
|
+
const tokenString = yield token("bearerAuth", []);
|
|
126
|
+
if (tokenString) {
|
|
127
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
let urlPath = `/organizations/{organizationId}/conversations`;
|
|
131
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
132
|
+
const response = yield this.request({
|
|
133
|
+
path: urlPath,
|
|
134
|
+
method: 'GET',
|
|
135
|
+
headers: headerParameters,
|
|
136
|
+
query: queryParameters,
|
|
137
|
+
}, initOverrides);
|
|
138
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrganizationsOrganizationIdConversationsGet200ResponseFromJSON)(jsonValue));
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* List all conversations for an organization
|
|
143
|
+
*/
|
|
144
|
+
organizationsOrganizationIdConversationsGet(requestParameters, initOverrides) {
|
|
145
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
146
|
+
const response = yield this.organizationsOrganizationIdConversationsGetRaw(requestParameters, initOverrides);
|
|
147
|
+
return yield response.value();
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
exports.HistoryApi = HistoryApi;
|
|
@@ -0,0 +1,52 @@
|
|
|
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 { InvitationAccept, InvitationCreate, InvitationResponse } from '../models/index';
|
|
14
|
+
export interface InvitationsAcceptPostRequest {
|
|
15
|
+
invitationAccept: InvitationAccept;
|
|
16
|
+
}
|
|
17
|
+
export interface OrganizationsOrganizationIdInvitationsGetRequest {
|
|
18
|
+
organizationId: string;
|
|
19
|
+
}
|
|
20
|
+
export interface OrganizationsOrganizationIdInvitationsPostRequest {
|
|
21
|
+
organizationId: string;
|
|
22
|
+
invitationCreate: InvitationCreate;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class InvitationsApi extends runtime.BaseAPI {
|
|
28
|
+
/**
|
|
29
|
+
* Accept an invitation
|
|
30
|
+
*/
|
|
31
|
+
invitationsAcceptPostRaw(requestParameters: InvitationsAcceptPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InvitationResponse>>;
|
|
32
|
+
/**
|
|
33
|
+
* Accept an invitation
|
|
34
|
+
*/
|
|
35
|
+
invitationsAcceptPost(requestParameters: InvitationsAcceptPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InvitationResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* List all invitations for an organization
|
|
38
|
+
*/
|
|
39
|
+
organizationsOrganizationIdInvitationsGetRaw(requestParameters: OrganizationsOrganizationIdInvitationsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<InvitationResponse>>>;
|
|
40
|
+
/**
|
|
41
|
+
* List all invitations for an organization
|
|
42
|
+
*/
|
|
43
|
+
organizationsOrganizationIdInvitationsGet(requestParameters: OrganizationsOrganizationIdInvitationsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<InvitationResponse>>;
|
|
44
|
+
/**
|
|
45
|
+
* Create a new invitation
|
|
46
|
+
*/
|
|
47
|
+
organizationsOrganizationIdInvitationsPostRaw(requestParameters: OrganizationsOrganizationIdInvitationsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InvitationResponse>>;
|
|
48
|
+
/**
|
|
49
|
+
* Create a new invitation
|
|
50
|
+
*/
|
|
51
|
+
organizationsOrganizationIdInvitationsPost(requestParameters: OrganizationsOrganizationIdInvitationsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InvitationResponse>;
|
|
52
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
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.InvitationsApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class InvitationsApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Accept an invitation
|
|
34
|
+
*/
|
|
35
|
+
invitationsAcceptPostRaw(requestParameters, initOverrides) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
if (requestParameters['invitationAccept'] == null) {
|
|
38
|
+
throw new runtime.RequiredError('invitationAccept', 'Required parameter "invitationAccept" was null or undefined when calling invitationsAcceptPost().');
|
|
39
|
+
}
|
|
40
|
+
const queryParameters = {};
|
|
41
|
+
const headerParameters = {};
|
|
42
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
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 = `/invitations/accept`;
|
|
51
|
+
const response = yield this.request({
|
|
52
|
+
path: urlPath,
|
|
53
|
+
method: 'POST',
|
|
54
|
+
headers: headerParameters,
|
|
55
|
+
query: queryParameters,
|
|
56
|
+
body: (0, index_1.InvitationAcceptToJSON)(requestParameters['invitationAccept']),
|
|
57
|
+
}, initOverrides);
|
|
58
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.InvitationResponseFromJSON)(jsonValue));
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Accept an invitation
|
|
63
|
+
*/
|
|
64
|
+
invitationsAcceptPost(requestParameters, initOverrides) {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
const response = yield this.invitationsAcceptPostRaw(requestParameters, initOverrides);
|
|
67
|
+
return yield response.value();
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* List all invitations for an organization
|
|
72
|
+
*/
|
|
73
|
+
organizationsOrganizationIdInvitationsGetRaw(requestParameters, initOverrides) {
|
|
74
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
if (requestParameters['organizationId'] == null) {
|
|
76
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdInvitationsGet().');
|
|
77
|
+
}
|
|
78
|
+
const queryParameters = {};
|
|
79
|
+
const headerParameters = {};
|
|
80
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
81
|
+
const token = this.configuration.accessToken;
|
|
82
|
+
const tokenString = yield token("bearerAuth", []);
|
|
83
|
+
if (tokenString) {
|
|
84
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
let urlPath = `/organizations/{organizationId}/invitations`;
|
|
88
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
89
|
+
const response = yield this.request({
|
|
90
|
+
path: urlPath,
|
|
91
|
+
method: 'GET',
|
|
92
|
+
headers: headerParameters,
|
|
93
|
+
query: queryParameters,
|
|
94
|
+
}, initOverrides);
|
|
95
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.InvitationResponseFromJSON));
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* List all invitations for an organization
|
|
100
|
+
*/
|
|
101
|
+
organizationsOrganizationIdInvitationsGet(requestParameters, initOverrides) {
|
|
102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
const response = yield this.organizationsOrganizationIdInvitationsGetRaw(requestParameters, initOverrides);
|
|
104
|
+
return yield response.value();
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Create a new invitation
|
|
109
|
+
*/
|
|
110
|
+
organizationsOrganizationIdInvitationsPostRaw(requestParameters, initOverrides) {
|
|
111
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
112
|
+
if (requestParameters['organizationId'] == null) {
|
|
113
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdInvitationsPost().');
|
|
114
|
+
}
|
|
115
|
+
if (requestParameters['invitationCreate'] == null) {
|
|
116
|
+
throw new runtime.RequiredError('invitationCreate', 'Required parameter "invitationCreate" was null or undefined when calling organizationsOrganizationIdInvitationsPost().');
|
|
117
|
+
}
|
|
118
|
+
const queryParameters = {};
|
|
119
|
+
const headerParameters = {};
|
|
120
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
121
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
122
|
+
const token = this.configuration.accessToken;
|
|
123
|
+
const tokenString = yield token("bearerAuth", []);
|
|
124
|
+
if (tokenString) {
|
|
125
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
let urlPath = `/organizations/{organizationId}/invitations`;
|
|
129
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
130
|
+
const response = yield this.request({
|
|
131
|
+
path: urlPath,
|
|
132
|
+
method: 'POST',
|
|
133
|
+
headers: headerParameters,
|
|
134
|
+
query: queryParameters,
|
|
135
|
+
body: (0, index_1.InvitationCreateToJSON)(requestParameters['invitationCreate']),
|
|
136
|
+
}, initOverrides);
|
|
137
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.InvitationResponseFromJSON)(jsonValue));
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Create a new invitation
|
|
142
|
+
*/
|
|
143
|
+
organizationsOrganizationIdInvitationsPost(requestParameters, initOverrides) {
|
|
144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
+
const response = yield this.organizationsOrganizationIdInvitationsPostRaw(requestParameters, initOverrides);
|
|
146
|
+
return yield response.value();
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
exports.InvitationsApi = InvitationsApi;
|