@cdot65/prisma-airs-sdk 0.6.1 → 0.6.2

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 CHANGED
@@ -20,15 +20,25 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
+ AIRS_ENDPOINTS: () => AIRS_ENDPOINTS,
23
24
  AISecSDKException: () => AISecSDKException,
24
25
  AI_SEC_API_ENDPOINT: () => AI_SEC_API_ENDPOINT,
25
26
  AI_SEC_API_KEY: () => AI_SEC_API_KEY,
26
27
  AI_SEC_API_TOKEN: () => AI_SEC_API_TOKEN,
27
28
  ASYNC_SCAN_PATH: () => ASYNC_SCAN_PATH,
28
29
  Action: () => Action,
30
+ AgentEntrySchema: () => AgentEntrySchema,
29
31
  AgentMetaSchema: () => AgentMetaSchema,
32
+ AgentReportSchema: () => AgentReportSchema,
30
33
  AiProfileSchema: () => AiProfileSchema,
31
34
  ApiEndpointType: () => ApiEndpointType,
35
+ ApiKeyCreateRequestSchema: () => ApiKeyCreateRequestSchema,
36
+ ApiKeyDPInfoSchema: () => ApiKeyDPInfoSchema,
37
+ ApiKeyDeleteResponseSchema: () => ApiKeyDeleteResponseSchema,
38
+ ApiKeyListResponseSchema: () => ApiKeyListResponseSchema,
39
+ ApiKeyRegenerateRequestSchema: () => ApiKeyRegenerateRequestSchema,
40
+ ApiKeySchema: () => ApiKeySchema,
41
+ ApiKeysClient: () => ApiKeysClient,
32
42
  AsyncScanObjectSchema: () => AsyncScanObjectSchema,
33
43
  AsyncScanResponseSchema: () => AsyncScanResponseSchema,
34
44
  AttackDetailResponseSchema: () => AttackDetailResponseSchema,
@@ -47,11 +57,17 @@ __export(index_exports, {
47
57
  Category: () => Category,
48
58
  CategoryModelSchema: () => CategoryModelSchema,
49
59
  CategoryReportSchema: () => CategoryReportSchema,
60
+ CgReportSchema: () => CgReportSchema,
61
+ ClientIdAndCustomerAppSchema: () => ClientIdAndCustomerAppSchema,
62
+ CmdEntrySchema: () => CmdEntrySchema,
63
+ CmdInjectReportSchema: () => CmdInjectReportSchema,
50
64
  ComplianceReportSchema: () => ComplianceReportSchema,
51
65
  ComplianceSubCategory: () => ComplianceSubCategory,
52
66
  ComplianceTechniqueSchema: () => ComplianceTechniqueSchema,
53
67
  ConnectionParamsSchema: () => ConnectionParamsSchema,
54
68
  Content: () => Content,
69
+ ContentErrorSchema: () => ContentErrorSchema,
70
+ ContentErrorType: () => ContentErrorType,
55
71
  CountByNameSchema: () => CountByNameSchema,
56
72
  CountedQuotaEnum: () => CountedQuotaEnum,
57
73
  CreateCustomTopicRequestSchema: () => CreateCustomTopicRequestSchema,
@@ -76,6 +92,10 @@ __export(index_exports, {
76
92
  CustomPromptUpdateRequestSchema: () => CustomPromptUpdateRequestSchema,
77
93
  CustomTopicListResponseSchema: () => CustomTopicListResponseSchema,
78
94
  CustomTopicSchema: () => CustomTopicSchema,
95
+ CustomerAppListResponseSchema: () => CustomerAppListResponseSchema,
96
+ CustomerAppSchema: () => CustomerAppSchema,
97
+ CustomerAppWithKeysSchema: () => CustomerAppWithKeysSchema,
98
+ CustomerAppsClient: () => CustomerAppsClient,
79
99
  DEFAULT_ENDPOINT: () => DEFAULT_ENDPOINT,
80
100
  DEFAULT_MGMT_ENDPOINT: () => DEFAULT_MGMT_ENDPOINT,
81
101
  DEFAULT_MODEL_SEC_DATA_ENDPOINT: () => DEFAULT_MODEL_SEC_DATA_ENDPOINT,
@@ -88,11 +108,21 @@ __export(index_exports, {
88
108
  DashboardOverviewResponseSchema: () => DashboardOverviewResponseSchema,
89
109
  DatabricksConnectionParamsSchema: () => DatabricksConnectionParamsSchema,
90
110
  DateRangeFilter: () => DateRangeFilter,
111
+ DbsEntrySchema: () => DbsEntrySchema,
112
+ DbsReportSchema: () => DbsReportSchema,
91
113
  DeleteProfileConflictSchema: () => DeleteProfileConflictSchema,
92
114
  DeleteProfileResponseSchema: () => DeleteProfileResponseSchema,
93
115
  DeleteTopicConflictSchema: () => DeleteTopicConflictSchema,
94
116
  DeleteTopicResponseSchema: () => DeleteTopicResponseSchema,
117
+ DeploymentProfileEntrySchema: () => DeploymentProfileEntrySchema,
118
+ DeploymentProfilesClient: () => DeploymentProfilesClient,
119
+ DeploymentProfilesResponseSchema: () => DeploymentProfilesResponseSchema,
120
+ DetectionServiceName: () => DetectionServiceName,
95
121
  DetectionServiceResultSchema: () => DetectionServiceResultSchema,
122
+ DlpDataProfileSchema: () => DlpDataProfileSchema2,
123
+ DlpPatternDetectionSchema: () => DlpPatternDetectionSchema,
124
+ DlpProfileListResponseSchema: () => DlpProfileListResponseSchema,
125
+ DlpProfilesClient: () => DlpProfilesClient,
96
126
  DlpReportSchema: () => DlpReportSchema,
97
127
  DynamicJobMetadataSchema: () => DynamicJobMetadataSchema,
98
128
  DynamicJobReportSchema: () => DynamicJobReportSchema,
@@ -102,6 +132,7 @@ __export(index_exports, {
102
132
  ErrorLogSchema: () => ErrorLogSchema,
103
133
  ErrorResponseSchema: () => ErrorResponseSchema,
104
134
  ErrorSource: () => ErrorSource,
135
+ ErrorStatus: () => ErrorStatus,
105
136
  ErrorType: () => ErrorType,
106
137
  EvalOutcome: () => EvalOutcome,
107
138
  EvalSummarySchema: () => EvalSummarySchema,
@@ -153,11 +184,20 @@ __export(index_exports, {
153
184
  MAX_SESSION_ID_STR_LENGTH: () => MAX_SESSION_ID_STR_LENGTH,
154
185
  MAX_TOKEN_LENGTH: () => MAX_TOKEN_LENGTH,
155
186
  MAX_TRANSACTION_ID_STR_LENGTH: () => MAX_TRANSACTION_ID_STR_LENGTH,
187
+ MGMT_API_KEYS_TSG_PATH: () => MGMT_API_KEYS_TSG_PATH,
188
+ MGMT_API_KEY_PATH: () => MGMT_API_KEY_PATH,
156
189
  MGMT_CLIENT_ID: () => MGMT_CLIENT_ID,
157
190
  MGMT_CLIENT_SECRET: () => MGMT_CLIENT_SECRET,
191
+ MGMT_CUSTOMER_APPS_TSG_PATH: () => MGMT_CUSTOMER_APPS_TSG_PATH,
192
+ MGMT_CUSTOMER_APP_PATH: () => MGMT_CUSTOMER_APP_PATH,
193
+ MGMT_DEPLOYMENT_PROFILES_PATH: () => MGMT_DEPLOYMENT_PROFILES_PATH,
194
+ MGMT_DLP_PROFILES_PATH: () => MGMT_DLP_PROFILES_PATH,
158
195
  MGMT_ENDPOINT: () => MGMT_ENDPOINT,
196
+ MGMT_OAUTH_INVALIDATE_PATH: () => MGMT_OAUTH_INVALIDATE_PATH,
197
+ MGMT_OAUTH_TOKEN_PATH: () => MGMT_OAUTH_TOKEN_PATH,
159
198
  MGMT_PROFILES_TSG_PATH: () => MGMT_PROFILES_TSG_PATH,
160
199
  MGMT_PROFILE_PATH: () => MGMT_PROFILE_PATH,
200
+ MGMT_SCAN_LOGS_PATH: () => MGMT_SCAN_LOGS_PATH,
161
201
  MGMT_TOKEN_ENDPOINT: () => MGMT_TOKEN_ENDPOINT,
162
202
  MGMT_TOPICS_TSG_PATH: () => MGMT_TOPICS_TSG_PATH,
163
203
  MGMT_TOPIC_FORCE_PATH: () => MGMT_TOPIC_FORCE_PATH,
@@ -175,8 +215,11 @@ __export(index_exports, {
175
215
  MODEL_SEC_TOKEN_ENDPOINT: () => MODEL_SEC_TOKEN_ENDPOINT,
176
216
  MODEL_SEC_TSG_ID: () => MODEL_SEC_TSG_ID,
177
217
  MODEL_SEC_VIOLATIONS_PATH: () => MODEL_SEC_VIOLATIONS_PATH,
218
+ MalwareReportSchema: () => MalwareReportSchema,
178
219
  ManagementClient: () => ManagementClient,
179
220
  MaskedDataSchema: () => MaskedDataSchema,
221
+ McEntrySchema: () => McEntrySchema,
222
+ McReportSchema: () => McReportSchema,
180
223
  MetadataSchema: () => MetadataSchema,
181
224
  ModelScanIssueSchema: () => ModelScanIssueSchema,
182
225
  ModelScanStatus: () => ModelScanStatus,
@@ -195,8 +238,13 @@ __export(index_exports, {
195
238
  MultiTurnStatefulConfigSchema: () => MultiTurnStatefulConfigSchema,
196
239
  MultiTurnStatelessConfigSchema: () => MultiTurnStatelessConfigSchema,
197
240
  OAuthClient: () => OAuthClient,
241
+ OAuthManagementClient: () => OAuthManagementClient,
242
+ Oauth2TokenSchema: () => Oauth2TokenSchema,
243
+ OffsetSchema: () => OffsetSchema,
198
244
  OpenAIConnectionParamsSchema: () => OpenAIConnectionParamsSchema,
199
245
  PAYLOAD_HASH: () => PAYLOAD_HASH,
246
+ PaginatedScanResultsSchema: () => PaginatedScanResultsSchema,
247
+ PatternDetectionSchema: () => PatternDetectionSchema,
200
248
  PolicySchema: () => PolicySchema,
201
249
  PolicyType: () => PolicyType,
202
250
  PrerequisiteModelSchema: () => PrerequisiteModelSchema,
@@ -279,10 +327,13 @@ __export(index_exports, {
279
327
  ScanDetailsSchema: () => ScanDetailsSchema,
280
328
  ScanIdResultSchema: () => ScanIdResultSchema,
281
329
  ScanListSchema: () => ScanListSchema,
330
+ ScanLogsClient: () => ScanLogsClient,
282
331
  ScanOrigin: () => ScanOrigin,
283
332
  ScanRequestContentsInnerSchema: () => ScanRequestContentsInnerSchema,
284
333
  ScanRequestSchema: () => ScanRequestSchema,
285
334
  ScanResponseSchema: () => ScanResponseSchema,
335
+ ScanResultEntrySchema: () => ScanResultEntrySchema,
336
+ ScanResultForDashboardSchema: () => ScanResultForDashboardSchema,
286
337
  ScanStatisticsResponseSchema: () => ScanStatisticsResponseSchema,
287
338
  ScanSummarySchema: () => ScanSummarySchema,
288
339
  Scanner: () => Scanner,
@@ -329,6 +380,8 @@ __export(index_exports, {
329
380
  TargetStatus: () => TargetStatus,
330
381
  TargetType: () => TargetType,
331
382
  TargetUpdateRequestSchema: () => TargetUpdateRequestSchema,
383
+ TcReportSchema: () => TcReportSchema,
384
+ TgReportSchema: () => TgReportSchema,
332
385
  ThreatCategory: () => ThreatCategory,
333
386
  ThreatScanReportSchema: () => ThreatScanReportSchema,
334
387
  ToolDetectedSchema: () => ToolDetectedSchema,
@@ -352,6 +405,12 @@ var HEADER_AUTH_TOKEN = "Authorization";
352
405
  var PAYLOAD_HASH = "x-payload-hash";
353
406
  var BEARER = "Bearer ";
354
407
  var DEFAULT_ENDPOINT = "https://service.api.aisecurity.paloaltonetworks.com";
408
+ var AIRS_ENDPOINTS = {
409
+ US: "https://service.api.aisecurity.paloaltonetworks.com",
410
+ EU: "https://service-de.api.aisecurity.paloaltonetworks.com",
411
+ INDIA: "https://service-in.api.aisecurity.paloaltonetworks.com",
412
+ SINGAPORE: "https://service-sg.api.aisecurity.paloaltonetworks.com"
413
+ };
355
414
  var AI_SEC_API_KEY = "PANW_AI_SEC_API_KEY";
356
415
  var AI_SEC_API_TOKEN = "PANW_AI_SEC_API_TOKEN";
357
416
  var AI_SEC_API_ENDPOINT = "PANW_AI_SEC_API_ENDPOINT";
@@ -371,7 +430,7 @@ var MAX_NUMBER_OF_BATCH_SCAN_OBJECTS = 5;
371
430
  var MAX_CONNECTION_POOL_SIZE = 100;
372
431
  var MAX_NUMBER_OF_RETRIES = 5;
373
432
  var HTTP_FORCE_RETRY_STATUS_CODES = [500, 502, 503, 504];
374
- var SDK_VERSION = "0.6.1";
433
+ var SDK_VERSION = "0.6.2";
375
434
  var USER_AGENT = `PAN-AIRS/${SDK_VERSION}-typescript-sdk`;
376
435
  var DEFAULT_MGMT_ENDPOINT = "https://api.sase.paloaltonetworks.com/aisec";
377
436
  var DEFAULT_TOKEN_ENDPOINT = "https://auth.apps.paloaltonetworks.com/oauth2/access_token";
@@ -389,6 +448,15 @@ var MGMT_PROFILES_TSG_PATH = "/v1/mgmt/profiles/tsg";
389
448
  var MGMT_TOPIC_PATH = "/v1/mgmt/topic";
390
449
  var MGMT_TOPICS_TSG_PATH = "/v1/mgmt/topics/tsg";
391
450
  var MGMT_TOPIC_FORCE_PATH = "/v1/mgmt/topic/force";
451
+ var MGMT_API_KEY_PATH = "/v1/mgmt/apikey";
452
+ var MGMT_API_KEYS_TSG_PATH = "/v1/mgmt/apikeys/tsg";
453
+ var MGMT_DLP_PROFILES_PATH = "/v1/mgmt/dlpprofiles";
454
+ var MGMT_DEPLOYMENT_PROFILES_PATH = "/v1/mgmt/deploymentprofiles";
455
+ var MGMT_SCAN_LOGS_PATH = "/v1/mgmt/scanlogs";
456
+ var MGMT_CUSTOMER_APP_PATH = "/v1/mgmt/customerapp";
457
+ var MGMT_CUSTOMER_APPS_TSG_PATH = "/v1/mgmt/customerapp/tsg";
458
+ var MGMT_OAUTH_INVALIDATE_PATH = "/v1/mgmt/oauth/invalidateToken";
459
+ var MGMT_OAUTH_TOKEN_PATH = "/v1/mgmt/oauth/client_credential/accesstoken";
392
460
  var DEFAULT_MODEL_SEC_DATA_ENDPOINT = "https://api.sase.paloaltonetworks.com/aims/data";
393
461
  var DEFAULT_MODEL_SEC_MGMT_ENDPOINT = "https://api.sase.paloaltonetworks.com/aims/mgmt";
394
462
  var MODEL_SEC_CLIENT_ID = "PANW_MODEL_SEC_CLIENT_ID";
@@ -912,6 +980,25 @@ var Category = {
912
980
  MALICIOUS: "malicious",
913
981
  UNKNOWN: "unknown"
914
982
  };
983
+ var DetectionServiceName = {
984
+ DLP: "dlp",
985
+ INJECTION: "injection",
986
+ URL_CATS: "url_cats",
987
+ TOXIC_CONTENT: "toxic_content",
988
+ MALICIOUS_CODE: "malicious_code",
989
+ AGENT: "agent",
990
+ TOPIC_VIOLATION: "topic_violation",
991
+ DB_SECURITY: "db_security",
992
+ UNGROUNDED: "ungrounded"
993
+ };
994
+ var ContentErrorType = {
995
+ PROMPT: "prompt",
996
+ RESPONSE: "response"
997
+ };
998
+ var ErrorStatus = {
999
+ ERROR: "error",
1000
+ TIMEOUT: "timeout"
1001
+ };
915
1002
 
916
1003
  // src/models/ai-profile.ts
917
1004
  var import_zod = require("zod");
@@ -970,7 +1057,7 @@ var ScanRequestSchema = import_zod4.z.object({
970
1057
  });
971
1058
 
972
1059
  // src/models/scan-response.ts
973
- var import_zod7 = require("zod");
1060
+ var import_zod8 = require("zod");
974
1061
 
975
1062
  // src/models/prompt-detected.ts
976
1063
  var import_zod5 = require("zod");
@@ -1003,39 +1090,112 @@ var ResponseDetectedSchema = import_zod6.z.object({
1003
1090
  topic_violation: import_zod6.z.boolean().optional()
1004
1091
  });
1005
1092
 
1006
- // src/models/scan-response.ts
1007
- var MaskedDataSchema = import_zod7.z.object({
1008
- data: import_zod7.z.string().optional(),
1009
- pattern_detections: import_zod7.z.array(import_zod7.z.record(import_zod7.z.unknown())).optional()
1010
- });
1011
- var IODetectedSchema = import_zod7.z.object({
1012
- url_cats: import_zod7.z.boolean().optional(),
1013
- dlp: import_zod7.z.boolean().optional(),
1014
- injection: import_zod7.z.boolean().optional(),
1015
- toxic_content: import_zod7.z.boolean().optional(),
1016
- malicious_code: import_zod7.z.boolean().optional()
1017
- }).passthrough();
1018
- var ScanSummarySchema = import_zod7.z.object({
1093
+ // src/models/detection-reports.ts
1094
+ var import_zod7 = require("zod");
1095
+ var TcReportSchema = import_zod7.z.object({
1096
+ confidence: import_zod7.z.string().optional(),
1097
+ verdict: import_zod7.z.string().optional()
1098
+ }).passthrough();
1099
+ var DbsEntrySchema = import_zod7.z.object({
1100
+ sub_type: import_zod7.z.string().optional(),
1019
1101
  verdict: import_zod7.z.string().optional(),
1020
1102
  action: import_zod7.z.string().optional()
1021
1103
  }).passthrough();
1022
- var ToolDetectedSchema = import_zod7.z.object({
1104
+ var DbsReportSchema = import_zod7.z.array(DbsEntrySchema);
1105
+ var McEntrySchema = import_zod7.z.object({
1106
+ file_type: import_zod7.z.string().optional(),
1107
+ code_sha256: import_zod7.z.string().optional()
1108
+ }).passthrough();
1109
+ var MalwareReportSchema = import_zod7.z.object({
1110
+ verdict: import_zod7.z.string().optional()
1111
+ }).passthrough();
1112
+ var CmdEntrySchema = import_zod7.z.object({
1113
+ code_block: import_zod7.z.string().optional(),
1114
+ verdict: import_zod7.z.string().optional()
1115
+ }).passthrough();
1116
+ var CmdInjectReportSchema = import_zod7.z.array(CmdEntrySchema);
1117
+ var McReportSchema = import_zod7.z.object({
1118
+ all_code_blocks: import_zod7.z.array(import_zod7.z.string()).optional(),
1119
+ code_analysis_by_type: import_zod7.z.array(McEntrySchema).optional(),
1023
1120
  verdict: import_zod7.z.string().optional(),
1121
+ malware_script_report: MalwareReportSchema.optional(),
1122
+ command_injection_report: CmdInjectReportSchema.optional()
1123
+ }).passthrough();
1124
+ var AgentEntrySchema = import_zod7.z.object({
1125
+ category_type: import_zod7.z.string().optional(),
1126
+ verdict: import_zod7.z.string().optional()
1127
+ }).passthrough();
1128
+ var AgentReportSchema = import_zod7.z.object({
1129
+ model_verdict: import_zod7.z.string().optional(),
1130
+ agent_framework: import_zod7.z.string().optional(),
1131
+ agent_patterns: import_zod7.z.array(AgentEntrySchema).optional()
1132
+ }).passthrough();
1133
+ var TgReportSchema = import_zod7.z.object({
1134
+ allowed_topic_list: import_zod7.z.string().optional(),
1135
+ blocked_topic_list: import_zod7.z.string().optional(),
1136
+ allowedTopics: import_zod7.z.array(import_zod7.z.string()).optional(),
1137
+ blockedTopics: import_zod7.z.array(import_zod7.z.string()).optional()
1138
+ }).passthrough();
1139
+ var CgReportSchema = import_zod7.z.object({
1140
+ status: import_zod7.z.string().optional(),
1141
+ explanation: import_zod7.z.string().optional(),
1142
+ category: import_zod7.z.string().optional()
1143
+ }).passthrough();
1144
+ var OffsetSchema = import_zod7.z.array(import_zod7.z.array(import_zod7.z.number()));
1145
+ var DlpPatternDetectionSchema = import_zod7.z.object({
1146
+ data_pattern_id: import_zod7.z.string().optional(),
1147
+ version: import_zod7.z.number().optional(),
1148
+ name: import_zod7.z.string().optional(),
1149
+ high_confidence_detections: OffsetSchema.optional(),
1150
+ medium_confidence_detections: OffsetSchema.optional(),
1151
+ low_confidence_detections: OffsetSchema.optional()
1152
+ }).passthrough();
1153
+ var PatternDetectionSchema = import_zod7.z.object({
1154
+ pattern: import_zod7.z.string().optional(),
1155
+ locations: OffsetSchema.optional()
1156
+ }).passthrough();
1157
+ var ContentErrorSchema = import_zod7.z.object({
1158
+ content_type: import_zod7.z.string().optional(),
1159
+ feature: import_zod7.z.string().optional(),
1160
+ status: import_zod7.z.string().optional()
1161
+ }).passthrough();
1162
+
1163
+ // src/models/scan-response.ts
1164
+ var MaskedDataSchema = import_zod8.z.object({
1165
+ data: import_zod8.z.string().optional(),
1166
+ pattern_detections: import_zod8.z.array(PatternDetectionSchema).optional()
1167
+ });
1168
+ var IODetectedSchema = import_zod8.z.object({
1169
+ url_cats: import_zod8.z.boolean().optional(),
1170
+ dlp: import_zod8.z.boolean().optional(),
1171
+ injection: import_zod8.z.boolean().optional(),
1172
+ toxic_content: import_zod8.z.boolean().optional(),
1173
+ malicious_code: import_zod8.z.boolean().optional()
1174
+ }).passthrough();
1175
+ var ScanSummarySchema = import_zod8.z.object({
1176
+ verdict: import_zod8.z.string().optional(),
1177
+ action: import_zod8.z.string().optional()
1178
+ }).passthrough();
1179
+ var ToolDetectedSchema = import_zod8.z.object({
1180
+ verdict: import_zod8.z.string().optional(),
1024
1181
  metadata: ToolEventMetadataSchema.optional(),
1025
1182
  summary: ScanSummarySchema.optional(),
1026
1183
  input_detected: IODetectedSchema.optional(),
1027
1184
  output_detected: IODetectedSchema.optional()
1028
1185
  });
1029
- var ScanResponseSchema = import_zod7.z.object({
1030
- source: import_zod7.z.string().optional(),
1031
- report_id: import_zod7.z.string(),
1032
- scan_id: import_zod7.z.string(),
1033
- tr_id: import_zod7.z.string().optional(),
1034
- session_id: import_zod7.z.string().optional(),
1035
- profile_id: import_zod7.z.string().optional(),
1036
- profile_name: import_zod7.z.string().optional(),
1037
- category: import_zod7.z.string(),
1038
- action: import_zod7.z.string(),
1186
+ var ScanResponseSchema = import_zod8.z.object({
1187
+ source: import_zod8.z.string().optional(),
1188
+ report_id: import_zod8.z.string(),
1189
+ scan_id: import_zod8.z.string(),
1190
+ tr_id: import_zod8.z.string().optional(),
1191
+ session_id: import_zod8.z.string().optional(),
1192
+ profile_id: import_zod8.z.string().optional(),
1193
+ profile_name: import_zod8.z.string().optional(),
1194
+ category: import_zod8.z.string(),
1195
+ action: import_zod8.z.string(),
1196
+ timeout: import_zod8.z.boolean().optional(),
1197
+ error: import_zod8.z.boolean().optional(),
1198
+ errors: import_zod8.z.array(ContentErrorSchema).optional(),
1039
1199
  prompt_detected: PromptDetectedSchema.optional(),
1040
1200
  response_detected: ResponseDetectedSchema.optional(),
1041
1201
  prompt_masked_data: MaskedDataSchema.optional(),
@@ -1043,221 +1203,459 @@ var ScanResponseSchema = import_zod7.z.object({
1043
1203
  prompt_detection_details: PromptDetectionDetailsSchema.optional(),
1044
1204
  response_detection_details: ResponseDetectionDetailsSchema.optional(),
1045
1205
  tool_detected: ToolDetectedSchema.optional(),
1046
- created_at: import_zod7.z.string().optional(),
1047
- completed_at: import_zod7.z.string().optional()
1206
+ created_at: import_zod8.z.string().optional(),
1207
+ completed_at: import_zod8.z.string().optional()
1048
1208
  });
1049
1209
 
1050
1210
  // src/models/async-scan.ts
1051
- var import_zod8 = require("zod");
1052
- var AsyncScanObjectSchema = import_zod8.z.object({
1053
- req_id: import_zod8.z.number().int(),
1211
+ var import_zod9 = require("zod");
1212
+ var AsyncScanObjectSchema = import_zod9.z.object({
1213
+ req_id: import_zod9.z.number().int(),
1054
1214
  scan_req: ScanRequestSchema
1055
1215
  });
1056
- var AsyncScanResponseSchema = import_zod8.z.object({
1057
- received: import_zod8.z.string(),
1058
- scan_id: import_zod8.z.string(),
1059
- report_id: import_zod8.z.string().optional(),
1060
- source: import_zod8.z.string().optional()
1216
+ var AsyncScanResponseSchema = import_zod9.z.object({
1217
+ received: import_zod9.z.string(),
1218
+ scan_id: import_zod9.z.string(),
1219
+ report_id: import_zod9.z.string().optional(),
1220
+ source: import_zod9.z.string().optional()
1061
1221
  });
1062
1222
 
1063
1223
  // src/models/scan-id-result.ts
1064
- var import_zod9 = require("zod");
1065
- var ScanIdResultSchema = import_zod9.z.object({
1066
- source: import_zod9.z.string().optional(),
1067
- req_id: import_zod9.z.number().optional(),
1068
- status: import_zod9.z.string().optional(),
1069
- scan_id: import_zod9.z.string().optional(),
1224
+ var import_zod10 = require("zod");
1225
+ var ScanIdResultSchema = import_zod10.z.object({
1226
+ source: import_zod10.z.string().optional(),
1227
+ req_id: import_zod10.z.number().optional(),
1228
+ status: import_zod10.z.string().optional(),
1229
+ scan_id: import_zod10.z.string().optional(),
1070
1230
  result: ScanResponseSchema.optional()
1071
1231
  });
1072
1232
 
1073
1233
  // src/models/threat-report.ts
1074
- var import_zod13 = require("zod");
1234
+ var import_zod14 = require("zod");
1075
1235
 
1076
1236
  // src/models/detection.ts
1077
- var import_zod12 = require("zod");
1237
+ var import_zod13 = require("zod");
1078
1238
 
1079
1239
  // src/models/dlp-report.ts
1080
- var import_zod10 = require("zod");
1081
- var DlpReportSchema = import_zod10.z.object({
1082
- dlp_report_id: import_zod10.z.string().optional(),
1083
- dlp_profile_name: import_zod10.z.string().optional(),
1084
- dlp_profile_id: import_zod10.z.string().optional(),
1085
- dlp_profile_version: import_zod10.z.number().optional(),
1086
- data_pattern_rule1_verdict: import_zod10.z.string().optional(),
1087
- data_pattern_rule2_verdict: import_zod10.z.string().optional()
1240
+ var import_zod11 = require("zod");
1241
+ var DlpReportSchema = import_zod11.z.object({
1242
+ dlp_report_id: import_zod11.z.string().optional(),
1243
+ dlp_profile_name: import_zod11.z.string().optional(),
1244
+ dlp_profile_id: import_zod11.z.string().optional(),
1245
+ dlp_profile_version: import_zod11.z.number().optional(),
1246
+ data_pattern_rule1_verdict: import_zod11.z.string().optional(),
1247
+ data_pattern_rule2_verdict: import_zod11.z.string().optional(),
1248
+ data_pattern_detection_offsets: import_zod11.z.array(DlpPatternDetectionSchema).optional()
1088
1249
  });
1089
1250
 
1090
1251
  // src/models/urlf-report.ts
1091
- var import_zod11 = require("zod");
1092
- var UrlfEntrySchema = import_zod11.z.object({
1093
- url: import_zod11.z.string().optional(),
1094
- risk_level: import_zod11.z.string().optional(),
1095
- categories: import_zod11.z.array(import_zod11.z.string()).optional()
1252
+ var import_zod12 = require("zod");
1253
+ var UrlfEntrySchema = import_zod12.z.object({
1254
+ url: import_zod12.z.string().optional(),
1255
+ risk_level: import_zod12.z.string().optional(),
1256
+ action: import_zod12.z.string().optional(),
1257
+ categories: import_zod12.z.array(import_zod12.z.string()).optional()
1096
1258
  });
1097
1259
 
1098
1260
  // src/models/detection.ts
1099
- var DSDetailResultSchema = import_zod12.z.object({
1100
- urlf_report: import_zod12.z.array(UrlfEntrySchema).optional(),
1101
- dlp_report: DlpReportSchema.optional()
1102
- });
1103
- var DSResultMetadataSchema = import_zod12.z.object({
1104
- score: import_zod12.z.number().optional(),
1105
- confidence: import_zod12.z.string().optional()
1106
- }).passthrough();
1107
- var DetectionServiceResultSchema = import_zod12.z.object({
1108
- data_type: import_zod12.z.string().optional(),
1109
- detection_service: import_zod12.z.string().optional(),
1110
- verdict: import_zod12.z.string().optional(),
1111
- action: import_zod12.z.string().optional(),
1261
+ var DSDetailResultSchema = import_zod13.z.object({
1262
+ urlf_report: import_zod13.z.array(UrlfEntrySchema).optional(),
1263
+ dlp_report: DlpReportSchema.optional(),
1264
+ dbs_report: DbsReportSchema.optional(),
1265
+ tc_report: TcReportSchema.optional(),
1266
+ mc_report: McReportSchema.optional(),
1267
+ agent_report: AgentReportSchema.optional(),
1268
+ topic_guardrails_report: TgReportSchema.optional(),
1269
+ cg_report: CgReportSchema.optional()
1270
+ }).passthrough();
1271
+ var DSResultMetadataSchema = import_zod13.z.object({
1272
+ score: import_zod13.z.number().optional(),
1273
+ confidence: import_zod13.z.string().optional(),
1274
+ ecosystem: import_zod13.z.string().optional(),
1275
+ method: import_zod13.z.string().optional(),
1276
+ server_name: import_zod13.z.string().optional(),
1277
+ tool_invoked: import_zod13.z.string().optional(),
1278
+ direction: import_zod13.z.string().optional()
1279
+ }).passthrough();
1280
+ var DetectionServiceResultSchema = import_zod13.z.object({
1281
+ data_type: import_zod13.z.string().optional(),
1282
+ detection_service: import_zod13.z.string().optional(),
1283
+ verdict: import_zod13.z.string().optional(),
1284
+ action: import_zod13.z.string().optional(),
1112
1285
  metadata: DSResultMetadataSchema.optional(),
1113
1286
  result_detail: DSDetailResultSchema.optional()
1114
1287
  });
1115
1288
 
1116
1289
  // src/models/threat-report.ts
1117
- var ThreatScanReportSchema = import_zod13.z.object({
1118
- source: import_zod13.z.string().optional(),
1119
- report_id: import_zod13.z.string().optional(),
1120
- scan_id: import_zod13.z.string().optional(),
1121
- req_id: import_zod13.z.number().optional(),
1122
- transaction_id: import_zod13.z.string().optional(),
1123
- session_id: import_zod13.z.string().optional(),
1124
- detection_results: import_zod13.z.array(DetectionServiceResultSchema).optional()
1290
+ var ThreatScanReportSchema = import_zod14.z.object({
1291
+ source: import_zod14.z.string().optional(),
1292
+ report_id: import_zod14.z.string().optional(),
1293
+ scan_id: import_zod14.z.string().optional(),
1294
+ req_id: import_zod14.z.number().optional(),
1295
+ transaction_id: import_zod14.z.string().optional(),
1296
+ session_id: import_zod14.z.string().optional(),
1297
+ detection_results: import_zod14.z.array(DetectionServiceResultSchema).optional()
1125
1298
  });
1126
1299
 
1127
1300
  // src/models/error-response.ts
1128
- var import_zod14 = require("zod");
1129
- var ErrorResponseSchema = import_zod14.z.object({
1130
- status_code: import_zod14.z.number().optional(),
1131
- message: import_zod14.z.string().optional(),
1132
- error: import_zod14.z.object({
1133
- message: import_zod14.z.string().optional()
1301
+ var import_zod15 = require("zod");
1302
+ var ErrorResponseSchema = import_zod15.z.object({
1303
+ status_code: import_zod15.z.number().optional(),
1304
+ message: import_zod15.z.string().optional(),
1305
+ error: import_zod15.z.object({
1306
+ message: import_zod15.z.string().optional()
1134
1307
  }).passthrough().optional(),
1135
- retry_after: import_zod14.z.object({
1136
- interval: import_zod14.z.number().optional(),
1137
- unit: import_zod14.z.string().optional()
1308
+ retry_after: import_zod15.z.object({
1309
+ interval: import_zod15.z.number().optional(),
1310
+ unit: import_zod15.z.string().optional()
1138
1311
  }).optional()
1139
1312
  });
1140
1313
 
1141
1314
  // src/models/mgmt-security-profile.ts
1142
- var import_zod15 = require("zod");
1143
- var DlpDataProfileSchema = import_zod15.z.object({
1144
- profile_name: import_zod15.z.string(),
1145
- active: import_zod15.z.boolean().optional()
1315
+ var import_zod16 = require("zod");
1316
+ var DlpDataProfileSchema = import_zod16.z.object({
1317
+ profile_name: import_zod16.z.string(),
1318
+ active: import_zod16.z.boolean().optional()
1146
1319
  }).passthrough();
1147
- var DlpSchema = import_zod15.z.object({
1148
- dlp_status: import_zod15.z.string().optional(),
1149
- data_profiles: import_zod15.z.array(DlpDataProfileSchema).optional()
1320
+ var DlpSchema = import_zod16.z.object({
1321
+ dlp_status: import_zod16.z.string().optional(),
1322
+ data_profiles: import_zod16.z.array(DlpDataProfileSchema).optional()
1150
1323
  }).passthrough();
1151
- var DataLeakDetectionSchema = import_zod15.z.object({
1152
- "data-leak-detection-status": import_zod15.z.string().optional(),
1324
+ var DataLeakDetectionSchema = import_zod16.z.object({
1325
+ "data-leak-detection-status": import_zod16.z.string().optional(),
1153
1326
  dlp: DlpSchema.optional()
1154
1327
  }).passthrough();
1155
- var AppProtectionSchema = import_zod15.z.object({
1156
- "prompt-injection": import_zod15.z.string().optional(),
1157
- "jailbreak-detection": import_zod15.z.string().optional()
1328
+ var AppProtectionSchema = import_zod16.z.object({
1329
+ "prompt-injection": import_zod16.z.string().optional(),
1330
+ "jailbreak-detection": import_zod16.z.string().optional()
1158
1331
  }).passthrough();
1159
- var ModelProtectionSchema = import_zod15.z.object({
1160
- "model-denial-of-service": import_zod15.z.string().optional()
1332
+ var ModelProtectionSchema = import_zod16.z.object({
1333
+ "model-denial-of-service": import_zod16.z.string().optional()
1161
1334
  }).passthrough();
1162
- var AgentProtectionSchema = import_zod15.z.object({
1163
- "malicious-agent-activity": import_zod15.z.string().optional()
1335
+ var AgentProtectionSchema = import_zod16.z.object({
1336
+ "malicious-agent-activity": import_zod16.z.string().optional()
1164
1337
  }).passthrough();
1165
- var LatencySchema = import_zod15.z.object({
1166
- status: import_zod15.z.string().optional(),
1167
- max_latency_ms: import_zod15.z.number().optional()
1338
+ var LatencySchema = import_zod16.z.object({
1339
+ status: import_zod16.z.string().optional(),
1340
+ max_latency_ms: import_zod16.z.number().optional()
1168
1341
  }).passthrough();
1169
- var ModelConfigurationSchema = import_zod15.z.object({
1342
+ var ModelConfigurationSchema = import_zod16.z.object({
1170
1343
  latency: LatencySchema.optional()
1171
1344
  }).passthrough();
1172
- var PolicySchema = import_zod15.z.object({
1345
+ var PolicySchema = import_zod16.z.object({
1173
1346
  "data-leak-detection": DataLeakDetectionSchema.optional(),
1174
1347
  "app-protection": AppProtectionSchema.optional(),
1175
1348
  "model-protection": ModelProtectionSchema.optional(),
1176
1349
  "agent-protection": AgentProtectionSchema.optional(),
1177
1350
  "model-configuration": ModelConfigurationSchema.optional()
1178
1351
  }).passthrough();
1179
- var SecurityProfileSchema = import_zod15.z.object({
1180
- profile_id: import_zod15.z.string().optional(),
1181
- profile_name: import_zod15.z.string(),
1182
- revision: import_zod15.z.number().optional(),
1183
- active: import_zod15.z.boolean().optional(),
1184
- policy: PolicySchema.optional(),
1185
- created_by: import_zod15.z.string().optional(),
1186
- updated_by: import_zod15.z.string().optional(),
1187
- last_modified_ts: import_zod15.z.string().optional()
1188
- }).passthrough();
1189
- var CreateSecurityProfileRequestSchema = import_zod15.z.object({
1190
- profile_id: import_zod15.z.string().optional(),
1191
- profile_name: import_zod15.z.string(),
1192
- revision: import_zod15.z.number().optional(),
1193
- active: import_zod15.z.boolean().optional(),
1194
- policy: PolicySchema.optional(),
1195
- created_by: import_zod15.z.string().optional(),
1196
- updated_by: import_zod15.z.string().optional(),
1197
- last_modified_ts: import_zod15.z.string().optional()
1198
- }).passthrough();
1199
- var SecurityProfileListResponseSchema = import_zod15.z.object({
1200
- ai_profiles: import_zod15.z.array(SecurityProfileSchema),
1201
- next_offset: import_zod15.z.number().optional()
1202
- }).passthrough();
1203
- var DeleteProfileResponseSchema = import_zod15.z.object({
1204
- message: import_zod15.z.string()
1205
- }).passthrough();
1206
- var DeleteProfileConflictSchema = import_zod15.z.object({
1207
- message: import_zod15.z.string(),
1208
- payload: import_zod15.z.array(
1209
- import_zod15.z.object({
1210
- policy_id: import_zod15.z.string(),
1211
- policy_name: import_zod15.z.string(),
1212
- priority: import_zod15.z.number()
1213
- }).passthrough()
1214
- )
1215
- }).passthrough();
1216
-
1217
- // src/models/mgmt-custom-topic.ts
1218
- var import_zod16 = require("zod");
1219
- var CustomTopicSchema = import_zod16.z.object({
1220
- topic_id: import_zod16.z.string().optional(),
1221
- topic_name: import_zod16.z.string(),
1352
+ var SecurityProfileSchema = import_zod16.z.object({
1353
+ profile_id: import_zod16.z.string().optional(),
1354
+ profile_name: import_zod16.z.string(),
1222
1355
  revision: import_zod16.z.number().optional(),
1223
1356
  active: import_zod16.z.boolean().optional(),
1224
- description: import_zod16.z.string().optional(),
1225
- examples: import_zod16.z.array(import_zod16.z.string()).optional(),
1357
+ policy: PolicySchema.optional(),
1226
1358
  created_by: import_zod16.z.string().optional(),
1227
1359
  updated_by: import_zod16.z.string().optional(),
1228
- last_modified_ts: import_zod16.z.string().optional(),
1229
- created_ts: import_zod16.z.string().optional()
1360
+ last_modified_ts: import_zod16.z.string().optional()
1230
1361
  }).passthrough();
1231
- var CreateCustomTopicRequestSchema = import_zod16.z.object({
1232
- topic_id: import_zod16.z.string().optional(),
1233
- topic_name: import_zod16.z.string(),
1362
+ var CreateSecurityProfileRequestSchema = import_zod16.z.object({
1363
+ profile_id: import_zod16.z.string().optional(),
1364
+ profile_name: import_zod16.z.string(),
1234
1365
  revision: import_zod16.z.number().optional(),
1235
1366
  active: import_zod16.z.boolean().optional(),
1236
- description: import_zod16.z.string().optional(),
1237
- examples: import_zod16.z.array(import_zod16.z.string()).optional(),
1367
+ policy: PolicySchema.optional(),
1238
1368
  created_by: import_zod16.z.string().optional(),
1239
1369
  updated_by: import_zod16.z.string().optional(),
1240
- last_modified_ts: import_zod16.z.string().optional(),
1241
- created_ts: import_zod16.z.string().optional()
1370
+ last_modified_ts: import_zod16.z.string().optional()
1242
1371
  }).passthrough();
1243
- var CustomTopicListResponseSchema = import_zod16.z.object({
1244
- custom_topics: import_zod16.z.array(CustomTopicSchema),
1372
+ var SecurityProfileListResponseSchema = import_zod16.z.object({
1373
+ ai_profiles: import_zod16.z.array(SecurityProfileSchema),
1245
1374
  next_offset: import_zod16.z.number().optional()
1246
1375
  }).passthrough();
1247
- var DeleteTopicResponseSchema = import_zod16.z.object({
1376
+ var DeleteProfileResponseSchema = import_zod16.z.object({
1248
1377
  message: import_zod16.z.string()
1249
1378
  }).passthrough();
1250
- var DeleteTopicConflictSchema = import_zod16.z.object({
1379
+ var DeleteProfileConflictSchema = import_zod16.z.object({
1251
1380
  message: import_zod16.z.string(),
1252
1381
  payload: import_zod16.z.array(
1253
1382
  import_zod16.z.object({
1254
- profile_id: import_zod16.z.string(),
1255
- profile_name: import_zod16.z.string(),
1256
- revision: import_zod16.z.number()
1383
+ policy_id: import_zod16.z.string(),
1384
+ policy_name: import_zod16.z.string(),
1385
+ priority: import_zod16.z.number()
1386
+ }).passthrough()
1387
+ )
1388
+ }).passthrough();
1389
+
1390
+ // src/models/mgmt-custom-topic.ts
1391
+ var import_zod17 = require("zod");
1392
+ var CustomTopicSchema = import_zod17.z.object({
1393
+ topic_id: import_zod17.z.string().optional(),
1394
+ topic_name: import_zod17.z.string(),
1395
+ revision: import_zod17.z.number().optional(),
1396
+ active: import_zod17.z.boolean().optional(),
1397
+ description: import_zod17.z.string().optional(),
1398
+ examples: import_zod17.z.array(import_zod17.z.string()).optional(),
1399
+ created_by: import_zod17.z.string().optional(),
1400
+ updated_by: import_zod17.z.string().optional(),
1401
+ last_modified_ts: import_zod17.z.string().optional(),
1402
+ created_ts: import_zod17.z.string().optional()
1403
+ }).passthrough();
1404
+ var CreateCustomTopicRequestSchema = import_zod17.z.object({
1405
+ topic_id: import_zod17.z.string().optional(),
1406
+ topic_name: import_zod17.z.string(),
1407
+ revision: import_zod17.z.number().optional(),
1408
+ active: import_zod17.z.boolean().optional(),
1409
+ description: import_zod17.z.string().optional(),
1410
+ examples: import_zod17.z.array(import_zod17.z.string()).optional(),
1411
+ created_by: import_zod17.z.string().optional(),
1412
+ updated_by: import_zod17.z.string().optional(),
1413
+ last_modified_ts: import_zod17.z.string().optional(),
1414
+ created_ts: import_zod17.z.string().optional()
1415
+ }).passthrough();
1416
+ var CustomTopicListResponseSchema = import_zod17.z.object({
1417
+ custom_topics: import_zod17.z.array(CustomTopicSchema),
1418
+ next_offset: import_zod17.z.number().optional()
1419
+ }).passthrough();
1420
+ var DeleteTopicResponseSchema = import_zod17.z.object({
1421
+ message: import_zod17.z.string()
1422
+ }).passthrough();
1423
+ var DeleteTopicConflictSchema = import_zod17.z.object({
1424
+ message: import_zod17.z.string(),
1425
+ payload: import_zod17.z.array(
1426
+ import_zod17.z.object({
1427
+ profile_id: import_zod17.z.string(),
1428
+ profile_name: import_zod17.z.string(),
1429
+ revision: import_zod17.z.number()
1257
1430
  }).passthrough()
1258
1431
  )
1259
1432
  }).passthrough();
1260
1433
 
1434
+ // src/models/mgmt-api-key.ts
1435
+ var import_zod18 = require("zod");
1436
+ var ApiKeySchema = import_zod18.z.object({
1437
+ api_key_id: import_zod18.z.string(),
1438
+ api_key_last8: import_zod18.z.string(),
1439
+ api_key_name: import_zod18.z.string().optional(),
1440
+ auth_code: import_zod18.z.string(),
1441
+ csp_id: import_zod18.z.string().optional(),
1442
+ tsg_id: import_zod18.z.string().optional(),
1443
+ expiration: import_zod18.z.string(),
1444
+ revoked: import_zod18.z.boolean(),
1445
+ revoke_reason: import_zod18.z.string().optional(),
1446
+ cust_app: import_zod18.z.string().optional(),
1447
+ cust_env: import_zod18.z.string().optional(),
1448
+ cust_ai_agent_framework: import_zod18.z.string().optional(),
1449
+ cust_cloud_provider: import_zod18.z.string().optional(),
1450
+ created_by: import_zod18.z.string().optional(),
1451
+ updated_by: import_zod18.z.string().optional(),
1452
+ last_modified_ts: import_zod18.z.string().optional(),
1453
+ rotation_time_interval: import_zod18.z.number().optional(),
1454
+ rotation_time_unit: import_zod18.z.string().optional(),
1455
+ dp_name: import_zod18.z.string().optional(),
1456
+ status: import_zod18.z.string().optional(),
1457
+ api_key: import_zod18.z.string().optional(),
1458
+ lic_expiration: import_zod18.z.string().optional(),
1459
+ avg_text_records: import_zod18.z.number().optional(),
1460
+ creation_ts: import_zod18.z.string().optional(),
1461
+ customer_appId: import_zod18.z.string().optional()
1462
+ }).passthrough();
1463
+ var ApiKeyCreateRequestSchema = import_zod18.z.object({
1464
+ dp_name: import_zod18.z.string().optional(),
1465
+ auth_code: import_zod18.z.string(),
1466
+ cust_app: import_zod18.z.string(),
1467
+ cust_env: import_zod18.z.string().optional(),
1468
+ cust_cloud_provider: import_zod18.z.string().optional(),
1469
+ cust_ai_agent_framework: import_zod18.z.string().optional(),
1470
+ revoked: import_zod18.z.boolean(),
1471
+ created_by: import_zod18.z.string(),
1472
+ api_key_name: import_zod18.z.string(),
1473
+ rotation_time_interval: import_zod18.z.number(),
1474
+ rotation_time_unit: import_zod18.z.string()
1475
+ });
1476
+ var ApiKeyRegenerateRequestSchema = import_zod18.z.object({
1477
+ rotation_time_interval: import_zod18.z.number(),
1478
+ rotation_time_unit: import_zod18.z.string(),
1479
+ updated_by: import_zod18.z.string().optional()
1480
+ });
1481
+ var ApiKeyListResponseSchema = import_zod18.z.object({
1482
+ api_keys: import_zod18.z.array(ApiKeySchema).optional(),
1483
+ next_offset: import_zod18.z.number().optional()
1484
+ }).passthrough();
1485
+ var ApiKeyDeleteResponseSchema = import_zod18.z.object({
1486
+ message: import_zod18.z.string().optional()
1487
+ }).passthrough();
1488
+
1489
+ // src/models/mgmt-customer-app.ts
1490
+ var import_zod19 = require("zod");
1491
+ var ApiKeyDPInfoSchema = import_zod19.z.object({
1492
+ api_key_name: import_zod19.z.string(),
1493
+ dp_name: import_zod19.z.string(),
1494
+ auth_code: import_zod19.z.string()
1495
+ }).passthrough();
1496
+ var CustomerAppSchema = import_zod19.z.object({
1497
+ customer_appId: import_zod19.z.string().optional(),
1498
+ tsg_id: import_zod19.z.string(),
1499
+ app_name: import_zod19.z.string(),
1500
+ model_name: import_zod19.z.string().optional(),
1501
+ cloud_provider: import_zod19.z.string(),
1502
+ environment: import_zod19.z.string(),
1503
+ status: import_zod19.z.string().optional(),
1504
+ created_by: import_zod19.z.string().optional(),
1505
+ updated_by: import_zod19.z.string().optional(),
1506
+ ai_agent_framework: import_zod19.z.string().optional()
1507
+ }).passthrough();
1508
+ var CustomerAppWithKeysSchema = import_zod19.z.object({
1509
+ customer_appId: import_zod19.z.string(),
1510
+ tsg_id: import_zod19.z.string(),
1511
+ app_name: import_zod19.z.string(),
1512
+ model_name: import_zod19.z.string().optional(),
1513
+ cloud_provider: import_zod19.z.string(),
1514
+ environment: import_zod19.z.string(),
1515
+ ai_agent_framework: import_zod19.z.string().optional(),
1516
+ api_keys_dp_info: import_zod19.z.array(ApiKeyDPInfoSchema).optional()
1517
+ }).passthrough();
1518
+ var CustomerAppListResponseSchema = import_zod19.z.object({
1519
+ customer_apps: import_zod19.z.array(CustomerAppWithKeysSchema).optional(),
1520
+ next_offset: import_zod19.z.number().optional()
1521
+ }).passthrough();
1522
+
1523
+ // src/models/mgmt-deployment-profile.ts
1524
+ var import_zod20 = require("zod");
1525
+ var DeploymentProfileEntrySchema = import_zod20.z.object({
1526
+ dp_name: import_zod20.z.string(),
1527
+ auth_code: import_zod20.z.string(),
1528
+ tsg_id: import_zod20.z.string().optional(),
1529
+ status: import_zod20.z.string().optional(),
1530
+ expiration_date: import_zod20.z.string().optional(),
1531
+ ave_text_records: import_zod20.z.number().optional()
1532
+ }).passthrough();
1533
+ var DeploymentProfilesResponseSchema = import_zod20.z.object({
1534
+ deployment_profiles: import_zod20.z.array(DeploymentProfileEntrySchema),
1535
+ status: import_zod20.z.string()
1536
+ }).passthrough();
1537
+
1538
+ // src/models/mgmt-dlp-profile.ts
1539
+ var import_zod21 = require("zod");
1540
+ var DlpDataProfileSchema2 = import_zod21.z.object({
1541
+ name: import_zod21.z.string(),
1542
+ uuid: import_zod21.z.string(),
1543
+ id: import_zod21.z.string().optional(),
1544
+ version: import_zod21.z.string().optional(),
1545
+ rule1: import_zod21.z.object({ action: import_zod21.z.string().optional() }).passthrough().optional(),
1546
+ rule2: import_zod21.z.object({ action: import_zod21.z.string().optional() }).passthrough().optional(),
1547
+ "log-severity": import_zod21.z.string().optional(),
1548
+ "non-file-based": import_zod21.z.string().optional(),
1549
+ "file-based": import_zod21.z.string().optional()
1550
+ }).passthrough();
1551
+ var DlpProfileListResponseSchema = import_zod21.z.object({
1552
+ dlp_profiles: import_zod21.z.array(DlpDataProfileSchema2).optional()
1553
+ }).passthrough();
1554
+
1555
+ // src/models/mgmt-scan-log.ts
1556
+ var import_zod22 = require("zod");
1557
+ var ScanResultEntrySchema = import_zod22.z.object({
1558
+ csp_id: import_zod22.z.string(),
1559
+ tsg_id: import_zod22.z.string(),
1560
+ scan_id: import_zod22.z.string(),
1561
+ scan_sub_req_id: import_zod22.z.number(),
1562
+ api_key_name: import_zod22.z.string(),
1563
+ app_name: import_zod22.z.string(),
1564
+ tokens: import_zod22.z.number(),
1565
+ text_records: import_zod22.z.number(),
1566
+ transaction_id: import_zod22.z.string().optional(),
1567
+ profile_id: import_zod22.z.string().optional(),
1568
+ profile_name: import_zod22.z.string().optional(),
1569
+ model_name: import_zod22.z.string().optional(),
1570
+ user: import_zod22.z.string().optional(),
1571
+ environment: import_zod22.z.string().optional(),
1572
+ cloud_provider: import_zod22.z.string().optional(),
1573
+ agent_framework: import_zod22.z.string().optional(),
1574
+ report_id: import_zod22.z.string().optional(),
1575
+ received_ts: import_zod22.z.string().optional(),
1576
+ completed_ts: import_zod22.z.string().optional(),
1577
+ status: import_zod22.z.string().optional(),
1578
+ verdict: import_zod22.z.string().optional(),
1579
+ action: import_zod22.z.string().optional(),
1580
+ is_prompt: import_zod22.z.boolean().optional(),
1581
+ is_response: import_zod22.z.boolean().optional(),
1582
+ pi_final_verdict: import_zod22.z.string().optional(),
1583
+ uf_final_verdict: import_zod22.z.string().optional(),
1584
+ dlp_final_verdict: import_zod22.z.string().optional(),
1585
+ dbs_final_verdict: import_zod22.z.string().optional(),
1586
+ tc_final_verdict: import_zod22.z.string().optional(),
1587
+ mc_final_verdict: import_zod22.z.string().optional(),
1588
+ agent_final_verdict: import_zod22.z.string().optional(),
1589
+ cg_final_verdict: import_zod22.z.string().optional(),
1590
+ tg_final_verdict: import_zod22.z.string().optional(),
1591
+ prompt_pi_verdict: import_zod22.z.string().optional(),
1592
+ prompt_uf_verdict: import_zod22.z.string().optional(),
1593
+ prompt_dlp_verdict: import_zod22.z.string().optional(),
1594
+ prompt_tc_verdict: import_zod22.z.string().optional(),
1595
+ prompt_mc_verdict: import_zod22.z.string().optional(),
1596
+ prompt_agent_verdict: import_zod22.z.string().optional(),
1597
+ prompt_tg_verdict: import_zod22.z.string().optional(),
1598
+ prompt_verdict: import_zod22.z.string().optional(),
1599
+ prompt_pi_action: import_zod22.z.string().optional(),
1600
+ prompt_uf_action: import_zod22.z.string().optional(),
1601
+ prompt_dlp_action: import_zod22.z.string().optional(),
1602
+ prompt_tc_action: import_zod22.z.string().optional(),
1603
+ prompt_mc_action: import_zod22.z.string().optional(),
1604
+ prompt_agent_action: import_zod22.z.string().optional(),
1605
+ prompt_tg_action: import_zod22.z.string().optional(),
1606
+ response_uf_verdict: import_zod22.z.string().optional(),
1607
+ response_dlp_verdict: import_zod22.z.string().optional(),
1608
+ response_dbs_verdict: import_zod22.z.string().optional(),
1609
+ response_tc_verdict: import_zod22.z.string().optional(),
1610
+ response_mc_verdict: import_zod22.z.string().optional(),
1611
+ response_agent_verdict: import_zod22.z.string().optional(),
1612
+ response_cg_verdict: import_zod22.z.string().optional(),
1613
+ response_tg_verdict: import_zod22.z.string().optional(),
1614
+ response_uf_action: import_zod22.z.string().optional(),
1615
+ response_dlp_action: import_zod22.z.string().optional(),
1616
+ response_dbs_action: import_zod22.z.string().optional(),
1617
+ response_tc_action: import_zod22.z.string().optional(),
1618
+ response_mc_action: import_zod22.z.string().optional(),
1619
+ response_agent_action: import_zod22.z.string().optional(),
1620
+ response_cg_action: import_zod22.z.string().optional(),
1621
+ response_tg_action: import_zod22.z.string().optional(),
1622
+ response_verdict: import_zod22.z.string().optional(),
1623
+ detection_service_flags: import_zod22.z.number().optional(),
1624
+ content_masked: import_zod22.z.boolean().optional(),
1625
+ user_ip: import_zod22.z.string().optional()
1626
+ }).passthrough();
1627
+ var ScanResultForDashboardSchema = import_zod22.z.object({
1628
+ text_records_count: import_zod22.z.number().optional(),
1629
+ api_calls_count: import_zod22.z.number().optional(),
1630
+ threats_count: import_zod22.z.number().optional(),
1631
+ all_transactions_count: import_zod22.z.number().optional(),
1632
+ benign_transaction_count: import_zod22.z.number().optional(),
1633
+ scan_result_entries: import_zod22.z.array(ScanResultEntrySchema).optional()
1634
+ }).passthrough();
1635
+ var PaginatedScanResultsSchema = import_zod22.z.object({
1636
+ scan_result_for_dashboard: ScanResultForDashboardSchema.optional(),
1637
+ total_pages: import_zod22.z.number().optional(),
1638
+ page_number: import_zod22.z.number().optional(),
1639
+ page_size: import_zod22.z.number().optional(),
1640
+ page_token: import_zod22.z.string().optional(),
1641
+ revision: import_zod22.z.number().optional()
1642
+ }).passthrough();
1643
+
1644
+ // src/models/mgmt-oauth.ts
1645
+ var import_zod23 = require("zod");
1646
+ var ClientIdAndCustomerAppSchema = import_zod23.z.object({
1647
+ client_id: import_zod23.z.string(),
1648
+ customer_app: import_zod23.z.string()
1649
+ });
1650
+ var Oauth2TokenSchema = import_zod23.z.object({
1651
+ token_type: import_zod23.z.string().optional(),
1652
+ issued_at: import_zod23.z.string().optional(),
1653
+ client_id: import_zod23.z.string().optional(),
1654
+ access_token: import_zod23.z.string(),
1655
+ expires_in: import_zod23.z.string().optional(),
1656
+ status: import_zod23.z.string().optional()
1657
+ }).passthrough();
1658
+
1261
1659
  // src/models/model-security-enums.ts
1262
1660
  var ErrorCodes = {
1263
1661
  UNKNOWN_ERROR: "UNKNOWN_ERROR",
@@ -1388,240 +1786,240 @@ var RuleFieldValueKey = {
1388
1786
  };
1389
1787
 
1390
1788
  // src/models/model-security.ts
1391
- var import_zod17 = require("zod");
1392
- var ModelSecurityPaginationSchema = import_zod17.z.object({
1393
- total_items: import_zod17.z.number().int().nullable().optional()
1789
+ var import_zod24 = require("zod");
1790
+ var ModelSecurityPaginationSchema = import_zod24.z.object({
1791
+ total_items: import_zod24.z.number().int().nullable().optional()
1394
1792
  }).passthrough();
1395
- var LabelSchema = import_zod17.z.object({
1396
- key: import_zod17.z.string(),
1397
- value: import_zod17.z.string()
1793
+ var LabelSchema = import_zod24.z.object({
1794
+ key: import_zod24.z.string(),
1795
+ value: import_zod24.z.string()
1398
1796
  });
1399
- var LabelsCreateRequestSchema = import_zod17.z.object({
1400
- labels: import_zod17.z.array(LabelSchema)
1797
+ var LabelsCreateRequestSchema = import_zod24.z.object({
1798
+ labels: import_zod24.z.array(LabelSchema)
1401
1799
  });
1402
- var LabelsResponseSchema = import_zod17.z.object({}).passthrough();
1403
- var LabelKeyListSchema = import_zod17.z.object({
1800
+ var LabelsResponseSchema = import_zod24.z.object({}).passthrough();
1801
+ var LabelKeyListSchema = import_zod24.z.object({
1404
1802
  pagination: ModelSecurityPaginationSchema,
1405
- keys: import_zod17.z.array(import_zod17.z.string())
1803
+ keys: import_zod24.z.array(import_zod24.z.string())
1406
1804
  }).passthrough();
1407
- var LabelValueListSchema = import_zod17.z.object({
1805
+ var LabelValueListSchema = import_zod24.z.object({
1408
1806
  pagination: ModelSecurityPaginationSchema,
1409
- values: import_zod17.z.array(import_zod17.z.string())
1410
- }).passthrough();
1411
- var EvalSummarySchema = import_zod17.z.object({
1412
- rules_failed: import_zod17.z.number().int().optional().default(0),
1413
- rules_passed: import_zod17.z.number().int().optional().default(0),
1414
- total_rules: import_zod17.z.number().int().optional().default(0)
1415
- }).passthrough();
1416
- var ModelScanIssueSchema = import_zod17.z.object({
1417
- description: import_zod17.z.string(),
1418
- source: import_zod17.z.string(),
1419
- threat: import_zod17.z.string().nullable().optional(),
1420
- module: import_zod17.z.string().nullable().optional(),
1421
- operator: import_zod17.z.string().nullable().optional()
1422
- }).passthrough();
1423
- var FileScanDataSchema = import_zod17.z.object({
1424
- file_path: import_zod17.z.string(),
1425
- modelscan_status: import_zod17.z.string(),
1426
- blob_id: import_zod17.z.string(),
1427
- error_message: import_zod17.z.string().nullable().optional(),
1428
- formats: import_zod17.z.array(import_zod17.z.string()).nullable().optional(),
1429
- issues_detected: import_zod17.z.array(ModelScanIssueSchema).nullable().optional()
1430
- }).passthrough();
1431
- var ScanDetailsSchema = import_zod17.z.object({
1432
- scanner_version: import_zod17.z.string(),
1433
- time_started: import_zod17.z.string(),
1434
- files: import_zod17.z.array(FileScanDataSchema),
1435
- total_files_scanned: import_zod17.z.number().int(),
1436
- total_files_skipped: import_zod17.z.number().int(),
1437
- model_formats: import_zod17.z.array(import_zod17.z.string()),
1438
- model_size_bytes: import_zod17.z.number().int(),
1439
- scan_duration_ms: import_zod17.z.number().int(),
1440
- error_code: import_zod17.z.string().nullable().optional(),
1441
- error_message: import_zod17.z.string().nullable().optional()
1807
+ values: import_zod24.z.array(import_zod24.z.string())
1808
+ }).passthrough();
1809
+ var EvalSummarySchema = import_zod24.z.object({
1810
+ rules_failed: import_zod24.z.number().int().optional().default(0),
1811
+ rules_passed: import_zod24.z.number().int().optional().default(0),
1812
+ total_rules: import_zod24.z.number().int().optional().default(0)
1813
+ }).passthrough();
1814
+ var ModelScanIssueSchema = import_zod24.z.object({
1815
+ description: import_zod24.z.string(),
1816
+ source: import_zod24.z.string(),
1817
+ threat: import_zod24.z.string().nullable().optional(),
1818
+ module: import_zod24.z.string().nullable().optional(),
1819
+ operator: import_zod24.z.string().nullable().optional()
1820
+ }).passthrough();
1821
+ var FileScanDataSchema = import_zod24.z.object({
1822
+ file_path: import_zod24.z.string(),
1823
+ modelscan_status: import_zod24.z.string(),
1824
+ blob_id: import_zod24.z.string(),
1825
+ error_message: import_zod24.z.string().nullable().optional(),
1826
+ formats: import_zod24.z.array(import_zod24.z.string()).nullable().optional(),
1827
+ issues_detected: import_zod24.z.array(ModelScanIssueSchema).nullable().optional()
1828
+ }).passthrough();
1829
+ var ScanDetailsSchema = import_zod24.z.object({
1830
+ scanner_version: import_zod24.z.string(),
1831
+ time_started: import_zod24.z.string(),
1832
+ files: import_zod24.z.array(FileScanDataSchema),
1833
+ total_files_scanned: import_zod24.z.number().int(),
1834
+ total_files_skipped: import_zod24.z.number().int(),
1835
+ model_formats: import_zod24.z.array(import_zod24.z.string()),
1836
+ model_size_bytes: import_zod24.z.number().int(),
1837
+ scan_duration_ms: import_zod24.z.number().int(),
1838
+ error_code: import_zod24.z.string().nullable().optional(),
1839
+ error_message: import_zod24.z.string().nullable().optional()
1442
1840
  });
1443
- var ScanCreateRequestSchema = import_zod17.z.object({
1444
- model_uri: import_zod17.z.string(),
1445
- security_group_uuid: import_zod17.z.string(),
1446
- scan_origin: import_zod17.z.string(),
1447
- allow_patterns: import_zod17.z.array(import_zod17.z.string()).nullable().optional(),
1448
- ignore_patterns: import_zod17.z.array(import_zod17.z.string()).nullable().optional(),
1449
- labels: import_zod17.z.array(LabelSchema).nullable().optional(),
1450
- model_author: import_zod17.z.string().nullable().optional(),
1451
- model_name: import_zod17.z.string().nullable().optional(),
1452
- model_version: import_zod17.z.string().nullable().optional(),
1841
+ var ScanCreateRequestSchema = import_zod24.z.object({
1842
+ model_uri: import_zod24.z.string(),
1843
+ security_group_uuid: import_zod24.z.string(),
1844
+ scan_origin: import_zod24.z.string(),
1845
+ allow_patterns: import_zod24.z.array(import_zod24.z.string()).nullable().optional(),
1846
+ ignore_patterns: import_zod24.z.array(import_zod24.z.string()).nullable().optional(),
1847
+ labels: import_zod24.z.array(LabelSchema).nullable().optional(),
1848
+ model_author: import_zod24.z.string().nullable().optional(),
1849
+ model_name: import_zod24.z.string().nullable().optional(),
1850
+ model_version: import_zod24.z.string().nullable().optional(),
1453
1851
  scan_details: ScanDetailsSchema.nullable().optional()
1454
1852
  });
1455
- var ScanBaseResponseSchema = import_zod17.z.object({
1456
- uuid: import_zod17.z.string(),
1457
- tsg_id: import_zod17.z.string(),
1458
- created_at: import_zod17.z.string(),
1459
- updated_at: import_zod17.z.string(),
1460
- model_uri: import_zod17.z.string(),
1461
- owner: import_zod17.z.string(),
1462
- scan_origin: import_zod17.z.string(),
1463
- security_group_uuid: import_zod17.z.string(),
1464
- security_group_name: import_zod17.z.string(),
1465
- model_version_uuid: import_zod17.z.string(),
1466
- eval_outcome: import_zod17.z.string(),
1467
- source_type: import_zod17.z.string(),
1468
- created_by: import_zod17.z.string().nullable().optional(),
1469
- enabled_rule_count_snapshot: import_zod17.z.number().int().nullable().optional(),
1470
- error_code: import_zod17.z.string().nullable().optional(),
1471
- error_message: import_zod17.z.string().nullable().optional(),
1853
+ var ScanBaseResponseSchema = import_zod24.z.object({
1854
+ uuid: import_zod24.z.string(),
1855
+ tsg_id: import_zod24.z.string(),
1856
+ created_at: import_zod24.z.string(),
1857
+ updated_at: import_zod24.z.string(),
1858
+ model_uri: import_zod24.z.string(),
1859
+ owner: import_zod24.z.string(),
1860
+ scan_origin: import_zod24.z.string(),
1861
+ security_group_uuid: import_zod24.z.string(),
1862
+ security_group_name: import_zod24.z.string(),
1863
+ model_version_uuid: import_zod24.z.string(),
1864
+ eval_outcome: import_zod24.z.string(),
1865
+ source_type: import_zod24.z.string(),
1866
+ created_by: import_zod24.z.string().nullable().optional(),
1867
+ enabled_rule_count_snapshot: import_zod24.z.number().int().nullable().optional(),
1868
+ error_code: import_zod24.z.string().nullable().optional(),
1869
+ error_message: import_zod24.z.string().nullable().optional(),
1472
1870
  eval_summary: EvalSummarySchema.nullable().optional(),
1473
- labels: import_zod17.z.array(LabelSchema).optional(),
1474
- model_formats: import_zod17.z.array(import_zod17.z.string()).nullable().optional(),
1475
- scanner_version: import_zod17.z.string().nullable().optional(),
1476
- time_started: import_zod17.z.string().nullable().optional(),
1477
- total_files_scanned: import_zod17.z.number().int().nullable().optional(),
1478
- total_files_skipped: import_zod17.z.number().int().nullable().optional()
1479
- }).passthrough();
1480
- var ScanListSchema = import_zod17.z.object({
1871
+ labels: import_zod24.z.array(LabelSchema).optional(),
1872
+ model_formats: import_zod24.z.array(import_zod24.z.string()).nullable().optional(),
1873
+ scanner_version: import_zod24.z.string().nullable().optional(),
1874
+ time_started: import_zod24.z.string().nullable().optional(),
1875
+ total_files_scanned: import_zod24.z.number().int().nullable().optional(),
1876
+ total_files_skipped: import_zod24.z.number().int().nullable().optional()
1877
+ }).passthrough();
1878
+ var ScanListSchema = import_zod24.z.object({
1481
1879
  pagination: ModelSecurityPaginationSchema,
1482
- scans: import_zod17.z.array(ScanBaseResponseSchema)
1483
- }).passthrough();
1484
- var FileResponseSchema = import_zod17.z.object({
1485
- uuid: import_zod17.z.string(),
1486
- tsg_id: import_zod17.z.string(),
1487
- created_at: import_zod17.z.string(),
1488
- updated_at: import_zod17.z.string(),
1489
- path: import_zod17.z.string(),
1490
- parent_path: import_zod17.z.string(),
1491
- type: import_zod17.z.string(),
1492
- result: import_zod17.z.string(),
1493
- model_version_uuid: import_zod17.z.string(),
1494
- blob_id: import_zod17.z.string().nullable().optional(),
1495
- formats: import_zod17.z.array(import_zod17.z.string()).nullable().optional(),
1496
- scan_uuid: import_zod17.z.string().nullable().optional()
1497
- }).passthrough();
1498
- var FileListSchema = import_zod17.z.object({
1880
+ scans: import_zod24.z.array(ScanBaseResponseSchema)
1881
+ }).passthrough();
1882
+ var FileResponseSchema = import_zod24.z.object({
1883
+ uuid: import_zod24.z.string(),
1884
+ tsg_id: import_zod24.z.string(),
1885
+ created_at: import_zod24.z.string(),
1886
+ updated_at: import_zod24.z.string(),
1887
+ path: import_zod24.z.string(),
1888
+ parent_path: import_zod24.z.string(),
1889
+ type: import_zod24.z.string(),
1890
+ result: import_zod24.z.string(),
1891
+ model_version_uuid: import_zod24.z.string(),
1892
+ blob_id: import_zod24.z.string().nullable().optional(),
1893
+ formats: import_zod24.z.array(import_zod24.z.string()).nullable().optional(),
1894
+ scan_uuid: import_zod24.z.string().nullable().optional()
1895
+ }).passthrough();
1896
+ var FileListSchema = import_zod24.z.object({
1499
1897
  pagination: ModelSecurityPaginationSchema,
1500
- files: import_zod17.z.array(FileResponseSchema)
1501
- }).passthrough();
1502
- var RuleEvaluationResponseSchema = import_zod17.z.object({
1503
- uuid: import_zod17.z.string(),
1504
- tsg_id: import_zod17.z.string(),
1505
- created_at: import_zod17.z.string(),
1506
- updated_at: import_zod17.z.string(),
1507
- result: import_zod17.z.string(),
1508
- violation_count: import_zod17.z.number().int(),
1509
- rule_instance_uuid: import_zod17.z.string(),
1510
- scan_uuid: import_zod17.z.string(),
1511
- rule_name: import_zod17.z.string(),
1512
- rule_description: import_zod17.z.string(),
1513
- rule_instance_state: import_zod17.z.string()
1514
- }).passthrough();
1515
- var RuleEvaluationListSchema = import_zod17.z.object({
1898
+ files: import_zod24.z.array(FileResponseSchema)
1899
+ }).passthrough();
1900
+ var RuleEvaluationResponseSchema = import_zod24.z.object({
1901
+ uuid: import_zod24.z.string(),
1902
+ tsg_id: import_zod24.z.string(),
1903
+ created_at: import_zod24.z.string(),
1904
+ updated_at: import_zod24.z.string(),
1905
+ result: import_zod24.z.string(),
1906
+ violation_count: import_zod24.z.number().int(),
1907
+ rule_instance_uuid: import_zod24.z.string(),
1908
+ scan_uuid: import_zod24.z.string(),
1909
+ rule_name: import_zod24.z.string(),
1910
+ rule_description: import_zod24.z.string(),
1911
+ rule_instance_state: import_zod24.z.string()
1912
+ }).passthrough();
1913
+ var RuleEvaluationListSchema = import_zod24.z.object({
1516
1914
  pagination: ModelSecurityPaginationSchema,
1517
- evaluations: import_zod17.z.array(RuleEvaluationResponseSchema)
1518
- }).passthrough();
1519
- var ViolationResponseSchema = import_zod17.z.object({
1520
- uuid: import_zod17.z.string(),
1521
- tsg_id: import_zod17.z.string(),
1522
- created_at: import_zod17.z.string(),
1523
- updated_at: import_zod17.z.string(),
1524
- description: import_zod17.z.string(),
1525
- rule_instance_uuid: import_zod17.z.string(),
1526
- rule_name: import_zod17.z.string(),
1527
- rule_description: import_zod17.z.string(),
1528
- rule_instance_state: import_zod17.z.string(),
1529
- file: import_zod17.z.string().nullable().optional(),
1530
- hash: import_zod17.z.string().nullable().optional(),
1531
- module: import_zod17.z.string().nullable().optional(),
1532
- operator: import_zod17.z.string().nullable().optional(),
1533
- threat: import_zod17.z.string().nullable().optional(),
1534
- threat_description: import_zod17.z.string().nullable().optional()
1535
- }).passthrough();
1536
- var ViolationListSchema = import_zod17.z.object({
1915
+ evaluations: import_zod24.z.array(RuleEvaluationResponseSchema)
1916
+ }).passthrough();
1917
+ var ViolationResponseSchema = import_zod24.z.object({
1918
+ uuid: import_zod24.z.string(),
1919
+ tsg_id: import_zod24.z.string(),
1920
+ created_at: import_zod24.z.string(),
1921
+ updated_at: import_zod24.z.string(),
1922
+ description: import_zod24.z.string(),
1923
+ rule_instance_uuid: import_zod24.z.string(),
1924
+ rule_name: import_zod24.z.string(),
1925
+ rule_description: import_zod24.z.string(),
1926
+ rule_instance_state: import_zod24.z.string(),
1927
+ file: import_zod24.z.string().nullable().optional(),
1928
+ hash: import_zod24.z.string().nullable().optional(),
1929
+ module: import_zod24.z.string().nullable().optional(),
1930
+ operator: import_zod24.z.string().nullable().optional(),
1931
+ threat: import_zod24.z.string().nullable().optional(),
1932
+ threat_description: import_zod24.z.string().nullable().optional()
1933
+ }).passthrough();
1934
+ var ViolationListSchema = import_zod24.z.object({
1537
1935
  pagination: ModelSecurityPaginationSchema,
1538
- violations: import_zod17.z.array(ViolationResponseSchema)
1539
- }).passthrough();
1540
- var RuleEditableFieldDropdownSchema = import_zod17.z.object({
1541
- value: import_zod17.z.string(),
1542
- label: import_zod17.z.string()
1543
- }).passthrough();
1544
- var RuleEditableFieldSchema = import_zod17.z.object({
1545
- attribute_name: import_zod17.z.string(),
1546
- type: import_zod17.z.string(),
1547
- display_name: import_zod17.z.string(),
1548
- display_type: import_zod17.z.string(),
1549
- description: import_zod17.z.string().nullable().optional(),
1550
- dropdown_values: import_zod17.z.array(RuleEditableFieldDropdownSchema).nullable().optional()
1551
- }).passthrough();
1552
- var RuleRemediationSchema = import_zod17.z.object({
1553
- description: import_zod17.z.string(),
1554
- steps: import_zod17.z.array(import_zod17.z.string()),
1555
- url: import_zod17.z.string()
1556
- }).passthrough();
1557
- var RuleConfigurationSchema = import_zod17.z.object({
1558
- field_values: import_zod17.z.record(import_zod17.z.unknown()).optional(),
1559
- state: import_zod17.z.string().nullable().optional()
1560
- }).passthrough();
1561
- var ModelSecurityRuleResponseSchema = import_zod17.z.object({
1562
- uuid: import_zod17.z.string(),
1563
- name: import_zod17.z.string(),
1564
- description: import_zod17.z.string(),
1565
- rule_type: import_zod17.z.string(),
1566
- compatible_sources: import_zod17.z.array(import_zod17.z.string()),
1567
- default_state: import_zod17.z.string(),
1936
+ violations: import_zod24.z.array(ViolationResponseSchema)
1937
+ }).passthrough();
1938
+ var RuleEditableFieldDropdownSchema = import_zod24.z.object({
1939
+ value: import_zod24.z.string(),
1940
+ label: import_zod24.z.string()
1941
+ }).passthrough();
1942
+ var RuleEditableFieldSchema = import_zod24.z.object({
1943
+ attribute_name: import_zod24.z.string(),
1944
+ type: import_zod24.z.string(),
1945
+ display_name: import_zod24.z.string(),
1946
+ display_type: import_zod24.z.string(),
1947
+ description: import_zod24.z.string().nullable().optional(),
1948
+ dropdown_values: import_zod24.z.array(RuleEditableFieldDropdownSchema).nullable().optional()
1949
+ }).passthrough();
1950
+ var RuleRemediationSchema = import_zod24.z.object({
1951
+ description: import_zod24.z.string(),
1952
+ steps: import_zod24.z.array(import_zod24.z.string()),
1953
+ url: import_zod24.z.string()
1954
+ }).passthrough();
1955
+ var RuleConfigurationSchema = import_zod24.z.object({
1956
+ field_values: import_zod24.z.record(import_zod24.z.unknown()).optional(),
1957
+ state: import_zod24.z.string().nullable().optional()
1958
+ }).passthrough();
1959
+ var ModelSecurityRuleResponseSchema = import_zod24.z.object({
1960
+ uuid: import_zod24.z.string(),
1961
+ name: import_zod24.z.string(),
1962
+ description: import_zod24.z.string(),
1963
+ rule_type: import_zod24.z.string(),
1964
+ compatible_sources: import_zod24.z.array(import_zod24.z.string()),
1965
+ default_state: import_zod24.z.string(),
1568
1966
  remediation: RuleRemediationSchema,
1569
- editable_fields: import_zod17.z.array(RuleEditableFieldSchema),
1570
- constant_values: import_zod17.z.record(import_zod17.z.unknown()),
1571
- default_values: import_zod17.z.record(import_zod17.z.unknown())
1967
+ editable_fields: import_zod24.z.array(RuleEditableFieldSchema),
1968
+ constant_values: import_zod24.z.record(import_zod24.z.unknown()),
1969
+ default_values: import_zod24.z.record(import_zod24.z.unknown())
1572
1970
  }).passthrough();
1573
- var ListModelSecurityRulesResponseSchema = import_zod17.z.object({
1971
+ var ListModelSecurityRulesResponseSchema = import_zod24.z.object({
1574
1972
  pagination: ModelSecurityPaginationSchema,
1575
- rules: import_zod17.z.array(ModelSecurityRuleResponseSchema)
1576
- }).passthrough();
1577
- var ModelSecurityRuleInstanceResponseSchema = import_zod17.z.object({
1578
- uuid: import_zod17.z.string(),
1579
- tsg_id: import_zod17.z.string(),
1580
- created_at: import_zod17.z.string(),
1581
- updated_at: import_zod17.z.string(),
1582
- security_group_uuid: import_zod17.z.string(),
1583
- security_rule_uuid: import_zod17.z.string(),
1584
- state: import_zod17.z.string(),
1973
+ rules: import_zod24.z.array(ModelSecurityRuleResponseSchema)
1974
+ }).passthrough();
1975
+ var ModelSecurityRuleInstanceResponseSchema = import_zod24.z.object({
1976
+ uuid: import_zod24.z.string(),
1977
+ tsg_id: import_zod24.z.string(),
1978
+ created_at: import_zod24.z.string(),
1979
+ updated_at: import_zod24.z.string(),
1980
+ security_group_uuid: import_zod24.z.string(),
1981
+ security_rule_uuid: import_zod24.z.string(),
1982
+ state: import_zod24.z.string(),
1585
1983
  rule: ModelSecurityRuleResponseSchema,
1586
- field_values: import_zod17.z.record(import_zod17.z.unknown()).optional()
1984
+ field_values: import_zod24.z.record(import_zod24.z.unknown()).optional()
1587
1985
  }).passthrough();
1588
- var ModelSecurityRuleInstanceUpdateRequestSchema = import_zod17.z.object({
1589
- security_group_uuid: import_zod17.z.string(),
1590
- state: import_zod17.z.string().nullable().optional(),
1591
- field_values: import_zod17.z.record(import_zod17.z.unknown()).nullable().optional()
1986
+ var ModelSecurityRuleInstanceUpdateRequestSchema = import_zod24.z.object({
1987
+ security_group_uuid: import_zod24.z.string(),
1988
+ state: import_zod24.z.string().nullable().optional(),
1989
+ field_values: import_zod24.z.record(import_zod24.z.unknown()).nullable().optional()
1592
1990
  });
1593
- var ListModelSecurityRuleInstancesResponseSchema = import_zod17.z.object({
1991
+ var ListModelSecurityRuleInstancesResponseSchema = import_zod24.z.object({
1594
1992
  pagination: ModelSecurityPaginationSchema,
1595
- rule_instances: import_zod17.z.array(ModelSecurityRuleInstanceResponseSchema)
1993
+ rule_instances: import_zod24.z.array(ModelSecurityRuleInstanceResponseSchema)
1596
1994
  }).passthrough();
1597
- var ModelSecurityGroupCreateRequestSchema = import_zod17.z.object({
1598
- name: import_zod17.z.string(),
1599
- source_type: import_zod17.z.string(),
1600
- description: import_zod17.z.string().optional().default(""),
1601
- rule_configurations: import_zod17.z.record(RuleConfigurationSchema).optional()
1995
+ var ModelSecurityGroupCreateRequestSchema = import_zod24.z.object({
1996
+ name: import_zod24.z.string(),
1997
+ source_type: import_zod24.z.string(),
1998
+ description: import_zod24.z.string().optional().default(""),
1999
+ rule_configurations: import_zod24.z.record(RuleConfigurationSchema).optional()
1602
2000
  });
1603
- var ModelSecurityGroupResponseSchema = import_zod17.z.object({
1604
- uuid: import_zod17.z.string(),
1605
- tsg_id: import_zod17.z.string(),
1606
- created_at: import_zod17.z.string(),
1607
- updated_at: import_zod17.z.string(),
1608
- name: import_zod17.z.string(),
1609
- description: import_zod17.z.string(),
1610
- source_type: import_zod17.z.string(),
1611
- state: import_zod17.z.string(),
1612
- is_tombstone: import_zod17.z.boolean()
1613
- }).passthrough();
1614
- var ModelSecurityGroupUpdateRequestSchema = import_zod17.z.object({
1615
- name: import_zod17.z.string().nullable().optional(),
1616
- description: import_zod17.z.string().nullable().optional()
2001
+ var ModelSecurityGroupResponseSchema = import_zod24.z.object({
2002
+ uuid: import_zod24.z.string(),
2003
+ tsg_id: import_zod24.z.string(),
2004
+ created_at: import_zod24.z.string(),
2005
+ updated_at: import_zod24.z.string(),
2006
+ name: import_zod24.z.string(),
2007
+ description: import_zod24.z.string(),
2008
+ source_type: import_zod24.z.string(),
2009
+ state: import_zod24.z.string(),
2010
+ is_tombstone: import_zod24.z.boolean()
2011
+ }).passthrough();
2012
+ var ModelSecurityGroupUpdateRequestSchema = import_zod24.z.object({
2013
+ name: import_zod24.z.string().nullable().optional(),
2014
+ description: import_zod24.z.string().nullable().optional()
1617
2015
  });
1618
- var ListModelSecurityGroupsResponseSchema = import_zod17.z.object({
2016
+ var ListModelSecurityGroupsResponseSchema = import_zod24.z.object({
1619
2017
  pagination: ModelSecurityPaginationSchema,
1620
- security_groups: import_zod17.z.array(ModelSecurityGroupResponseSchema)
2018
+ security_groups: import_zod24.z.array(ModelSecurityGroupResponseSchema)
1621
2019
  }).passthrough();
1622
- var PyPIAuthResponseSchema = import_zod17.z.object({
1623
- url: import_zod17.z.string(),
1624
- expires_at: import_zod17.z.string()
2020
+ var PyPIAuthResponseSchema = import_zod24.z.object({
2021
+ url: import_zod24.z.string(),
2022
+ expires_at: import_zod24.z.string()
1625
2023
  }).passthrough();
1626
2024
 
1627
2025
  // src/models/red-team-enums.ts
@@ -1819,891 +2217,891 @@ var TargetType = {
1819
2217
  };
1820
2218
 
1821
2219
  // src/models/red-team.ts
1822
- var import_zod18 = require("zod");
1823
- var RedTeamPaginationSchema = import_zod18.z.object({ total_items: import_zod18.z.number().int().nullable().optional() }).passthrough();
1824
- var CountByNameSchema = import_zod18.z.object({ name: import_zod18.z.string(), count: import_zod18.z.number().int() });
1825
- var ValidationErrorSchema = import_zod18.z.object({
1826
- loc: import_zod18.z.array(import_zod18.z.union([import_zod18.z.string(), import_zod18.z.number()])),
1827
- msg: import_zod18.z.string(),
1828
- type: import_zod18.z.string()
2220
+ var import_zod25 = require("zod");
2221
+ var RedTeamPaginationSchema = import_zod25.z.object({ total_items: import_zod25.z.number().int().nullable().optional() }).passthrough();
2222
+ var CountByNameSchema = import_zod25.z.object({ name: import_zod25.z.string(), count: import_zod25.z.number().int() });
2223
+ var ValidationErrorSchema = import_zod25.z.object({
2224
+ loc: import_zod25.z.array(import_zod25.z.union([import_zod25.z.string(), import_zod25.z.number()])),
2225
+ msg: import_zod25.z.string(),
2226
+ type: import_zod25.z.string()
1829
2227
  });
1830
- var HTTPValidationErrorSchema = import_zod18.z.object({ detail: import_zod18.z.array(ValidationErrorSchema).optional() }).passthrough();
1831
- var TargetBackgroundSchema = import_zod18.z.object({
1832
- industry: import_zod18.z.string().nullable().optional(),
1833
- use_case: import_zod18.z.string().nullable().optional(),
1834
- competitors: import_zod18.z.array(import_zod18.z.string()).nullable().optional()
1835
- }).passthrough();
1836
- var TargetAdditionalContextSchema = import_zod18.z.object({
1837
- base_model: import_zod18.z.string().nullable().optional(),
1838
- core_architecture: import_zod18.z.string().nullable().optional(),
1839
- system_prompt: import_zod18.z.string().nullable().optional(),
1840
- languages_supported: import_zod18.z.array(import_zod18.z.string()).nullable().optional(),
1841
- banned_keywords: import_zod18.z.array(import_zod18.z.string()).nullable().optional(),
1842
- tools_accessible: import_zod18.z.array(import_zod18.z.string()).nullable().optional()
1843
- }).passthrough();
1844
- var TargetMetadataSchema = import_zod18.z.object({
1845
- multi_turn: import_zod18.z.boolean().optional(),
1846
- multi_turn_error_message: import_zod18.z.string().nullable().optional(),
1847
- rate_limit: import_zod18.z.number().int().nullable().optional(),
1848
- rate_limit_enabled: import_zod18.z.boolean().optional(),
1849
- rate_limit_error_code: import_zod18.z.number().int().nullable().optional(),
1850
- rate_limit_error_json: import_zod18.z.record(import_zod18.z.unknown()).nullable().optional(),
1851
- rate_limit_error_message: import_zod18.z.string().nullable().optional(),
1852
- content_filter_enabled: import_zod18.z.boolean().optional(),
1853
- content_filter_error_code: import_zod18.z.number().int().nullable().optional(),
1854
- content_filter_error_json: import_zod18.z.record(import_zod18.z.unknown()).nullable().optional(),
1855
- content_filter_error_message: import_zod18.z.string().nullable().optional(),
1856
- probe_message: import_zod18.z.string().optional(),
1857
- request_timeout: import_zod18.z.number().optional()
1858
- }).passthrough();
1859
- var MultiTurnStatefulConfigSchema = import_zod18.z.object({
1860
- type: import_zod18.z.string().default("stateful"),
1861
- response_id_field: import_zod18.z.string(),
1862
- request_id_field: import_zod18.z.string()
1863
- }).passthrough();
1864
- var MultiTurnStatelessConfigSchema = import_zod18.z.object({
1865
- type: import_zod18.z.string().default("stateless"),
1866
- assistant_role: import_zod18.z.string().nullable().optional()
1867
- }).passthrough();
1868
- var OpenAIConnectionParamsSchema = import_zod18.z.object({
1869
- api_key: import_zod18.z.string(),
1870
- model_name: import_zod18.z.string()
1871
- }).passthrough();
1872
- var HuggingfaceConnectionParamsSchema = import_zod18.z.object({
1873
- api_key: import_zod18.z.string(),
1874
- model_name: import_zod18.z.string()
1875
- }).passthrough();
1876
- var DatabricksConnectionParamsSchema = import_zod18.z.object({
1877
- auth_type: import_zod18.z.string(),
1878
- workspace_url: import_zod18.z.string(),
1879
- model_name: import_zod18.z.string(),
1880
- access_token: import_zod18.z.string().nullable().optional(),
1881
- client_id: import_zod18.z.string().nullable().optional(),
1882
- secret: import_zod18.z.string().nullable().optional()
1883
- }).passthrough();
1884
- var BedrockAccessConnectionParamsSchema = import_zod18.z.object({
1885
- access_id: import_zod18.z.string(),
1886
- access_secret: import_zod18.z.string(),
1887
- region: import_zod18.z.string(),
1888
- model_id: import_zod18.z.string(),
1889
- session_token: import_zod18.z.string().nullable().optional()
1890
- }).passthrough();
1891
- var RestConnectionParamsSchema = import_zod18.z.object({
1892
- api_endpoint: import_zod18.z.string().nullable().optional(),
1893
- request_headers: import_zod18.z.record(import_zod18.z.unknown()).nullable().optional(),
1894
- request_json: import_zod18.z.record(import_zod18.z.unknown()).nullable().optional(),
1895
- response_json: import_zod18.z.record(import_zod18.z.unknown()).nullable().optional(),
1896
- response_key: import_zod18.z.string().nullable().optional(),
1897
- target_connection_config: import_zod18.z.unknown().nullable().optional(),
1898
- curl: import_zod18.z.string().nullable().optional(),
1899
- multi_turn_config: import_zod18.z.unknown().nullable().optional()
2228
+ var HTTPValidationErrorSchema = import_zod25.z.object({ detail: import_zod25.z.array(ValidationErrorSchema).optional() }).passthrough();
2229
+ var TargetBackgroundSchema = import_zod25.z.object({
2230
+ industry: import_zod25.z.string().nullable().optional(),
2231
+ use_case: import_zod25.z.string().nullable().optional(),
2232
+ competitors: import_zod25.z.array(import_zod25.z.string()).nullable().optional()
2233
+ }).passthrough();
2234
+ var TargetAdditionalContextSchema = import_zod25.z.object({
2235
+ base_model: import_zod25.z.string().nullable().optional(),
2236
+ core_architecture: import_zod25.z.string().nullable().optional(),
2237
+ system_prompt: import_zod25.z.string().nullable().optional(),
2238
+ languages_supported: import_zod25.z.array(import_zod25.z.string()).nullable().optional(),
2239
+ banned_keywords: import_zod25.z.array(import_zod25.z.string()).nullable().optional(),
2240
+ tools_accessible: import_zod25.z.array(import_zod25.z.string()).nullable().optional()
2241
+ }).passthrough();
2242
+ var TargetMetadataSchema = import_zod25.z.object({
2243
+ multi_turn: import_zod25.z.boolean().optional(),
2244
+ multi_turn_error_message: import_zod25.z.string().nullable().optional(),
2245
+ rate_limit: import_zod25.z.number().int().nullable().optional(),
2246
+ rate_limit_enabled: import_zod25.z.boolean().optional(),
2247
+ rate_limit_error_code: import_zod25.z.number().int().nullable().optional(),
2248
+ rate_limit_error_json: import_zod25.z.record(import_zod25.z.unknown()).nullable().optional(),
2249
+ rate_limit_error_message: import_zod25.z.string().nullable().optional(),
2250
+ content_filter_enabled: import_zod25.z.boolean().optional(),
2251
+ content_filter_error_code: import_zod25.z.number().int().nullable().optional(),
2252
+ content_filter_error_json: import_zod25.z.record(import_zod25.z.unknown()).nullable().optional(),
2253
+ content_filter_error_message: import_zod25.z.string().nullable().optional(),
2254
+ probe_message: import_zod25.z.string().optional(),
2255
+ request_timeout: import_zod25.z.number().optional()
2256
+ }).passthrough();
2257
+ var MultiTurnStatefulConfigSchema = import_zod25.z.object({
2258
+ type: import_zod25.z.string().default("stateful"),
2259
+ response_id_field: import_zod25.z.string(),
2260
+ request_id_field: import_zod25.z.string()
2261
+ }).passthrough();
2262
+ var MultiTurnStatelessConfigSchema = import_zod25.z.object({
2263
+ type: import_zod25.z.string().default("stateless"),
2264
+ assistant_role: import_zod25.z.string().nullable().optional()
2265
+ }).passthrough();
2266
+ var OpenAIConnectionParamsSchema = import_zod25.z.object({
2267
+ api_key: import_zod25.z.string(),
2268
+ model_name: import_zod25.z.string()
2269
+ }).passthrough();
2270
+ var HuggingfaceConnectionParamsSchema = import_zod25.z.object({
2271
+ api_key: import_zod25.z.string(),
2272
+ model_name: import_zod25.z.string()
2273
+ }).passthrough();
2274
+ var DatabricksConnectionParamsSchema = import_zod25.z.object({
2275
+ auth_type: import_zod25.z.string(),
2276
+ workspace_url: import_zod25.z.string(),
2277
+ model_name: import_zod25.z.string(),
2278
+ access_token: import_zod25.z.string().nullable().optional(),
2279
+ client_id: import_zod25.z.string().nullable().optional(),
2280
+ secret: import_zod25.z.string().nullable().optional()
2281
+ }).passthrough();
2282
+ var BedrockAccessConnectionParamsSchema = import_zod25.z.object({
2283
+ access_id: import_zod25.z.string(),
2284
+ access_secret: import_zod25.z.string(),
2285
+ region: import_zod25.z.string(),
2286
+ model_id: import_zod25.z.string(),
2287
+ session_token: import_zod25.z.string().nullable().optional()
2288
+ }).passthrough();
2289
+ var RestConnectionParamsSchema = import_zod25.z.object({
2290
+ api_endpoint: import_zod25.z.string().nullable().optional(),
2291
+ request_headers: import_zod25.z.record(import_zod25.z.unknown()).nullable().optional(),
2292
+ request_json: import_zod25.z.record(import_zod25.z.unknown()).nullable().optional(),
2293
+ response_json: import_zod25.z.record(import_zod25.z.unknown()).nullable().optional(),
2294
+ response_key: import_zod25.z.string().nullable().optional(),
2295
+ target_connection_config: import_zod25.z.unknown().nullable().optional(),
2296
+ curl: import_zod25.z.string().nullable().optional(),
2297
+ multi_turn_config: import_zod25.z.unknown().nullable().optional()
1900
2298
  }).passthrough();
1901
2299
  var StreamingConnectionParamsSchema = RestConnectionParamsSchema.extend({
1902
- response_stop_key: import_zod18.z.string(),
1903
- response_stop_value: import_zod18.z.string()
2300
+ response_stop_key: import_zod25.z.string(),
2301
+ response_stop_value: import_zod25.z.string()
1904
2302
  }).passthrough();
1905
- var ConnectionParamsSchema = import_zod18.z.union([
2303
+ var ConnectionParamsSchema = import_zod25.z.union([
1906
2304
  StreamingConnectionParamsSchema,
1907
2305
  RestConnectionParamsSchema
1908
2306
  ]);
1909
- var TargetJobRequestSchema = import_zod18.z.object({
1910
- uuid: import_zod18.z.string(),
1911
- version: import_zod18.z.number().int().nullable().optional()
2307
+ var TargetJobRequestSchema = import_zod25.z.object({
2308
+ uuid: import_zod25.z.string(),
2309
+ version: import_zod25.z.number().int().nullable().optional()
1912
2310
  });
1913
- var JobTimeRecordSchema = import_zod18.z.object({
1914
- queued_at: import_zod18.z.string().nullable().optional(),
1915
- started_at: import_zod18.z.string().nullable().optional(),
1916
- completed_at: import_zod18.z.string().nullable().optional(),
1917
- time_taken: import_zod18.z.string().nullable().optional()
1918
- }).passthrough();
1919
- var StaticJobMetadataSchema = import_zod18.z.object({
1920
- categories: import_zod18.z.record(import_zod18.z.unknown()),
1921
- rate_limit_enabled: import_zod18.z.boolean().optional(),
1922
- rate_limit: import_zod18.z.number().int().nullable().optional(),
1923
- rate_limit_error_code: import_zod18.z.number().int().nullable().optional(),
1924
- rate_limit_error_message: import_zod18.z.string().nullable().optional(),
1925
- rate_limit_error_json: import_zod18.z.unknown().optional(),
1926
- content_filter_enabled: import_zod18.z.boolean().optional(),
1927
- content_filter_error_code: import_zod18.z.number().int().nullable().optional(),
1928
- content_filter_error_message: import_zod18.z.string().nullable().optional(),
1929
- content_filter_error_json: import_zod18.z.unknown().optional()
1930
- }).passthrough();
1931
- var DynamicJobMetadataSchema = import_zod18.z.object({
1932
- rate_limit_enabled: import_zod18.z.boolean().optional(),
1933
- rate_limit: import_zod18.z.number().int().nullable().optional(),
1934
- rate_limit_error_code: import_zod18.z.number().int().nullable().optional(),
1935
- rate_limit_error_message: import_zod18.z.string().nullable().optional(),
1936
- rate_limit_error_json: import_zod18.z.unknown().optional(),
1937
- content_filter_enabled: import_zod18.z.boolean().optional(),
1938
- content_filter_error_code: import_zod18.z.number().int().nullable().optional(),
1939
- content_filter_error_message: import_zod18.z.string().nullable().optional(),
1940
- content_filter_error_json: import_zod18.z.unknown().optional(),
1941
- stream_breadth: import_zod18.z.number().int().optional(),
1942
- stream_depth: import_zod18.z.number().int().optional(),
1943
- max_tokens: import_zod18.z.number().int().optional(),
1944
- context_size: import_zod18.z.number().int().optional(),
1945
- attack_goals: import_zod18.z.array(import_zod18.z.unknown()).optional(),
1946
- base_model: import_zod18.z.string().nullable().optional(),
1947
- use_case: import_zod18.z.string().nullable().optional(),
1948
- system_prompt: import_zod18.z.string().nullable().optional()
1949
- }).passthrough();
1950
- var CustomJobMetadataSchema = import_zod18.z.object({
1951
- custom_prompt_sets: import_zod18.z.array(import_zod18.z.unknown()),
1952
- rate_limit_enabled: import_zod18.z.boolean().optional(),
1953
- rate_limit: import_zod18.z.number().int().nullable().optional(),
1954
- rate_limit_error_code: import_zod18.z.number().int().nullable().optional(),
1955
- rate_limit_error_message: import_zod18.z.string().nullable().optional(),
1956
- rate_limit_error_json: import_zod18.z.unknown().optional(),
1957
- content_filter_enabled: import_zod18.z.boolean().optional(),
1958
- content_filter_error_code: import_zod18.z.number().int().nullable().optional(),
1959
- content_filter_error_message: import_zod18.z.string().nullable().optional(),
1960
- content_filter_error_json: import_zod18.z.unknown().optional()
1961
- }).passthrough();
1962
- var JobCreateRequestSchema = import_zod18.z.object({
1963
- name: import_zod18.z.string(),
2311
+ var JobTimeRecordSchema = import_zod25.z.object({
2312
+ queued_at: import_zod25.z.string().nullable().optional(),
2313
+ started_at: import_zod25.z.string().nullable().optional(),
2314
+ completed_at: import_zod25.z.string().nullable().optional(),
2315
+ time_taken: import_zod25.z.string().nullable().optional()
2316
+ }).passthrough();
2317
+ var StaticJobMetadataSchema = import_zod25.z.object({
2318
+ categories: import_zod25.z.record(import_zod25.z.unknown()),
2319
+ rate_limit_enabled: import_zod25.z.boolean().optional(),
2320
+ rate_limit: import_zod25.z.number().int().nullable().optional(),
2321
+ rate_limit_error_code: import_zod25.z.number().int().nullable().optional(),
2322
+ rate_limit_error_message: import_zod25.z.string().nullable().optional(),
2323
+ rate_limit_error_json: import_zod25.z.unknown().optional(),
2324
+ content_filter_enabled: import_zod25.z.boolean().optional(),
2325
+ content_filter_error_code: import_zod25.z.number().int().nullable().optional(),
2326
+ content_filter_error_message: import_zod25.z.string().nullable().optional(),
2327
+ content_filter_error_json: import_zod25.z.unknown().optional()
2328
+ }).passthrough();
2329
+ var DynamicJobMetadataSchema = import_zod25.z.object({
2330
+ rate_limit_enabled: import_zod25.z.boolean().optional(),
2331
+ rate_limit: import_zod25.z.number().int().nullable().optional(),
2332
+ rate_limit_error_code: import_zod25.z.number().int().nullable().optional(),
2333
+ rate_limit_error_message: import_zod25.z.string().nullable().optional(),
2334
+ rate_limit_error_json: import_zod25.z.unknown().optional(),
2335
+ content_filter_enabled: import_zod25.z.boolean().optional(),
2336
+ content_filter_error_code: import_zod25.z.number().int().nullable().optional(),
2337
+ content_filter_error_message: import_zod25.z.string().nullable().optional(),
2338
+ content_filter_error_json: import_zod25.z.unknown().optional(),
2339
+ stream_breadth: import_zod25.z.number().int().optional(),
2340
+ stream_depth: import_zod25.z.number().int().optional(),
2341
+ max_tokens: import_zod25.z.number().int().optional(),
2342
+ context_size: import_zod25.z.number().int().optional(),
2343
+ attack_goals: import_zod25.z.array(import_zod25.z.unknown()).optional(),
2344
+ base_model: import_zod25.z.string().nullable().optional(),
2345
+ use_case: import_zod25.z.string().nullable().optional(),
2346
+ system_prompt: import_zod25.z.string().nullable().optional()
2347
+ }).passthrough();
2348
+ var CustomJobMetadataSchema = import_zod25.z.object({
2349
+ custom_prompt_sets: import_zod25.z.array(import_zod25.z.unknown()),
2350
+ rate_limit_enabled: import_zod25.z.boolean().optional(),
2351
+ rate_limit: import_zod25.z.number().int().nullable().optional(),
2352
+ rate_limit_error_code: import_zod25.z.number().int().nullable().optional(),
2353
+ rate_limit_error_message: import_zod25.z.string().nullable().optional(),
2354
+ rate_limit_error_json: import_zod25.z.unknown().optional(),
2355
+ content_filter_enabled: import_zod25.z.boolean().optional(),
2356
+ content_filter_error_code: import_zod25.z.number().int().nullable().optional(),
2357
+ content_filter_error_message: import_zod25.z.string().nullable().optional(),
2358
+ content_filter_error_json: import_zod25.z.unknown().optional()
2359
+ }).passthrough();
2360
+ var JobCreateRequestSchema = import_zod25.z.object({
2361
+ name: import_zod25.z.string(),
1964
2362
  target: TargetJobRequestSchema,
1965
- job_type: import_zod18.z.string(),
1966
- job_metadata: import_zod18.z.union([
2363
+ job_type: import_zod25.z.string(),
2364
+ job_metadata: import_zod25.z.union([
1967
2365
  StaticJobMetadataSchema,
1968
2366
  DynamicJobMetadataSchema,
1969
2367
  CustomJobMetadataSchema
1970
2368
  ]),
1971
- version: import_zod18.z.number().int().nullable().optional(),
1972
- extra_info: import_zod18.z.record(import_zod18.z.unknown()).nullable().optional()
2369
+ version: import_zod25.z.number().int().nullable().optional(),
2370
+ extra_info: import_zod25.z.record(import_zod25.z.unknown()).nullable().optional()
1973
2371
  });
1974
- var StaticJobReportStatsSchema = import_zod18.z.object({
1975
- output_completion_percentage: import_zod18.z.number(),
1976
- partial_report_unlocked: import_zod18.z.boolean().optional(),
1977
- partial_report_unlocked_at: import_zod18.z.string().nullable().optional(),
1978
- report_summary: import_zod18.z.string().nullable().optional()
1979
- }).passthrough();
1980
- var DynamicJobReportStatsSchema = import_zod18.z.object({
1981
- total_goals: import_zod18.z.number().int().optional(),
1982
- total_streams: import_zod18.z.number().int().optional(),
1983
- total_threats: import_zod18.z.number().int().optional(),
1984
- goals_achieved: import_zod18.z.number().int().optional(),
1985
- report_summary: import_zod18.z.string().nullable().optional()
1986
- }).passthrough();
1987
- var TargetReferenceSchema = import_zod18.z.object({
1988
- uuid: import_zod18.z.string(),
1989
- tsg_id: import_zod18.z.string(),
1990
- name: import_zod18.z.string(),
1991
- description: import_zod18.z.string().nullable().optional(),
1992
- target_type: import_zod18.z.string().nullable().optional(),
1993
- connection_type: import_zod18.z.string().nullable().optional(),
1994
- api_endpoint_type: import_zod18.z.string().nullable().optional(),
1995
- response_mode: import_zod18.z.string().nullable().optional(),
1996
- session_supported: import_zod18.z.boolean().optional(),
1997
- extra_info: import_zod18.z.record(import_zod18.z.unknown()).nullable().optional(),
1998
- status: import_zod18.z.string(),
1999
- active: import_zod18.z.boolean(),
2000
- validated: import_zod18.z.boolean(),
2001
- version: import_zod18.z.number().int().nullable().optional(),
2002
- secret_version: import_zod18.z.string().nullable().optional(),
2003
- created_by_user_id: import_zod18.z.string().nullable().optional(),
2004
- updated_by_user_id: import_zod18.z.string().nullable().optional(),
2005
- created_at: import_zod18.z.string(),
2006
- updated_at: import_zod18.z.string(),
2372
+ var StaticJobReportStatsSchema = import_zod25.z.object({
2373
+ output_completion_percentage: import_zod25.z.number(),
2374
+ partial_report_unlocked: import_zod25.z.boolean().optional(),
2375
+ partial_report_unlocked_at: import_zod25.z.string().nullable().optional(),
2376
+ report_summary: import_zod25.z.string().nullable().optional()
2377
+ }).passthrough();
2378
+ var DynamicJobReportStatsSchema = import_zod25.z.object({
2379
+ total_goals: import_zod25.z.number().int().optional(),
2380
+ total_streams: import_zod25.z.number().int().optional(),
2381
+ total_threats: import_zod25.z.number().int().optional(),
2382
+ goals_achieved: import_zod25.z.number().int().optional(),
2383
+ report_summary: import_zod25.z.string().nullable().optional()
2384
+ }).passthrough();
2385
+ var TargetReferenceSchema = import_zod25.z.object({
2386
+ uuid: import_zod25.z.string(),
2387
+ tsg_id: import_zod25.z.string(),
2388
+ name: import_zod25.z.string(),
2389
+ description: import_zod25.z.string().nullable().optional(),
2390
+ target_type: import_zod25.z.string().nullable().optional(),
2391
+ connection_type: import_zod25.z.string().nullable().optional(),
2392
+ api_endpoint_type: import_zod25.z.string().nullable().optional(),
2393
+ response_mode: import_zod25.z.string().nullable().optional(),
2394
+ session_supported: import_zod25.z.boolean().optional(),
2395
+ extra_info: import_zod25.z.record(import_zod25.z.unknown()).nullable().optional(),
2396
+ status: import_zod25.z.string(),
2397
+ active: import_zod25.z.boolean(),
2398
+ validated: import_zod25.z.boolean(),
2399
+ version: import_zod25.z.number().int().nullable().optional(),
2400
+ secret_version: import_zod25.z.string().nullable().optional(),
2401
+ created_by_user_id: import_zod25.z.string().nullable().optional(),
2402
+ updated_by_user_id: import_zod25.z.string().nullable().optional(),
2403
+ created_at: import_zod25.z.string(),
2404
+ updated_at: import_zod25.z.string(),
2007
2405
  target_metadata: TargetMetadataSchema.optional(),
2008
2406
  target_background: TargetBackgroundSchema.nullable().optional(),
2009
- profiling_status: import_zod18.z.string().nullable().optional(),
2407
+ profiling_status: import_zod25.z.string().nullable().optional(),
2010
2408
  additional_context: TargetAdditionalContextSchema.nullable().optional()
2011
2409
  }).passthrough();
2012
- var JobResponseSchema = import_zod18.z.object({
2013
- uuid: import_zod18.z.string(),
2014
- tsg_id: import_zod18.z.string(),
2015
- name: import_zod18.z.string(),
2410
+ var JobResponseSchema = import_zod25.z.object({
2411
+ uuid: import_zod25.z.string(),
2412
+ tsg_id: import_zod25.z.string(),
2413
+ name: import_zod25.z.string(),
2016
2414
  target: TargetReferenceSchema,
2017
- job_type: import_zod18.z.string(),
2018
- job_metadata: import_zod18.z.unknown(),
2019
- version: import_zod18.z.number().int().nullable().optional(),
2020
- extra_info: import_zod18.z.record(import_zod18.z.unknown()).nullable().optional(),
2021
- target_id: import_zod18.z.string(),
2022
- target_type: import_zod18.z.string(),
2023
- total: import_zod18.z.number().int().nullable().optional(),
2024
- completed: import_zod18.z.number().int().nullable().optional(),
2025
- status: import_zod18.z.string().optional(),
2026
- score: import_zod18.z.number().nullable().optional(),
2027
- asr: import_zod18.z.number().nullable().optional(),
2415
+ job_type: import_zod25.z.string(),
2416
+ job_metadata: import_zod25.z.unknown(),
2417
+ version: import_zod25.z.number().int().nullable().optional(),
2418
+ extra_info: import_zod25.z.record(import_zod25.z.unknown()).nullable().optional(),
2419
+ target_id: import_zod25.z.string(),
2420
+ target_type: import_zod25.z.string(),
2421
+ total: import_zod25.z.number().int().nullable().optional(),
2422
+ completed: import_zod25.z.number().int().nullable().optional(),
2423
+ status: import_zod25.z.string().optional(),
2424
+ score: import_zod25.z.number().nullable().optional(),
2425
+ asr: import_zod25.z.number().nullable().optional(),
2028
2426
  time_record: JobTimeRecordSchema.nullable().optional(),
2029
- created_at: import_zod18.z.string().nullable().optional(),
2030
- updated_at: import_zod18.z.string().nullable().optional(),
2031
- created_by_user_id: import_zod18.z.string().nullable().optional(),
2032
- report_stats: import_zod18.z.unknown().optional(),
2033
- metering_quota_uuid: import_zod18.z.string().nullable().optional(),
2034
- counted_towards_quota: import_zod18.z.string().optional(),
2035
- invocation_id: import_zod18.z.string().nullable().optional()
2036
- }).passthrough();
2037
- var JobListResponseSchema = import_zod18.z.object({
2427
+ created_at: import_zod25.z.string().nullable().optional(),
2428
+ updated_at: import_zod25.z.string().nullable().optional(),
2429
+ created_by_user_id: import_zod25.z.string().nullable().optional(),
2430
+ report_stats: import_zod25.z.unknown().optional(),
2431
+ metering_quota_uuid: import_zod25.z.string().nullable().optional(),
2432
+ counted_towards_quota: import_zod25.z.string().optional(),
2433
+ invocation_id: import_zod25.z.string().nullable().optional()
2434
+ }).passthrough();
2435
+ var JobListResponseSchema = import_zod25.z.object({
2038
2436
  pagination: RedTeamPaginationSchema,
2039
- data: import_zod18.z.array(JobResponseSchema)
2437
+ data: import_zod25.z.array(JobResponseSchema)
2040
2438
  }).passthrough();
2041
- var JobAbortResponseSchema = import_zod18.z.object({
2042
- job_id: import_zod18.z.string(),
2043
- message: import_zod18.z.string()
2439
+ var JobAbortResponseSchema = import_zod25.z.object({
2440
+ job_id: import_zod25.z.string(),
2441
+ message: import_zod25.z.string()
2044
2442
  });
2045
- var PrerequisiteModelSchema = import_zod18.z.object({
2046
- id: import_zod18.z.string(),
2047
- display_name: import_zod18.z.string(),
2048
- description: import_zod18.z.string()
2443
+ var PrerequisiteModelSchema = import_zod25.z.object({
2444
+ id: import_zod25.z.string(),
2445
+ display_name: import_zod25.z.string(),
2446
+ description: import_zod25.z.string()
2049
2447
  });
2050
- var SubCategoryModelSchema = import_zod18.z.object({
2051
- id: import_zod18.z.string(),
2052
- display_name: import_zod18.z.string(),
2053
- description: import_zod18.z.string(),
2054
- preselect: import_zod18.z.boolean().optional(),
2055
- prerequisites: import_zod18.z.array(PrerequisiteModelSchema).nullable().optional(),
2056
- active: import_zod18.z.boolean().optional()
2057
- }).passthrough();
2058
- var CategoryModelSchema = import_zod18.z.object({
2059
- id: import_zod18.z.string(),
2060
- display_name: import_zod18.z.string(),
2061
- description: import_zod18.z.string(),
2062
- preselect: import_zod18.z.boolean().optional(),
2063
- sub_categories: import_zod18.z.array(SubCategoryModelSchema)
2064
- }).passthrough();
2065
- var AttackOutputSchema = import_zod18.z.object({
2066
- uuid: import_zod18.z.string(),
2067
- tsg_id: import_zod18.z.string(),
2068
- attack_id: import_zod18.z.string(),
2069
- job_id: import_zod18.z.string(),
2070
- target_id: import_zod18.z.string(),
2071
- output: import_zod18.z.string(),
2072
- threat: import_zod18.z.boolean().nullable().optional(),
2073
- marked_safe: import_zod18.z.boolean().nullable().optional()
2074
- }).passthrough();
2075
- var AttackMultiTurnOutputSchema = import_zod18.z.object({
2076
- uuid: import_zod18.z.string(),
2077
- tsg_id: import_zod18.z.string(),
2078
- attack_id: import_zod18.z.string(),
2079
- job_id: import_zod18.z.string(),
2080
- target_id: import_zod18.z.string(),
2081
- output: import_zod18.z.string(),
2082
- prompt: import_zod18.z.string(),
2083
- turn: import_zod18.z.number().int(),
2084
- threat: import_zod18.z.boolean().nullable().optional(),
2085
- marked_safe: import_zod18.z.boolean().nullable().optional(),
2086
- generation: import_zod18.z.number().int().optional(),
2087
- multi_turn: import_zod18.z.boolean().optional()
2088
- }).passthrough();
2089
- var AttackListItemSchema = import_zod18.z.object({
2090
- uuid: import_zod18.z.string(),
2091
- tsg_id: import_zod18.z.string(),
2092
- job_id: import_zod18.z.string(),
2093
- target_id: import_zod18.z.string(),
2094
- prompt: import_zod18.z.string(),
2095
- prompt_mapping_id: import_zod18.z.string(),
2096
- prompt_id: import_zod18.z.string(),
2097
- category: import_zod18.z.string(),
2098
- sub_category: import_zod18.z.string(),
2099
- category_display_name: import_zod18.z.string(),
2100
- sub_category_display_name: import_zod18.z.string(),
2101
- status: import_zod18.z.string().optional(),
2102
- marked_safe: import_zod18.z.boolean().nullable().optional(),
2103
- extra_info: import_zod18.z.record(import_zod18.z.unknown()).optional(),
2104
- threat: import_zod18.z.boolean().nullable().optional(),
2105
- attack_type: import_zod18.z.string().optional(),
2106
- multi_turn: import_zod18.z.boolean().optional(),
2107
- asr: import_zod18.z.number().nullable().optional(),
2108
- version: import_zod18.z.number().int().nullable().optional(),
2109
- severity: import_zod18.z.string().optional()
2110
- }).passthrough();
2111
- var AttackListResponseSchema = import_zod18.z.object({
2448
+ var SubCategoryModelSchema = import_zod25.z.object({
2449
+ id: import_zod25.z.string(),
2450
+ display_name: import_zod25.z.string(),
2451
+ description: import_zod25.z.string(),
2452
+ preselect: import_zod25.z.boolean().optional(),
2453
+ prerequisites: import_zod25.z.array(PrerequisiteModelSchema).nullable().optional(),
2454
+ active: import_zod25.z.boolean().optional()
2455
+ }).passthrough();
2456
+ var CategoryModelSchema = import_zod25.z.object({
2457
+ id: import_zod25.z.string(),
2458
+ display_name: import_zod25.z.string(),
2459
+ description: import_zod25.z.string(),
2460
+ preselect: import_zod25.z.boolean().optional(),
2461
+ sub_categories: import_zod25.z.array(SubCategoryModelSchema)
2462
+ }).passthrough();
2463
+ var AttackOutputSchema = import_zod25.z.object({
2464
+ uuid: import_zod25.z.string(),
2465
+ tsg_id: import_zod25.z.string(),
2466
+ attack_id: import_zod25.z.string(),
2467
+ job_id: import_zod25.z.string(),
2468
+ target_id: import_zod25.z.string(),
2469
+ output: import_zod25.z.string(),
2470
+ threat: import_zod25.z.boolean().nullable().optional(),
2471
+ marked_safe: import_zod25.z.boolean().nullable().optional()
2472
+ }).passthrough();
2473
+ var AttackMultiTurnOutputSchema = import_zod25.z.object({
2474
+ uuid: import_zod25.z.string(),
2475
+ tsg_id: import_zod25.z.string(),
2476
+ attack_id: import_zod25.z.string(),
2477
+ job_id: import_zod25.z.string(),
2478
+ target_id: import_zod25.z.string(),
2479
+ output: import_zod25.z.string(),
2480
+ prompt: import_zod25.z.string(),
2481
+ turn: import_zod25.z.number().int(),
2482
+ threat: import_zod25.z.boolean().nullable().optional(),
2483
+ marked_safe: import_zod25.z.boolean().nullable().optional(),
2484
+ generation: import_zod25.z.number().int().optional(),
2485
+ multi_turn: import_zod25.z.boolean().optional()
2486
+ }).passthrough();
2487
+ var AttackListItemSchema = import_zod25.z.object({
2488
+ uuid: import_zod25.z.string(),
2489
+ tsg_id: import_zod25.z.string(),
2490
+ job_id: import_zod25.z.string(),
2491
+ target_id: import_zod25.z.string(),
2492
+ prompt: import_zod25.z.string(),
2493
+ prompt_mapping_id: import_zod25.z.string(),
2494
+ prompt_id: import_zod25.z.string(),
2495
+ category: import_zod25.z.string(),
2496
+ sub_category: import_zod25.z.string(),
2497
+ category_display_name: import_zod25.z.string(),
2498
+ sub_category_display_name: import_zod25.z.string(),
2499
+ status: import_zod25.z.string().optional(),
2500
+ marked_safe: import_zod25.z.boolean().nullable().optional(),
2501
+ extra_info: import_zod25.z.record(import_zod25.z.unknown()).optional(),
2502
+ threat: import_zod25.z.boolean().nullable().optional(),
2503
+ attack_type: import_zod25.z.string().optional(),
2504
+ multi_turn: import_zod25.z.boolean().optional(),
2505
+ asr: import_zod25.z.number().nullable().optional(),
2506
+ version: import_zod25.z.number().int().nullable().optional(),
2507
+ severity: import_zod25.z.string().optional()
2508
+ }).passthrough();
2509
+ var AttackListResponseSchema = import_zod25.z.object({
2112
2510
  pagination: RedTeamPaginationSchema,
2113
- data: import_zod18.z.array(AttackListItemSchema)
2114
- }).passthrough();
2115
- var AttackDetailResponseSchema = import_zod18.z.object({
2116
- uuid: import_zod18.z.string(),
2117
- tsg_id: import_zod18.z.string(),
2118
- job_id: import_zod18.z.string(),
2119
- target_id: import_zod18.z.string(),
2120
- prompt: import_zod18.z.string(),
2121
- prompt_mapping_id: import_zod18.z.string(),
2122
- prompt_id: import_zod18.z.string(),
2123
- category: import_zod18.z.string(),
2124
- sub_category: import_zod18.z.string(),
2125
- category_display_name: import_zod18.z.string(),
2126
- sub_category_display_name: import_zod18.z.string(),
2127
- compliance_frameworks: import_zod18.z.array(import_zod18.z.unknown()),
2128
- goal: import_zod18.z.string().nullable(),
2129
- status: import_zod18.z.string().optional(),
2130
- marked_safe: import_zod18.z.boolean().nullable().optional(),
2131
- extra_info: import_zod18.z.record(import_zod18.z.unknown()).optional(),
2132
- threat: import_zod18.z.boolean().nullable().optional(),
2133
- attack_type: import_zod18.z.string().optional(),
2134
- multi_turn: import_zod18.z.boolean().optional(),
2135
- asr: import_zod18.z.number().nullable().optional(),
2136
- version: import_zod18.z.number().int().nullable().optional(),
2137
- severity: import_zod18.z.string().optional(),
2138
- outputs: import_zod18.z.array(AttackOutputSchema).optional()
2139
- }).passthrough();
2140
- var AttackMultiTurnDetailResponseSchema = import_zod18.z.object({
2141
- uuid: import_zod18.z.string(),
2142
- tsg_id: import_zod18.z.string(),
2143
- job_id: import_zod18.z.string(),
2144
- target_id: import_zod18.z.string(),
2145
- prompt: import_zod18.z.string(),
2146
- prompt_mapping_id: import_zod18.z.string(),
2147
- prompt_id: import_zod18.z.string(),
2148
- category: import_zod18.z.string(),
2149
- sub_category: import_zod18.z.string(),
2150
- category_display_name: import_zod18.z.string(),
2151
- sub_category_display_name: import_zod18.z.string(),
2152
- compliance_frameworks: import_zod18.z.array(import_zod18.z.unknown()),
2153
- goal: import_zod18.z.string().nullable(),
2154
- status: import_zod18.z.string().optional(),
2155
- marked_safe: import_zod18.z.boolean().nullable().optional(),
2156
- extra_info: import_zod18.z.record(import_zod18.z.unknown()).optional(),
2157
- threat: import_zod18.z.boolean().nullable().optional(),
2158
- attack_type: import_zod18.z.string().optional(),
2159
- multi_turn: import_zod18.z.boolean().optional(),
2160
- asr: import_zod18.z.number().nullable().optional(),
2161
- version: import_zod18.z.number().int().nullable().optional(),
2162
- severity: import_zod18.z.string().optional(),
2163
- outputs: import_zod18.z.array(AttackMultiTurnOutputSchema).optional()
2164
- }).passthrough();
2165
- var SubCategoryStatsSchema = import_zod18.z.object({
2166
- id: import_zod18.z.string(),
2167
- display_name: import_zod18.z.string(),
2168
- description: import_zod18.z.string(),
2169
- preselect: import_zod18.z.boolean().optional(),
2170
- prerequisites: import_zod18.z.array(PrerequisiteModelSchema).nullable().optional(),
2171
- active: import_zod18.z.boolean().optional(),
2172
- successful: import_zod18.z.number().int(),
2173
- failed: import_zod18.z.number().int(),
2174
- total: import_zod18.z.number().int().optional()
2175
- }).passthrough();
2176
- var CategoryReportSchema = import_zod18.z.object({
2177
- id: import_zod18.z.string(),
2178
- display_name: import_zod18.z.string(),
2179
- description: import_zod18.z.string(),
2180
- preselect: import_zod18.z.boolean().optional(),
2181
- sub_categories: import_zod18.z.array(SubCategoryStatsSchema),
2182
- asr: import_zod18.z.number(),
2183
- total_prompts: import_zod18.z.number().int(),
2184
- total_attacks: import_zod18.z.number().int(),
2185
- successful: import_zod18.z.number().int(),
2186
- failed: import_zod18.z.number().int()
2187
- }).passthrough();
2188
- var SeverityStatsSchema = import_zod18.z.object({
2189
- severity: import_zod18.z.string(),
2190
- successful: import_zod18.z.number().int().optional(),
2191
- failed: import_zod18.z.number().int().optional()
2192
- }).passthrough();
2193
- var SeverityReportSchema = import_zod18.z.object({
2194
- stats: import_zod18.z.array(SeverityStatsSchema),
2195
- successful: import_zod18.z.number().int().optional(),
2196
- failed: import_zod18.z.number().int().optional(),
2197
- total_attacks: import_zod18.z.number().int().optional()
2198
- }).passthrough();
2199
- var ComplianceTechniqueSchema = import_zod18.z.object({
2200
- id: import_zod18.z.string(),
2201
- display_name: import_zod18.z.string(),
2202
- compliance_id: import_zod18.z.string(),
2203
- description: import_zod18.z.string(),
2204
- link: import_zod18.z.string(),
2205
- version: import_zod18.z.string(),
2206
- active: import_zod18.z.boolean(),
2207
- successful: import_zod18.z.number().int().optional(),
2208
- failed: import_zod18.z.number().int().optional(),
2209
- total: import_zod18.z.number().int().optional()
2210
- }).passthrough();
2211
- var ComplianceReportSchema = import_zod18.z.object({
2212
- id: import_zod18.z.string(),
2213
- display_name: import_zod18.z.string(),
2214
- description: import_zod18.z.string(),
2215
- active: import_zod18.z.boolean(),
2216
- version: import_zod18.z.string(),
2217
- link: import_zod18.z.string(),
2218
- techniques: import_zod18.z.array(ComplianceTechniqueSchema),
2219
- score: import_zod18.z.number().int().optional()
2220
- }).passthrough();
2221
- var RuntimeSecurityPolicySchema = import_zod18.z.object({
2222
- policy_id: import_zod18.z.string(),
2223
- display_name: import_zod18.z.string(),
2224
- config: import_zod18.z.record(import_zod18.z.unknown())
2225
- }).passthrough();
2226
- var StaticJobRemediationSchema = import_zod18.z.object({
2227
- remediation: import_zod18.z.string(),
2228
- description: import_zod18.z.string(),
2229
- mapping_remediation_id: import_zod18.z.string().nullable().optional(),
2230
- subcategories: import_zod18.z.array(import_zod18.z.string()).nullable().optional(),
2231
- effectiveness: import_zod18.z.number().int().optional(),
2232
- ease_of_implementation: import_zod18.z.number().int().optional(),
2233
- priority: import_zod18.z.number().int().optional(),
2234
- resource_links: import_zod18.z.array(import_zod18.z.string()).optional(),
2235
- categories: import_zod18.z.array(import_zod18.z.string()).nullable().optional()
2236
- }).passthrough();
2237
- var StaticJobRemediationRecommendationSchema = import_zod18.z.object({
2238
- runtime_security_policy_configuration: import_zod18.z.array(RuntimeSecurityPolicySchema).nullable().optional(),
2239
- other_measures: import_zod18.z.array(StaticJobRemediationSchema).optional()
2240
- }).passthrough();
2241
- var StaticJobReportSchema = import_zod18.z.object({
2511
+ data: import_zod25.z.array(AttackListItemSchema)
2512
+ }).passthrough();
2513
+ var AttackDetailResponseSchema = import_zod25.z.object({
2514
+ uuid: import_zod25.z.string(),
2515
+ tsg_id: import_zod25.z.string(),
2516
+ job_id: import_zod25.z.string(),
2517
+ target_id: import_zod25.z.string(),
2518
+ prompt: import_zod25.z.string(),
2519
+ prompt_mapping_id: import_zod25.z.string(),
2520
+ prompt_id: import_zod25.z.string(),
2521
+ category: import_zod25.z.string(),
2522
+ sub_category: import_zod25.z.string(),
2523
+ category_display_name: import_zod25.z.string(),
2524
+ sub_category_display_name: import_zod25.z.string(),
2525
+ compliance_frameworks: import_zod25.z.array(import_zod25.z.unknown()),
2526
+ goal: import_zod25.z.string().nullable(),
2527
+ status: import_zod25.z.string().optional(),
2528
+ marked_safe: import_zod25.z.boolean().nullable().optional(),
2529
+ extra_info: import_zod25.z.record(import_zod25.z.unknown()).optional(),
2530
+ threat: import_zod25.z.boolean().nullable().optional(),
2531
+ attack_type: import_zod25.z.string().optional(),
2532
+ multi_turn: import_zod25.z.boolean().optional(),
2533
+ asr: import_zod25.z.number().nullable().optional(),
2534
+ version: import_zod25.z.number().int().nullable().optional(),
2535
+ severity: import_zod25.z.string().optional(),
2536
+ outputs: import_zod25.z.array(AttackOutputSchema).optional()
2537
+ }).passthrough();
2538
+ var AttackMultiTurnDetailResponseSchema = import_zod25.z.object({
2539
+ uuid: import_zod25.z.string(),
2540
+ tsg_id: import_zod25.z.string(),
2541
+ job_id: import_zod25.z.string(),
2542
+ target_id: import_zod25.z.string(),
2543
+ prompt: import_zod25.z.string(),
2544
+ prompt_mapping_id: import_zod25.z.string(),
2545
+ prompt_id: import_zod25.z.string(),
2546
+ category: import_zod25.z.string(),
2547
+ sub_category: import_zod25.z.string(),
2548
+ category_display_name: import_zod25.z.string(),
2549
+ sub_category_display_name: import_zod25.z.string(),
2550
+ compliance_frameworks: import_zod25.z.array(import_zod25.z.unknown()),
2551
+ goal: import_zod25.z.string().nullable(),
2552
+ status: import_zod25.z.string().optional(),
2553
+ marked_safe: import_zod25.z.boolean().nullable().optional(),
2554
+ extra_info: import_zod25.z.record(import_zod25.z.unknown()).optional(),
2555
+ threat: import_zod25.z.boolean().nullable().optional(),
2556
+ attack_type: import_zod25.z.string().optional(),
2557
+ multi_turn: import_zod25.z.boolean().optional(),
2558
+ asr: import_zod25.z.number().nullable().optional(),
2559
+ version: import_zod25.z.number().int().nullable().optional(),
2560
+ severity: import_zod25.z.string().optional(),
2561
+ outputs: import_zod25.z.array(AttackMultiTurnOutputSchema).optional()
2562
+ }).passthrough();
2563
+ var SubCategoryStatsSchema = import_zod25.z.object({
2564
+ id: import_zod25.z.string(),
2565
+ display_name: import_zod25.z.string(),
2566
+ description: import_zod25.z.string(),
2567
+ preselect: import_zod25.z.boolean().optional(),
2568
+ prerequisites: import_zod25.z.array(PrerequisiteModelSchema).nullable().optional(),
2569
+ active: import_zod25.z.boolean().optional(),
2570
+ successful: import_zod25.z.number().int(),
2571
+ failed: import_zod25.z.number().int(),
2572
+ total: import_zod25.z.number().int().optional()
2573
+ }).passthrough();
2574
+ var CategoryReportSchema = import_zod25.z.object({
2575
+ id: import_zod25.z.string(),
2576
+ display_name: import_zod25.z.string(),
2577
+ description: import_zod25.z.string(),
2578
+ preselect: import_zod25.z.boolean().optional(),
2579
+ sub_categories: import_zod25.z.array(SubCategoryStatsSchema),
2580
+ asr: import_zod25.z.number(),
2581
+ total_prompts: import_zod25.z.number().int(),
2582
+ total_attacks: import_zod25.z.number().int(),
2583
+ successful: import_zod25.z.number().int(),
2584
+ failed: import_zod25.z.number().int()
2585
+ }).passthrough();
2586
+ var SeverityStatsSchema = import_zod25.z.object({
2587
+ severity: import_zod25.z.string(),
2588
+ successful: import_zod25.z.number().int().optional(),
2589
+ failed: import_zod25.z.number().int().optional()
2590
+ }).passthrough();
2591
+ var SeverityReportSchema = import_zod25.z.object({
2592
+ stats: import_zod25.z.array(SeverityStatsSchema),
2593
+ successful: import_zod25.z.number().int().optional(),
2594
+ failed: import_zod25.z.number().int().optional(),
2595
+ total_attacks: import_zod25.z.number().int().optional()
2596
+ }).passthrough();
2597
+ var ComplianceTechniqueSchema = import_zod25.z.object({
2598
+ id: import_zod25.z.string(),
2599
+ display_name: import_zod25.z.string(),
2600
+ compliance_id: import_zod25.z.string(),
2601
+ description: import_zod25.z.string(),
2602
+ link: import_zod25.z.string(),
2603
+ version: import_zod25.z.string(),
2604
+ active: import_zod25.z.boolean(),
2605
+ successful: import_zod25.z.number().int().optional(),
2606
+ failed: import_zod25.z.number().int().optional(),
2607
+ total: import_zod25.z.number().int().optional()
2608
+ }).passthrough();
2609
+ var ComplianceReportSchema = import_zod25.z.object({
2610
+ id: import_zod25.z.string(),
2611
+ display_name: import_zod25.z.string(),
2612
+ description: import_zod25.z.string(),
2613
+ active: import_zod25.z.boolean(),
2614
+ version: import_zod25.z.string(),
2615
+ link: import_zod25.z.string(),
2616
+ techniques: import_zod25.z.array(ComplianceTechniqueSchema),
2617
+ score: import_zod25.z.number().int().optional()
2618
+ }).passthrough();
2619
+ var RuntimeSecurityPolicySchema = import_zod25.z.object({
2620
+ policy_id: import_zod25.z.string(),
2621
+ display_name: import_zod25.z.string(),
2622
+ config: import_zod25.z.record(import_zod25.z.unknown())
2623
+ }).passthrough();
2624
+ var StaticJobRemediationSchema = import_zod25.z.object({
2625
+ remediation: import_zod25.z.string(),
2626
+ description: import_zod25.z.string(),
2627
+ mapping_remediation_id: import_zod25.z.string().nullable().optional(),
2628
+ subcategories: import_zod25.z.array(import_zod25.z.string()).nullable().optional(),
2629
+ effectiveness: import_zod25.z.number().int().optional(),
2630
+ ease_of_implementation: import_zod25.z.number().int().optional(),
2631
+ priority: import_zod25.z.number().int().optional(),
2632
+ resource_links: import_zod25.z.array(import_zod25.z.string()).optional(),
2633
+ categories: import_zod25.z.array(import_zod25.z.string()).nullable().optional()
2634
+ }).passthrough();
2635
+ var StaticJobRemediationRecommendationSchema = import_zod25.z.object({
2636
+ runtime_security_policy_configuration: import_zod25.z.array(RuntimeSecurityPolicySchema).nullable().optional(),
2637
+ other_measures: import_zod25.z.array(StaticJobRemediationSchema).optional()
2638
+ }).passthrough();
2639
+ var StaticJobReportSchema = import_zod25.z.object({
2242
2640
  severity_report: SeverityReportSchema,
2243
- asr: import_zod18.z.number().nullable().optional(),
2244
- score: import_zod18.z.number().nullable().optional(),
2641
+ asr: import_zod25.z.number().nullable().optional(),
2642
+ score: import_zod25.z.number().nullable().optional(),
2245
2643
  security_report: CategoryReportSchema.nullable().optional(),
2246
2644
  safety_report: CategoryReportSchema.nullable().optional(),
2247
2645
  brand_report: CategoryReportSchema.nullable().optional(),
2248
- compliance_report: import_zod18.z.array(ComplianceReportSchema).nullable().optional(),
2249
- report_summary: import_zod18.z.string().nullable().optional(),
2646
+ compliance_report: import_zod25.z.array(ComplianceReportSchema).nullable().optional(),
2647
+ report_summary: import_zod25.z.string().nullable().optional(),
2250
2648
  recommendations: StaticJobRemediationRecommendationSchema.nullable().optional()
2251
2649
  }).passthrough();
2252
- var DynamicJobReportSchema = import_zod18.z.object({
2253
- total_goals: import_zod18.z.number().int().optional(),
2254
- total_streams: import_zod18.z.number().int().optional(),
2255
- total_threats: import_zod18.z.number().int().optional(),
2256
- goals_achieved: import_zod18.z.number().int().optional(),
2257
- report_summary: import_zod18.z.string().nullable().optional(),
2258
- score: import_zod18.z.number().optional(),
2259
- asr: import_zod18.z.number().optional()
2260
- }).passthrough();
2261
- var RemediationDetailSchema = import_zod18.z.object({
2262
- remediation: import_zod18.z.string(),
2263
- description: import_zod18.z.string(),
2264
- resource_links: import_zod18.z.array(import_zod18.z.string()).optional(),
2265
- priority_level: import_zod18.z.string().optional(),
2266
- ease_of_implementation_level: import_zod18.z.string().optional(),
2267
- effectiveness_level: import_zod18.z.string().optional()
2268
- }).passthrough();
2269
- var RemediationResponseSchema = import_zod18.z.object({ remediations: import_zod18.z.array(RemediationDetailSchema).optional() }).passthrough();
2270
- var RuntimeSecurityProfileResponseSchema = import_zod18.z.object({
2271
- runtime_security_profile: import_zod18.z.array(RuntimeSecurityPolicySchema).nullable().optional()
2272
- }).passthrough();
2273
- var GoalSchema = import_zod18.z.object({
2274
- goal: import_zod18.z.string(),
2275
- safe_response: import_zod18.z.string(),
2276
- jailbroken_response: import_zod18.z.string(),
2277
- goal_metadata: import_zod18.z.record(import_zod18.z.unknown()).optional(),
2278
- custom_goal: import_zod18.z.boolean().optional(),
2279
- goal_type: import_zod18.z.string().optional(),
2280
- uuid: import_zod18.z.string(),
2281
- tsg_id: import_zod18.z.string(),
2282
- job_id: import_zod18.z.string(),
2283
- goal_to_show: import_zod18.z.string().nullable().optional(),
2284
- threat: import_zod18.z.boolean().optional(),
2285
- version: import_zod18.z.number().int().nullable().optional(),
2286
- extra_info: import_zod18.z.record(import_zod18.z.unknown()).nullable().optional()
2287
- }).passthrough();
2288
- var GoalListResponseSchema = import_zod18.z.object({ pagination: RedTeamPaginationSchema, data: import_zod18.z.array(GoalSchema) }).passthrough();
2289
- var StreamIterationDataSchema = import_zod18.z.object({
2290
- uuid: import_zod18.z.string(),
2291
- tsg_id: import_zod18.z.string(),
2292
- job_id: import_zod18.z.string(),
2293
- stream_id: import_zod18.z.string(),
2294
- goal_id: import_zod18.z.string(),
2295
- iteration: import_zod18.z.number().int(),
2296
- prompt: import_zod18.z.string(),
2297
- techniques: import_zod18.z.string(),
2298
- improvement: import_zod18.z.string(),
2299
- prompts_objective: import_zod18.z.string(),
2300
- summary: import_zod18.z.string(),
2301
- output: import_zod18.z.string().nullable().optional(),
2302
- score: import_zod18.z.number().int().nullable().optional(),
2303
- judge_reasoning: import_zod18.z.string().nullable().optional(),
2304
- threat: import_zod18.z.boolean().optional(),
2305
- created_at: import_zod18.z.string().nullable().optional(),
2306
- updated_at: import_zod18.z.string().nullable().optional(),
2307
- extra_info: import_zod18.z.record(import_zod18.z.unknown()).nullable().optional(),
2308
- version: import_zod18.z.number().int().nullable().optional()
2309
- }).passthrough();
2310
- var StreamDetailResponseSchema = import_zod18.z.object({
2311
- uuid: import_zod18.z.string(),
2312
- tsg_id: import_zod18.z.string(),
2313
- job_id: import_zod18.z.string(),
2314
- target_id: import_zod18.z.string(),
2315
- goal_id: import_zod18.z.string(),
2316
- stream_idx: import_zod18.z.number().int().optional(),
2317
- iteration: import_zod18.z.number().int().optional(),
2318
- goal: import_zod18.z.unknown().optional(),
2319
- marked_safe: import_zod18.z.boolean().optional(),
2320
- stream_type: import_zod18.z.string().nullable().optional(),
2321
- threat: import_zod18.z.boolean().optional(),
2650
+ var DynamicJobReportSchema = import_zod25.z.object({
2651
+ total_goals: import_zod25.z.number().int().optional(),
2652
+ total_streams: import_zod25.z.number().int().optional(),
2653
+ total_threats: import_zod25.z.number().int().optional(),
2654
+ goals_achieved: import_zod25.z.number().int().optional(),
2655
+ report_summary: import_zod25.z.string().nullable().optional(),
2656
+ score: import_zod25.z.number().optional(),
2657
+ asr: import_zod25.z.number().optional()
2658
+ }).passthrough();
2659
+ var RemediationDetailSchema = import_zod25.z.object({
2660
+ remediation: import_zod25.z.string(),
2661
+ description: import_zod25.z.string(),
2662
+ resource_links: import_zod25.z.array(import_zod25.z.string()).optional(),
2663
+ priority_level: import_zod25.z.string().optional(),
2664
+ ease_of_implementation_level: import_zod25.z.string().optional(),
2665
+ effectiveness_level: import_zod25.z.string().optional()
2666
+ }).passthrough();
2667
+ var RemediationResponseSchema = import_zod25.z.object({ remediations: import_zod25.z.array(RemediationDetailSchema).optional() }).passthrough();
2668
+ var RuntimeSecurityProfileResponseSchema = import_zod25.z.object({
2669
+ runtime_security_profile: import_zod25.z.array(RuntimeSecurityPolicySchema).nullable().optional()
2670
+ }).passthrough();
2671
+ var GoalSchema = import_zod25.z.object({
2672
+ goal: import_zod25.z.string(),
2673
+ safe_response: import_zod25.z.string(),
2674
+ jailbroken_response: import_zod25.z.string(),
2675
+ goal_metadata: import_zod25.z.record(import_zod25.z.unknown()).optional(),
2676
+ custom_goal: import_zod25.z.boolean().optional(),
2677
+ goal_type: import_zod25.z.string().optional(),
2678
+ uuid: import_zod25.z.string(),
2679
+ tsg_id: import_zod25.z.string(),
2680
+ job_id: import_zod25.z.string(),
2681
+ goal_to_show: import_zod25.z.string().nullable().optional(),
2682
+ threat: import_zod25.z.boolean().optional(),
2683
+ version: import_zod25.z.number().int().nullable().optional(),
2684
+ extra_info: import_zod25.z.record(import_zod25.z.unknown()).nullable().optional()
2685
+ }).passthrough();
2686
+ var GoalListResponseSchema = import_zod25.z.object({ pagination: RedTeamPaginationSchema, data: import_zod25.z.array(GoalSchema) }).passthrough();
2687
+ var StreamIterationDataSchema = import_zod25.z.object({
2688
+ uuid: import_zod25.z.string(),
2689
+ tsg_id: import_zod25.z.string(),
2690
+ job_id: import_zod25.z.string(),
2691
+ stream_id: import_zod25.z.string(),
2692
+ goal_id: import_zod25.z.string(),
2693
+ iteration: import_zod25.z.number().int(),
2694
+ prompt: import_zod25.z.string(),
2695
+ techniques: import_zod25.z.string(),
2696
+ improvement: import_zod25.z.string(),
2697
+ prompts_objective: import_zod25.z.string(),
2698
+ summary: import_zod25.z.string(),
2699
+ output: import_zod25.z.string().nullable().optional(),
2700
+ score: import_zod25.z.number().int().nullable().optional(),
2701
+ judge_reasoning: import_zod25.z.string().nullable().optional(),
2702
+ threat: import_zod25.z.boolean().optional(),
2703
+ created_at: import_zod25.z.string().nullable().optional(),
2704
+ updated_at: import_zod25.z.string().nullable().optional(),
2705
+ extra_info: import_zod25.z.record(import_zod25.z.unknown()).nullable().optional(),
2706
+ version: import_zod25.z.number().int().nullable().optional()
2707
+ }).passthrough();
2708
+ var StreamDetailResponseSchema = import_zod25.z.object({
2709
+ uuid: import_zod25.z.string(),
2710
+ tsg_id: import_zod25.z.string(),
2711
+ job_id: import_zod25.z.string(),
2712
+ target_id: import_zod25.z.string(),
2713
+ goal_id: import_zod25.z.string(),
2714
+ stream_idx: import_zod25.z.number().int().optional(),
2715
+ iteration: import_zod25.z.number().int().optional(),
2716
+ goal: import_zod25.z.unknown().optional(),
2717
+ marked_safe: import_zod25.z.boolean().optional(),
2718
+ stream_type: import_zod25.z.string().nullable().optional(),
2719
+ threat: import_zod25.z.boolean().optional(),
2322
2720
  first_threat_iteration: StreamIterationDataSchema.nullable().optional(),
2323
- created_at: import_zod18.z.string().nullable().optional(),
2324
- updated_at: import_zod18.z.string().nullable().optional(),
2325
- extra_info: import_zod18.z.record(import_zod18.z.unknown()).optional(),
2326
- version: import_zod18.z.number().int().nullable().optional(),
2327
- iterations: import_zod18.z.array(StreamIterationDataSchema).optional()
2328
- }).passthrough();
2329
- var StreamListResponseSchema = import_zod18.z.object({ pagination: RedTeamPaginationSchema, data: import_zod18.z.array(StreamDetailResponseSchema) }).passthrough();
2330
- var CustomAttackOutputSchema = import_zod18.z.object({
2331
- uuid: import_zod18.z.string(),
2332
- tsg_id: import_zod18.z.string(),
2333
- custom_attack_id: import_zod18.z.string(),
2334
- job_id: import_zod18.z.string(),
2335
- target_id: import_zod18.z.string(),
2336
- output: import_zod18.z.string(),
2337
- threat: import_zod18.z.boolean().nullable().optional(),
2338
- marked_safe: import_zod18.z.boolean().nullable().optional()
2339
- }).passthrough();
2340
- var PropertyAssignmentSchema = import_zod18.z.object({
2341
- name: import_zod18.z.string(),
2342
- value: import_zod18.z.string()
2721
+ created_at: import_zod25.z.string().nullable().optional(),
2722
+ updated_at: import_zod25.z.string().nullable().optional(),
2723
+ extra_info: import_zod25.z.record(import_zod25.z.unknown()).optional(),
2724
+ version: import_zod25.z.number().int().nullable().optional(),
2725
+ iterations: import_zod25.z.array(StreamIterationDataSchema).optional()
2726
+ }).passthrough();
2727
+ var StreamListResponseSchema = import_zod25.z.object({ pagination: RedTeamPaginationSchema, data: import_zod25.z.array(StreamDetailResponseSchema) }).passthrough();
2728
+ var CustomAttackOutputSchema = import_zod25.z.object({
2729
+ uuid: import_zod25.z.string(),
2730
+ tsg_id: import_zod25.z.string(),
2731
+ custom_attack_id: import_zod25.z.string(),
2732
+ job_id: import_zod25.z.string(),
2733
+ target_id: import_zod25.z.string(),
2734
+ output: import_zod25.z.string(),
2735
+ threat: import_zod25.z.boolean().nullable().optional(),
2736
+ marked_safe: import_zod25.z.boolean().nullable().optional()
2737
+ }).passthrough();
2738
+ var PropertyAssignmentSchema = import_zod25.z.object({
2739
+ name: import_zod25.z.string(),
2740
+ value: import_zod25.z.string()
2343
2741
  });
2344
- var PropertyValueStatisticSchema = import_zod18.z.object({
2345
- value: import_zod18.z.string(),
2346
- successful_attack_count: import_zod18.z.number().int(),
2347
- total_attack_count: import_zod18.z.number().int(),
2348
- success_rate: import_zod18.z.number()
2742
+ var PropertyValueStatisticSchema = import_zod25.z.object({
2743
+ value: import_zod25.z.string(),
2744
+ successful_attack_count: import_zod25.z.number().int(),
2745
+ total_attack_count: import_zod25.z.number().int(),
2746
+ success_rate: import_zod25.z.number()
2349
2747
  });
2350
- var PropertyStatisticSchema = import_zod18.z.object({
2351
- property_name: import_zod18.z.string(),
2352
- values: import_zod18.z.array(PropertyValueStatisticSchema)
2748
+ var PropertyStatisticSchema = import_zod25.z.object({
2749
+ property_name: import_zod25.z.string(),
2750
+ values: import_zod25.z.array(PropertyValueStatisticSchema)
2353
2751
  });
2354
- var PromptSetSummarySchema = import_zod18.z.object({
2355
- prompt_set_id: import_zod18.z.string(),
2356
- prompt_set_name: import_zod18.z.string(),
2357
- total_prompts: import_zod18.z.number().int(),
2358
- total_attacks: import_zod18.z.number().int(),
2359
- total_threats: import_zod18.z.number().int(),
2360
- failed_attacks: import_zod18.z.number().int(),
2361
- threat_rate: import_zod18.z.number(),
2362
- property_names: import_zod18.z.array(import_zod18.z.string()).optional(),
2363
- property_statistics: import_zod18.z.array(PropertyStatisticSchema).optional()
2364
- }).passthrough();
2365
- var CustomAttackReportResponseSchema = import_zod18.z.object({
2366
- total_prompts: import_zod18.z.number().int(),
2367
- total_attacks: import_zod18.z.number().int(),
2368
- total_threats: import_zod18.z.number().int(),
2369
- failed_attacks: import_zod18.z.number().int(),
2370
- score: import_zod18.z.number(),
2371
- asr: import_zod18.z.number(),
2372
- custom_attack_reports: import_zod18.z.array(PromptSetSummarySchema).optional(),
2373
- property_statistics: import_zod18.z.array(PropertyStatisticSchema).optional()
2374
- }).passthrough();
2375
- var PromptSetsReportResponseSchema = import_zod18.z.object({
2376
- prompt_sets: import_zod18.z.array(PromptSetSummarySchema),
2377
- total_prompt_sets: import_zod18.z.number().int(),
2378
- applied_filters: import_zod18.z.record(import_zod18.z.unknown()).optional()
2379
- }).passthrough();
2380
- var PromptDetailResponseSchema = import_zod18.z.object({
2381
- prompt_id: import_zod18.z.string(),
2382
- prompt_text: import_zod18.z.string(),
2383
- goal: import_zod18.z.string().nullable().optional(),
2384
- user_defined_goal: import_zod18.z.boolean().optional(),
2385
- properties: import_zod18.z.array(PropertyAssignmentSchema).optional(),
2386
- attack_id: import_zod18.z.string().nullable().optional(),
2387
- threat: import_zod18.z.boolean().nullable().optional(),
2388
- attack_outputs: import_zod18.z.array(CustomAttackOutputSchema).optional(),
2389
- asr: import_zod18.z.number().nullable().optional(),
2390
- prompt_set_id: import_zod18.z.string().nullable().optional(),
2391
- prompt_set_name: import_zod18.z.string().nullable().optional()
2392
- }).passthrough();
2393
- var CustomAttacksListResponseSchema = import_zod18.z.object({
2752
+ var PromptSetSummarySchema = import_zod25.z.object({
2753
+ prompt_set_id: import_zod25.z.string(),
2754
+ prompt_set_name: import_zod25.z.string(),
2755
+ total_prompts: import_zod25.z.number().int(),
2756
+ total_attacks: import_zod25.z.number().int(),
2757
+ total_threats: import_zod25.z.number().int(),
2758
+ failed_attacks: import_zod25.z.number().int(),
2759
+ threat_rate: import_zod25.z.number(),
2760
+ property_names: import_zod25.z.array(import_zod25.z.string()).optional(),
2761
+ property_statistics: import_zod25.z.array(PropertyStatisticSchema).optional()
2762
+ }).passthrough();
2763
+ var CustomAttackReportResponseSchema = import_zod25.z.object({
2764
+ total_prompts: import_zod25.z.number().int(),
2765
+ total_attacks: import_zod25.z.number().int(),
2766
+ total_threats: import_zod25.z.number().int(),
2767
+ failed_attacks: import_zod25.z.number().int(),
2768
+ score: import_zod25.z.number(),
2769
+ asr: import_zod25.z.number(),
2770
+ custom_attack_reports: import_zod25.z.array(PromptSetSummarySchema).optional(),
2771
+ property_statistics: import_zod25.z.array(PropertyStatisticSchema).optional()
2772
+ }).passthrough();
2773
+ var PromptSetsReportResponseSchema = import_zod25.z.object({
2774
+ prompt_sets: import_zod25.z.array(PromptSetSummarySchema),
2775
+ total_prompt_sets: import_zod25.z.number().int(),
2776
+ applied_filters: import_zod25.z.record(import_zod25.z.unknown()).optional()
2777
+ }).passthrough();
2778
+ var PromptDetailResponseSchema = import_zod25.z.object({
2779
+ prompt_id: import_zod25.z.string(),
2780
+ prompt_text: import_zod25.z.string(),
2781
+ goal: import_zod25.z.string().nullable().optional(),
2782
+ user_defined_goal: import_zod25.z.boolean().optional(),
2783
+ properties: import_zod25.z.array(PropertyAssignmentSchema).optional(),
2784
+ attack_id: import_zod25.z.string().nullable().optional(),
2785
+ threat: import_zod25.z.boolean().nullable().optional(),
2786
+ attack_outputs: import_zod25.z.array(CustomAttackOutputSchema).optional(),
2787
+ asr: import_zod25.z.number().nullable().optional(),
2788
+ prompt_set_id: import_zod25.z.string().nullable().optional(),
2789
+ prompt_set_name: import_zod25.z.string().nullable().optional()
2790
+ }).passthrough();
2791
+ var CustomAttacksListResponseSchema = import_zod25.z.object({
2394
2792
  pagination: RedTeamPaginationSchema,
2395
- data: import_zod18.z.array(import_zod18.z.unknown()),
2396
- total_attacks: import_zod18.z.number().int(),
2397
- total_threats: import_zod18.z.number().int()
2398
- }).passthrough();
2399
- var RiskLevelSchema = import_zod18.z.object({
2400
- risk_rating: import_zod18.z.string(),
2401
- total: import_zod18.z.number().int(),
2402
- targets_by_type: import_zod18.z.array(CountByNameSchema).optional()
2403
- }).passthrough();
2404
- var ScanStatisticsResponseSchema = import_zod18.z.object({
2405
- total_scans: import_zod18.z.number().int(),
2406
- targets_scanned: import_zod18.z.number().int(),
2407
- targets_scanned_by_type: import_zod18.z.array(CountByNameSchema).optional(),
2408
- scan_status: import_zod18.z.array(CountByNameSchema).optional(),
2409
- risk_profile: import_zod18.z.array(RiskLevelSchema).optional()
2410
- }).passthrough();
2411
- var ScoreTrendSeriesSchema = import_zod18.z.object({
2412
- label: import_zod18.z.string(),
2413
- data: import_zod18.z.array(import_zod18.z.number().nullable())
2793
+ data: import_zod25.z.array(import_zod25.z.unknown()),
2794
+ total_attacks: import_zod25.z.number().int(),
2795
+ total_threats: import_zod25.z.number().int()
2796
+ }).passthrough();
2797
+ var RiskLevelSchema = import_zod25.z.object({
2798
+ risk_rating: import_zod25.z.string(),
2799
+ total: import_zod25.z.number().int(),
2800
+ targets_by_type: import_zod25.z.array(CountByNameSchema).optional()
2801
+ }).passthrough();
2802
+ var ScanStatisticsResponseSchema = import_zod25.z.object({
2803
+ total_scans: import_zod25.z.number().int(),
2804
+ targets_scanned: import_zod25.z.number().int(),
2805
+ targets_scanned_by_type: import_zod25.z.array(CountByNameSchema).optional(),
2806
+ scan_status: import_zod25.z.array(CountByNameSchema).optional(),
2807
+ risk_profile: import_zod25.z.array(RiskLevelSchema).optional()
2808
+ }).passthrough();
2809
+ var ScoreTrendSeriesSchema = import_zod25.z.object({
2810
+ label: import_zod25.z.string(),
2811
+ data: import_zod25.z.array(import_zod25.z.number().nullable())
2414
2812
  });
2415
- var ScoreTrendResponseSchema = import_zod18.z.object({
2416
- labels: import_zod18.z.array(import_zod18.z.string()),
2417
- series: import_zod18.z.array(ScoreTrendSeriesSchema)
2813
+ var ScoreTrendResponseSchema = import_zod25.z.object({
2814
+ labels: import_zod25.z.array(import_zod25.z.string()),
2815
+ series: import_zod25.z.array(ScoreTrendSeriesSchema)
2418
2816
  });
2419
- var SentimentRequestSchema = import_zod18.z.object({
2420
- job_id: import_zod18.z.string(),
2421
- up_vote: import_zod18.z.boolean().optional(),
2422
- down_vote: import_zod18.z.boolean().optional()
2817
+ var SentimentRequestSchema = import_zod25.z.object({
2818
+ job_id: import_zod25.z.string(),
2819
+ up_vote: import_zod25.z.boolean().optional(),
2820
+ down_vote: import_zod25.z.boolean().optional()
2423
2821
  });
2424
- var SentimentResponseSchema = import_zod18.z.object({
2425
- job_id: import_zod18.z.string(),
2426
- up_vote: import_zod18.z.boolean().optional(),
2427
- down_vote: import_zod18.z.boolean().optional()
2428
- }).passthrough();
2429
- var QuotaDetailsSchema = import_zod18.z.object({
2430
- allocated: import_zod18.z.number().int(),
2431
- unlimited: import_zod18.z.boolean(),
2432
- consumed: import_zod18.z.number().int()
2822
+ var SentimentResponseSchema = import_zod25.z.object({
2823
+ job_id: import_zod25.z.string(),
2824
+ up_vote: import_zod25.z.boolean().optional(),
2825
+ down_vote: import_zod25.z.boolean().optional()
2826
+ }).passthrough();
2827
+ var QuotaDetailsSchema = import_zod25.z.object({
2828
+ allocated: import_zod25.z.number().int(),
2829
+ unlimited: import_zod25.z.boolean(),
2830
+ consumed: import_zod25.z.number().int()
2433
2831
  });
2434
- var QuotaSummarySchema = import_zod18.z.object({
2832
+ var QuotaSummarySchema = import_zod25.z.object({
2435
2833
  static: QuotaDetailsSchema,
2436
2834
  dynamic: QuotaDetailsSchema,
2437
2835
  custom: QuotaDetailsSchema
2438
2836
  });
2439
- var ErrorLogSchema = import_zod18.z.object({
2440
- created_at: import_zod18.z.string(),
2441
- updated_at: import_zod18.z.string(),
2442
- job_id: import_zod18.z.string().nullable().optional(),
2443
- target_id: import_zod18.z.string().nullable().optional(),
2444
- target_version: import_zod18.z.number().int().nullable().optional(),
2445
- attack_id: import_zod18.z.string().nullable().optional(),
2446
- error_type: import_zod18.z.string().nullable().optional(),
2447
- error_source: import_zod18.z.string().nullable().optional(),
2448
- error_message: import_zod18.z.string().nullable().optional(),
2449
- target_object: import_zod18.z.record(import_zod18.z.unknown()).nullable().optional(),
2450
- extra_info: import_zod18.z.record(import_zod18.z.unknown()).nullable().optional(),
2451
- version: import_zod18.z.number().int().optional()
2452
- }).passthrough();
2453
- var ErrorLogListResponseSchema = import_zod18.z.object({ pagination: RedTeamPaginationSchema, data: import_zod18.z.array(ErrorLogSchema) }).passthrough();
2454
- var TargetCreateRequestSchema = import_zod18.z.object({
2455
- name: import_zod18.z.string(),
2456
- description: import_zod18.z.unknown().optional(),
2457
- target_type: import_zod18.z.unknown().optional(),
2458
- connection_type: import_zod18.z.unknown().optional(),
2459
- api_endpoint_type: import_zod18.z.unknown().optional(),
2460
- response_mode: import_zod18.z.unknown().optional(),
2461
- connection_params: import_zod18.z.unknown().optional(),
2462
- session_supported: import_zod18.z.boolean().optional(),
2463
- target_metadata: import_zod18.z.unknown().optional(),
2464
- target_background: import_zod18.z.unknown().optional(),
2465
- additional_context: import_zod18.z.unknown().optional(),
2466
- extra_info: import_zod18.z.unknown().optional(),
2467
- network_broker_channel_uuid: import_zod18.z.unknown().optional()
2468
- }).passthrough();
2469
- var TargetUpdateRequestSchema = import_zod18.z.object({
2470
- name: import_zod18.z.string(),
2471
- description: import_zod18.z.unknown().optional(),
2472
- target_type: import_zod18.z.unknown().optional(),
2473
- connection_type: import_zod18.z.unknown().optional(),
2474
- api_endpoint_type: import_zod18.z.unknown().optional(),
2475
- response_mode: import_zod18.z.unknown().optional(),
2476
- connection_params: import_zod18.z.unknown().optional(),
2477
- session_supported: import_zod18.z.boolean().optional(),
2478
- target_metadata: import_zod18.z.unknown().optional(),
2479
- target_background: import_zod18.z.unknown().optional(),
2480
- additional_context: import_zod18.z.unknown().optional(),
2481
- extra_info: import_zod18.z.unknown().optional(),
2482
- network_broker_channel_uuid: import_zod18.z.unknown().optional()
2483
- }).passthrough();
2484
- var TargetContextUpdateSchema = import_zod18.z.object({
2485
- target_background: import_zod18.z.unknown().optional(),
2486
- additional_context: import_zod18.z.unknown().optional()
2487
- }).passthrough();
2488
- var TargetResponseSchema = import_zod18.z.object({
2489
- uuid: import_zod18.z.string(),
2490
- tsg_id: import_zod18.z.string(),
2491
- name: import_zod18.z.string(),
2492
- status: import_zod18.z.unknown(),
2493
- active: import_zod18.z.boolean(),
2494
- validated: import_zod18.z.boolean(),
2495
- created_at: import_zod18.z.string(),
2496
- updated_at: import_zod18.z.string(),
2497
- description: import_zod18.z.unknown().optional(),
2498
- target_type: import_zod18.z.unknown().optional(),
2499
- connection_type: import_zod18.z.unknown().optional(),
2500
- api_endpoint_type: import_zod18.z.unknown().optional(),
2501
- response_mode: import_zod18.z.unknown().optional(),
2502
- session_supported: import_zod18.z.boolean().optional(),
2503
- extra_info: import_zod18.z.unknown().optional(),
2504
- version: import_zod18.z.unknown().optional(),
2505
- secret_version: import_zod18.z.unknown().optional(),
2506
- created_by_user_id: import_zod18.z.unknown().optional(),
2507
- updated_by_user_id: import_zod18.z.unknown().optional(),
2508
- target_metadata: import_zod18.z.unknown().optional(),
2509
- target_background: import_zod18.z.unknown().optional(),
2510
- profiling_status: import_zod18.z.unknown().optional(),
2511
- additional_context: import_zod18.z.unknown().optional()
2512
- }).passthrough();
2513
- var TargetListItemSchema = import_zod18.z.object({
2514
- uuid: import_zod18.z.string(),
2515
- tsg_id: import_zod18.z.string(),
2516
- name: import_zod18.z.string(),
2517
- status: import_zod18.z.unknown(),
2518
- active: import_zod18.z.boolean(),
2519
- validated: import_zod18.z.boolean(),
2520
- created_at: import_zod18.z.string(),
2521
- updated_at: import_zod18.z.string(),
2522
- description: import_zod18.z.unknown().optional(),
2523
- target_type: import_zod18.z.unknown().optional(),
2524
- connection_type: import_zod18.z.unknown().optional(),
2525
- api_endpoint_type: import_zod18.z.unknown().optional(),
2526
- response_mode: import_zod18.z.unknown().optional(),
2527
- session_supported: import_zod18.z.boolean().optional(),
2528
- extra_info: import_zod18.z.unknown().optional(),
2529
- version: import_zod18.z.unknown().optional(),
2530
- secret_version: import_zod18.z.unknown().optional(),
2531
- created_by_user_id: import_zod18.z.unknown().optional(),
2532
- updated_by_user_id: import_zod18.z.unknown().optional()
2533
- }).passthrough();
2534
- var TargetListSchema = import_zod18.z.object({ pagination: RedTeamPaginationSchema, data: import_zod18.z.array(TargetListItemSchema).optional() }).passthrough();
2535
- var TargetProbeRequestSchema = import_zod18.z.object({
2536
- name: import_zod18.z.string(),
2537
- uuid: import_zod18.z.unknown().optional(),
2538
- description: import_zod18.z.unknown().optional(),
2539
- target_type: import_zod18.z.unknown().optional(),
2540
- connection_type: import_zod18.z.unknown().optional(),
2541
- api_endpoint_type: import_zod18.z.unknown().optional(),
2542
- response_mode: import_zod18.z.unknown().optional(),
2543
- connection_params: import_zod18.z.unknown().optional(),
2544
- session_supported: import_zod18.z.boolean().optional(),
2545
- target_metadata: import_zod18.z.unknown().optional(),
2546
- target_background: import_zod18.z.unknown().optional(),
2547
- additional_context: import_zod18.z.unknown().optional(),
2548
- extra_info: import_zod18.z.unknown().optional(),
2549
- network_broker_channel_uuid: import_zod18.z.unknown().optional(),
2550
- probe_fields: import_zod18.z.unknown().optional()
2551
- }).passthrough();
2552
- var TargetProfileResponseSchema = import_zod18.z.object({
2553
- target_id: import_zod18.z.string(),
2554
- target_version: import_zod18.z.number().int(),
2555
- status: import_zod18.z.string(),
2556
- profiling_status: import_zod18.z.unknown().optional(),
2557
- target_background: import_zod18.z.unknown().optional(),
2558
- additional_context: import_zod18.z.unknown().optional(),
2559
- ai_generated_fields: import_zod18.z.unknown().optional(),
2560
- other_details: import_zod18.z.unknown().optional()
2561
- }).passthrough();
2562
- var BaseResponseSchema = import_zod18.z.object({
2563
- message: import_zod18.z.string(),
2564
- status: import_zod18.z.number().int()
2837
+ var ErrorLogSchema = import_zod25.z.object({
2838
+ created_at: import_zod25.z.string(),
2839
+ updated_at: import_zod25.z.string(),
2840
+ job_id: import_zod25.z.string().nullable().optional(),
2841
+ target_id: import_zod25.z.string().nullable().optional(),
2842
+ target_version: import_zod25.z.number().int().nullable().optional(),
2843
+ attack_id: import_zod25.z.string().nullable().optional(),
2844
+ error_type: import_zod25.z.string().nullable().optional(),
2845
+ error_source: import_zod25.z.string().nullable().optional(),
2846
+ error_message: import_zod25.z.string().nullable().optional(),
2847
+ target_object: import_zod25.z.record(import_zod25.z.unknown()).nullable().optional(),
2848
+ extra_info: import_zod25.z.record(import_zod25.z.unknown()).nullable().optional(),
2849
+ version: import_zod25.z.number().int().optional()
2850
+ }).passthrough();
2851
+ var ErrorLogListResponseSchema = import_zod25.z.object({ pagination: RedTeamPaginationSchema, data: import_zod25.z.array(ErrorLogSchema) }).passthrough();
2852
+ var TargetCreateRequestSchema = import_zod25.z.object({
2853
+ name: import_zod25.z.string(),
2854
+ description: import_zod25.z.unknown().optional(),
2855
+ target_type: import_zod25.z.unknown().optional(),
2856
+ connection_type: import_zod25.z.unknown().optional(),
2857
+ api_endpoint_type: import_zod25.z.unknown().optional(),
2858
+ response_mode: import_zod25.z.unknown().optional(),
2859
+ connection_params: import_zod25.z.unknown().optional(),
2860
+ session_supported: import_zod25.z.boolean().optional(),
2861
+ target_metadata: import_zod25.z.unknown().optional(),
2862
+ target_background: import_zod25.z.unknown().optional(),
2863
+ additional_context: import_zod25.z.unknown().optional(),
2864
+ extra_info: import_zod25.z.unknown().optional(),
2865
+ network_broker_channel_uuid: import_zod25.z.unknown().optional()
2866
+ }).passthrough();
2867
+ var TargetUpdateRequestSchema = import_zod25.z.object({
2868
+ name: import_zod25.z.string(),
2869
+ description: import_zod25.z.unknown().optional(),
2870
+ target_type: import_zod25.z.unknown().optional(),
2871
+ connection_type: import_zod25.z.unknown().optional(),
2872
+ api_endpoint_type: import_zod25.z.unknown().optional(),
2873
+ response_mode: import_zod25.z.unknown().optional(),
2874
+ connection_params: import_zod25.z.unknown().optional(),
2875
+ session_supported: import_zod25.z.boolean().optional(),
2876
+ target_metadata: import_zod25.z.unknown().optional(),
2877
+ target_background: import_zod25.z.unknown().optional(),
2878
+ additional_context: import_zod25.z.unknown().optional(),
2879
+ extra_info: import_zod25.z.unknown().optional(),
2880
+ network_broker_channel_uuid: import_zod25.z.unknown().optional()
2881
+ }).passthrough();
2882
+ var TargetContextUpdateSchema = import_zod25.z.object({
2883
+ target_background: import_zod25.z.unknown().optional(),
2884
+ additional_context: import_zod25.z.unknown().optional()
2885
+ }).passthrough();
2886
+ var TargetResponseSchema = import_zod25.z.object({
2887
+ uuid: import_zod25.z.string(),
2888
+ tsg_id: import_zod25.z.string(),
2889
+ name: import_zod25.z.string(),
2890
+ status: import_zod25.z.unknown(),
2891
+ active: import_zod25.z.boolean(),
2892
+ validated: import_zod25.z.boolean(),
2893
+ created_at: import_zod25.z.string(),
2894
+ updated_at: import_zod25.z.string(),
2895
+ description: import_zod25.z.unknown().optional(),
2896
+ target_type: import_zod25.z.unknown().optional(),
2897
+ connection_type: import_zod25.z.unknown().optional(),
2898
+ api_endpoint_type: import_zod25.z.unknown().optional(),
2899
+ response_mode: import_zod25.z.unknown().optional(),
2900
+ session_supported: import_zod25.z.boolean().optional(),
2901
+ extra_info: import_zod25.z.unknown().optional(),
2902
+ version: import_zod25.z.unknown().optional(),
2903
+ secret_version: import_zod25.z.unknown().optional(),
2904
+ created_by_user_id: import_zod25.z.unknown().optional(),
2905
+ updated_by_user_id: import_zod25.z.unknown().optional(),
2906
+ target_metadata: import_zod25.z.unknown().optional(),
2907
+ target_background: import_zod25.z.unknown().optional(),
2908
+ profiling_status: import_zod25.z.unknown().optional(),
2909
+ additional_context: import_zod25.z.unknown().optional()
2910
+ }).passthrough();
2911
+ var TargetListItemSchema = import_zod25.z.object({
2912
+ uuid: import_zod25.z.string(),
2913
+ tsg_id: import_zod25.z.string(),
2914
+ name: import_zod25.z.string(),
2915
+ status: import_zod25.z.unknown(),
2916
+ active: import_zod25.z.boolean(),
2917
+ validated: import_zod25.z.boolean(),
2918
+ created_at: import_zod25.z.string(),
2919
+ updated_at: import_zod25.z.string(),
2920
+ description: import_zod25.z.unknown().optional(),
2921
+ target_type: import_zod25.z.unknown().optional(),
2922
+ connection_type: import_zod25.z.unknown().optional(),
2923
+ api_endpoint_type: import_zod25.z.unknown().optional(),
2924
+ response_mode: import_zod25.z.unknown().optional(),
2925
+ session_supported: import_zod25.z.boolean().optional(),
2926
+ extra_info: import_zod25.z.unknown().optional(),
2927
+ version: import_zod25.z.unknown().optional(),
2928
+ secret_version: import_zod25.z.unknown().optional(),
2929
+ created_by_user_id: import_zod25.z.unknown().optional(),
2930
+ updated_by_user_id: import_zod25.z.unknown().optional()
2931
+ }).passthrough();
2932
+ var TargetListSchema = import_zod25.z.object({ pagination: RedTeamPaginationSchema, data: import_zod25.z.array(TargetListItemSchema).optional() }).passthrough();
2933
+ var TargetProbeRequestSchema = import_zod25.z.object({
2934
+ name: import_zod25.z.string(),
2935
+ uuid: import_zod25.z.unknown().optional(),
2936
+ description: import_zod25.z.unknown().optional(),
2937
+ target_type: import_zod25.z.unknown().optional(),
2938
+ connection_type: import_zod25.z.unknown().optional(),
2939
+ api_endpoint_type: import_zod25.z.unknown().optional(),
2940
+ response_mode: import_zod25.z.unknown().optional(),
2941
+ connection_params: import_zod25.z.unknown().optional(),
2942
+ session_supported: import_zod25.z.boolean().optional(),
2943
+ target_metadata: import_zod25.z.unknown().optional(),
2944
+ target_background: import_zod25.z.unknown().optional(),
2945
+ additional_context: import_zod25.z.unknown().optional(),
2946
+ extra_info: import_zod25.z.unknown().optional(),
2947
+ network_broker_channel_uuid: import_zod25.z.unknown().optional(),
2948
+ probe_fields: import_zod25.z.unknown().optional()
2949
+ }).passthrough();
2950
+ var TargetProfileResponseSchema = import_zod25.z.object({
2951
+ target_id: import_zod25.z.string(),
2952
+ target_version: import_zod25.z.number().int(),
2953
+ status: import_zod25.z.string(),
2954
+ profiling_status: import_zod25.z.unknown().optional(),
2955
+ target_background: import_zod25.z.unknown().optional(),
2956
+ additional_context: import_zod25.z.unknown().optional(),
2957
+ ai_generated_fields: import_zod25.z.unknown().optional(),
2958
+ other_details: import_zod25.z.unknown().optional()
2959
+ }).passthrough();
2960
+ var BaseResponseSchema = import_zod25.z.object({
2961
+ message: import_zod25.z.string(),
2962
+ status: import_zod25.z.number().int()
2565
2963
  });
2566
- var PromptSetStatsSchema = import_zod18.z.object({
2567
- total_prompts: import_zod18.z.number().int(),
2568
- active_prompts: import_zod18.z.number().int(),
2569
- inactive_prompts: import_zod18.z.number().int(),
2570
- failed_prompts: import_zod18.z.number().int().optional(),
2571
- validation_prompts: import_zod18.z.number().int().optional()
2572
- }).passthrough();
2573
- var CustomPromptSetCreateRequestSchema = import_zod18.z.object({
2574
- name: import_zod18.z.string(),
2575
- description: import_zod18.z.unknown().optional(),
2576
- property_names: import_zod18.z.array(import_zod18.z.string()).optional()
2964
+ var PromptSetStatsSchema = import_zod25.z.object({
2965
+ total_prompts: import_zod25.z.number().int(),
2966
+ active_prompts: import_zod25.z.number().int(),
2967
+ inactive_prompts: import_zod25.z.number().int(),
2968
+ failed_prompts: import_zod25.z.number().int().optional(),
2969
+ validation_prompts: import_zod25.z.number().int().optional()
2970
+ }).passthrough();
2971
+ var CustomPromptSetCreateRequestSchema = import_zod25.z.object({
2972
+ name: import_zod25.z.string(),
2973
+ description: import_zod25.z.unknown().optional(),
2974
+ property_names: import_zod25.z.array(import_zod25.z.string()).optional()
2577
2975
  });
2578
- var CustomPromptSetUpdateRequestSchema = import_zod18.z.object({
2579
- name: import_zod18.z.unknown().optional(),
2580
- description: import_zod18.z.unknown().optional(),
2581
- archive: import_zod18.z.unknown().optional(),
2582
- property_names: import_zod18.z.unknown().optional()
2583
- }).passthrough();
2584
- var CustomPromptSetArchiveRequestSchema = import_zod18.z.object({ archive: import_zod18.z.boolean() });
2585
- var CustomPromptSetResponseSchema = import_zod18.z.object({
2586
- uuid: import_zod18.z.string(),
2587
- name: import_zod18.z.string(),
2588
- active: import_zod18.z.boolean(),
2589
- archive: import_zod18.z.boolean(),
2590
- status: import_zod18.z.string(),
2591
- created_at: import_zod18.z.string(),
2592
- updated_at: import_zod18.z.string(),
2593
- description: import_zod18.z.unknown().optional(),
2594
- property_names: import_zod18.z.array(import_zod18.z.string()).optional(),
2595
- properties: import_zod18.z.array(import_zod18.z.unknown()).optional(),
2596
- stats: import_zod18.z.unknown().optional(),
2597
- extra_info: import_zod18.z.unknown().optional(),
2598
- version: import_zod18.z.unknown().optional(),
2599
- created_by_user_id: import_zod18.z.unknown().optional(),
2600
- updated_by_user_id: import_zod18.z.unknown().optional()
2601
- }).passthrough();
2602
- var CustomPromptSetListItemSchema = import_zod18.z.object({
2603
- uuid: import_zod18.z.string(),
2604
- name: import_zod18.z.string(),
2605
- active: import_zod18.z.boolean(),
2606
- archive: import_zod18.z.boolean(),
2607
- status: import_zod18.z.string(),
2608
- created_at: import_zod18.z.string(),
2609
- updated_at: import_zod18.z.string(),
2610
- description: import_zod18.z.unknown().optional(),
2611
- property_names: import_zod18.z.array(import_zod18.z.string()).optional(),
2612
- stats: import_zod18.z.unknown().optional(),
2613
- created_by_user_id: import_zod18.z.unknown().optional()
2614
- }).passthrough();
2615
- var CustomPromptSetListSchema = import_zod18.z.object({
2976
+ var CustomPromptSetUpdateRequestSchema = import_zod25.z.object({
2977
+ name: import_zod25.z.unknown().optional(),
2978
+ description: import_zod25.z.unknown().optional(),
2979
+ archive: import_zod25.z.unknown().optional(),
2980
+ property_names: import_zod25.z.unknown().optional()
2981
+ }).passthrough();
2982
+ var CustomPromptSetArchiveRequestSchema = import_zod25.z.object({ archive: import_zod25.z.boolean() });
2983
+ var CustomPromptSetResponseSchema = import_zod25.z.object({
2984
+ uuid: import_zod25.z.string(),
2985
+ name: import_zod25.z.string(),
2986
+ active: import_zod25.z.boolean(),
2987
+ archive: import_zod25.z.boolean(),
2988
+ status: import_zod25.z.string(),
2989
+ created_at: import_zod25.z.string(),
2990
+ updated_at: import_zod25.z.string(),
2991
+ description: import_zod25.z.unknown().optional(),
2992
+ property_names: import_zod25.z.array(import_zod25.z.string()).optional(),
2993
+ properties: import_zod25.z.array(import_zod25.z.unknown()).optional(),
2994
+ stats: import_zod25.z.unknown().optional(),
2995
+ extra_info: import_zod25.z.unknown().optional(),
2996
+ version: import_zod25.z.unknown().optional(),
2997
+ created_by_user_id: import_zod25.z.unknown().optional(),
2998
+ updated_by_user_id: import_zod25.z.unknown().optional()
2999
+ }).passthrough();
3000
+ var CustomPromptSetListItemSchema = import_zod25.z.object({
3001
+ uuid: import_zod25.z.string(),
3002
+ name: import_zod25.z.string(),
3003
+ active: import_zod25.z.boolean(),
3004
+ archive: import_zod25.z.boolean(),
3005
+ status: import_zod25.z.string(),
3006
+ created_at: import_zod25.z.string(),
3007
+ updated_at: import_zod25.z.string(),
3008
+ description: import_zod25.z.unknown().optional(),
3009
+ property_names: import_zod25.z.array(import_zod25.z.string()).optional(),
3010
+ stats: import_zod25.z.unknown().optional(),
3011
+ created_by_user_id: import_zod25.z.unknown().optional()
3012
+ }).passthrough();
3013
+ var CustomPromptSetListSchema = import_zod25.z.object({
2616
3014
  pagination: RedTeamPaginationSchema,
2617
- data: import_zod18.z.array(CustomPromptSetListItemSchema).optional()
2618
- }).passthrough();
2619
- var CustomPromptSetListActiveSchema = import_zod18.z.object({ data: import_zod18.z.array(CustomPromptSetListItemSchema).optional() }).passthrough();
2620
- var CustomPromptSetReferenceSchema = import_zod18.z.object({
2621
- uuid: import_zod18.z.string(),
2622
- name: import_zod18.z.string(),
2623
- status: import_zod18.z.string(),
2624
- active: import_zod18.z.boolean(),
2625
- tsg_id: import_zod18.z.string(),
2626
- created_at: import_zod18.z.string(),
2627
- updated_at: import_zod18.z.string(),
2628
- version: import_zod18.z.unknown().optional()
2629
- }).passthrough();
2630
- var CustomPromptSetVersionInfoSchema = import_zod18.z.object({
2631
- uuid: import_zod18.z.string(),
2632
- status: import_zod18.z.string(),
2633
- is_latest: import_zod18.z.boolean(),
2634
- version: import_zod18.z.string().nullable().optional(),
3015
+ data: import_zod25.z.array(CustomPromptSetListItemSchema).optional()
3016
+ }).passthrough();
3017
+ var CustomPromptSetListActiveSchema = import_zod25.z.object({ data: import_zod25.z.array(CustomPromptSetListItemSchema).optional() }).passthrough();
3018
+ var CustomPromptSetReferenceSchema = import_zod25.z.object({
3019
+ uuid: import_zod25.z.string(),
3020
+ name: import_zod25.z.string(),
3021
+ status: import_zod25.z.string(),
3022
+ active: import_zod25.z.boolean(),
3023
+ tsg_id: import_zod25.z.string(),
3024
+ created_at: import_zod25.z.string(),
3025
+ updated_at: import_zod25.z.string(),
3026
+ version: import_zod25.z.unknown().optional()
3027
+ }).passthrough();
3028
+ var CustomPromptSetVersionInfoSchema = import_zod25.z.object({
3029
+ uuid: import_zod25.z.string(),
3030
+ status: import_zod25.z.string(),
3031
+ is_latest: import_zod25.z.boolean(),
3032
+ version: import_zod25.z.string().nullable().optional(),
2635
3033
  stats: PromptSetStatsSchema.nullable().optional(),
2636
- snapshot_created_at: import_zod18.z.string().nullable().optional()
3034
+ snapshot_created_at: import_zod25.z.string().nullable().optional()
2637
3035
  }).passthrough();
2638
- var CustomPromptCreateRequestSchema = import_zod18.z.object({
2639
- prompt: import_zod18.z.string(),
2640
- prompt_set_id: import_zod18.z.string(),
2641
- goal: import_zod18.z.unknown().optional(),
2642
- properties: import_zod18.z.unknown().optional()
3036
+ var CustomPromptCreateRequestSchema = import_zod25.z.object({
3037
+ prompt: import_zod25.z.string(),
3038
+ prompt_set_id: import_zod25.z.string(),
3039
+ goal: import_zod25.z.unknown().optional(),
3040
+ properties: import_zod25.z.unknown().optional()
2643
3041
  });
2644
- var CustomPromptUpdateRequestSchema = import_zod18.z.object({
2645
- prompt: import_zod18.z.unknown().optional(),
2646
- goal: import_zod18.z.unknown().optional(),
2647
- properties: import_zod18.z.unknown().optional()
2648
- }).passthrough();
2649
- var CustomPromptResponseSchema = import_zod18.z.object({
2650
- uuid: import_zod18.z.string(),
2651
- prompt: import_zod18.z.string(),
2652
- user_defined_goal: import_zod18.z.boolean(),
2653
- status: import_zod18.z.string(),
2654
- active: import_zod18.z.boolean(),
2655
- prompt_set_id: import_zod18.z.string(),
2656
- created_at: import_zod18.z.string(),
2657
- updated_at: import_zod18.z.string(),
2658
- goal: import_zod18.z.unknown().optional(),
2659
- properties: import_zod18.z.unknown().optional(),
2660
- property_assignments: import_zod18.z.array(import_zod18.z.unknown()).optional(),
2661
- detector_category: import_zod18.z.unknown().optional(),
2662
- severity: import_zod18.z.unknown().optional(),
2663
- extra_info: import_zod18.z.unknown().optional()
2664
- }).passthrough();
2665
- var CustomPromptListItemSchema = import_zod18.z.object({
2666
- uuid: import_zod18.z.string(),
2667
- prompt: import_zod18.z.string(),
2668
- user_defined_goal: import_zod18.z.boolean(),
2669
- status: import_zod18.z.string(),
2670
- active: import_zod18.z.boolean(),
2671
- created_at: import_zod18.z.string(),
2672
- updated_at: import_zod18.z.string(),
2673
- goal: import_zod18.z.unknown().optional(),
2674
- properties: import_zod18.z.unknown().optional()
2675
- }).passthrough();
2676
- var CustomPromptListSchema = import_zod18.z.object({
3042
+ var CustomPromptUpdateRequestSchema = import_zod25.z.object({
3043
+ prompt: import_zod25.z.unknown().optional(),
3044
+ goal: import_zod25.z.unknown().optional(),
3045
+ properties: import_zod25.z.unknown().optional()
3046
+ }).passthrough();
3047
+ var CustomPromptResponseSchema = import_zod25.z.object({
3048
+ uuid: import_zod25.z.string(),
3049
+ prompt: import_zod25.z.string(),
3050
+ user_defined_goal: import_zod25.z.boolean(),
3051
+ status: import_zod25.z.string(),
3052
+ active: import_zod25.z.boolean(),
3053
+ prompt_set_id: import_zod25.z.string(),
3054
+ created_at: import_zod25.z.string(),
3055
+ updated_at: import_zod25.z.string(),
3056
+ goal: import_zod25.z.unknown().optional(),
3057
+ properties: import_zod25.z.unknown().optional(),
3058
+ property_assignments: import_zod25.z.array(import_zod25.z.unknown()).optional(),
3059
+ detector_category: import_zod25.z.unknown().optional(),
3060
+ severity: import_zod25.z.unknown().optional(),
3061
+ extra_info: import_zod25.z.unknown().optional()
3062
+ }).passthrough();
3063
+ var CustomPromptListItemSchema = import_zod25.z.object({
3064
+ uuid: import_zod25.z.string(),
3065
+ prompt: import_zod25.z.string(),
3066
+ user_defined_goal: import_zod25.z.boolean(),
3067
+ status: import_zod25.z.string(),
3068
+ active: import_zod25.z.boolean(),
3069
+ created_at: import_zod25.z.string(),
3070
+ updated_at: import_zod25.z.string(),
3071
+ goal: import_zod25.z.unknown().optional(),
3072
+ properties: import_zod25.z.unknown().optional()
3073
+ }).passthrough();
3074
+ var CustomPromptListSchema = import_zod25.z.object({
2677
3075
  pagination: RedTeamPaginationSchema,
2678
- data: import_zod18.z.array(CustomPromptListItemSchema).optional()
3076
+ data: import_zod25.z.array(CustomPromptListItemSchema).optional()
2679
3077
  }).passthrough();
2680
- var PropertyNameCreateRequestSchema = import_zod18.z.object({ name: import_zod18.z.string() });
2681
- var PropertyValueCreateRequestSchema = import_zod18.z.object({
2682
- property_name: import_zod18.z.string(),
2683
- property_value: import_zod18.z.string()
3078
+ var PropertyNameCreateRequestSchema = import_zod25.z.object({ name: import_zod25.z.string() });
3079
+ var PropertyValueCreateRequestSchema = import_zod25.z.object({
3080
+ property_name: import_zod25.z.string(),
3081
+ property_value: import_zod25.z.string()
2684
3082
  });
2685
- var PropertyDefinitionSchema = import_zod18.z.object({
2686
- property_name: import_zod18.z.string(),
2687
- created_at: import_zod18.z.string()
3083
+ var PropertyDefinitionSchema = import_zod25.z.object({
3084
+ property_name: import_zod25.z.string(),
3085
+ created_at: import_zod25.z.string()
2688
3086
  });
2689
- var PropertyNamesListResponseSchema = import_zod18.z.object({ data: import_zod18.z.array(PropertyDefinitionSchema).optional() }).passthrough();
2690
- var PropertyValuesResponseSchema = import_zod18.z.object({
2691
- name: import_zod18.z.string(),
2692
- values: import_zod18.z.array(import_zod18.z.string()).optional()
3087
+ var PropertyNamesListResponseSchema = import_zod25.z.object({ data: import_zod25.z.array(PropertyDefinitionSchema).optional() }).passthrough();
3088
+ var PropertyValuesResponseSchema = import_zod25.z.object({
3089
+ name: import_zod25.z.string(),
3090
+ values: import_zod25.z.array(import_zod25.z.string()).optional()
2693
3091
  }).passthrough();
2694
- var PropertyValuesMultipleResponseSchema = import_zod18.z.object({ data: import_zod18.z.record(import_zod18.z.array(import_zod18.z.string())).optional() }).passthrough();
2695
- var DashboardOverviewResponseSchema = import_zod18.z.object({
2696
- total_targets: import_zod18.z.number().int(),
2697
- targets_by_type: import_zod18.z.array(CountByNameSchema).optional()
3092
+ var PropertyValuesMultipleResponseSchema = import_zod25.z.object({ data: import_zod25.z.record(import_zod25.z.array(import_zod25.z.string())).optional() }).passthrough();
3093
+ var DashboardOverviewResponseSchema = import_zod25.z.object({
3094
+ total_targets: import_zod25.z.number().int(),
3095
+ targets_by_type: import_zod25.z.array(CountByNameSchema).optional()
2698
3096
  }).passthrough();
2699
3097
 
2700
3098
  // src/models/oauth-token.ts
2701
- var import_zod19 = require("zod");
2702
- var OAuthTokenResponseSchema = import_zod19.z.object({
2703
- access_token: import_zod19.z.string(),
2704
- token_type: import_zod19.z.string().optional(),
2705
- expires_in: import_zod19.z.number(),
2706
- scope: import_zod19.z.string().optional()
3099
+ var import_zod26 = require("zod");
3100
+ var OAuthTokenResponseSchema = import_zod26.z.object({
3101
+ access_token: import_zod26.z.string(),
3102
+ token_type: import_zod26.z.string().optional(),
3103
+ expires_in: import_zod26.z.number(),
3104
+ scope: import_zod26.z.string().optional()
2707
3105
  });
2708
3106
 
2709
3107
  // src/management/oauth-client.ts
@@ -2872,8 +3270,327 @@ async function managementHttpRequest(opts) {
2872
3270
  return { status: response.status, data };
2873
3271
  }
2874
3272
 
2875
- // src/management/profiles.ts
2876
- var ProfilesClient = class {
3273
+ // src/management/profiles.ts
3274
+ var ProfilesClient = class {
3275
+ baseUrl;
3276
+ oauthClient;
3277
+ tsgId;
3278
+ numRetries;
3279
+ constructor(opts) {
3280
+ this.baseUrl = opts.baseUrl;
3281
+ this.oauthClient = opts.oauthClient;
3282
+ this.tsgId = opts.tsgId;
3283
+ this.numRetries = opts.numRetries;
3284
+ }
3285
+ /**
3286
+ * Create a new security profile.
3287
+ * @param request - Profile configuration.
3288
+ * @returns The created security profile.
3289
+ */
3290
+ async create(request) {
3291
+ const res = await managementHttpRequest({
3292
+ method: "POST",
3293
+ baseUrl: this.baseUrl,
3294
+ path: MGMT_PROFILE_PATH,
3295
+ body: request,
3296
+ oauthClient: this.oauthClient,
3297
+ numRetries: this.numRetries
3298
+ });
3299
+ return res.data;
3300
+ }
3301
+ /**
3302
+ * List security profiles for the TSG.
3303
+ * @param opts - Pagination options.
3304
+ * @returns Paginated list of security profiles.
3305
+ */
3306
+ async list(opts) {
3307
+ const params = {
3308
+ offset: String(opts?.offset ?? 0),
3309
+ limit: String(opts?.limit ?? 100)
3310
+ };
3311
+ const res = await managementHttpRequest({
3312
+ method: "GET",
3313
+ baseUrl: this.baseUrl,
3314
+ path: `${MGMT_PROFILES_TSG_PATH}/${this.tsgId}`,
3315
+ params,
3316
+ oauthClient: this.oauthClient,
3317
+ numRetries: this.numRetries
3318
+ });
3319
+ return res.data;
3320
+ }
3321
+ /**
3322
+ * Update an existing security profile.
3323
+ * @param profileId - UUID of the profile to update.
3324
+ * @param request - Updated profile configuration.
3325
+ * @returns The updated security profile.
3326
+ */
3327
+ async update(profileId, request) {
3328
+ if (!isValidUuid(profileId)) {
3329
+ throw new AISecSDKException(
3330
+ `Invalid profile_id: ${profileId}`,
3331
+ "AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
3332
+ );
3333
+ }
3334
+ const res = await managementHttpRequest({
3335
+ method: "PUT",
3336
+ baseUrl: this.baseUrl,
3337
+ path: `${MGMT_PROFILE_PATH}/uuid/${profileId}`,
3338
+ body: request,
3339
+ oauthClient: this.oauthClient,
3340
+ numRetries: this.numRetries
3341
+ });
3342
+ return res.data;
3343
+ }
3344
+ /**
3345
+ * Delete a security profile.
3346
+ * @param profileId - UUID of the profile to delete.
3347
+ * @returns Deletion confirmation message.
3348
+ */
3349
+ async delete(profileId) {
3350
+ if (!isValidUuid(profileId)) {
3351
+ throw new AISecSDKException(
3352
+ `Invalid profile_id: ${profileId}`,
3353
+ "AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
3354
+ );
3355
+ }
3356
+ const res = await managementHttpRequest({
3357
+ method: "DELETE",
3358
+ baseUrl: this.baseUrl,
3359
+ path: `${MGMT_PROFILE_PATH}/${profileId}`,
3360
+ oauthClient: this.oauthClient,
3361
+ numRetries: this.numRetries
3362
+ });
3363
+ return res.data;
3364
+ }
3365
+ /**
3366
+ * Force-delete a security profile, bypassing safety checks.
3367
+ * @param profileId - UUID of the profile to force-delete.
3368
+ * @param updatedBy - Email of the user performing the deletion.
3369
+ * @returns Deletion confirmation message.
3370
+ */
3371
+ async forceDelete(profileId, updatedBy) {
3372
+ if (!isValidUuid(profileId)) {
3373
+ throw new AISecSDKException(
3374
+ `Invalid profile_id: ${profileId}`,
3375
+ "AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
3376
+ );
3377
+ }
3378
+ const res = await managementHttpRequest({
3379
+ method: "DELETE",
3380
+ baseUrl: this.baseUrl,
3381
+ path: `${MGMT_PROFILE_PATH}/${profileId}/force`,
3382
+ params: { updated_by: updatedBy },
3383
+ oauthClient: this.oauthClient,
3384
+ numRetries: this.numRetries
3385
+ });
3386
+ return res.data;
3387
+ }
3388
+ };
3389
+
3390
+ // src/management/topics.ts
3391
+ var TopicsClient = class {
3392
+ baseUrl;
3393
+ oauthClient;
3394
+ tsgId;
3395
+ numRetries;
3396
+ constructor(opts) {
3397
+ this.baseUrl = opts.baseUrl;
3398
+ this.oauthClient = opts.oauthClient;
3399
+ this.tsgId = opts.tsgId;
3400
+ this.numRetries = opts.numRetries;
3401
+ }
3402
+ /**
3403
+ * Create a new custom topic.
3404
+ * @param request - Topic definition with name, description, and examples.
3405
+ * @returns The created custom topic.
3406
+ */
3407
+ async create(request) {
3408
+ const res = await managementHttpRequest({
3409
+ method: "POST",
3410
+ baseUrl: this.baseUrl,
3411
+ path: MGMT_TOPIC_PATH,
3412
+ body: request,
3413
+ oauthClient: this.oauthClient,
3414
+ numRetries: this.numRetries
3415
+ });
3416
+ return res.data;
3417
+ }
3418
+ /**
3419
+ * List custom topics for the TSG.
3420
+ * @param opts - Pagination options.
3421
+ * @returns Paginated list of custom topics.
3422
+ */
3423
+ async list(opts) {
3424
+ const params = {
3425
+ offset: String(opts?.offset ?? 0),
3426
+ limit: String(opts?.limit ?? 100)
3427
+ };
3428
+ const res = await managementHttpRequest({
3429
+ method: "GET",
3430
+ baseUrl: this.baseUrl,
3431
+ path: `${MGMT_TOPICS_TSG_PATH}/${this.tsgId}`,
3432
+ params,
3433
+ oauthClient: this.oauthClient,
3434
+ numRetries: this.numRetries
3435
+ });
3436
+ return res.data;
3437
+ }
3438
+ /**
3439
+ * Update an existing custom topic.
3440
+ * @param topicId - UUID of the topic to update.
3441
+ * @param request - Updated topic definition.
3442
+ * @returns The updated custom topic.
3443
+ */
3444
+ async update(topicId, request) {
3445
+ if (!isValidUuid(topicId)) {
3446
+ throw new AISecSDKException(
3447
+ `Invalid topic_id: ${topicId}`,
3448
+ "AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
3449
+ );
3450
+ }
3451
+ const res = await managementHttpRequest({
3452
+ method: "PUT",
3453
+ baseUrl: this.baseUrl,
3454
+ path: `${MGMT_TOPIC_PATH}/uuid/${topicId}`,
3455
+ body: request,
3456
+ oauthClient: this.oauthClient,
3457
+ numRetries: this.numRetries
3458
+ });
3459
+ return res.data;
3460
+ }
3461
+ /**
3462
+ * Delete a custom topic. Fails if topic is referenced by a profile.
3463
+ * @param topicId - UUID of the topic to delete.
3464
+ * @returns Deletion confirmation message.
3465
+ */
3466
+ async delete(topicId) {
3467
+ if (!isValidUuid(topicId)) {
3468
+ throw new AISecSDKException(
3469
+ `Invalid topic_id: ${topicId}`,
3470
+ "AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
3471
+ );
3472
+ }
3473
+ const res = await managementHttpRequest({
3474
+ method: "DELETE",
3475
+ baseUrl: this.baseUrl,
3476
+ path: `${MGMT_TOPIC_PATH}/${topicId}`,
3477
+ oauthClient: this.oauthClient,
3478
+ numRetries: this.numRetries
3479
+ });
3480
+ return res.data;
3481
+ }
3482
+ /**
3483
+ * Force-delete a custom topic, removing it from any referencing profiles.
3484
+ * @param topicId - UUID of the topic to force-delete.
3485
+ * @param updatedBy - Email of the user performing the deletion.
3486
+ * @returns Deletion confirmation message.
3487
+ */
3488
+ async forceDelete(topicId, updatedBy) {
3489
+ if (!isValidUuid(topicId)) {
3490
+ throw new AISecSDKException(
3491
+ `Invalid topic_id: ${topicId}`,
3492
+ "AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
3493
+ );
3494
+ }
3495
+ const params = updatedBy ? { updated_by: updatedBy } : void 0;
3496
+ const res = await managementHttpRequest({
3497
+ method: "DELETE",
3498
+ baseUrl: this.baseUrl,
3499
+ path: `${MGMT_TOPIC_FORCE_PATH}/${topicId}`,
3500
+ params,
3501
+ oauthClient: this.oauthClient,
3502
+ numRetries: this.numRetries
3503
+ });
3504
+ return res.data;
3505
+ }
3506
+ };
3507
+
3508
+ // src/management/api-keys.ts
3509
+ var ApiKeysClient = class {
3510
+ baseUrl;
3511
+ oauthClient;
3512
+ tsgId;
3513
+ numRetries;
3514
+ constructor(opts) {
3515
+ this.baseUrl = opts.baseUrl;
3516
+ this.oauthClient = opts.oauthClient;
3517
+ this.tsgId = opts.tsgId;
3518
+ this.numRetries = opts.numRetries;
3519
+ }
3520
+ /**
3521
+ * Create a new API key.
3522
+ * @param request - API key creation request.
3523
+ * @returns The created API key.
3524
+ */
3525
+ async create(request) {
3526
+ const res = await managementHttpRequest({
3527
+ method: "POST",
3528
+ baseUrl: this.baseUrl,
3529
+ path: MGMT_API_KEY_PATH,
3530
+ body: request,
3531
+ oauthClient: this.oauthClient,
3532
+ numRetries: this.numRetries
3533
+ });
3534
+ return res.data;
3535
+ }
3536
+ /**
3537
+ * List API keys for the TSG.
3538
+ * @param opts - Pagination options.
3539
+ * @returns Paginated list of API keys.
3540
+ */
3541
+ async list(opts) {
3542
+ const params = {
3543
+ offset: String(opts?.offset ?? 0),
3544
+ limit: String(opts?.limit ?? 100)
3545
+ };
3546
+ const res = await managementHttpRequest({
3547
+ method: "GET",
3548
+ baseUrl: this.baseUrl,
3549
+ path: `${MGMT_API_KEYS_TSG_PATH}/${this.tsgId}`,
3550
+ params,
3551
+ oauthClient: this.oauthClient,
3552
+ numRetries: this.numRetries
3553
+ });
3554
+ return res.data;
3555
+ }
3556
+ /**
3557
+ * Delete an API key by name.
3558
+ * @param apiKeyName - Name of the API key to delete.
3559
+ * @param updatedBy - Email of user performing the deletion.
3560
+ * @returns Deletion confirmation.
3561
+ */
3562
+ async delete(apiKeyName, updatedBy) {
3563
+ const res = await managementHttpRequest({
3564
+ method: "DELETE",
3565
+ baseUrl: this.baseUrl,
3566
+ path: `${MGMT_API_KEY_PATH}/delete/${encodeURIComponent(apiKeyName)}`,
3567
+ params: { updated_by: updatedBy },
3568
+ oauthClient: this.oauthClient,
3569
+ numRetries: this.numRetries
3570
+ });
3571
+ return res.data;
3572
+ }
3573
+ /**
3574
+ * Regenerate an API key.
3575
+ * @param apiKeyId - UUID of the API key to regenerate.
3576
+ * @param request - Regeneration request with rotation config.
3577
+ * @returns The regenerated API key.
3578
+ */
3579
+ async regenerate(apiKeyId, request) {
3580
+ const res = await managementHttpRequest({
3581
+ method: "POST",
3582
+ baseUrl: this.baseUrl,
3583
+ path: `${MGMT_API_KEY_PATH}/regenerate/${encodeURIComponent(apiKeyId)}`,
3584
+ body: request,
3585
+ oauthClient: this.oauthClient,
3586
+ numRetries: this.numRetries
3587
+ });
3588
+ return res.data;
3589
+ }
3590
+ };
3591
+
3592
+ // src/management/customer-apps.ts
3593
+ var CustomerAppsClient = class {
2877
3594
  baseUrl;
2878
3595
  oauthClient;
2879
3596
  tsgId;
@@ -2885,25 +3602,25 @@ var ProfilesClient = class {
2885
3602
  this.numRetries = opts.numRetries;
2886
3603
  }
2887
3604
  /**
2888
- * Create a new security profile.
2889
- * @param request - Profile configuration.
2890
- * @returns The created security profile.
3605
+ * Get a customer app by name.
3606
+ * @param appName - Name of the customer app.
3607
+ * @returns The customer app.
2891
3608
  */
2892
- async create(request) {
3609
+ async get(appName) {
2893
3610
  const res = await managementHttpRequest({
2894
- method: "POST",
3611
+ method: "GET",
2895
3612
  baseUrl: this.baseUrl,
2896
- path: MGMT_PROFILE_PATH,
2897
- body: request,
3613
+ path: MGMT_CUSTOMER_APP_PATH,
3614
+ params: { app_name: appName },
2898
3615
  oauthClient: this.oauthClient,
2899
3616
  numRetries: this.numRetries
2900
3617
  });
2901
3618
  return res.data;
2902
3619
  }
2903
3620
  /**
2904
- * List security profiles for the TSG.
3621
+ * List customer apps for the TSG.
2905
3622
  * @param opts - Pagination options.
2906
- * @returns Paginated list of security profiles.
3623
+ * @returns Paginated list of customer apps.
2907
3624
  */
2908
3625
  async list(opts) {
2909
3626
  const params = {
@@ -2913,7 +3630,7 @@ var ProfilesClient = class {
2913
3630
  const res = await managementHttpRequest({
2914
3631
  method: "GET",
2915
3632
  baseUrl: this.baseUrl,
2916
- path: `${MGMT_PROFILES_TSG_PATH}/${this.tsgId}`,
3633
+ path: `${MGMT_CUSTOMER_APPS_TSG_PATH}/${this.tsgId}`,
2917
3634
  params,
2918
3635
  oauthClient: this.oauthClient,
2919
3636
  numRetries: this.numRetries
@@ -2921,22 +3638,17 @@ var ProfilesClient = class {
2921
3638
  return res.data;
2922
3639
  }
2923
3640
  /**
2924
- * Update an existing security profile.
2925
- * @param profileId - UUID of the profile to update.
2926
- * @param request - Updated profile configuration.
2927
- * @returns The updated security profile.
3641
+ * Update a customer app.
3642
+ * @param customerAppId - UUID of the customer app to update.
3643
+ * @param request - Updated customer app data.
3644
+ * @returns The updated customer app.
2928
3645
  */
2929
- async update(profileId, request) {
2930
- if (!isValidUuid(profileId)) {
2931
- throw new AISecSDKException(
2932
- `Invalid profile_id: ${profileId}`,
2933
- "AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
2934
- );
2935
- }
3646
+ async update(customerAppId, request) {
2936
3647
  const res = await managementHttpRequest({
2937
3648
  method: "PUT",
2938
3649
  baseUrl: this.baseUrl,
2939
- path: `${MGMT_PROFILE_PATH}/uuid/${profileId}`,
3650
+ path: MGMT_CUSTOMER_APP_PATH,
3651
+ params: { customer_app_id: customerAppId },
2940
3652
  body: request,
2941
3653
  oauthClient: this.oauthClient,
2942
3654
  numRetries: this.numRetries
@@ -2944,21 +3656,17 @@ var ProfilesClient = class {
2944
3656
  return res.data;
2945
3657
  }
2946
3658
  /**
2947
- * Delete a security profile.
2948
- * @param profileId - UUID of the profile to delete.
2949
- * @returns Deletion confirmation message.
3659
+ * Delete a customer app.
3660
+ * @param appName - Name of the customer app to delete.
3661
+ * @param updatedBy - Email of user performing the deletion.
3662
+ * @returns The deleted customer app.
2950
3663
  */
2951
- async delete(profileId) {
2952
- if (!isValidUuid(profileId)) {
2953
- throw new AISecSDKException(
2954
- `Invalid profile_id: ${profileId}`,
2955
- "AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
2956
- );
2957
- }
3664
+ async delete(appName, updatedBy) {
2958
3665
  const res = await managementHttpRequest({
2959
3666
  method: "DELETE",
2960
3667
  baseUrl: this.baseUrl,
2961
- path: `${MGMT_PROFILE_PATH}/${profileId}`,
3668
+ path: MGMT_CUSTOMER_APP_PATH,
3669
+ params: { app_name: appName, updated_by: updatedBy },
2962
3670
  oauthClient: this.oauthClient,
2963
3671
  numRetries: this.numRetries
2964
3672
  });
@@ -2966,114 +3674,143 @@ var ProfilesClient = class {
2966
3674
  }
2967
3675
  };
2968
3676
 
2969
- // src/management/topics.ts
2970
- var TopicsClient = class {
3677
+ // src/management/dlp-profiles.ts
3678
+ var DlpProfilesClient = class {
2971
3679
  baseUrl;
2972
3680
  oauthClient;
2973
- tsgId;
2974
3681
  numRetries;
2975
3682
  constructor(opts) {
2976
3683
  this.baseUrl = opts.baseUrl;
2977
3684
  this.oauthClient = opts.oauthClient;
2978
- this.tsgId = opts.tsgId;
2979
3685
  this.numRetries = opts.numRetries;
2980
3686
  }
2981
3687
  /**
2982
- * Create a new custom topic.
2983
- * @param request - Topic definition with name, description, and examples.
2984
- * @returns The created custom topic.
3688
+ * List all DLP profiles for the TSG.
3689
+ * @returns List of DLP profiles.
2985
3690
  */
2986
- async create(request) {
3691
+ async list() {
2987
3692
  const res = await managementHttpRequest({
2988
- method: "POST",
3693
+ method: "GET",
2989
3694
  baseUrl: this.baseUrl,
2990
- path: MGMT_TOPIC_PATH,
2991
- body: request,
3695
+ path: MGMT_DLP_PROFILES_PATH,
2992
3696
  oauthClient: this.oauthClient,
2993
3697
  numRetries: this.numRetries
2994
3698
  });
2995
3699
  return res.data;
2996
3700
  }
3701
+ };
3702
+
3703
+ // src/management/deployment-profiles.ts
3704
+ var DeploymentProfilesClient = class {
3705
+ baseUrl;
3706
+ oauthClient;
3707
+ numRetries;
3708
+ constructor(opts) {
3709
+ this.baseUrl = opts.baseUrl;
3710
+ this.oauthClient = opts.oauthClient;
3711
+ this.numRetries = opts.numRetries;
3712
+ }
2997
3713
  /**
2998
- * List custom topics for the TSG.
2999
- * @param opts - Pagination options.
3000
- * @returns Paginated list of custom topics.
3714
+ * List deployment profiles for the TSG.
3715
+ * @param opts - Optional filter options.
3716
+ * @returns Deployment profiles response.
3001
3717
  */
3002
3718
  async list(opts) {
3003
- const params = {
3004
- offset: String(opts?.offset ?? 0),
3005
- limit: String(opts?.limit ?? 100)
3006
- };
3719
+ const params = {};
3720
+ if (opts?.unactivated !== void 0) params.unactivated = String(opts.unactivated);
3007
3721
  const res = await managementHttpRequest({
3008
3722
  method: "GET",
3009
3723
  baseUrl: this.baseUrl,
3010
- path: `${MGMT_TOPICS_TSG_PATH}/${this.tsgId}`,
3011
- params,
3724
+ path: MGMT_DEPLOYMENT_PROFILES_PATH,
3725
+ params: Object.keys(params).length > 0 ? params : void 0,
3012
3726
  oauthClient: this.oauthClient,
3013
3727
  numRetries: this.numRetries
3014
3728
  });
3015
3729
  return res.data;
3016
3730
  }
3731
+ };
3732
+
3733
+ // src/management/scan-logs.ts
3734
+ var ScanLogsClient = class {
3735
+ baseUrl;
3736
+ oauthClient;
3737
+ numRetries;
3738
+ constructor(opts) {
3739
+ this.baseUrl = opts.baseUrl;
3740
+ this.oauthClient = opts.oauthClient;
3741
+ this.numRetries = opts.numRetries;
3742
+ }
3017
3743
  /**
3018
- * Update an existing custom topic.
3019
- * @param topicId - UUID of the topic to update.
3020
- * @param request - Updated topic definition.
3021
- * @returns The updated custom topic.
3744
+ * Retrieve scan logs by time interval.
3745
+ * @param opts - Query options including time range, pagination, and filter.
3746
+ * @returns Paginated scan results.
3022
3747
  */
3023
- async update(topicId, request) {
3024
- if (!isValidUuid(topicId)) {
3025
- throw new AISecSDKException(
3026
- `Invalid topic_id: ${topicId}`,
3027
- "AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
3028
- );
3029
- }
3748
+ async query(opts) {
3749
+ const params = {
3750
+ time_interval: String(opts.time_interval),
3751
+ time_unit: opts.time_unit,
3752
+ pageNumber: String(opts.pageNumber),
3753
+ pageSize: String(opts.pageSize),
3754
+ filter: opts.filter
3755
+ };
3756
+ const body = opts.page_token ? { page_token: opts.page_token } : void 0;
3030
3757
  const res = await managementHttpRequest({
3031
- method: "PUT",
3758
+ method: "POST",
3032
3759
  baseUrl: this.baseUrl,
3033
- path: `${MGMT_TOPIC_PATH}/uuid/${topicId}`,
3034
- body: request,
3760
+ path: MGMT_SCAN_LOGS_PATH,
3761
+ params,
3762
+ body,
3035
3763
  oauthClient: this.oauthClient,
3036
3764
  numRetries: this.numRetries
3037
3765
  });
3038
3766
  return res.data;
3039
3767
  }
3768
+ };
3769
+
3770
+ // src/management/oauth-management.ts
3771
+ var OAuthManagementClient = class {
3772
+ baseUrl;
3773
+ oauthClient;
3774
+ numRetries;
3775
+ constructor(opts) {
3776
+ this.baseUrl = opts.baseUrl;
3777
+ this.oauthClient = opts.oauthClient;
3778
+ this.numRetries = opts.numRetries;
3779
+ }
3040
3780
  /**
3041
- * Delete a custom topic. Fails if topic is referenced by a profile.
3042
- * @param topicId - UUID of the topic to delete.
3043
- * @returns Deletion confirmation message.
3781
+ * Invalidate an OAuth token.
3782
+ * @param token - The OAuth token to invalidate.
3783
+ * @param body - Client ID and customer app.
3784
+ * @returns Confirmation string.
3044
3785
  */
3045
- async delete(topicId) {
3046
- if (!isValidUuid(topicId)) {
3047
- throw new AISecSDKException(
3048
- `Invalid topic_id: ${topicId}`,
3049
- "AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
3050
- );
3051
- }
3786
+ async invalidateToken(token, body) {
3052
3787
  const res = await managementHttpRequest({
3053
- method: "DELETE",
3788
+ method: "POST",
3054
3789
  baseUrl: this.baseUrl,
3055
- path: `${MGMT_TOPIC_PATH}/${topicId}`,
3790
+ path: MGMT_OAUTH_INVALIDATE_PATH,
3791
+ params: { token },
3792
+ body,
3056
3793
  oauthClient: this.oauthClient,
3057
3794
  numRetries: this.numRetries
3058
3795
  });
3059
3796
  return res.data;
3060
3797
  }
3061
3798
  /**
3062
- * Force-delete a custom topic, removing it from any referencing profiles.
3063
- * @param topicId - UUID of the topic to force-delete.
3064
- * @returns Deletion confirmation message.
3799
+ * Get an OAuth token for client credentials.
3800
+ * @param opts - Token request options.
3801
+ * @returns OAuth2 token response.
3065
3802
  */
3066
- async forceDelete(topicId) {
3067
- if (!isValidUuid(topicId)) {
3068
- throw new AISecSDKException(
3069
- `Invalid topic_id: ${topicId}`,
3070
- "AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
3071
- );
3072
- }
3803
+ async getAccessToken(opts) {
3804
+ const params = {};
3805
+ if (opts.tokenTtlInterval !== void 0)
3806
+ params.tokenTtlInterval = String(opts.tokenTtlInterval);
3807
+ if (opts.tokenTtlUnit !== void 0) params.tokenTtlUnit = opts.tokenTtlUnit;
3073
3808
  const res = await managementHttpRequest({
3074
- method: "DELETE",
3809
+ method: "POST",
3075
3810
  baseUrl: this.baseUrl,
3076
- path: `${MGMT_TOPIC_FORCE_PATH}/${topicId}`,
3811
+ path: MGMT_OAUTH_TOKEN_PATH,
3812
+ params: Object.keys(params).length > 0 ? params : void 0,
3813
+ body: opts.body,
3077
3814
  oauthClient: this.oauthClient,
3078
3815
  numRetries: this.numRetries
3079
3816
  });
@@ -3085,6 +3822,12 @@ var TopicsClient = class {
3085
3822
  var ManagementClient = class {
3086
3823
  profiles;
3087
3824
  topics;
3825
+ apiKeys;
3826
+ customerApps;
3827
+ dlpProfiles;
3828
+ deploymentProfiles;
3829
+ scanLogs;
3830
+ oauth;
3088
3831
  constructor(opts = {}) {
3089
3832
  const clientId = opts.clientId ?? process.env[MGMT_CLIENT_ID];
3090
3833
  const clientSecret = opts.clientSecret ?? process.env[MGMT_CLIENT_SECRET];
@@ -3131,19 +3874,92 @@ var ManagementClient = class {
3131
3874
  tsgId,
3132
3875
  numRetries
3133
3876
  });
3877
+ this.apiKeys = new ApiKeysClient({
3878
+ baseUrl: apiEndpoint,
3879
+ oauthClient,
3880
+ tsgId,
3881
+ numRetries
3882
+ });
3883
+ this.customerApps = new CustomerAppsClient({
3884
+ baseUrl: apiEndpoint,
3885
+ oauthClient,
3886
+ tsgId,
3887
+ numRetries
3888
+ });
3889
+ this.dlpProfiles = new DlpProfilesClient({
3890
+ baseUrl: apiEndpoint,
3891
+ oauthClient,
3892
+ numRetries
3893
+ });
3894
+ this.deploymentProfiles = new DeploymentProfilesClient({
3895
+ baseUrl: apiEndpoint,
3896
+ oauthClient,
3897
+ numRetries
3898
+ });
3899
+ this.scanLogs = new ScanLogsClient({
3900
+ baseUrl: apiEndpoint,
3901
+ oauthClient,
3902
+ numRetries
3903
+ });
3904
+ this.oauth = new OAuthManagementClient({
3905
+ baseUrl: apiEndpoint,
3906
+ oauthClient,
3907
+ numRetries
3908
+ });
3134
3909
  }
3135
3910
  };
3136
3911
 
3137
3912
  // src/model-security/scans-client.ts
3138
- function buildListParams(opts) {
3913
+ function buildScanListParams(opts) {
3139
3914
  const params = {};
3140
3915
  if (opts?.skip !== void 0) params.skip = String(opts.skip);
3141
3916
  if (opts?.limit !== void 0) params.limit = String(opts.limit);
3142
3917
  if (opts?.sort_by !== void 0) params.sort_by = opts.sort_by;
3143
- if (opts?.sort_direction !== void 0) params.sort_direction = opts.sort_direction;
3918
+ if (opts?.sort_order !== void 0) params.sort_order = opts.sort_order;
3919
+ if (opts?.search_query !== void 0) params.search_query = opts.search_query;
3920
+ if (opts?.eval_outcomes !== void 0) params.eval_outcomes = opts.eval_outcomes;
3921
+ if (opts?.source_types !== void 0) params.source_types = opts.source_types;
3922
+ if (opts?.security_group_uuid !== void 0)
3923
+ params.security_group_uuid = opts.security_group_uuid;
3924
+ if (opts?.start_time !== void 0) params.start_time = opts.start_time;
3925
+ if (opts?.end_time !== void 0) params.end_time = opts.end_time;
3926
+ if (opts?.labels_query !== void 0) params.labels_query = opts.labels_query;
3927
+ return params;
3928
+ }
3929
+ function buildEvaluationListParams(opts) {
3930
+ const params = {};
3931
+ if (opts?.skip !== void 0) params.skip = String(opts.skip);
3932
+ if (opts?.limit !== void 0) params.limit = String(opts.limit);
3933
+ if (opts?.sort_field !== void 0) params.sort_field = opts.sort_field;
3934
+ if (opts?.sort_order !== void 0) params.sort_order = opts.sort_order;
3935
+ if (opts?.result !== void 0) params.result = opts.result;
3936
+ if (opts?.rule_instance_uuid !== void 0) params.rule_instance_uuid = opts.rule_instance_uuid;
3937
+ return params;
3938
+ }
3939
+ function buildFileListParams(opts) {
3940
+ const params = {};
3941
+ if (opts?.skip !== void 0) params.skip = String(opts.skip);
3942
+ if (opts?.limit !== void 0) params.limit = String(opts.limit);
3943
+ if (opts?.sort_field !== void 0) params.sort_field = opts.sort_field;
3944
+ if (opts?.sort_dir !== void 0) params.sort_dir = opts.sort_dir;
3945
+ if (opts?.type !== void 0) params.type = opts.type;
3946
+ if (opts?.result !== void 0) params.result = opts.result;
3947
+ if (opts?.query_path !== void 0) params.query_path = opts.query_path;
3948
+ return params;
3949
+ }
3950
+ function buildLabelListParams(opts) {
3951
+ const params = {};
3952
+ if (opts?.skip !== void 0) params.skip = String(opts.skip);
3953
+ if (opts?.limit !== void 0) params.limit = String(opts.limit);
3144
3954
  if (opts?.search !== void 0) params.search = opts.search;
3145
3955
  return params;
3146
3956
  }
3957
+ function buildViolationListParams(opts) {
3958
+ const params = {};
3959
+ if (opts?.skip !== void 0) params.skip = String(opts.skip);
3960
+ if (opts?.limit !== void 0) params.limit = String(opts.limit);
3961
+ return params;
3962
+ }
3147
3963
  var ModelSecurityScansClient = class {
3148
3964
  baseUrl;
3149
3965
  oauthClient;
@@ -3175,15 +3991,11 @@ var ModelSecurityScansClient = class {
3175
3991
  * @returns Paginated list of scans.
3176
3992
  */
3177
3993
  async list(opts) {
3178
- const params = buildListParams(opts);
3179
- if (opts?.eval_outcome !== void 0) params.eval_outcome = opts.eval_outcome;
3180
- if (opts?.source_type !== void 0) params.source_type = opts.source_type;
3181
- if (opts?.scan_origin !== void 0) params.scan_origin = opts.scan_origin;
3182
3994
  const res = await managementHttpRequest({
3183
3995
  method: "GET",
3184
3996
  baseUrl: this.baseUrl,
3185
3997
  path: MODEL_SEC_SCANS_PATH,
3186
- params,
3998
+ params: buildScanListParams(opts),
3187
3999
  oauthClient: this.oauthClient,
3188
4000
  numRetries: this.numRetries
3189
4001
  });
@@ -3213,7 +4025,7 @@ var ModelSecurityScansClient = class {
3213
4025
  /**
3214
4026
  * Get rule evaluations for a scan.
3215
4027
  * @param scanUuid - Scan UUID.
3216
- * @param opts - Pagination options.
4028
+ * @param opts - Pagination and filter options.
3217
4029
  * @returns Paginated list of rule evaluations.
3218
4030
  */
3219
4031
  async getEvaluations(scanUuid, opts) {
@@ -3227,7 +4039,7 @@ var ModelSecurityScansClient = class {
3227
4039
  method: "GET",
3228
4040
  baseUrl: this.baseUrl,
3229
4041
  path: `${MODEL_SEC_SCANS_PATH}/${scanUuid}/evaluations`,
3230
- params: buildListParams(opts),
4042
+ params: buildEvaluationListParams(opts),
3231
4043
  oauthClient: this.oauthClient,
3232
4044
  numRetries: this.numRetries
3233
4045
  });
@@ -3246,14 +4058,11 @@ var ModelSecurityScansClient = class {
3246
4058
  "AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
3247
4059
  );
3248
4060
  }
3249
- const params = buildListParams(opts);
3250
- if (opts?.type !== void 0) params.type = opts.type;
3251
- if (opts?.result !== void 0) params.result = opts.result;
3252
4061
  const res = await managementHttpRequest({
3253
4062
  method: "GET",
3254
4063
  baseUrl: this.baseUrl,
3255
4064
  path: `${MODEL_SEC_SCANS_PATH}/${scanUuid}/files`,
3256
- params,
4065
+ params: buildFileListParams(opts),
3257
4066
  oauthClient: this.oauthClient,
3258
4067
  numRetries: this.numRetries
3259
4068
  });
@@ -3348,7 +4157,7 @@ var ModelSecurityScansClient = class {
3348
4157
  method: "GET",
3349
4158
  baseUrl: this.baseUrl,
3350
4159
  path: `${MODEL_SEC_SCANS_PATH}/${scanUuid}/rule-violations`,
3351
- params: buildListParams(opts),
4160
+ params: buildViolationListParams(opts),
3352
4161
  oauthClient: this.oauthClient,
3353
4162
  numRetries: this.numRetries
3354
4163
  });
@@ -3364,7 +4173,7 @@ var ModelSecurityScansClient = class {
3364
4173
  method: "GET",
3365
4174
  baseUrl: this.baseUrl,
3366
4175
  path: `${MODEL_SEC_SCANS_PATH}/label-keys`,
3367
- params: buildListParams(opts),
4176
+ params: buildLabelListParams(opts),
3368
4177
  oauthClient: this.oauthClient,
3369
4178
  numRetries: this.numRetries
3370
4179
  });
@@ -3381,7 +4190,7 @@ var ModelSecurityScansClient = class {
3381
4190
  method: "GET",
3382
4191
  baseUrl: this.baseUrl,
3383
4192
  path: `${MODEL_SEC_SCANS_PATH}/label-keys/${encodeURIComponent(key)}/values`,
3384
- params: buildListParams(opts),
4193
+ params: buildLabelListParams(opts),
3385
4194
  oauthClient: this.oauthClient,
3386
4195
  numRetries: this.numRetries
3387
4196
  });
@@ -3776,12 +4585,10 @@ var ModelSecurityClient = class {
3776
4585
  };
3777
4586
 
3778
4587
  // src/red-team/scans-client.ts
3779
- function buildListParams2(opts) {
4588
+ function buildListParams(opts) {
3780
4589
  const params = {};
3781
4590
  if (opts?.skip !== void 0) params.skip = String(opts.skip);
3782
4591
  if (opts?.limit !== void 0) params.limit = String(opts.limit);
3783
- if (opts?.sort_by !== void 0) params.sort_by = opts.sort_by;
3784
- if (opts?.sort_direction !== void 0) params.sort_direction = opts.sort_direction;
3785
4592
  if (opts?.search !== void 0) params.search = opts.search;
3786
4593
  return params;
3787
4594
  }
@@ -3808,7 +4615,7 @@ var RedTeamScansClient = class {
3808
4615
  }
3809
4616
  /** List red team scan jobs with optional filters. */
3810
4617
  async list(opts) {
3811
- const params = buildListParams2(opts);
4618
+ const params = buildListParams(opts);
3812
4619
  if (opts?.status !== void 0) params.status = opts.status;
3813
4620
  if (opts?.job_type !== void 0) params.job_type = opts.job_type;
3814
4621
  if (opts?.target_id !== void 0) params.target_id = opts.target_id;
@@ -3864,12 +4671,10 @@ var RedTeamScansClient = class {
3864
4671
  };
3865
4672
 
3866
4673
  // src/red-team/reports-client.ts
3867
- function buildListParams3(opts) {
4674
+ function buildListParams2(opts) {
3868
4675
  const params = {};
3869
4676
  if (opts?.skip !== void 0) params.skip = String(opts.skip);
3870
4677
  if (opts?.limit !== void 0) params.limit = String(opts.limit);
3871
- if (opts?.sort_by !== void 0) params.sort_by = opts.sort_by;
3872
- if (opts?.sort_direction !== void 0) params.sort_direction = opts.sort_direction;
3873
4678
  if (opts?.search !== void 0) params.search = opts.search;
3874
4679
  return params;
3875
4680
  }
@@ -3893,11 +4698,13 @@ var RedTeamReportsClient = class {
3893
4698
  /** List attacks for a static scan. */
3894
4699
  async listAttacks(jobId, opts) {
3895
4700
  validateJobId(jobId);
3896
- const params = buildListParams3(opts);
4701
+ const params = buildListParams2(opts);
3897
4702
  if (opts?.status !== void 0) params.status = opts.status;
3898
4703
  if (opts?.severity !== void 0) params.severity = opts.severity;
3899
4704
  if (opts?.category !== void 0) params.category = opts.category;
3900
4705
  if (opts?.sub_category !== void 0) params.sub_category = opts.sub_category;
4706
+ if (opts?.attack_type !== void 0) params.attack_type = opts.attack_type;
4707
+ if (opts?.threat !== void 0) params.threat = String(opts.threat);
3901
4708
  const res = await managementHttpRequest({
3902
4709
  method: "GET",
3903
4710
  baseUrl: this.baseUrl,
@@ -4022,8 +4829,10 @@ var RedTeamReportsClient = class {
4022
4829
  /** List goals for a dynamic scan. */
4023
4830
  async listGoals(jobId, opts) {
4024
4831
  validateJobId(jobId);
4025
- const params = buildListParams3(opts);
4832
+ const params = buildListParams2(opts);
4026
4833
  if (opts?.goal_type !== void 0) params.goal_type = opts.goal_type;
4834
+ if (opts?.status !== void 0) params.status = opts.status;
4835
+ if (opts?.count !== void 0) params.count = String(opts.count);
4027
4836
  const res = await managementHttpRequest({
4028
4837
  method: "GET",
4029
4838
  baseUrl: this.baseUrl,
@@ -4047,7 +4856,7 @@ var RedTeamReportsClient = class {
4047
4856
  method: "GET",
4048
4857
  baseUrl: this.baseUrl,
4049
4858
  path: `${RED_TEAM_REPORT_DYNAMIC_PATH}/${jobId}/goal/${goalId}/list-streams`,
4050
- params: buildListParams3(opts),
4859
+ params: buildListParams2(opts),
4051
4860
  oauthClient: this.oauthClient,
4052
4861
  numRetries: this.numRetries
4053
4862
  });
@@ -4076,8 +4885,7 @@ var RedTeamReportsClient = class {
4076
4885
  /** Download a report in the specified format. */
4077
4886
  async downloadReport(jobId, format) {
4078
4887
  validateJobId(jobId);
4079
- const params = {};
4080
- if (format !== void 0) params.file_format = format;
4888
+ const params = { file_format: format };
4081
4889
  const res = await managementHttpRequest({
4082
4890
  method: "GET",
4083
4891
  baseUrl: this.baseUrl,
@@ -4103,12 +4911,10 @@ var RedTeamReportsClient = class {
4103
4911
  };
4104
4912
 
4105
4913
  // src/red-team/custom-attack-reports-client.ts
4106
- function buildListParams4(opts) {
4914
+ function buildListParams3(opts) {
4107
4915
  const params = {};
4108
4916
  if (opts?.skip !== void 0) params.skip = String(opts.skip);
4109
4917
  if (opts?.limit !== void 0) params.limit = String(opts.limit);
4110
- if (opts?.sort_by !== void 0) params.sort_by = opts.sort_by;
4111
- if (opts?.sort_direction !== void 0) params.sort_direction = opts.sort_direction;
4112
4918
  if (opts?.search !== void 0) params.search = opts.search;
4113
4919
  return params;
4114
4920
  }
@@ -4159,11 +4965,13 @@ var RedTeamCustomAttackReportsClient = class {
4159
4965
  "AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
4160
4966
  );
4161
4967
  }
4968
+ const params = buildListParams3(opts);
4969
+ if (opts?.is_threat !== void 0) params.is_threat = String(opts.is_threat);
4162
4970
  const res = await managementHttpRequest({
4163
4971
  method: "GET",
4164
4972
  baseUrl: this.baseUrl,
4165
4973
  path: `${RED_TEAM_CUSTOM_ATTACKS_REPORT_PATH}/report/${jobId}/prompt-set/${promptSetId}/prompts`,
4166
- params: buildListParams4(opts),
4974
+ params,
4167
4975
  oauthClient: this.oauthClient,
4168
4976
  numRetries: this.numRetries
4169
4977
  });
@@ -4190,11 +4998,15 @@ var RedTeamCustomAttackReportsClient = class {
4190
4998
  /** List custom attacks for a scan. */
4191
4999
  async listCustomAttacks(jobId, opts) {
4192
5000
  validateJobId2(jobId);
5001
+ const params = buildListParams3(opts);
5002
+ if (opts?.threat !== void 0) params.threat = String(opts.threat);
5003
+ if (opts?.prompt_set_id !== void 0) params.prompt_set_id = opts.prompt_set_id;
5004
+ if (opts?.property_value !== void 0) params.property_value = opts.property_value;
4193
5005
  const res = await managementHttpRequest({
4194
5006
  method: "GET",
4195
5007
  baseUrl: this.baseUrl,
4196
5008
  path: `${RED_TEAM_CUSTOM_ATTACKS_REPORT_PATH}/job/${jobId}/list-custom-attacks`,
4197
- params: buildListParams4(opts),
5009
+ params,
4198
5010
  oauthClient: this.oauthClient,
4199
5011
  numRetries: this.numRetries
4200
5012
  });
@@ -4233,12 +5045,10 @@ var RedTeamCustomAttackReportsClient = class {
4233
5045
  };
4234
5046
 
4235
5047
  // src/red-team/targets-client.ts
4236
- function buildListParams5(opts) {
5048
+ function buildListParams4(opts) {
4237
5049
  const params = {};
4238
5050
  if (opts?.skip !== void 0) params.skip = String(opts.skip);
4239
5051
  if (opts?.limit !== void 0) params.limit = String(opts.limit);
4240
- if (opts?.sort_by !== void 0) params.sort_by = opts.sort_by;
4241
- if (opts?.sort_direction !== void 0) params.sort_direction = opts.sort_direction;
4242
5052
  if (opts?.search !== void 0) params.search = opts.search;
4243
5053
  return params;
4244
5054
  }
@@ -4268,10 +5078,9 @@ var RedTeamTargetsClient = class {
4268
5078
  }
4269
5079
  /** List targets with optional filters. */
4270
5080
  async list(opts) {
4271
- const params = buildListParams5(opts);
5081
+ const params = buildListParams4(opts);
4272
5082
  if (opts?.target_type !== void 0) params.target_type = opts.target_type;
4273
5083
  if (opts?.status !== void 0) params.status = opts.status;
4274
- if (opts?.active !== void 0) params.active = String(opts.active);
4275
5084
  const res = await managementHttpRequest({
4276
5085
  method: "GET",
4277
5086
  baseUrl: this.baseUrl,
@@ -4387,12 +5196,10 @@ var RedTeamTargetsClient = class {
4387
5196
  };
4388
5197
 
4389
5198
  // src/red-team/custom-attacks-client.ts
4390
- function buildListParams6(opts) {
5199
+ function buildListParams5(opts) {
4391
5200
  const params = {};
4392
5201
  if (opts?.skip !== void 0) params.skip = String(opts.skip);
4393
5202
  if (opts?.limit !== void 0) params.limit = String(opts.limit);
4394
- if (opts?.sort_by !== void 0) params.sort_by = opts.sort_by;
4395
- if (opts?.sort_direction !== void 0) params.sort_direction = opts.sort_direction;
4396
5203
  if (opts?.search !== void 0) params.search = opts.search;
4397
5204
  return params;
4398
5205
  }
@@ -4427,7 +5234,8 @@ var RedTeamCustomAttacksClient = class {
4427
5234
  }
4428
5235
  /** List custom prompt sets. */
4429
5236
  async listPromptSets(opts) {
4430
- const params = buildListParams6(opts);
5237
+ const params = buildListParams5(opts);
5238
+ if (opts?.status !== void 0) params.status = opts.status;
4431
5239
  if (opts?.active !== void 0) params.active = String(opts.active);
4432
5240
  if (opts?.archive !== void 0) params.archive = String(opts.archive);
4433
5241
  const res = await managementHttpRequest({
@@ -4570,7 +5378,7 @@ var RedTeamCustomAttacksClient = class {
4570
5378
  /** List prompts in a prompt set. */
4571
5379
  async listPrompts(promptSetUuid, opts) {
4572
5380
  validateUuid(promptSetUuid, "prompt set uuid");
4573
- const params = buildListParams6(opts);
5381
+ const params = buildListParams5(opts);
4574
5382
  if (opts?.active !== void 0) params.active = String(opts.active);
4575
5383
  const res = await managementHttpRequest({
4576
5384
  method: "GET",
@@ -4691,12 +5499,10 @@ var RedTeamCustomAttacksClient = class {
4691
5499
  };
4692
5500
 
4693
5501
  // src/red-team/client.ts
4694
- function buildListParams7(opts) {
5502
+ function buildListParams6(opts) {
4695
5503
  const params = {};
4696
5504
  if (opts?.skip !== void 0) params.skip = String(opts.skip);
4697
5505
  if (opts?.limit !== void 0) params.limit = String(opts.limit);
4698
- if (opts?.sort_by !== void 0) params.sort_by = opts.sort_by;
4699
- if (opts?.sort_direction !== void 0) params.sort_direction = opts.sort_direction;
4700
5506
  if (opts?.search !== void 0) params.search = opts.search;
4701
5507
  return params;
4702
5508
  }
@@ -4830,7 +5636,7 @@ var RedTeamClient = class {
4830
5636
  method: "GET",
4831
5637
  baseUrl: this.dataEndpoint,
4832
5638
  path: `${RED_TEAM_ERROR_LOG_PATH}/${jobId}`,
4833
- params: buildListParams7(opts),
5639
+ params: buildListParams6(opts),
4834
5640
  oauthClient: this.oauthClient,
4835
5641
  numRetries: this.numRetries
4836
5642
  });
@@ -4879,15 +5685,25 @@ var RedTeamClient = class {
4879
5685
  };
4880
5686
  // Annotate the CommonJS export names for ESM import in node:
4881
5687
  0 && (module.exports = {
5688
+ AIRS_ENDPOINTS,
4882
5689
  AISecSDKException,
4883
5690
  AI_SEC_API_ENDPOINT,
4884
5691
  AI_SEC_API_KEY,
4885
5692
  AI_SEC_API_TOKEN,
4886
5693
  ASYNC_SCAN_PATH,
4887
5694
  Action,
5695
+ AgentEntrySchema,
4888
5696
  AgentMetaSchema,
5697
+ AgentReportSchema,
4889
5698
  AiProfileSchema,
4890
5699
  ApiEndpointType,
5700
+ ApiKeyCreateRequestSchema,
5701
+ ApiKeyDPInfoSchema,
5702
+ ApiKeyDeleteResponseSchema,
5703
+ ApiKeyListResponseSchema,
5704
+ ApiKeyRegenerateRequestSchema,
5705
+ ApiKeySchema,
5706
+ ApiKeysClient,
4891
5707
  AsyncScanObjectSchema,
4892
5708
  AsyncScanResponseSchema,
4893
5709
  AttackDetailResponseSchema,
@@ -4906,11 +5722,17 @@ var RedTeamClient = class {
4906
5722
  Category,
4907
5723
  CategoryModelSchema,
4908
5724
  CategoryReportSchema,
5725
+ CgReportSchema,
5726
+ ClientIdAndCustomerAppSchema,
5727
+ CmdEntrySchema,
5728
+ CmdInjectReportSchema,
4909
5729
  ComplianceReportSchema,
4910
5730
  ComplianceSubCategory,
4911
5731
  ComplianceTechniqueSchema,
4912
5732
  ConnectionParamsSchema,
4913
5733
  Content,
5734
+ ContentErrorSchema,
5735
+ ContentErrorType,
4914
5736
  CountByNameSchema,
4915
5737
  CountedQuotaEnum,
4916
5738
  CreateCustomTopicRequestSchema,
@@ -4935,6 +5757,10 @@ var RedTeamClient = class {
4935
5757
  CustomPromptUpdateRequestSchema,
4936
5758
  CustomTopicListResponseSchema,
4937
5759
  CustomTopicSchema,
5760
+ CustomerAppListResponseSchema,
5761
+ CustomerAppSchema,
5762
+ CustomerAppWithKeysSchema,
5763
+ CustomerAppsClient,
4938
5764
  DEFAULT_ENDPOINT,
4939
5765
  DEFAULT_MGMT_ENDPOINT,
4940
5766
  DEFAULT_MODEL_SEC_DATA_ENDPOINT,
@@ -4947,11 +5773,21 @@ var RedTeamClient = class {
4947
5773
  DashboardOverviewResponseSchema,
4948
5774
  DatabricksConnectionParamsSchema,
4949
5775
  DateRangeFilter,
5776
+ DbsEntrySchema,
5777
+ DbsReportSchema,
4950
5778
  DeleteProfileConflictSchema,
4951
5779
  DeleteProfileResponseSchema,
4952
5780
  DeleteTopicConflictSchema,
4953
5781
  DeleteTopicResponseSchema,
5782
+ DeploymentProfileEntrySchema,
5783
+ DeploymentProfilesClient,
5784
+ DeploymentProfilesResponseSchema,
5785
+ DetectionServiceName,
4954
5786
  DetectionServiceResultSchema,
5787
+ DlpDataProfileSchema,
5788
+ DlpPatternDetectionSchema,
5789
+ DlpProfileListResponseSchema,
5790
+ DlpProfilesClient,
4955
5791
  DlpReportSchema,
4956
5792
  DynamicJobMetadataSchema,
4957
5793
  DynamicJobReportSchema,
@@ -4961,6 +5797,7 @@ var RedTeamClient = class {
4961
5797
  ErrorLogSchema,
4962
5798
  ErrorResponseSchema,
4963
5799
  ErrorSource,
5800
+ ErrorStatus,
4964
5801
  ErrorType,
4965
5802
  EvalOutcome,
4966
5803
  EvalSummarySchema,
@@ -5012,11 +5849,20 @@ var RedTeamClient = class {
5012
5849
  MAX_SESSION_ID_STR_LENGTH,
5013
5850
  MAX_TOKEN_LENGTH,
5014
5851
  MAX_TRANSACTION_ID_STR_LENGTH,
5852
+ MGMT_API_KEYS_TSG_PATH,
5853
+ MGMT_API_KEY_PATH,
5015
5854
  MGMT_CLIENT_ID,
5016
5855
  MGMT_CLIENT_SECRET,
5856
+ MGMT_CUSTOMER_APPS_TSG_PATH,
5857
+ MGMT_CUSTOMER_APP_PATH,
5858
+ MGMT_DEPLOYMENT_PROFILES_PATH,
5859
+ MGMT_DLP_PROFILES_PATH,
5017
5860
  MGMT_ENDPOINT,
5861
+ MGMT_OAUTH_INVALIDATE_PATH,
5862
+ MGMT_OAUTH_TOKEN_PATH,
5018
5863
  MGMT_PROFILES_TSG_PATH,
5019
5864
  MGMT_PROFILE_PATH,
5865
+ MGMT_SCAN_LOGS_PATH,
5020
5866
  MGMT_TOKEN_ENDPOINT,
5021
5867
  MGMT_TOPICS_TSG_PATH,
5022
5868
  MGMT_TOPIC_FORCE_PATH,
@@ -5034,8 +5880,11 @@ var RedTeamClient = class {
5034
5880
  MODEL_SEC_TOKEN_ENDPOINT,
5035
5881
  MODEL_SEC_TSG_ID,
5036
5882
  MODEL_SEC_VIOLATIONS_PATH,
5883
+ MalwareReportSchema,
5037
5884
  ManagementClient,
5038
5885
  MaskedDataSchema,
5886
+ McEntrySchema,
5887
+ McReportSchema,
5039
5888
  MetadataSchema,
5040
5889
  ModelScanIssueSchema,
5041
5890
  ModelScanStatus,
@@ -5054,8 +5903,13 @@ var RedTeamClient = class {
5054
5903
  MultiTurnStatefulConfigSchema,
5055
5904
  MultiTurnStatelessConfigSchema,
5056
5905
  OAuthClient,
5906
+ OAuthManagementClient,
5907
+ Oauth2TokenSchema,
5908
+ OffsetSchema,
5057
5909
  OpenAIConnectionParamsSchema,
5058
5910
  PAYLOAD_HASH,
5911
+ PaginatedScanResultsSchema,
5912
+ PatternDetectionSchema,
5059
5913
  PolicySchema,
5060
5914
  PolicyType,
5061
5915
  PrerequisiteModelSchema,
@@ -5138,10 +5992,13 @@ var RedTeamClient = class {
5138
5992
  ScanDetailsSchema,
5139
5993
  ScanIdResultSchema,
5140
5994
  ScanListSchema,
5995
+ ScanLogsClient,
5141
5996
  ScanOrigin,
5142
5997
  ScanRequestContentsInnerSchema,
5143
5998
  ScanRequestSchema,
5144
5999
  ScanResponseSchema,
6000
+ ScanResultEntrySchema,
6001
+ ScanResultForDashboardSchema,
5145
6002
  ScanStatisticsResponseSchema,
5146
6003
  ScanSummarySchema,
5147
6004
  Scanner,
@@ -5188,6 +6045,8 @@ var RedTeamClient = class {
5188
6045
  TargetStatus,
5189
6046
  TargetType,
5190
6047
  TargetUpdateRequestSchema,
6048
+ TcReportSchema,
6049
+ TgReportSchema,
5191
6050
  ThreatCategory,
5192
6051
  ThreatScanReportSchema,
5193
6052
  ToolDetectedSchema,