@vapi-ai/web 1.0.71 → 1.0.72
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/api.ts +3 -3
- package/client.ts +1 -1
- package/dist/api.d.ts +3 -3
- package/dist/client.js +1 -1
- package/dist/player.js +1 -1
- package/package.json +1 -1
- package/player.ts +2 -1
package/api.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
export interface PhoneCallParams {
|
|
13
13
|
callSid?: string;
|
|
14
|
-
status?: string;
|
|
14
|
+
status?: string[];
|
|
15
15
|
customerPhoneNumber: string;
|
|
16
16
|
twilioPhoneNumber: string;
|
|
17
17
|
twilioAccountSid: string;
|
|
@@ -227,8 +227,8 @@ export interface PhoneNumber {
|
|
|
227
227
|
stripeSubscriptionId?: string;
|
|
228
228
|
number: string;
|
|
229
229
|
assistantId?: string;
|
|
230
|
-
twilioAccountSid
|
|
231
|
-
twilioAuthToken
|
|
230
|
+
twilioAccountSid?: string;
|
|
231
|
+
twilioAuthToken?: string;
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
export interface ImportTwilioPhoneNumberDto {
|
package/client.ts
CHANGED
package/dist/api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface PhoneCallParams {
|
|
2
2
|
callSid?: string;
|
|
3
|
-
status?: string;
|
|
3
|
+
status?: string[];
|
|
4
4
|
customerPhoneNumber: string;
|
|
5
5
|
twilioPhoneNumber: string;
|
|
6
6
|
twilioAccountSid: string;
|
|
@@ -154,8 +154,8 @@ export interface PhoneNumber {
|
|
|
154
154
|
stripeSubscriptionId?: string;
|
|
155
155
|
number: string;
|
|
156
156
|
assistantId?: string;
|
|
157
|
-
twilioAccountSid
|
|
158
|
-
twilioAuthToken
|
|
157
|
+
twilioAccountSid?: string;
|
|
158
|
+
twilioAuthToken?: string;
|
|
159
159
|
}
|
|
160
160
|
export interface ImportTwilioPhoneNumberDto {
|
|
161
161
|
/** This is the area code of the phone number to purchase. */
|
package/dist/client.js
CHANGED
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.client = void 0;
|
|
13
13
|
const api_1 = require("./api");
|
|
14
14
|
const api = new api_1.Api({
|
|
15
|
-
baseUrl: "
|
|
15
|
+
baseUrl: "http://localhost:3001",
|
|
16
16
|
baseApiParams: {
|
|
17
17
|
secure: true,
|
|
18
18
|
},
|
package/dist/player.js
CHANGED
|
@@ -43,8 +43,8 @@ class ContinuousPlayer extends events_1.default {
|
|
|
43
43
|
checkForGaps() {
|
|
44
44
|
if (this.sourceBuffer && this.sourceBuffer.buffered.length > 0) {
|
|
45
45
|
console.log(this.sourceBuffer.buffered.end(this.sourceBuffer.buffered.length - 1));
|
|
46
|
+
console;
|
|
46
47
|
}
|
|
47
|
-
console.log(this.audio.readyState);
|
|
48
48
|
if (this.sourceBuffer) {
|
|
49
49
|
for (let i = 0; i < this.sourceBuffer.buffered.length; i++) {
|
|
50
50
|
// Start and end times of the buffered range
|
package/package.json
CHANGED
package/player.ts
CHANGED
|
@@ -58,8 +58,9 @@ export class ContinuousPlayer extends EventEmitter {
|
|
|
58
58
|
console.log(
|
|
59
59
|
this.sourceBuffer.buffered.end(this.sourceBuffer.buffered.length - 1)
|
|
60
60
|
);
|
|
61
|
+
|
|
62
|
+
console;
|
|
61
63
|
}
|
|
62
|
-
console.log(this.audio.readyState);
|
|
63
64
|
if (this.sourceBuffer) {
|
|
64
65
|
for (let i = 0; i < this.sourceBuffer.buffered.length; i++) {
|
|
65
66
|
// Start and end times of the buffered range
|