@matech/thebigpos-sdk 3.21.0-dev-7192 → 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 +24 -30
- package/dist/index.cjs.map +2 -2
- package/dist/index.d.ts +40 -30
- package/dist/index.js +24 -30
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +66 -52
package/dist/index.d.ts
CHANGED
|
@@ -677,6 +677,7 @@ export interface AiPrompt {
|
|
|
677
677
|
isFeatured: boolean;
|
|
678
678
|
icon?: string | null;
|
|
679
679
|
agentSystemPrompt?: string | null;
|
|
680
|
+
tools?: AiPromptTool[] | null;
|
|
680
681
|
hasAccountOverride: boolean;
|
|
681
682
|
/** @format date-time */
|
|
682
683
|
createdAt: string;
|
|
@@ -770,6 +771,12 @@ export interface AiPromptSummary {
|
|
|
770
771
|
isFeatured: boolean;
|
|
771
772
|
icon?: string | null;
|
|
772
773
|
}
|
|
774
|
+
export interface AiPromptTool {
|
|
775
|
+
toolName: string;
|
|
776
|
+
}
|
|
777
|
+
export interface AiPromptToolInput {
|
|
778
|
+
toolName: string;
|
|
779
|
+
}
|
|
773
780
|
export interface AiTokenBudgetStatus {
|
|
774
781
|
/** @format int32 */
|
|
775
782
|
limit: number;
|
|
@@ -812,6 +819,12 @@ export interface AiTokenUsageWindowPaginated {
|
|
|
812
819
|
/** @format int64 */
|
|
813
820
|
count: number;
|
|
814
821
|
}
|
|
822
|
+
export interface AiToolCatalogItem {
|
|
823
|
+
toolName: string;
|
|
824
|
+
displayName: string;
|
|
825
|
+
description: string;
|
|
826
|
+
isWriteTool: boolean;
|
|
827
|
+
}
|
|
815
828
|
export interface AiUpdatedBy {
|
|
816
829
|
/** @format uuid */
|
|
817
830
|
id: string;
|
|
@@ -6652,6 +6665,9 @@ export interface UpdateAiPromptRequest {
|
|
|
6652
6665
|
inputHint?: string | null;
|
|
6653
6666
|
isFeatured?: boolean | null;
|
|
6654
6667
|
icon?: string | null;
|
|
6668
|
+
}
|
|
6669
|
+
export interface UpdateAiPromptToolsRequest {
|
|
6670
|
+
tools: AiPromptToolInput[];
|
|
6655
6671
|
agentSystemPrompt?: string | null;
|
|
6656
6672
|
}
|
|
6657
6673
|
export interface UpdateAiUrlSourceRequest {
|
|
@@ -7786,6 +7802,30 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7786
7802
|
/** @default false */
|
|
7787
7803
|
force?: boolean;
|
|
7788
7804
|
}, params?: RequestParams) => Promise<AxiosResponse<void, any, {}, any>>;
|
|
7805
|
+
/**
|
|
7806
|
+
* No description
|
|
7807
|
+
*
|
|
7808
|
+
* @tags AiAdminPrompt
|
|
7809
|
+
* @name GetAiTools
|
|
7810
|
+
* @summary List available agent tools and their settings schema
|
|
7811
|
+
* @request GET:/api/ai/prompts/tools
|
|
7812
|
+
* @secure
|
|
7813
|
+
* @response `200` `(AiToolCatalogItem)[]` OK
|
|
7814
|
+
*/
|
|
7815
|
+
getAiTools: (params?: RequestParams) => Promise<AxiosResponse<AiToolCatalogItem[], any, {}, any>>;
|
|
7816
|
+
/**
|
|
7817
|
+
* No description
|
|
7818
|
+
*
|
|
7819
|
+
* @tags AiAdminPrompt
|
|
7820
|
+
* @name UpdateAiPromptTools
|
|
7821
|
+
* @summary Replace the prompt's agent tool configuration
|
|
7822
|
+
* @request PUT:/api/ai/prompts/{id}/tools
|
|
7823
|
+
* @secure
|
|
7824
|
+
* @response `200` `AiPrompt` OK
|
|
7825
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
7826
|
+
* @response `404` `ProblemDetails` Not Found
|
|
7827
|
+
*/
|
|
7828
|
+
updateAiPromptTools: (id: string, data: UpdateAiPromptToolsRequest, params?: RequestParams) => Promise<AxiosResponse<AiPrompt, any, {}, any>>;
|
|
7789
7829
|
/**
|
|
7790
7830
|
* No description
|
|
7791
7831
|
*
|
|
@@ -10903,36 +10943,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10903
10943
|
* @response `409` `ProblemDetails` Conflict
|
|
10904
10944
|
*/
|
|
10905
10945
|
restoreLoanApplication: (loanId: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}, any>>;
|
|
10906
|
-
/**
|
|
10907
|
-
* No description
|
|
10908
|
-
*
|
|
10909
|
-
* @tags LoanBorrowerRemoval
|
|
10910
|
-
* @name RemoveLoanBorrower
|
|
10911
|
-
* @summary Remove a co-borrower from an application in progress
|
|
10912
|
-
* @request POST:/api/loans/{loanId}/borrowers/{borrowerId}/remove
|
|
10913
|
-
* @secure
|
|
10914
|
-
* @response `204` `void` No Content
|
|
10915
|
-
* @response `400` `ProblemDetails` Bad Request
|
|
10916
|
-
* @response `403` `ProblemDetails` Forbidden
|
|
10917
|
-
* @response `404` `ProblemDetails` Not Found
|
|
10918
|
-
* @response `409` `ProblemDetails` Conflict
|
|
10919
|
-
*/
|
|
10920
|
-
removeLoanBorrower: (loanId: string, borrowerId: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}, any>>;
|
|
10921
|
-
/**
|
|
10922
|
-
* No description
|
|
10923
|
-
*
|
|
10924
|
-
* @tags LoanBorrowerRemoval
|
|
10925
|
-
* @name RestoreLoanBorrower
|
|
10926
|
-
* @summary Restore a removed co-borrower to an application in progress
|
|
10927
|
-
* @request POST:/api/loans/{loanId}/borrowers/{borrowerId}/restore
|
|
10928
|
-
* @secure
|
|
10929
|
-
* @response `204` `void` No Content
|
|
10930
|
-
* @response `400` `ProblemDetails` Bad Request
|
|
10931
|
-
* @response `403` `ProblemDetails` Forbidden
|
|
10932
|
-
* @response `404` `ProblemDetails` Not Found
|
|
10933
|
-
* @response `409` `ProblemDetails` Conflict
|
|
10934
|
-
*/
|
|
10935
|
-
restoreLoanBorrower: (loanId: string, borrowerId: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}, any>>;
|
|
10936
10946
|
/**
|
|
10937
10947
|
* No description
|
|
10938
10948
|
*
|
package/dist/index.js
CHANGED
|
@@ -369,6 +369,30 @@ export class Api extends HttpClient {
|
|
|
369
369
|
* @response `409` `ProblemDetails` Conflict
|
|
370
370
|
*/
|
|
371
371
|
deleteAiPrompt: (id, query, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/${id}`, method: "DELETE", query: query, secure: true }, params)),
|
|
372
|
+
/**
|
|
373
|
+
* No description
|
|
374
|
+
*
|
|
375
|
+
* @tags AiAdminPrompt
|
|
376
|
+
* @name GetAiTools
|
|
377
|
+
* @summary List available agent tools and their settings schema
|
|
378
|
+
* @request GET:/api/ai/prompts/tools
|
|
379
|
+
* @secure
|
|
380
|
+
* @response `200` `(AiToolCatalogItem)[]` OK
|
|
381
|
+
*/
|
|
382
|
+
getAiTools: (params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/tools`, method: "GET", secure: true, format: "json" }, params)),
|
|
383
|
+
/**
|
|
384
|
+
* No description
|
|
385
|
+
*
|
|
386
|
+
* @tags AiAdminPrompt
|
|
387
|
+
* @name UpdateAiPromptTools
|
|
388
|
+
* @summary Replace the prompt's agent tool configuration
|
|
389
|
+
* @request PUT:/api/ai/prompts/{id}/tools
|
|
390
|
+
* @secure
|
|
391
|
+
* @response `200` `AiPrompt` OK
|
|
392
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
393
|
+
* @response `404` `ProblemDetails` Not Found
|
|
394
|
+
*/
|
|
395
|
+
updateAiPromptTools: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/${id}/tools`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
372
396
|
/**
|
|
373
397
|
* No description
|
|
374
398
|
*
|
|
@@ -3108,36 +3132,6 @@ export class Api extends HttpClient {
|
|
|
3108
3132
|
* @response `409` `ProblemDetails` Conflict
|
|
3109
3133
|
*/
|
|
3110
3134
|
restoreLoanApplication: (loanId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/application/restore`, method: "POST", secure: true }, params)),
|
|
3111
|
-
/**
|
|
3112
|
-
* No description
|
|
3113
|
-
*
|
|
3114
|
-
* @tags LoanBorrowerRemoval
|
|
3115
|
-
* @name RemoveLoanBorrower
|
|
3116
|
-
* @summary Remove a co-borrower from an application in progress
|
|
3117
|
-
* @request POST:/api/loans/{loanId}/borrowers/{borrowerId}/remove
|
|
3118
|
-
* @secure
|
|
3119
|
-
* @response `204` `void` No Content
|
|
3120
|
-
* @response `400` `ProblemDetails` Bad Request
|
|
3121
|
-
* @response `403` `ProblemDetails` Forbidden
|
|
3122
|
-
* @response `404` `ProblemDetails` Not Found
|
|
3123
|
-
* @response `409` `ProblemDetails` Conflict
|
|
3124
|
-
*/
|
|
3125
|
-
removeLoanBorrower: (loanId, borrowerId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/borrowers/${borrowerId}/remove`, method: "POST", secure: true }, params)),
|
|
3126
|
-
/**
|
|
3127
|
-
* No description
|
|
3128
|
-
*
|
|
3129
|
-
* @tags LoanBorrowerRemoval
|
|
3130
|
-
* @name RestoreLoanBorrower
|
|
3131
|
-
* @summary Restore a removed co-borrower to an application in progress
|
|
3132
|
-
* @request POST:/api/loans/{loanId}/borrowers/{borrowerId}/restore
|
|
3133
|
-
* @secure
|
|
3134
|
-
* @response `204` `void` No Content
|
|
3135
|
-
* @response `400` `ProblemDetails` Bad Request
|
|
3136
|
-
* @response `403` `ProblemDetails` Forbidden
|
|
3137
|
-
* @response `404` `ProblemDetails` Not Found
|
|
3138
|
-
* @response `409` `ProblemDetails` Conflict
|
|
3139
|
-
*/
|
|
3140
|
-
restoreLoanBorrower: (loanId, borrowerId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/borrowers/${borrowerId}/restore`, method: "POST", secure: true }, params)),
|
|
3141
3135
|
/**
|
|
3142
3136
|
* No description
|
|
3143
3137
|
*
|