@matech/thebigpos-sdk 3.25.0-dev-7840 → 3.25.0-dev-7880
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 +28 -0
- package/dist/index.cjs.map +2 -2
- package/dist/index.d.ts +40 -0
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +66 -0
package/dist/index.d.ts
CHANGED
|
@@ -117,6 +117,7 @@ export type AiUrlDomainStatus = "Approved" | "Rejected";
|
|
|
117
117
|
export type AiStructuredDataType = "Table" | "DocumentAnalysis" | "DocumentList" | "GeneratedDocument" | "CitedPassages" | "PendingLoanUpdate";
|
|
118
118
|
export type AiPromptScope = "General" | "LoanSpecific";
|
|
119
119
|
export type AiPromptCategory = "DocumentAnalysis" | "DataQuery" | "General" | "Action";
|
|
120
|
+
export type AiPendingLoanUpdateOutcome = "Applied" | "Refused";
|
|
120
121
|
export type AiGuardrailCategory = "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
|
|
121
122
|
export type AiDisplayHint = "Table" | "SummaryCards" | "RankedList" | "Comparison" | "ExecutiveBrief";
|
|
122
123
|
export type AiAuditEventType = "Error" | "GuardrailBlockedPre" | "GuardrailPassedPre" | "IntentClassified" | "LoanResolvedFromMessage" | "DocumentNotFound" | "GuardrailBlockedPost" | "GuardrailPassedPost" | "DocumentAnalyzed" | "DocumentList" | "DocumentResolutionAmbiguous" | "ResponseGenerated" | "ParametersExtracted" | "QueryExecuted" | "LoanContextNotFound" | "LoanContextLoaded" | "GuardrailBlockedBedrock" | "PromptMatched" | "QueryCondensed" | "IntentParseFailed" | "LoanSearchTermDiscarded" | "CanonicalFieldsSelected" | "LoanAccessDenied" | "AgentModelCall" | "AgentToolCallRequested" | "AgentToolCallCompleted" | "AgentToolCallFailed" | "AgentLoopLimitReached" | "RequestCancelled" | "KnowledgeBaseRetrieved" | "PromptResolutionFailed" | "PromptTriggerPublished" | "PromptTriggerSkipped" | "PromptRunCompleted" | "LoanUpdateProposed" | "LoanUpdateApplied" | "LoanUpdateRefused" | "PromptTriggerCoalesced" | "RecommendationRunCompleted" | "BoundPromptForced";
|
|
@@ -493,6 +494,7 @@ export interface AiChatMetadata {
|
|
|
493
494
|
wasBlocked: boolean;
|
|
494
495
|
blockedReason?: string | null;
|
|
495
496
|
tokenBudget?: AiTokenBudgetStatus | null;
|
|
497
|
+
pendingLoanUpdateDecision?: AiPendingLoanUpdateDecision | null;
|
|
496
498
|
}
|
|
497
499
|
export interface AiChatRequest {
|
|
498
500
|
message: string;
|
|
@@ -631,6 +633,12 @@ export interface AiGuardrail {
|
|
|
631
633
|
updatedAt?: string | null;
|
|
632
634
|
updatedBy?: AiUpdatedBy | null;
|
|
633
635
|
}
|
|
636
|
+
export interface AiPendingLoanUpdateDecision {
|
|
637
|
+
/** @format uuid */
|
|
638
|
+
pendingLoanUpdateId: string;
|
|
639
|
+
outcome: AiPendingLoanUpdateDecisionOutcomeEnum;
|
|
640
|
+
reason?: string | null;
|
|
641
|
+
}
|
|
634
642
|
export interface AiPrompt {
|
|
635
643
|
/** @format uuid */
|
|
636
644
|
id: string;
|
|
@@ -5484,6 +5492,9 @@ export interface ReorderUserTableViewsRequest {
|
|
|
5484
5492
|
export interface RequestImpersonationRequest {
|
|
5485
5493
|
email: string;
|
|
5486
5494
|
}
|
|
5495
|
+
export interface ResendChallengeCodeRequest {
|
|
5496
|
+
sessionId: string;
|
|
5497
|
+
}
|
|
5487
5498
|
export interface ResetPasswordRequest {
|
|
5488
5499
|
token: string;
|
|
5489
5500
|
password: string;
|
|
@@ -7321,6 +7332,7 @@ export type AiAuditLogEventTypeEnum = "Error" | "GuardrailBlockedPre" | "Guardra
|
|
|
7321
7332
|
export type AiChatStructuredDataTypeEnum = "Table" | "DocumentAnalysis" | "DocumentList" | "GeneratedDocument" | "CitedPassages" | "PendingLoanUpdate";
|
|
7322
7333
|
export type AiCitedDocumentSourceTypeEnum = "File" | "FreeText";
|
|
7323
7334
|
export type AiGuardrailCategoryEnum = "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
|
|
7335
|
+
export type AiPendingLoanUpdateDecisionOutcomeEnum = "Applied" | "Refused";
|
|
7324
7336
|
export type AiUrlSourceCategoryEnum = "Regulatory" | "Guidelines" | "MarketData" | "Custom";
|
|
7325
7337
|
export type AiUrlSourceScopeEnum = "FullDomain" | "SpecificPath";
|
|
7326
7338
|
export type AiUrlSourceApprovalStatusEnum = "Pending" | "Approved" | "Rejected";
|
|
@@ -8016,6 +8028,20 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8016
8028
|
* @response `429` `ProblemDetails` Too Many Requests
|
|
8017
8029
|
*/
|
|
8018
8030
|
aiChat: (data: AiChatRequest, params?: RequestParams) => Promise<AxiosResponse<AiChat, any, {}, any>>;
|
|
8031
|
+
/**
|
|
8032
|
+
* No description
|
|
8033
|
+
*
|
|
8034
|
+
* @tags AiChat
|
|
8035
|
+
* @name RejectAiPendingLoanUpdate
|
|
8036
|
+
* @summary Reject a pending AI loan change so a new one can be proposed
|
|
8037
|
+
* @request POST:/api/ai/chats/pending-loan-updates/{pendingLoanUpdateId}/reject
|
|
8038
|
+
* @secure
|
|
8039
|
+
* @response `204` `void` No Content
|
|
8040
|
+
* @response `401` `ProblemDetails` Unauthorized
|
|
8041
|
+
* @response `404` `ProblemDetails` Not Found
|
|
8042
|
+
* @response `429` `ProblemDetails` Too Many Requests
|
|
8043
|
+
*/
|
|
8044
|
+
rejectAiPendingLoanUpdate: (pendingLoanUpdateId: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}, any>>;
|
|
8019
8045
|
/**
|
|
8020
8046
|
* No description
|
|
8021
8047
|
*
|
|
@@ -8723,6 +8749,20 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8723
8749
|
* @response `429` `ProblemDetails` Too Many Requests
|
|
8724
8750
|
*/
|
|
8725
8751
|
getTokenFromChallengeCode: (data: TokenChallengeRequest, params?: RequestParams) => Promise<AxiosResponse<UserDeactivated, any, {}, any>>;
|
|
8752
|
+
/**
|
|
8753
|
+
* No description
|
|
8754
|
+
*
|
|
8755
|
+
* @tags Authentication
|
|
8756
|
+
* @name ResendChallengeCode
|
|
8757
|
+
* @summary Resend Challenge Code
|
|
8758
|
+
* @request POST:/api/token/code/resend
|
|
8759
|
+
* @secure
|
|
8760
|
+
* @response `204` `void` No Content
|
|
8761
|
+
* @response `422` `UnprocessableEntity` Unprocessable Content
|
|
8762
|
+
* @response `429` `ProblemDetails` Too Many Requests
|
|
8763
|
+
* @response `503` `void` Service Unavailable
|
|
8764
|
+
*/
|
|
8765
|
+
resendChallengeCode: (data: ResendChallengeCodeRequest, params?: RequestParams) => Promise<AxiosResponse<void, any, {}, any>>;
|
|
8726
8766
|
/**
|
|
8727
8767
|
* No description
|
|
8728
8768
|
*
|
package/dist/index.js
CHANGED
|
@@ -498,6 +498,20 @@ export class Api extends HttpClient {
|
|
|
498
498
|
* @response `429` `ProblemDetails` Too Many Requests
|
|
499
499
|
*/
|
|
500
500
|
aiChat: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/chats`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
501
|
+
/**
|
|
502
|
+
* No description
|
|
503
|
+
*
|
|
504
|
+
* @tags AiChat
|
|
505
|
+
* @name RejectAiPendingLoanUpdate
|
|
506
|
+
* @summary Reject a pending AI loan change so a new one can be proposed
|
|
507
|
+
* @request POST:/api/ai/chats/pending-loan-updates/{pendingLoanUpdateId}/reject
|
|
508
|
+
* @secure
|
|
509
|
+
* @response `204` `void` No Content
|
|
510
|
+
* @response `401` `ProblemDetails` Unauthorized
|
|
511
|
+
* @response `404` `ProblemDetails` Not Found
|
|
512
|
+
* @response `429` `ProblemDetails` Too Many Requests
|
|
513
|
+
*/
|
|
514
|
+
rejectAiPendingLoanUpdate: (pendingLoanUpdateId, params = {}) => this.request(Object.assign({ path: `/api/ai/chats/pending-loan-updates/${pendingLoanUpdateId}/reject`, method: "POST", secure: true }, params)),
|
|
501
515
|
/**
|
|
502
516
|
* No description
|
|
503
517
|
*
|
|
@@ -1120,6 +1134,20 @@ export class Api extends HttpClient {
|
|
|
1120
1134
|
* @response `429` `ProblemDetails` Too Many Requests
|
|
1121
1135
|
*/
|
|
1122
1136
|
getTokenFromChallengeCode: (data, params = {}) => this.request(Object.assign({ path: `/api/token/code`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
1137
|
+
/**
|
|
1138
|
+
* No description
|
|
1139
|
+
*
|
|
1140
|
+
* @tags Authentication
|
|
1141
|
+
* @name ResendChallengeCode
|
|
1142
|
+
* @summary Resend Challenge Code
|
|
1143
|
+
* @request POST:/api/token/code/resend
|
|
1144
|
+
* @secure
|
|
1145
|
+
* @response `204` `void` No Content
|
|
1146
|
+
* @response `422` `UnprocessableEntity` Unprocessable Content
|
|
1147
|
+
* @response `429` `ProblemDetails` Too Many Requests
|
|
1148
|
+
* @response `503` `void` Service Unavailable
|
|
1149
|
+
*/
|
|
1150
|
+
resendChallengeCode: (data, params = {}) => this.request(Object.assign({ path: `/api/token/code/resend`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
|
|
1123
1151
|
/**
|
|
1124
1152
|
* No description
|
|
1125
1153
|
*
|