retell-sdk 5.49.0 → 5.49.2
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/CHANGELOG.md +24 -0
- package/client.d.mts +9 -9
- package/client.d.mts.map +1 -1
- package/client.d.ts +9 -9
- package/client.d.ts.map +1 -1
- package/internal/uploads.js +12 -2
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +12 -2
- package/internal/uploads.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent.d.mts +69 -69
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +69 -69
- package/resources/agent.d.ts.map +1 -1
- package/resources/agent.js +30 -30
- package/resources/agent.js.map +1 -1
- package/resources/agent.mjs +30 -30
- package/resources/agent.mjs.map +1 -1
- package/resources/call.d.mts +1350 -1350
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +1350 -1350
- package/resources/call.d.ts.map +1 -1
- package/resources/call.js +60 -60
- package/resources/call.js.map +1 -1
- package/resources/call.mjs +60 -60
- package/resources/call.mjs.map +1 -1
- package/resources/chat-agent.d.mts +70 -70
- package/resources/chat-agent.d.mts.map +1 -1
- package/resources/chat-agent.d.ts +70 -70
- package/resources/chat-agent.d.ts.map +1 -1
- package/resources/chat-agent.js +31 -31
- package/resources/chat-agent.js.map +1 -1
- package/resources/chat-agent.mjs +31 -31
- package/resources/chat-agent.mjs.map +1 -1
- package/resources/chat.d.mts +97 -97
- package/resources/chat.d.mts.map +1 -1
- package/resources/chat.d.ts +97 -97
- package/resources/chat.d.ts.map +1 -1
- package/resources/chat.js +55 -55
- package/resources/chat.js.map +1 -1
- package/resources/chat.mjs +55 -55
- package/resources/chat.mjs.map +1 -1
- package/resources/conversation-flow-component.d.mts +25 -25
- package/resources/conversation-flow-component.d.mts.map +1 -1
- package/resources/conversation-flow-component.d.ts +25 -25
- package/resources/conversation-flow-component.d.ts.map +1 -1
- package/resources/conversation-flow-component.js +12 -12
- package/resources/conversation-flow-component.js.map +1 -1
- package/resources/conversation-flow-component.mjs +12 -12
- package/resources/conversation-flow-component.mjs.map +1 -1
- package/resources/conversation-flow.d.mts +25 -25
- package/resources/conversation-flow.d.mts.map +1 -1
- package/resources/conversation-flow.d.ts +25 -25
- package/resources/conversation-flow.d.ts.map +1 -1
- package/resources/conversation-flow.js +12 -12
- package/resources/conversation-flow.js.map +1 -1
- package/resources/conversation-flow.mjs +12 -12
- package/resources/conversation-flow.mjs.map +1 -1
- package/resources/index.d.mts +9 -9
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +9 -9
- package/resources/index.d.ts.map +1 -1
- package/resources/llm.d.mts +24 -24
- package/resources/llm.d.mts.map +1 -1
- package/resources/llm.d.ts +24 -24
- package/resources/llm.d.ts.map +1 -1
- package/resources/llm.js +11 -11
- package/resources/llm.js.map +1 -1
- package/resources/llm.mjs +11 -11
- package/resources/llm.mjs.map +1 -1
- package/resources/phone-number.d.mts +130 -130
- package/resources/phone-number.d.mts.map +1 -1
- package/resources/phone-number.d.ts +130 -130
- package/resources/phone-number.d.ts.map +1 -1
- package/resources/phone-number.js +27 -27
- package/resources/phone-number.js.map +1 -1
- package/resources/phone-number.mjs +27 -27
- package/resources/phone-number.mjs.map +1 -1
- package/resources/tests.d.mts +95 -95
- package/resources/tests.d.mts.map +1 -1
- package/resources/tests.d.ts +95 -95
- package/resources/tests.d.ts.map +1 -1
- package/resources/tests.js +27 -27
- package/resources/tests.js.map +1 -1
- package/resources/tests.mjs +27 -27
- package/resources/tests.mjs.map +1 -1
- package/resources/voice.d.mts +8 -8
- package/resources/voice.d.mts.map +1 -1
- package/resources/voice.d.ts +8 -8
- package/resources/voice.d.ts.map +1 -1
- package/resources/voice.js +12 -12
- package/resources/voice.js.map +1 -1
- package/resources/voice.mjs +12 -12
- package/resources/voice.mjs.map +1 -1
- package/src/client.ts +18 -18
- package/src/internal/uploads.ts +12 -4
- package/src/resources/agent.ts +90 -90
- package/src/resources/call.ts +1821 -1821
- package/src/resources/chat-agent.ts +95 -95
- package/src/resources/chat.ts +112 -112
- package/src/resources/conversation-flow-component.ts +34 -34
- package/src/resources/conversation-flow.ts +34 -34
- package/src/resources/index.ts +18 -18
- package/src/resources/llm.ts +30 -30
- package/src/resources/phone-number.ts +152 -152
- package/src/resources/tests.ts +136 -136
- package/src/resources/voice.ts +12 -12
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/agent.mjs
CHANGED
|
@@ -33,6 +33,21 @@ export class Agent extends APIResource {
|
|
|
33
33
|
retrieve(agentID, query = {}, options) {
|
|
34
34
|
return this._client.get(path `/get-agent/${agentID}`, { query, ...options });
|
|
35
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Update an existing agent's latest draft version
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const agentResponse = await client.agent.update(
|
|
42
|
+
* '16b980523634a6dc504898cda492e939',
|
|
43
|
+
* { agent_name: 'Jarvis' },
|
|
44
|
+
* );
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
update(agentID, params, options) {
|
|
48
|
+
const { version, ...body } = params;
|
|
49
|
+
return this._client.patch(path `/update-agent/${agentID}`, { query: { version }, body, ...options });
|
|
50
|
+
}
|
|
36
51
|
/**
|
|
37
52
|
* List unique agents with pagination.
|
|
38
53
|
*
|
|
@@ -57,21 +72,6 @@ export class Agent extends APIResource {
|
|
|
57
72
|
...options,
|
|
58
73
|
});
|
|
59
74
|
}
|
|
60
|
-
/**
|
|
61
|
-
* Update an existing agent's latest draft version
|
|
62
|
-
*
|
|
63
|
-
* @example
|
|
64
|
-
* ```ts
|
|
65
|
-
* const agentResponse = await client.agent.update(
|
|
66
|
-
* '16b980523634a6dc504898cda492e939',
|
|
67
|
-
* { agent_name: 'Jarvis' },
|
|
68
|
-
* );
|
|
69
|
-
* ```
|
|
70
|
-
*/
|
|
71
|
-
update(agentID, params, options) {
|
|
72
|
-
const { version, ...body } = params;
|
|
73
|
-
return this._client.patch(path `/update-agent/${agentID}`, { query: { version }, body, ...options });
|
|
74
|
-
}
|
|
75
75
|
/**
|
|
76
76
|
* Delete an existing agent
|
|
77
77
|
*
|
|
@@ -88,21 +88,6 @@ export class Agent extends APIResource {
|
|
|
88
88
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
|
-
/**
|
|
92
|
-
* Publish an existing draft version in place.
|
|
93
|
-
*
|
|
94
|
-
* @example
|
|
95
|
-
* ```ts
|
|
96
|
-
* await client.agent.publish('agent_xxx', { version: 15 });
|
|
97
|
-
* ```
|
|
98
|
-
*/
|
|
99
|
-
publish(agentID, body, options) {
|
|
100
|
-
return this._client.post(path `/publish-agent-version/${agentID}`, {
|
|
101
|
-
body,
|
|
102
|
-
...options,
|
|
103
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
91
|
/**
|
|
107
92
|
* Create a new draft agent version from a base version.
|
|
108
93
|
*
|
|
@@ -148,5 +133,20 @@ export class Agent extends APIResource {
|
|
|
148
133
|
getVersions(agentID, options) {
|
|
149
134
|
return this._client.get(path `/get-agent-versions/${agentID}`, options);
|
|
150
135
|
}
|
|
136
|
+
/**
|
|
137
|
+
* Publish an existing draft version in place.
|
|
138
|
+
*
|
|
139
|
+
* @example
|
|
140
|
+
* ```ts
|
|
141
|
+
* await client.agent.publish('agent_xxx', { version: 15 });
|
|
142
|
+
* ```
|
|
143
|
+
*/
|
|
144
|
+
publish(agentID, body, options) {
|
|
145
|
+
return this._client.post(path `/publish-agent-version/${agentID}`, {
|
|
146
|
+
body,
|
|
147
|
+
...options,
|
|
148
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
151
|
}
|
|
152
152
|
//# sourceMappingURL=agent.mjs.map
|
package/resources/agent.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.mjs","sourceRoot":"","sources":["../src/resources/agent.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CACN,OAAe,EACf,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"agent.mjs","sourceRoot":"","sources":["../src/resources/agent.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CACN,OAAe,EACf,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,C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