retell-sdk 1.15.10 → 1.15.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -18
- package/docs/sdks/retellclient/README.md +13 -13
- package/lib/security.js +1 -1
- package/lib/security.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/security.ts +1 -1
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ import { RetellClient } from "retell-sdk";
|
|
|
44
44
|
|
|
45
45
|
async function run() {
|
|
46
46
|
const sdk = new RetellClient({
|
|
47
|
-
apiKey: "<
|
|
47
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
48
48
|
});
|
|
49
49
|
|
|
50
50
|
const res = await sdk.createAgent({
|
|
@@ -78,7 +78,7 @@ import { RetellClient } from "retell-sdk";
|
|
|
78
78
|
|
|
79
79
|
async function run() {
|
|
80
80
|
const sdk = new RetellClient({
|
|
81
|
-
apiKey: "<
|
|
81
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
82
82
|
});
|
|
83
83
|
|
|
84
84
|
const res = await sdk.createPhoneCall({
|
|
@@ -114,7 +114,7 @@ import { RetellClient } from "retell-sdk";
|
|
|
114
114
|
|
|
115
115
|
async function run() {
|
|
116
116
|
const sdk = new RetellClient({
|
|
117
|
-
apiKey: "<
|
|
117
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
118
118
|
});
|
|
119
119
|
|
|
120
120
|
const res = await sdk.createPhoneNumber({
|
|
@@ -142,7 +142,7 @@ import { RetellClient } from "retell-sdk";
|
|
|
142
142
|
|
|
143
143
|
async function run() {
|
|
144
144
|
const sdk = new RetellClient({
|
|
145
|
-
apiKey: "<
|
|
145
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
146
146
|
});
|
|
147
147
|
|
|
148
148
|
const agentId = "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD";
|
|
@@ -169,7 +169,7 @@ import { RetellClient } from "retell-sdk";
|
|
|
169
169
|
|
|
170
170
|
async function run() {
|
|
171
171
|
const sdk = new RetellClient({
|
|
172
|
-
apiKey: "<
|
|
172
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
173
173
|
});
|
|
174
174
|
|
|
175
175
|
const phoneNumber = "string";
|
|
@@ -196,7 +196,7 @@ import { RetellClient } from "retell-sdk";
|
|
|
196
196
|
|
|
197
197
|
async function run() {
|
|
198
198
|
const sdk = new RetellClient({
|
|
199
|
-
apiKey: "<
|
|
199
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
200
200
|
});
|
|
201
201
|
|
|
202
202
|
const agentId = "16b980523634a6dc504898cda492e939";
|
|
@@ -223,7 +223,7 @@ import { RetellClient } from "retell-sdk";
|
|
|
223
223
|
|
|
224
224
|
async function run() {
|
|
225
225
|
const sdk = new RetellClient({
|
|
226
|
-
apiKey: "<
|
|
226
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
227
227
|
});
|
|
228
228
|
|
|
229
229
|
const callId = "119c3f8e47135a29e65947eeb34cf12d";
|
|
@@ -250,7 +250,7 @@ import { RetellClient } from "retell-sdk";
|
|
|
250
250
|
|
|
251
251
|
async function run() {
|
|
252
252
|
const sdk = new RetellClient({
|
|
253
|
-
apiKey: "<
|
|
253
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
254
254
|
});
|
|
255
255
|
|
|
256
256
|
const phoneNumber = "+14159095857";
|
|
@@ -277,7 +277,7 @@ import { RetellClient } from "retell-sdk";
|
|
|
277
277
|
|
|
278
278
|
async function run() {
|
|
279
279
|
const sdk = new RetellClient({
|
|
280
|
-
apiKey: "<
|
|
280
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
281
281
|
});
|
|
282
282
|
|
|
283
283
|
const res = await sdk.listAgents();
|
|
@@ -304,7 +304,7 @@ import { SortOrder } from "retell-sdk/models/operations";
|
|
|
304
304
|
|
|
305
305
|
async function run() {
|
|
306
306
|
const sdk = new RetellClient({
|
|
307
|
-
apiKey: "<
|
|
307
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
308
308
|
});
|
|
309
309
|
|
|
310
310
|
const filterCriteria = {
|
|
@@ -340,7 +340,7 @@ import { RetellClient } from "retell-sdk";
|
|
|
340
340
|
|
|
341
341
|
async function run() {
|
|
342
342
|
const sdk = new RetellClient({
|
|
343
|
-
apiKey: "<
|
|
343
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
344
344
|
});
|
|
345
345
|
|
|
346
346
|
const res = await sdk.listPhoneNumbers();
|
|
@@ -365,7 +365,7 @@ import { RetellClient } from "retell-sdk";
|
|
|
365
365
|
|
|
366
366
|
async function run() {
|
|
367
367
|
const sdk = new RetellClient({
|
|
368
|
-
apiKey: "<
|
|
368
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
369
369
|
});
|
|
370
370
|
|
|
371
371
|
const agentNoDefaultNoRequired = {
|
|
@@ -402,7 +402,7 @@ import { RetellClient } from "retell-sdk";
|
|
|
402
402
|
|
|
403
403
|
async function run() {
|
|
404
404
|
const sdk = new RetellClient({
|
|
405
|
-
apiKey: "<
|
|
405
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
406
406
|
});
|
|
407
407
|
|
|
408
408
|
const requestBody = {
|
|
@@ -465,7 +465,7 @@ import * as errors from "retell-sdk/models/errors";
|
|
|
465
465
|
|
|
466
466
|
async function run() {
|
|
467
467
|
const sdk = new RetellClient({
|
|
468
|
-
apiKey: "<
|
|
468
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
469
469
|
});
|
|
470
470
|
|
|
471
471
|
const res = await sdk
|
|
@@ -584,9 +584,9 @@ const sdk = new RetellClient({ httpClient });
|
|
|
584
584
|
|
|
585
585
|
This SDK supports the following security scheme globally:
|
|
586
586
|
|
|
587
|
-
| Name
|
|
588
|
-
|
|
|
589
|
-
| `apiKey`
|
|
587
|
+
| Name | Type | Scheme |
|
|
588
|
+
| -------- | -------- | -------- |
|
|
589
|
+
| `apiKey` | apiKey | API key |
|
|
590
590
|
|
|
591
591
|
To authenticate with the API the `apiKey` parameter must be set when initializing the SDK client instance. For example:
|
|
592
592
|
```typescript
|
|
@@ -594,7 +594,7 @@ import { RetellClient } from "retell-sdk";
|
|
|
594
594
|
|
|
595
595
|
async function run() {
|
|
596
596
|
const sdk = new RetellClient({
|
|
597
|
-
apiKey: "<
|
|
597
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
598
598
|
});
|
|
599
599
|
|
|
600
600
|
const res = await sdk.createAgent({
|
|
@@ -30,7 +30,7 @@ import { RetellClient } from "retell-sdk";
|
|
|
30
30
|
|
|
31
31
|
async function run() {
|
|
32
32
|
const sdk = new RetellClient({
|
|
33
|
-
apiKey: "<
|
|
33
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
34
34
|
});
|
|
35
35
|
|
|
36
36
|
const res = await sdk.createAgent({
|
|
@@ -87,7 +87,7 @@ import { RetellClient } from "retell-sdk";
|
|
|
87
87
|
|
|
88
88
|
async function run() {
|
|
89
89
|
const sdk = new RetellClient({
|
|
90
|
-
apiKey: "<
|
|
90
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
91
91
|
});
|
|
92
92
|
|
|
93
93
|
const res = await sdk.createPhoneCall({
|
|
@@ -148,7 +148,7 @@ import { RetellClient } from "retell-sdk";
|
|
|
148
148
|
|
|
149
149
|
async function run() {
|
|
150
150
|
const sdk = new RetellClient({
|
|
151
|
-
apiKey: "<
|
|
151
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
152
152
|
});
|
|
153
153
|
|
|
154
154
|
const res = await sdk.createPhoneNumber({
|
|
@@ -200,7 +200,7 @@ import { RetellClient } from "retell-sdk";
|
|
|
200
200
|
|
|
201
201
|
async function run() {
|
|
202
202
|
const sdk = new RetellClient({
|
|
203
|
-
apiKey: "<
|
|
203
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
204
204
|
});
|
|
205
205
|
|
|
206
206
|
const agentId = "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD";
|
|
@@ -250,7 +250,7 @@ import { RetellClient } from "retell-sdk";
|
|
|
250
250
|
|
|
251
251
|
async function run() {
|
|
252
252
|
const sdk = new RetellClient({
|
|
253
|
-
apiKey: "<
|
|
253
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
254
254
|
});
|
|
255
255
|
|
|
256
256
|
const phoneNumber = "string";
|
|
@@ -300,7 +300,7 @@ import { RetellClient } from "retell-sdk";
|
|
|
300
300
|
|
|
301
301
|
async function run() {
|
|
302
302
|
const sdk = new RetellClient({
|
|
303
|
-
apiKey: "<
|
|
303
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
304
304
|
});
|
|
305
305
|
|
|
306
306
|
const agentId = "16b980523634a6dc504898cda492e939";
|
|
@@ -350,7 +350,7 @@ import { RetellClient } from "retell-sdk";
|
|
|
350
350
|
|
|
351
351
|
async function run() {
|
|
352
352
|
const sdk = new RetellClient({
|
|
353
|
-
apiKey: "<
|
|
353
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
354
354
|
});
|
|
355
355
|
|
|
356
356
|
const callId = "119c3f8e47135a29e65947eeb34cf12d";
|
|
@@ -400,7 +400,7 @@ import { RetellClient } from "retell-sdk";
|
|
|
400
400
|
|
|
401
401
|
async function run() {
|
|
402
402
|
const sdk = new RetellClient({
|
|
403
|
-
apiKey: "<
|
|
403
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
404
404
|
});
|
|
405
405
|
|
|
406
406
|
const phoneNumber = "+14159095857";
|
|
@@ -450,7 +450,7 @@ import { RetellClient } from "retell-sdk";
|
|
|
450
450
|
|
|
451
451
|
async function run() {
|
|
452
452
|
const sdk = new RetellClient({
|
|
453
|
-
apiKey: "<
|
|
453
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
454
454
|
});
|
|
455
455
|
|
|
456
456
|
const res = await sdk.listAgents();
|
|
@@ -497,7 +497,7 @@ import { SortOrder } from "retell-sdk/models/operations";
|
|
|
497
497
|
|
|
498
498
|
async function run() {
|
|
499
499
|
const sdk = new RetellClient({
|
|
500
|
-
apiKey: "<
|
|
500
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
501
501
|
});
|
|
502
502
|
|
|
503
503
|
const filterCriteria = {
|
|
@@ -562,7 +562,7 @@ import { RetellClient } from "retell-sdk";
|
|
|
562
562
|
|
|
563
563
|
async function run() {
|
|
564
564
|
const sdk = new RetellClient({
|
|
565
|
-
apiKey: "<
|
|
565
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
566
566
|
});
|
|
567
567
|
|
|
568
568
|
const res = await sdk.listPhoneNumbers();
|
|
@@ -608,7 +608,7 @@ import { RetellClient } from "retell-sdk";
|
|
|
608
608
|
|
|
609
609
|
async function run() {
|
|
610
610
|
const sdk = new RetellClient({
|
|
611
|
-
apiKey: "<
|
|
611
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
612
612
|
});
|
|
613
613
|
|
|
614
614
|
const agentNoDefaultNoRequired = {
|
|
@@ -669,7 +669,7 @@ import { RetellClient } from "retell-sdk";
|
|
|
669
669
|
|
|
670
670
|
async function run() {
|
|
671
671
|
const sdk = new RetellClient({
|
|
672
|
-
apiKey: "<
|
|
672
|
+
apiKey: "<YOUR_API_KEY_HERE>",
|
|
673
673
|
});
|
|
674
674
|
|
|
675
675
|
const requestBody = {
|
package/lib/security.js
CHANGED
|
@@ -92,7 +92,7 @@ function applyBearer(state, spec) {
|
|
|
92
92
|
}
|
|
93
93
|
function resolveGlobalSecurity(security) {
|
|
94
94
|
return resolveSecurity([
|
|
95
|
-
{ value: security === null || security === void 0 ? void 0 : security.apiKey, fieldName: "Authorization", type: "
|
|
95
|
+
{ value: security === null || security === void 0 ? void 0 : security.apiKey, fieldName: "Authorization", type: "apiKey:header" },
|
|
96
96
|
]);
|
|
97
97
|
}
|
|
98
98
|
exports.resolveGlobalSecurity = resolveGlobalSecurity;
|
package/lib/security.js.map
CHANGED
|
@@ -1 +1 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AC;AACD,SAAgB,qBAAqB,CAAC,QAAyD;IAC3F,OAAO,eAAe,CAAC;QACnB,EAAE,KAAK,EAAE,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,IAAI,EAAE,eAAe,EAAE;KACjF,CAAC,CAAC;AACP,CAAC;AAJD,sDAIC"}
|
package/package.json
CHANGED
package/src/lib/security.ts
CHANGED
|
@@ -159,6 +159,6 @@ function applyBearer(
|
|
|
159
159
|
}
|
|
160
160
|
export function resolveGlobalSecurity(security: Partial<components.Security> | null | undefined) {
|
|
161
161
|
return resolveSecurity([
|
|
162
|
-
{ value: security?.apiKey, fieldName: "Authorization", type: "
|
|
162
|
+
{ value: security?.apiKey, fieldName: "Authorization", type: "apiKey:header" },
|
|
163
163
|
]);
|
|
164
164
|
}
|