agentphone 1.0.11 → 1.0.13
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 +10 -10
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +6 -6
- package/dist/cjs/Client.js +26 -26
- package/dist/cjs/api/resources/agents/client/Client.js +11 -11
- package/dist/cjs/api/resources/agents/client/requests/CreateAgentRequest.d.ts +71 -0
- package/dist/cjs/api/resources/agents/client/requests/CreateAgentRequest.js +66 -0
- package/dist/cjs/api/resources/agents/client/requests/DeleteAgentV1AgentsAgentIdDeleteRequest.d.ts +2 -0
- package/dist/cjs/api/resources/agents/client/requests/GetAgentV1AgentsAgentIdGetRequest.d.ts +2 -0
- package/dist/cjs/api/resources/agents/client/requests/ListAgentsV1AgentsGetRequest.d.ts +2 -1
- package/dist/cjs/api/resources/agents/client/requests/UpdateAgentRequest.d.ts +71 -0
- package/dist/cjs/api/resources/agents/client/requests/UpdateAgentRequest.js +66 -0
- package/dist/cjs/api/resources/calls/client/Client.js +16 -5
- package/dist/cjs/api/resources/calls/client/requests/CreateOutboundCallRequest.d.ts +2 -0
- package/dist/cjs/api/resources/calls/client/requests/ListCallsV1CallsGetRequest.d.ts +2 -1
- package/dist/cjs/api/resources/contacts/client/Client.js +2 -3
- package/dist/cjs/api/resources/contacts/client/requests/ListContactsV1ContactsGetRequest.d.ts +2 -1
- package/dist/cjs/api/resources/conversations/client/Client.d.ts +5 -3
- package/dist/cjs/api/resources/conversations/client/Client.js +7 -6
- package/dist/cjs/api/resources/conversations/client/requests/ListConversationsV1ConversationsGetRequest.d.ts +2 -1
- package/dist/cjs/api/resources/index.d.ts +4 -4
- package/dist/cjs/api/resources/index.js +5 -5
- package/dist/cjs/api/resources/numbers/client/Client.js +18 -7
- package/dist/cjs/api/resources/numbers/client/requests/CreateNumberRequest.d.ts +2 -0
- package/dist/cjs/api/resources/numbers/client/requests/DeleteNumberV1NumbersNumberIdDeleteRequest.d.ts +2 -0
- package/dist/cjs/api/resources/numbers/client/requests/ListNumbersV1NumbersGetRequest.d.ts +2 -1
- package/dist/cjs/api/resources/registration/client/Client.d.ts +61 -0
- package/dist/cjs/api/resources/{agentSignup → registration}/client/Client.js +44 -69
- package/dist/cjs/api/resources/registration/client/requests/RegistrationRequest.d.ts +61 -0
- package/dist/cjs/api/resources/registration/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/subAccounts/client/Client.d.ts +61 -0
- package/dist/cjs/api/resources/{integrations → subAccounts}/client/Client.js +99 -106
- package/dist/cjs/api/resources/subAccounts/client/requests/CreateSubAccountRequest.d.ts +9 -0
- package/dist/cjs/api/resources/subAccounts/client/requests/DeleteSubAccountV1SubAccountsSubAccountIdDeleteRequest.d.ts +9 -0
- package/dist/cjs/api/resources/subAccounts/client/requests/UpdateSubAccountRequest.d.ts +11 -0
- package/dist/cjs/api/resources/subAccounts/client/requests/UpdateSubAccountRequest.js +3 -0
- package/dist/cjs/api/resources/subAccounts/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +7 -4
- package/dist/cjs/api/resources/webhooks/client/Client.js +14 -9
- package/dist/cjs/api/resources/webhooks/client/requests/CreateOrUpdateWebhookV1WebhooksPostRequest.d.ts +14 -0
- package/dist/cjs/api/resources/webhooks/client/requests/CreateOrUpdateWebhookV1WebhooksPostRequest.js +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/GetWebhookV1WebhooksGetRequest.d.ts +8 -0
- package/dist/cjs/api/resources/webhooks/client/requests/GetWebhookV1WebhooksGetRequest.js +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/types/AgentResponse.d.ts +2 -0
- package/dist/cjs/api/{resources/agentSignup/client/requests → types}/AgentSignUpRequest.d.ts +0 -6
- package/dist/cjs/api/types/AgentSignUpRequest.js +3 -0
- package/dist/cjs/api/types/AgentVerifyRequest.d.ts +4 -0
- package/dist/cjs/api/types/AgentVerifyRequest.js +3 -0
- package/dist/cjs/api/types/AppRoutesConversationsConversationSummary.d.ts +6 -0
- package/dist/cjs/api/types/ConversationDetail.d.ts +5 -0
- package/dist/cjs/api/types/FieldWarning.d.ts +6 -0
- package/dist/cjs/api/types/FieldWarning.js +3 -0
- package/dist/cjs/api/types/GroupParticipant.d.ts +7 -0
- package/dist/cjs/api/types/GroupParticipant.js +3 -0
- package/dist/cjs/api/types/MessageInConversation.d.ts +1 -0
- package/dist/cjs/api/types/RegistrationResponse.d.ts +8 -0
- package/dist/cjs/api/types/RegistrationResponse.js +3 -0
- 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 +6 -6
- package/dist/esm/Client.mjs +10 -10
- package/dist/esm/api/resources/agents/client/Client.mjs +12 -12
- package/dist/esm/api/resources/agents/client/requests/CreateAgentRequest.d.mts +71 -0
- package/dist/esm/api/resources/agents/client/requests/CreateAgentRequest.mjs +66 -0
- package/dist/esm/api/resources/agents/client/requests/DeleteAgentV1AgentsAgentIdDeleteRequest.d.mts +2 -0
- package/dist/esm/api/resources/agents/client/requests/GetAgentV1AgentsAgentIdGetRequest.d.mts +2 -0
- package/dist/esm/api/resources/agents/client/requests/ListAgentsV1AgentsGetRequest.d.mts +2 -1
- package/dist/esm/api/resources/agents/client/requests/UpdateAgentRequest.d.mts +71 -0
- package/dist/esm/api/resources/agents/client/requests/UpdateAgentRequest.mjs +66 -0
- package/dist/esm/api/resources/calls/client/Client.mjs +17 -6
- package/dist/esm/api/resources/calls/client/requests/CreateOutboundCallRequest.d.mts +2 -0
- package/dist/esm/api/resources/calls/client/requests/ListCallsV1CallsGetRequest.d.mts +2 -1
- package/dist/esm/api/resources/contacts/client/Client.mjs +3 -4
- package/dist/esm/api/resources/contacts/client/requests/ListContactsV1ContactsGetRequest.d.mts +2 -1
- package/dist/esm/api/resources/conversations/client/Client.d.mts +5 -3
- package/dist/esm/api/resources/conversations/client/Client.mjs +8 -7
- package/dist/esm/api/resources/conversations/client/requests/ListConversationsV1ConversationsGetRequest.d.mts +2 -1
- package/dist/esm/api/resources/index.d.mts +4 -4
- package/dist/esm/api/resources/index.mjs +4 -4
- package/dist/esm/api/resources/numbers/client/Client.mjs +19 -8
- package/dist/esm/api/resources/numbers/client/requests/CreateNumberRequest.d.mts +2 -0
- package/dist/esm/api/resources/numbers/client/requests/DeleteNumberV1NumbersNumberIdDeleteRequest.d.mts +2 -0
- package/dist/esm/api/resources/numbers/client/requests/ListNumbersV1NumbersGetRequest.d.mts +2 -1
- package/dist/esm/api/resources/registration/client/Client.d.mts +61 -0
- package/dist/esm/api/resources/registration/client/Client.mjs +108 -0
- package/dist/esm/api/resources/registration/client/requests/RegistrationRequest.d.mts +61 -0
- package/dist/esm/api/resources/registration/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/subAccounts/client/Client.d.mts +61 -0
- package/dist/esm/api/resources/{integrations → subAccounts}/client/Client.mjs +97 -104
- package/dist/esm/api/resources/subAccounts/client/requests/CreateSubAccountRequest.d.mts +9 -0
- package/dist/esm/api/resources/subAccounts/client/requests/DeleteSubAccountV1SubAccountsSubAccountIdDeleteRequest.d.mts +9 -0
- package/dist/esm/api/resources/subAccounts/client/requests/UpdateSubAccountRequest.d.mts +11 -0
- package/dist/esm/api/resources/subAccounts/client/requests/UpdateSubAccountRequest.mjs +2 -0
- package/dist/esm/api/resources/subAccounts/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +7 -4
- package/dist/esm/api/resources/webhooks/client/Client.mjs +15 -10
- package/dist/esm/api/resources/webhooks/client/requests/CreateOrUpdateWebhookV1WebhooksPostRequest.d.mts +14 -0
- package/dist/esm/api/resources/webhooks/client/requests/CreateOrUpdateWebhookV1WebhooksPostRequest.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/GetWebhookV1WebhooksGetRequest.d.mts +8 -0
- package/dist/esm/api/resources/webhooks/client/requests/GetWebhookV1WebhooksGetRequest.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/index.d.mts +2 -0
- package/dist/esm/api/types/AgentResponse.d.mts +2 -0
- package/dist/esm/api/{resources/agentSignup/client/requests → types}/AgentSignUpRequest.d.mts +0 -6
- package/dist/esm/api/types/AgentSignUpRequest.mjs +2 -0
- package/dist/esm/api/types/AgentVerifyRequest.d.mts +4 -0
- package/dist/esm/api/types/AgentVerifyRequest.mjs +2 -0
- package/dist/esm/api/types/AppRoutesConversationsConversationSummary.d.mts +6 -0
- package/dist/esm/api/types/ConversationDetail.d.mts +5 -0
- package/dist/esm/api/types/FieldWarning.d.mts +6 -0
- package/dist/esm/api/types/FieldWarning.mjs +2 -0
- package/dist/esm/api/types/GroupParticipant.d.mts +7 -0
- package/dist/esm/api/types/GroupParticipant.mjs +2 -0
- package/dist/esm/api/types/MessageInConversation.d.mts +1 -0
- package/dist/esm/api/types/RegistrationResponse.d.mts +8 -0
- package/dist/esm/api/types/RegistrationResponse.mjs +2 -0
- 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 +1 -1
- package/reference.md +188 -277
- package/dist/cjs/api/resources/agentSignup/client/Client.d.ts +0 -50
- package/dist/cjs/api/resources/agentSignup/client/requests/AgentVerifyRequest.d.ts +0 -11
- package/dist/cjs/api/resources/agentSignup/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/integrations/client/Client.d.ts +0 -64
- package/dist/cjs/api/resources/integrations/client/requests/SupabaseConnectIntegrationsSupabaseConnectGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/integrations/client/requests/index.d.ts +0 -1
- package/dist/esm/api/resources/agentSignup/client/Client.d.mts +0 -50
- package/dist/esm/api/resources/agentSignup/client/Client.mjs +0 -133
- package/dist/esm/api/resources/agentSignup/client/requests/AgentVerifyRequest.d.mts +0 -11
- package/dist/esm/api/resources/agentSignup/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/integrations/client/Client.d.mts +0 -64
- package/dist/esm/api/resources/integrations/client/requests/SupabaseConnectIntegrationsSupabaseConnectGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/integrations/client/requests/index.d.mts +0 -1
- /package/dist/cjs/api/resources/{agentSignup → registration}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{agentSignup → registration}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{agentSignup/client/requests/AgentSignUpRequest.js → registration/client/requests/RegistrationRequest.js} +0 -0
- /package/dist/cjs/api/resources/{agentSignup → registration}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{agentSignup → registration}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{agentSignup → registration}/index.js +0 -0
- /package/dist/cjs/api/resources/{integrations → subAccounts}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{integrations → subAccounts}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{agentSignup/client/requests/AgentVerifyRequest.js → subAccounts/client/requests/CreateSubAccountRequest.js} +0 -0
- /package/dist/cjs/api/resources/{integrations/client/requests/SupabaseConnectIntegrationsSupabaseConnectGetRequest.js → subAccounts/client/requests/DeleteSubAccountV1SubAccountsSubAccountIdDeleteRequest.js} +0 -0
- /package/dist/cjs/api/resources/{integrations → subAccounts}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{integrations → subAccounts}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{integrations → subAccounts}/index.js +0 -0
- /package/dist/esm/api/resources/{agentSignup → registration}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{agentSignup → registration}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{agentSignup/client/requests/AgentSignUpRequest.mjs → registration/client/requests/RegistrationRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{agentSignup → registration}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{agentSignup → registration}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{agentSignup → registration}/index.mjs +0 -0
- /package/dist/esm/api/resources/{integrations → subAccounts}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{integrations → subAccounts}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{agentSignup/client/requests/AgentVerifyRequest.mjs → subAccounts/client/requests/CreateSubAccountRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{integrations/client/requests/SupabaseConnectIntegrationsSupabaseConnectGetRequest.mjs → subAccounts/client/requests/DeleteSubAccountV1SubAccountsSubAccountIdDeleteRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{integrations → subAccounts}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{integrations → subAccounts}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{integrations → subAccounts}/index.mjs +0 -0
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export * from "./AgentListResponse.js";
|
|
2
2
|
export * from "./AgentNumberResponse.js";
|
|
3
3
|
export * from "./AgentResponse.js";
|
|
4
|
+
export * from "./AgentSignUpRequest.js";
|
|
4
5
|
export * from "./AgentUsageItem.js";
|
|
5
6
|
export * from "./AgentUsageResponse.js";
|
|
7
|
+
export * from "./AgentVerifyRequest.js";
|
|
6
8
|
export * from "./AllTimeStatsResponse.js";
|
|
7
9
|
export * from "./AppRoutesAgentsConversationListResponse.js";
|
|
8
10
|
export * from "./AppRoutesAgentsConversationSummary.js";
|
|
@@ -18,6 +20,8 @@ export * from "./ConversationDetail.js";
|
|
|
18
20
|
export * from "./DailyUsagePoint.js";
|
|
19
21
|
export * from "./DailyUsageResponse.js";
|
|
20
22
|
export * from "./DeleteAgentResponse.js";
|
|
23
|
+
export * from "./FieldWarning.js";
|
|
24
|
+
export * from "./GroupParticipant.js";
|
|
21
25
|
export * from "./HttpValidationError.js";
|
|
22
26
|
export * from "./MessageInConversation.js";
|
|
23
27
|
export * from "./MessageListResponse.js";
|
|
@@ -34,6 +38,7 @@ export * from "./PhoneNumberResponse.js";
|
|
|
34
38
|
export * from "./PlanInfo.js";
|
|
35
39
|
export * from "./PlanLimits.js";
|
|
36
40
|
export * from "./ReactionInConversation.js";
|
|
41
|
+
export * from "./RegistrationResponse.js";
|
|
37
42
|
export * from "./SendMessageResponse.js";
|
|
38
43
|
export * from "./SendReactionResponse.js";
|
|
39
44
|
export * from "./SendTypingResponse.js";
|
|
@@ -17,8 +17,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./AgentListResponse.js"), exports);
|
|
18
18
|
__exportStar(require("./AgentNumberResponse.js"), exports);
|
|
19
19
|
__exportStar(require("./AgentResponse.js"), exports);
|
|
20
|
+
__exportStar(require("./AgentSignUpRequest.js"), exports);
|
|
20
21
|
__exportStar(require("./AgentUsageItem.js"), exports);
|
|
21
22
|
__exportStar(require("./AgentUsageResponse.js"), exports);
|
|
23
|
+
__exportStar(require("./AgentVerifyRequest.js"), exports);
|
|
22
24
|
__exportStar(require("./AllTimeStatsResponse.js"), exports);
|
|
23
25
|
__exportStar(require("./AppRoutesAgentsConversationListResponse.js"), exports);
|
|
24
26
|
__exportStar(require("./AppRoutesAgentsConversationSummary.js"), exports);
|
|
@@ -34,6 +36,8 @@ __exportStar(require("./ConversationDetail.js"), exports);
|
|
|
34
36
|
__exportStar(require("./DailyUsagePoint.js"), exports);
|
|
35
37
|
__exportStar(require("./DailyUsageResponse.js"), exports);
|
|
36
38
|
__exportStar(require("./DeleteAgentResponse.js"), exports);
|
|
39
|
+
__exportStar(require("./FieldWarning.js"), exports);
|
|
40
|
+
__exportStar(require("./GroupParticipant.js"), exports);
|
|
37
41
|
__exportStar(require("./HttpValidationError.js"), exports);
|
|
38
42
|
__exportStar(require("./MessageInConversation.js"), exports);
|
|
39
43
|
__exportStar(require("./MessageListResponse.js"), exports);
|
|
@@ -50,6 +54,7 @@ __exportStar(require("./PhoneNumberResponse.js"), exports);
|
|
|
50
54
|
__exportStar(require("./PlanInfo.js"), exports);
|
|
51
55
|
__exportStar(require("./PlanLimits.js"), exports);
|
|
52
56
|
__exportStar(require("./ReactionInConversation.js"), exports);
|
|
57
|
+
__exportStar(require("./RegistrationResponse.js"), exports);
|
|
53
58
|
__exportStar(require("./SendMessageResponse.js"), exports);
|
|
54
59
|
__exportStar(require("./SendReactionResponse.js"), exports);
|
|
55
60
|
__exportStar(require("./SendTypingResponse.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.13";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "agentphone",
|
|
9
|
-
"X-Fern-SDK-Version": "1.0.
|
|
10
|
-
"User-Agent": "agentphone/1.0.
|
|
9
|
+
"X-Fern-SDK-Version": "1.0.13",
|
|
10
|
+
"User-Agent": "agentphone/1.0.13",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
package/dist/esm/Client.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { AgentSignupClient } from "./api/resources/agentSignup/client/Client.mjs";
|
|
2
1
|
import { AgentsClient } from "./api/resources/agents/client/Client.mjs";
|
|
3
2
|
import { AgentWebhooksClient } from "./api/resources/agentWebhooks/client/Client.mjs";
|
|
4
3
|
import { CallsClient } from "./api/resources/calls/client/Client.mjs";
|
|
5
4
|
import { ContactCardsClient } from "./api/resources/contactCards/client/Client.mjs";
|
|
6
5
|
import { ContactsClient } from "./api/resources/contacts/client/Client.mjs";
|
|
7
6
|
import { ConversationsClient } from "./api/resources/conversations/client/Client.mjs";
|
|
8
|
-
import { IntegrationsClient } from "./api/resources/integrations/client/Client.mjs";
|
|
9
7
|
import { MessagesClient } from "./api/resources/messages/client/Client.mjs";
|
|
10
8
|
import { NumbersClient } from "./api/resources/numbers/client/Client.mjs";
|
|
9
|
+
import { RegistrationClient } from "./api/resources/registration/client/Client.mjs";
|
|
10
|
+
import { SubAccountsClient } from "./api/resources/subAccounts/client/Client.mjs";
|
|
11
11
|
import { UsageClient } from "./api/resources/usage/client/Client.mjs";
|
|
12
12
|
import { WebhooksClient } from "./api/resources/webhooks/client/Client.mjs";
|
|
13
13
|
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
|
|
@@ -19,7 +19,6 @@ export declare namespace AgentPhoneClient {
|
|
|
19
19
|
}
|
|
20
20
|
export declare class AgentPhoneClient {
|
|
21
21
|
protected readonly _options: NormalizedClientOptionsWithAuth<AgentPhoneClient.Options>;
|
|
22
|
-
protected _agentSignup: AgentSignupClient | undefined;
|
|
23
22
|
protected _agents: AgentsClient | undefined;
|
|
24
23
|
protected _numbers: NumbersClient | undefined;
|
|
25
24
|
protected _webhooks: WebhooksClient | undefined;
|
|
@@ -28,11 +27,11 @@ export declare class AgentPhoneClient {
|
|
|
28
27
|
protected _conversations: ConversationsClient | undefined;
|
|
29
28
|
protected _calls: CallsClient | undefined;
|
|
30
29
|
protected _usage: UsageClient | undefined;
|
|
31
|
-
protected _integrations: IntegrationsClient | undefined;
|
|
32
30
|
protected _messages: MessagesClient | undefined;
|
|
33
31
|
protected _contactCards: ContactCardsClient | undefined;
|
|
32
|
+
protected _registration: RegistrationClient | undefined;
|
|
33
|
+
protected _subAccounts: SubAccountsClient | undefined;
|
|
34
34
|
constructor(options?: AgentPhoneClient.Options);
|
|
35
|
-
get agentSignup(): AgentSignupClient;
|
|
36
35
|
get agents(): AgentsClient;
|
|
37
36
|
get numbers(): NumbersClient;
|
|
38
37
|
get webhooks(): WebhooksClient;
|
|
@@ -41,7 +40,8 @@ export declare class AgentPhoneClient {
|
|
|
41
40
|
get conversations(): ConversationsClient;
|
|
42
41
|
get calls(): CallsClient;
|
|
43
42
|
get usage(): UsageClient;
|
|
44
|
-
get integrations(): IntegrationsClient;
|
|
45
43
|
get messages(): MessagesClient;
|
|
46
44
|
get contactCards(): ContactCardsClient;
|
|
45
|
+
get registration(): RegistrationClient;
|
|
46
|
+
get subAccounts(): SubAccountsClient;
|
|
47
47
|
}
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
import { AgentSignupClient } from "./api/resources/agentSignup/client/Client.mjs";
|
|
3
2
|
import { AgentsClient } from "./api/resources/agents/client/Client.mjs";
|
|
4
3
|
import { AgentWebhooksClient } from "./api/resources/agentWebhooks/client/Client.mjs";
|
|
5
4
|
import { CallsClient } from "./api/resources/calls/client/Client.mjs";
|
|
6
5
|
import { ContactCardsClient } from "./api/resources/contactCards/client/Client.mjs";
|
|
7
6
|
import { ContactsClient } from "./api/resources/contacts/client/Client.mjs";
|
|
8
7
|
import { ConversationsClient } from "./api/resources/conversations/client/Client.mjs";
|
|
9
|
-
import { IntegrationsClient } from "./api/resources/integrations/client/Client.mjs";
|
|
10
8
|
import { MessagesClient } from "./api/resources/messages/client/Client.mjs";
|
|
11
9
|
import { NumbersClient } from "./api/resources/numbers/client/Client.mjs";
|
|
10
|
+
import { RegistrationClient } from "./api/resources/registration/client/Client.mjs";
|
|
11
|
+
import { SubAccountsClient } from "./api/resources/subAccounts/client/Client.mjs";
|
|
12
12
|
import { UsageClient } from "./api/resources/usage/client/Client.mjs";
|
|
13
13
|
import { WebhooksClient } from "./api/resources/webhooks/client/Client.mjs";
|
|
14
14
|
import { normalizeClientOptionsWithAuth } from "./BaseClient.mjs";
|
|
@@ -16,10 +16,6 @@ export class AgentPhoneClient {
|
|
|
16
16
|
constructor(options = {}) {
|
|
17
17
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
18
18
|
}
|
|
19
|
-
get agentSignup() {
|
|
20
|
-
var _a;
|
|
21
|
-
return ((_a = this._agentSignup) !== null && _a !== void 0 ? _a : (this._agentSignup = new AgentSignupClient(this._options)));
|
|
22
|
-
}
|
|
23
19
|
get agents() {
|
|
24
20
|
var _a;
|
|
25
21
|
return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new AgentsClient(this._options)));
|
|
@@ -52,10 +48,6 @@ export class AgentPhoneClient {
|
|
|
52
48
|
var _a;
|
|
53
49
|
return ((_a = this._usage) !== null && _a !== void 0 ? _a : (this._usage = new UsageClient(this._options)));
|
|
54
50
|
}
|
|
55
|
-
get integrations() {
|
|
56
|
-
var _a;
|
|
57
|
-
return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new IntegrationsClient(this._options)));
|
|
58
|
-
}
|
|
59
51
|
get messages() {
|
|
60
52
|
var _a;
|
|
61
53
|
return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new MessagesClient(this._options)));
|
|
@@ -64,4 +56,12 @@ export class AgentPhoneClient {
|
|
|
64
56
|
var _a;
|
|
65
57
|
return ((_a = this._contactCards) !== null && _a !== void 0 ? _a : (this._contactCards = new ContactCardsClient(this._options)));
|
|
66
58
|
}
|
|
59
|
+
get registration() {
|
|
60
|
+
var _a;
|
|
61
|
+
return ((_a = this._registration) !== null && _a !== void 0 ? _a : (this._registration = new RegistrationClient(this._options)));
|
|
62
|
+
}
|
|
63
|
+
get subAccounts() {
|
|
64
|
+
var _a;
|
|
65
|
+
return ((_a = this._subAccounts) !== null && _a !== void 0 ? _a : (this._subAccounts = new SubAccountsClient(this._options)));
|
|
66
|
+
}
|
|
67
67
|
}
|
|
@@ -20,7 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
20
20
|
return t;
|
|
21
21
|
};
|
|
22
22
|
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
23
|
-
import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
23
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
24
24
|
import * as core from "../../../../core/index.mjs";
|
|
25
25
|
import * as environments from "../../../../environments.mjs";
|
|
26
26
|
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
|
|
@@ -87,13 +87,12 @@ export class AgentsClient {
|
|
|
87
87
|
__listAgents() {
|
|
88
88
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
89
89
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
90
|
-
const {
|
|
90
|
+
const { offset, "X-Sub-Account-Id": subAccountId } = request;
|
|
91
91
|
const _queryParams = {
|
|
92
|
-
limit,
|
|
93
92
|
offset,
|
|
94
93
|
};
|
|
95
94
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
96
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
95
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Sub-Account-Id": subAccountId }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
97
96
|
const _response = yield core.fetcher({
|
|
98
97
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AgentPhoneEnvironment.Production, "v1/agents"),
|
|
99
98
|
method: "GET",
|
|
@@ -148,8 +147,9 @@ export class AgentsClient {
|
|
|
148
147
|
__createAgent(request, requestOptions) {
|
|
149
148
|
return __awaiter(this, void 0, void 0, function* () {
|
|
150
149
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
150
|
+
const { "X-Sub-Account-Id": subAccountId } = request, _body = __rest(request, ["X-Sub-Account-Id"]);
|
|
151
151
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
152
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
152
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Sub-Account-Id": subAccountId }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
153
153
|
const _response = yield core.fetcher({
|
|
154
154
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AgentPhoneEnvironment.Production, "v1/agents"),
|
|
155
155
|
method: "POST",
|
|
@@ -157,7 +157,7 @@ export class AgentsClient {
|
|
|
157
157
|
contentType: "application/json",
|
|
158
158
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
159
159
|
requestType: "json",
|
|
160
|
-
body:
|
|
160
|
+
body: _body,
|
|
161
161
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
162
162
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
163
163
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -201,9 +201,9 @@ export class AgentsClient {
|
|
|
201
201
|
__getAgent(request, requestOptions) {
|
|
202
202
|
return __awaiter(this, void 0, void 0, function* () {
|
|
203
203
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
204
|
-
const { agent_id: agentId } = request;
|
|
204
|
+
const { agent_id: agentId, "X-Sub-Account-Id": subAccountId } = request;
|
|
205
205
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
206
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
206
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Sub-Account-Id": subAccountId }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
207
207
|
const _response = yield core.fetcher({
|
|
208
208
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AgentPhoneEnvironment.Production, `v1/agents/${core.url.encodePathParam(agentId)}`),
|
|
209
209
|
method: "GET",
|
|
@@ -255,9 +255,9 @@ export class AgentsClient {
|
|
|
255
255
|
__deleteAgent(request, requestOptions) {
|
|
256
256
|
return __awaiter(this, void 0, void 0, function* () {
|
|
257
257
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
258
|
-
const { agent_id: agentId } = request;
|
|
258
|
+
const { agent_id: agentId, "X-Sub-Account-Id": subAccountId } = request;
|
|
259
259
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
260
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
260
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Sub-Account-Id": subAccountId }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
261
261
|
const _response = yield core.fetcher({
|
|
262
262
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AgentPhoneEnvironment.Production, `v1/agents/${core.url.encodePathParam(agentId)}`),
|
|
263
263
|
method: "DELETE",
|
|
@@ -309,9 +309,9 @@ export class AgentsClient {
|
|
|
309
309
|
__updateAgent(request, requestOptions) {
|
|
310
310
|
return __awaiter(this, void 0, void 0, function* () {
|
|
311
311
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
312
|
-
const { agent_id: agentId } = request, _body = __rest(request, ["agent_id"]);
|
|
312
|
+
const { agent_id: agentId, "X-Sub-Account-Id": subAccountId } = request, _body = __rest(request, ["agent_id", "X-Sub-Account-Id"]);
|
|
313
313
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
314
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
314
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Sub-Account-Id": subAccountId }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
315
315
|
const _response = yield core.fetcher({
|
|
316
316
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AgentPhoneEnvironment.Production, `v1/agents/${core.url.encodePathParam(agentId)}`),
|
|
317
317
|
method: "PATCH",
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
* }
|
|
6
6
|
*/
|
|
7
7
|
export interface CreateAgentRequest {
|
|
8
|
+
/** Target a sub-account. Pass a sub-account ID to scope this request. Omit to use the master account. */
|
|
9
|
+
"X-Sub-Account-Id"?: string;
|
|
8
10
|
name: string;
|
|
9
11
|
description?: string | null;
|
|
10
12
|
voiceMode?: CreateAgentRequest.VoiceMode;
|
|
@@ -30,6 +32,8 @@ export interface CreateAgentRequest {
|
|
|
30
32
|
interruptionSensitivity?: number | null;
|
|
31
33
|
/** When true, the agent interjects short filler words like 'uh-huh' or 'mhmm' during longer caller utterances. Set false to keep the agent silent while the caller is speaking. Defaults to true. */
|
|
32
34
|
enableBackchannel?: boolean | null;
|
|
35
|
+
/** BCP-47 locale that drives the agent's speech recognition and pronunciation. Defaults to 'en-US'. See the enum for the full set of supported codes. */
|
|
36
|
+
language?: CreateAgentRequest.Language;
|
|
33
37
|
}
|
|
34
38
|
export declare namespace CreateAgentRequest {
|
|
35
39
|
const VoiceMode: {
|
|
@@ -63,4 +67,71 @@ export declare namespace CreateAgentRequest {
|
|
|
63
67
|
readonly NoiseAndBackgroundSpeechCancellation: "noise-and-background-speech-cancellation";
|
|
64
68
|
};
|
|
65
69
|
type DenoisingMode = (typeof DenoisingMode)[keyof typeof DenoisingMode];
|
|
70
|
+
/** BCP-47 locale that drives the agent's speech recognition and pronunciation. Defaults to 'en-US'. See the enum for the full set of supported codes. */
|
|
71
|
+
const Language: {
|
|
72
|
+
readonly AfZa: "af-ZA";
|
|
73
|
+
readonly ArSa: "ar-SA";
|
|
74
|
+
readonly AzAz: "az-AZ";
|
|
75
|
+
readonly BgBg: "bg-BG";
|
|
76
|
+
readonly BsBa: "bs-BA";
|
|
77
|
+
readonly CaEs: "ca-ES";
|
|
78
|
+
readonly CsCz: "cs-CZ";
|
|
79
|
+
readonly CyGb: "cy-GB";
|
|
80
|
+
readonly DaDk: "da-DK";
|
|
81
|
+
readonly DeDe: "de-DE";
|
|
82
|
+
readonly ElGr: "el-GR";
|
|
83
|
+
readonly EnAu: "en-AU";
|
|
84
|
+
readonly EnGb: "en-GB";
|
|
85
|
+
readonly EnIn: "en-IN";
|
|
86
|
+
readonly EnNz: "en-NZ";
|
|
87
|
+
readonly EnUs: "en-US";
|
|
88
|
+
readonly Es419: "es-419";
|
|
89
|
+
readonly EsEs: "es-ES";
|
|
90
|
+
readonly FaIr: "fa-IR";
|
|
91
|
+
readonly FiFi: "fi-FI";
|
|
92
|
+
readonly FilPh: "fil-PH";
|
|
93
|
+
readonly FrCa: "fr-CA";
|
|
94
|
+
readonly FrFr: "fr-FR";
|
|
95
|
+
readonly GlEs: "gl-ES";
|
|
96
|
+
readonly HeIl: "he-IL";
|
|
97
|
+
readonly HiIn: "hi-IN";
|
|
98
|
+
readonly HrHr: "hr-HR";
|
|
99
|
+
readonly HuHu: "hu-HU";
|
|
100
|
+
readonly HyAm: "hy-AM";
|
|
101
|
+
readonly IdId: "id-ID";
|
|
102
|
+
readonly IsIs: "is-IS";
|
|
103
|
+
readonly ItIt: "it-IT";
|
|
104
|
+
readonly JaJp: "ja-JP";
|
|
105
|
+
readonly KkKz: "kk-KZ";
|
|
106
|
+
readonly KnIn: "kn-IN";
|
|
107
|
+
readonly KoKr: "ko-KR";
|
|
108
|
+
readonly LtLt: "lt-LT";
|
|
109
|
+
readonly LvLv: "lv-LV";
|
|
110
|
+
readonly MkMk: "mk-MK";
|
|
111
|
+
readonly MrIn: "mr-IN";
|
|
112
|
+
readonly MsMy: "ms-MY";
|
|
113
|
+
readonly NeNp: "ne-NP";
|
|
114
|
+
readonly NlBe: "nl-BE";
|
|
115
|
+
readonly NlNl: "nl-NL";
|
|
116
|
+
readonly NoNo: "no-NO";
|
|
117
|
+
readonly PlPl: "pl-PL";
|
|
118
|
+
readonly PtBr: "pt-BR";
|
|
119
|
+
readonly PtPt: "pt-PT";
|
|
120
|
+
readonly RoRo: "ro-RO";
|
|
121
|
+
readonly RuRu: "ru-RU";
|
|
122
|
+
readonly SkSk: "sk-SK";
|
|
123
|
+
readonly SlSi: "sl-SI";
|
|
124
|
+
readonly SrRs: "sr-RS";
|
|
125
|
+
readonly SvSe: "sv-SE";
|
|
126
|
+
readonly SwKe: "sw-KE";
|
|
127
|
+
readonly TaIn: "ta-IN";
|
|
128
|
+
readonly ThTh: "th-TH";
|
|
129
|
+
readonly TrTr: "tr-TR";
|
|
130
|
+
readonly UkUa: "uk-UA";
|
|
131
|
+
readonly UrIn: "ur-IN";
|
|
132
|
+
readonly ViVn: "vi-VN";
|
|
133
|
+
readonly YueCn: "yue-CN";
|
|
134
|
+
readonly ZhCn: "zh-CN";
|
|
135
|
+
};
|
|
136
|
+
type Language = (typeof Language)[keyof typeof Language];
|
|
66
137
|
}
|
|
@@ -27,4 +27,70 @@ export var CreateAgentRequest;
|
|
|
27
27
|
NoiseCancellation: "noise-cancellation",
|
|
28
28
|
NoiseAndBackgroundSpeechCancellation: "noise-and-background-speech-cancellation",
|
|
29
29
|
};
|
|
30
|
+
/** BCP-47 locale that drives the agent's speech recognition and pronunciation. Defaults to 'en-US'. See the enum for the full set of supported codes. */
|
|
31
|
+
CreateAgentRequest.Language = {
|
|
32
|
+
AfZa: "af-ZA",
|
|
33
|
+
ArSa: "ar-SA",
|
|
34
|
+
AzAz: "az-AZ",
|
|
35
|
+
BgBg: "bg-BG",
|
|
36
|
+
BsBa: "bs-BA",
|
|
37
|
+
CaEs: "ca-ES",
|
|
38
|
+
CsCz: "cs-CZ",
|
|
39
|
+
CyGb: "cy-GB",
|
|
40
|
+
DaDk: "da-DK",
|
|
41
|
+
DeDe: "de-DE",
|
|
42
|
+
ElGr: "el-GR",
|
|
43
|
+
EnAu: "en-AU",
|
|
44
|
+
EnGb: "en-GB",
|
|
45
|
+
EnIn: "en-IN",
|
|
46
|
+
EnNz: "en-NZ",
|
|
47
|
+
EnUs: "en-US",
|
|
48
|
+
Es419: "es-419",
|
|
49
|
+
EsEs: "es-ES",
|
|
50
|
+
FaIr: "fa-IR",
|
|
51
|
+
FiFi: "fi-FI",
|
|
52
|
+
FilPh: "fil-PH",
|
|
53
|
+
FrCa: "fr-CA",
|
|
54
|
+
FrFr: "fr-FR",
|
|
55
|
+
GlEs: "gl-ES",
|
|
56
|
+
HeIl: "he-IL",
|
|
57
|
+
HiIn: "hi-IN",
|
|
58
|
+
HrHr: "hr-HR",
|
|
59
|
+
HuHu: "hu-HU",
|
|
60
|
+
HyAm: "hy-AM",
|
|
61
|
+
IdId: "id-ID",
|
|
62
|
+
IsIs: "is-IS",
|
|
63
|
+
ItIt: "it-IT",
|
|
64
|
+
JaJp: "ja-JP",
|
|
65
|
+
KkKz: "kk-KZ",
|
|
66
|
+
KnIn: "kn-IN",
|
|
67
|
+
KoKr: "ko-KR",
|
|
68
|
+
LtLt: "lt-LT",
|
|
69
|
+
LvLv: "lv-LV",
|
|
70
|
+
MkMk: "mk-MK",
|
|
71
|
+
MrIn: "mr-IN",
|
|
72
|
+
MsMy: "ms-MY",
|
|
73
|
+
NeNp: "ne-NP",
|
|
74
|
+
NlBe: "nl-BE",
|
|
75
|
+
NlNl: "nl-NL",
|
|
76
|
+
NoNo: "no-NO",
|
|
77
|
+
PlPl: "pl-PL",
|
|
78
|
+
PtBr: "pt-BR",
|
|
79
|
+
PtPt: "pt-PT",
|
|
80
|
+
RoRo: "ro-RO",
|
|
81
|
+
RuRu: "ru-RU",
|
|
82
|
+
SkSk: "sk-SK",
|
|
83
|
+
SlSi: "sl-SI",
|
|
84
|
+
SrRs: "sr-RS",
|
|
85
|
+
SvSe: "sv-SE",
|
|
86
|
+
SwKe: "sw-KE",
|
|
87
|
+
TaIn: "ta-IN",
|
|
88
|
+
ThTh: "th-TH",
|
|
89
|
+
TrTr: "tr-TR",
|
|
90
|
+
UkUa: "uk-UA",
|
|
91
|
+
UrIn: "ur-IN",
|
|
92
|
+
ViVn: "vi-VN",
|
|
93
|
+
YueCn: "yue-CN",
|
|
94
|
+
ZhCn: "zh-CN",
|
|
95
|
+
};
|
|
30
96
|
})(CreateAgentRequest || (CreateAgentRequest = {}));
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export interface UpdateAgentRequest {
|
|
8
8
|
agent_id: string;
|
|
9
|
+
/** Target a sub-account. Pass a sub-account ID to scope this request. Omit to use the master account. */
|
|
10
|
+
"X-Sub-Account-Id"?: string;
|
|
9
11
|
name?: string | null;
|
|
10
12
|
description?: string | null;
|
|
11
13
|
voiceMode?: UpdateAgentRequest.VoiceMode;
|
|
@@ -31,6 +33,8 @@ export interface UpdateAgentRequest {
|
|
|
31
33
|
interruptionSensitivity?: number | null;
|
|
32
34
|
/** When true, the agent interjects short filler words like 'uh-huh' or 'mhmm' during longer caller utterances. Set false to keep the agent silent while the caller is speaking. */
|
|
33
35
|
enableBackchannel?: boolean | null;
|
|
36
|
+
/** BCP-47 locale that drives the agent's speech recognition and pronunciation. See the enum for the full set of supported codes. */
|
|
37
|
+
language?: UpdateAgentRequest.Language;
|
|
34
38
|
}
|
|
35
39
|
export declare namespace UpdateAgentRequest {
|
|
36
40
|
const VoiceMode: {
|
|
@@ -64,4 +68,71 @@ export declare namespace UpdateAgentRequest {
|
|
|
64
68
|
readonly NoiseAndBackgroundSpeechCancellation: "noise-and-background-speech-cancellation";
|
|
65
69
|
};
|
|
66
70
|
type DenoisingMode = (typeof DenoisingMode)[keyof typeof DenoisingMode];
|
|
71
|
+
/** BCP-47 locale that drives the agent's speech recognition and pronunciation. See the enum for the full set of supported codes. */
|
|
72
|
+
const Language: {
|
|
73
|
+
readonly AfZa: "af-ZA";
|
|
74
|
+
readonly ArSa: "ar-SA";
|
|
75
|
+
readonly AzAz: "az-AZ";
|
|
76
|
+
readonly BgBg: "bg-BG";
|
|
77
|
+
readonly BsBa: "bs-BA";
|
|
78
|
+
readonly CaEs: "ca-ES";
|
|
79
|
+
readonly CsCz: "cs-CZ";
|
|
80
|
+
readonly CyGb: "cy-GB";
|
|
81
|
+
readonly DaDk: "da-DK";
|
|
82
|
+
readonly DeDe: "de-DE";
|
|
83
|
+
readonly ElGr: "el-GR";
|
|
84
|
+
readonly EnAu: "en-AU";
|
|
85
|
+
readonly EnGb: "en-GB";
|
|
86
|
+
readonly EnIn: "en-IN";
|
|
87
|
+
readonly EnNz: "en-NZ";
|
|
88
|
+
readonly EnUs: "en-US";
|
|
89
|
+
readonly Es419: "es-419";
|
|
90
|
+
readonly EsEs: "es-ES";
|
|
91
|
+
readonly FaIr: "fa-IR";
|
|
92
|
+
readonly FiFi: "fi-FI";
|
|
93
|
+
readonly FilPh: "fil-PH";
|
|
94
|
+
readonly FrCa: "fr-CA";
|
|
95
|
+
readonly FrFr: "fr-FR";
|
|
96
|
+
readonly GlEs: "gl-ES";
|
|
97
|
+
readonly HeIl: "he-IL";
|
|
98
|
+
readonly HiIn: "hi-IN";
|
|
99
|
+
readonly HrHr: "hr-HR";
|
|
100
|
+
readonly HuHu: "hu-HU";
|
|
101
|
+
readonly HyAm: "hy-AM";
|
|
102
|
+
readonly IdId: "id-ID";
|
|
103
|
+
readonly IsIs: "is-IS";
|
|
104
|
+
readonly ItIt: "it-IT";
|
|
105
|
+
readonly JaJp: "ja-JP";
|
|
106
|
+
readonly KkKz: "kk-KZ";
|
|
107
|
+
readonly KnIn: "kn-IN";
|
|
108
|
+
readonly KoKr: "ko-KR";
|
|
109
|
+
readonly LtLt: "lt-LT";
|
|
110
|
+
readonly LvLv: "lv-LV";
|
|
111
|
+
readonly MkMk: "mk-MK";
|
|
112
|
+
readonly MrIn: "mr-IN";
|
|
113
|
+
readonly MsMy: "ms-MY";
|
|
114
|
+
readonly NeNp: "ne-NP";
|
|
115
|
+
readonly NlBe: "nl-BE";
|
|
116
|
+
readonly NlNl: "nl-NL";
|
|
117
|
+
readonly NoNo: "no-NO";
|
|
118
|
+
readonly PlPl: "pl-PL";
|
|
119
|
+
readonly PtBr: "pt-BR";
|
|
120
|
+
readonly PtPt: "pt-PT";
|
|
121
|
+
readonly RoRo: "ro-RO";
|
|
122
|
+
readonly RuRu: "ru-RU";
|
|
123
|
+
readonly SkSk: "sk-SK";
|
|
124
|
+
readonly SlSi: "sl-SI";
|
|
125
|
+
readonly SrRs: "sr-RS";
|
|
126
|
+
readonly SvSe: "sv-SE";
|
|
127
|
+
readonly SwKe: "sw-KE";
|
|
128
|
+
readonly TaIn: "ta-IN";
|
|
129
|
+
readonly ThTh: "th-TH";
|
|
130
|
+
readonly TrTr: "tr-TR";
|
|
131
|
+
readonly UkUa: "uk-UA";
|
|
132
|
+
readonly UrIn: "ur-IN";
|
|
133
|
+
readonly ViVn: "vi-VN";
|
|
134
|
+
readonly YueCn: "yue-CN";
|
|
135
|
+
readonly ZhCn: "zh-CN";
|
|
136
|
+
};
|
|
137
|
+
type Language = (typeof Language)[keyof typeof Language];
|
|
67
138
|
}
|