@matech/thebigpos-sdk 2.36.11-aibi-2 → 2.36.14
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/dist/index.d.ts +74 -678
- package/dist/index.js +1 -302
- package/dist/index.js.map +1 -1
- package/docs/sdk_generation.md +149 -0
- package/package.json +1 -1
- package/src/index.ts +612 -1456
package/dist/index.js
CHANGED
|
@@ -241,307 +241,6 @@ export class Api extends HttpClient {
|
|
|
241
241
|
* @response `422` `ProblemDetails` Client Error
|
|
242
242
|
*/
|
|
243
243
|
updateAccountBilling: (id, data, params = {}) => this.request(Object.assign({ path: `/api/accounts/${id}/billing`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
244
|
-
/**
|
|
245
|
-
* No description
|
|
246
|
-
*
|
|
247
|
-
* @tags AiAdmin
|
|
248
|
-
* @name GetAiAuditLogs
|
|
249
|
-
* @summary Get paginated audit logs
|
|
250
|
-
* @request GET:/api/ai/admin/audit-logs
|
|
251
|
-
* @secure
|
|
252
|
-
* @response `200` `AiAuditLogPaginated` Success
|
|
253
|
-
*/
|
|
254
|
-
getAiAuditLogs: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/audit-logs`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
255
|
-
/**
|
|
256
|
-
* No description
|
|
257
|
-
*
|
|
258
|
-
* @tags AiAdmin
|
|
259
|
-
* @name GetAiAdminStats
|
|
260
|
-
* @summary Get AI admin dashboard stats
|
|
261
|
-
* @request GET:/api/ai/admin/stats
|
|
262
|
-
* @secure
|
|
263
|
-
* @response `200` `AiAdminStats` Success
|
|
264
|
-
*/
|
|
265
|
-
getAiAdminStats: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/stats`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
266
|
-
/**
|
|
267
|
-
* No description
|
|
268
|
-
*
|
|
269
|
-
* @tags AiAdminPrompt
|
|
270
|
-
* @name GetAiPrompts
|
|
271
|
-
* @summary Get all prompts
|
|
272
|
-
* @request GET:/api/ai/admin/prompts
|
|
273
|
-
* @secure
|
|
274
|
-
* @response `200` `(AiPrompt)[]` Success
|
|
275
|
-
*/
|
|
276
|
-
getAiPrompts: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts`, method: "GET", secure: true, format: "json" }, params)),
|
|
277
|
-
/**
|
|
278
|
-
* No description
|
|
279
|
-
*
|
|
280
|
-
* @tags AiAdminPrompt
|
|
281
|
-
* @name CreateAiPrompt
|
|
282
|
-
* @summary Create custom prompt
|
|
283
|
-
* @request POST:/api/ai/admin/prompts
|
|
284
|
-
* @secure
|
|
285
|
-
* @response `201` `AiPrompt` Created
|
|
286
|
-
* @response `400` `ProblemDetails` Bad Request
|
|
287
|
-
*/
|
|
288
|
-
createAiPrompt: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
289
|
-
/**
|
|
290
|
-
* No description
|
|
291
|
-
*
|
|
292
|
-
* @tags AiAdminPrompt
|
|
293
|
-
* @name GetAiPrompt
|
|
294
|
-
* @summary Get prompt by ID
|
|
295
|
-
* @request GET:/api/ai/admin/prompts/{id}
|
|
296
|
-
* @secure
|
|
297
|
-
* @response `200` `AiPrompt` Success
|
|
298
|
-
* @response `404` `ProblemDetails` Not Found
|
|
299
|
-
*/
|
|
300
|
-
getAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}`, method: "GET", secure: true, format: "json" }, params)),
|
|
301
|
-
/**
|
|
302
|
-
* No description
|
|
303
|
-
*
|
|
304
|
-
* @tags AiAdminPrompt
|
|
305
|
-
* @name UpdateAiPrompt
|
|
306
|
-
* @summary Update prompt
|
|
307
|
-
* @request PUT:/api/ai/admin/prompts/{id}
|
|
308
|
-
* @secure
|
|
309
|
-
* @response `200` `AiPrompt` Success
|
|
310
|
-
* @response `400` `ProblemDetails` Bad Request
|
|
311
|
-
* @response `404` `ProblemDetails` Not Found
|
|
312
|
-
*/
|
|
313
|
-
updateAiPrompt: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
314
|
-
/**
|
|
315
|
-
* No description
|
|
316
|
-
*
|
|
317
|
-
* @tags AiAdminPrompt
|
|
318
|
-
* @name DeleteAiPrompt
|
|
319
|
-
* @summary Delete prompt
|
|
320
|
-
* @request DELETE:/api/ai/admin/prompts/{id}
|
|
321
|
-
* @secure
|
|
322
|
-
* @response `204` `void` No Content
|
|
323
|
-
* @response `400` `ProblemDetails` Bad Request
|
|
324
|
-
* @response `404` `ProblemDetails` Not Found
|
|
325
|
-
*/
|
|
326
|
-
deleteAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}`, method: "DELETE", secure: true }, params)),
|
|
327
|
-
/**
|
|
328
|
-
* No description
|
|
329
|
-
*
|
|
330
|
-
* @tags AiAdminPrompt
|
|
331
|
-
* @name ToggleAiPrompt
|
|
332
|
-
* @summary Toggle prompt active/inactive
|
|
333
|
-
* @request PATCH:/api/ai/admin/prompts/{id}/toggle
|
|
334
|
-
* @secure
|
|
335
|
-
* @response `200` `AiPrompt` Success
|
|
336
|
-
* @response `404` `ProblemDetails` Not Found
|
|
337
|
-
*/
|
|
338
|
-
toggleAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
|
|
339
|
-
/**
|
|
340
|
-
* No description
|
|
341
|
-
*
|
|
342
|
-
* @tags AiCanonicalField
|
|
343
|
-
* @name GetAiCanonicalFields
|
|
344
|
-
* @summary Get all canonical fields
|
|
345
|
-
* @request GET:/api/ai/admin/fields
|
|
346
|
-
* @secure
|
|
347
|
-
* @response `200` `(AiCanonicalField)[]` Success
|
|
348
|
-
*/
|
|
349
|
-
getAiCanonicalFields: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields`, method: "GET", secure: true, format: "json" }, params)),
|
|
350
|
-
/**
|
|
351
|
-
* No description
|
|
352
|
-
*
|
|
353
|
-
* @tags AiCanonicalField
|
|
354
|
-
* @name CreateAiCanonicalField
|
|
355
|
-
* @summary Create canonical field
|
|
356
|
-
* @request POST:/api/ai/admin/fields
|
|
357
|
-
* @secure
|
|
358
|
-
* @response `201` `AiCanonicalField` Created
|
|
359
|
-
* @response `400` `ProblemDetails` Bad Request
|
|
360
|
-
*/
|
|
361
|
-
createAiCanonicalField: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
|
|
362
|
-
/**
|
|
363
|
-
* No description
|
|
364
|
-
*
|
|
365
|
-
* @tags AiCanonicalField
|
|
366
|
-
* @name GetAiCanonicalField
|
|
367
|
-
* @summary Get canonical field by ID
|
|
368
|
-
* @request GET:/api/ai/admin/fields/{id}
|
|
369
|
-
* @secure
|
|
370
|
-
* @response `200` `AiCanonicalField` Success
|
|
371
|
-
* @response `404` `ProblemDetails` Not Found
|
|
372
|
-
*/
|
|
373
|
-
getAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}`, method: "GET", secure: true, format: "json" }, params)),
|
|
374
|
-
/**
|
|
375
|
-
* No description
|
|
376
|
-
*
|
|
377
|
-
* @tags AiCanonicalField
|
|
378
|
-
* @name UpdateAiCanonicalField
|
|
379
|
-
* @summary Update canonical field
|
|
380
|
-
* @request PUT:/api/ai/admin/fields/{id}
|
|
381
|
-
* @secure
|
|
382
|
-
* @response `200` `AiCanonicalField` Success
|
|
383
|
-
* @response `400` `ProblemDetails` Bad Request
|
|
384
|
-
* @response `404` `ProblemDetails` Not Found
|
|
385
|
-
*/
|
|
386
|
-
updateAiCanonicalField: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
387
|
-
/**
|
|
388
|
-
* No description
|
|
389
|
-
*
|
|
390
|
-
* @tags AiCanonicalField
|
|
391
|
-
* @name DeleteAiCanonicalField
|
|
392
|
-
* @summary Delete canonical field
|
|
393
|
-
* @request DELETE:/api/ai/admin/fields/{id}
|
|
394
|
-
* @secure
|
|
395
|
-
* @response `204` `void` No Content
|
|
396
|
-
* @response `404` `ProblemDetails` Not Found
|
|
397
|
-
*/
|
|
398
|
-
deleteAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}`, method: "DELETE", secure: true }, params)),
|
|
399
|
-
/**
|
|
400
|
-
* No description
|
|
401
|
-
*
|
|
402
|
-
* @tags AiCanonicalField
|
|
403
|
-
* @name ToggleAiCanonicalField
|
|
404
|
-
* @summary Toggle canonical field active/inactive
|
|
405
|
-
* @request PATCH:/api/ai/admin/fields/{id}/toggle
|
|
406
|
-
* @secure
|
|
407
|
-
* @response `200` `AiCanonicalField` Success
|
|
408
|
-
* @response `404` `ProblemDetails` Not Found
|
|
409
|
-
*/
|
|
410
|
-
toggleAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
|
|
411
|
-
/**
|
|
412
|
-
* No description
|
|
413
|
-
*
|
|
414
|
-
* @tags AiChat
|
|
415
|
-
* @name AiChat
|
|
416
|
-
* @summary Send AI chat message
|
|
417
|
-
* @request POST:/api/ai/chat
|
|
418
|
-
* @secure
|
|
419
|
-
* @response `200` `AiChat` Success
|
|
420
|
-
* @response `400` `ProblemDetails` Bad Request
|
|
421
|
-
* @response `401` `ProblemDetails` Unauthorized
|
|
422
|
-
*/
|
|
423
|
-
aiChat: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/chat`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
|
|
424
|
-
/**
|
|
425
|
-
* No description
|
|
426
|
-
*
|
|
427
|
-
* @tags AiConversation
|
|
428
|
-
* @name GetAiConversations
|
|
429
|
-
* @summary Get user conversations
|
|
430
|
-
* @request GET:/api/ai/conversations
|
|
431
|
-
* @secure
|
|
432
|
-
* @response `200` `AiConversationListItemPaginated` Success
|
|
433
|
-
*/
|
|
434
|
-
getAiConversations: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
435
|
-
/**
|
|
436
|
-
* No description
|
|
437
|
-
*
|
|
438
|
-
* @tags AiConversation
|
|
439
|
-
* @name GetAiConversation
|
|
440
|
-
* @summary Get conversation with messages
|
|
441
|
-
* @request GET:/api/ai/conversations/{id}
|
|
442
|
-
* @secure
|
|
443
|
-
* @response `200` `AiConversationDetail` Success
|
|
444
|
-
* @response `403` `ProblemDetails` Forbidden
|
|
445
|
-
* @response `404` `ProblemDetails` Not Found
|
|
446
|
-
*/
|
|
447
|
-
getAiConversation: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/${id}`, method: "GET", secure: true, format: "json" }, params)),
|
|
448
|
-
/**
|
|
449
|
-
* No description
|
|
450
|
-
*
|
|
451
|
-
* @tags AiConversation
|
|
452
|
-
* @name DeleteAiConversation
|
|
453
|
-
* @summary Delete conversation
|
|
454
|
-
* @request DELETE:/api/ai/conversations/{id}
|
|
455
|
-
* @secure
|
|
456
|
-
* @response `204` `void` No Content
|
|
457
|
-
* @response `403` `ProblemDetails` Forbidden
|
|
458
|
-
* @response `404` `ProblemDetails` Not Found
|
|
459
|
-
*/
|
|
460
|
-
deleteAiConversation: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/${id}`, method: "DELETE", secure: true }, params)),
|
|
461
|
-
/**
|
|
462
|
-
* No description
|
|
463
|
-
*
|
|
464
|
-
* @tags AiGuardrail
|
|
465
|
-
* @name GetAiGuardrails
|
|
466
|
-
* @summary Get all guardrails
|
|
467
|
-
* @request GET:/api/ai/admin/guardrails
|
|
468
|
-
* @secure
|
|
469
|
-
* @response `200` `(AiGuardrail)[]` Success
|
|
470
|
-
*/
|
|
471
|
-
getAiGuardrails: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails`, method: "GET", secure: true, format: "json" }, params)),
|
|
472
|
-
/**
|
|
473
|
-
* No description
|
|
474
|
-
*
|
|
475
|
-
* @tags AiGuardrail
|
|
476
|
-
* @name CreateAiGuardrail
|
|
477
|
-
* @summary Create custom guardrail
|
|
478
|
-
* @request POST:/api/ai/admin/guardrails
|
|
479
|
-
* @secure
|
|
480
|
-
* @response `201` `AiGuardrail` Created
|
|
481
|
-
* @response `400` `ProblemDetails` Bad Request
|
|
482
|
-
*/
|
|
483
|
-
createAiGuardrail: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
484
|
-
/**
|
|
485
|
-
* No description
|
|
486
|
-
*
|
|
487
|
-
* @tags AiGuardrail
|
|
488
|
-
* @name GetAiGuardrail
|
|
489
|
-
* @summary Get guardrail by ID
|
|
490
|
-
* @request GET:/api/ai/admin/guardrails/{id}
|
|
491
|
-
* @secure
|
|
492
|
-
* @response `200` `AiGuardrail` Success
|
|
493
|
-
* @response `404` `ProblemDetails` Not Found
|
|
494
|
-
*/
|
|
495
|
-
getAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}`, method: "GET", secure: true, format: "json" }, params)),
|
|
496
|
-
/**
|
|
497
|
-
* No description
|
|
498
|
-
*
|
|
499
|
-
* @tags AiGuardrail
|
|
500
|
-
* @name UpdateAiGuardrail
|
|
501
|
-
* @summary Update guardrail
|
|
502
|
-
* @request PUT:/api/ai/admin/guardrails/{id}
|
|
503
|
-
* @secure
|
|
504
|
-
* @response `200` `AiGuardrail` Success
|
|
505
|
-
* @response `400` `ProblemDetails` Bad Request
|
|
506
|
-
* @response `404` `ProblemDetails` Not Found
|
|
507
|
-
*/
|
|
508
|
-
updateAiGuardrail: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
509
|
-
/**
|
|
510
|
-
* No description
|
|
511
|
-
*
|
|
512
|
-
* @tags AiGuardrail
|
|
513
|
-
* @name DeleteAiGuardrail
|
|
514
|
-
* @summary Delete guardrail
|
|
515
|
-
* @request DELETE:/api/ai/admin/guardrails/{id}
|
|
516
|
-
* @secure
|
|
517
|
-
* @response `204` `void` No Content
|
|
518
|
-
* @response `400` `ProblemDetails` Bad Request
|
|
519
|
-
* @response `404` `ProblemDetails` Not Found
|
|
520
|
-
*/
|
|
521
|
-
deleteAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}`, method: "DELETE", secure: true }, params)),
|
|
522
|
-
/**
|
|
523
|
-
* No description
|
|
524
|
-
*
|
|
525
|
-
* @tags AiGuardrail
|
|
526
|
-
* @name ToggleAiGuardrail
|
|
527
|
-
* @summary Toggle guardrail enabled/disabled
|
|
528
|
-
* @request PATCH:/api/ai/admin/guardrails/{id}/toggle
|
|
529
|
-
* @secure
|
|
530
|
-
* @response `200` `AiGuardrail` Success
|
|
531
|
-
* @response `404` `ProblemDetails` Not Found
|
|
532
|
-
*/
|
|
533
|
-
toggleAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
|
|
534
|
-
/**
|
|
535
|
-
* No description
|
|
536
|
-
*
|
|
537
|
-
* @tags AiPrompt
|
|
538
|
-
* @name GetAvailablePrompts
|
|
539
|
-
* @summary Get available prompts for current user
|
|
540
|
-
* @request GET:/api/ai/prompts
|
|
541
|
-
* @secure
|
|
542
|
-
* @response `200` `(AiPromptSummary)[]` Success
|
|
543
|
-
*/
|
|
544
|
-
getAvailablePrompts: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
545
244
|
/**
|
|
546
245
|
* No description
|
|
547
246
|
*
|
|
@@ -554,7 +253,7 @@ export class Api extends HttpClient {
|
|
|
554
253
|
* @response `401` `ProblemDetails` Unauthorized
|
|
555
254
|
* @response `422` `UnprocessableEntity` Client Error
|
|
556
255
|
*/
|
|
557
|
-
getTokenFromRefreshToken: (data, params = {}) => this.request(Object.assign({ path: `/api/refresh-token`, method: "POST", body: data, secure: true, type: ContentType.
|
|
256
|
+
getTokenFromRefreshToken: (data, params = {}) => this.request(Object.assign({ path: `/api/refresh-token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
558
257
|
/**
|
|
559
258
|
* No description
|
|
560
259
|
*
|