@matech/thebigpos-sdk 3.21.0-dev-7199 → 3.21.0-main-7219
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.cjs +26 -33
- package/dist/index.cjs.map +2 -2
- package/dist/index.d.ts +42 -37
- package/dist/index.js +26 -33
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +68 -66
package/src/index.ts
CHANGED
|
@@ -1446,6 +1446,7 @@ export interface AiPrompt {
|
|
|
1446
1446
|
isFeatured: boolean;
|
|
1447
1447
|
icon?: string | null;
|
|
1448
1448
|
agentSystemPrompt?: string | null;
|
|
1449
|
+
tools?: AiPromptTool[] | null;
|
|
1449
1450
|
hasAccountOverride: boolean;
|
|
1450
1451
|
/** @format date-time */
|
|
1451
1452
|
createdAt: string;
|
|
@@ -1547,6 +1548,14 @@ export interface AiPromptSummary {
|
|
|
1547
1548
|
icon?: string | null;
|
|
1548
1549
|
}
|
|
1549
1550
|
|
|
1551
|
+
export interface AiPromptTool {
|
|
1552
|
+
toolName: string;
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1555
|
+
export interface AiPromptToolInput {
|
|
1556
|
+
toolName: string;
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1550
1559
|
export interface AiTokenBudgetStatus {
|
|
1551
1560
|
/** @format int32 */
|
|
1552
1561
|
limit: number;
|
|
@@ -1592,6 +1601,13 @@ export interface AiTokenUsageWindowPaginated {
|
|
|
1592
1601
|
count: number;
|
|
1593
1602
|
}
|
|
1594
1603
|
|
|
1604
|
+
export interface AiToolCatalogItem {
|
|
1605
|
+
toolName: string;
|
|
1606
|
+
displayName: string;
|
|
1607
|
+
description: string;
|
|
1608
|
+
isWriteTool: boolean;
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1595
1611
|
export interface AiUpdatedBy {
|
|
1596
1612
|
/** @format uuid */
|
|
1597
1613
|
id: string;
|
|
@@ -2776,11 +2792,6 @@ export interface CustomFieldValue {
|
|
|
2776
2792
|
dataType: CustomFieldValueDataTypeEnum;
|
|
2777
2793
|
}
|
|
2778
2794
|
|
|
2779
|
-
export interface DeactivateLoanDocumentFolderRequest {
|
|
2780
|
-
/** @format uuid */
|
|
2781
|
-
reassignToFolderId?: string | null;
|
|
2782
|
-
}
|
|
2783
|
-
|
|
2784
2795
|
export interface DetailedUser {
|
|
2785
2796
|
/** @format date-time */
|
|
2786
2797
|
createdAt: string;
|
|
@@ -8038,6 +8049,10 @@ export interface UpdateAiPromptRequest {
|
|
|
8038
8049
|
inputHint?: string | null;
|
|
8039
8050
|
isFeatured?: boolean | null;
|
|
8040
8051
|
icon?: string | null;
|
|
8052
|
+
}
|
|
8053
|
+
|
|
8054
|
+
export interface UpdateAiPromptToolsRequest {
|
|
8055
|
+
tools: AiPromptToolInput[];
|
|
8041
8056
|
agentSystemPrompt?: string | null;
|
|
8042
8057
|
}
|
|
8043
8058
|
|
|
@@ -10610,6 +10625,52 @@ export class Api<
|
|
|
10610
10625
|
...params,
|
|
10611
10626
|
}),
|
|
10612
10627
|
|
|
10628
|
+
/**
|
|
10629
|
+
* No description
|
|
10630
|
+
*
|
|
10631
|
+
* @tags AiAdminPrompt
|
|
10632
|
+
* @name GetAiTools
|
|
10633
|
+
* @summary List available agent tools and their settings schema
|
|
10634
|
+
* @request GET:/api/ai/prompts/tools
|
|
10635
|
+
* @secure
|
|
10636
|
+
* @response `200` `(AiToolCatalogItem)[]` OK
|
|
10637
|
+
*/
|
|
10638
|
+
getAiTools: (params: RequestParams = {}) =>
|
|
10639
|
+
this.request<AiToolCatalogItem[], any>({
|
|
10640
|
+
path: `/api/ai/prompts/tools`,
|
|
10641
|
+
method: "GET",
|
|
10642
|
+
secure: true,
|
|
10643
|
+
format: "json",
|
|
10644
|
+
...params,
|
|
10645
|
+
}),
|
|
10646
|
+
|
|
10647
|
+
/**
|
|
10648
|
+
* No description
|
|
10649
|
+
*
|
|
10650
|
+
* @tags AiAdminPrompt
|
|
10651
|
+
* @name UpdateAiPromptTools
|
|
10652
|
+
* @summary Replace the prompt's agent tool configuration
|
|
10653
|
+
* @request PUT:/api/ai/prompts/{id}/tools
|
|
10654
|
+
* @secure
|
|
10655
|
+
* @response `200` `AiPrompt` OK
|
|
10656
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
10657
|
+
* @response `404` `ProblemDetails` Not Found
|
|
10658
|
+
*/
|
|
10659
|
+
updateAiPromptTools: (
|
|
10660
|
+
id: string,
|
|
10661
|
+
data: UpdateAiPromptToolsRequest,
|
|
10662
|
+
params: RequestParams = {},
|
|
10663
|
+
) =>
|
|
10664
|
+
this.request<AiPrompt, ProblemDetails>({
|
|
10665
|
+
path: `/api/ai/prompts/${id}/tools`,
|
|
10666
|
+
method: "PUT",
|
|
10667
|
+
body: data,
|
|
10668
|
+
secure: true,
|
|
10669
|
+
type: "application/json",
|
|
10670
|
+
format: "json",
|
|
10671
|
+
...params,
|
|
10672
|
+
}),
|
|
10673
|
+
|
|
10613
10674
|
/**
|
|
10614
10675
|
* No description
|
|
10615
10676
|
*
|
|
@@ -16224,58 +16285,6 @@ export class Api<
|
|
|
16224
16285
|
...params,
|
|
16225
16286
|
}),
|
|
16226
16287
|
|
|
16227
|
-
/**
|
|
16228
|
-
* No description
|
|
16229
|
-
*
|
|
16230
|
-
* @tags LoanBorrowerRemoval
|
|
16231
|
-
* @name RemoveLoanBorrower
|
|
16232
|
-
* @summary Remove a co-borrower from an application in progress
|
|
16233
|
-
* @request POST:/api/loans/{loanId}/borrowers/{borrowerId}/remove
|
|
16234
|
-
* @secure
|
|
16235
|
-
* @response `204` `void` No Content
|
|
16236
|
-
* @response `400` `ProblemDetails` Bad Request
|
|
16237
|
-
* @response `403` `ProblemDetails` Forbidden
|
|
16238
|
-
* @response `404` `ProblemDetails` Not Found
|
|
16239
|
-
* @response `409` `ProblemDetails` Conflict
|
|
16240
|
-
*/
|
|
16241
|
-
removeLoanBorrower: (
|
|
16242
|
-
loanId: string,
|
|
16243
|
-
borrowerId: string,
|
|
16244
|
-
params: RequestParams = {},
|
|
16245
|
-
) =>
|
|
16246
|
-
this.request<void, ProblemDetails>({
|
|
16247
|
-
path: `/api/loans/${loanId}/borrowers/${borrowerId}/remove`,
|
|
16248
|
-
method: "POST",
|
|
16249
|
-
secure: true,
|
|
16250
|
-
...params,
|
|
16251
|
-
}),
|
|
16252
|
-
|
|
16253
|
-
/**
|
|
16254
|
-
* No description
|
|
16255
|
-
*
|
|
16256
|
-
* @tags LoanBorrowerRemoval
|
|
16257
|
-
* @name RestoreLoanBorrower
|
|
16258
|
-
* @summary Restore a removed co-borrower to an application in progress
|
|
16259
|
-
* @request POST:/api/loans/{loanId}/borrowers/{borrowerId}/restore
|
|
16260
|
-
* @secure
|
|
16261
|
-
* @response `204` `void` No Content
|
|
16262
|
-
* @response `400` `ProblemDetails` Bad Request
|
|
16263
|
-
* @response `403` `ProblemDetails` Forbidden
|
|
16264
|
-
* @response `404` `ProblemDetails` Not Found
|
|
16265
|
-
* @response `409` `ProblemDetails` Conflict
|
|
16266
|
-
*/
|
|
16267
|
-
restoreLoanBorrower: (
|
|
16268
|
-
loanId: string,
|
|
16269
|
-
borrowerId: string,
|
|
16270
|
-
params: RequestParams = {},
|
|
16271
|
-
) =>
|
|
16272
|
-
this.request<void, ProblemDetails>({
|
|
16273
|
-
path: `/api/loans/${loanId}/borrowers/${borrowerId}/restore`,
|
|
16274
|
-
method: "POST",
|
|
16275
|
-
secure: true,
|
|
16276
|
-
...params,
|
|
16277
|
-
}),
|
|
16278
|
-
|
|
16279
16288
|
/**
|
|
16280
16289
|
* No description
|
|
16281
16290
|
*
|
|
@@ -16715,25 +16724,18 @@ export class Api<
|
|
|
16715
16724
|
*
|
|
16716
16725
|
* @tags LoanDocumentFolders
|
|
16717
16726
|
* @name DeactivateLoanDocumentFolder
|
|
16718
|
-
* @summary Deactivate a loan document folder. Rejected
|
|
16727
|
+
* @summary Deactivate a loan document folder. Rejected for the system-default Unassigned folder.
|
|
16719
16728
|
* @request POST:/api/loan-document-folders/{id}/deactivate
|
|
16720
16729
|
* @secure
|
|
16721
16730
|
* @response `204` `void` No Content
|
|
16722
16731
|
* @response `400` `ProblemDetails` Bad Request
|
|
16723
16732
|
* @response `404` `ProblemDetails` Not Found
|
|
16724
|
-
* @response `409` `ProblemDetails` Conflict
|
|
16725
16733
|
*/
|
|
16726
|
-
deactivateLoanDocumentFolder: (
|
|
16727
|
-
id: string,
|
|
16728
|
-
data: DeactivateLoanDocumentFolderRequest,
|
|
16729
|
-
params: RequestParams = {},
|
|
16730
|
-
) =>
|
|
16734
|
+
deactivateLoanDocumentFolder: (id: string, params: RequestParams = {}) =>
|
|
16731
16735
|
this.request<void, ProblemDetails>({
|
|
16732
16736
|
path: `/api/loan-document-folders/${id}/deactivate`,
|
|
16733
16737
|
method: "POST",
|
|
16734
|
-
body: data,
|
|
16735
16738
|
secure: true,
|
|
16736
|
-
type: "application/json",
|
|
16737
16739
|
...params,
|
|
16738
16740
|
}),
|
|
16739
16741
|
|