agentphone 1.0.10 → 1.0.12

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.
Files changed (112) hide show
  1. package/README.md +10 -10
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/Client.d.ts +3 -3
  4. package/dist/cjs/Client.js +21 -21
  5. package/dist/cjs/api/resources/agents/client/Client.d.ts +1 -1
  6. package/dist/cjs/api/resources/agents/client/Client.js +1 -1
  7. package/dist/cjs/api/resources/agents/client/requests/CreateAgentRequest.d.ts +75 -0
  8. package/dist/cjs/api/resources/agents/client/requests/CreateAgentRequest.js +66 -0
  9. package/dist/cjs/api/resources/agents/client/requests/UpdateAgentRequest.d.ts +75 -0
  10. package/dist/cjs/api/resources/agents/client/requests/UpdateAgentRequest.js +66 -0
  11. package/dist/cjs/api/resources/calls/client/Client.d.ts +4 -4
  12. package/dist/cjs/api/resources/calls/client/Client.js +4 -4
  13. package/dist/cjs/api/resources/conversations/client/Client.d.ts +39 -1
  14. package/dist/cjs/api/resources/conversations/client/Client.js +114 -1
  15. package/dist/cjs/api/resources/conversations/client/requests/RemoveChatBackgroundV1ConversationsConversationIdBackgroundDeleteRequest.d.ts +9 -0
  16. package/dist/cjs/api/resources/conversations/client/requests/SetBackgroundRequest.d.ts +12 -0
  17. package/dist/cjs/api/resources/conversations/client/requests/index.d.ts +2 -0
  18. package/dist/cjs/api/resources/index.d.ts +2 -2
  19. package/dist/cjs/api/resources/index.js +3 -3
  20. package/dist/cjs/api/resources/messages/client/requests/SendMessageRequest.d.ts +2 -0
  21. package/dist/cjs/api/resources/messages/client/requests/SendReactionRequest.d.ts +2 -14
  22. package/dist/cjs/api/resources/messages/client/requests/SendReactionRequest.js +0 -13
  23. package/dist/cjs/api/resources/messages/client/requests/index.d.ts +1 -1
  24. package/dist/cjs/api/resources/messages/client/requests/index.js +1 -3
  25. package/dist/cjs/api/resources/registration/client/Client.d.ts +61 -0
  26. package/dist/cjs/api/resources/{agentSignup → registration}/client/Client.js +44 -69
  27. package/dist/cjs/api/resources/registration/client/requests/RegistrationRequest.d.ts +61 -0
  28. package/dist/cjs/api/resources/registration/client/requests/RegistrationRequest.js +3 -0
  29. package/dist/cjs/api/resources/registration/client/requests/index.d.ts +1 -0
  30. package/dist/cjs/api/types/AgentResponse.d.ts +8 -0
  31. package/dist/cjs/api/{resources/agentSignup/client/requests → types}/AgentSignUpRequest.d.ts +0 -6
  32. package/dist/cjs/api/types/AgentSignUpRequest.js +3 -0
  33. package/dist/cjs/api/types/AgentVerifyRequest.d.ts +4 -0
  34. package/dist/cjs/api/types/AgentVerifyRequest.js +3 -0
  35. package/dist/cjs/api/types/FieldWarning.d.ts +6 -0
  36. package/dist/cjs/api/types/FieldWarning.js +3 -0
  37. package/dist/cjs/api/types/RegistrationResponse.d.ts +8 -0
  38. package/dist/cjs/api/types/RegistrationResponse.js +3 -0
  39. package/dist/cjs/api/types/SendMessageResponse.d.ts +2 -0
  40. package/dist/cjs/api/types/SetBackgroundResponse.d.ts +8 -0
  41. package/dist/cjs/api/types/SetBackgroundResponse.js +3 -0
  42. package/dist/cjs/api/types/index.d.ts +5 -0
  43. package/dist/cjs/api/types/index.js +5 -0
  44. package/dist/cjs/version.d.ts +1 -1
  45. package/dist/cjs/version.js +1 -1
  46. package/dist/esm/BaseClient.mjs +2 -2
  47. package/dist/esm/Client.d.mts +3 -3
  48. package/dist/esm/Client.mjs +5 -5
  49. package/dist/esm/api/resources/agents/client/Client.d.mts +1 -1
  50. package/dist/esm/api/resources/agents/client/Client.mjs +1 -1
  51. package/dist/esm/api/resources/agents/client/requests/CreateAgentRequest.d.mts +75 -0
  52. package/dist/esm/api/resources/agents/client/requests/CreateAgentRequest.mjs +66 -0
  53. package/dist/esm/api/resources/agents/client/requests/UpdateAgentRequest.d.mts +75 -0
  54. package/dist/esm/api/resources/agents/client/requests/UpdateAgentRequest.mjs +66 -0
  55. package/dist/esm/api/resources/calls/client/Client.d.mts +4 -4
  56. package/dist/esm/api/resources/calls/client/Client.mjs +4 -4
  57. package/dist/esm/api/resources/conversations/client/Client.d.mts +39 -1
  58. package/dist/esm/api/resources/conversations/client/Client.mjs +114 -1
  59. package/dist/esm/api/resources/conversations/client/requests/RemoveChatBackgroundV1ConversationsConversationIdBackgroundDeleteRequest.d.mts +9 -0
  60. package/dist/esm/api/resources/conversations/client/requests/SetBackgroundRequest.d.mts +12 -0
  61. package/dist/esm/api/resources/conversations/client/requests/index.d.mts +2 -0
  62. package/dist/esm/api/resources/index.d.mts +2 -2
  63. package/dist/esm/api/resources/index.mjs +2 -2
  64. package/dist/esm/api/resources/messages/client/requests/SendMessageRequest.d.mts +2 -0
  65. package/dist/esm/api/resources/messages/client/requests/SendReactionRequest.d.mts +2 -14
  66. package/dist/esm/api/resources/messages/client/requests/SendReactionRequest.mjs +1 -12
  67. package/dist/esm/api/resources/messages/client/requests/index.d.mts +1 -1
  68. package/dist/esm/api/resources/messages/client/requests/index.mjs +0 -1
  69. package/dist/esm/api/resources/registration/client/Client.d.mts +61 -0
  70. package/dist/esm/api/resources/registration/client/Client.mjs +108 -0
  71. package/dist/esm/api/resources/registration/client/requests/RegistrationRequest.d.mts +61 -0
  72. package/dist/esm/api/resources/registration/client/requests/RegistrationRequest.mjs +2 -0
  73. package/dist/esm/api/resources/registration/client/requests/index.d.mts +1 -0
  74. package/dist/esm/api/types/AgentResponse.d.mts +8 -0
  75. package/dist/esm/api/{resources/agentSignup/client/requests → types}/AgentSignUpRequest.d.mts +0 -6
  76. package/dist/esm/api/types/AgentSignUpRequest.mjs +2 -0
  77. package/dist/esm/api/types/AgentVerifyRequest.d.mts +4 -0
  78. package/dist/esm/api/types/AgentVerifyRequest.mjs +2 -0
  79. package/dist/esm/api/types/FieldWarning.d.mts +6 -0
  80. package/dist/esm/api/types/FieldWarning.mjs +2 -0
  81. package/dist/esm/api/types/RegistrationResponse.d.mts +8 -0
  82. package/dist/esm/api/types/RegistrationResponse.mjs +2 -0
  83. package/dist/esm/api/types/SendMessageResponse.d.mts +2 -0
  84. package/dist/esm/api/types/SetBackgroundResponse.d.mts +8 -0
  85. package/dist/esm/api/types/SetBackgroundResponse.mjs +2 -0
  86. package/dist/esm/api/types/index.d.mts +5 -0
  87. package/dist/esm/api/types/index.mjs +5 -0
  88. package/dist/esm/version.d.mts +1 -1
  89. package/dist/esm/version.mjs +1 -1
  90. package/package.json +1 -1
  91. package/reference.md +243 -144
  92. package/dist/cjs/api/resources/agentSignup/client/Client.d.ts +0 -50
  93. package/dist/cjs/api/resources/agentSignup/client/requests/AgentVerifyRequest.d.ts +0 -11
  94. package/dist/cjs/api/resources/agentSignup/client/requests/index.d.ts +0 -2
  95. package/dist/esm/api/resources/agentSignup/client/Client.d.mts +0 -50
  96. package/dist/esm/api/resources/agentSignup/client/Client.mjs +0 -133
  97. package/dist/esm/api/resources/agentSignup/client/requests/AgentVerifyRequest.d.mts +0 -11
  98. package/dist/esm/api/resources/agentSignup/client/requests/index.d.mts +0 -2
  99. /package/dist/cjs/api/resources/{agentSignup/client/requests/AgentSignUpRequest.js → conversations/client/requests/RemoveChatBackgroundV1ConversationsConversationIdBackgroundDeleteRequest.js} +0 -0
  100. /package/dist/cjs/api/resources/{agentSignup/client/requests/AgentVerifyRequest.js → conversations/client/requests/SetBackgroundRequest.js} +0 -0
  101. /package/dist/cjs/api/resources/{agentSignup → registration}/client/index.d.ts +0 -0
  102. /package/dist/cjs/api/resources/{agentSignup → registration}/client/index.js +0 -0
  103. /package/dist/cjs/api/resources/{agentSignup → registration}/client/requests/index.js +0 -0
  104. /package/dist/cjs/api/resources/{agentSignup → registration}/index.d.ts +0 -0
  105. /package/dist/cjs/api/resources/{agentSignup → registration}/index.js +0 -0
  106. /package/dist/esm/api/resources/{agentSignup/client/requests/AgentSignUpRequest.mjs → conversations/client/requests/RemoveChatBackgroundV1ConversationsConversationIdBackgroundDeleteRequest.mjs} +0 -0
  107. /package/dist/esm/api/resources/{agentSignup/client/requests/AgentVerifyRequest.mjs → conversations/client/requests/SetBackgroundRequest.mjs} +0 -0
  108. /package/dist/esm/api/resources/{agentSignup → registration}/client/index.d.mts +0 -0
  109. /package/dist/esm/api/resources/{agentSignup → registration}/client/index.mjs +0 -0
  110. /package/dist/esm/api/resources/{agentSignup → registration}/client/requests/index.mjs +0 -0
  111. /package/dist/esm/api/resources/{agentSignup → registration}/index.d.mts +0 -0
  112. /package/dist/esm/api/resources/{agentSignup → registration}/index.mjs +0 -0
@@ -0,0 +1,8 @@
1
+ export interface SetBackgroundResponse {
2
+ conversationId: string;
3
+ channel: string;
4
+ hasBackground: boolean;
5
+ backgroundId?: string | null;
6
+ backgroundVersion?: number | null;
7
+ changed: boolean;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,7 @@ 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";
21
24
  export * from "./HttpValidationError.js";
22
25
  export * from "./MessageInConversation.js";
23
26
  export * from "./MessageListResponse.js";
@@ -34,9 +37,11 @@ export * from "./PhoneNumberResponse.js";
34
37
  export * from "./PlanInfo.js";
35
38
  export * from "./PlanLimits.js";
36
39
  export * from "./ReactionInConversation.js";
40
+ export * from "./RegistrationResponse.js";
37
41
  export * from "./SendMessageResponse.js";
38
42
  export * from "./SendReactionResponse.js";
39
43
  export * from "./SendTypingResponse.js";
44
+ export * from "./SetBackgroundResponse.js";
40
45
  export * from "./UsageResponse.js";
41
46
  export * from "./UsageStats.js";
42
47
  export * from "./ValidationError.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,7 @@ __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);
37
40
  __exportStar(require("./HttpValidationError.js"), exports);
38
41
  __exportStar(require("./MessageInConversation.js"), exports);
39
42
  __exportStar(require("./MessageListResponse.js"), exports);
@@ -50,9 +53,11 @@ __exportStar(require("./PhoneNumberResponse.js"), exports);
50
53
  __exportStar(require("./PlanInfo.js"), exports);
51
54
  __exportStar(require("./PlanLimits.js"), exports);
52
55
  __exportStar(require("./ReactionInConversation.js"), exports);
56
+ __exportStar(require("./RegistrationResponse.js"), exports);
53
57
  __exportStar(require("./SendMessageResponse.js"), exports);
54
58
  __exportStar(require("./SendReactionResponse.js"), exports);
55
59
  __exportStar(require("./SendTypingResponse.js"), exports);
60
+ __exportStar(require("./SetBackgroundResponse.js"), exports);
56
61
  __exportStar(require("./UsageResponse.js"), exports);
57
62
  __exportStar(require("./UsageStats.js"), exports);
58
63
  __exportStar(require("./ValidationError.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.0.10";
1
+ export declare const SDK_VERSION = "1.0.12";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.0.10";
4
+ exports.SDK_VERSION = "1.0.12";
@@ -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",
10
- "User-Agent": "agentphone/1.0.10",
9
+ "X-Fern-SDK-Version": "1.0.12",
10
+ "User-Agent": "agentphone/1.0.12",
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);
@@ -1,4 +1,3 @@
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";
@@ -7,6 +6,7 @@ import { ContactsClient } from "./api/resources/contacts/client/Client.mjs";
7
6
  import { ConversationsClient } from "./api/resources/conversations/client/Client.mjs";
8
7
  import { MessagesClient } from "./api/resources/messages/client/Client.mjs";
9
8
  import { NumbersClient } from "./api/resources/numbers/client/Client.mjs";
9
+ import { RegistrationClient } from "./api/resources/registration/client/Client.mjs";
10
10
  import { UsageClient } from "./api/resources/usage/client/Client.mjs";
11
11
  import { WebhooksClient } from "./api/resources/webhooks/client/Client.mjs";
12
12
  import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
@@ -18,7 +18,6 @@ export declare namespace AgentPhoneClient {
18
18
  }
19
19
  export declare class AgentPhoneClient {
20
20
  protected readonly _options: NormalizedClientOptionsWithAuth<AgentPhoneClient.Options>;
21
- protected _agentSignup: AgentSignupClient | undefined;
22
21
  protected _agents: AgentsClient | undefined;
23
22
  protected _numbers: NumbersClient | undefined;
24
23
  protected _webhooks: WebhooksClient | undefined;
@@ -29,8 +28,8 @@ export declare class AgentPhoneClient {
29
28
  protected _usage: UsageClient | undefined;
30
29
  protected _messages: MessagesClient | undefined;
31
30
  protected _contactCards: ContactCardsClient | undefined;
31
+ protected _registration: RegistrationClient | undefined;
32
32
  constructor(options?: AgentPhoneClient.Options);
33
- get agentSignup(): AgentSignupClient;
34
33
  get agents(): AgentsClient;
35
34
  get numbers(): NumbersClient;
36
35
  get webhooks(): WebhooksClient;
@@ -41,4 +40,5 @@ export declare class AgentPhoneClient {
41
40
  get usage(): UsageClient;
42
41
  get messages(): MessagesClient;
43
42
  get contactCards(): ContactCardsClient;
43
+ get registration(): RegistrationClient;
44
44
  }
@@ -1,5 +1,4 @@
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";
@@ -8,6 +7,7 @@ import { ContactsClient } from "./api/resources/contacts/client/Client.mjs";
8
7
  import { ConversationsClient } from "./api/resources/conversations/client/Client.mjs";
9
8
  import { MessagesClient } from "./api/resources/messages/client/Client.mjs";
10
9
  import { NumbersClient } from "./api/resources/numbers/client/Client.mjs";
10
+ import { RegistrationClient } from "./api/resources/registration/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 { normalizeClientOptionsWithAuth } from "./BaseClient.mjs";
@@ -15,10 +15,6 @@ export class AgentPhoneClient {
15
15
  constructor(options = {}) {
16
16
  this._options = normalizeClientOptionsWithAuth(options);
17
17
  }
18
- get agentSignup() {
19
- var _a;
20
- return ((_a = this._agentSignup) !== null && _a !== void 0 ? _a : (this._agentSignup = new AgentSignupClient(this._options)));
21
- }
22
18
  get agents() {
23
19
  var _a;
24
20
  return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new AgentsClient(this._options)));
@@ -59,4 +55,8 @@ export class AgentPhoneClient {
59
55
  var _a;
60
56
  return ((_a = this._contactCards) !== null && _a !== void 0 ? _a : (this._contactCards = new ContactCardsClient(this._options)));
61
57
  }
58
+ get registration() {
59
+ var _a;
60
+ return ((_a = this._registration) !== null && _a !== void 0 ? _a : (this._registration = new RegistrationClient(this._options)));
61
+ }
62
62
  }
@@ -11,7 +11,7 @@ export declare class AgentsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<AgentsClient.Options>;
12
12
  constructor(options?: AgentsClient.Options);
13
13
  /**
14
- * Return available voices from the call provider (Retell).
14
+ * Return available voices from the configured voice provider.
15
15
  *
16
16
  * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
17
17
  *
@@ -31,7 +31,7 @@ export class AgentsClient {
31
31
  this._options = normalizeClientOptionsWithAuth(options);
32
32
  }
33
33
  /**
34
- * Return available voices from the call provider (Retell).
34
+ * Return available voices from the configured voice provider.
35
35
  *
36
36
  * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
37
37
  *
@@ -24,6 +24,14 @@ export interface CreateAgentRequest {
24
24
  denoisingMode?: CreateAgentRequest.DenoisingMode;
25
25
  /** Hang up the call after this many milliseconds of caller silence. Default 600000 (10 min). Raise for IVR/hold-music workflows; lower to fail fast on dead lines. Range 10000 (10s) to 3600000 (1 hour). */
26
26
  maxSilenceMs?: number | null;
27
+ /** Voice speed multiplier. 1.0 is normal pace; lower values slow speech (0.5 is half speed), higher values speed it up (2.0 is double). Range 0.5 to 2.0. */
28
+ voiceSpeed?: number | null;
29
+ /** How easily callers can interrupt the agent. 0 means the agent is never interrupted, 1 means the agent stops at the first sound. Default 0.8. Range 0.0 to 1.0. */
30
+ interruptionSensitivity?: number | null;
31
+ /** 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
+ enableBackchannel?: boolean | null;
33
+ /** 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. */
34
+ language?: CreateAgentRequest.Language;
27
35
  }
28
36
  export declare namespace CreateAgentRequest {
29
37
  const VoiceMode: {
@@ -57,4 +65,71 @@ export declare namespace CreateAgentRequest {
57
65
  readonly NoiseAndBackgroundSpeechCancellation: "noise-and-background-speech-cancellation";
58
66
  };
59
67
  type DenoisingMode = (typeof DenoisingMode)[keyof typeof DenoisingMode];
68
+ /** 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. */
69
+ const Language: {
70
+ readonly AfZa: "af-ZA";
71
+ readonly ArSa: "ar-SA";
72
+ readonly AzAz: "az-AZ";
73
+ readonly BgBg: "bg-BG";
74
+ readonly BsBa: "bs-BA";
75
+ readonly CaEs: "ca-ES";
76
+ readonly CsCz: "cs-CZ";
77
+ readonly CyGb: "cy-GB";
78
+ readonly DaDk: "da-DK";
79
+ readonly DeDe: "de-DE";
80
+ readonly ElGr: "el-GR";
81
+ readonly EnAu: "en-AU";
82
+ readonly EnGb: "en-GB";
83
+ readonly EnIn: "en-IN";
84
+ readonly EnNz: "en-NZ";
85
+ readonly EnUs: "en-US";
86
+ readonly Es419: "es-419";
87
+ readonly EsEs: "es-ES";
88
+ readonly FaIr: "fa-IR";
89
+ readonly FiFi: "fi-FI";
90
+ readonly FilPh: "fil-PH";
91
+ readonly FrCa: "fr-CA";
92
+ readonly FrFr: "fr-FR";
93
+ readonly GlEs: "gl-ES";
94
+ readonly HeIl: "he-IL";
95
+ readonly HiIn: "hi-IN";
96
+ readonly HrHr: "hr-HR";
97
+ readonly HuHu: "hu-HU";
98
+ readonly HyAm: "hy-AM";
99
+ readonly IdId: "id-ID";
100
+ readonly IsIs: "is-IS";
101
+ readonly ItIt: "it-IT";
102
+ readonly JaJp: "ja-JP";
103
+ readonly KkKz: "kk-KZ";
104
+ readonly KnIn: "kn-IN";
105
+ readonly KoKr: "ko-KR";
106
+ readonly LtLt: "lt-LT";
107
+ readonly LvLv: "lv-LV";
108
+ readonly MkMk: "mk-MK";
109
+ readonly MrIn: "mr-IN";
110
+ readonly MsMy: "ms-MY";
111
+ readonly NeNp: "ne-NP";
112
+ readonly NlBe: "nl-BE";
113
+ readonly NlNl: "nl-NL";
114
+ readonly NoNo: "no-NO";
115
+ readonly PlPl: "pl-PL";
116
+ readonly PtBr: "pt-BR";
117
+ readonly PtPt: "pt-PT";
118
+ readonly RoRo: "ro-RO";
119
+ readonly RuRu: "ru-RU";
120
+ readonly SkSk: "sk-SK";
121
+ readonly SlSi: "sl-SI";
122
+ readonly SrRs: "sr-RS";
123
+ readonly SvSe: "sv-SE";
124
+ readonly SwKe: "sw-KE";
125
+ readonly TaIn: "ta-IN";
126
+ readonly ThTh: "th-TH";
127
+ readonly TrTr: "tr-TR";
128
+ readonly UkUa: "uk-UA";
129
+ readonly UrIn: "ur-IN";
130
+ readonly ViVn: "vi-VN";
131
+ readonly YueCn: "yue-CN";
132
+ readonly ZhCn: "zh-CN";
133
+ };
134
+ type Language = (typeof Language)[keyof typeof Language];
60
135
  }
@@ -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 = {}));
@@ -25,6 +25,14 @@ export interface UpdateAgentRequest {
25
25
  denoisingMode?: UpdateAgentRequest.DenoisingMode;
26
26
  /** Hang up the call after this many milliseconds of caller silence. Default 600000 (10 min). Raise for IVR/hold-music workflows; lower to fail fast on dead lines. Range 10000 (10s) to 3600000 (1 hour). */
27
27
  maxSilenceMs?: number | null;
28
+ /** Voice speed multiplier. 1.0 is normal pace; lower slows speech (0.5 is half speed), higher speeds it up (2.0 is double). Range 0.5 to 2.0. */
29
+ voiceSpeed?: number | null;
30
+ /** How easily callers can interrupt the agent. 0 means the agent is never interrupted, 1 means the agent stops at the first sound. Default 0.8. Range 0.0 to 1.0. */
31
+ interruptionSensitivity?: number | null;
32
+ /** 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
+ enableBackchannel?: boolean | null;
34
+ /** BCP-47 locale that drives the agent's speech recognition and pronunciation. See the enum for the full set of supported codes. */
35
+ language?: UpdateAgentRequest.Language;
28
36
  }
29
37
  export declare namespace UpdateAgentRequest {
30
38
  const VoiceMode: {
@@ -58,4 +66,71 @@ export declare namespace UpdateAgentRequest {
58
66
  readonly NoiseAndBackgroundSpeechCancellation: "noise-and-background-speech-cancellation";
59
67
  };
60
68
  type DenoisingMode = (typeof DenoisingMode)[keyof typeof DenoisingMode];
69
+ /** BCP-47 locale that drives the agent's speech recognition and pronunciation. See the enum for the full set of supported codes. */
70
+ const Language: {
71
+ readonly AfZa: "af-ZA";
72
+ readonly ArSa: "ar-SA";
73
+ readonly AzAz: "az-AZ";
74
+ readonly BgBg: "bg-BG";
75
+ readonly BsBa: "bs-BA";
76
+ readonly CaEs: "ca-ES";
77
+ readonly CsCz: "cs-CZ";
78
+ readonly CyGb: "cy-GB";
79
+ readonly DaDk: "da-DK";
80
+ readonly DeDe: "de-DE";
81
+ readonly ElGr: "el-GR";
82
+ readonly EnAu: "en-AU";
83
+ readonly EnGb: "en-GB";
84
+ readonly EnIn: "en-IN";
85
+ readonly EnNz: "en-NZ";
86
+ readonly EnUs: "en-US";
87
+ readonly Es419: "es-419";
88
+ readonly EsEs: "es-ES";
89
+ readonly FaIr: "fa-IR";
90
+ readonly FiFi: "fi-FI";
91
+ readonly FilPh: "fil-PH";
92
+ readonly FrCa: "fr-CA";
93
+ readonly FrFr: "fr-FR";
94
+ readonly GlEs: "gl-ES";
95
+ readonly HeIl: "he-IL";
96
+ readonly HiIn: "hi-IN";
97
+ readonly HrHr: "hr-HR";
98
+ readonly HuHu: "hu-HU";
99
+ readonly HyAm: "hy-AM";
100
+ readonly IdId: "id-ID";
101
+ readonly IsIs: "is-IS";
102
+ readonly ItIt: "it-IT";
103
+ readonly JaJp: "ja-JP";
104
+ readonly KkKz: "kk-KZ";
105
+ readonly KnIn: "kn-IN";
106
+ readonly KoKr: "ko-KR";
107
+ readonly LtLt: "lt-LT";
108
+ readonly LvLv: "lv-LV";
109
+ readonly MkMk: "mk-MK";
110
+ readonly MrIn: "mr-IN";
111
+ readonly MsMy: "ms-MY";
112
+ readonly NeNp: "ne-NP";
113
+ readonly NlBe: "nl-BE";
114
+ readonly NlNl: "nl-NL";
115
+ readonly NoNo: "no-NO";
116
+ readonly PlPl: "pl-PL";
117
+ readonly PtBr: "pt-BR";
118
+ readonly PtPt: "pt-PT";
119
+ readonly RoRo: "ro-RO";
120
+ readonly RuRu: "ru-RU";
121
+ readonly SkSk: "sk-SK";
122
+ readonly SlSi: "sl-SI";
123
+ readonly SrRs: "sr-RS";
124
+ readonly SvSe: "sv-SE";
125
+ readonly SwKe: "sw-KE";
126
+ readonly TaIn: "ta-IN";
127
+ readonly ThTh: "th-TH";
128
+ readonly TrTr: "tr-TR";
129
+ readonly UkUa: "uk-UA";
130
+ readonly UrIn: "ur-IN";
131
+ readonly ViVn: "vi-VN";
132
+ readonly YueCn: "yue-CN";
133
+ readonly ZhCn: "zh-CN";
134
+ };
135
+ type Language = (typeof Language)[keyof typeof Language];
61
136
  }
@@ -27,4 +27,70 @@ export var UpdateAgentRequest;
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. See the enum for the full set of supported codes. */
31
+ UpdateAgentRequest.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
  })(UpdateAgentRequest || (UpdateAgentRequest = {}));
@@ -93,10 +93,10 @@ export declare class CallsClient {
93
93
  /**
94
94
  * Terminate an ongoing call.
95
95
  *
96
- * Works for both hosted-mode and webhook-mode calls. The call_ended
97
- * webhook from Retell updates status/endedAt asynchronously, so this
98
- * endpoint returns the current call as soon as the stop request is
99
- * accepted by Retell.
96
+ * Works for both hosted-mode and webhook-mode calls. The call_ended
97
+ * webhook from the voice provider updates status/endedAt asynchronously,
98
+ * so this endpoint returns the current call as soon as the stop request
99
+ * is accepted upstream.
100
100
  *
101
101
  * @param {AgentPhone.EndCallV1CallsCallIdEndPostRequest} request
102
102
  * @param {CallsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -258,10 +258,10 @@ export class CallsClient {
258
258
  /**
259
259
  * Terminate an ongoing call.
260
260
  *
261
- * Works for both hosted-mode and webhook-mode calls. The call_ended
262
- * webhook from Retell updates status/endedAt asynchronously, so this
263
- * endpoint returns the current call as soon as the stop request is
264
- * accepted by Retell.
261
+ * Works for both hosted-mode and webhook-mode calls. The call_ended
262
+ * webhook from the voice provider updates status/endedAt asynchronously,
263
+ * so this endpoint returns the current call as soon as the stop request
264
+ * is accepted upstream.
265
265
  *
266
266
  * @param {AgentPhone.EndCallV1CallsCallIdEndPostRequest} request
267
267
  * @param {CallsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -14,7 +14,7 @@ export declare class ConversationsClient {
14
14
  * List all conversations for this account.
15
15
  *
16
16
  * Sorted by most recent activity (lastMessageAt desc).
17
- * Also includes conversations on shared lines owned by this account.
17
+ * Sorted by most recent activity.
18
18
  *
19
19
  * @param {AgentPhone.ListConversationsV1ConversationsGetRequest} request
20
20
  * @param {ConversationsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -99,4 +99,42 @@ export declare class ConversationsClient {
99
99
  */
100
100
  sendTypingIndicator(request: AgentPhone.SendTypingIndicatorV1ConversationsConversationIdTypingPostRequest, requestOptions?: ConversationsClient.RequestOptions): core.HttpResponsePromise<AgentPhone.SendTypingResponse>;
101
101
  private __sendTypingIndicator;
102
+ /**
103
+ * Set a custom wallpaper for the chat (iMessage only).
104
+ *
105
+ * Customer sends `image_url`; we fetch (≤10MB, JPEG/PNG/GIF/WebP/HEIC),
106
+ * validate, and forward as multipart to the iMessage provider. Idempotent —
107
+ * re-setting replaces. Recipients on iOS < 18 fall back to the default
108
+ * silently.
109
+ *
110
+ * @param {AgentPhone.SetBackgroundRequest} request
111
+ * @param {ConversationsClient.RequestOptions} requestOptions - Request-specific configuration.
112
+ *
113
+ * @throws {@link AgentPhone.UnprocessableEntityError}
114
+ *
115
+ * @example
116
+ * await client.conversations.setChatBackground({
117
+ * conversation_id: "conversation_id",
118
+ * image_url: "https://example.com/wallpaper.jpg"
119
+ * })
120
+ */
121
+ setChatBackground(request: AgentPhone.SetBackgroundRequest, requestOptions?: ConversationsClient.RequestOptions): core.HttpResponsePromise<AgentPhone.SetBackgroundResponse>;
122
+ private __setChatBackground;
123
+ /**
124
+ * Clear the custom wallpaper for the chat (iMessage only).
125
+ *
126
+ * Idempotent: deleting a default-background chat returns 204 (no-op).
127
+ *
128
+ * @param {AgentPhone.RemoveChatBackgroundV1ConversationsConversationIdBackgroundDeleteRequest} request
129
+ * @param {ConversationsClient.RequestOptions} requestOptions - Request-specific configuration.
130
+ *
131
+ * @throws {@link AgentPhone.UnprocessableEntityError}
132
+ *
133
+ * @example
134
+ * await client.conversations.removeChatBackground({
135
+ * conversation_id: "conversation_id"
136
+ * })
137
+ */
138
+ removeChatBackground(request: AgentPhone.RemoveChatBackgroundV1ConversationsConversationIdBackgroundDeleteRequest, requestOptions?: ConversationsClient.RequestOptions): core.HttpResponsePromise<void>;
139
+ private __removeChatBackground;
102
140
  }