phonic 0.32.2 → 0.32.4
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/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +3 -0
- package/dist/cjs/Client.js +23 -18
- package/dist/cjs/api/errors/TooManyRequestsError.d.ts +6 -0
- package/dist/cjs/api/errors/TooManyRequestsError.js +54 -0
- package/dist/cjs/api/errors/index.d.ts +1 -0
- package/dist/cjs/api/errors/index.js +1 -0
- package/dist/cjs/api/resources/agents/client/requests/AgentsCreateRequest.d.ts +8 -0
- package/dist/cjs/api/resources/agents/client/requests/UpdateAgentRequest.d.ts +14 -0
- package/dist/cjs/api/resources/agents/client/requests/UpsertAgentRequest.d.ts +6 -0
- package/dist/cjs/api/resources/agents/types/AgentsUpdateResponse.d.ts +5 -0
- package/dist/cjs/api/resources/apiKeys/client/Client.d.ts +79 -0
- package/dist/cjs/api/resources/apiKeys/client/Client.js +293 -0
- package/dist/cjs/api/resources/apiKeys/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/apiKeys/client/index.js +17 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/CreateApiKeyRequest.d.ts +10 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/CreateApiKeyRequest.js +3 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/UpdateApiKeyRequest.d.ts +10 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/UpdateApiKeyRequest.js +3 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/apiKeys/exports.d.ts +2 -0
- package/dist/cjs/api/resources/apiKeys/exports.js +21 -0
- package/dist/cjs/api/resources/apiKeys/index.d.ts +2 -0
- package/dist/cjs/api/resources/apiKeys/index.js +18 -0
- package/dist/cjs/api/resources/apiKeys/types/ApiKeysDeleteResponse.d.ts +3 -0
- package/dist/cjs/api/resources/apiKeys/types/ApiKeysDeleteResponse.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/ApiKeysUpdateResponse.d.ts +3 -0
- package/dist/cjs/api/resources/apiKeys/types/ApiKeysUpdateResponse.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/apiKeys/types/index.js +18 -0
- package/dist/cjs/api/resources/auth/client/Client.d.ts +20 -0
- package/dist/cjs/api/resources/auth/client/Client.js +70 -0
- package/dist/cjs/api/resources/auth/client/requests/CreateConversationTokenRequest.d.ts +13 -0
- package/dist/cjs/api/resources/auth/client/requests/CreateConversationTokenRequest.js +3 -0
- package/dist/cjs/api/resources/auth/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/auth/types/AuthCreateConversationTokenResponse.d.ts +6 -0
- package/dist/cjs/api/resources/auth/types/AuthCreateConversationTokenResponse.js +3 -0
- package/dist/cjs/api/resources/auth/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/auth/types/index.js +1 -0
- package/dist/cjs/api/resources/conversations/client/Client.d.ts +26 -1
- package/dist/cjs/api/resources/conversations/client/Client.js +78 -0
- package/dist/cjs/api/resources/conversations/client/requests/ReplayConversationRequest.d.ts +10 -0
- package/dist/cjs/api/resources/conversations/client/requests/ReplayConversationRequest.js +3 -0
- package/dist/cjs/api/resources/conversations/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/conversations/types/ConversationsEvaluateResponse.d.ts +19 -0
- package/dist/cjs/api/resources/conversations/types/ConversationsEvaluateResponse.js +17 -0
- package/dist/cjs/api/resources/conversations/types/ConversationsReplayResponse.d.ts +4 -0
- package/dist/cjs/api/resources/conversations/types/ConversationsReplayResponse.js +3 -0
- package/dist/cjs/api/resources/conversations/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/conversations/types/index.js +2 -0
- package/dist/cjs/api/resources/index.d.ts +4 -0
- package/dist/cjs/api/resources/index.js +5 -1
- package/dist/cjs/api/resources/projects/client/Client.d.ts +16 -0
- package/dist/cjs/api/resources/projects/client/Client.js +58 -0
- package/dist/cjs/api/resources/projects/types/ProjectsListEvalsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/projects/types/ProjectsListEvalsResponse.js +3 -0
- package/dist/cjs/api/resources/projects/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/projects/types/index.js +1 -0
- package/dist/cjs/api/resources/tools/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/tools/client/Client.js +2 -1
- package/dist/cjs/api/resources/tools/client/requests/CreateToolRequest.d.ts +4 -1
- package/dist/cjs/api/resources/tools/client/requests/UpdateToolRequest.d.ts +5 -13
- package/dist/cjs/api/resources/tools/client/requests/UpdateToolRequest.js +0 -8
- package/dist/cjs/api/resources/workspace/client/Client.d.ts +20 -0
- package/dist/cjs/api/resources/workspace/client/Client.js +65 -0
- package/dist/cjs/api/resources/workspace/client/index.d.ts +1 -1
- package/dist/cjs/api/resources/workspace/client/index.js +15 -0
- package/dist/cjs/api/resources/workspace/client/requests/UpdateWorkspaceRequest.d.ts +16 -0
- package/dist/cjs/api/resources/workspace/client/requests/UpdateWorkspaceRequest.js +3 -0
- package/dist/cjs/api/resources/workspace/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/workspace/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/workspace/types/WorkspaceGetResponse.d.ts +6 -0
- package/dist/cjs/api/resources/workspace/types/WorkspaceUpdateResponse.d.ts +3 -0
- package/dist/cjs/api/resources/workspace/types/WorkspaceUpdateResponse.js +3 -0
- package/dist/cjs/api/resources/workspace/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/workspace/types/index.js +1 -0
- package/dist/cjs/api/types/Agent.d.ts +9 -0
- package/dist/cjs/api/types/AgentIntegration.d.ts +13 -0
- package/dist/cjs/api/types/AgentIntegration.js +3 -0
- package/dist/cjs/api/types/ApiKeyWithSecret.d.ts +8 -0
- package/dist/cjs/api/types/ApiKeyWithSecret.js +3 -0
- package/dist/cjs/api/types/AudioChunkResponsePayload.d.ts +2 -0
- package/dist/cjs/api/types/ConfigOptions.d.ts +67 -0
- package/dist/cjs/api/types/Conversation.d.ts +31 -0
- package/dist/cjs/api/types/Conversation.js +8 -0
- package/dist/cjs/api/types/ConversationEval.d.ts +22 -1
- package/dist/cjs/api/types/ConversationEval.js +11 -0
- package/dist/cjs/api/types/ConversationEvalPromptInfo.d.ts +7 -0
- package/dist/cjs/api/types/ConversationEvalPromptInfo.js +3 -0
- package/dist/cjs/api/types/ConversationExtraction.d.ts +2 -4
- package/dist/cjs/api/types/ConversationItem.d.ts +4 -2
- package/dist/cjs/api/types/CreateAgentRequest.d.ts +8 -0
- package/dist/cjs/api/types/DataRetentionPolicy.d.ts +21 -0
- package/dist/cjs/api/types/DataRetentionPolicy.js +3 -0
- package/dist/cjs/api/types/DtmfPayload.d.ts +2 -0
- package/dist/cjs/api/types/ExtractionField.d.ts +2 -2
- package/dist/cjs/api/types/OutboundCallConfig.d.ts +40 -0
- package/dist/cjs/api/types/OutboundCallConfig.js +6 -0
- package/dist/cjs/api/types/OutboundNumberPool.d.ts +9 -0
- package/dist/cjs/api/types/OutboundNumberPool.js +3 -0
- package/dist/cjs/api/types/Tool.d.ts +3 -1
- package/dist/cjs/api/types/index.d.ts +5 -0
- package/dist/cjs/api/types/index.js +5 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +5 -0
- package/dist/esm/api/errors/TooManyRequestsError.d.mts +6 -0
- package/dist/esm/api/errors/TooManyRequestsError.mjs +17 -0
- package/dist/esm/api/errors/index.d.mts +1 -0
- package/dist/esm/api/errors/index.mjs +1 -0
- package/dist/esm/api/resources/agents/client/requests/AgentsCreateRequest.d.mts +8 -0
- package/dist/esm/api/resources/agents/client/requests/UpdateAgentRequest.d.mts +14 -0
- package/dist/esm/api/resources/agents/client/requests/UpsertAgentRequest.d.mts +6 -0
- package/dist/esm/api/resources/agents/types/AgentsUpdateResponse.d.mts +5 -0
- package/dist/esm/api/resources/apiKeys/client/Client.d.mts +79 -0
- package/dist/esm/api/resources/apiKeys/client/Client.mjs +256 -0
- package/dist/esm/api/resources/apiKeys/client/index.d.mts +1 -0
- package/dist/esm/api/resources/apiKeys/client/index.mjs +1 -0
- package/dist/esm/api/resources/apiKeys/client/requests/CreateApiKeyRequest.d.mts +10 -0
- package/dist/esm/api/resources/apiKeys/client/requests/CreateApiKeyRequest.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/client/requests/UpdateApiKeyRequest.d.mts +10 -0
- package/dist/esm/api/resources/apiKeys/client/requests/UpdateApiKeyRequest.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/apiKeys/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/apiKeys/exports.d.mts +2 -0
- package/dist/esm/api/resources/apiKeys/exports.mjs +3 -0
- package/dist/esm/api/resources/apiKeys/index.d.mts +2 -0
- package/dist/esm/api/resources/apiKeys/index.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/ApiKeysDeleteResponse.d.mts +3 -0
- package/dist/esm/api/resources/apiKeys/types/ApiKeysDeleteResponse.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/ApiKeysUpdateResponse.d.mts +3 -0
- package/dist/esm/api/resources/apiKeys/types/ApiKeysUpdateResponse.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/index.d.mts +2 -0
- package/dist/esm/api/resources/apiKeys/types/index.mjs +2 -0
- package/dist/esm/api/resources/auth/client/Client.d.mts +20 -0
- package/dist/esm/api/resources/auth/client/Client.mjs +70 -0
- package/dist/esm/api/resources/auth/client/requests/CreateConversationTokenRequest.d.mts +13 -0
- package/dist/esm/api/resources/auth/client/requests/CreateConversationTokenRequest.mjs +2 -0
- package/dist/esm/api/resources/auth/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/auth/types/AuthCreateConversationTokenResponse.d.mts +6 -0
- package/dist/esm/api/resources/auth/types/AuthCreateConversationTokenResponse.mjs +2 -0
- package/dist/esm/api/resources/auth/types/index.d.mts +1 -0
- package/dist/esm/api/resources/auth/types/index.mjs +1 -0
- package/dist/esm/api/resources/conversations/client/Client.d.mts +26 -1
- package/dist/esm/api/resources/conversations/client/Client.mjs +78 -0
- package/dist/esm/api/resources/conversations/client/requests/ReplayConversationRequest.d.mts +10 -0
- package/dist/esm/api/resources/conversations/client/requests/ReplayConversationRequest.mjs +2 -0
- package/dist/esm/api/resources/conversations/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/conversations/types/ConversationsEvaluateResponse.d.mts +19 -0
- package/dist/esm/api/resources/conversations/types/ConversationsEvaluateResponse.mjs +14 -0
- package/dist/esm/api/resources/conversations/types/ConversationsReplayResponse.d.mts +4 -0
- package/dist/esm/api/resources/conversations/types/ConversationsReplayResponse.mjs +2 -0
- package/dist/esm/api/resources/conversations/types/index.d.mts +2 -0
- package/dist/esm/api/resources/conversations/types/index.mjs +2 -0
- package/dist/esm/api/resources/index.d.mts +4 -0
- package/dist/esm/api/resources/index.mjs +4 -0
- package/dist/esm/api/resources/projects/client/Client.d.mts +16 -0
- package/dist/esm/api/resources/projects/client/Client.mjs +58 -0
- package/dist/esm/api/resources/projects/types/ProjectsListEvalsResponse.d.mts +4 -0
- package/dist/esm/api/resources/projects/types/ProjectsListEvalsResponse.mjs +2 -0
- package/dist/esm/api/resources/projects/types/index.d.mts +1 -0
- package/dist/esm/api/resources/projects/types/index.mjs +1 -0
- package/dist/esm/api/resources/tools/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/tools/client/Client.mjs +2 -1
- package/dist/esm/api/resources/tools/client/requests/CreateToolRequest.d.mts +4 -1
- package/dist/esm/api/resources/tools/client/requests/UpdateToolRequest.d.mts +5 -13
- package/dist/esm/api/resources/tools/client/requests/UpdateToolRequest.mjs +0 -8
- package/dist/esm/api/resources/workspace/client/Client.d.mts +20 -0
- package/dist/esm/api/resources/workspace/client/Client.mjs +65 -0
- package/dist/esm/api/resources/workspace/client/index.d.mts +1 -1
- package/dist/esm/api/resources/workspace/client/index.mjs +1 -1
- package/dist/esm/api/resources/workspace/client/requests/UpdateWorkspaceRequest.d.mts +16 -0
- package/dist/esm/api/resources/workspace/client/requests/UpdateWorkspaceRequest.mjs +2 -0
- package/dist/esm/api/resources/workspace/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/workspace/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/workspace/types/WorkspaceGetResponse.d.mts +6 -0
- package/dist/esm/api/resources/workspace/types/WorkspaceUpdateResponse.d.mts +3 -0
- package/dist/esm/api/resources/workspace/types/WorkspaceUpdateResponse.mjs +2 -0
- package/dist/esm/api/resources/workspace/types/index.d.mts +1 -0
- package/dist/esm/api/resources/workspace/types/index.mjs +1 -0
- package/dist/esm/api/types/Agent.d.mts +9 -0
- package/dist/esm/api/types/AgentIntegration.d.mts +13 -0
- package/dist/esm/api/types/AgentIntegration.mjs +2 -0
- package/dist/esm/api/types/ApiKeyWithSecret.d.mts +8 -0
- package/dist/esm/api/types/ApiKeyWithSecret.mjs +2 -0
- package/dist/esm/api/types/AudioChunkResponsePayload.d.mts +2 -0
- package/dist/esm/api/types/ConfigOptions.d.mts +67 -0
- package/dist/esm/api/types/Conversation.d.mts +31 -0
- package/dist/esm/api/types/Conversation.mjs +8 -0
- package/dist/esm/api/types/ConversationEval.d.mts +22 -1
- package/dist/esm/api/types/ConversationEval.mjs +10 -1
- package/dist/esm/api/types/ConversationEvalPromptInfo.d.mts +7 -0
- package/dist/esm/api/types/ConversationEvalPromptInfo.mjs +2 -0
- package/dist/esm/api/types/ConversationExtraction.d.mts +2 -4
- package/dist/esm/api/types/ConversationItem.d.mts +4 -2
- package/dist/esm/api/types/CreateAgentRequest.d.mts +8 -0
- package/dist/esm/api/types/DataRetentionPolicy.d.mts +21 -0
- package/dist/esm/api/types/DataRetentionPolicy.mjs +2 -0
- package/dist/esm/api/types/DtmfPayload.d.mts +2 -0
- package/dist/esm/api/types/ExtractionField.d.mts +2 -2
- package/dist/esm/api/types/OutboundCallConfig.d.mts +40 -0
- package/dist/esm/api/types/OutboundCallConfig.mjs +6 -0
- package/dist/esm/api/types/OutboundNumberPool.d.mts +9 -0
- package/dist/esm/api/types/OutboundNumberPool.mjs +2 -0
- package/dist/esm/api/types/Tool.d.mts +3 -1
- package/dist/esm/api/types/index.d.mts +5 -0
- package/dist/esm/api/types/index.mjs +5 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +12 -1
- package/reference.md +540 -2
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests/index.js"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ApiKeysClient = void 0;
|
|
19
|
+
var Client_js_1 = require("./client/Client.js");
|
|
20
|
+
Object.defineProperty(exports, "ApiKeysClient", { enumerable: true, get: function () { return Client_js_1.ApiKeysClient; } });
|
|
21
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
18
|
+
__exportStar(require("./types/index.js"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ApiKeysDeleteResponse.js"), exports);
|
|
18
|
+
__exportStar(require("./ApiKeysUpdateResponse.js"), exports);
|
|
@@ -28,4 +28,24 @@ export declare class AuthClient {
|
|
|
28
28
|
*/
|
|
29
29
|
createSessionToken(request?: Phonic.CreateSessionTokenRequest, requestOptions?: AuthClient.RequestOptions): core.HttpResponsePromise<Phonic.AuthCreateSessionTokenResponse>;
|
|
30
30
|
private __createSessionToken;
|
|
31
|
+
/**
|
|
32
|
+
* Creates a short-lived conversation token scoped to a specific agent. Conversation tokens are useful for client-side applications that start a conversation with a single agent without exposing your API key.
|
|
33
|
+
*
|
|
34
|
+
* @param {Phonic.CreateConversationTokenRequest} request
|
|
35
|
+
* @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
|
+
*
|
|
37
|
+
* @throws {@link Phonic.BadRequestError}
|
|
38
|
+
* @throws {@link Phonic.UnauthorizedError}
|
|
39
|
+
* @throws {@link Phonic.ForbiddenError}
|
|
40
|
+
* @throws {@link Phonic.NotFoundError}
|
|
41
|
+
* @throws {@link Phonic.InternalServerError}
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* await client.auth.createConversationToken({
|
|
45
|
+
* agent_id: "agent_12cf6e88-c254-4d3e-a149-a7f1bdd22783",
|
|
46
|
+
* ttl_seconds: 30
|
|
47
|
+
* })
|
|
48
|
+
*/
|
|
49
|
+
createConversationToken(request: Phonic.CreateConversationTokenRequest, requestOptions?: AuthClient.RequestOptions): core.HttpResponsePromise<Phonic.AuthCreateConversationTokenResponse>;
|
|
50
|
+
private __createConversationToken;
|
|
31
51
|
}
|
|
@@ -121,5 +121,75 @@ class AuthClient {
|
|
|
121
121
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/auth/session_token");
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* Creates a short-lived conversation token scoped to a specific agent. Conversation tokens are useful for client-side applications that start a conversation with a single agent without exposing your API key.
|
|
126
|
+
*
|
|
127
|
+
* @param {Phonic.CreateConversationTokenRequest} request
|
|
128
|
+
* @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
129
|
+
*
|
|
130
|
+
* @throws {@link Phonic.BadRequestError}
|
|
131
|
+
* @throws {@link Phonic.UnauthorizedError}
|
|
132
|
+
* @throws {@link Phonic.ForbiddenError}
|
|
133
|
+
* @throws {@link Phonic.NotFoundError}
|
|
134
|
+
* @throws {@link Phonic.InternalServerError}
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* await client.auth.createConversationToken({
|
|
138
|
+
* agent_id: "agent_12cf6e88-c254-4d3e-a149-a7f1bdd22783",
|
|
139
|
+
* ttl_seconds: 30
|
|
140
|
+
* })
|
|
141
|
+
*/
|
|
142
|
+
createConversationToken(request, requestOptions) {
|
|
143
|
+
return core.HttpResponsePromise.fromPromise(this.__createConversationToken(request, requestOptions));
|
|
144
|
+
}
|
|
145
|
+
__createConversationToken(request, requestOptions) {
|
|
146
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
147
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
148
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
149
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
150
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
151
|
+
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)
|
|
152
|
+
.base, "auth/conversation_token"),
|
|
153
|
+
method: "POST",
|
|
154
|
+
headers: _headers,
|
|
155
|
+
contentType: "application/json",
|
|
156
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
157
|
+
requestType: "json",
|
|
158
|
+
body: request,
|
|
159
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
160
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
161
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
162
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
163
|
+
logging: this._options.logging,
|
|
164
|
+
});
|
|
165
|
+
if (_response.ok) {
|
|
166
|
+
return {
|
|
167
|
+
data: _response.body,
|
|
168
|
+
rawResponse: _response.rawResponse,
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
if (_response.error.reason === "status-code") {
|
|
172
|
+
switch (_response.error.statusCode) {
|
|
173
|
+
case 400:
|
|
174
|
+
throw new Phonic.BadRequestError(_response.error.body, _response.rawResponse);
|
|
175
|
+
case 401:
|
|
176
|
+
throw new Phonic.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
177
|
+
case 403:
|
|
178
|
+
throw new Phonic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
179
|
+
case 404:
|
|
180
|
+
throw new Phonic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
181
|
+
case 500:
|
|
182
|
+
throw new Phonic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
183
|
+
default:
|
|
184
|
+
throw new errors.PhonicError({
|
|
185
|
+
statusCode: _response.error.statusCode,
|
|
186
|
+
body: _response.error.body,
|
|
187
|
+
rawResponse: _response.rawResponse,
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/auth/conversation_token");
|
|
192
|
+
});
|
|
193
|
+
}
|
|
124
194
|
}
|
|
125
195
|
exports.AuthClient = AuthClient;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* agent_id: "agent_12cf6e88-c254-4d3e-a149-a7f1bdd22783",
|
|
5
|
+
* ttl_seconds: 30
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface CreateConversationTokenRequest {
|
|
9
|
+
/** ID of the agent the conversation token is scoped to. */
|
|
10
|
+
agent_id: string;
|
|
11
|
+
/** Time-to-live for the conversation token in seconds. */
|
|
12
|
+
ttl_seconds?: number;
|
|
13
|
+
}
|
|
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./AuthCreateConversationTokenResponse.js"), exports);
|
|
17
18
|
__exportStar(require("./AuthCreateSessionTokenResponse.js"), exports);
|
|
@@ -173,8 +173,33 @@ export declare class ConversationsClient {
|
|
|
173
173
|
* prompt_id: "conv_eval_prompt_d7cfe45d-35db-4ef6-a254-81ab1da76ce0"
|
|
174
174
|
* })
|
|
175
175
|
*/
|
|
176
|
-
evaluate(id: string, request: Phonic.EvaluateConversationRequest, requestOptions?: ConversationsClient.RequestOptions): core.HttpResponsePromise<Phonic.
|
|
176
|
+
evaluate(id: string, request: Phonic.EvaluateConversationRequest, requestOptions?: ConversationsClient.RequestOptions): core.HttpResponsePromise<Phonic.ConversationsEvaluateResponse>;
|
|
177
177
|
private __evaluate;
|
|
178
|
+
/**
|
|
179
|
+
* Replays an ended conversation by re-running its recorded audio through an agent. Requires API key or access
|
|
180
|
+
* token authentication. The conversation must have audio recordings available and an associated agent (or one
|
|
181
|
+
* specified in the request body).
|
|
182
|
+
*
|
|
183
|
+
* @param {string} id - The ID of the conversation to replay.
|
|
184
|
+
* @param {Phonic.ReplayConversationRequest} request
|
|
185
|
+
* @param {ConversationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
186
|
+
*
|
|
187
|
+
* @throws {@link Phonic.BadRequestError}
|
|
188
|
+
* @throws {@link Phonic.UnauthorizedError}
|
|
189
|
+
* @throws {@link Phonic.ForbiddenError}
|
|
190
|
+
* @throws {@link Phonic.NotFoundError}
|
|
191
|
+
* @throws {@link Phonic.ConflictError}
|
|
192
|
+
* @throws {@link Phonic.UnprocessableEntityError}
|
|
193
|
+
* @throws {@link Phonic.TooManyRequestsError}
|
|
194
|
+
* @throws {@link Phonic.InternalServerError}
|
|
195
|
+
*
|
|
196
|
+
* @example
|
|
197
|
+
* await client.conversations.replay("id", {
|
|
198
|
+
* agent: "support-agent"
|
|
199
|
+
* })
|
|
200
|
+
*/
|
|
201
|
+
replay(id: string, request?: Phonic.ReplayConversationRequest, requestOptions?: ConversationsClient.RequestOptions): core.HttpResponsePromise<Phonic.ConversationsReplayResponse>;
|
|
202
|
+
private __replay;
|
|
178
203
|
/**
|
|
179
204
|
* Initiates a call to a given phone number using Phonic's Twilio account.
|
|
180
205
|
*
|
|
@@ -589,6 +589,84 @@ class ConversationsClient {
|
|
|
589
589
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/conversations/{id}/evals");
|
|
590
590
|
});
|
|
591
591
|
}
|
|
592
|
+
/**
|
|
593
|
+
* Replays an ended conversation by re-running its recorded audio through an agent. Requires API key or access
|
|
594
|
+
* token authentication. The conversation must have audio recordings available and an associated agent (or one
|
|
595
|
+
* specified in the request body).
|
|
596
|
+
*
|
|
597
|
+
* @param {string} id - The ID of the conversation to replay.
|
|
598
|
+
* @param {Phonic.ReplayConversationRequest} request
|
|
599
|
+
* @param {ConversationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
600
|
+
*
|
|
601
|
+
* @throws {@link Phonic.BadRequestError}
|
|
602
|
+
* @throws {@link Phonic.UnauthorizedError}
|
|
603
|
+
* @throws {@link Phonic.ForbiddenError}
|
|
604
|
+
* @throws {@link Phonic.NotFoundError}
|
|
605
|
+
* @throws {@link Phonic.ConflictError}
|
|
606
|
+
* @throws {@link Phonic.UnprocessableEntityError}
|
|
607
|
+
* @throws {@link Phonic.TooManyRequestsError}
|
|
608
|
+
* @throws {@link Phonic.InternalServerError}
|
|
609
|
+
*
|
|
610
|
+
* @example
|
|
611
|
+
* await client.conversations.replay("id", {
|
|
612
|
+
* agent: "support-agent"
|
|
613
|
+
* })
|
|
614
|
+
*/
|
|
615
|
+
replay(id, request = {}, requestOptions) {
|
|
616
|
+
return core.HttpResponsePromise.fromPromise(this.__replay(id, request, requestOptions));
|
|
617
|
+
}
|
|
618
|
+
__replay(id_1) {
|
|
619
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
620
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
621
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
622
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
623
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
624
|
+
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)
|
|
625
|
+
.base, `conversations/${core.url.encodePathParam(id)}/replay`),
|
|
626
|
+
method: "POST",
|
|
627
|
+
headers: _headers,
|
|
628
|
+
contentType: "application/json",
|
|
629
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
630
|
+
requestType: "json",
|
|
631
|
+
body: request,
|
|
632
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
633
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
634
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
635
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
636
|
+
logging: this._options.logging,
|
|
637
|
+
});
|
|
638
|
+
if (_response.ok) {
|
|
639
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
640
|
+
}
|
|
641
|
+
if (_response.error.reason === "status-code") {
|
|
642
|
+
switch (_response.error.statusCode) {
|
|
643
|
+
case 400:
|
|
644
|
+
throw new Phonic.BadRequestError(_response.error.body, _response.rawResponse);
|
|
645
|
+
case 401:
|
|
646
|
+
throw new Phonic.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
647
|
+
case 403:
|
|
648
|
+
throw new Phonic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
649
|
+
case 404:
|
|
650
|
+
throw new Phonic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
651
|
+
case 409:
|
|
652
|
+
throw new Phonic.ConflictError(_response.error.body, _response.rawResponse);
|
|
653
|
+
case 422:
|
|
654
|
+
throw new Phonic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
655
|
+
case 429:
|
|
656
|
+
throw new Phonic.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
657
|
+
case 500:
|
|
658
|
+
throw new Phonic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
659
|
+
default:
|
|
660
|
+
throw new errors.PhonicError({
|
|
661
|
+
statusCode: _response.error.statusCode,
|
|
662
|
+
body: _response.error.body,
|
|
663
|
+
rawResponse: _response.rawResponse,
|
|
664
|
+
});
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/conversations/{id}/replay");
|
|
668
|
+
});
|
|
669
|
+
}
|
|
592
670
|
/**
|
|
593
671
|
* Initiates a call to a given phone number using Phonic's Twilio account.
|
|
594
672
|
*
|
|
@@ -4,3 +4,4 @@ export type { ConversationsSipOutboundCallRequest } from "./ConversationsSipOutb
|
|
|
4
4
|
export type { EvaluateConversationRequest } from "./EvaluateConversationRequest.js";
|
|
5
5
|
export type { ExtractDataRequest } from "./ExtractDataRequest.js";
|
|
6
6
|
export type { OutboundCallRequest } from "./OutboundCallRequest.js";
|
|
7
|
+
export type { ReplayConversationRequest } from "./ReplayConversationRequest.js";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface ConversationsEvaluateResponse {
|
|
2
|
+
evaluation: ConversationsEvaluateResponse.Evaluation;
|
|
3
|
+
}
|
|
4
|
+
export declare namespace ConversationsEvaluateResponse {
|
|
5
|
+
interface Evaluation {
|
|
6
|
+
/** The evaluation result. */
|
|
7
|
+
result: Evaluation.Result;
|
|
8
|
+
}
|
|
9
|
+
namespace Evaluation {
|
|
10
|
+
/** The evaluation result. */
|
|
11
|
+
const Result: {
|
|
12
|
+
readonly Successful: "successful";
|
|
13
|
+
readonly Unsuccessful: "unsuccessful";
|
|
14
|
+
readonly Undecided: "undecided";
|
|
15
|
+
readonly Error: "error";
|
|
16
|
+
};
|
|
17
|
+
type Result = (typeof Result)[keyof typeof Result];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ConversationsEvaluateResponse = void 0;
|
|
5
|
+
var ConversationsEvaluateResponse;
|
|
6
|
+
(function (ConversationsEvaluateResponse) {
|
|
7
|
+
let Evaluation;
|
|
8
|
+
(function (Evaluation) {
|
|
9
|
+
/** The evaluation result. */
|
|
10
|
+
Evaluation.Result = {
|
|
11
|
+
Successful: "successful",
|
|
12
|
+
Unsuccessful: "unsuccessful",
|
|
13
|
+
Undecided: "undecided",
|
|
14
|
+
Error: "error",
|
|
15
|
+
};
|
|
16
|
+
})(Evaluation = ConversationsEvaluateResponse.Evaluation || (ConversationsEvaluateResponse.Evaluation = {}));
|
|
17
|
+
})(ConversationsEvaluateResponse || (exports.ConversationsEvaluateResponse = ConversationsEvaluateResponse = {}));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./ConversationsCancelResponse.js";
|
|
2
|
+
export * from "./ConversationsEvaluateResponse.js";
|
|
2
3
|
export * from "./ConversationsExtractDataResponse.js";
|
|
3
4
|
export * from "./ConversationsGetAnalysisResponse.js";
|
|
4
5
|
export * from "./ConversationsGetRequestAudioContainer.js";
|
|
@@ -8,4 +9,5 @@ export * from "./ConversationsListExtractionsResponse.js";
|
|
|
8
9
|
export * from "./ConversationsListRequestAudioContainer.js";
|
|
9
10
|
export * from "./ConversationsListResponse.js";
|
|
10
11
|
export * from "./ConversationsOutboundCallResponse.js";
|
|
12
|
+
export * from "./ConversationsReplayResponse.js";
|
|
11
13
|
export * from "./ConversationsSipOutboundCallResponse.js";
|
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ConversationsCancelResponse.js"), exports);
|
|
18
|
+
__exportStar(require("./ConversationsEvaluateResponse.js"), exports);
|
|
18
19
|
__exportStar(require("./ConversationsExtractDataResponse.js"), exports);
|
|
19
20
|
__exportStar(require("./ConversationsGetAnalysisResponse.js"), exports);
|
|
20
21
|
__exportStar(require("./ConversationsGetRequestAudioContainer.js"), exports);
|
|
@@ -24,4 +25,5 @@ __exportStar(require("./ConversationsListExtractionsResponse.js"), exports);
|
|
|
24
25
|
__exportStar(require("./ConversationsListRequestAudioContainer.js"), exports);
|
|
25
26
|
__exportStar(require("./ConversationsListResponse.js"), exports);
|
|
26
27
|
__exportStar(require("./ConversationsOutboundCallResponse.js"), exports);
|
|
28
|
+
__exportStar(require("./ConversationsReplayResponse.js"), exports);
|
|
27
29
|
__exportStar(require("./ConversationsSipOutboundCallResponse.js"), exports);
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export * from "./agents/client/requests/index.js";
|
|
2
2
|
export * as agents from "./agents/index.js";
|
|
3
3
|
export * from "./agents/types/index.js";
|
|
4
|
+
export * from "./apiKeys/client/requests/index.js";
|
|
5
|
+
export * as apiKeys from "./apiKeys/index.js";
|
|
6
|
+
export * from "./apiKeys/types/index.js";
|
|
4
7
|
export * from "./auth/client/requests/index.js";
|
|
5
8
|
export * as auth from "./auth/index.js";
|
|
6
9
|
export * from "./auth/types/index.js";
|
|
@@ -23,5 +26,6 @@ export * as tts from "./tts/index.js";
|
|
|
23
26
|
export * from "./voices/client/requests/index.js";
|
|
24
27
|
export * as voices from "./voices/index.js";
|
|
25
28
|
export * from "./voices/types/index.js";
|
|
29
|
+
export * from "./workspace/client/requests/index.js";
|
|
26
30
|
export * as workspace from "./workspace/index.js";
|
|
27
31
|
export * from "./workspace/types/index.js";
|
|
@@ -36,10 +36,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.workspace = exports.voices = exports.tts = exports.tools = exports.projects = exports.extractionSchemas = exports.conversations = exports.conversationItems = exports.auth = exports.agents = void 0;
|
|
39
|
+
exports.workspace = exports.voices = exports.tts = exports.tools = exports.projects = exports.extractionSchemas = exports.conversations = exports.conversationItems = exports.auth = exports.apiKeys = exports.agents = void 0;
|
|
40
40
|
__exportStar(require("./agents/client/requests/index.js"), exports);
|
|
41
41
|
exports.agents = __importStar(require("./agents/index.js"));
|
|
42
42
|
__exportStar(require("./agents/types/index.js"), exports);
|
|
43
|
+
__exportStar(require("./apiKeys/client/requests/index.js"), exports);
|
|
44
|
+
exports.apiKeys = __importStar(require("./apiKeys/index.js"));
|
|
45
|
+
__exportStar(require("./apiKeys/types/index.js"), exports);
|
|
43
46
|
__exportStar(require("./auth/client/requests/index.js"), exports);
|
|
44
47
|
exports.auth = __importStar(require("./auth/index.js"));
|
|
45
48
|
__exportStar(require("./auth/types/index.js"), exports);
|
|
@@ -62,5 +65,6 @@ exports.tts = __importStar(require("./tts/index.js"));
|
|
|
62
65
|
__exportStar(require("./voices/client/requests/index.js"), exports);
|
|
63
66
|
exports.voices = __importStar(require("./voices/index.js"));
|
|
64
67
|
__exportStar(require("./voices/types/index.js"), exports);
|
|
68
|
+
__exportStar(require("./workspace/client/requests/index.js"), exports);
|
|
65
69
|
exports.workspace = __importStar(require("./workspace/index.js"));
|
|
66
70
|
__exportStar(require("./workspace/types/index.js"), exports);
|
|
@@ -133,4 +133,20 @@ export declare class ProjectsClient {
|
|
|
133
133
|
*/
|
|
134
134
|
createEvalPrompt(id: string, request: Phonic.CreateConversationEvalPromptRequest, requestOptions?: ProjectsClient.RequestOptions): core.HttpResponsePromise<Phonic.ProjectsCreateEvalPromptResponse>;
|
|
135
135
|
private __createEvalPrompt;
|
|
136
|
+
/**
|
|
137
|
+
* Returns all conversation evaluation results for a project.
|
|
138
|
+
*
|
|
139
|
+
* @param {string} id - The ID of the project.
|
|
140
|
+
* @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
141
|
+
*
|
|
142
|
+
* @throws {@link Phonic.UnauthorizedError}
|
|
143
|
+
* @throws {@link Phonic.ForbiddenError}
|
|
144
|
+
* @throws {@link Phonic.NotFoundError}
|
|
145
|
+
* @throws {@link Phonic.InternalServerError}
|
|
146
|
+
*
|
|
147
|
+
* @example
|
|
148
|
+
* await client.projects.listEvals("id")
|
|
149
|
+
*/
|
|
150
|
+
listEvals(id: string, requestOptions?: ProjectsClient.RequestOptions): core.HttpResponsePromise<Phonic.ProjectsListEvalsResponse>;
|
|
151
|
+
private __listEvals;
|
|
136
152
|
}
|