retell-sdk 3.17.0 → 3.19.0

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 (53) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/core.d.ts +4 -2
  3. package/core.d.ts.map +1 -1
  4. package/core.js +17 -4
  5. package/core.js.map +1 -1
  6. package/core.mjs +18 -5
  7. package/core.mjs.map +1 -1
  8. package/index.d.mts +9 -6
  9. package/index.d.ts +9 -6
  10. package/index.d.ts.map +1 -1
  11. package/index.js +5 -3
  12. package/index.js.map +1 -1
  13. package/index.mjs +5 -3
  14. package/index.mjs.map +1 -1
  15. package/package.json +1 -1
  16. package/resources/agent.d.ts +1 -1
  17. package/resources/agent.d.ts.map +1 -1
  18. package/resources/agent.js.map +1 -1
  19. package/resources/agent.mjs.map +1 -1
  20. package/resources/call.d.ts +113 -430
  21. package/resources/call.d.ts.map +1 -1
  22. package/resources/call.js +11 -11
  23. package/resources/call.js.map +1 -1
  24. package/resources/call.mjs +11 -11
  25. package/resources/call.mjs.map +1 -1
  26. package/resources/index.d.ts +1 -1
  27. package/resources/index.d.ts.map +1 -1
  28. package/resources/index.js.map +1 -1
  29. package/resources/index.mjs.map +1 -1
  30. package/resources/llm.d.ts +4 -4
  31. package/resources/llm.d.ts.map +1 -1
  32. package/resources/llm.js.map +1 -1
  33. package/resources/llm.mjs.map +1 -1
  34. package/resources/phone-number.d.ts +35 -14
  35. package/resources/phone-number.d.ts.map +1 -1
  36. package/resources/phone-number.js.map +1 -1
  37. package/resources/phone-number.mjs.map +1 -1
  38. package/resources/voice.d.ts +1 -1
  39. package/resources/voice.d.ts.map +1 -1
  40. package/resources/voice.js.map +1 -1
  41. package/resources/voice.mjs.map +1 -1
  42. package/src/core.ts +27 -8
  43. package/src/index.ts +11 -7
  44. package/src/resources/agent.ts +1 -1
  45. package/src/resources/call.ts +127 -510
  46. package/src/resources/index.ts +4 -3
  47. package/src/resources/llm.ts +4 -4
  48. package/src/resources/phone-number.ts +40 -16
  49. package/src/resources/voice.ts +1 -1
  50. package/src/version.ts +1 -1
  51. package/version.d.ts +1 -1
  52. package/version.js +1 -1
  53. package/version.mjs +1 -1
@@ -3,11 +3,12 @@
3
3
  export { AgentResponse, AgentListResponse, AgentCreateParams, AgentUpdateParams, Agent } from './agent';
4
4
  export {
5
5
  CallResponse,
6
- RegisterCallResponse,
6
+ PhoneCallResponse,
7
7
  CallListResponse,
8
- CallCreateParams,
8
+ CallCreateWebCallResponse,
9
9
  CallListParams,
10
- CallRegisterParams,
10
+ CallCreatePhoneCallParams,
11
+ CallCreateWebCallParams,
11
12
  Call,
12
13
  } from './call';
13
14
  export { LlmResponse, LlmListResponse, LlmCreateParams, LlmUpdateParams, Llm } from './llm';
@@ -1,7 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import * as Core from '../core';
4
3
  import { APIResource } from '../resource';
4
+ import * as Core from '../core';
5
5
  import * as LlmAPI from './llm';
6
6
 
7
7
  export class Llm extends APIResource {
@@ -104,7 +104,7 @@ export interface LlmResponse {
104
104
  /**
105
105
  * Select the underlying LLM. If not set, would default to gpt-3.5-turbo.
106
106
  */
107
- model?: 'gpt-3.5-turbo' | 'gpt-4-turbo' | 'gpt-4o' | 'claude-3-sonnet' | 'claude-3-haiku';
107
+ model?: 'gpt-3.5-turbo' | 'gpt-4-turbo' | 'gpt-4o' | 'claude-3.5-sonnet' | 'claude-3-haiku';
108
108
 
109
109
  /**
110
110
  * Name of the starting state. Required if states is not empty.
@@ -657,7 +657,7 @@ export interface LlmCreateParams {
657
657
  /**
658
658
  * Select the underlying LLM. If not set, would default to gpt-3.5-turbo.
659
659
  */
660
- model?: 'gpt-3.5-turbo' | 'gpt-4-turbo' | 'gpt-4o' | 'claude-3-sonnet' | 'claude-3-haiku';
660
+ model?: 'gpt-3.5-turbo' | 'gpt-4-turbo' | 'gpt-4o' | 'claude-3.5-sonnet' | 'claude-3-haiku';
661
661
 
662
662
  /**
663
663
  * Name of the starting state. Required if states is not empty.
@@ -1208,7 +1208,7 @@ export interface LlmUpdateParams {
1208
1208
  /**
1209
1209
  * Select the underlying LLM. If not set, would default to gpt-3.5-turbo.
1210
1210
  */
1211
- model?: 'gpt-3.5-turbo' | 'gpt-4-turbo' | 'gpt-4o' | 'claude-3-sonnet' | 'claude-3-haiku';
1211
+ model?: 'gpt-3.5-turbo' | 'gpt-4-turbo' | 'gpt-4o' | 'claude-3.5-sonnet' | 'claude-3-haiku';
1212
1212
 
1213
1213
  /**
1214
1214
  * Name of the starting state. Required if states is not empty.
@@ -1,7 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import * as Core from '../core';
4
3
  import { APIResource } from '../resource';
4
+ import * as Core from '../core';
5
5
  import * as PhoneNumberAPI from './phone-number';
6
6
 
7
7
  export class PhoneNumber extends APIResource {
@@ -49,12 +49,6 @@ export class PhoneNumber extends APIResource {
49
49
  }
50
50
 
51
51
  export interface PhoneNumberResponse {
52
- /**
53
- * Unique id of agent to bind to newly obtained number. The number will
54
- * automatically use the agent when doing inbound / outbound calls.
55
- */
56
- agent_id: string;
57
-
58
52
  /**
59
53
  * Area code of the number to obtain. Format is a 3 digit integer. Currently only
60
54
  * supports US area code.
@@ -77,30 +71,60 @@ export interface PhoneNumberResponse {
77
71
  * Pretty printed phone number, provided for your reference.
78
72
  */
79
73
  phone_number_pretty: string;
80
- }
81
74
 
82
- export type PhoneNumberListResponse = Array<PhoneNumberResponse>;
75
+ /**
76
+ * Unique id of agent to bind to the number. The number will automatically use the
77
+ * agent when receiving inbound calls. If null, this number would not accept
78
+ * inbound call.
79
+ */
80
+ inbound_agent_id?: string | null;
83
81
 
84
- export interface PhoneNumberCreateParams {
85
82
  /**
86
- * Unique id of agent to bind to newly obtained number. The number will
87
- * automatically use the agent when doing inbound / outbound calls.
83
+ * Unique id of agent to bind to the number. The number will automatically use the
84
+ * agent when conducting outbound calls. If null, this number would not be able to
85
+ * initiate outbound call without agent id override.
88
86
  */
89
- agent_id: string;
87
+ outbound_agent_id?: string | null;
88
+ }
90
89
 
90
+ export type PhoneNumberListResponse = Array<PhoneNumberResponse>;
91
+
92
+ export interface PhoneNumberCreateParams {
91
93
  /**
92
94
  * Area code of the number to obtain. Format is a 3 digit integer. Currently only
93
95
  * supports US area code.
94
96
  */
95
97
  area_code?: number;
98
+
99
+ /**
100
+ * Unique id of agent to bind to the number. The number will automatically use the
101
+ * agent when receiving inbound calls. If null, this number would not accept
102
+ * inbound call.
103
+ */
104
+ inbound_agent_id?: string | null;
105
+
106
+ /**
107
+ * Unique id of agent to bind to the number. The number will automatically use the
108
+ * agent when conducting outbound calls. If null, this number would not be able to
109
+ * initiate outbound call without agent id override.
110
+ */
111
+ outbound_agent_id?: string | null;
96
112
  }
97
113
 
98
114
  export interface PhoneNumberUpdateParams {
99
115
  /**
100
- * Unique id of agent to bind to number. The number will automatically use the
101
- * agent when doing inbound / outbound calls.
116
+ * Unique id of agent to bind to the number. The number will automatically use the
117
+ * agent when receiving inbound calls. If set to null, this number would not accept
118
+ * inbound call.
119
+ */
120
+ inbound_agent_id?: string | null;
121
+
122
+ /**
123
+ * Unique id of agent to bind to the number. The number will automatically use the
124
+ * agent when conducting outbound calls. If set to null, this number would not be
125
+ * able to initiate outbound call without agent id override.
102
126
  */
103
- agent_id: string;
127
+ outbound_agent_id?: string | null;
104
128
  }
105
129
 
106
130
  export namespace PhoneNumber {
@@ -1,7 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import * as Core from '../core';
4
3
  import { APIResource } from '../resource';
4
+ import * as Core from '../core';
5
5
  import * as VoiceAPI from './voice';
6
6
 
7
7
  export class Voice extends APIResource {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '3.17.0'; // x-release-please-version
1
+ export const VERSION = '3.19.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.17.0";
1
+ export declare const VERSION = "3.19.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '3.17.0'; // x-release-please-version
4
+ exports.VERSION = '3.19.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '3.17.0'; // x-release-please-version
1
+ export const VERSION = '3.19.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map