@matech/thebigpos-sdk 2.45.0-rc7 → 2.45.0-rc9
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 +214 -282
- package/dist/index.js +170 -190
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +375 -487
package/src/index.ts
CHANGED
|
@@ -552,21 +552,6 @@ export type AiDisplayHint =
|
|
|
552
552
|
| "Comparison"
|
|
553
553
|
| "ExecutiveBrief";
|
|
554
554
|
|
|
555
|
-
export type AiConfigEntityType =
|
|
556
|
-
| "Prompt"
|
|
557
|
-
| "Guardrail"
|
|
558
|
-
| "CanonicalField"
|
|
559
|
-
| "UrlSource"
|
|
560
|
-
| "AdminSettings"
|
|
561
|
-
| "AccountTokenSettings"
|
|
562
|
-
| "AccountSettings";
|
|
563
|
-
|
|
564
|
-
export type AiConfigChangeAction =
|
|
565
|
-
| "Created"
|
|
566
|
-
| "Updated"
|
|
567
|
-
| "Deleted"
|
|
568
|
-
| "Toggled";
|
|
569
|
-
|
|
570
555
|
export type AiAuditEventType =
|
|
571
556
|
| "Error"
|
|
572
557
|
| "GuardrailBlockedPre"
|
|
@@ -711,7 +696,6 @@ export interface AccountSettings {
|
|
|
711
696
|
smsNumber?: string | null;
|
|
712
697
|
ssoHostOverride?: string | null;
|
|
713
698
|
isEarlyAdopter: boolean;
|
|
714
|
-
isAIEnabled: boolean;
|
|
715
699
|
}
|
|
716
700
|
|
|
717
701
|
export interface AccountSettingsRequest {
|
|
@@ -1117,37 +1101,6 @@ export interface AiChatStructuredData {
|
|
|
1117
1101
|
generatedFileName?: string | null;
|
|
1118
1102
|
}
|
|
1119
1103
|
|
|
1120
|
-
export interface AiConfigChangeLog {
|
|
1121
|
-
/** @format uuid */
|
|
1122
|
-
id: string;
|
|
1123
|
-
/** @format uuid */
|
|
1124
|
-
accountId?: string | null;
|
|
1125
|
-
/** @format uuid */
|
|
1126
|
-
actorUserId: string;
|
|
1127
|
-
entityType:
|
|
1128
|
-
| "Prompt"
|
|
1129
|
-
| "Guardrail"
|
|
1130
|
-
| "CanonicalField"
|
|
1131
|
-
| "UrlSource"
|
|
1132
|
-
| "AdminSettings"
|
|
1133
|
-
| "AccountTokenSettings"
|
|
1134
|
-
| "AccountSettings";
|
|
1135
|
-
/** @format uuid */
|
|
1136
|
-
entityId?: string | null;
|
|
1137
|
-
action: "Created" | "Updated" | "Deleted" | "Toggled";
|
|
1138
|
-
before?: any;
|
|
1139
|
-
after?: any;
|
|
1140
|
-
/** @format date-time */
|
|
1141
|
-
createdAt: string;
|
|
1142
|
-
}
|
|
1143
|
-
|
|
1144
|
-
export interface AiConfigChangeLogPaginated {
|
|
1145
|
-
rows: AiConfigChangeLog[];
|
|
1146
|
-
pagination: Pagination;
|
|
1147
|
-
/** @format int64 */
|
|
1148
|
-
count: number;
|
|
1149
|
-
}
|
|
1150
|
-
|
|
1151
1104
|
export interface AiConversationAuditSummary {
|
|
1152
1105
|
/** @format uuid */
|
|
1153
1106
|
conversationId: string;
|
|
@@ -1213,6 +1166,10 @@ export interface AiConversationListItemPaginated {
|
|
|
1213
1166
|
count: number;
|
|
1214
1167
|
}
|
|
1215
1168
|
|
|
1169
|
+
export interface AiEnabled {
|
|
1170
|
+
isEnabled: boolean;
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1216
1173
|
export interface AiGuardrail {
|
|
1217
1174
|
/** @format uuid */
|
|
1218
1175
|
id: string;
|
|
@@ -2628,6 +2585,7 @@ export interface EncompassPackageItem {
|
|
|
2628
2585
|
/** @format date-time */
|
|
2629
2586
|
createdAt: string;
|
|
2630
2587
|
recipientId: string;
|
|
2588
|
+
borrowerName?: string | null;
|
|
2631
2589
|
title?: string | null;
|
|
2632
2590
|
/** @format date-time */
|
|
2633
2591
|
issuedAt?: string | null;
|
|
@@ -7789,16 +7747,16 @@ export class Api<
|
|
|
7789
7747
|
/**
|
|
7790
7748
|
* No description
|
|
7791
7749
|
*
|
|
7792
|
-
* @tags
|
|
7793
|
-
* @name
|
|
7794
|
-
* @summary Get
|
|
7795
|
-
* @request GET:/api/ai/
|
|
7750
|
+
* @tags AiAccount
|
|
7751
|
+
* @name GetAccountAiEnabled
|
|
7752
|
+
* @summary Get whether AI is enabled for an account (SuperAdmin only)
|
|
7753
|
+
* @request GET:/api/ai/accounts/{accountId}/ai-enabled
|
|
7796
7754
|
* @secure
|
|
7797
|
-
* @response `200` `
|
|
7755
|
+
* @response `200` `AiEnabled` OK
|
|
7798
7756
|
*/
|
|
7799
|
-
|
|
7800
|
-
this.request<
|
|
7801
|
-
path: `/api/ai/
|
|
7757
|
+
getAccountAiEnabled: (accountId: string, params: RequestParams = {}) =>
|
|
7758
|
+
this.request<AiEnabled, any>({
|
|
7759
|
+
path: `/api/ai/accounts/${accountId}/ai-enabled`,
|
|
7802
7760
|
method: "GET",
|
|
7803
7761
|
secure: true,
|
|
7804
7762
|
format: "json",
|
|
@@ -7808,147 +7766,41 @@ export class Api<
|
|
|
7808
7766
|
/**
|
|
7809
7767
|
* No description
|
|
7810
7768
|
*
|
|
7811
|
-
* @tags
|
|
7812
|
-
* @name
|
|
7813
|
-
* @summary
|
|
7814
|
-
* @request PUT:/api/ai/
|
|
7769
|
+
* @tags AiAccount
|
|
7770
|
+
* @name SetAccountAiEnabled
|
|
7771
|
+
* @summary Enable or disable AI for an account (SuperAdmin only)
|
|
7772
|
+
* @request PUT:/api/ai/accounts/{accountId}/ai-enabled
|
|
7815
7773
|
* @secure
|
|
7816
|
-
* @response `
|
|
7817
|
-
* @response `400` `ProblemDetails` Bad Request
|
|
7774
|
+
* @response `204` `void` No Content
|
|
7818
7775
|
*/
|
|
7819
|
-
|
|
7820
|
-
|
|
7776
|
+
setAccountAiEnabled: (
|
|
7777
|
+
accountId: string,
|
|
7778
|
+
data: SetAiEnabledRequest,
|
|
7821
7779
|
params: RequestParams = {},
|
|
7822
7780
|
) =>
|
|
7823
|
-
this.request<
|
|
7824
|
-
path: `/api/ai/
|
|
7781
|
+
this.request<void, any>({
|
|
7782
|
+
path: `/api/ai/accounts/${accountId}/ai-enabled`,
|
|
7825
7783
|
method: "PUT",
|
|
7826
7784
|
body: data,
|
|
7827
7785
|
secure: true,
|
|
7828
7786
|
type: ContentType.Json,
|
|
7829
|
-
format: "json",
|
|
7830
|
-
...params,
|
|
7831
|
-
}),
|
|
7832
|
-
|
|
7833
|
-
/**
|
|
7834
|
-
* No description
|
|
7835
|
-
*
|
|
7836
|
-
* @tags AiAdmin
|
|
7837
|
-
* @name GetAiAuditLogs
|
|
7838
|
-
* @summary Get paginated audit logs
|
|
7839
|
-
* @request GET:/api/ai/admin/audit-logs
|
|
7840
|
-
* @secure
|
|
7841
|
-
* @response `200` `AiAuditLogPaginated` OK
|
|
7842
|
-
*/
|
|
7843
|
-
getAiAuditLogs: (
|
|
7844
|
-
query?: {
|
|
7845
|
-
eventType?: AiAuditEventType;
|
|
7846
|
-
/** @format uuid */
|
|
7847
|
-
requestId?: string;
|
|
7848
|
-
/** @format uuid */
|
|
7849
|
-
userId?: string;
|
|
7850
|
-
/** @format uuid */
|
|
7851
|
-
conversationId?: string;
|
|
7852
|
-
blockedOnly?: boolean;
|
|
7853
|
-
/** @format date-time */
|
|
7854
|
-
startDate?: string;
|
|
7855
|
-
/** @format date-time */
|
|
7856
|
-
endDate?: string;
|
|
7857
|
-
/** @format int32 */
|
|
7858
|
-
pageSize?: number;
|
|
7859
|
-
/** @format int32 */
|
|
7860
|
-
pageNumber?: number;
|
|
7861
|
-
sortBy?: string;
|
|
7862
|
-
sortDirection?: string;
|
|
7863
|
-
},
|
|
7864
|
-
params: RequestParams = {},
|
|
7865
|
-
) =>
|
|
7866
|
-
this.request<AiAuditLogPaginated, any>({
|
|
7867
|
-
path: `/api/ai/admin/audit-logs`,
|
|
7868
|
-
method: "GET",
|
|
7869
|
-
query: query,
|
|
7870
|
-
secure: true,
|
|
7871
|
-
format: "json",
|
|
7872
|
-
...params,
|
|
7873
|
-
}),
|
|
7874
|
-
|
|
7875
|
-
/**
|
|
7876
|
-
* No description
|
|
7877
|
-
*
|
|
7878
|
-
* @tags AiAdmin
|
|
7879
|
-
* @name GetAiRequestLifecycle
|
|
7880
|
-
* @summary Get the full event lifecycle of a single AI request
|
|
7881
|
-
* @request GET:/api/ai/admin/audit-logs/request/{requestId}
|
|
7882
|
-
* @secure
|
|
7883
|
-
* @response `200` `(AiAuditLog)[]` OK
|
|
7884
|
-
*/
|
|
7885
|
-
getAiRequestLifecycle: (requestId: string, params: RequestParams = {}) =>
|
|
7886
|
-
this.request<AiAuditLog[], any>({
|
|
7887
|
-
path: `/api/ai/admin/audit-logs/request/${requestId}`,
|
|
7888
|
-
method: "GET",
|
|
7889
|
-
secure: true,
|
|
7890
|
-
format: "json",
|
|
7891
|
-
...params,
|
|
7892
|
-
}),
|
|
7893
|
-
|
|
7894
|
-
/**
|
|
7895
|
-
* No description
|
|
7896
|
-
*
|
|
7897
|
-
* @tags AiAdmin
|
|
7898
|
-
* @name GetAiAuditConversations
|
|
7899
|
-
* @summary List conversations with their audit roll-up — origin user, turns, status, tokens
|
|
7900
|
-
* @request GET:/api/ai/admin/audit-conversations
|
|
7901
|
-
* @secure
|
|
7902
|
-
* @response `200` `AiConversationAuditSummaryPaginated` OK
|
|
7903
|
-
*/
|
|
7904
|
-
getAiAuditConversations: (
|
|
7905
|
-
query?: {
|
|
7906
|
-
searchText?: string;
|
|
7907
|
-
/** @format date-time */
|
|
7908
|
-
startDate?: string;
|
|
7909
|
-
/** @format date-time */
|
|
7910
|
-
endDate?: string;
|
|
7911
|
-
/** @format int32 */
|
|
7912
|
-
pageSize?: number;
|
|
7913
|
-
/** @format int32 */
|
|
7914
|
-
pageNumber?: number;
|
|
7915
|
-
sortBy?: string;
|
|
7916
|
-
sortDirection?: string;
|
|
7917
|
-
},
|
|
7918
|
-
params: RequestParams = {},
|
|
7919
|
-
) =>
|
|
7920
|
-
this.request<AiConversationAuditSummaryPaginated, any>({
|
|
7921
|
-
path: `/api/ai/admin/audit-conversations`,
|
|
7922
|
-
method: "GET",
|
|
7923
|
-
query: query,
|
|
7924
|
-
secure: true,
|
|
7925
|
-
format: "json",
|
|
7926
7787
|
...params,
|
|
7927
7788
|
}),
|
|
7928
7789
|
|
|
7929
7790
|
/**
|
|
7930
7791
|
* No description
|
|
7931
7792
|
*
|
|
7932
|
-
* @tags
|
|
7933
|
-
* @name
|
|
7934
|
-
* @summary Get AI
|
|
7935
|
-
* @request GET:/api/ai/
|
|
7793
|
+
* @tags AiAccountSettings
|
|
7794
|
+
* @name GetAiAccountSettings
|
|
7795
|
+
* @summary Get account AI settings
|
|
7796
|
+
* @request GET:/api/ai/account-settings
|
|
7936
7797
|
* @secure
|
|
7937
|
-
* @response `200` `
|
|
7798
|
+
* @response `200` `AiAccountSettings` OK
|
|
7938
7799
|
*/
|
|
7939
|
-
|
|
7940
|
-
|
|
7941
|
-
|
|
7942
|
-
startDate?: string;
|
|
7943
|
-
/** @format date-time */
|
|
7944
|
-
endDate?: string;
|
|
7945
|
-
},
|
|
7946
|
-
params: RequestParams = {},
|
|
7947
|
-
) =>
|
|
7948
|
-
this.request<AiAdminStats, any>({
|
|
7949
|
-
path: `/api/ai/admin/stats`,
|
|
7800
|
+
getAiAccountSettings: (params: RequestParams = {}) =>
|
|
7801
|
+
this.request<AiAccountSettings, any>({
|
|
7802
|
+
path: `/api/ai/account-settings`,
|
|
7950
7803
|
method: "GET",
|
|
7951
|
-
query: query,
|
|
7952
7804
|
secure: true,
|
|
7953
7805
|
format: "json",
|
|
7954
7806
|
...params,
|
|
@@ -7957,39 +7809,24 @@ export class Api<
|
|
|
7957
7809
|
/**
|
|
7958
7810
|
* No description
|
|
7959
7811
|
*
|
|
7960
|
-
* @tags
|
|
7961
|
-
* @name
|
|
7962
|
-
* @summary
|
|
7963
|
-
* @request
|
|
7812
|
+
* @tags AiAccountSettings
|
|
7813
|
+
* @name UpdateAiAccountSettings
|
|
7814
|
+
* @summary Update account AI settings
|
|
7815
|
+
* @request PUT:/api/ai/account-settings
|
|
7964
7816
|
* @secure
|
|
7965
|
-
* @response `200` `
|
|
7817
|
+
* @response `200` `AiAccountSettings` OK
|
|
7818
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
7966
7819
|
*/
|
|
7967
|
-
|
|
7968
|
-
|
|
7969
|
-
entityType?: AiConfigEntityType;
|
|
7970
|
-
/** @format uuid */
|
|
7971
|
-
entityId?: string;
|
|
7972
|
-
/** @format uuid */
|
|
7973
|
-
actorUserId?: string;
|
|
7974
|
-
action?: AiConfigChangeAction;
|
|
7975
|
-
/** @format date-time */
|
|
7976
|
-
startDate?: string;
|
|
7977
|
-
/** @format date-time */
|
|
7978
|
-
endDate?: string;
|
|
7979
|
-
/** @format int32 */
|
|
7980
|
-
pageSize?: number;
|
|
7981
|
-
/** @format int32 */
|
|
7982
|
-
pageNumber?: number;
|
|
7983
|
-
sortBy?: string;
|
|
7984
|
-
sortDirection?: string;
|
|
7985
|
-
},
|
|
7820
|
+
updateAiAccountSettings: (
|
|
7821
|
+
data: AiAccountSettingsRequest,
|
|
7986
7822
|
params: RequestParams = {},
|
|
7987
7823
|
) =>
|
|
7988
|
-
this.request<
|
|
7989
|
-
path: `/api/ai/
|
|
7990
|
-
method: "
|
|
7991
|
-
|
|
7824
|
+
this.request<AiAccountSettings, ProblemDetails>({
|
|
7825
|
+
path: `/api/ai/account-settings`,
|
|
7826
|
+
method: "PUT",
|
|
7827
|
+
body: data,
|
|
7992
7828
|
secure: true,
|
|
7829
|
+
type: ContentType.Json,
|
|
7993
7830
|
format: "json",
|
|
7994
7831
|
...params,
|
|
7995
7832
|
}),
|
|
@@ -8000,13 +7837,13 @@ export class Api<
|
|
|
8000
7837
|
* @tags AiAdminPrompt
|
|
8001
7838
|
* @name GetAiPrompts
|
|
8002
7839
|
* @summary Get all prompts
|
|
8003
|
-
* @request GET:/api/ai/
|
|
7840
|
+
* @request GET:/api/ai/prompts
|
|
8004
7841
|
* @secure
|
|
8005
7842
|
* @response `200` `(AiPrompt)[]` OK
|
|
8006
7843
|
*/
|
|
8007
7844
|
getAiPrompts: (params: RequestParams = {}) =>
|
|
8008
7845
|
this.request<AiPrompt[], any>({
|
|
8009
|
-
path: `/api/ai/
|
|
7846
|
+
path: `/api/ai/prompts`,
|
|
8010
7847
|
method: "GET",
|
|
8011
7848
|
secure: true,
|
|
8012
7849
|
format: "json",
|
|
@@ -8019,14 +7856,14 @@ export class Api<
|
|
|
8019
7856
|
* @tags AiAdminPrompt
|
|
8020
7857
|
* @name CreateAiPrompt
|
|
8021
7858
|
* @summary Create custom prompt
|
|
8022
|
-
* @request POST:/api/ai/
|
|
7859
|
+
* @request POST:/api/ai/prompts
|
|
8023
7860
|
* @secure
|
|
8024
7861
|
* @response `201` `AiPrompt` Created
|
|
8025
7862
|
* @response `400` `ProblemDetails` Bad Request
|
|
8026
7863
|
*/
|
|
8027
7864
|
createAiPrompt: (data: CreateAiPromptRequest, params: RequestParams = {}) =>
|
|
8028
7865
|
this.request<AiPrompt, ProblemDetails>({
|
|
8029
|
-
path: `/api/ai/
|
|
7866
|
+
path: `/api/ai/prompts`,
|
|
8030
7867
|
method: "POST",
|
|
8031
7868
|
body: data,
|
|
8032
7869
|
secure: true,
|
|
@@ -8041,14 +7878,14 @@ export class Api<
|
|
|
8041
7878
|
* @tags AiAdminPrompt
|
|
8042
7879
|
* @name GetAiPrompt
|
|
8043
7880
|
* @summary Get prompt by ID
|
|
8044
|
-
* @request GET:/api/ai/
|
|
7881
|
+
* @request GET:/api/ai/prompts/{id}
|
|
8045
7882
|
* @secure
|
|
8046
7883
|
* @response `200` `AiPrompt` OK
|
|
8047
7884
|
* @response `404` `ProblemDetails` Not Found
|
|
8048
7885
|
*/
|
|
8049
7886
|
getAiPrompt: (id: string, params: RequestParams = {}) =>
|
|
8050
7887
|
this.request<AiPrompt, ProblemDetails>({
|
|
8051
|
-
path: `/api/ai/
|
|
7888
|
+
path: `/api/ai/prompts/${id}`,
|
|
8052
7889
|
method: "GET",
|
|
8053
7890
|
secure: true,
|
|
8054
7891
|
format: "json",
|
|
@@ -8061,7 +7898,7 @@ export class Api<
|
|
|
8061
7898
|
* @tags AiAdminPrompt
|
|
8062
7899
|
* @name UpdateAiPrompt
|
|
8063
7900
|
* @summary Update prompt
|
|
8064
|
-
* @request PUT:/api/ai/
|
|
7901
|
+
* @request PUT:/api/ai/prompts/{id}
|
|
8065
7902
|
* @secure
|
|
8066
7903
|
* @response `200` `AiPrompt` OK
|
|
8067
7904
|
* @response `400` `ProblemDetails` Bad Request
|
|
@@ -8073,7 +7910,7 @@ export class Api<
|
|
|
8073
7910
|
params: RequestParams = {},
|
|
8074
7911
|
) =>
|
|
8075
7912
|
this.request<AiPrompt, ProblemDetails>({
|
|
8076
|
-
path: `/api/ai/
|
|
7913
|
+
path: `/api/ai/prompts/${id}`,
|
|
8077
7914
|
method: "PUT",
|
|
8078
7915
|
body: data,
|
|
8079
7916
|
secure: true,
|
|
@@ -8088,7 +7925,7 @@ export class Api<
|
|
|
8088
7925
|
* @tags AiAdminPrompt
|
|
8089
7926
|
* @name DeleteAiPrompt
|
|
8090
7927
|
* @summary Delete prompt
|
|
8091
|
-
* @request DELETE:/api/ai/
|
|
7928
|
+
* @request DELETE:/api/ai/prompts/{id}
|
|
8092
7929
|
* @secure
|
|
8093
7930
|
* @response `204` `void` No Content
|
|
8094
7931
|
* @response `400` `ProblemDetails` Bad Request
|
|
@@ -8096,7 +7933,7 @@ export class Api<
|
|
|
8096
7933
|
*/
|
|
8097
7934
|
deleteAiPrompt: (id: string, params: RequestParams = {}) =>
|
|
8098
7935
|
this.request<void, ProblemDetails>({
|
|
8099
|
-
path: `/api/ai/
|
|
7936
|
+
path: `/api/ai/prompts/${id}`,
|
|
8100
7937
|
method: "DELETE",
|
|
8101
7938
|
secure: true,
|
|
8102
7939
|
...params,
|
|
@@ -8108,14 +7945,14 @@ export class Api<
|
|
|
8108
7945
|
* @tags AiAdminPrompt
|
|
8109
7946
|
* @name ToggleAiPrompt
|
|
8110
7947
|
* @summary Toggle prompt active/inactive
|
|
8111
|
-
* @request PATCH:/api/ai/
|
|
7948
|
+
* @request PATCH:/api/ai/prompts/{id}/toggle
|
|
8112
7949
|
* @secure
|
|
8113
7950
|
* @response `200` `AiPrompt` OK
|
|
8114
7951
|
* @response `404` `ProblemDetails` Not Found
|
|
8115
7952
|
*/
|
|
8116
7953
|
toggleAiPrompt: (id: string, params: RequestParams = {}) =>
|
|
8117
7954
|
this.request<AiPrompt, ProblemDetails>({
|
|
8118
|
-
path: `/api/ai/
|
|
7955
|
+
path: `/api/ai/prompts/${id}/toggle`,
|
|
8119
7956
|
method: "PATCH",
|
|
8120
7957
|
secure: true,
|
|
8121
7958
|
format: "json",
|
|
@@ -8128,7 +7965,7 @@ export class Api<
|
|
|
8128
7965
|
* @tags AiAdminPrompt
|
|
8129
7966
|
* @name GenerateAiSystemPrompt
|
|
8130
7967
|
* @summary Generate a system prompt from description
|
|
8131
|
-
* @request POST:/api/ai/
|
|
7968
|
+
* @request POST:/api/ai/prompts/generate
|
|
8132
7969
|
* @secure
|
|
8133
7970
|
* @response `200` `GenerateSystemPrompt` OK
|
|
8134
7971
|
* @response `400` `ProblemDetails` Bad Request
|
|
@@ -8138,7 +7975,7 @@ export class Api<
|
|
|
8138
7975
|
params: RequestParams = {},
|
|
8139
7976
|
) =>
|
|
8140
7977
|
this.request<GenerateSystemPrompt, ProblemDetails>({
|
|
8141
|
-
path: `/api/ai/
|
|
7978
|
+
path: `/api/ai/prompts/generate`,
|
|
8142
7979
|
method: "POST",
|
|
8143
7980
|
body: data,
|
|
8144
7981
|
secure: true,
|
|
@@ -8151,15 +7988,15 @@ export class Api<
|
|
|
8151
7988
|
* No description
|
|
8152
7989
|
*
|
|
8153
7990
|
* @tags AiAdminPrompt
|
|
8154
|
-
* @name
|
|
7991
|
+
* @name GetAiSupportedModels
|
|
8155
7992
|
* @summary Get supported LLM models
|
|
8156
|
-
* @request GET:/api/ai/
|
|
7993
|
+
* @request GET:/api/ai/prompts/supported-models
|
|
8157
7994
|
* @secure
|
|
8158
7995
|
* @response `200` `(SupportedModel)[]` OK
|
|
8159
7996
|
*/
|
|
8160
|
-
|
|
7997
|
+
getAiSupportedModels: (params: RequestParams = {}) =>
|
|
8161
7998
|
this.request<SupportedModel[], any>({
|
|
8162
|
-
path: `/api/ai/
|
|
7999
|
+
path: `/api/ai/prompts/supported-models`,
|
|
8163
8000
|
method: "GET",
|
|
8164
8001
|
secure: true,
|
|
8165
8002
|
format: "json",
|
|
@@ -8172,13 +8009,13 @@ export class Api<
|
|
|
8172
8009
|
* @tags AiAdminSettings
|
|
8173
8010
|
* @name GetAiAdminSettings
|
|
8174
8011
|
* @summary Get global AI settings
|
|
8175
|
-
* @request GET:/api/ai/
|
|
8012
|
+
* @request GET:/api/ai/settings
|
|
8176
8013
|
* @secure
|
|
8177
8014
|
* @response `200` `AiAdminSettings` OK
|
|
8178
8015
|
*/
|
|
8179
8016
|
getAiAdminSettings: (params: RequestParams = {}) =>
|
|
8180
8017
|
this.request<AiAdminSettings, any>({
|
|
8181
|
-
path: `/api/ai/
|
|
8018
|
+
path: `/api/ai/settings`,
|
|
8182
8019
|
method: "GET",
|
|
8183
8020
|
secure: true,
|
|
8184
8021
|
format: "json",
|
|
@@ -8191,7 +8028,7 @@ export class Api<
|
|
|
8191
8028
|
* @tags AiAdminSettings
|
|
8192
8029
|
* @name UpdateAiAdminSettings
|
|
8193
8030
|
* @summary Update global AI settings
|
|
8194
|
-
* @request PUT:/api/ai/
|
|
8031
|
+
* @request PUT:/api/ai/settings
|
|
8195
8032
|
* @secure
|
|
8196
8033
|
* @response `200` `AiAdminSettings` OK
|
|
8197
8034
|
* @response `400` `ProblemDetails` Bad Request
|
|
@@ -8201,7 +8038,7 @@ export class Api<
|
|
|
8201
8038
|
params: RequestParams = {},
|
|
8202
8039
|
) =>
|
|
8203
8040
|
this.request<AiAdminSettings, ProblemDetails>({
|
|
8204
|
-
path: `/api/ai/
|
|
8041
|
+
path: `/api/ai/settings`,
|
|
8205
8042
|
method: "PUT",
|
|
8206
8043
|
body: data,
|
|
8207
8044
|
secure: true,
|
|
@@ -8213,17 +8050,42 @@ export class Api<
|
|
|
8213
8050
|
/**
|
|
8214
8051
|
* No description
|
|
8215
8052
|
*
|
|
8216
|
-
* @tags
|
|
8217
|
-
* @name
|
|
8218
|
-
* @summary Get all
|
|
8219
|
-
* @request GET:/api/ai/
|
|
8053
|
+
* @tags AiAudit
|
|
8054
|
+
* @name GetAiAuditLogs
|
|
8055
|
+
* @summary Get paginated AI audit logs (own account, or any/all accounts for SuperAdmin)
|
|
8056
|
+
* @request GET:/api/ai/audit-logs
|
|
8220
8057
|
* @secure
|
|
8221
|
-
* @response `200` `
|
|
8058
|
+
* @response `200` `AiAuditLogPaginated` OK
|
|
8222
8059
|
*/
|
|
8223
|
-
|
|
8224
|
-
|
|
8225
|
-
|
|
8060
|
+
getAiAuditLogs: (
|
|
8061
|
+
query?: {
|
|
8062
|
+
/** @format uuid */
|
|
8063
|
+
accountId?: string;
|
|
8064
|
+
eventType?: AiAuditEventType;
|
|
8065
|
+
/** @format uuid */
|
|
8066
|
+
requestId?: string;
|
|
8067
|
+
/** @format uuid */
|
|
8068
|
+
userId?: string;
|
|
8069
|
+
/** @format uuid */
|
|
8070
|
+
conversationId?: string;
|
|
8071
|
+
blockedOnly?: boolean;
|
|
8072
|
+
/** @format date-time */
|
|
8073
|
+
startDate?: string;
|
|
8074
|
+
/** @format date-time */
|
|
8075
|
+
endDate?: string;
|
|
8076
|
+
/** @format int32 */
|
|
8077
|
+
pageSize?: number;
|
|
8078
|
+
/** @format int32 */
|
|
8079
|
+
pageNumber?: number;
|
|
8080
|
+
sortBy?: string;
|
|
8081
|
+
sortDirection?: string;
|
|
8082
|
+
},
|
|
8083
|
+
params: RequestParams = {},
|
|
8084
|
+
) =>
|
|
8085
|
+
this.request<AiAuditLogPaginated, any>({
|
|
8086
|
+
path: `/api/ai/audit-logs`,
|
|
8226
8087
|
method: "GET",
|
|
8088
|
+
query: query,
|
|
8227
8089
|
secure: true,
|
|
8228
8090
|
format: "json",
|
|
8229
8091
|
...params,
|
|
@@ -8232,24 +8094,26 @@ export class Api<
|
|
|
8232
8094
|
/**
|
|
8233
8095
|
* No description
|
|
8234
8096
|
*
|
|
8235
|
-
* @tags
|
|
8236
|
-
* @name
|
|
8237
|
-
* @summary
|
|
8238
|
-
* @request
|
|
8097
|
+
* @tags AiAudit
|
|
8098
|
+
* @name GetAiRequestLifecycle
|
|
8099
|
+
* @summary Get the full event lifecycle of a single AI request
|
|
8100
|
+
* @request GET:/api/ai/audit-logs/request/{requestId}
|
|
8239
8101
|
* @secure
|
|
8240
|
-
* @response `
|
|
8241
|
-
* @response `400` `ProblemDetails` Bad Request
|
|
8102
|
+
* @response `200` `(AiAuditLog)[]` OK
|
|
8242
8103
|
*/
|
|
8243
|
-
|
|
8244
|
-
|
|
8104
|
+
getAiRequestLifecycle: (
|
|
8105
|
+
requestId: string,
|
|
8106
|
+
query?: {
|
|
8107
|
+
/** @format uuid */
|
|
8108
|
+
accountId?: string;
|
|
8109
|
+
},
|
|
8245
8110
|
params: RequestParams = {},
|
|
8246
8111
|
) =>
|
|
8247
|
-
this.request<
|
|
8248
|
-
path: `/api/ai/
|
|
8249
|
-
method: "
|
|
8250
|
-
|
|
8112
|
+
this.request<AiAuditLog[], any>({
|
|
8113
|
+
path: `/api/ai/audit-logs/request/${requestId}`,
|
|
8114
|
+
method: "GET",
|
|
8115
|
+
query: query,
|
|
8251
8116
|
secure: true,
|
|
8252
|
-
type: ContentType.Json,
|
|
8253
8117
|
format: "json",
|
|
8254
8118
|
...params,
|
|
8255
8119
|
}),
|
|
@@ -8257,30 +8121,181 @@ export class Api<
|
|
|
8257
8121
|
/**
|
|
8258
8122
|
* No description
|
|
8259
8123
|
*
|
|
8260
|
-
* @tags
|
|
8261
|
-
* @name
|
|
8262
|
-
* @summary
|
|
8263
|
-
* @request GET:/api/ai/
|
|
8124
|
+
* @tags AiAudit
|
|
8125
|
+
* @name GetAiAuditConversations
|
|
8126
|
+
* @summary List conversations with their audit roll-up — origin user, turns, status, tokens
|
|
8127
|
+
* @request GET:/api/ai/audit-conversations
|
|
8264
8128
|
* @secure
|
|
8265
|
-
* @response `200` `
|
|
8266
|
-
* @response `404` `ProblemDetails` Not Found
|
|
8129
|
+
* @response `200` `AiConversationAuditSummaryPaginated` OK
|
|
8267
8130
|
*/
|
|
8268
|
-
|
|
8269
|
-
|
|
8270
|
-
|
|
8271
|
-
|
|
8272
|
-
|
|
8273
|
-
format
|
|
8274
|
-
|
|
8275
|
-
|
|
8276
|
-
|
|
8277
|
-
|
|
8278
|
-
|
|
8279
|
-
|
|
8131
|
+
getAiAuditConversations: (
|
|
8132
|
+
query?: {
|
|
8133
|
+
/** @format uuid */
|
|
8134
|
+
accountId?: string;
|
|
8135
|
+
searchText?: string;
|
|
8136
|
+
/** @format date-time */
|
|
8137
|
+
startDate?: string;
|
|
8138
|
+
/** @format date-time */
|
|
8139
|
+
endDate?: string;
|
|
8140
|
+
/** @format int32 */
|
|
8141
|
+
pageSize?: number;
|
|
8142
|
+
/** @format int32 */
|
|
8143
|
+
pageNumber?: number;
|
|
8144
|
+
sortBy?: string;
|
|
8145
|
+
sortDirection?: string;
|
|
8146
|
+
},
|
|
8147
|
+
params: RequestParams = {},
|
|
8148
|
+
) =>
|
|
8149
|
+
this.request<AiConversationAuditSummaryPaginated, any>({
|
|
8150
|
+
path: `/api/ai/audit-conversations`,
|
|
8151
|
+
method: "GET",
|
|
8152
|
+
query: query,
|
|
8153
|
+
secure: true,
|
|
8154
|
+
format: "json",
|
|
8155
|
+
...params,
|
|
8156
|
+
}),
|
|
8157
|
+
|
|
8158
|
+
/**
|
|
8159
|
+
* No description
|
|
8160
|
+
*
|
|
8161
|
+
* @tags AiAudit
|
|
8162
|
+
* @name GetAiStats
|
|
8163
|
+
* @summary Get AI dashboard stats (own account, or any/all accounts for SuperAdmin)
|
|
8164
|
+
* @request GET:/api/ai/stats
|
|
8165
|
+
* @secure
|
|
8166
|
+
* @response `200` `AiAdminStats` OK
|
|
8167
|
+
*/
|
|
8168
|
+
getAiStats: (
|
|
8169
|
+
query?: {
|
|
8170
|
+
/** @format uuid */
|
|
8171
|
+
accountId?: string;
|
|
8172
|
+
/** @format date-time */
|
|
8173
|
+
startDate?: string;
|
|
8174
|
+
/** @format date-time */
|
|
8175
|
+
endDate?: string;
|
|
8176
|
+
},
|
|
8177
|
+
params: RequestParams = {},
|
|
8178
|
+
) =>
|
|
8179
|
+
this.request<AiAdminStats, any>({
|
|
8180
|
+
path: `/api/ai/stats`,
|
|
8181
|
+
method: "GET",
|
|
8182
|
+
query: query,
|
|
8183
|
+
secure: true,
|
|
8184
|
+
format: "json",
|
|
8185
|
+
...params,
|
|
8186
|
+
}),
|
|
8187
|
+
|
|
8188
|
+
/**
|
|
8189
|
+
* No description
|
|
8190
|
+
*
|
|
8191
|
+
* @tags AiAudit
|
|
8192
|
+
* @name GetAiConfigChanges
|
|
8193
|
+
* @summary Get the AI configuration change history (who changed prompts, guardrails, fields, sources)
|
|
8194
|
+
* @request GET:/api/ai/config-changes
|
|
8195
|
+
* @secure
|
|
8196
|
+
* @response `200` `AuditLogEntryPaginated` OK
|
|
8197
|
+
*/
|
|
8198
|
+
getAiConfigChanges: (
|
|
8199
|
+
query?: {
|
|
8200
|
+
/** @format uuid */
|
|
8201
|
+
accountId?: string;
|
|
8202
|
+
/** @format uuid */
|
|
8203
|
+
entityId?: string;
|
|
8204
|
+
/** @format uuid */
|
|
8205
|
+
actorUserId?: string;
|
|
8206
|
+
/** @format date-time */
|
|
8207
|
+
startDate?: string;
|
|
8208
|
+
/** @format date-time */
|
|
8209
|
+
endDate?: string;
|
|
8210
|
+
/** @format int32 */
|
|
8211
|
+
pageSize?: number;
|
|
8212
|
+
/** @format int32 */
|
|
8213
|
+
pageNumber?: number;
|
|
8214
|
+
sortBy?: string;
|
|
8215
|
+
sortDirection?: string;
|
|
8216
|
+
},
|
|
8217
|
+
params: RequestParams = {},
|
|
8218
|
+
) =>
|
|
8219
|
+
this.request<AuditLogEntryPaginated, any>({
|
|
8220
|
+
path: `/api/ai/config-changes`,
|
|
8221
|
+
method: "GET",
|
|
8222
|
+
query: query,
|
|
8223
|
+
secure: true,
|
|
8224
|
+
format: "json",
|
|
8225
|
+
...params,
|
|
8226
|
+
}),
|
|
8227
|
+
|
|
8228
|
+
/**
|
|
8229
|
+
* No description
|
|
8230
|
+
*
|
|
8231
|
+
* @tags AiCanonicalField
|
|
8232
|
+
* @name GetAiCanonicalFields
|
|
8233
|
+
* @summary Get all canonical fields
|
|
8234
|
+
* @request GET:/api/ai/canonical-fields
|
|
8235
|
+
* @secure
|
|
8236
|
+
* @response `200` `(AiCanonicalField)[]` OK
|
|
8237
|
+
*/
|
|
8238
|
+
getAiCanonicalFields: (params: RequestParams = {}) =>
|
|
8239
|
+
this.request<AiCanonicalField[], any>({
|
|
8240
|
+
path: `/api/ai/canonical-fields`,
|
|
8241
|
+
method: "GET",
|
|
8242
|
+
secure: true,
|
|
8243
|
+
format: "json",
|
|
8244
|
+
...params,
|
|
8245
|
+
}),
|
|
8246
|
+
|
|
8247
|
+
/**
|
|
8248
|
+
* No description
|
|
8249
|
+
*
|
|
8250
|
+
* @tags AiCanonicalField
|
|
8251
|
+
* @name CreateAiCanonicalField
|
|
8252
|
+
* @summary Create canonical field
|
|
8253
|
+
* @request POST:/api/ai/canonical-fields
|
|
8254
|
+
* @secure
|
|
8255
|
+
* @response `201` `AiCanonicalField` Created
|
|
8256
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
8257
|
+
*/
|
|
8258
|
+
createAiCanonicalField: (
|
|
8259
|
+
data: CreateAiCanonicalFieldRequest,
|
|
8260
|
+
params: RequestParams = {},
|
|
8261
|
+
) =>
|
|
8262
|
+
this.request<AiCanonicalField, ProblemDetails>({
|
|
8263
|
+
path: `/api/ai/canonical-fields`,
|
|
8264
|
+
method: "POST",
|
|
8265
|
+
body: data,
|
|
8266
|
+
secure: true,
|
|
8267
|
+
type: ContentType.Json,
|
|
8268
|
+
format: "json",
|
|
8269
|
+
...params,
|
|
8270
|
+
}),
|
|
8271
|
+
|
|
8272
|
+
/**
|
|
8273
|
+
* No description
|
|
8274
|
+
*
|
|
8275
|
+
* @tags AiCanonicalField
|
|
8276
|
+
* @name GetAiCanonicalField
|
|
8277
|
+
* @summary Get canonical field by ID
|
|
8278
|
+
* @request GET:/api/ai/canonical-fields/{id}
|
|
8279
|
+
* @secure
|
|
8280
|
+
* @response `200` `AiCanonicalField` OK
|
|
8281
|
+
* @response `404` `ProblemDetails` Not Found
|
|
8282
|
+
*/
|
|
8283
|
+
getAiCanonicalField: (id: string, params: RequestParams = {}) =>
|
|
8284
|
+
this.request<AiCanonicalField, ProblemDetails>({
|
|
8285
|
+
path: `/api/ai/canonical-fields/${id}`,
|
|
8286
|
+
method: "GET",
|
|
8287
|
+
secure: true,
|
|
8288
|
+
format: "json",
|
|
8289
|
+
...params,
|
|
8290
|
+
}),
|
|
8291
|
+
|
|
8292
|
+
/**
|
|
8293
|
+
* No description
|
|
8294
|
+
*
|
|
8280
8295
|
* @tags AiCanonicalField
|
|
8281
8296
|
* @name UpdateAiCanonicalField
|
|
8282
8297
|
* @summary Update canonical field
|
|
8283
|
-
* @request PUT:/api/ai/
|
|
8298
|
+
* @request PUT:/api/ai/canonical-fields/{id}
|
|
8284
8299
|
* @secure
|
|
8285
8300
|
* @response `200` `AiCanonicalField` OK
|
|
8286
8301
|
* @response `400` `ProblemDetails` Bad Request
|
|
@@ -8292,7 +8307,7 @@ export class Api<
|
|
|
8292
8307
|
params: RequestParams = {},
|
|
8293
8308
|
) =>
|
|
8294
8309
|
this.request<AiCanonicalField, ProblemDetails>({
|
|
8295
|
-
path: `/api/ai/
|
|
8310
|
+
path: `/api/ai/canonical-fields/${id}`,
|
|
8296
8311
|
method: "PUT",
|
|
8297
8312
|
body: data,
|
|
8298
8313
|
secure: true,
|
|
@@ -8307,14 +8322,14 @@ export class Api<
|
|
|
8307
8322
|
* @tags AiCanonicalField
|
|
8308
8323
|
* @name DeleteAiCanonicalField
|
|
8309
8324
|
* @summary Delete canonical field
|
|
8310
|
-
* @request DELETE:/api/ai/
|
|
8325
|
+
* @request DELETE:/api/ai/canonical-fields/{id}
|
|
8311
8326
|
* @secure
|
|
8312
8327
|
* @response `204` `void` No Content
|
|
8313
8328
|
* @response `404` `ProblemDetails` Not Found
|
|
8314
8329
|
*/
|
|
8315
8330
|
deleteAiCanonicalField: (id: string, params: RequestParams = {}) =>
|
|
8316
8331
|
this.request<void, ProblemDetails>({
|
|
8317
|
-
path: `/api/ai/
|
|
8332
|
+
path: `/api/ai/canonical-fields/${id}`,
|
|
8318
8333
|
method: "DELETE",
|
|
8319
8334
|
secure: true,
|
|
8320
8335
|
...params,
|
|
@@ -8326,14 +8341,14 @@ export class Api<
|
|
|
8326
8341
|
* @tags AiCanonicalField
|
|
8327
8342
|
* @name ToggleAiCanonicalField
|
|
8328
8343
|
* @summary Toggle canonical field active/inactive
|
|
8329
|
-
* @request PATCH:/api/ai/
|
|
8344
|
+
* @request PATCH:/api/ai/canonical-fields/{id}/toggle
|
|
8330
8345
|
* @secure
|
|
8331
8346
|
* @response `200` `AiCanonicalField` OK
|
|
8332
8347
|
* @response `404` `ProblemDetails` Not Found
|
|
8333
8348
|
*/
|
|
8334
8349
|
toggleAiCanonicalField: (id: string, params: RequestParams = {}) =>
|
|
8335
8350
|
this.request<AiCanonicalField, ProblemDetails>({
|
|
8336
|
-
path: `/api/ai/
|
|
8351
|
+
path: `/api/ai/canonical-fields/${id}/toggle`,
|
|
8337
8352
|
method: "PATCH",
|
|
8338
8353
|
secure: true,
|
|
8339
8354
|
format: "json",
|
|
@@ -8346,7 +8361,7 @@ export class Api<
|
|
|
8346
8361
|
* @tags AiChat
|
|
8347
8362
|
* @name AiChat
|
|
8348
8363
|
* @summary Send AI chat message
|
|
8349
|
-
* @request POST:/api/ai/
|
|
8364
|
+
* @request POST:/api/ai/chats
|
|
8350
8365
|
* @secure
|
|
8351
8366
|
* @response `200` `AiChat` OK
|
|
8352
8367
|
* @response `400` `ProblemDetails` Bad Request
|
|
@@ -8354,7 +8369,7 @@ export class Api<
|
|
|
8354
8369
|
*/
|
|
8355
8370
|
aiChat: (data: AiChatRequest, params: RequestParams = {}) =>
|
|
8356
8371
|
this.request<AiChat, ProblemDetails>({
|
|
8357
|
-
path: `/api/ai/
|
|
8372
|
+
path: `/api/ai/chats`,
|
|
8358
8373
|
method: "POST",
|
|
8359
8374
|
body: data,
|
|
8360
8375
|
secure: true,
|
|
@@ -8548,7 +8563,7 @@ export class Api<
|
|
|
8548
8563
|
* @tags AiConversationAdmin
|
|
8549
8564
|
* @name GetAiAccountConversations
|
|
8550
8565
|
* @summary List AI conversations across the account, optionally filtered by user (admin supervision)
|
|
8551
|
-
* @request GET:/api/ai/
|
|
8566
|
+
* @request GET:/api/ai/conversations/all
|
|
8552
8567
|
* @secure
|
|
8553
8568
|
* @response `200` `AiConversationListItemPaginated` OK
|
|
8554
8569
|
*/
|
|
@@ -8566,7 +8581,7 @@ export class Api<
|
|
|
8566
8581
|
params: RequestParams = {},
|
|
8567
8582
|
) =>
|
|
8568
8583
|
this.request<AiConversationListItemPaginated, any>({
|
|
8569
|
-
path: `/api/ai/
|
|
8584
|
+
path: `/api/ai/conversations/all`,
|
|
8570
8585
|
method: "GET",
|
|
8571
8586
|
query: query,
|
|
8572
8587
|
secure: true,
|
|
@@ -8580,14 +8595,14 @@ export class Api<
|
|
|
8580
8595
|
* @tags AiConversationAdmin
|
|
8581
8596
|
* @name GetAiAccountConversation
|
|
8582
8597
|
* @summary Get an account conversation's detail (admin supervision)
|
|
8583
|
-
* @request GET:/api/ai/
|
|
8598
|
+
* @request GET:/api/ai/conversations/all/{id}
|
|
8584
8599
|
* @secure
|
|
8585
8600
|
* @response `200` `AiConversationDetail` OK
|
|
8586
8601
|
* @response `404` `ProblemDetails` Not Found
|
|
8587
8602
|
*/
|
|
8588
8603
|
getAiAccountConversation: (id: string, params: RequestParams = {}) =>
|
|
8589
8604
|
this.request<AiConversationDetail, ProblemDetails>({
|
|
8590
|
-
path: `/api/ai/
|
|
8605
|
+
path: `/api/ai/conversations/all/${id}`,
|
|
8591
8606
|
method: "GET",
|
|
8592
8607
|
secure: true,
|
|
8593
8608
|
format: "json",
|
|
@@ -8600,7 +8615,7 @@ export class Api<
|
|
|
8600
8615
|
* @tags AiConversationAdmin
|
|
8601
8616
|
* @name GetAiAccountConversationMessages
|
|
8602
8617
|
* @summary Get an account conversation's messages (admin supervision)
|
|
8603
|
-
* @request GET:/api/ai/
|
|
8618
|
+
* @request GET:/api/ai/conversations/all/{id}/messages
|
|
8604
8619
|
* @secure
|
|
8605
8620
|
* @response `200` `AiChatMessagePaginated` OK
|
|
8606
8621
|
* @response `404` `ProblemDetails` Not Found
|
|
@@ -8618,7 +8633,7 @@ export class Api<
|
|
|
8618
8633
|
params: RequestParams = {},
|
|
8619
8634
|
) =>
|
|
8620
8635
|
this.request<AiChatMessagePaginated, ProblemDetails>({
|
|
8621
|
-
path: `/api/ai/
|
|
8636
|
+
path: `/api/ai/conversations/all/${id}/messages`,
|
|
8622
8637
|
method: "GET",
|
|
8623
8638
|
query: query,
|
|
8624
8639
|
secure: true,
|
|
@@ -8632,13 +8647,13 @@ export class Api<
|
|
|
8632
8647
|
* @tags AiGuardrail
|
|
8633
8648
|
* @name GetAiGuardrails
|
|
8634
8649
|
* @summary Get all guardrails
|
|
8635
|
-
* @request GET:/api/ai/
|
|
8650
|
+
* @request GET:/api/ai/guardrails
|
|
8636
8651
|
* @secure
|
|
8637
8652
|
* @response `200` `(AiGuardrail)[]` OK
|
|
8638
8653
|
*/
|
|
8639
8654
|
getAiGuardrails: (params: RequestParams = {}) =>
|
|
8640
8655
|
this.request<AiGuardrail[], any>({
|
|
8641
|
-
path: `/api/ai/
|
|
8656
|
+
path: `/api/ai/guardrails`,
|
|
8642
8657
|
method: "GET",
|
|
8643
8658
|
secure: true,
|
|
8644
8659
|
format: "json",
|
|
@@ -8651,7 +8666,7 @@ export class Api<
|
|
|
8651
8666
|
* @tags AiGuardrail
|
|
8652
8667
|
* @name CreateAiGuardrail
|
|
8653
8668
|
* @summary Create custom guardrail
|
|
8654
|
-
* @request POST:/api/ai/
|
|
8669
|
+
* @request POST:/api/ai/guardrails
|
|
8655
8670
|
* @secure
|
|
8656
8671
|
* @response `201` `AiGuardrail` Created
|
|
8657
8672
|
* @response `400` `ProblemDetails` Bad Request
|
|
@@ -8661,7 +8676,7 @@ export class Api<
|
|
|
8661
8676
|
params: RequestParams = {},
|
|
8662
8677
|
) =>
|
|
8663
8678
|
this.request<AiGuardrail, ProblemDetails>({
|
|
8664
|
-
path: `/api/ai/
|
|
8679
|
+
path: `/api/ai/guardrails`,
|
|
8665
8680
|
method: "POST",
|
|
8666
8681
|
body: data,
|
|
8667
8682
|
secure: true,
|
|
@@ -8676,14 +8691,14 @@ export class Api<
|
|
|
8676
8691
|
* @tags AiGuardrail
|
|
8677
8692
|
* @name GetAiGuardrail
|
|
8678
8693
|
* @summary Get guardrail by ID
|
|
8679
|
-
* @request GET:/api/ai/
|
|
8694
|
+
* @request GET:/api/ai/guardrails/{id}
|
|
8680
8695
|
* @secure
|
|
8681
8696
|
* @response `200` `AiGuardrail` OK
|
|
8682
8697
|
* @response `404` `ProblemDetails` Not Found
|
|
8683
8698
|
*/
|
|
8684
8699
|
getAiGuardrail: (id: string, params: RequestParams = {}) =>
|
|
8685
8700
|
this.request<AiGuardrail, ProblemDetails>({
|
|
8686
|
-
path: `/api/ai/
|
|
8701
|
+
path: `/api/ai/guardrails/${id}`,
|
|
8687
8702
|
method: "GET",
|
|
8688
8703
|
secure: true,
|
|
8689
8704
|
format: "json",
|
|
@@ -8696,7 +8711,7 @@ export class Api<
|
|
|
8696
8711
|
* @tags AiGuardrail
|
|
8697
8712
|
* @name UpdateAiGuardrail
|
|
8698
8713
|
* @summary Update guardrail
|
|
8699
|
-
* @request PUT:/api/ai/
|
|
8714
|
+
* @request PUT:/api/ai/guardrails/{id}
|
|
8700
8715
|
* @secure
|
|
8701
8716
|
* @response `200` `AiGuardrail` OK
|
|
8702
8717
|
* @response `400` `ProblemDetails` Bad Request
|
|
@@ -8708,7 +8723,7 @@ export class Api<
|
|
|
8708
8723
|
params: RequestParams = {},
|
|
8709
8724
|
) =>
|
|
8710
8725
|
this.request<AiGuardrail, ProblemDetails>({
|
|
8711
|
-
path: `/api/ai/
|
|
8726
|
+
path: `/api/ai/guardrails/${id}`,
|
|
8712
8727
|
method: "PUT",
|
|
8713
8728
|
body: data,
|
|
8714
8729
|
secure: true,
|
|
@@ -8723,7 +8738,7 @@ export class Api<
|
|
|
8723
8738
|
* @tags AiGuardrail
|
|
8724
8739
|
* @name DeleteAiGuardrail
|
|
8725
8740
|
* @summary Delete guardrail
|
|
8726
|
-
* @request DELETE:/api/ai/
|
|
8741
|
+
* @request DELETE:/api/ai/guardrails/{id}
|
|
8727
8742
|
* @secure
|
|
8728
8743
|
* @response `204` `void` No Content
|
|
8729
8744
|
* @response `400` `ProblemDetails` Bad Request
|
|
@@ -8731,7 +8746,7 @@ export class Api<
|
|
|
8731
8746
|
*/
|
|
8732
8747
|
deleteAiGuardrail: (id: string, params: RequestParams = {}) =>
|
|
8733
8748
|
this.request<void, ProblemDetails>({
|
|
8734
|
-
path: `/api/ai/
|
|
8749
|
+
path: `/api/ai/guardrails/${id}`,
|
|
8735
8750
|
method: "DELETE",
|
|
8736
8751
|
secure: true,
|
|
8737
8752
|
...params,
|
|
@@ -8743,14 +8758,14 @@ export class Api<
|
|
|
8743
8758
|
* @tags AiGuardrail
|
|
8744
8759
|
* @name ToggleAiGuardrail
|
|
8745
8760
|
* @summary Toggle guardrail enabled/disabled
|
|
8746
|
-
* @request PATCH:/api/ai/
|
|
8761
|
+
* @request PATCH:/api/ai/guardrails/{id}/toggle
|
|
8747
8762
|
* @secure
|
|
8748
8763
|
* @response `200` `AiGuardrail` OK
|
|
8749
8764
|
* @response `404` `ProblemDetails` Not Found
|
|
8750
8765
|
*/
|
|
8751
8766
|
toggleAiGuardrail: (id: string, params: RequestParams = {}) =>
|
|
8752
8767
|
this.request<AiGuardrail, ProblemDetails>({
|
|
8753
|
-
path: `/api/ai/
|
|
8768
|
+
path: `/api/ai/guardrails/${id}/toggle`,
|
|
8754
8769
|
method: "PATCH",
|
|
8755
8770
|
secure: true,
|
|
8756
8771
|
format: "json",
|
|
@@ -8761,91 +8776,20 @@ export class Api<
|
|
|
8761
8776
|
* No description
|
|
8762
8777
|
*
|
|
8763
8778
|
* @tags AiPrompt
|
|
8764
|
-
* @name
|
|
8779
|
+
* @name GetAiAvailablePrompts
|
|
8765
8780
|
* @summary Get available prompts for current user
|
|
8766
|
-
* @request GET:/api/ai/prompts
|
|
8781
|
+
* @request GET:/api/ai/prompts/available
|
|
8767
8782
|
* @secure
|
|
8768
8783
|
* @response `200` `(AiPromptSummary)[]` OK
|
|
8769
8784
|
*/
|
|
8770
|
-
|
|
8785
|
+
getAiAvailablePrompts: (
|
|
8771
8786
|
query?: {
|
|
8772
8787
|
documentType?: string;
|
|
8773
8788
|
},
|
|
8774
8789
|
params: RequestParams = {},
|
|
8775
8790
|
) =>
|
|
8776
8791
|
this.request<AiPromptSummary[], any>({
|
|
8777
|
-
path: `/api/ai/prompts`,
|
|
8778
|
-
method: "GET",
|
|
8779
|
-
query: query,
|
|
8780
|
-
secure: true,
|
|
8781
|
-
format: "json",
|
|
8782
|
-
...params,
|
|
8783
|
-
}),
|
|
8784
|
-
|
|
8785
|
-
/**
|
|
8786
|
-
* No description
|
|
8787
|
-
*
|
|
8788
|
-
* @tags AiSuperAdmin
|
|
8789
|
-
* @name GetAiAuditLogsCrossAccount
|
|
8790
|
-
* @summary Get AI audit logs for a specific account or across all accounts
|
|
8791
|
-
* @request GET:/api/ai/superadmin/audit-logs
|
|
8792
|
-
* @secure
|
|
8793
|
-
* @response `200` `AiAuditLogPaginated` OK
|
|
8794
|
-
*/
|
|
8795
|
-
getAiAuditLogsCrossAccount: (
|
|
8796
|
-
query?: {
|
|
8797
|
-
/** @format uuid */
|
|
8798
|
-
accountId?: string;
|
|
8799
|
-
eventType?: AiAuditEventType;
|
|
8800
|
-
/** @format uuid */
|
|
8801
|
-
requestId?: string;
|
|
8802
|
-
/** @format uuid */
|
|
8803
|
-
userId?: string;
|
|
8804
|
-
/** @format uuid */
|
|
8805
|
-
conversationId?: string;
|
|
8806
|
-
blockedOnly?: boolean;
|
|
8807
|
-
/** @format date-time */
|
|
8808
|
-
startDate?: string;
|
|
8809
|
-
/** @format date-time */
|
|
8810
|
-
endDate?: string;
|
|
8811
|
-
/** @format int32 */
|
|
8812
|
-
pageSize?: number;
|
|
8813
|
-
/** @format int32 */
|
|
8814
|
-
pageNumber?: number;
|
|
8815
|
-
sortBy?: string;
|
|
8816
|
-
sortDirection?: string;
|
|
8817
|
-
},
|
|
8818
|
-
params: RequestParams = {},
|
|
8819
|
-
) =>
|
|
8820
|
-
this.request<AiAuditLogPaginated, any>({
|
|
8821
|
-
path: `/api/ai/superadmin/audit-logs`,
|
|
8822
|
-
method: "GET",
|
|
8823
|
-
query: query,
|
|
8824
|
-
secure: true,
|
|
8825
|
-
format: "json",
|
|
8826
|
-
...params,
|
|
8827
|
-
}),
|
|
8828
|
-
|
|
8829
|
-
/**
|
|
8830
|
-
* No description
|
|
8831
|
-
*
|
|
8832
|
-
* @tags AiSuperAdmin
|
|
8833
|
-
* @name GetAiRequestLifecycleCrossAccount
|
|
8834
|
-
* @summary Get the full event lifecycle of a single AI request from any account
|
|
8835
|
-
* @request GET:/api/ai/superadmin/audit-logs/request/{requestId}
|
|
8836
|
-
* @secure
|
|
8837
|
-
* @response `200` `(AiAuditLog)[]` OK
|
|
8838
|
-
*/
|
|
8839
|
-
getAiRequestLifecycleCrossAccount: (
|
|
8840
|
-
requestId: string,
|
|
8841
|
-
query?: {
|
|
8842
|
-
/** @format uuid */
|
|
8843
|
-
accountId?: string;
|
|
8844
|
-
},
|
|
8845
|
-
params: RequestParams = {},
|
|
8846
|
-
) =>
|
|
8847
|
-
this.request<AiAuditLog[], any>({
|
|
8848
|
-
path: `/api/ai/superadmin/audit-logs/request/${requestId}`,
|
|
8792
|
+
path: `/api/ai/prompts/available`,
|
|
8849
8793
|
method: "GET",
|
|
8850
8794
|
query: query,
|
|
8851
8795
|
secure: true,
|
|
@@ -8853,110 +8797,13 @@ export class Api<
|
|
|
8853
8797
|
...params,
|
|
8854
8798
|
}),
|
|
8855
8799
|
|
|
8856
|
-
/**
|
|
8857
|
-
* No description
|
|
8858
|
-
*
|
|
8859
|
-
* @tags AiSuperAdmin
|
|
8860
|
-
* @name GetAiStatsCrossAccount
|
|
8861
|
-
* @summary Get AI stats for a specific account or platform-wide
|
|
8862
|
-
* @request GET:/api/ai/superadmin/stats
|
|
8863
|
-
* @secure
|
|
8864
|
-
* @response `200` `AiAdminStats` OK
|
|
8865
|
-
*/
|
|
8866
|
-
getAiStatsCrossAccount: (
|
|
8867
|
-
query?: {
|
|
8868
|
-
/** @format uuid */
|
|
8869
|
-
accountId?: string;
|
|
8870
|
-
/** @format date-time */
|
|
8871
|
-
startDate?: string;
|
|
8872
|
-
/** @format date-time */
|
|
8873
|
-
endDate?: string;
|
|
8874
|
-
},
|
|
8875
|
-
params: RequestParams = {},
|
|
8876
|
-
) =>
|
|
8877
|
-
this.request<AiAdminStats, any>({
|
|
8878
|
-
path: `/api/ai/superadmin/stats`,
|
|
8879
|
-
method: "GET",
|
|
8880
|
-
query: query,
|
|
8881
|
-
secure: true,
|
|
8882
|
-
format: "json",
|
|
8883
|
-
...params,
|
|
8884
|
-
}),
|
|
8885
|
-
|
|
8886
|
-
/**
|
|
8887
|
-
* No description
|
|
8888
|
-
*
|
|
8889
|
-
* @tags AiSuperAdmin
|
|
8890
|
-
* @name GetAiConfigChangesCrossAccount
|
|
8891
|
-
* @summary Get AI configuration change history for a specific account or across all accounts (incl. global defaults)
|
|
8892
|
-
* @request GET:/api/ai/superadmin/config-changes
|
|
8893
|
-
* @secure
|
|
8894
|
-
* @response `200` `AiConfigChangeLogPaginated` OK
|
|
8895
|
-
*/
|
|
8896
|
-
getAiConfigChangesCrossAccount: (
|
|
8897
|
-
query?: {
|
|
8898
|
-
/** @format uuid */
|
|
8899
|
-
accountId?: string;
|
|
8900
|
-
entityType?: AiConfigEntityType;
|
|
8901
|
-
/** @format uuid */
|
|
8902
|
-
entityId?: string;
|
|
8903
|
-
/** @format uuid */
|
|
8904
|
-
actorUserId?: string;
|
|
8905
|
-
action?: AiConfigChangeAction;
|
|
8906
|
-
/** @format date-time */
|
|
8907
|
-
startDate?: string;
|
|
8908
|
-
/** @format date-time */
|
|
8909
|
-
endDate?: string;
|
|
8910
|
-
/** @format int32 */
|
|
8911
|
-
pageSize?: number;
|
|
8912
|
-
/** @format int32 */
|
|
8913
|
-
pageNumber?: number;
|
|
8914
|
-
sortBy?: string;
|
|
8915
|
-
sortDirection?: string;
|
|
8916
|
-
},
|
|
8917
|
-
params: RequestParams = {},
|
|
8918
|
-
) =>
|
|
8919
|
-
this.request<AiConfigChangeLogPaginated, any>({
|
|
8920
|
-
path: `/api/ai/superadmin/config-changes`,
|
|
8921
|
-
method: "GET",
|
|
8922
|
-
query: query,
|
|
8923
|
-
secure: true,
|
|
8924
|
-
format: "json",
|
|
8925
|
-
...params,
|
|
8926
|
-
}),
|
|
8927
|
-
|
|
8928
|
-
/**
|
|
8929
|
-
* No description
|
|
8930
|
-
*
|
|
8931
|
-
* @tags AiSuperAdmin
|
|
8932
|
-
* @name SetAccountAiEnabled
|
|
8933
|
-
* @summary Enable or disable AI for an account (SuperAdmin only)
|
|
8934
|
-
* @request PUT:/api/ai/superadmin/accounts/{accountId}/ai-enabled
|
|
8935
|
-
* @secure
|
|
8936
|
-
* @response `204` `void` No Content
|
|
8937
|
-
* @response `404` `ProblemDetails` Not Found
|
|
8938
|
-
*/
|
|
8939
|
-
setAccountAiEnabled: (
|
|
8940
|
-
accountId: string,
|
|
8941
|
-
data: SetAiEnabledRequest,
|
|
8942
|
-
params: RequestParams = {},
|
|
8943
|
-
) =>
|
|
8944
|
-
this.request<void, ProblemDetails>({
|
|
8945
|
-
path: `/api/ai/superadmin/accounts/${accountId}/ai-enabled`,
|
|
8946
|
-
method: "PUT",
|
|
8947
|
-
body: data,
|
|
8948
|
-
secure: true,
|
|
8949
|
-
type: ContentType.JsonPatch,
|
|
8950
|
-
...params,
|
|
8951
|
-
}),
|
|
8952
|
-
|
|
8953
8800
|
/**
|
|
8954
8801
|
* No description
|
|
8955
8802
|
*
|
|
8956
8803
|
* @tags AiTokenUsageAdmin
|
|
8957
8804
|
* @name SearchAiAccountTokenUsage
|
|
8958
8805
|
* @summary Search accounts by current-month AI token usage and classification
|
|
8959
|
-
* @request POST:/api/ai/
|
|
8806
|
+
* @request POST:/api/ai/token-usage/search
|
|
8960
8807
|
* @secure
|
|
8961
8808
|
* @response `200` `AiAccountUsageOverviewPaginated` OK
|
|
8962
8809
|
*/
|
|
@@ -8973,12 +8820,12 @@ export class Api<
|
|
|
8973
8820
|
params: RequestParams = {},
|
|
8974
8821
|
) =>
|
|
8975
8822
|
this.request<AiAccountUsageOverviewPaginated, any>({
|
|
8976
|
-
path: `/api/ai/
|
|
8823
|
+
path: `/api/ai/token-usage/search`,
|
|
8977
8824
|
method: "POST",
|
|
8978
8825
|
query: query,
|
|
8979
8826
|
body: data,
|
|
8980
8827
|
secure: true,
|
|
8981
|
-
type: ContentType.
|
|
8828
|
+
type: ContentType.JsonPatch,
|
|
8982
8829
|
format: "json",
|
|
8983
8830
|
...params,
|
|
8984
8831
|
}),
|
|
@@ -8989,13 +8836,13 @@ export class Api<
|
|
|
8989
8836
|
* @tags AiTokenUsageAdmin
|
|
8990
8837
|
* @name GetAiAccountTokenUsage
|
|
8991
8838
|
* @summary Get an account's current-month AI token usage
|
|
8992
|
-
* @request GET:/api/ai/
|
|
8839
|
+
* @request GET:/api/ai/token-usage/{accountId}
|
|
8993
8840
|
* @secure
|
|
8994
8841
|
* @response `200` `AiTokenBudgetStatus` OK
|
|
8995
8842
|
*/
|
|
8996
8843
|
getAiAccountTokenUsage: (accountId: string, params: RequestParams = {}) =>
|
|
8997
8844
|
this.request<AiTokenBudgetStatus, any>({
|
|
8998
|
-
path: `/api/ai/
|
|
8845
|
+
path: `/api/ai/token-usage/${accountId}`,
|
|
8999
8846
|
method: "GET",
|
|
9000
8847
|
secure: true,
|
|
9001
8848
|
format: "json",
|
|
@@ -9008,7 +8855,7 @@ export class Api<
|
|
|
9008
8855
|
* @tags AiTokenUsageAdmin
|
|
9009
8856
|
* @name GetAiAccountTokenUsageHistory
|
|
9010
8857
|
* @summary Get an account's monthly AI token usage history
|
|
9011
|
-
* @request GET:/api/ai/
|
|
8858
|
+
* @request GET:/api/ai/token-usage/{accountId}/history
|
|
9012
8859
|
* @secure
|
|
9013
8860
|
* @response `200` `AiTokenUsageWindowPaginated` OK
|
|
9014
8861
|
*/
|
|
@@ -9025,7 +8872,7 @@ export class Api<
|
|
|
9025
8872
|
params: RequestParams = {},
|
|
9026
8873
|
) =>
|
|
9027
8874
|
this.request<AiTokenUsageWindowPaginated, any>({
|
|
9028
|
-
path: `/api/ai/
|
|
8875
|
+
path: `/api/ai/token-usage/${accountId}/history`,
|
|
9029
8876
|
method: "GET",
|
|
9030
8877
|
query: query,
|
|
9031
8878
|
secure: true,
|
|
@@ -9039,7 +8886,7 @@ export class Api<
|
|
|
9039
8886
|
* @tags AiTokenUsageAdmin
|
|
9040
8887
|
* @name SetAiAccountTokenLimit
|
|
9041
8888
|
* @summary Set or raise an account's monthly AI token limit
|
|
9042
|
-
* @request PUT:/api/ai/
|
|
8889
|
+
* @request PUT:/api/ai/token-usage/{accountId}/limit
|
|
9043
8890
|
* @secure
|
|
9044
8891
|
* @response `200` `AiTokenBudgetStatus` OK
|
|
9045
8892
|
* @response `400` `ProblemDetails` Bad Request
|
|
@@ -9050,7 +8897,7 @@ export class Api<
|
|
|
9050
8897
|
params: RequestParams = {},
|
|
9051
8898
|
) =>
|
|
9052
8899
|
this.request<AiTokenBudgetStatus, ProblemDetails>({
|
|
9053
|
-
path: `/api/ai/
|
|
8900
|
+
path: `/api/ai/token-usage/${accountId}/limit`,
|
|
9054
8901
|
method: "PUT",
|
|
9055
8902
|
body: data,
|
|
9056
8903
|
secure: true,
|
|
@@ -9065,13 +8912,13 @@ export class Api<
|
|
|
9065
8912
|
* @tags AiUrlSource
|
|
9066
8913
|
* @name GetAiUrlSources
|
|
9067
8914
|
* @summary Get all URL sources
|
|
9068
|
-
* @request GET:/api/ai/
|
|
8915
|
+
* @request GET:/api/ai/url-sources
|
|
9069
8916
|
* @secure
|
|
9070
8917
|
* @response `200` `(AiUrlSource)[]` OK
|
|
9071
8918
|
*/
|
|
9072
8919
|
getAiUrlSources: (params: RequestParams = {}) =>
|
|
9073
8920
|
this.request<AiUrlSource[], any>({
|
|
9074
|
-
path: `/api/ai/
|
|
8921
|
+
path: `/api/ai/url-sources`,
|
|
9075
8922
|
method: "GET",
|
|
9076
8923
|
secure: true,
|
|
9077
8924
|
format: "json",
|
|
@@ -9084,7 +8931,7 @@ export class Api<
|
|
|
9084
8931
|
* @tags AiUrlSource
|
|
9085
8932
|
* @name CreateAiUrlSource
|
|
9086
8933
|
* @summary Create URL source
|
|
9087
|
-
* @request POST:/api/ai/
|
|
8934
|
+
* @request POST:/api/ai/url-sources
|
|
9088
8935
|
* @secure
|
|
9089
8936
|
* @response `201` `AiUrlSource` Created
|
|
9090
8937
|
* @response `400` `ProblemDetails` Bad Request
|
|
@@ -9095,7 +8942,7 @@ export class Api<
|
|
|
9095
8942
|
params: RequestParams = {},
|
|
9096
8943
|
) =>
|
|
9097
8944
|
this.request<AiUrlSource, ProblemDetails>({
|
|
9098
|
-
path: `/api/ai/
|
|
8945
|
+
path: `/api/ai/url-sources`,
|
|
9099
8946
|
method: "POST",
|
|
9100
8947
|
body: data,
|
|
9101
8948
|
secure: true,
|
|
@@ -9110,14 +8957,14 @@ export class Api<
|
|
|
9110
8957
|
* @tags AiUrlSource
|
|
9111
8958
|
* @name GetAiUrlSource
|
|
9112
8959
|
* @summary Get URL source by ID
|
|
9113
|
-
* @request GET:/api/ai/
|
|
8960
|
+
* @request GET:/api/ai/url-sources/{id}
|
|
9114
8961
|
* @secure
|
|
9115
8962
|
* @response `200` `AiUrlSource` OK
|
|
9116
8963
|
* @response `404` `ProblemDetails` Not Found
|
|
9117
8964
|
*/
|
|
9118
8965
|
getAiUrlSource: (id: string, params: RequestParams = {}) =>
|
|
9119
8966
|
this.request<AiUrlSource, ProblemDetails>({
|
|
9120
|
-
path: `/api/ai/
|
|
8967
|
+
path: `/api/ai/url-sources/${id}`,
|
|
9121
8968
|
method: "GET",
|
|
9122
8969
|
secure: true,
|
|
9123
8970
|
format: "json",
|
|
@@ -9130,7 +8977,7 @@ export class Api<
|
|
|
9130
8977
|
* @tags AiUrlSource
|
|
9131
8978
|
* @name UpdateAiUrlSource
|
|
9132
8979
|
* @summary Update URL source
|
|
9133
|
-
* @request PUT:/api/ai/
|
|
8980
|
+
* @request PUT:/api/ai/url-sources/{id}
|
|
9134
8981
|
* @secure
|
|
9135
8982
|
* @response `200` `AiUrlSource` OK
|
|
9136
8983
|
* @response `400` `ProblemDetails` Bad Request
|
|
@@ -9143,7 +8990,7 @@ export class Api<
|
|
|
9143
8990
|
params: RequestParams = {},
|
|
9144
8991
|
) =>
|
|
9145
8992
|
this.request<AiUrlSource, ProblemDetails>({
|
|
9146
|
-
path: `/api/ai/
|
|
8993
|
+
path: `/api/ai/url-sources/${id}`,
|
|
9147
8994
|
method: "PUT",
|
|
9148
8995
|
body: data,
|
|
9149
8996
|
secure: true,
|
|
@@ -9158,14 +9005,14 @@ export class Api<
|
|
|
9158
9005
|
* @tags AiUrlSource
|
|
9159
9006
|
* @name DeleteAiUrlSource
|
|
9160
9007
|
* @summary Delete URL source
|
|
9161
|
-
* @request DELETE:/api/ai/
|
|
9008
|
+
* @request DELETE:/api/ai/url-sources/{id}
|
|
9162
9009
|
* @secure
|
|
9163
9010
|
* @response `204` `void` No Content
|
|
9164
9011
|
* @response `404` `ProblemDetails` Not Found
|
|
9165
9012
|
*/
|
|
9166
9013
|
deleteAiUrlSource: (id: string, params: RequestParams = {}) =>
|
|
9167
9014
|
this.request<void, ProblemDetails>({
|
|
9168
|
-
path: `/api/ai/
|
|
9015
|
+
path: `/api/ai/url-sources/${id}`,
|
|
9169
9016
|
method: "DELETE",
|
|
9170
9017
|
secure: true,
|
|
9171
9018
|
...params,
|
|
@@ -9177,14 +9024,14 @@ export class Api<
|
|
|
9177
9024
|
* @tags AiUrlSource
|
|
9178
9025
|
* @name ToggleAiUrlSource
|
|
9179
9026
|
* @summary Toggle URL source active/inactive
|
|
9180
|
-
* @request PATCH:/api/ai/
|
|
9027
|
+
* @request PATCH:/api/ai/url-sources/{id}/toggle
|
|
9181
9028
|
* @secure
|
|
9182
9029
|
* @response `200` `AiUrlSource` OK
|
|
9183
9030
|
* @response `404` `ProblemDetails` Not Found
|
|
9184
9031
|
*/
|
|
9185
9032
|
toggleAiUrlSource: (id: string, params: RequestParams = {}) =>
|
|
9186
9033
|
this.request<AiUrlSource, ProblemDetails>({
|
|
9187
|
-
path: `/api/ai/
|
|
9034
|
+
path: `/api/ai/url-sources/${id}/toggle`,
|
|
9188
9035
|
method: "PATCH",
|
|
9189
9036
|
secure: true,
|
|
9190
9037
|
format: "json",
|
|
@@ -10967,6 +10814,47 @@ export class Api<
|
|
|
10967
10814
|
...params,
|
|
10968
10815
|
}),
|
|
10969
10816
|
|
|
10817
|
+
/**
|
|
10818
|
+
* No description
|
|
10819
|
+
*
|
|
10820
|
+
* @tags Encompass Packages
|
|
10821
|
+
* @name GetLoanPackages
|
|
10822
|
+
* @request GET:/api/los/encompass/eclose/loans/{loanId}/packages
|
|
10823
|
+
* @secure
|
|
10824
|
+
* @response `200` `EncompassPackageList` OK
|
|
10825
|
+
* @response `400` `EncompassError` Bad Request
|
|
10826
|
+
* @response `401` `EncompassError` Unauthorized
|
|
10827
|
+
* @response `403` `EncompassError` Forbidden
|
|
10828
|
+
* @response `500` `EncompassError` Internal Server Error
|
|
10829
|
+
*/
|
|
10830
|
+
getLoanPackages: (
|
|
10831
|
+
loanId: string,
|
|
10832
|
+
query?: {
|
|
10833
|
+
status?: string;
|
|
10834
|
+
/**
|
|
10835
|
+
* @format int32
|
|
10836
|
+
* @default 1
|
|
10837
|
+
*/
|
|
10838
|
+
page?: number;
|
|
10839
|
+
/**
|
|
10840
|
+
* @format int32
|
|
10841
|
+
* @default 20
|
|
10842
|
+
*/
|
|
10843
|
+
pageSize?: number;
|
|
10844
|
+
sortBy?: string;
|
|
10845
|
+
sortDirection?: string;
|
|
10846
|
+
},
|
|
10847
|
+
params: RequestParams = {},
|
|
10848
|
+
) =>
|
|
10849
|
+
this.request<EncompassPackageList, EncompassError>({
|
|
10850
|
+
path: `/api/los/encompass/eclose/loans/${loanId}/packages`,
|
|
10851
|
+
method: "GET",
|
|
10852
|
+
query: query,
|
|
10853
|
+
secure: true,
|
|
10854
|
+
format: "json",
|
|
10855
|
+
...params,
|
|
10856
|
+
}),
|
|
10857
|
+
|
|
10970
10858
|
/**
|
|
10971
10859
|
* No description
|
|
10972
10860
|
*
|