@vapi-ai/web 1.0.231 → 1.0.233

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 (4) hide show
  1. package/api.ts +640 -332
  2. package/dist/api.d.ts +398 -216
  3. package/dist/api.js +79 -27
  4. package/package.json +1 -1
package/dist/api.js CHANGED
@@ -164,6 +164,58 @@ exports.HttpClient = HttpClient;
164
164
  class Api extends HttpClient {
165
165
  constructor() {
166
166
  super(...arguments);
167
+ this.assistant = {
168
+ /**
169
+ * No description
170
+ *
171
+ * @tags Assistants
172
+ * @name AssistantControllerCreate
173
+ * @summary Create Assistant
174
+ * @request POST:/assistant
175
+ * @secure
176
+ */
177
+ assistantControllerCreate: (data, params = {}) => this.request(Object.assign({ path: `/assistant`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
178
+ /**
179
+ * No description
180
+ *
181
+ * @tags Assistants
182
+ * @name AssistantControllerFindAll
183
+ * @summary List Assistants
184
+ * @request GET:/assistant
185
+ * @secure
186
+ */
187
+ assistantControllerFindAll: (params = {}) => this.request(Object.assign({ path: `/assistant`, method: "GET", secure: true, format: "json" }, params)),
188
+ /**
189
+ * No description
190
+ *
191
+ * @tags Assistants
192
+ * @name AssistantControllerFindOne
193
+ * @summary Get Assistant
194
+ * @request GET:/assistant/{id}
195
+ * @secure
196
+ */
197
+ assistantControllerFindOne: (id, params = {}) => this.request(Object.assign({ path: `/assistant/${id}`, method: "GET", secure: true, format: "json" }, params)),
198
+ /**
199
+ * No description
200
+ *
201
+ * @tags Assistants
202
+ * @name AssistantControllerUpdate
203
+ * @summary Update Assistant
204
+ * @request PATCH:/assistant/{id}
205
+ * @secure
206
+ */
207
+ assistantControllerUpdate: (id, data, params = {}) => this.request(Object.assign({ path: `/assistant/${id}`, method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
208
+ /**
209
+ * No description
210
+ *
211
+ * @tags Assistants
212
+ * @name AssistantControllerRemove
213
+ * @summary Delete Assistant
214
+ * @request DELETE:/assistant/{id}
215
+ * @secure
216
+ */
217
+ assistantControllerRemove: (id, params = {}) => this.request(Object.assign({ path: `/assistant/${id}`, method: "DELETE", secure: true, format: "json" }, params)),
218
+ };
167
219
  this.call = {
168
220
  /**
169
221
  * No description
@@ -206,57 +258,57 @@ class Api extends HttpClient {
206
258
  */
207
259
  callControllerCreateWebCall: (data, params = {}) => this.request(Object.assign({ path: `/call/web`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
208
260
  };
209
- this.assistant = {
261
+ this.credential = {
210
262
  /**
211
263
  * No description
212
264
  *
213
- * @tags Assistants
214
- * @name AssistantControllerCreate
215
- * @summary Create Assistant
216
- * @request POST:/assistant
265
+ * @tags Credentials
266
+ * @name CredentialControllerCreate
267
+ * @summary Create Credential
268
+ * @request POST:/credential
217
269
  * @secure
218
270
  */
219
- assistantControllerCreate: (data, params = {}) => this.request(Object.assign({ path: `/assistant`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
271
+ credentialControllerCreate: (data, params = {}) => this.request(Object.assign({ path: `/credential`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
220
272
  /**
221
273
  * No description
222
274
  *
223
- * @tags Assistants
224
- * @name AssistantControllerFindAll
225
- * @summary List Assistants
226
- * @request GET:/assistant
275
+ * @tags Credentials
276
+ * @name CredentialControllerFindAll
277
+ * @summary List Credentials
278
+ * @request GET:/credential
227
279
  * @secure
228
280
  */
229
- assistantControllerFindAll: (params = {}) => this.request(Object.assign({ path: `/assistant`, method: "GET", secure: true, format: "json" }, params)),
281
+ credentialControllerFindAll: (params = {}) => this.request(Object.assign({ path: `/credential`, method: "GET", secure: true, format: "json" }, params)),
230
282
  /**
231
283
  * No description
232
284
  *
233
- * @tags Assistants
234
- * @name AssistantControllerFindOne
235
- * @summary Get Assistant
236
- * @request GET:/assistant/{id}
285
+ * @tags Credentials
286
+ * @name CredentialControllerFindOne
287
+ * @summary Get Credential
288
+ * @request GET:/credential/{id}
237
289
  * @secure
238
290
  */
239
- assistantControllerFindOne: (id, params = {}) => this.request(Object.assign({ path: `/assistant/${id}`, method: "GET", secure: true, format: "json" }, params)),
291
+ credentialControllerFindOne: (id, params = {}) => this.request(Object.assign({ path: `/credential/${id}`, method: "GET", secure: true, format: "json" }, params)),
240
292
  /**
241
293
  * No description
242
294
  *
243
- * @tags Assistants
244
- * @name AssistantControllerUpdate
245
- * @summary Update Assistant
246
- * @request PATCH:/assistant/{id}
295
+ * @tags Credentials
296
+ * @name CredentialControllerUpdate
297
+ * @summary Update Credential
298
+ * @request PUT:/credential/{id}
247
299
  * @secure
248
300
  */
249
- assistantControllerUpdate: (id, data, params = {}) => this.request(Object.assign({ path: `/assistant/${id}`, method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
301
+ credentialControllerUpdate: (id, data, params = {}) => this.request(Object.assign({ path: `/credential/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
250
302
  /**
251
303
  * No description
252
304
  *
253
- * @tags Assistants
254
- * @name AssistantControllerRemove
255
- * @summary Delete Assistant
256
- * @request DELETE:/assistant/{id}
305
+ * @tags Credentials
306
+ * @name CredentialControllerRemove
307
+ * @summary Delete Credential
308
+ * @request DELETE:/credential/{id}
257
309
  * @secure
258
310
  */
259
- assistantControllerRemove: (id, params = {}) => this.request(Object.assign({ path: `/assistant/${id}`, method: "DELETE", secure: true, format: "json" }, params)),
311
+ credentialControllerRemove: (id, params = {}) => this.request(Object.assign({ path: `/credential/${id}`, method: "DELETE", secure: true, format: "json" }, params)),
260
312
  };
261
313
  this.phoneNumber = {
262
314
  /**
@@ -318,7 +370,7 @@ class Api extends HttpClient {
318
370
  * @request DELETE:/phone-number/{id}
319
371
  * @secure
320
372
  */
321
- phoneNumberControllerRemove: (id, params = {}) => this.request(Object.assign({ path: `/phone-number/${id}`, method: "DELETE", secure: true }, params)),
373
+ phoneNumberControllerRemove: (id, params = {}) => this.request(Object.assign({ path: `/phone-number/${id}`, method: "DELETE", secure: true, format: "json" }, params)),
322
374
  };
323
375
  }
324
376
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vapi-ai/web",
3
- "version": "1.0.231",
3
+ "version": "1.0.233",
4
4
  "description": "",
5
5
  "main": "dist/vapi.js",
6
6
  "types": "dist/vapi.d.ts",