phonic 0.30.2 → 0.30.3
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/README.md +1 -770
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/agents/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/agents/client/Client.js +27 -21
- package/dist/cjs/api/resources/agents/client/requests/AgentsCreateRequest.d.ts +2 -4
- package/dist/cjs/api/resources/agents/client/requests/AgentsDeleteRequest.d.ts +1 -3
- package/dist/cjs/api/resources/agents/client/requests/AgentsGetRequest.d.ts +1 -3
- package/dist/cjs/api/resources/agents/client/requests/AgentsListRequest.d.ts +1 -3
- package/dist/cjs/api/resources/agents/client/requests/UpdateAgentRequest.d.ts +2 -4
- package/dist/cjs/api/resources/agents/client/requests/UpsertAgentRequest.d.ts +2 -4
- package/dist/cjs/api/resources/conversations/client/requests/ConversationsListRequest.d.ts +9 -27
- package/dist/cjs/api/resources/conversations/client/requests/ConversationsSipOutboundCallRequest.d.ts +5 -15
- package/dist/cjs/api/resources/conversations/client/requests/OutboundCallRequest.d.ts +1 -1
- package/dist/cjs/api/resources/extractionSchemas/client/Client.js +20 -15
- package/dist/cjs/api/resources/extractionSchemas/client/requests/CreateExtractionSchemaRequest.d.ts +1 -3
- package/dist/cjs/api/resources/extractionSchemas/client/requests/ExtractionSchemasDeleteRequest.d.ts +1 -3
- package/dist/cjs/api/resources/extractionSchemas/client/requests/ExtractionSchemasGetRequest.d.ts +1 -3
- package/dist/cjs/api/resources/extractionSchemas/client/requests/ExtractionSchemasListRequest.d.ts +1 -3
- package/dist/cjs/api/resources/extractionSchemas/client/requests/UpdateExtractionSchemaRequest.d.ts +1 -3
- package/dist/cjs/api/resources/projects/client/Client.js +28 -21
- package/dist/cjs/api/resources/tools/client/Client.d.ts +10 -0
- package/dist/cjs/api/resources/tools/client/Client.js +30 -15
- package/dist/cjs/api/resources/tools/client/requests/CreateToolRequest.d.ts +15 -4
- package/dist/cjs/api/resources/tools/client/requests/CreateToolRequest.js +1 -0
- package/dist/cjs/api/resources/tools/client/requests/ToolsDeleteRequest.d.ts +1 -3
- package/dist/cjs/api/resources/tools/client/requests/ToolsGetRequest.d.ts +6 -3
- package/dist/cjs/api/resources/tools/client/requests/ToolsListRequest.d.ts +1 -3
- package/dist/cjs/api/resources/tools/client/requests/UpdateToolRequest.d.ts +5 -4
- package/dist/cjs/api/resources/tools/client/requests/UpdateToolRequest.js +1 -0
- package/dist/cjs/api/resources/voices/client/Client.js +8 -6
- package/dist/cjs/api/resources/voices/client/requests/VoicesListRequest.d.ts +1 -3
- package/dist/cjs/api/types/Conversation.d.ts +2 -0
- package/dist/cjs/api/types/ConversationItem.d.ts +0 -2
- package/dist/cjs/api/types/IsUserSpeakingPayload.d.ts +8 -0
- package/dist/cjs/api/types/IsUserSpeakingPayload.js +5 -0
- package/dist/cjs/api/types/OutboundCallConfig.d.ts +1 -1
- package/dist/cjs/api/types/Tool.d.ts +4 -1
- package/dist/cjs/api/types/Tool.js +1 -0
- package/dist/cjs/api/types/index.d.ts +1 -0
- package/dist/cjs/api/types/index.js +1 -0
- package/dist/cjs/core/auth/AuthProvider.d.ts +4 -0
- package/dist/cjs/core/auth/AuthProvider.js +2 -0
- package/dist/cjs/core/auth/AuthRequest.d.ts +9 -0
- package/dist/cjs/core/auth/AuthRequest.js +2 -0
- package/dist/cjs/core/auth/index.d.ts +2 -0
- package/dist/cjs/core/fetcher/Fetcher.js +2 -2
- package/dist/cjs/core/fetcher/index.d.ts +5 -5
- package/dist/cjs/core/fetcher/index.js +5 -5
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/index.d.mts +76 -122
- package/dist/index.d.ts +76 -122
- package/dist/index.js +37 -52
- package/dist/index.mjs +37 -52
- package/package.json +2 -2
- package/reference.md +4 -4
- package/dist/esm/Client.d.mts +0 -50
- package/dist/esm/Client.mjs +0 -47
- package/dist/esm/api/errors/BadRequestError.d.mts +0 -8
- package/dist/esm/api/errors/BadRequestError.mjs +0 -15
- package/dist/esm/api/errors/ConflictError.d.mts +0 -8
- package/dist/esm/api/errors/ConflictError.mjs +0 -15
- package/dist/esm/api/errors/ForbiddenError.d.mts +0 -8
- package/dist/esm/api/errors/ForbiddenError.mjs +0 -15
- package/dist/esm/api/errors/GatewayTimeoutError.d.mts +0 -9
- package/dist/esm/api/errors/GatewayTimeoutError.mjs +0 -15
- package/dist/esm/api/errors/InternalServerError.d.mts +0 -9
- package/dist/esm/api/errors/InternalServerError.mjs +0 -15
- package/dist/esm/api/errors/NotFoundError.d.mts +0 -8
- package/dist/esm/api/errors/NotFoundError.mjs +0 -15
- package/dist/esm/api/errors/UnauthorizedError.d.mts +0 -9
- package/dist/esm/api/errors/UnauthorizedError.mjs +0 -15
- package/dist/esm/api/errors/index.d.mts +0 -7
- package/dist/esm/api/errors/index.mjs +0 -7
- package/dist/esm/api/index.d.mts +0 -4
- package/dist/esm/api/index.mjs +0 -4
- package/dist/esm/api/resources/agents/client/Client.d.mts +0 -208
- package/dist/esm/api/resources/agents/client/Client.mjs +0 -552
- package/dist/esm/api/resources/agents/client/index.d.mts +0 -2
- package/dist/esm/api/resources/agents/client/index.mjs +0 -1
- package/dist/esm/api/resources/agents/client/requests/AgentsCreateRequest.d.mts +0 -43
- package/dist/esm/api/resources/agents/client/requests/AgentsCreateRequest.mjs +0 -4
- package/dist/esm/api/resources/agents/client/requests/AgentsDeleteRequest.d.mts +0 -15
- package/dist/esm/api/resources/agents/client/requests/AgentsDeleteRequest.mjs +0 -4
- package/dist/esm/api/resources/agents/client/requests/AgentsGetRequest.d.mts +0 -15
- package/dist/esm/api/resources/agents/client/requests/AgentsGetRequest.mjs +0 -4
- package/dist/esm/api/resources/agents/client/requests/AgentsListRequest.d.mts +0 -13
- package/dist/esm/api/resources/agents/client/requests/AgentsListRequest.mjs +0 -4
- package/dist/esm/api/resources/agents/client/requests/UpdateAgentRequest.d.mts +0 -104
- package/dist/esm/api/resources/agents/client/requests/UpdateAgentRequest.mjs +0 -10
- package/dist/esm/api/resources/agents/client/requests/UpsertAgentRequest.d.mts +0 -40
- package/dist/esm/api/resources/agents/client/requests/UpsertAgentRequest.mjs +0 -4
- package/dist/esm/api/resources/agents/client/requests/index.d.mts +0 -6
- package/dist/esm/api/resources/agents/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/agents/index.d.mts +0 -2
- package/dist/esm/api/resources/agents/index.mjs +0 -2
- package/dist/esm/api/resources/agents/types/AgentsCreateResponse.d.mts +0 -9
- package/dist/esm/api/resources/agents/types/AgentsCreateResponse.mjs +0 -4
- package/dist/esm/api/resources/agents/types/AgentsDeleteResponse.d.mts +0 -7
- package/dist/esm/api/resources/agents/types/AgentsDeleteResponse.mjs +0 -4
- package/dist/esm/api/resources/agents/types/AgentsGetResponse.d.mts +0 -7
- package/dist/esm/api/resources/agents/types/AgentsGetResponse.mjs +0 -4
- package/dist/esm/api/resources/agents/types/AgentsListResponse.d.mts +0 -7
- package/dist/esm/api/resources/agents/types/AgentsListResponse.mjs +0 -4
- package/dist/esm/api/resources/agents/types/AgentsUpdateResponse.d.mts +0 -7
- package/dist/esm/api/resources/agents/types/AgentsUpdateResponse.mjs +0 -4
- package/dist/esm/api/resources/agents/types/AgentsUpsertResponse.d.mts +0 -11
- package/dist/esm/api/resources/agents/types/AgentsUpsertResponse.mjs +0 -4
- package/dist/esm/api/resources/agents/types/index.d.mts +0 -6
- package/dist/esm/api/resources/agents/types/index.mjs +0 -6
- package/dist/esm/api/resources/conversations/client/Client.d.mts +0 -236
- package/dist/esm/api/resources/conversations/client/Client.mjs +0 -858
- package/dist/esm/api/resources/conversations/client/Socket.d.mts +0 -64
- package/dist/esm/api/resources/conversations/client/Socket.mjs +0 -159
- package/dist/esm/api/resources/conversations/client/index.d.mts +0 -2
- package/dist/esm/api/resources/conversations/client/index.mjs +0 -1
- package/dist/esm/api/resources/conversations/client/requests/ConversationsListRequest.d.mts +0 -48
- package/dist/esm/api/resources/conversations/client/requests/ConversationsListRequest.mjs +0 -4
- package/dist/esm/api/resources/conversations/client/requests/ConversationsSipOutboundCallRequest.d.mts +0 -39
- package/dist/esm/api/resources/conversations/client/requests/ConversationsSipOutboundCallRequest.mjs +0 -4
- package/dist/esm/api/resources/conversations/client/requests/EvaluateConversationRequest.d.mts +0 -13
- package/dist/esm/api/resources/conversations/client/requests/EvaluateConversationRequest.mjs +0 -4
- package/dist/esm/api/resources/conversations/client/requests/ExtractDataRequest.d.mts +0 -13
- package/dist/esm/api/resources/conversations/client/requests/ExtractDataRequest.mjs +0 -4
- package/dist/esm/api/resources/conversations/client/requests/OutboundCallRequest.d.mts +0 -30
- package/dist/esm/api/resources/conversations/client/requests/OutboundCallRequest.mjs +0 -4
- package/dist/esm/api/resources/conversations/client/requests/index.d.mts +0 -5
- package/dist/esm/api/resources/conversations/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/conversations/index.d.mts +0 -2
- package/dist/esm/api/resources/conversations/index.mjs +0 -2
- package/dist/esm/api/resources/conversations/types/ConversationsCancelResponse.d.mts +0 -7
- package/dist/esm/api/resources/conversations/types/ConversationsCancelResponse.mjs +0 -4
- package/dist/esm/api/resources/conversations/types/ConversationsExtractDataResponse.d.mts +0 -7
- package/dist/esm/api/resources/conversations/types/ConversationsExtractDataResponse.mjs +0 -4
- package/dist/esm/api/resources/conversations/types/ConversationsGetAnalysisResponse.d.mts +0 -7
- package/dist/esm/api/resources/conversations/types/ConversationsGetAnalysisResponse.mjs +0 -4
- package/dist/esm/api/resources/conversations/types/ConversationsGetResponse.d.mts +0 -7
- package/dist/esm/api/resources/conversations/types/ConversationsGetResponse.mjs +0 -4
- package/dist/esm/api/resources/conversations/types/ConversationsListEvaluationsResponse.d.mts +0 -7
- package/dist/esm/api/resources/conversations/types/ConversationsListEvaluationsResponse.mjs +0 -4
- package/dist/esm/api/resources/conversations/types/ConversationsListExtractionsResponse.d.mts +0 -7
- package/dist/esm/api/resources/conversations/types/ConversationsListExtractionsResponse.mjs +0 -4
- package/dist/esm/api/resources/conversations/types/ConversationsListResponse.d.mts +0 -9
- package/dist/esm/api/resources/conversations/types/ConversationsListResponse.mjs +0 -4
- package/dist/esm/api/resources/conversations/types/ConversationsOutboundCallResponse.d.mts +0 -7
- package/dist/esm/api/resources/conversations/types/ConversationsOutboundCallResponse.mjs +0 -4
- package/dist/esm/api/resources/conversations/types/ConversationsSipOutboundCallResponse.d.mts +0 -7
- package/dist/esm/api/resources/conversations/types/ConversationsSipOutboundCallResponse.mjs +0 -4
- package/dist/esm/api/resources/conversations/types/index.d.mts +0 -9
- package/dist/esm/api/resources/conversations/types/index.mjs +0 -9
- package/dist/esm/api/resources/extractionSchemas/client/Client.d.mts +0 -142
- package/dist/esm/api/resources/extractionSchemas/client/Client.mjs +0 -431
- package/dist/esm/api/resources/extractionSchemas/client/index.d.mts +0 -2
- package/dist/esm/api/resources/extractionSchemas/client/index.mjs +0 -1
- package/dist/esm/api/resources/extractionSchemas/client/requests/CreateExtractionSchemaRequest.d.mts +0 -37
- package/dist/esm/api/resources/extractionSchemas/client/requests/CreateExtractionSchemaRequest.mjs +0 -4
- package/dist/esm/api/resources/extractionSchemas/client/requests/ExtractionSchemasDeleteRequest.d.mts +0 -15
- package/dist/esm/api/resources/extractionSchemas/client/requests/ExtractionSchemasDeleteRequest.mjs +0 -4
- package/dist/esm/api/resources/extractionSchemas/client/requests/ExtractionSchemasGetRequest.d.mts +0 -15
- package/dist/esm/api/resources/extractionSchemas/client/requests/ExtractionSchemasGetRequest.mjs +0 -4
- package/dist/esm/api/resources/extractionSchemas/client/requests/ExtractionSchemasListRequest.d.mts +0 -15
- package/dist/esm/api/resources/extractionSchemas/client/requests/ExtractionSchemasListRequest.mjs +0 -4
- package/dist/esm/api/resources/extractionSchemas/client/requests/UpdateExtractionSchemaRequest.d.mts +0 -33
- package/dist/esm/api/resources/extractionSchemas/client/requests/UpdateExtractionSchemaRequest.mjs +0 -4
- package/dist/esm/api/resources/extractionSchemas/client/requests/index.d.mts +0 -5
- package/dist/esm/api/resources/extractionSchemas/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/extractionSchemas/index.d.mts +0 -2
- package/dist/esm/api/resources/extractionSchemas/index.mjs +0 -2
- package/dist/esm/api/resources/extractionSchemas/types/ExtractionSchemasCreateResponse.d.mts +0 -9
- package/dist/esm/api/resources/extractionSchemas/types/ExtractionSchemasCreateResponse.mjs +0 -4
- package/dist/esm/api/resources/extractionSchemas/types/ExtractionSchemasDeleteResponse.d.mts +0 -7
- package/dist/esm/api/resources/extractionSchemas/types/ExtractionSchemasDeleteResponse.mjs +0 -4
- package/dist/esm/api/resources/extractionSchemas/types/ExtractionSchemasGetResponse.d.mts +0 -7
- package/dist/esm/api/resources/extractionSchemas/types/ExtractionSchemasGetResponse.mjs +0 -4
- package/dist/esm/api/resources/extractionSchemas/types/ExtractionSchemasListResponse.d.mts +0 -7
- package/dist/esm/api/resources/extractionSchemas/types/ExtractionSchemasListResponse.mjs +0 -4
- package/dist/esm/api/resources/extractionSchemas/types/ExtractionSchemasUpdateResponse.d.mts +0 -7
- package/dist/esm/api/resources/extractionSchemas/types/ExtractionSchemasUpdateResponse.mjs +0 -4
- package/dist/esm/api/resources/extractionSchemas/types/index.d.mts +0 -5
- package/dist/esm/api/resources/extractionSchemas/types/index.mjs +0 -5
- package/dist/esm/api/resources/index.d.mts +0 -18
- package/dist/esm/api/resources/index.mjs +0 -18
- package/dist/esm/api/resources/projects/client/Client.d.mts +0 -157
- package/dist/esm/api/resources/projects/client/Client.mjs +0 -540
- package/dist/esm/api/resources/projects/client/index.d.mts +0 -2
- package/dist/esm/api/resources/projects/client/index.mjs +0 -1
- package/dist/esm/api/resources/projects/client/requests/CreateConversationEvalPromptRequest.d.mts +0 -16
- package/dist/esm/api/resources/projects/client/requests/CreateConversationEvalPromptRequest.mjs +0 -4
- package/dist/esm/api/resources/projects/client/requests/CreateProjectRequest.d.mts +0 -13
- package/dist/esm/api/resources/projects/client/requests/CreateProjectRequest.mjs +0 -4
- package/dist/esm/api/resources/projects/client/requests/UpdateProjectRequest.d.mts +0 -15
- package/dist/esm/api/resources/projects/client/requests/UpdateProjectRequest.mjs +0 -4
- package/dist/esm/api/resources/projects/client/requests/index.d.mts +0 -3
- package/dist/esm/api/resources/projects/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/projects/index.d.mts +0 -2
- package/dist/esm/api/resources/projects/index.mjs +0 -2
- package/dist/esm/api/resources/projects/types/ProjectsCreateEvalPromptResponse.d.mts +0 -7
- package/dist/esm/api/resources/projects/types/ProjectsCreateEvalPromptResponse.mjs +0 -4
- package/dist/esm/api/resources/projects/types/ProjectsCreateResponse.d.mts +0 -9
- package/dist/esm/api/resources/projects/types/ProjectsCreateResponse.mjs +0 -4
- package/dist/esm/api/resources/projects/types/ProjectsDeleteResponse.d.mts +0 -7
- package/dist/esm/api/resources/projects/types/ProjectsDeleteResponse.mjs +0 -4
- package/dist/esm/api/resources/projects/types/ProjectsGetResponse.d.mts +0 -7
- package/dist/esm/api/resources/projects/types/ProjectsGetResponse.mjs +0 -4
- package/dist/esm/api/resources/projects/types/ProjectsListEvalPromptsResponse.d.mts +0 -7
- package/dist/esm/api/resources/projects/types/ProjectsListEvalPromptsResponse.mjs +0 -4
- package/dist/esm/api/resources/projects/types/ProjectsListResponse.d.mts +0 -7
- package/dist/esm/api/resources/projects/types/ProjectsListResponse.mjs +0 -4
- package/dist/esm/api/resources/projects/types/ProjectsUpdateResponse.d.mts +0 -7
- package/dist/esm/api/resources/projects/types/ProjectsUpdateResponse.mjs +0 -4
- package/dist/esm/api/resources/projects/types/index.d.mts +0 -7
- package/dist/esm/api/resources/projects/types/index.mjs +0 -7
- package/dist/esm/api/resources/tools/client/Client.d.mts +0 -160
- package/dist/esm/api/resources/tools/client/Client.mjs +0 -442
- package/dist/esm/api/resources/tools/client/index.d.mts +0 -2
- package/dist/esm/api/resources/tools/client/index.mjs +0 -1
- package/dist/esm/api/resources/tools/client/requests/CreateToolRequest.d.mts +0 -92
- package/dist/esm/api/resources/tools/client/requests/CreateToolRequest.mjs +0 -14
- package/dist/esm/api/resources/tools/client/requests/ToolsDeleteRequest.d.mts +0 -15
- package/dist/esm/api/resources/tools/client/requests/ToolsDeleteRequest.mjs +0 -4
- package/dist/esm/api/resources/tools/client/requests/ToolsGetRequest.d.mts +0 -20
- package/dist/esm/api/resources/tools/client/requests/ToolsGetRequest.mjs +0 -4
- package/dist/esm/api/resources/tools/client/requests/ToolsListRequest.d.mts +0 -15
- package/dist/esm/api/resources/tools/client/requests/ToolsListRequest.mjs +0 -4
- package/dist/esm/api/resources/tools/client/requests/UpdateToolRequest.d.mts +0 -54
- package/dist/esm/api/resources/tools/client/requests/UpdateToolRequest.mjs +0 -14
- package/dist/esm/api/resources/tools/client/requests/index.d.mts +0 -5
- package/dist/esm/api/resources/tools/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/tools/index.d.mts +0 -2
- package/dist/esm/api/resources/tools/index.mjs +0 -2
- package/dist/esm/api/resources/tools/types/ToolsCreateResponse.d.mts +0 -9
- package/dist/esm/api/resources/tools/types/ToolsCreateResponse.mjs +0 -4
- package/dist/esm/api/resources/tools/types/ToolsDeleteResponse.d.mts +0 -7
- package/dist/esm/api/resources/tools/types/ToolsDeleteResponse.mjs +0 -4
- package/dist/esm/api/resources/tools/types/ToolsGetResponse.d.mts +0 -7
- package/dist/esm/api/resources/tools/types/ToolsGetResponse.mjs +0 -4
- package/dist/esm/api/resources/tools/types/ToolsListResponse.d.mts +0 -7
- package/dist/esm/api/resources/tools/types/ToolsListResponse.mjs +0 -4
- package/dist/esm/api/resources/tools/types/ToolsUpdateResponse.d.mts +0 -7
- package/dist/esm/api/resources/tools/types/ToolsUpdateResponse.mjs +0 -4
- package/dist/esm/api/resources/tools/types/index.d.mts +0 -5
- package/dist/esm/api/resources/tools/types/index.mjs +0 -5
- package/dist/esm/api/resources/voices/client/Client.d.mts +0 -65
- package/dist/esm/api/resources/voices/client/Client.mjs +0 -166
- package/dist/esm/api/resources/voices/client/index.d.mts +0 -2
- package/dist/esm/api/resources/voices/client/index.mjs +0 -1
- package/dist/esm/api/resources/voices/client/requests/VoicesListRequest.d.mts +0 -15
- package/dist/esm/api/resources/voices/client/requests/VoicesListRequest.mjs +0 -4
- package/dist/esm/api/resources/voices/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/voices/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/voices/index.d.mts +0 -2
- package/dist/esm/api/resources/voices/index.mjs +0 -2
- package/dist/esm/api/resources/voices/types/VoicesGetResponse.d.mts +0 -7
- package/dist/esm/api/resources/voices/types/VoicesGetResponse.mjs +0 -4
- package/dist/esm/api/resources/voices/types/VoicesListResponse.d.mts +0 -7
- package/dist/esm/api/resources/voices/types/VoicesListResponse.mjs +0 -4
- package/dist/esm/api/resources/voices/types/index.d.mts +0 -2
- package/dist/esm/api/resources/voices/types/index.mjs +0 -2
- package/dist/esm/api/types/Agent.d.mts +0 -80
- package/dist/esm/api/types/Agent.mjs +0 -10
- package/dist/esm/api/types/AssistantChoseNotToRespondPayload.d.mts +0 -6
- package/dist/esm/api/types/AssistantChoseNotToRespondPayload.mjs +0 -4
- package/dist/esm/api/types/AssistantEndedConversationPayload.d.mts +0 -6
- package/dist/esm/api/types/AssistantEndedConversationPayload.mjs +0 -4
- package/dist/esm/api/types/AudioChunkPayload.d.mts +0 -10
- package/dist/esm/api/types/AudioChunkPayload.mjs +0 -4
- package/dist/esm/api/types/AudioChunkResponsePayload.d.mts +0 -10
- package/dist/esm/api/types/AudioChunkResponsePayload.mjs +0 -4
- package/dist/esm/api/types/AudioFinishedPayload.d.mts +0 -6
- package/dist/esm/api/types/AudioFinishedPayload.mjs +0 -4
- package/dist/esm/api/types/BadRequestErrorBody.d.mts +0 -5
- package/dist/esm/api/types/BadRequestErrorBody.mjs +0 -4
- package/dist/esm/api/types/BasicError.d.mts +0 -14
- package/dist/esm/api/types/BasicError.mjs +0 -4
- package/dist/esm/api/types/ConfigPayload.d.mts +0 -66
- package/dist/esm/api/types/ConfigPayload.mjs +0 -14
- package/dist/esm/api/types/Conversation.d.mts +0 -49
- package/dist/esm/api/types/Conversation.mjs +0 -4
- package/dist/esm/api/types/ConversationAnalysis.d.mts +0 -9
- package/dist/esm/api/types/ConversationAnalysis.mjs +0 -4
- package/dist/esm/api/types/ConversationCreatedPayload.d.mts +0 -8
- package/dist/esm/api/types/ConversationCreatedPayload.mjs +0 -4
- package/dist/esm/api/types/ConversationEval.d.mts +0 -4
- package/dist/esm/api/types/ConversationEval.mjs +0 -4
- package/dist/esm/api/types/ConversationEvalPrompt.d.mts +0 -11
- package/dist/esm/api/types/ConversationEvalPrompt.mjs +0 -4
- package/dist/esm/api/types/ConversationEvaluation.d.mts +0 -8
- package/dist/esm/api/types/ConversationEvaluation.mjs +0 -4
- package/dist/esm/api/types/ConversationEvaluationResult.d.mts +0 -32
- package/dist/esm/api/types/ConversationEvaluationResult.mjs +0 -12
- package/dist/esm/api/types/ConversationExtraction.d.mts +0 -22
- package/dist/esm/api/types/ConversationExtraction.mjs +0 -4
- package/dist/esm/api/types/ConversationItem.d.mts +0 -33
- package/dist/esm/api/types/ConversationItem.mjs +0 -10
- package/dist/esm/api/types/CreateAgentRequest.d.mts +0 -70
- package/dist/esm/api/types/CreateAgentRequest.mjs +0 -10
- package/dist/esm/api/types/DtmfPayload.d.mts +0 -8
- package/dist/esm/api/types/DtmfPayload.mjs +0 -4
- package/dist/esm/api/types/ErrorPayload.d.mts +0 -17
- package/dist/esm/api/types/ErrorPayload.mjs +0 -4
- package/dist/esm/api/types/Error_.d.mts +0 -5
- package/dist/esm/api/types/Error_.mjs +0 -4
- package/dist/esm/api/types/ExtractionField.d.mts +0 -23
- package/dist/esm/api/types/ExtractionField.mjs +0 -12
- package/dist/esm/api/types/ExtractionSchema.d.mts +0 -14
- package/dist/esm/api/types/ExtractionSchema.mjs +0 -4
- package/dist/esm/api/types/InputCancelledPayload.d.mts +0 -6
- package/dist/esm/api/types/InputCancelledPayload.mjs +0 -4
- package/dist/esm/api/types/InputTextPayload.d.mts +0 -8
- package/dist/esm/api/types/InputTextPayload.mjs +0 -4
- package/dist/esm/api/types/InterruptedResponsePayload.d.mts +0 -8
- package/dist/esm/api/types/InterruptedResponsePayload.mjs +0 -4
- package/dist/esm/api/types/OutboundCallConfig.d.mts +0 -39
- package/dist/esm/api/types/OutboundCallConfig.mjs +0 -4
- package/dist/esm/api/types/Project.d.mts +0 -22
- package/dist/esm/api/types/Project.mjs +0 -4
- package/dist/esm/api/types/ReadyToStartConversationPayload.d.mts +0 -6
- package/dist/esm/api/types/ReadyToStartConversationPayload.mjs +0 -4
- package/dist/esm/api/types/SetExternalIdPayload.d.mts +0 -8
- package/dist/esm/api/types/SetExternalIdPayload.mjs +0 -4
- package/dist/esm/api/types/SetTwilioCallSidPayload.d.mts +0 -8
- package/dist/esm/api/types/SetTwilioCallSidPayload.mjs +0 -4
- package/dist/esm/api/types/Task.d.mts +0 -9
- package/dist/esm/api/types/Task.mjs +0 -4
- package/dist/esm/api/types/Tool.d.mts +0 -51
- package/dist/esm/api/types/Tool.mjs +0 -14
- package/dist/esm/api/types/ToolCallInterruptedPayload.d.mts +0 -12
- package/dist/esm/api/types/ToolCallInterruptedPayload.mjs +0 -4
- package/dist/esm/api/types/ToolCallOutputPayload.d.mts +0 -9
- package/dist/esm/api/types/ToolCallOutputPayload.mjs +0 -4
- package/dist/esm/api/types/ToolCallOutputProcessedPayload.d.mts +0 -35
- package/dist/esm/api/types/ToolCallOutputProcessedPayload.mjs +0 -4
- package/dist/esm/api/types/ToolCallPayload.d.mts +0 -12
- package/dist/esm/api/types/ToolCallPayload.mjs +0 -4
- package/dist/esm/api/types/ToolParameter.d.mts +0 -38
- package/dist/esm/api/types/ToolParameter.mjs +0 -19
- package/dist/esm/api/types/UpdateSystemPromptPayload.d.mts +0 -8
- package/dist/esm/api/types/UpdateSystemPromptPayload.mjs +0 -4
- package/dist/esm/api/types/UserFinishedSpeakingPayload.d.mts +0 -6
- package/dist/esm/api/types/UserFinishedSpeakingPayload.mjs +0 -4
- package/dist/esm/api/types/UserStartedSpeakingPayload.d.mts +0 -6
- package/dist/esm/api/types/UserStartedSpeakingPayload.mjs +0 -4
- package/dist/esm/api/types/ValidationError.d.mts +0 -14
- package/dist/esm/api/types/ValidationError.mjs +0 -4
- package/dist/esm/api/types/Voice.d.mts +0 -11
- package/dist/esm/api/types/Voice.mjs +0 -4
- package/dist/esm/api/types/index.d.mts +0 -44
- package/dist/esm/api/types/index.mjs +0 -44
- package/dist/esm/api/types/overrides.d.mts +0 -50
- package/dist/esm/api/types/overrides.mjs +0 -1
- package/dist/esm/core/auth/BasicAuth.d.mts +0 -8
- package/dist/esm/core/auth/BasicAuth.mjs +0 -23
- package/dist/esm/core/auth/BearerToken.d.mts +0 -5
- package/dist/esm/core/auth/BearerToken.mjs +0 -12
- package/dist/esm/core/auth/index.d.mts +0 -2
- package/dist/esm/core/auth/index.mjs +0 -2
- package/dist/esm/core/base64.d.mts +0 -2
- package/dist/esm/core/base64.mjs +0 -22
- package/dist/esm/core/fetcher/APIResponse.d.mts +0 -20
- package/dist/esm/core/fetcher/APIResponse.mjs +0 -1
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +0 -20
- package/dist/esm/core/fetcher/BinaryResponse.mjs +0 -14
- package/dist/esm/core/fetcher/Fetcher.d.mts +0 -40
- package/dist/esm/core/fetcher/Fetcher.mjs +0 -116
- package/dist/esm/core/fetcher/Headers.d.mts +0 -2
- package/dist/esm/core/fetcher/Headers.mjs +0 -82
- package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +0 -58
- package/dist/esm/core/fetcher/HttpResponsePromise.mjs +0 -99
- package/dist/esm/core/fetcher/RawResponse.d.mts +0 -29
- package/dist/esm/core/fetcher/RawResponse.mjs +0 -40
- package/dist/esm/core/fetcher/ResponseWithBody.d.mts +0 -4
- package/dist/esm/core/fetcher/ResponseWithBody.mjs +0 -3
- package/dist/esm/core/fetcher/Supplier.d.mts +0 -4
- package/dist/esm/core/fetcher/Supplier.mjs +0 -19
- package/dist/esm/core/fetcher/createRequestUrl.d.mts +0 -1
- package/dist/esm/core/fetcher/createRequestUrl.mjs +0 -5
- package/dist/esm/core/fetcher/getErrorResponseBody.d.mts +0 -1
- package/dist/esm/core/fetcher/getErrorResponseBody.mjs +0 -41
- package/dist/esm/core/fetcher/getFetchFn.d.mts +0 -1
- package/dist/esm/core/fetcher/getFetchFn.mjs +0 -14
- package/dist/esm/core/fetcher/getHeader.d.mts +0 -1
- package/dist/esm/core/fetcher/getHeader.mjs +0 -8
- package/dist/esm/core/fetcher/getRequestBody.d.mts +0 -7
- package/dist/esm/core/fetcher/getRequestBody.mjs +0 -20
- package/dist/esm/core/fetcher/getResponseBody.d.mts +0 -1
- package/dist/esm/core/fetcher/getResponseBody.mjs +0 -52
- package/dist/esm/core/fetcher/index.d.mts +0 -9
- package/dist/esm/core/fetcher/index.mjs +0 -5
- package/dist/esm/core/fetcher/makeRequest.d.mts +0 -1
- package/dist/esm/core/fetcher/makeRequest.mjs +0 -38
- package/dist/esm/core/fetcher/requestWithRetries.d.mts +0 -1
- package/dist/esm/core/fetcher/requestWithRetries.mjs +0 -37
- package/dist/esm/core/fetcher/signals.d.mts +0 -11
- package/dist/esm/core/fetcher/signals.mjs +0 -32
- package/dist/esm/core/headers.d.mts +0 -3
- package/dist/esm/core/headers.mjs +0 -25
- package/dist/esm/core/index.d.mts +0 -6
- package/dist/esm/core/index.mjs +0 -6
- package/dist/esm/core/json.d.mts +0 -15
- package/dist/esm/core/json.mjs +0 -19
- package/dist/esm/core/runtime/index.d.mts +0 -1
- package/dist/esm/core/runtime/index.mjs +0 -1
- package/dist/esm/core/runtime/runtime.d.mts +0 -9
- package/dist/esm/core/runtime/runtime.mjs +0 -99
- package/dist/esm/core/url/index.d.mts +0 -2
- package/dist/esm/core/url/index.mjs +0 -2
- package/dist/esm/core/url/join.d.mts +0 -1
- package/dist/esm/core/url/join.mjs +0 -66
- package/dist/esm/core/url/qs.d.mts +0 -6
- package/dist/esm/core/url/qs.mjs +0 -61
- package/dist/esm/core/websocket/events.d.mts +0 -36
- package/dist/esm/core/websocket/events.mjs +0 -21
- package/dist/esm/core/websocket/index.d.mts +0 -1
- package/dist/esm/core/websocket/index.mjs +0 -1
- package/dist/esm/core/websocket/ws.d.mts +0 -147
- package/dist/esm/core/websocket/ws.mjs +0 -423
- package/dist/esm/environments.d.mts +0 -14
- package/dist/esm/environments.mjs +0 -9
- package/dist/esm/errors/PhonicError.d.mts +0 -15
- package/dist/esm/errors/PhonicError.mjs +0 -26
- package/dist/esm/errors/PhonicTimeoutError.d.mts +0 -6
- package/dist/esm/errors/PhonicTimeoutError.mjs +0 -9
- package/dist/esm/errors/index.d.mts +0 -2
- package/dist/esm/errors/index.mjs +0 -2
- package/dist/esm/index.d.mts +0 -4
- package/dist/esm/index.mjs +0 -4
- package/dist/esm/version.d.mts +0 -1
- package/dist/esm/version.mjs +0 -1
package/dist/cjs/Client.js
CHANGED
|
@@ -50,8 +50,8 @@ class PhonicClient {
|
|
|
50
50
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
51
51
|
"X-Fern-Language": "JavaScript",
|
|
52
52
|
"X-Fern-SDK-Name": "phonic",
|
|
53
|
-
"X-Fern-SDK-Version": "0.30.
|
|
54
|
-
"User-Agent": "phonic/0.30.
|
|
53
|
+
"X-Fern-SDK-Version": "0.30.3",
|
|
54
|
+
"User-Agent": "phonic/0.30.3",
|
|
55
55
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
56
56
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
57
57
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -62,7 +62,7 @@ export declare class Agents {
|
|
|
62
62
|
* name: "support-agent",
|
|
63
63
|
* phone_number: "assign-automatically",
|
|
64
64
|
* timezone: "America/Los_Angeles",
|
|
65
|
-
* voice_id: "
|
|
65
|
+
* voice_id: "grant",
|
|
66
66
|
* audio_speed: 1,
|
|
67
67
|
* welcome_message: "Hi {{customer_name}}. How can I help you today?",
|
|
68
68
|
* system_prompt: "You are an expert in {{subject}}. Be friendly, helpful and concise.",
|
|
@@ -103,7 +103,7 @@ export declare class Agents {
|
|
|
103
103
|
* name: "support-agent",
|
|
104
104
|
* phone_number: "assign-automatically",
|
|
105
105
|
* timezone: "America/Los_Angeles",
|
|
106
|
-
* voice_id: "
|
|
106
|
+
* voice_id: "grant",
|
|
107
107
|
* audio_speed: 1,
|
|
108
108
|
* welcome_message: "Hi {{customer_name}}. How can I help you today?",
|
|
109
109
|
* system_prompt: "You are an expert in {{subject}}. Be friendly, helpful and concise.",
|
|
@@ -179,7 +179,7 @@ export declare class Agents {
|
|
|
179
179
|
* name: "updated-support-agent",
|
|
180
180
|
* phone_number: "assign-automatically",
|
|
181
181
|
* timezone: "America/Los_Angeles",
|
|
182
|
-
* voice_id: "
|
|
182
|
+
* voice_id: "grant",
|
|
183
183
|
* audio_speed: 1,
|
|
184
184
|
* welcome_message: "Hi {{customer_name}}. How can I help you today?",
|
|
185
185
|
* system_prompt: "You are an expert in {{subject}}. Be friendly, helpful and concise.",
|
|
@@ -89,11 +89,12 @@ class Agents {
|
|
|
89
89
|
if (project != null) {
|
|
90
90
|
_queryParams["project"] = project;
|
|
91
91
|
}
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
93
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
94
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.PhonicEnvironment.Default)
|
|
94
95
|
.base, "agents"),
|
|
95
96
|
method: "GET",
|
|
96
|
-
headers:
|
|
97
|
+
headers: _headers,
|
|
97
98
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
98
99
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
99
100
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -151,7 +152,7 @@ class Agents {
|
|
|
151
152
|
* name: "support-agent",
|
|
152
153
|
* phone_number: "assign-automatically",
|
|
153
154
|
* timezone: "America/Los_Angeles",
|
|
154
|
-
* voice_id: "
|
|
155
|
+
* voice_id: "grant",
|
|
155
156
|
* audio_speed: 1,
|
|
156
157
|
* welcome_message: "Hi {{customer_name}}. How can I help you today?",
|
|
157
158
|
* system_prompt: "You are an expert in {{subject}}. Be friendly, helpful and concise.",
|
|
@@ -186,11 +187,12 @@ class Agents {
|
|
|
186
187
|
if (project != null) {
|
|
187
188
|
_queryParams["project"] = project;
|
|
188
189
|
}
|
|
189
|
-
|
|
190
|
-
|
|
190
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
191
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
192
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.PhonicEnvironment.Default)
|
|
191
193
|
.base, "agents"),
|
|
192
194
|
method: "POST",
|
|
193
|
-
headers:
|
|
195
|
+
headers: _headers,
|
|
194
196
|
contentType: "application/json",
|
|
195
197
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
196
198
|
requestType: "json",
|
|
@@ -252,7 +254,7 @@ class Agents {
|
|
|
252
254
|
* name: "support-agent",
|
|
253
255
|
* phone_number: "assign-automatically",
|
|
254
256
|
* timezone: "America/Los_Angeles",
|
|
255
|
-
* voice_id: "
|
|
257
|
+
* voice_id: "grant",
|
|
256
258
|
* audio_speed: 1,
|
|
257
259
|
* welcome_message: "Hi {{customer_name}}. How can I help you today?",
|
|
258
260
|
* system_prompt: "You are an expert in {{subject}}. Be friendly, helpful and concise.",
|
|
@@ -286,11 +288,12 @@ class Agents {
|
|
|
286
288
|
if (project != null) {
|
|
287
289
|
_queryParams["project"] = project;
|
|
288
290
|
}
|
|
289
|
-
|
|
290
|
-
|
|
291
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
292
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
293
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.PhonicEnvironment.Default)
|
|
291
294
|
.base, "agents/upsert"),
|
|
292
295
|
method: "PUT",
|
|
293
|
-
headers:
|
|
296
|
+
headers: _headers,
|
|
294
297
|
contentType: "application/json",
|
|
295
298
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
296
299
|
requestType: "json",
|
|
@@ -359,11 +362,12 @@ class Agents {
|
|
|
359
362
|
if (project != null) {
|
|
360
363
|
_queryParams["project"] = project;
|
|
361
364
|
}
|
|
362
|
-
|
|
363
|
-
|
|
365
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
366
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
367
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.PhonicEnvironment.Default)
|
|
364
368
|
.base, `agents/${encodeURIComponent(nameOrId)}`),
|
|
365
369
|
method: "GET",
|
|
366
|
-
headers:
|
|
370
|
+
headers: _headers,
|
|
367
371
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
368
372
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
369
373
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -429,11 +433,12 @@ class Agents {
|
|
|
429
433
|
if (project != null) {
|
|
430
434
|
_queryParams["project"] = project;
|
|
431
435
|
}
|
|
432
|
-
|
|
433
|
-
|
|
436
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
437
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
438
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.PhonicEnvironment.Default)
|
|
434
439
|
.base, `agents/${encodeURIComponent(nameOrId)}`),
|
|
435
440
|
method: "DELETE",
|
|
436
|
-
headers:
|
|
441
|
+
headers: _headers,
|
|
437
442
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
438
443
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
439
444
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -490,7 +495,7 @@ class Agents {
|
|
|
490
495
|
* name: "updated-support-agent",
|
|
491
496
|
* phone_number: "assign-automatically",
|
|
492
497
|
* timezone: "America/Los_Angeles",
|
|
493
|
-
* voice_id: "
|
|
498
|
+
* voice_id: "grant",
|
|
494
499
|
* audio_speed: 1,
|
|
495
500
|
* welcome_message: "Hi {{customer_name}}. How can I help you today?",
|
|
496
501
|
* system_prompt: "You are an expert in {{subject}}. Be friendly, helpful and concise.",
|
|
@@ -524,11 +529,12 @@ class Agents {
|
|
|
524
529
|
if (project != null) {
|
|
525
530
|
_queryParams["project"] = project;
|
|
526
531
|
}
|
|
527
|
-
|
|
528
|
-
|
|
532
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
533
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
534
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.PhonicEnvironment.Default)
|
|
529
535
|
.base, `agents/${encodeURIComponent(nameOrId)}`),
|
|
530
536
|
method: "PATCH",
|
|
531
|
-
headers:
|
|
537
|
+
headers: _headers,
|
|
532
538
|
contentType: "application/json",
|
|
533
539
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
534
540
|
requestType: "json",
|
|
@@ -10,7 +10,7 @@ import * as Phonic from "../../../../index.js";
|
|
|
10
10
|
* name: "support-agent",
|
|
11
11
|
* phone_number: "assign-automatically",
|
|
12
12
|
* timezone: "America/Los_Angeles",
|
|
13
|
-
* voice_id: "
|
|
13
|
+
* voice_id: "grant",
|
|
14
14
|
* audio_speed: 1,
|
|
15
15
|
* welcome_message: "Hi {{customer_name}}. How can I help you today?",
|
|
16
16
|
* system_prompt: "You are an expert in {{subject}}. Be friendly, helpful and concise.",
|
|
@@ -35,9 +35,7 @@ import * as Phonic from "../../../../index.js";
|
|
|
35
35
|
* }
|
|
36
36
|
*/
|
|
37
37
|
export interface AgentsCreateRequest {
|
|
38
|
-
/**
|
|
39
|
-
* The name of the project to create the agent in.
|
|
40
|
-
*/
|
|
38
|
+
/** The name of the project to create the agent in. */
|
|
41
39
|
project?: string;
|
|
42
40
|
body: Phonic.CreateAgentRequest;
|
|
43
41
|
}
|
|
@@ -8,8 +8,6 @@
|
|
|
8
8
|
* }
|
|
9
9
|
*/
|
|
10
10
|
export interface AgentsDeleteRequest {
|
|
11
|
-
/**
|
|
12
|
-
* The name of the project containing the agent. Only used when `nameOrId` is a name.
|
|
13
|
-
*/
|
|
11
|
+
/** The name of the project containing the agent. Only used when `nameOrId` is a name. */
|
|
14
12
|
project?: string;
|
|
15
13
|
}
|
|
@@ -8,8 +8,6 @@
|
|
|
8
8
|
* }
|
|
9
9
|
*/
|
|
10
10
|
export interface AgentsGetRequest {
|
|
11
|
-
/**
|
|
12
|
-
* The name of the project containing the agent. Only used when `nameOrId` is a name.
|
|
13
|
-
*/
|
|
11
|
+
/** The name of the project containing the agent. Only used when `nameOrId` is a name. */
|
|
14
12
|
project?: string;
|
|
15
13
|
}
|
|
@@ -9,7 +9,7 @@ import * as Phonic from "../../../../index.js";
|
|
|
9
9
|
* name: "updated-support-agent",
|
|
10
10
|
* phone_number: "assign-automatically",
|
|
11
11
|
* timezone: "America/Los_Angeles",
|
|
12
|
-
* voice_id: "
|
|
12
|
+
* voice_id: "grant",
|
|
13
13
|
* audio_speed: 1,
|
|
14
14
|
* welcome_message: "Hi {{customer_name}}. How can I help you today?",
|
|
15
15
|
* system_prompt: "You are an expert in {{subject}}. Be friendly, helpful and concise.",
|
|
@@ -33,9 +33,7 @@ import * as Phonic from "../../../../index.js";
|
|
|
33
33
|
* }
|
|
34
34
|
*/
|
|
35
35
|
export interface UpdateAgentRequest {
|
|
36
|
-
/**
|
|
37
|
-
* The name of the project containing the agent. Only used when `nameOrId` is a name.
|
|
38
|
-
*/
|
|
36
|
+
/** The name of the project containing the agent. Only used when `nameOrId` is a name. */
|
|
39
37
|
project?: string;
|
|
40
38
|
/** The name of the agent. Can only contain lowercase letters, numbers and hyphens. Must be unique within the project. */
|
|
41
39
|
name?: string;
|
|
@@ -9,7 +9,7 @@ import * as Phonic from "../../../../index.js";
|
|
|
9
9
|
* name: "support-agent",
|
|
10
10
|
* phone_number: "assign-automatically",
|
|
11
11
|
* timezone: "America/Los_Angeles",
|
|
12
|
-
* voice_id: "
|
|
12
|
+
* voice_id: "grant",
|
|
13
13
|
* audio_speed: 1,
|
|
14
14
|
* welcome_message: "Hi {{customer_name}}. How can I help you today?",
|
|
15
15
|
* system_prompt: "You are an expert in {{subject}}. Be friendly, helpful and concise.",
|
|
@@ -33,8 +33,6 @@ import * as Phonic from "../../../../index.js";
|
|
|
33
33
|
* }
|
|
34
34
|
*/
|
|
35
35
|
export interface UpsertAgentRequest extends Phonic.CreateAgentRequest {
|
|
36
|
-
/**
|
|
37
|
-
* The name of the project containing the agent.
|
|
38
|
-
*/
|
|
36
|
+
/** The name of the project containing the agent. */
|
|
39
37
|
project?: string;
|
|
40
38
|
}
|
|
@@ -9,40 +9,22 @@
|
|
|
9
9
|
* {}
|
|
10
10
|
*/
|
|
11
11
|
export interface ConversationsListRequest {
|
|
12
|
-
/**
|
|
13
|
-
* The name of the project to list conversations for.
|
|
14
|
-
*/
|
|
12
|
+
/** The name of the project to list conversations for. */
|
|
15
13
|
project?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Filter by external ID to get a specific conversation.
|
|
18
|
-
*/
|
|
14
|
+
/** Filter by external ID to get a specific conversation. */
|
|
19
15
|
external_id?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Minimum duration in seconds.
|
|
22
|
-
*/
|
|
16
|
+
/** Minimum duration in seconds. */
|
|
23
17
|
duration_min?: number;
|
|
24
|
-
/**
|
|
25
|
-
* Maximum duration in seconds.
|
|
26
|
-
*/
|
|
18
|
+
/** Maximum duration in seconds. */
|
|
27
19
|
duration_max?: number;
|
|
28
|
-
/**
|
|
29
|
-
* Minimum start date/time. Valid examples: `2025-04-17`, `2025-04-17T02:48:52.708Z`
|
|
30
|
-
*/
|
|
20
|
+
/** Minimum start date/time. Valid examples: `2025-04-17`, `2025-04-17T02:48:52.708Z` */
|
|
31
21
|
started_at_min?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Maximum start date/time. Valid examples: `2025-04-17`, `2025-04-17T02:48:52.708Z`
|
|
34
|
-
*/
|
|
22
|
+
/** Maximum start date/time. Valid examples: `2025-04-17`, `2025-04-17T02:48:52.708Z` */
|
|
35
23
|
started_at_max?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Cursor for pagination (before).
|
|
38
|
-
*/
|
|
24
|
+
/** Cursor for pagination (before). */
|
|
39
25
|
before?: string;
|
|
40
|
-
/**
|
|
41
|
-
* Cursor for pagination (after).
|
|
42
|
-
*/
|
|
26
|
+
/** Cursor for pagination (after). */
|
|
43
27
|
after?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Maximum number of conversations to return.
|
|
46
|
-
*/
|
|
28
|
+
/** Maximum number of conversations to return. */
|
|
47
29
|
limit?: number;
|
|
48
30
|
}
|
|
@@ -11,25 +11,15 @@ import * as Phonic from "../../../../index.js";
|
|
|
11
11
|
* }
|
|
12
12
|
*/
|
|
13
13
|
export interface ConversationsSipOutboundCallRequest {
|
|
14
|
-
/**
|
|
15
|
-
* Optional session token used for STS authorization.
|
|
16
|
-
*/
|
|
14
|
+
/** Optional session token used for STS authorization. */
|
|
17
15
|
token?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Optional downstream STS WebSocket URL to override the default.
|
|
20
|
-
*/
|
|
16
|
+
/** Optional downstream STS WebSocket URL to override the default. */
|
|
21
17
|
downstream_websocket_url?: string;
|
|
22
|
-
/**
|
|
23
|
-
* SIP address of the user's SIP trunk. Required.
|
|
24
|
-
*/
|
|
18
|
+
/** SIP address of the user's SIP trunk. Required. */
|
|
25
19
|
"X-Sip-Address": string;
|
|
26
|
-
/**
|
|
27
|
-
* SIP auth username, if your provider requires it.
|
|
28
|
-
*/
|
|
20
|
+
/** SIP auth username, if your provider requires it. */
|
|
29
21
|
"X-Sip-Auth-Username"?: string;
|
|
30
|
-
/**
|
|
31
|
-
* SIP auth password, if your provider requires it.
|
|
32
|
-
*/
|
|
22
|
+
/** SIP auth password, if your provider requires it. */
|
|
33
23
|
"X-Sip-Auth-Password"?: string;
|
|
34
24
|
/** Caller ID phone number in E.164 format. */
|
|
35
25
|
from_phone_number: string;
|
|
@@ -14,7 +14,7 @@ import * as Phonic from "../../../../index.js";
|
|
|
14
14
|
* "customer_name": "David",
|
|
15
15
|
* "subject": "Chess"
|
|
16
16
|
* },
|
|
17
|
-
* voice_id: "
|
|
17
|
+
* voice_id: "grant",
|
|
18
18
|
* no_input_poke_sec: 30,
|
|
19
19
|
* no_input_poke_text: "Are you still there?",
|
|
20
20
|
* no_input_end_conversation_sec: 180,
|
|
@@ -90,11 +90,12 @@ class ExtractionSchemas {
|
|
|
90
90
|
if (project != null) {
|
|
91
91
|
_queryParams["project"] = project;
|
|
92
92
|
}
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
94
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
95
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.PhonicEnvironment.Default)
|
|
95
96
|
.base, "extraction_schemas"),
|
|
96
97
|
method: "GET",
|
|
97
|
-
headers:
|
|
98
|
+
headers: _headers,
|
|
98
99
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
99
100
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
100
101
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -173,11 +174,12 @@ class ExtractionSchemas {
|
|
|
173
174
|
if (project != null) {
|
|
174
175
|
_queryParams["project"] = project;
|
|
175
176
|
}
|
|
176
|
-
|
|
177
|
-
|
|
177
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
178
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
179
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.PhonicEnvironment.Default)
|
|
178
180
|
.base, "extraction_schemas"),
|
|
179
181
|
method: "POST",
|
|
180
|
-
headers:
|
|
182
|
+
headers: _headers,
|
|
181
183
|
contentType: "application/json",
|
|
182
184
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
183
185
|
requestType: "json",
|
|
@@ -250,11 +252,12 @@ class ExtractionSchemas {
|
|
|
250
252
|
if (project != null) {
|
|
251
253
|
_queryParams["project"] = project;
|
|
252
254
|
}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
256
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
257
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.PhonicEnvironment.Default)
|
|
255
258
|
.base, `extraction_schemas/${encodeURIComponent(nameOrId)}`),
|
|
256
259
|
method: "GET",
|
|
257
|
-
headers:
|
|
260
|
+
headers: _headers,
|
|
258
261
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
259
262
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
260
263
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -317,11 +320,12 @@ class ExtractionSchemas {
|
|
|
317
320
|
if (project != null) {
|
|
318
321
|
_queryParams["project"] = project;
|
|
319
322
|
}
|
|
320
|
-
|
|
321
|
-
|
|
323
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
324
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
325
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.PhonicEnvironment.Default)
|
|
322
326
|
.base, `extraction_schemas/${encodeURIComponent(nameOrId)}`),
|
|
323
327
|
method: "DELETE",
|
|
324
|
-
headers:
|
|
328
|
+
headers: _headers,
|
|
325
329
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
326
330
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
327
331
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -400,11 +404,12 @@ class ExtractionSchemas {
|
|
|
400
404
|
if (project != null) {
|
|
401
405
|
_queryParams["project"] = project;
|
|
402
406
|
}
|
|
403
|
-
|
|
404
|
-
|
|
407
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
408
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
409
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.PhonicEnvironment.Default)
|
|
405
410
|
.base, `extraction_schemas/${encodeURIComponent(nameOrId)}`),
|
|
406
411
|
method: "PATCH",
|
|
407
|
-
headers:
|
|
412
|
+
headers: _headers,
|
|
408
413
|
contentType: "application/json",
|
|
409
414
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
410
415
|
requestType: "json",
|
package/dist/cjs/api/resources/extractionSchemas/client/requests/CreateExtractionSchemaRequest.d.ts
CHANGED
|
@@ -24,9 +24,7 @@ import * as Phonic from "../../../../index.js";
|
|
|
24
24
|
* }
|
|
25
25
|
*/
|
|
26
26
|
export interface CreateExtractionSchemaRequest {
|
|
27
|
-
/**
|
|
28
|
-
* The name of the project to create the extraction schema in.
|
|
29
|
-
*/
|
|
27
|
+
/** The name of the project to create the extraction schema in. */
|
|
30
28
|
project?: string;
|
|
31
29
|
/** A name for the extraction schema. */
|
|
32
30
|
name: string;
|
package/dist/cjs/api/resources/extractionSchemas/client/requests/ExtractionSchemasDeleteRequest.d.ts
CHANGED
|
@@ -8,8 +8,6 @@
|
|
|
8
8
|
* }
|
|
9
9
|
*/
|
|
10
10
|
export interface ExtractionSchemasDeleteRequest {
|
|
11
|
-
/**
|
|
12
|
-
* The name of the project containing the extraction schema. Only used when `nameOrId` is a name.
|
|
13
|
-
*/
|
|
11
|
+
/** The name of the project containing the extraction schema. Only used when `nameOrId` is a name. */
|
|
14
12
|
project?: string;
|
|
15
13
|
}
|
package/dist/cjs/api/resources/extractionSchemas/client/requests/ExtractionSchemasGetRequest.d.ts
CHANGED
|
@@ -8,8 +8,6 @@
|
|
|
8
8
|
* }
|
|
9
9
|
*/
|
|
10
10
|
export interface ExtractionSchemasGetRequest {
|
|
11
|
-
/**
|
|
12
|
-
* The name of the project containing the extraction schema. Only used when `nameOrId` is a name.
|
|
13
|
-
*/
|
|
11
|
+
/** The name of the project containing the extraction schema. Only used when `nameOrId` is a name. */
|
|
14
12
|
project?: string;
|
|
15
13
|
}
|
package/dist/cjs/api/resources/extractionSchemas/client/requests/UpdateExtractionSchemaRequest.d.ts
CHANGED
|
@@ -20,9 +20,7 @@ import * as Phonic from "../../../../index.js";
|
|
|
20
20
|
* }
|
|
21
21
|
*/
|
|
22
22
|
export interface UpdateExtractionSchemaRequest {
|
|
23
|
-
/**
|
|
24
|
-
* The name of the project containing the extraction schema. Only used when `nameOrId` is a name.
|
|
25
|
-
*/
|
|
23
|
+
/** The name of the project containing the extraction schema. Only used when `nameOrId` is a name. */
|
|
26
24
|
project?: string;
|
|
27
25
|
/** A name for the extraction schema. */
|
|
28
26
|
name?: string;
|