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.
Files changed (164) hide show
  1. package/README.md +10 -10
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/Client.d.ts +6 -6
  4. package/dist/cjs/Client.js +26 -26
  5. package/dist/cjs/api/resources/agents/client/Client.js +11 -11
  6. package/dist/cjs/api/resources/agents/client/requests/CreateAgentRequest.d.ts +71 -0
  7. package/dist/cjs/api/resources/agents/client/requests/CreateAgentRequest.js +66 -0
  8. package/dist/cjs/api/resources/agents/client/requests/DeleteAgentV1AgentsAgentIdDeleteRequest.d.ts +2 -0
  9. package/dist/cjs/api/resources/agents/client/requests/GetAgentV1AgentsAgentIdGetRequest.d.ts +2 -0
  10. package/dist/cjs/api/resources/agents/client/requests/ListAgentsV1AgentsGetRequest.d.ts +2 -1
  11. package/dist/cjs/api/resources/agents/client/requests/UpdateAgentRequest.d.ts +71 -0
  12. package/dist/cjs/api/resources/agents/client/requests/UpdateAgentRequest.js +66 -0
  13. package/dist/cjs/api/resources/calls/client/Client.js +16 -5
  14. package/dist/cjs/api/resources/calls/client/requests/CreateOutboundCallRequest.d.ts +2 -0
  15. package/dist/cjs/api/resources/calls/client/requests/ListCallsV1CallsGetRequest.d.ts +2 -1
  16. package/dist/cjs/api/resources/contacts/client/Client.js +2 -3
  17. package/dist/cjs/api/resources/contacts/client/requests/ListContactsV1ContactsGetRequest.d.ts +2 -1
  18. package/dist/cjs/api/resources/conversations/client/Client.d.ts +5 -3
  19. package/dist/cjs/api/resources/conversations/client/Client.js +7 -6
  20. package/dist/cjs/api/resources/conversations/client/requests/ListConversationsV1ConversationsGetRequest.d.ts +2 -1
  21. package/dist/cjs/api/resources/index.d.ts +4 -4
  22. package/dist/cjs/api/resources/index.js +5 -5
  23. package/dist/cjs/api/resources/numbers/client/Client.js +18 -7
  24. package/dist/cjs/api/resources/numbers/client/requests/CreateNumberRequest.d.ts +2 -0
  25. package/dist/cjs/api/resources/numbers/client/requests/DeleteNumberV1NumbersNumberIdDeleteRequest.d.ts +2 -0
  26. package/dist/cjs/api/resources/numbers/client/requests/ListNumbersV1NumbersGetRequest.d.ts +2 -1
  27. package/dist/cjs/api/resources/registration/client/Client.d.ts +61 -0
  28. package/dist/cjs/api/resources/{agentSignup → registration}/client/Client.js +44 -69
  29. package/dist/cjs/api/resources/registration/client/requests/RegistrationRequest.d.ts +61 -0
  30. package/dist/cjs/api/resources/registration/client/requests/index.d.ts +1 -0
  31. package/dist/cjs/api/resources/subAccounts/client/Client.d.ts +61 -0
  32. package/dist/cjs/api/resources/{integrations → subAccounts}/client/Client.js +99 -106
  33. package/dist/cjs/api/resources/subAccounts/client/requests/CreateSubAccountRequest.d.ts +9 -0
  34. package/dist/cjs/api/resources/subAccounts/client/requests/DeleteSubAccountV1SubAccountsSubAccountIdDeleteRequest.d.ts +9 -0
  35. package/dist/cjs/api/resources/subAccounts/client/requests/UpdateSubAccountRequest.d.ts +11 -0
  36. package/dist/cjs/api/resources/subAccounts/client/requests/UpdateSubAccountRequest.js +3 -0
  37. package/dist/cjs/api/resources/subAccounts/client/requests/index.d.ts +3 -0
  38. package/dist/cjs/api/resources/webhooks/client/Client.d.ts +7 -4
  39. package/dist/cjs/api/resources/webhooks/client/Client.js +14 -9
  40. package/dist/cjs/api/resources/webhooks/client/requests/CreateOrUpdateWebhookV1WebhooksPostRequest.d.ts +14 -0
  41. package/dist/cjs/api/resources/webhooks/client/requests/CreateOrUpdateWebhookV1WebhooksPostRequest.js +3 -0
  42. package/dist/cjs/api/resources/webhooks/client/requests/GetWebhookV1WebhooksGetRequest.d.ts +8 -0
  43. package/dist/cjs/api/resources/webhooks/client/requests/GetWebhookV1WebhooksGetRequest.js +3 -0
  44. package/dist/cjs/api/resources/webhooks/client/requests/index.d.ts +2 -0
  45. package/dist/cjs/api/types/AgentResponse.d.ts +2 -0
  46. package/dist/cjs/api/{resources/agentSignup/client/requests → types}/AgentSignUpRequest.d.ts +0 -6
  47. package/dist/cjs/api/types/AgentSignUpRequest.js +3 -0
  48. package/dist/cjs/api/types/AgentVerifyRequest.d.ts +4 -0
  49. package/dist/cjs/api/types/AgentVerifyRequest.js +3 -0
  50. package/dist/cjs/api/types/AppRoutesConversationsConversationSummary.d.ts +6 -0
  51. package/dist/cjs/api/types/ConversationDetail.d.ts +5 -0
  52. package/dist/cjs/api/types/FieldWarning.d.ts +6 -0
  53. package/dist/cjs/api/types/FieldWarning.js +3 -0
  54. package/dist/cjs/api/types/GroupParticipant.d.ts +7 -0
  55. package/dist/cjs/api/types/GroupParticipant.js +3 -0
  56. package/dist/cjs/api/types/MessageInConversation.d.ts +1 -0
  57. package/dist/cjs/api/types/RegistrationResponse.d.ts +8 -0
  58. package/dist/cjs/api/types/RegistrationResponse.js +3 -0
  59. package/dist/cjs/api/types/index.d.ts +5 -0
  60. package/dist/cjs/api/types/index.js +5 -0
  61. package/dist/cjs/version.d.ts +1 -1
  62. package/dist/cjs/version.js +1 -1
  63. package/dist/esm/BaseClient.mjs +2 -2
  64. package/dist/esm/Client.d.mts +6 -6
  65. package/dist/esm/Client.mjs +10 -10
  66. package/dist/esm/api/resources/agents/client/Client.mjs +12 -12
  67. package/dist/esm/api/resources/agents/client/requests/CreateAgentRequest.d.mts +71 -0
  68. package/dist/esm/api/resources/agents/client/requests/CreateAgentRequest.mjs +66 -0
  69. package/dist/esm/api/resources/agents/client/requests/DeleteAgentV1AgentsAgentIdDeleteRequest.d.mts +2 -0
  70. package/dist/esm/api/resources/agents/client/requests/GetAgentV1AgentsAgentIdGetRequest.d.mts +2 -0
  71. package/dist/esm/api/resources/agents/client/requests/ListAgentsV1AgentsGetRequest.d.mts +2 -1
  72. package/dist/esm/api/resources/agents/client/requests/UpdateAgentRequest.d.mts +71 -0
  73. package/dist/esm/api/resources/agents/client/requests/UpdateAgentRequest.mjs +66 -0
  74. package/dist/esm/api/resources/calls/client/Client.mjs +17 -6
  75. package/dist/esm/api/resources/calls/client/requests/CreateOutboundCallRequest.d.mts +2 -0
  76. package/dist/esm/api/resources/calls/client/requests/ListCallsV1CallsGetRequest.d.mts +2 -1
  77. package/dist/esm/api/resources/contacts/client/Client.mjs +3 -4
  78. package/dist/esm/api/resources/contacts/client/requests/ListContactsV1ContactsGetRequest.d.mts +2 -1
  79. package/dist/esm/api/resources/conversations/client/Client.d.mts +5 -3
  80. package/dist/esm/api/resources/conversations/client/Client.mjs +8 -7
  81. package/dist/esm/api/resources/conversations/client/requests/ListConversationsV1ConversationsGetRequest.d.mts +2 -1
  82. package/dist/esm/api/resources/index.d.mts +4 -4
  83. package/dist/esm/api/resources/index.mjs +4 -4
  84. package/dist/esm/api/resources/numbers/client/Client.mjs +19 -8
  85. package/dist/esm/api/resources/numbers/client/requests/CreateNumberRequest.d.mts +2 -0
  86. package/dist/esm/api/resources/numbers/client/requests/DeleteNumberV1NumbersNumberIdDeleteRequest.d.mts +2 -0
  87. package/dist/esm/api/resources/numbers/client/requests/ListNumbersV1NumbersGetRequest.d.mts +2 -1
  88. package/dist/esm/api/resources/registration/client/Client.d.mts +61 -0
  89. package/dist/esm/api/resources/registration/client/Client.mjs +108 -0
  90. package/dist/esm/api/resources/registration/client/requests/RegistrationRequest.d.mts +61 -0
  91. package/dist/esm/api/resources/registration/client/requests/index.d.mts +1 -0
  92. package/dist/esm/api/resources/subAccounts/client/Client.d.mts +61 -0
  93. package/dist/esm/api/resources/{integrations → subAccounts}/client/Client.mjs +97 -104
  94. package/dist/esm/api/resources/subAccounts/client/requests/CreateSubAccountRequest.d.mts +9 -0
  95. package/dist/esm/api/resources/subAccounts/client/requests/DeleteSubAccountV1SubAccountsSubAccountIdDeleteRequest.d.mts +9 -0
  96. package/dist/esm/api/resources/subAccounts/client/requests/UpdateSubAccountRequest.d.mts +11 -0
  97. package/dist/esm/api/resources/subAccounts/client/requests/UpdateSubAccountRequest.mjs +2 -0
  98. package/dist/esm/api/resources/subAccounts/client/requests/index.d.mts +3 -0
  99. package/dist/esm/api/resources/webhooks/client/Client.d.mts +7 -4
  100. package/dist/esm/api/resources/webhooks/client/Client.mjs +15 -10
  101. package/dist/esm/api/resources/webhooks/client/requests/CreateOrUpdateWebhookV1WebhooksPostRequest.d.mts +14 -0
  102. package/dist/esm/api/resources/webhooks/client/requests/CreateOrUpdateWebhookV1WebhooksPostRequest.mjs +2 -0
  103. package/dist/esm/api/resources/webhooks/client/requests/GetWebhookV1WebhooksGetRequest.d.mts +8 -0
  104. package/dist/esm/api/resources/webhooks/client/requests/GetWebhookV1WebhooksGetRequest.mjs +2 -0
  105. package/dist/esm/api/resources/webhooks/client/requests/index.d.mts +2 -0
  106. package/dist/esm/api/types/AgentResponse.d.mts +2 -0
  107. package/dist/esm/api/{resources/agentSignup/client/requests → types}/AgentSignUpRequest.d.mts +0 -6
  108. package/dist/esm/api/types/AgentSignUpRequest.mjs +2 -0
  109. package/dist/esm/api/types/AgentVerifyRequest.d.mts +4 -0
  110. package/dist/esm/api/types/AgentVerifyRequest.mjs +2 -0
  111. package/dist/esm/api/types/AppRoutesConversationsConversationSummary.d.mts +6 -0
  112. package/dist/esm/api/types/ConversationDetail.d.mts +5 -0
  113. package/dist/esm/api/types/FieldWarning.d.mts +6 -0
  114. package/dist/esm/api/types/FieldWarning.mjs +2 -0
  115. package/dist/esm/api/types/GroupParticipant.d.mts +7 -0
  116. package/dist/esm/api/types/GroupParticipant.mjs +2 -0
  117. package/dist/esm/api/types/MessageInConversation.d.mts +1 -0
  118. package/dist/esm/api/types/RegistrationResponse.d.mts +8 -0
  119. package/dist/esm/api/types/RegistrationResponse.mjs +2 -0
  120. package/dist/esm/api/types/index.d.mts +5 -0
  121. package/dist/esm/api/types/index.mjs +5 -0
  122. package/dist/esm/version.d.mts +1 -1
  123. package/dist/esm/version.mjs +1 -1
  124. package/package.json +1 -1
  125. package/reference.md +188 -277
  126. package/dist/cjs/api/resources/agentSignup/client/Client.d.ts +0 -50
  127. package/dist/cjs/api/resources/agentSignup/client/requests/AgentVerifyRequest.d.ts +0 -11
  128. package/dist/cjs/api/resources/agentSignup/client/requests/index.d.ts +0 -2
  129. package/dist/cjs/api/resources/integrations/client/Client.d.ts +0 -64
  130. package/dist/cjs/api/resources/integrations/client/requests/SupabaseConnectIntegrationsSupabaseConnectGetRequest.d.ts +0 -9
  131. package/dist/cjs/api/resources/integrations/client/requests/index.d.ts +0 -1
  132. package/dist/esm/api/resources/agentSignup/client/Client.d.mts +0 -50
  133. package/dist/esm/api/resources/agentSignup/client/Client.mjs +0 -133
  134. package/dist/esm/api/resources/agentSignup/client/requests/AgentVerifyRequest.d.mts +0 -11
  135. package/dist/esm/api/resources/agentSignup/client/requests/index.d.mts +0 -2
  136. package/dist/esm/api/resources/integrations/client/Client.d.mts +0 -64
  137. package/dist/esm/api/resources/integrations/client/requests/SupabaseConnectIntegrationsSupabaseConnectGetRequest.d.mts +0 -9
  138. package/dist/esm/api/resources/integrations/client/requests/index.d.mts +0 -1
  139. /package/dist/cjs/api/resources/{agentSignup → registration}/client/index.d.ts +0 -0
  140. /package/dist/cjs/api/resources/{agentSignup → registration}/client/index.js +0 -0
  141. /package/dist/cjs/api/resources/{agentSignup/client/requests/AgentSignUpRequest.js → registration/client/requests/RegistrationRequest.js} +0 -0
  142. /package/dist/cjs/api/resources/{agentSignup → registration}/client/requests/index.js +0 -0
  143. /package/dist/cjs/api/resources/{agentSignup → registration}/index.d.ts +0 -0
  144. /package/dist/cjs/api/resources/{agentSignup → registration}/index.js +0 -0
  145. /package/dist/cjs/api/resources/{integrations → subAccounts}/client/index.d.ts +0 -0
  146. /package/dist/cjs/api/resources/{integrations → subAccounts}/client/index.js +0 -0
  147. /package/dist/cjs/api/resources/{agentSignup/client/requests/AgentVerifyRequest.js → subAccounts/client/requests/CreateSubAccountRequest.js} +0 -0
  148. /package/dist/cjs/api/resources/{integrations/client/requests/SupabaseConnectIntegrationsSupabaseConnectGetRequest.js → subAccounts/client/requests/DeleteSubAccountV1SubAccountsSubAccountIdDeleteRequest.js} +0 -0
  149. /package/dist/cjs/api/resources/{integrations → subAccounts}/client/requests/index.js +0 -0
  150. /package/dist/cjs/api/resources/{integrations → subAccounts}/index.d.ts +0 -0
  151. /package/dist/cjs/api/resources/{integrations → subAccounts}/index.js +0 -0
  152. /package/dist/esm/api/resources/{agentSignup → registration}/client/index.d.mts +0 -0
  153. /package/dist/esm/api/resources/{agentSignup → registration}/client/index.mjs +0 -0
  154. /package/dist/esm/api/resources/{agentSignup/client/requests/AgentSignUpRequest.mjs → registration/client/requests/RegistrationRequest.mjs} +0 -0
  155. /package/dist/esm/api/resources/{agentSignup → registration}/client/requests/index.mjs +0 -0
  156. /package/dist/esm/api/resources/{agentSignup → registration}/index.d.mts +0 -0
  157. /package/dist/esm/api/resources/{agentSignup → registration}/index.mjs +0 -0
  158. /package/dist/esm/api/resources/{integrations → subAccounts}/client/index.d.mts +0 -0
  159. /package/dist/esm/api/resources/{integrations → subAccounts}/client/index.mjs +0 -0
  160. /package/dist/esm/api/resources/{agentSignup/client/requests/AgentVerifyRequest.mjs → subAccounts/client/requests/CreateSubAccountRequest.mjs} +0 -0
  161. /package/dist/esm/api/resources/{integrations/client/requests/SupabaseConnectIntegrationsSupabaseConnectGetRequest.mjs → subAccounts/client/requests/DeleteSubAccountV1SubAccountsSubAccountIdDeleteRequest.mjs} +0 -0
  162. /package/dist/esm/api/resources/{integrations → subAccounts}/client/requests/index.mjs +0 -0
  163. /package/dist/esm/api/resources/{integrations → subAccounts}/index.d.mts +0 -0
  164. /package/dist/esm/api/resources/{integrations → subAccounts}/index.mjs +0 -0
package/README.md CHANGED
@@ -41,8 +41,8 @@ Instantiate and use the client with the following:
41
41
  import { AgentPhoneClient } from "agentphone";
42
42
 
43
43
  const client = new AgentPhoneClient({ token: "YOUR_TOKEN" });
44
- await client.agentSignup.agentSignUp({
45
- human_email: "human_email"
44
+ await client.agents.createAgent({
45
+ name: "name"
46
46
  });
47
47
  ```
48
48
 
@@ -54,7 +54,7 @@ following namespace:
54
54
  ```typescript
55
55
  import { AgentPhone } from "agentphone";
56
56
 
57
- const request: AgentPhone.AgentSignUpRequest = {
57
+ const request: AgentPhone.ListAgentsV1AgentsGetRequest = {
58
58
  ...
59
59
  };
60
60
  ```
@@ -68,7 +68,7 @@ will be thrown.
68
68
  import { AgentPhoneError } from "agentphone";
69
69
 
70
70
  try {
71
- await client.agentSignup.agentSignUp(...);
71
+ await client.agents.createAgent(...);
72
72
  } catch (err) {
73
73
  if (err instanceof AgentPhoneError) {
74
74
  console.log(err.statusCode);
@@ -95,7 +95,7 @@ const client = new AgentPhoneClient({
95
95
  }
96
96
  });
97
97
 
98
- const response = await client.agentSignup.agentSignUp(..., {
98
+ const response = await client.agents.createAgent(..., {
99
99
  headers: {
100
100
  'X-Custom-Header': 'custom value'
101
101
  }
@@ -107,7 +107,7 @@ const response = await client.agentSignup.agentSignUp(..., {
107
107
  If you would like to send additional query string parameters as part of the request, use the `queryParams` request option.
108
108
 
109
109
  ```typescript
110
- const response = await client.agentSignup.agentSignUp(..., {
110
+ const response = await client.agents.createAgent(..., {
111
111
  queryParams: {
112
112
  'customQueryParamKey': 'custom query param value'
113
113
  }
@@ -129,7 +129,7 @@ A request is deemed retryable when any of the following HTTP status codes is ret
129
129
  Use the `maxRetries` request option to configure this behavior.
130
130
 
131
131
  ```typescript
132
- const response = await client.agentSignup.agentSignUp(..., {
132
+ const response = await client.agents.createAgent(..., {
133
133
  maxRetries: 0 // override maxRetries at the request level
134
134
  });
135
135
  ```
@@ -139,7 +139,7 @@ const response = await client.agentSignup.agentSignUp(..., {
139
139
  The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
140
140
 
141
141
  ```typescript
142
- const response = await client.agentSignup.agentSignUp(..., {
142
+ const response = await client.agents.createAgent(..., {
143
143
  timeoutInSeconds: 30 // override timeout to 30s
144
144
  });
145
145
  ```
@@ -150,7 +150,7 @@ The SDK allows users to abort requests at any point by passing in an abort signa
150
150
 
151
151
  ```typescript
152
152
  const controller = new AbortController();
153
- const response = await client.agentSignup.agentSignUp(..., {
153
+ const response = await client.agents.createAgent(..., {
154
154
  abortSignal: controller.signal
155
155
  });
156
156
  controller.abort(); // aborts the request
@@ -162,7 +162,7 @@ The SDK provides access to raw response data, including headers, through the `.w
162
162
  The `.withRawResponse()` method returns a promise that results to an object with a `data` and a `rawResponse` property.
163
163
 
164
164
  ```typescript
165
- const { data, rawResponse } = await client.agentSignup.agentSignUp(...).withRawResponse();
165
+ const { data, rawResponse } = await client.agents.createAgent(...).withRawResponse();
166
166
 
167
167
  console.log(data);
168
168
  console.log(rawResponse.headers['X-My-Header']);
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "agentphone",
46
- "X-Fern-SDK-Version": "1.0.11",
47
- "User-Agent": "agentphone/1.0.11",
46
+ "X-Fern-SDK-Version": "1.0.13",
47
+ "User-Agent": "agentphone/1.0.13",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -1,13 +1,13 @@
1
- import { AgentSignupClient } from "./api/resources/agentSignup/client/Client.js";
2
1
  import { AgentsClient } from "./api/resources/agents/client/Client.js";
3
2
  import { AgentWebhooksClient } from "./api/resources/agentWebhooks/client/Client.js";
4
3
  import { CallsClient } from "./api/resources/calls/client/Client.js";
5
4
  import { ContactCardsClient } from "./api/resources/contactCards/client/Client.js";
6
5
  import { ContactsClient } from "./api/resources/contacts/client/Client.js";
7
6
  import { ConversationsClient } from "./api/resources/conversations/client/Client.js";
8
- import { IntegrationsClient } from "./api/resources/integrations/client/Client.js";
9
7
  import { MessagesClient } from "./api/resources/messages/client/Client.js";
10
8
  import { NumbersClient } from "./api/resources/numbers/client/Client.js";
9
+ import { RegistrationClient } from "./api/resources/registration/client/Client.js";
10
+ import { SubAccountsClient } from "./api/resources/subAccounts/client/Client.js";
11
11
  import { UsageClient } from "./api/resources/usage/client/Client.js";
12
12
  import { WebhooksClient } from "./api/resources/webhooks/client/Client.js";
13
13
  import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
@@ -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
  }
@@ -2,16 +2,16 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.AgentPhoneClient = void 0;
5
- const Client_js_1 = require("./api/resources/agentSignup/client/Client.js");
6
- const Client_js_2 = require("./api/resources/agents/client/Client.js");
7
- const Client_js_3 = require("./api/resources/agentWebhooks/client/Client.js");
8
- const Client_js_4 = require("./api/resources/calls/client/Client.js");
9
- const Client_js_5 = require("./api/resources/contactCards/client/Client.js");
10
- const Client_js_6 = require("./api/resources/contacts/client/Client.js");
11
- const Client_js_7 = require("./api/resources/conversations/client/Client.js");
12
- const Client_js_8 = require("./api/resources/integrations/client/Client.js");
13
- const Client_js_9 = require("./api/resources/messages/client/Client.js");
14
- const Client_js_10 = require("./api/resources/numbers/client/Client.js");
5
+ const Client_js_1 = require("./api/resources/agents/client/Client.js");
6
+ const Client_js_2 = require("./api/resources/agentWebhooks/client/Client.js");
7
+ const Client_js_3 = require("./api/resources/calls/client/Client.js");
8
+ const Client_js_4 = require("./api/resources/contactCards/client/Client.js");
9
+ const Client_js_5 = require("./api/resources/contacts/client/Client.js");
10
+ const Client_js_6 = require("./api/resources/conversations/client/Client.js");
11
+ const Client_js_7 = require("./api/resources/messages/client/Client.js");
12
+ const Client_js_8 = require("./api/resources/numbers/client/Client.js");
13
+ const Client_js_9 = require("./api/resources/registration/client/Client.js");
14
+ const Client_js_10 = require("./api/resources/subAccounts/client/Client.js");
15
15
  const Client_js_11 = require("./api/resources/usage/client/Client.js");
16
16
  const Client_js_12 = require("./api/resources/webhooks/client/Client.js");
17
17
  const BaseClient_js_1 = require("./BaseClient.js");
@@ -19,17 +19,13 @@ class AgentPhoneClient {
19
19
  constructor(options = {}) {
20
20
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
21
21
  }
22
- get agentSignup() {
23
- var _a;
24
- return ((_a = this._agentSignup) !== null && _a !== void 0 ? _a : (this._agentSignup = new Client_js_1.AgentSignupClient(this._options)));
25
- }
26
22
  get agents() {
27
23
  var _a;
28
- return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new Client_js_2.AgentsClient(this._options)));
24
+ return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new Client_js_1.AgentsClient(this._options)));
29
25
  }
30
26
  get numbers() {
31
27
  var _a;
32
- return ((_a = this._numbers) !== null && _a !== void 0 ? _a : (this._numbers = new Client_js_10.NumbersClient(this._options)));
28
+ return ((_a = this._numbers) !== null && _a !== void 0 ? _a : (this._numbers = new Client_js_8.NumbersClient(this._options)));
33
29
  }
34
30
  get webhooks() {
35
31
  var _a;
@@ -37,35 +33,39 @@ class AgentPhoneClient {
37
33
  }
38
34
  get agentWebhooks() {
39
35
  var _a;
40
- return ((_a = this._agentWebhooks) !== null && _a !== void 0 ? _a : (this._agentWebhooks = new Client_js_3.AgentWebhooksClient(this._options)));
36
+ return ((_a = this._agentWebhooks) !== null && _a !== void 0 ? _a : (this._agentWebhooks = new Client_js_2.AgentWebhooksClient(this._options)));
41
37
  }
42
38
  get contacts() {
43
39
  var _a;
44
- return ((_a = this._contacts) !== null && _a !== void 0 ? _a : (this._contacts = new Client_js_6.ContactsClient(this._options)));
40
+ return ((_a = this._contacts) !== null && _a !== void 0 ? _a : (this._contacts = new Client_js_5.ContactsClient(this._options)));
45
41
  }
46
42
  get conversations() {
47
43
  var _a;
48
- return ((_a = this._conversations) !== null && _a !== void 0 ? _a : (this._conversations = new Client_js_7.ConversationsClient(this._options)));
44
+ return ((_a = this._conversations) !== null && _a !== void 0 ? _a : (this._conversations = new Client_js_6.ConversationsClient(this._options)));
49
45
  }
50
46
  get calls() {
51
47
  var _a;
52
- return ((_a = this._calls) !== null && _a !== void 0 ? _a : (this._calls = new Client_js_4.CallsClient(this._options)));
48
+ return ((_a = this._calls) !== null && _a !== void 0 ? _a : (this._calls = new Client_js_3.CallsClient(this._options)));
53
49
  }
54
50
  get usage() {
55
51
  var _a;
56
52
  return ((_a = this._usage) !== null && _a !== void 0 ? _a : (this._usage = new Client_js_11.UsageClient(this._options)));
57
53
  }
58
- get integrations() {
59
- var _a;
60
- return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new Client_js_8.IntegrationsClient(this._options)));
61
- }
62
54
  get messages() {
63
55
  var _a;
64
- return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new Client_js_9.MessagesClient(this._options)));
56
+ return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new Client_js_7.MessagesClient(this._options)));
65
57
  }
66
58
  get contactCards() {
67
59
  var _a;
68
- return ((_a = this._contactCards) !== null && _a !== void 0 ? _a : (this._contactCards = new Client_js_5.ContactCardsClient(this._options)));
60
+ return ((_a = this._contactCards) !== null && _a !== void 0 ? _a : (this._contactCards = new Client_js_4.ContactCardsClient(this._options)));
61
+ }
62
+ get registration() {
63
+ var _a;
64
+ return ((_a = this._registration) !== null && _a !== void 0 ? _a : (this._registration = new Client_js_9.RegistrationClient(this._options)));
65
+ }
66
+ get subAccounts() {
67
+ var _a;
68
+ return ((_a = this._subAccounts) !== null && _a !== void 0 ? _a : (this._subAccounts = new Client_js_10.SubAccountsClient(this._options)));
69
69
  }
70
70
  }
71
71
  exports.AgentPhoneClient = AgentPhoneClient;
@@ -123,13 +123,12 @@ class AgentsClient {
123
123
  __listAgents() {
124
124
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
125
125
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
126
- const { limit, offset } = request;
126
+ const { offset, "X-Sub-Account-Id": subAccountId } = request;
127
127
  const _queryParams = {
128
- limit,
129
128
  offset,
130
129
  };
131
130
  const _authRequest = yield this._options.authProvider.getAuthRequest();
132
- 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);
131
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Sub-Account-Id": subAccountId }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
133
132
  const _response = yield core.fetcher({
134
133
  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"),
135
134
  method: "GET",
@@ -184,8 +183,9 @@ class AgentsClient {
184
183
  __createAgent(request, requestOptions) {
185
184
  return __awaiter(this, void 0, void 0, function* () {
186
185
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
186
+ const { "X-Sub-Account-Id": subAccountId } = request, _body = __rest(request, ["X-Sub-Account-Id"]);
187
187
  const _authRequest = yield this._options.authProvider.getAuthRequest();
188
- 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);
188
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Sub-Account-Id": subAccountId }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
189
189
  const _response = yield core.fetcher({
190
190
  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"),
191
191
  method: "POST",
@@ -193,7 +193,7 @@ class AgentsClient {
193
193
  contentType: "application/json",
194
194
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
195
195
  requestType: "json",
196
- body: request,
196
+ body: _body,
197
197
  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,
198
198
  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,
199
199
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -237,9 +237,9 @@ class AgentsClient {
237
237
  __getAgent(request, requestOptions) {
238
238
  return __awaiter(this, void 0, void 0, function* () {
239
239
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
240
- const { agent_id: agentId } = request;
240
+ const { agent_id: agentId, "X-Sub-Account-Id": subAccountId } = request;
241
241
  const _authRequest = yield this._options.authProvider.getAuthRequest();
242
- 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);
242
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Sub-Account-Id": subAccountId }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
243
243
  const _response = yield core.fetcher({
244
244
  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)}`),
245
245
  method: "GET",
@@ -291,9 +291,9 @@ class AgentsClient {
291
291
  __deleteAgent(request, requestOptions) {
292
292
  return __awaiter(this, void 0, void 0, function* () {
293
293
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
294
- const { agent_id: agentId } = request;
294
+ const { agent_id: agentId, "X-Sub-Account-Id": subAccountId } = request;
295
295
  const _authRequest = yield this._options.authProvider.getAuthRequest();
296
- 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);
296
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Sub-Account-Id": subAccountId }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
297
297
  const _response = yield core.fetcher({
298
298
  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)}`),
299
299
  method: "DELETE",
@@ -345,9 +345,9 @@ class AgentsClient {
345
345
  __updateAgent(request, requestOptions) {
346
346
  return __awaiter(this, void 0, void 0, function* () {
347
347
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
348
- const { agent_id: agentId } = request, _body = __rest(request, ["agent_id"]);
348
+ const { agent_id: agentId, "X-Sub-Account-Id": subAccountId } = request, _body = __rest(request, ["agent_id", "X-Sub-Account-Id"]);
349
349
  const _authRequest = yield this._options.authProvider.getAuthRequest();
350
- 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);
350
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Sub-Account-Id": subAccountId }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
351
351
  const _response = yield core.fetcher({
352
352
  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)}`),
353
353
  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
  }
@@ -30,4 +30,70 @@ var CreateAgentRequest;
30
30
  NoiseCancellation: "noise-cancellation",
31
31
  NoiseAndBackgroundSpeechCancellation: "noise-and-background-speech-cancellation",
32
32
  };
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
+ CreateAgentRequest.Language = {
35
+ AfZa: "af-ZA",
36
+ ArSa: "ar-SA",
37
+ AzAz: "az-AZ",
38
+ BgBg: "bg-BG",
39
+ BsBa: "bs-BA",
40
+ CaEs: "ca-ES",
41
+ CsCz: "cs-CZ",
42
+ CyGb: "cy-GB",
43
+ DaDk: "da-DK",
44
+ DeDe: "de-DE",
45
+ ElGr: "el-GR",
46
+ EnAu: "en-AU",
47
+ EnGb: "en-GB",
48
+ EnIn: "en-IN",
49
+ EnNz: "en-NZ",
50
+ EnUs: "en-US",
51
+ Es419: "es-419",
52
+ EsEs: "es-ES",
53
+ FaIr: "fa-IR",
54
+ FiFi: "fi-FI",
55
+ FilPh: "fil-PH",
56
+ FrCa: "fr-CA",
57
+ FrFr: "fr-FR",
58
+ GlEs: "gl-ES",
59
+ HeIl: "he-IL",
60
+ HiIn: "hi-IN",
61
+ HrHr: "hr-HR",
62
+ HuHu: "hu-HU",
63
+ HyAm: "hy-AM",
64
+ IdId: "id-ID",
65
+ IsIs: "is-IS",
66
+ ItIt: "it-IT",
67
+ JaJp: "ja-JP",
68
+ KkKz: "kk-KZ",
69
+ KnIn: "kn-IN",
70
+ KoKr: "ko-KR",
71
+ LtLt: "lt-LT",
72
+ LvLv: "lv-LV",
73
+ MkMk: "mk-MK",
74
+ MrIn: "mr-IN",
75
+ MsMy: "ms-MY",
76
+ NeNp: "ne-NP",
77
+ NlBe: "nl-BE",
78
+ NlNl: "nl-NL",
79
+ NoNo: "no-NO",
80
+ PlPl: "pl-PL",
81
+ PtBr: "pt-BR",
82
+ PtPt: "pt-PT",
83
+ RoRo: "ro-RO",
84
+ RuRu: "ru-RU",
85
+ SkSk: "sk-SK",
86
+ SlSi: "sl-SI",
87
+ SrRs: "sr-RS",
88
+ SvSe: "sv-SE",
89
+ SwKe: "sw-KE",
90
+ TaIn: "ta-IN",
91
+ ThTh: "th-TH",
92
+ TrTr: "tr-TR",
93
+ UkUa: "uk-UA",
94
+ UrIn: "ur-IN",
95
+ ViVn: "vi-VN",
96
+ YueCn: "yue-CN",
97
+ ZhCn: "zh-CN",
98
+ };
33
99
  })(CreateAgentRequest || (exports.CreateAgentRequest = CreateAgentRequest = {}));
@@ -6,4 +6,6 @@
6
6
  */
7
7
  export interface DeleteAgentV1AgentsAgentIdDeleteRequest {
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
  }
@@ -6,4 +6,6 @@
6
6
  */
7
7
  export interface GetAgentV1AgentsAgentIdGetRequest {
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
  }
@@ -3,6 +3,7 @@
3
3
  * {}
4
4
  */
5
5
  export interface ListAgentsV1AgentsGetRequest {
6
- limit?: number;
7
6
  offset?: number;
7
+ /** Target a sub-account. Pass a sub-account ID to scope this request. Omit to use the master account. */
8
+ "X-Sub-Account-Id"?: string;
8
9
  }
@@ -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
  }
@@ -30,4 +30,70 @@ var UpdateAgentRequest;
30
30
  NoiseCancellation: "noise-cancellation",
31
31
  NoiseAndBackgroundSpeechCancellation: "noise-and-background-speech-cancellation",
32
32
  };
33
+ /** BCP-47 locale that drives the agent's speech recognition and pronunciation. See the enum for the full set of supported codes. */
34
+ UpdateAgentRequest.Language = {
35
+ AfZa: "af-ZA",
36
+ ArSa: "ar-SA",
37
+ AzAz: "az-AZ",
38
+ BgBg: "bg-BG",
39
+ BsBa: "bs-BA",
40
+ CaEs: "ca-ES",
41
+ CsCz: "cs-CZ",
42
+ CyGb: "cy-GB",
43
+ DaDk: "da-DK",
44
+ DeDe: "de-DE",
45
+ ElGr: "el-GR",
46
+ EnAu: "en-AU",
47
+ EnGb: "en-GB",
48
+ EnIn: "en-IN",
49
+ EnNz: "en-NZ",
50
+ EnUs: "en-US",
51
+ Es419: "es-419",
52
+ EsEs: "es-ES",
53
+ FaIr: "fa-IR",
54
+ FiFi: "fi-FI",
55
+ FilPh: "fil-PH",
56
+ FrCa: "fr-CA",
57
+ FrFr: "fr-FR",
58
+ GlEs: "gl-ES",
59
+ HeIl: "he-IL",
60
+ HiIn: "hi-IN",
61
+ HrHr: "hr-HR",
62
+ HuHu: "hu-HU",
63
+ HyAm: "hy-AM",
64
+ IdId: "id-ID",
65
+ IsIs: "is-IS",
66
+ ItIt: "it-IT",
67
+ JaJp: "ja-JP",
68
+ KkKz: "kk-KZ",
69
+ KnIn: "kn-IN",
70
+ KoKr: "ko-KR",
71
+ LtLt: "lt-LT",
72
+ LvLv: "lv-LV",
73
+ MkMk: "mk-MK",
74
+ MrIn: "mr-IN",
75
+ MsMy: "ms-MY",
76
+ NeNp: "ne-NP",
77
+ NlBe: "nl-BE",
78
+ NlNl: "nl-NL",
79
+ NoNo: "no-NO",
80
+ PlPl: "pl-PL",
81
+ PtBr: "pt-BR",
82
+ PtPt: "pt-PT",
83
+ RoRo: "ro-RO",
84
+ RuRu: "ru-RU",
85
+ SkSk: "sk-SK",
86
+ SlSi: "sl-SI",
87
+ SrRs: "sr-RS",
88
+ SvSe: "sv-SE",
89
+ SwKe: "sw-KE",
90
+ TaIn: "ta-IN",
91
+ ThTh: "th-TH",
92
+ TrTr: "tr-TR",
93
+ UkUa: "uk-UA",
94
+ UrIn: "ur-IN",
95
+ ViVn: "vi-VN",
96
+ YueCn: "yue-CN",
97
+ ZhCn: "zh-CN",
98
+ };
33
99
  })(UpdateAgentRequest || (exports.UpdateAgentRequest = UpdateAgentRequest = {}));