@vuevox/sdk 0.5.0 → 0.6.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.
- package/README.md +9 -5
- package/dist/client.d.ts +3 -1
- package/dist/generated/schema.d.ts +14 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -218,6 +218,8 @@ Returns: `AsyncGenerator<Space>`.
|
|
|
218
218
|
|
|
219
219
|
Lists organization agents.
|
|
220
220
|
|
|
221
|
+
Agent records include nullable `externalId` when you store an ID from another system.
|
|
222
|
+
|
|
221
223
|
Required scope: `agents:read`.
|
|
222
224
|
|
|
223
225
|
Options: `ListAgentsOptions`
|
|
@@ -232,7 +234,7 @@ Options: `ListAgentsOptions`
|
|
|
232
234
|
const response = await vuevox.agents.list({ limit: 50, spaceId: "space-id" });
|
|
233
235
|
|
|
234
236
|
for (const agent of response.data.data) {
|
|
235
|
-
console.log(agent.id, agent.name);
|
|
237
|
+
console.log(agent.id, agent.externalId, agent.name);
|
|
236
238
|
}
|
|
237
239
|
```
|
|
238
240
|
|
|
@@ -248,7 +250,7 @@ Options: `ListAgentsOptions`
|
|
|
248
250
|
|
|
249
251
|
```ts
|
|
250
252
|
for await (const agent of vuevox.agents.paginate({ spaceId: "space-id" })) {
|
|
251
|
-
console.log(agent.id, agent.name);
|
|
253
|
+
console.log(agent.id, agent.externalId, agent.name);
|
|
252
254
|
}
|
|
253
255
|
```
|
|
254
256
|
|
|
@@ -319,6 +321,8 @@ Returns: `AsyncGenerator<CallSummary>`.
|
|
|
319
321
|
|
|
320
322
|
Lists organization leads. The `leads:read` scope includes lead email and phone contact details.
|
|
321
323
|
|
|
324
|
+
Lead records include nullable `externalId` when you store an ID from another system.
|
|
325
|
+
|
|
322
326
|
Required scope: `leads:read`.
|
|
323
327
|
|
|
324
328
|
Options: `ListLeadsOptions`
|
|
@@ -335,7 +339,7 @@ Options: `ListLeadsOptions`
|
|
|
335
339
|
const response = await vuevox.leads.list({ limit: 50, spaceId: "space-id" });
|
|
336
340
|
|
|
337
341
|
for (const lead of response.data.data) {
|
|
338
|
-
console.log(lead.id, lead.email, lead.phone);
|
|
342
|
+
console.log(lead.id, lead.externalId, lead.email, lead.phone);
|
|
339
343
|
}
|
|
340
344
|
```
|
|
341
345
|
|
|
@@ -349,7 +353,7 @@ Required scope: `leads:read`.
|
|
|
349
353
|
|
|
350
354
|
```ts
|
|
351
355
|
const response = await vuevox.leads.get("lead-id");
|
|
352
|
-
console.log(response.data.email, response.data.phone);
|
|
356
|
+
console.log(response.data.externalId, response.data.email, response.data.phone);
|
|
353
357
|
```
|
|
354
358
|
|
|
355
359
|
Returns: `Promise<VueVoxApiResponse<LeadDetailResponse>>`.
|
|
@@ -364,7 +368,7 @@ Options: `ListLeadsOptions`
|
|
|
364
368
|
|
|
365
369
|
```ts
|
|
366
370
|
for await (const lead of vuevox.leads.paginate({ createdAfter: "2026-01-01T00:00:00.000Z" })) {
|
|
367
|
-
console.log(lead.id);
|
|
371
|
+
console.log(lead.id, lead.externalId);
|
|
368
372
|
}
|
|
369
373
|
```
|
|
370
374
|
|
package/dist/client.d.ts
CHANGED
|
@@ -71,6 +71,7 @@ export declare function createVueVoxClient(options: VueVoxClientOptions): {
|
|
|
71
71
|
list: (listOptions?: ListAgentsOptions) => Promise<VueVoxApiResponse<AgentsListResponse>>;
|
|
72
72
|
paginate: (listOptions?: ListAgentsOptions) => AsyncGenerator<{
|
|
73
73
|
id: string;
|
|
74
|
+
externalId: string | null;
|
|
74
75
|
name: string;
|
|
75
76
|
spaces: components["schemas"]["ResourceSummary"][];
|
|
76
77
|
createdAt: string;
|
|
@@ -84,7 +85,7 @@ export declare function createVueVoxClient(options: VueVoxClientOptions): {
|
|
|
84
85
|
id: string;
|
|
85
86
|
space: components["schemas"]["ResourceSummary"];
|
|
86
87
|
lead: components["schemas"]["LeadSummary"];
|
|
87
|
-
agent: components["schemas"]["
|
|
88
|
+
agent: components["schemas"]["AgentSummary"];
|
|
88
89
|
duration: number;
|
|
89
90
|
score: number | null;
|
|
90
91
|
sentiment: string | null;
|
|
@@ -99,6 +100,7 @@ export declare function createVueVoxClient(options: VueVoxClientOptions): {
|
|
|
99
100
|
get: (leadId: string) => Promise<VueVoxApiResponse<LeadDetailResponse>>;
|
|
100
101
|
paginate: (listOptions?: ListLeadsOptions) => AsyncGenerator<{
|
|
101
102
|
id: string;
|
|
103
|
+
externalId: string | null;
|
|
102
104
|
firstName: string;
|
|
103
105
|
lastName: string;
|
|
104
106
|
email: string | null;
|
|
@@ -211,6 +211,8 @@ export interface components {
|
|
|
211
211
|
Agent: {
|
|
212
212
|
/** Format: uuid */
|
|
213
213
|
id: string;
|
|
214
|
+
/** @description Optional ID from an external system. */
|
|
215
|
+
externalId: string | null;
|
|
214
216
|
/** @example Morgan Agent */
|
|
215
217
|
name: string;
|
|
216
218
|
spaces: components["schemas"]["ResourceSummary"][];
|
|
@@ -231,15 +233,24 @@ export interface components {
|
|
|
231
233
|
LeadSummary: {
|
|
232
234
|
/** Format: uuid */
|
|
233
235
|
id: string;
|
|
236
|
+
/** @description Optional ID from an external system. */
|
|
237
|
+
externalId: string | null;
|
|
234
238
|
firstName: string;
|
|
235
239
|
lastName: string;
|
|
236
240
|
} | null;
|
|
241
|
+
AgentSummary: {
|
|
242
|
+
/** Format: uuid */
|
|
243
|
+
id: string;
|
|
244
|
+
/** @description Optional ID from an external system. */
|
|
245
|
+
externalId: string | null;
|
|
246
|
+
name: string;
|
|
247
|
+
} | null;
|
|
237
248
|
CallSummary: {
|
|
238
249
|
/** Format: uuid */
|
|
239
250
|
id: string;
|
|
240
251
|
space: components["schemas"]["ResourceSummary"];
|
|
241
252
|
lead: components["schemas"]["LeadSummary"];
|
|
242
|
-
agent: components["schemas"]["
|
|
253
|
+
agent: components["schemas"]["AgentSummary"];
|
|
243
254
|
/** @description Call duration in seconds. */
|
|
244
255
|
duration: number;
|
|
245
256
|
score: number | null;
|
|
@@ -280,6 +291,8 @@ export interface components {
|
|
|
280
291
|
Lead: {
|
|
281
292
|
/** Format: uuid */
|
|
282
293
|
id: string;
|
|
294
|
+
/** @description Optional ID from an external system. */
|
|
295
|
+
externalId: string | null;
|
|
283
296
|
firstName: string;
|
|
284
297
|
lastName: string;
|
|
285
298
|
/** Format: email */
|