@matech/thebigpos-sdk 2.44.4-rc0 → 2.45.0-rc5

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.js CHANGED
@@ -95,7 +95,7 @@ export class HttpClient {
95
95
  }
96
96
  /**
97
97
  * @title The Big POS API
98
- * @version v2.44.2
98
+ * @version v2.45.0
99
99
  * @termsOfService https://www.thebigpos.com/terms-of-use/
100
100
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
101
101
  */
@@ -255,6 +255,682 @@ export class Api extends HttpClient {
255
255
  * @response `422` `ProblemDetails` Unprocessable Content
256
256
  */
257
257
  updateAccountBilling: (id, data, params = {}) => this.request(Object.assign({ path: `/api/accounts/${id}/billing`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
258
+ /**
259
+ * No description
260
+ *
261
+ * @tags AiAccountSettings
262
+ * @name GetAiAccountSettings
263
+ * @summary Get account AI settings
264
+ * @request GET:/api/ai/admin/account-settings
265
+ * @secure
266
+ * @response `200` `AiAccountSettings` OK
267
+ */
268
+ getAiAccountSettings: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/account-settings`, method: "GET", secure: true, format: "json" }, params)),
269
+ /**
270
+ * No description
271
+ *
272
+ * @tags AiAccountSettings
273
+ * @name UpdateAiAccountSettings
274
+ * @summary Update account AI settings
275
+ * @request PUT:/api/ai/admin/account-settings
276
+ * @secure
277
+ * @response `200` `AiAccountSettings` OK
278
+ * @response `400` `ProblemDetails` Bad Request
279
+ */
280
+ updateAiAccountSettings: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/account-settings`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
281
+ /**
282
+ * No description
283
+ *
284
+ * @tags AiAdmin
285
+ * @name GetAiAuditLogs
286
+ * @summary Get paginated audit logs
287
+ * @request GET:/api/ai/admin/audit-logs
288
+ * @secure
289
+ * @response `200` `AiAuditLogPaginated` OK
290
+ */
291
+ getAiAuditLogs: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/audit-logs`, method: "GET", query: query, secure: true, format: "json" }, params)),
292
+ /**
293
+ * No description
294
+ *
295
+ * @tags AiAdmin
296
+ * @name GetAiRequestLifecycle
297
+ * @summary Get the full event lifecycle of a single AI request
298
+ * @request GET:/api/ai/admin/audit-logs/request/{requestId}
299
+ * @secure
300
+ * @response `200` `(AiAuditLog)[]` OK
301
+ */
302
+ getAiRequestLifecycle: (requestId, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/audit-logs/request/${requestId}`, method: "GET", secure: true, format: "json" }, params)),
303
+ /**
304
+ * No description
305
+ *
306
+ * @tags AiAdmin
307
+ * @name GetAiAuditConversations
308
+ * @summary List conversations with their audit roll-up — origin user, turns, status, tokens
309
+ * @request GET:/api/ai/admin/audit-conversations
310
+ * @secure
311
+ * @response `200` `AiConversationAuditSummaryPaginated` OK
312
+ */
313
+ getAiAuditConversations: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/audit-conversations`, method: "GET", query: query, secure: true, format: "json" }, params)),
314
+ /**
315
+ * No description
316
+ *
317
+ * @tags AiAdmin
318
+ * @name GetAiAdminStats
319
+ * @summary Get AI admin dashboard stats
320
+ * @request GET:/api/ai/admin/stats
321
+ * @secure
322
+ * @response `200` `AiAdminStats` OK
323
+ */
324
+ getAiAdminStats: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/stats`, method: "GET", query: query, secure: true, format: "json" }, params)),
325
+ /**
326
+ * No description
327
+ *
328
+ * @tags AiAdmin
329
+ * @name GetAiConfigChanges
330
+ * @summary Get the AI configuration change history (who changed prompts, guardrails, fields, sources)
331
+ * @request GET:/api/ai/admin/config-changes
332
+ * @secure
333
+ * @response `200` `AiConfigChangeLogPaginated` OK
334
+ */
335
+ getAiConfigChanges: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/config-changes`, method: "GET", query: query, secure: true, format: "json" }, params)),
336
+ /**
337
+ * No description
338
+ *
339
+ * @tags AiAdminPrompt
340
+ * @name GetAiPrompts
341
+ * @summary Get all prompts
342
+ * @request GET:/api/ai/admin/prompts
343
+ * @secure
344
+ * @response `200` `(AiPrompt)[]` OK
345
+ */
346
+ getAiPrompts: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts`, method: "GET", secure: true, format: "json" }, params)),
347
+ /**
348
+ * No description
349
+ *
350
+ * @tags AiAdminPrompt
351
+ * @name CreateAiPrompt
352
+ * @summary Create custom prompt
353
+ * @request POST:/api/ai/admin/prompts
354
+ * @secure
355
+ * @response `201` `AiPrompt` Created
356
+ * @response `400` `ProblemDetails` Bad Request
357
+ */
358
+ createAiPrompt: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
359
+ /**
360
+ * No description
361
+ *
362
+ * @tags AiAdminPrompt
363
+ * @name GetAiPrompt
364
+ * @summary Get prompt by ID
365
+ * @request GET:/api/ai/admin/prompts/{id}
366
+ * @secure
367
+ * @response `200` `AiPrompt` OK
368
+ * @response `404` `ProblemDetails` Not Found
369
+ */
370
+ getAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}`, method: "GET", secure: true, format: "json" }, params)),
371
+ /**
372
+ * No description
373
+ *
374
+ * @tags AiAdminPrompt
375
+ * @name UpdateAiPrompt
376
+ * @summary Update prompt
377
+ * @request PUT:/api/ai/admin/prompts/{id}
378
+ * @secure
379
+ * @response `200` `AiPrompt` OK
380
+ * @response `400` `ProblemDetails` Bad Request
381
+ * @response `404` `ProblemDetails` Not Found
382
+ */
383
+ updateAiPrompt: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
384
+ /**
385
+ * No description
386
+ *
387
+ * @tags AiAdminPrompt
388
+ * @name DeleteAiPrompt
389
+ * @summary Delete prompt
390
+ * @request DELETE:/api/ai/admin/prompts/{id}
391
+ * @secure
392
+ * @response `204` `void` No Content
393
+ * @response `400` `ProblemDetails` Bad Request
394
+ * @response `404` `ProblemDetails` Not Found
395
+ */
396
+ deleteAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}`, method: "DELETE", secure: true }, params)),
397
+ /**
398
+ * No description
399
+ *
400
+ * @tags AiAdminPrompt
401
+ * @name ToggleAiPrompt
402
+ * @summary Toggle prompt active/inactive
403
+ * @request PATCH:/api/ai/admin/prompts/{id}/toggle
404
+ * @secure
405
+ * @response `200` `AiPrompt` OK
406
+ * @response `404` `ProblemDetails` Not Found
407
+ */
408
+ toggleAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
409
+ /**
410
+ * No description
411
+ *
412
+ * @tags AiAdminPrompt
413
+ * @name GenerateAiSystemPrompt
414
+ * @summary Generate a system prompt from description
415
+ * @request POST:/api/ai/admin/prompts/generate
416
+ * @secure
417
+ * @response `200` `GenerateSystemPrompt` OK
418
+ * @response `400` `ProblemDetails` Bad Request
419
+ */
420
+ generateAiSystemPrompt: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/generate`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
421
+ /**
422
+ * No description
423
+ *
424
+ * @tags AiAdminPrompt
425
+ * @name GetSupportedModels
426
+ * @summary Get supported LLM models
427
+ * @request GET:/api/ai/admin/prompts/supported-models
428
+ * @secure
429
+ * @response `200` `(SupportedModel)[]` OK
430
+ */
431
+ getSupportedModels: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/supported-models`, method: "GET", secure: true, format: "json" }, params)),
432
+ /**
433
+ * No description
434
+ *
435
+ * @tags AiAdminSettings
436
+ * @name GetAiAdminSettings
437
+ * @summary Get global AI settings
438
+ * @request GET:/api/ai/admin/settings
439
+ * @secure
440
+ * @response `200` `AiAdminSettings` OK
441
+ */
442
+ getAiAdminSettings: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/settings`, method: "GET", secure: true, format: "json" }, params)),
443
+ /**
444
+ * No description
445
+ *
446
+ * @tags AiAdminSettings
447
+ * @name UpdateAiAdminSettings
448
+ * @summary Update global AI settings
449
+ * @request PUT:/api/ai/admin/settings
450
+ * @secure
451
+ * @response `200` `AiAdminSettings` OK
452
+ * @response `400` `ProblemDetails` Bad Request
453
+ */
454
+ updateAiAdminSettings: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/settings`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
455
+ /**
456
+ * No description
457
+ *
458
+ * @tags AiCanonicalField
459
+ * @name GetAiCanonicalFields
460
+ * @summary Get all canonical fields
461
+ * @request GET:/api/ai/admin/fields
462
+ * @secure
463
+ * @response `200` `(AiCanonicalField)[]` OK
464
+ */
465
+ getAiCanonicalFields: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields`, method: "GET", secure: true, format: "json" }, params)),
466
+ /**
467
+ * No description
468
+ *
469
+ * @tags AiCanonicalField
470
+ * @name CreateAiCanonicalField
471
+ * @summary Create canonical field
472
+ * @request POST:/api/ai/admin/fields
473
+ * @secure
474
+ * @response `201` `AiCanonicalField` Created
475
+ * @response `400` `ProblemDetails` Bad Request
476
+ */
477
+ createAiCanonicalField: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
478
+ /**
479
+ * No description
480
+ *
481
+ * @tags AiCanonicalField
482
+ * @name GetAiCanonicalField
483
+ * @summary Get canonical field by ID
484
+ * @request GET:/api/ai/admin/fields/{id}
485
+ * @secure
486
+ * @response `200` `AiCanonicalField` OK
487
+ * @response `404` `ProblemDetails` Not Found
488
+ */
489
+ getAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}`, method: "GET", secure: true, format: "json" }, params)),
490
+ /**
491
+ * No description
492
+ *
493
+ * @tags AiCanonicalField
494
+ * @name UpdateAiCanonicalField
495
+ * @summary Update canonical field
496
+ * @request PUT:/api/ai/admin/fields/{id}
497
+ * @secure
498
+ * @response `200` `AiCanonicalField` OK
499
+ * @response `400` `ProblemDetails` Bad Request
500
+ * @response `404` `ProblemDetails` Not Found
501
+ */
502
+ updateAiCanonicalField: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
503
+ /**
504
+ * No description
505
+ *
506
+ * @tags AiCanonicalField
507
+ * @name DeleteAiCanonicalField
508
+ * @summary Delete canonical field
509
+ * @request DELETE:/api/ai/admin/fields/{id}
510
+ * @secure
511
+ * @response `204` `void` No Content
512
+ * @response `404` `ProblemDetails` Not Found
513
+ */
514
+ deleteAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}`, method: "DELETE", secure: true }, params)),
515
+ /**
516
+ * No description
517
+ *
518
+ * @tags AiCanonicalField
519
+ * @name ToggleAiCanonicalField
520
+ * @summary Toggle canonical field active/inactive
521
+ * @request PATCH:/api/ai/admin/fields/{id}/toggle
522
+ * @secure
523
+ * @response `200` `AiCanonicalField` OK
524
+ * @response `404` `ProblemDetails` Not Found
525
+ */
526
+ toggleAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
527
+ /**
528
+ * No description
529
+ *
530
+ * @tags AiChat
531
+ * @name AiChat
532
+ * @summary Send AI chat message
533
+ * @request POST:/api/ai/chat
534
+ * @secure
535
+ * @response `200` `AiChat` OK
536
+ * @response `400` `ProblemDetails` Bad Request
537
+ * @response `401` `ProblemDetails` Unauthorized
538
+ */
539
+ aiChat: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/chat`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
540
+ /**
541
+ * No description
542
+ *
543
+ * @tags AiConversation
544
+ * @name GetAiConversations
545
+ * @summary Get user conversations
546
+ * @request GET:/api/ai/conversations
547
+ * @secure
548
+ * @response `200` `AiConversationListItemPaginated` OK
549
+ */
550
+ getAiConversations: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations`, method: "GET", query: query, secure: true, format: "json" }, params)),
551
+ /**
552
+ * No description
553
+ *
554
+ * @tags AiConversation
555
+ * @name GetAiConversation
556
+ * @summary Get conversation metadata
557
+ * @request GET:/api/ai/conversations/{id}
558
+ * @secure
559
+ * @response `200` `AiConversationDetail` OK
560
+ * @response `403` `ProblemDetails` Forbidden
561
+ * @response `404` `ProblemDetails` Not Found
562
+ */
563
+ getAiConversation: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/${id}`, method: "GET", secure: true, format: "json" }, params)),
564
+ /**
565
+ * No description
566
+ *
567
+ * @tags AiConversation
568
+ * @name RenameAiConversation
569
+ * @summary Rename conversation
570
+ * @request PATCH:/api/ai/conversations/{id}
571
+ * @secure
572
+ * @response `200` `AiConversationDetail` OK
573
+ * @response `400` `ProblemDetails` Bad Request
574
+ * @response `403` `ProblemDetails` Forbidden
575
+ * @response `404` `ProblemDetails` Not Found
576
+ */
577
+ renameAiConversation: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/${id}`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
578
+ /**
579
+ * No description
580
+ *
581
+ * @tags AiConversation
582
+ * @name DeleteAiConversation
583
+ * @summary Delete conversation
584
+ * @request DELETE:/api/ai/conversations/{id}
585
+ * @secure
586
+ * @response `204` `void` No Content
587
+ * @response `403` `ProblemDetails` Forbidden
588
+ * @response `404` `ProblemDetails` Not Found
589
+ */
590
+ deleteAiConversation: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/${id}`, method: "DELETE", secure: true }, params)),
591
+ /**
592
+ * No description
593
+ *
594
+ * @tags AiConversation
595
+ * @name GetAiConversationMessages
596
+ * @summary Get conversation messages
597
+ * @request GET:/api/ai/conversations/{id}/messages
598
+ * @secure
599
+ * @response `200` `AiChatMessagePaginated` OK
600
+ * @response `403` `ProblemDetails` Forbidden
601
+ * @response `404` `ProblemDetails` Not Found
602
+ */
603
+ getAiConversationMessages: (id, query, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/${id}/messages`, method: "GET", query: query, secure: true, format: "json" }, params)),
604
+ /**
605
+ * No description
606
+ *
607
+ * @tags AiConversation
608
+ * @name ClearAiConversationHistory
609
+ * @summary Clear conversation history
610
+ * @request DELETE:/api/ai/conversations/{id}/messages
611
+ * @secure
612
+ * @response `204` `void` No Content
613
+ * @response `403` `ProblemDetails` Forbidden
614
+ * @response `404` `ProblemDetails` Not Found
615
+ */
616
+ clearAiConversationHistory: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/${id}/messages`, method: "DELETE", secure: true }, params)),
617
+ /**
618
+ * No description
619
+ *
620
+ * @tags AiConversation
621
+ * @name PinAiConversation
622
+ * @summary Pin or unpin conversation
623
+ * @request PUT:/api/ai/conversations/{id}/pin
624
+ * @secure
625
+ * @response `200` `AiConversationDetail` OK
626
+ * @response `403` `ProblemDetails` Forbidden
627
+ * @response `404` `ProblemDetails` Not Found
628
+ */
629
+ pinAiConversation: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/${id}/pin`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
630
+ /**
631
+ * No description
632
+ *
633
+ * @tags AiConversationAdmin
634
+ * @name GetAiAccountConversations
635
+ * @summary List AI conversations across the account, optionally filtered by user (admin supervision)
636
+ * @request GET:/api/ai/admin/conversations
637
+ * @secure
638
+ * @response `200` `AiConversationListItemPaginated` OK
639
+ */
640
+ getAiAccountConversations: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/conversations`, method: "GET", query: query, secure: true, format: "json" }, params)),
641
+ /**
642
+ * No description
643
+ *
644
+ * @tags AiConversationAdmin
645
+ * @name GetAiAccountConversation
646
+ * @summary Get an account conversation's detail (admin supervision)
647
+ * @request GET:/api/ai/admin/conversations/{id}
648
+ * @secure
649
+ * @response `200` `AiConversationDetail` OK
650
+ * @response `404` `ProblemDetails` Not Found
651
+ */
652
+ getAiAccountConversation: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/conversations/${id}`, method: "GET", secure: true, format: "json" }, params)),
653
+ /**
654
+ * No description
655
+ *
656
+ * @tags AiConversationAdmin
657
+ * @name GetAiAccountConversationMessages
658
+ * @summary Get an account conversation's messages (admin supervision)
659
+ * @request GET:/api/ai/admin/conversations/{id}/messages
660
+ * @secure
661
+ * @response `200` `AiChatMessagePaginated` OK
662
+ * @response `404` `ProblemDetails` Not Found
663
+ */
664
+ getAiAccountConversationMessages: (id, query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/conversations/${id}/messages`, method: "GET", query: query, secure: true, format: "json" }, params)),
665
+ /**
666
+ * No description
667
+ *
668
+ * @tags AiGuardrail
669
+ * @name GetAiGuardrails
670
+ * @summary Get all guardrails
671
+ * @request GET:/api/ai/admin/guardrails
672
+ * @secure
673
+ * @response `200` `(AiGuardrail)[]` OK
674
+ */
675
+ getAiGuardrails: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails`, method: "GET", secure: true, format: "json" }, params)),
676
+ /**
677
+ * No description
678
+ *
679
+ * @tags AiGuardrail
680
+ * @name CreateAiGuardrail
681
+ * @summary Create custom guardrail
682
+ * @request POST:/api/ai/admin/guardrails
683
+ * @secure
684
+ * @response `201` `AiGuardrail` Created
685
+ * @response `400` `ProblemDetails` Bad Request
686
+ */
687
+ createAiGuardrail: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
688
+ /**
689
+ * No description
690
+ *
691
+ * @tags AiGuardrail
692
+ * @name GetAiGuardrail
693
+ * @summary Get guardrail by ID
694
+ * @request GET:/api/ai/admin/guardrails/{id}
695
+ * @secure
696
+ * @response `200` `AiGuardrail` OK
697
+ * @response `404` `ProblemDetails` Not Found
698
+ */
699
+ getAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}`, method: "GET", secure: true, format: "json" }, params)),
700
+ /**
701
+ * No description
702
+ *
703
+ * @tags AiGuardrail
704
+ * @name UpdateAiGuardrail
705
+ * @summary Update guardrail
706
+ * @request PUT:/api/ai/admin/guardrails/{id}
707
+ * @secure
708
+ * @response `200` `AiGuardrail` OK
709
+ * @response `400` `ProblemDetails` Bad Request
710
+ * @response `404` `ProblemDetails` Not Found
711
+ */
712
+ updateAiGuardrail: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
713
+ /**
714
+ * No description
715
+ *
716
+ * @tags AiGuardrail
717
+ * @name DeleteAiGuardrail
718
+ * @summary Delete guardrail
719
+ * @request DELETE:/api/ai/admin/guardrails/{id}
720
+ * @secure
721
+ * @response `204` `void` No Content
722
+ * @response `400` `ProblemDetails` Bad Request
723
+ * @response `404` `ProblemDetails` Not Found
724
+ */
725
+ deleteAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}`, method: "DELETE", secure: true }, params)),
726
+ /**
727
+ * No description
728
+ *
729
+ * @tags AiGuardrail
730
+ * @name ToggleAiGuardrail
731
+ * @summary Toggle guardrail enabled/disabled
732
+ * @request PATCH:/api/ai/admin/guardrails/{id}/toggle
733
+ * @secure
734
+ * @response `200` `AiGuardrail` OK
735
+ * @response `404` `ProblemDetails` Not Found
736
+ */
737
+ toggleAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
738
+ /**
739
+ * No description
740
+ *
741
+ * @tags AiPrompt
742
+ * @name GetAvailablePrompts
743
+ * @summary Get available prompts for current user
744
+ * @request GET:/api/ai/prompts
745
+ * @secure
746
+ * @response `200` `(AiPromptSummary)[]` OK
747
+ */
748
+ getAvailablePrompts: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts`, method: "GET", query: query, secure: true, format: "json" }, params)),
749
+ /**
750
+ * No description
751
+ *
752
+ * @tags AiSuperAdmin
753
+ * @name GetAiAuditLogsCrossAccount
754
+ * @summary Get AI audit logs for a specific account or across all accounts
755
+ * @request GET:/api/ai/superadmin/audit-logs
756
+ * @secure
757
+ * @response `200` `AiAuditLogPaginated` OK
758
+ */
759
+ getAiAuditLogsCrossAccount: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/superadmin/audit-logs`, method: "GET", query: query, secure: true, format: "json" }, params)),
760
+ /**
761
+ * No description
762
+ *
763
+ * @tags AiSuperAdmin
764
+ * @name GetAiRequestLifecycleCrossAccount
765
+ * @summary Get the full event lifecycle of a single AI request from any account
766
+ * @request GET:/api/ai/superadmin/audit-logs/request/{requestId}
767
+ * @secure
768
+ * @response `200` `(AiAuditLog)[]` OK
769
+ */
770
+ getAiRequestLifecycleCrossAccount: (requestId, query, params = {}) => this.request(Object.assign({ path: `/api/ai/superadmin/audit-logs/request/${requestId}`, method: "GET", query: query, secure: true, format: "json" }, params)),
771
+ /**
772
+ * No description
773
+ *
774
+ * @tags AiSuperAdmin
775
+ * @name GetAiStatsCrossAccount
776
+ * @summary Get AI stats for a specific account or platform-wide
777
+ * @request GET:/api/ai/superadmin/stats
778
+ * @secure
779
+ * @response `200` `AiAdminStats` OK
780
+ */
781
+ getAiStatsCrossAccount: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/superadmin/stats`, method: "GET", query: query, secure: true, format: "json" }, params)),
782
+ /**
783
+ * No description
784
+ *
785
+ * @tags AiSuperAdmin
786
+ * @name GetAiConfigChangesCrossAccount
787
+ * @summary Get AI configuration change history for a specific account or across all accounts (incl. global defaults)
788
+ * @request GET:/api/ai/superadmin/config-changes
789
+ * @secure
790
+ * @response `200` `AiConfigChangeLogPaginated` OK
791
+ */
792
+ getAiConfigChangesCrossAccount: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/superadmin/config-changes`, method: "GET", query: query, secure: true, format: "json" }, params)),
793
+ /**
794
+ * No description
795
+ *
796
+ * @tags AiTokenUsageAdmin
797
+ * @name SearchAiAccountTokenUsage
798
+ * @summary Search accounts by current-month AI token usage and classification
799
+ * @request POST:/api/ai/admin/token-usage/search
800
+ * @secure
801
+ * @response `200` `AiAccountUsageOverviewPaginated` OK
802
+ */
803
+ searchAiAccountTokenUsage: (data, query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/token-usage/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
804
+ /**
805
+ * No description
806
+ *
807
+ * @tags AiTokenUsageAdmin
808
+ * @name GetAiAccountTokenUsage
809
+ * @summary Get an account's current-month AI token usage
810
+ * @request GET:/api/ai/admin/token-usage/{accountId}
811
+ * @secure
812
+ * @response `200` `AiTokenBudgetStatus` OK
813
+ */
814
+ getAiAccountTokenUsage: (accountId, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/token-usage/${accountId}`, method: "GET", secure: true, format: "json" }, params)),
815
+ /**
816
+ * No description
817
+ *
818
+ * @tags AiTokenUsageAdmin
819
+ * @name GetAiAccountTokenUsageHistory
820
+ * @summary Get an account's monthly AI token usage history
821
+ * @request GET:/api/ai/admin/token-usage/{accountId}/history
822
+ * @secure
823
+ * @response `200` `AiTokenUsageWindowPaginated` OK
824
+ */
825
+ getAiAccountTokenUsageHistory: (accountId, query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/token-usage/${accountId}/history`, method: "GET", query: query, secure: true, format: "json" }, params)),
826
+ /**
827
+ * No description
828
+ *
829
+ * @tags AiTokenUsageAdmin
830
+ * @name SetAiAccountTokenLimit
831
+ * @summary Set or raise an account's monthly AI token limit
832
+ * @request PUT:/api/ai/admin/token-usage/{accountId}/limit
833
+ * @secure
834
+ * @response `200` `AiTokenBudgetStatus` OK
835
+ * @response `400` `ProblemDetails` Bad Request
836
+ */
837
+ setAiAccountTokenLimit: (accountId, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/token-usage/${accountId}/limit`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
838
+ /**
839
+ * No description
840
+ *
841
+ * @tags AiUrlSource
842
+ * @name GetAiUrlSources
843
+ * @summary Get all URL sources
844
+ * @request GET:/api/ai/admin/url-sources
845
+ * @secure
846
+ * @response `200` `(AiUrlSource)[]` OK
847
+ */
848
+ getAiUrlSources: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources`, method: "GET", secure: true, format: "json" }, params)),
849
+ /**
850
+ * No description
851
+ *
852
+ * @tags AiUrlSource
853
+ * @name CreateAiUrlSource
854
+ * @summary Create URL source
855
+ * @request POST:/api/ai/admin/url-sources
856
+ * @secure
857
+ * @response `201` `AiUrlSource` Created
858
+ * @response `400` `ProblemDetails` Bad Request
859
+ * @response `409` `ProblemDetails` Conflict
860
+ */
861
+ createAiUrlSource: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
862
+ /**
863
+ * No description
864
+ *
865
+ * @tags AiUrlSource
866
+ * @name GetAiUrlSource
867
+ * @summary Get URL source by ID
868
+ * @request GET:/api/ai/admin/url-sources/{id}
869
+ * @secure
870
+ * @response `200` `AiUrlSource` OK
871
+ * @response `404` `ProblemDetails` Not Found
872
+ */
873
+ getAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}`, method: "GET", secure: true, format: "json" }, params)),
874
+ /**
875
+ * No description
876
+ *
877
+ * @tags AiUrlSource
878
+ * @name UpdateAiUrlSource
879
+ * @summary Update URL source
880
+ * @request PUT:/api/ai/admin/url-sources/{id}
881
+ * @secure
882
+ * @response `200` `AiUrlSource` OK
883
+ * @response `400` `ProblemDetails` Bad Request
884
+ * @response `404` `ProblemDetails` Not Found
885
+ * @response `409` `ProblemDetails` Conflict
886
+ */
887
+ updateAiUrlSource: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
888
+ /**
889
+ * No description
890
+ *
891
+ * @tags AiUrlSource
892
+ * @name DeleteAiUrlSource
893
+ * @summary Delete URL source
894
+ * @request DELETE:/api/ai/admin/url-sources/{id}
895
+ * @secure
896
+ * @response `204` `void` No Content
897
+ * @response `404` `ProblemDetails` Not Found
898
+ */
899
+ deleteAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}`, method: "DELETE", secure: true }, params)),
900
+ /**
901
+ * No description
902
+ *
903
+ * @tags AiUrlSource
904
+ * @name ToggleAiUrlSource
905
+ * @summary Toggle URL source active/inactive
906
+ * @request PATCH:/api/ai/admin/url-sources/{id}/toggle
907
+ * @secure
908
+ * @response `200` `AiUrlSource` OK
909
+ * @response `404` `ProblemDetails` Not Found
910
+ */
911
+ toggleAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
912
+ /**
913
+ * No description
914
+ *
915
+ * @tags AiUsage
916
+ * @name GetAiUsage
917
+ * @summary Get the current account's AI token usage for the active monthly window
918
+ * @request GET:/api/ai/usage
919
+ * @secure
920
+ * @response `200` `AiTokenBudgetStatus` OK
921
+ */
922
+ getAiUsage: (params = {}) => this.request(Object.assign({ path: `/api/ai/usage`, method: "GET", secure: true, format: "json" }, params)),
923
+ /**
924
+ * No description
925
+ *
926
+ * @tags AiUsage
927
+ * @name GetAiUsageHistory
928
+ * @summary Get the current account's monthly AI token usage history
929
+ * @request GET:/api/ai/usage/history
930
+ * @secure
931
+ * @response `200` `AiTokenUsageWindowPaginated` OK
932
+ */
933
+ getAiUsageHistory: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/usage/history`, method: "GET", query: query, secure: true, format: "json" }, params)),
258
934
  /**
259
935
  * No description
260
936
  *
@@ -2171,6 +2847,19 @@ export class Api extends HttpClient {
2171
2847
  * @response `404` `ProblemDetails` Not Found
2172
2848
  */
2173
2849
  syncLoanDocumentsFromLos: (loanId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/sync`, method: "POST", secure: true, format: "json" }, params)),
2850
+ /**
2851
+ * No description
2852
+ *
2853
+ * @tags LoanDocuments
2854
+ * @name ClassifyLoanDocumentManually
2855
+ * @summary Manually classify a loan document
2856
+ * @request POST:/api/loans/{loanId}/documents/{documentId}/classify-manual
2857
+ * @secure
2858
+ * @response `200` `LoanDocument` OK
2859
+ * @response `404` `ProblemDetails` Not Found
2860
+ * @response `422` `UnprocessableEntity` Unprocessable Content
2861
+ */
2862
+ classifyLoanDocumentManually: (loanId, documentId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/${documentId}/classify-manual`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2174
2863
  /**
2175
2864
  * @description Re-attempts to push a failed document to LOS
2176
2865
  *
@@ -2376,6 +3065,19 @@ export class Api extends HttpClient {
2376
3065
  * @response `404` `ProblemDetails` Not Found
2377
3066
  */
2378
3067
  sendLoanOptInReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/notifications/opt-in-reminders`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3068
+ /**
3069
+ * No description
3070
+ *
3071
+ * @tags LoanNotification
3072
+ * @name SendESignatureReminder
3073
+ * @summary Send eSignature Reminder
3074
+ * @request POST:/api/loans/{loanID}/notifications/esignature-reminders
3075
+ * @secure
3076
+ * @response `204` `void` No Content
3077
+ * @response `400` `ProblemDetails` Bad Request
3078
+ * @response `404` `ProblemDetails` Not Found
3079
+ */
3080
+ sendESignatureReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/notifications/esignature-reminders`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
2379
3081
  /**
2380
3082
  * No description
2381
3083
  *