@cdot65/prisma-airs-sdk 0.6.0 → 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 +2230 -1356
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9756 -1195
- package/dist/index.d.ts +9756 -1195
- package/dist/index.js +2177 -1356
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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.
|
|
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
|
|
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/
|
|
1007
|
-
var
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
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
|
|
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 =
|
|
1030
|
-
source:
|
|
1031
|
-
report_id:
|
|
1032
|
-
scan_id:
|
|
1033
|
-
tr_id:
|
|
1034
|
-
session_id:
|
|
1035
|
-
profile_id:
|
|
1036
|
-
profile_name:
|
|
1037
|
-
category:
|
|
1038
|
-
action:
|
|
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:
|
|
1047
|
-
completed_at:
|
|
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
|
|
1052
|
-
var AsyncScanObjectSchema =
|
|
1053
|
-
req_id:
|
|
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 =
|
|
1057
|
-
received:
|
|
1058
|
-
scan_id:
|
|
1059
|
-
report_id:
|
|
1060
|
-
source:
|
|
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
|
|
1065
|
-
var ScanIdResultSchema =
|
|
1066
|
-
source:
|
|
1067
|
-
req_id:
|
|
1068
|
-
status:
|
|
1069
|
-
scan_id:
|
|
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
|
|
1234
|
+
var import_zod14 = require("zod");
|
|
1075
1235
|
|
|
1076
1236
|
// src/models/detection.ts
|
|
1077
|
-
var
|
|
1237
|
+
var import_zod13 = require("zod");
|
|
1078
1238
|
|
|
1079
1239
|
// src/models/dlp-report.ts
|
|
1080
|
-
var
|
|
1081
|
-
var DlpReportSchema =
|
|
1082
|
-
dlp_report_id:
|
|
1083
|
-
dlp_profile_name:
|
|
1084
|
-
dlp_profile_id:
|
|
1085
|
-
dlp_profile_version:
|
|
1086
|
-
data_pattern_rule1_verdict:
|
|
1087
|
-
data_pattern_rule2_verdict:
|
|
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
|
|
1092
|
-
var UrlfEntrySchema =
|
|
1093
|
-
url:
|
|
1094
|
-
risk_level:
|
|
1095
|
-
|
|
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 =
|
|
1100
|
-
urlf_report:
|
|
1101
|
-
dlp_report: DlpReportSchema.optional()
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
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 =
|
|
1118
|
-
source:
|
|
1119
|
-
report_id:
|
|
1120
|
-
scan_id:
|
|
1121
|
-
req_id:
|
|
1122
|
-
transaction_id:
|
|
1123
|
-
session_id:
|
|
1124
|
-
detection_results:
|
|
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
|
|
1129
|
-
var ErrorResponseSchema =
|
|
1130
|
-
status_code:
|
|
1131
|
-
message:
|
|
1132
|
-
error:
|
|
1133
|
-
message:
|
|
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:
|
|
1136
|
-
interval:
|
|
1137
|
-
unit:
|
|
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
|
|
1143
|
-
var DlpDataProfileSchema =
|
|
1144
|
-
profile_name:
|
|
1145
|
-
active:
|
|
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 =
|
|
1148
|
-
dlp_status:
|
|
1149
|
-
data_profiles:
|
|
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 =
|
|
1152
|
-
"data-leak-detection-status":
|
|
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 =
|
|
1156
|
-
"prompt-injection":
|
|
1157
|
-
"jailbreak-detection":
|
|
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 =
|
|
1160
|
-
"model-denial-of-service":
|
|
1332
|
+
var ModelProtectionSchema = import_zod16.z.object({
|
|
1333
|
+
"model-denial-of-service": import_zod16.z.string().optional()
|
|
1161
1334
|
}).passthrough();
|
|
1162
|
-
var AgentProtectionSchema =
|
|
1163
|
-
"malicious-agent-activity":
|
|
1335
|
+
var AgentProtectionSchema = import_zod16.z.object({
|
|
1336
|
+
"malicious-agent-activity": import_zod16.z.string().optional()
|
|
1164
1337
|
}).passthrough();
|
|
1165
|
-
var LatencySchema =
|
|
1166
|
-
status:
|
|
1167
|
-
max_latency_ms:
|
|
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 =
|
|
1342
|
+
var ModelConfigurationSchema = import_zod16.z.object({
|
|
1170
1343
|
latency: LatencySchema.optional()
|
|
1171
1344
|
}).passthrough();
|
|
1172
|
-
var PolicySchema =
|
|
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 =
|
|
1180
|
-
profile_id:
|
|
1181
|
-
profile_name:
|
|
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
|
-
|
|
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
|
|
1232
|
-
|
|
1233
|
-
|
|
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
|
-
|
|
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
|
|
1244
|
-
|
|
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
|
|
1376
|
+
var DeleteProfileResponseSchema = import_zod16.z.object({
|
|
1248
1377
|
message: import_zod16.z.string()
|
|
1249
1378
|
}).passthrough();
|
|
1250
|
-
var
|
|
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
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
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
|
|
1392
|
-
var ModelSecurityPaginationSchema =
|
|
1393
|
-
total_items:
|
|
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 =
|
|
1396
|
-
key:
|
|
1397
|
-
value:
|
|
1793
|
+
var LabelSchema = import_zod24.z.object({
|
|
1794
|
+
key: import_zod24.z.string(),
|
|
1795
|
+
value: import_zod24.z.string()
|
|
1398
1796
|
});
|
|
1399
|
-
var LabelsCreateRequestSchema =
|
|
1400
|
-
labels:
|
|
1797
|
+
var LabelsCreateRequestSchema = import_zod24.z.object({
|
|
1798
|
+
labels: import_zod24.z.array(LabelSchema)
|
|
1401
1799
|
});
|
|
1402
|
-
var LabelsResponseSchema =
|
|
1403
|
-
var LabelKeyListSchema =
|
|
1800
|
+
var LabelsResponseSchema = import_zod24.z.object({}).passthrough();
|
|
1801
|
+
var LabelKeyListSchema = import_zod24.z.object({
|
|
1404
1802
|
pagination: ModelSecurityPaginationSchema,
|
|
1405
|
-
keys:
|
|
1803
|
+
keys: import_zod24.z.array(import_zod24.z.string())
|
|
1406
1804
|
}).passthrough();
|
|
1407
|
-
var LabelValueListSchema =
|
|
1805
|
+
var LabelValueListSchema = import_zod24.z.object({
|
|
1408
1806
|
pagination: ModelSecurityPaginationSchema,
|
|
1409
|
-
values:
|
|
1410
|
-
}).passthrough();
|
|
1411
|
-
var EvalSummarySchema =
|
|
1412
|
-
rules_failed:
|
|
1413
|
-
rules_passed:
|
|
1414
|
-
total_rules:
|
|
1415
|
-
}).passthrough();
|
|
1416
|
-
var ModelScanIssueSchema =
|
|
1417
|
-
description:
|
|
1418
|
-
source:
|
|
1419
|
-
threat:
|
|
1420
|
-
module:
|
|
1421
|
-
operator:
|
|
1422
|
-
}).passthrough();
|
|
1423
|
-
var FileScanDataSchema =
|
|
1424
|
-
file_path:
|
|
1425
|
-
modelscan_status:
|
|
1426
|
-
blob_id:
|
|
1427
|
-
error_message:
|
|
1428
|
-
formats:
|
|
1429
|
-
issues_detected:
|
|
1430
|
-
}).passthrough();
|
|
1431
|
-
var ScanDetailsSchema =
|
|
1432
|
-
scanner_version:
|
|
1433
|
-
time_started:
|
|
1434
|
-
files:
|
|
1435
|
-
total_files_scanned:
|
|
1436
|
-
total_files_skipped:
|
|
1437
|
-
model_formats:
|
|
1438
|
-
model_size_bytes:
|
|
1439
|
-
scan_duration_ms:
|
|
1440
|
-
error_code:
|
|
1441
|
-
error_message:
|
|
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 =
|
|
1444
|
-
model_uri:
|
|
1445
|
-
security_group_uuid:
|
|
1446
|
-
scan_origin:
|
|
1447
|
-
allow_patterns:
|
|
1448
|
-
ignore_patterns:
|
|
1449
|
-
labels:
|
|
1450
|
-
model_author:
|
|
1451
|
-
model_name:
|
|
1452
|
-
model_version:
|
|
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 =
|
|
1456
|
-
uuid:
|
|
1457
|
-
tsg_id:
|
|
1458
|
-
created_at:
|
|
1459
|
-
updated_at:
|
|
1460
|
-
model_uri:
|
|
1461
|
-
owner:
|
|
1462
|
-
scan_origin:
|
|
1463
|
-
security_group_uuid:
|
|
1464
|
-
security_group_name:
|
|
1465
|
-
model_version_uuid:
|
|
1466
|
-
eval_outcome:
|
|
1467
|
-
source_type:
|
|
1468
|
-
created_by:
|
|
1469
|
-
enabled_rule_count_snapshot:
|
|
1470
|
-
error_code:
|
|
1471
|
-
error_message:
|
|
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:
|
|
1474
|
-
model_formats:
|
|
1475
|
-
scanner_version:
|
|
1476
|
-
time_started:
|
|
1477
|
-
total_files_scanned:
|
|
1478
|
-
total_files_skipped:
|
|
1479
|
-
}).passthrough();
|
|
1480
|
-
var ScanListSchema =
|
|
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:
|
|
1483
|
-
}).passthrough();
|
|
1484
|
-
var FileResponseSchema =
|
|
1485
|
-
uuid:
|
|
1486
|
-
tsg_id:
|
|
1487
|
-
created_at:
|
|
1488
|
-
updated_at:
|
|
1489
|
-
path:
|
|
1490
|
-
parent_path:
|
|
1491
|
-
type:
|
|
1492
|
-
result:
|
|
1493
|
-
model_version_uuid:
|
|
1494
|
-
blob_id:
|
|
1495
|
-
formats:
|
|
1496
|
-
scan_uuid:
|
|
1497
|
-
}).passthrough();
|
|
1498
|
-
var FileListSchema =
|
|
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:
|
|
1501
|
-
}).passthrough();
|
|
1502
|
-
var RuleEvaluationResponseSchema =
|
|
1503
|
-
uuid:
|
|
1504
|
-
tsg_id:
|
|
1505
|
-
created_at:
|
|
1506
|
-
updated_at:
|
|
1507
|
-
result:
|
|
1508
|
-
violation_count:
|
|
1509
|
-
rule_instance_uuid:
|
|
1510
|
-
scan_uuid:
|
|
1511
|
-
rule_name:
|
|
1512
|
-
rule_description:
|
|
1513
|
-
rule_instance_state:
|
|
1514
|
-
}).passthrough();
|
|
1515
|
-
var RuleEvaluationListSchema =
|
|
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:
|
|
1518
|
-
}).passthrough();
|
|
1519
|
-
var ViolationResponseSchema =
|
|
1520
|
-
uuid:
|
|
1521
|
-
tsg_id:
|
|
1522
|
-
created_at:
|
|
1523
|
-
updated_at:
|
|
1524
|
-
description:
|
|
1525
|
-
rule_instance_uuid:
|
|
1526
|
-
rule_name:
|
|
1527
|
-
rule_description:
|
|
1528
|
-
rule_instance_state:
|
|
1529
|
-
file:
|
|
1530
|
-
hash:
|
|
1531
|
-
module:
|
|
1532
|
-
operator:
|
|
1533
|
-
threat:
|
|
1534
|
-
threat_description:
|
|
1535
|
-
}).passthrough();
|
|
1536
|
-
var ViolationListSchema =
|
|
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:
|
|
1539
|
-
}).passthrough();
|
|
1540
|
-
var RuleEditableFieldDropdownSchema =
|
|
1541
|
-
value:
|
|
1542
|
-
label:
|
|
1543
|
-
}).passthrough();
|
|
1544
|
-
var RuleEditableFieldSchema =
|
|
1545
|
-
attribute_name:
|
|
1546
|
-
type:
|
|
1547
|
-
display_name:
|
|
1548
|
-
display_type:
|
|
1549
|
-
description:
|
|
1550
|
-
dropdown_values:
|
|
1551
|
-
}).passthrough();
|
|
1552
|
-
var RuleRemediationSchema =
|
|
1553
|
-
description:
|
|
1554
|
-
steps:
|
|
1555
|
-
url:
|
|
1556
|
-
}).passthrough();
|
|
1557
|
-
var RuleConfigurationSchema =
|
|
1558
|
-
field_values:
|
|
1559
|
-
state:
|
|
1560
|
-
}).passthrough();
|
|
1561
|
-
var ModelSecurityRuleResponseSchema =
|
|
1562
|
-
uuid:
|
|
1563
|
-
name:
|
|
1564
|
-
description:
|
|
1565
|
-
rule_type:
|
|
1566
|
-
compatible_sources:
|
|
1567
|
-
default_state:
|
|
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:
|
|
1570
|
-
constant_values:
|
|
1571
|
-
default_values:
|
|
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 =
|
|
1971
|
+
var ListModelSecurityRulesResponseSchema = import_zod24.z.object({
|
|
1574
1972
|
pagination: ModelSecurityPaginationSchema,
|
|
1575
|
-
rules:
|
|
1576
|
-
}).passthrough();
|
|
1577
|
-
var ModelSecurityRuleInstanceResponseSchema =
|
|
1578
|
-
uuid:
|
|
1579
|
-
tsg_id:
|
|
1580
|
-
created_at:
|
|
1581
|
-
updated_at:
|
|
1582
|
-
security_group_uuid:
|
|
1583
|
-
security_rule_uuid:
|
|
1584
|
-
state:
|
|
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:
|
|
1984
|
+
field_values: import_zod24.z.record(import_zod24.z.unknown()).optional()
|
|
1587
1985
|
}).passthrough();
|
|
1588
|
-
var ModelSecurityRuleInstanceUpdateRequestSchema =
|
|
1589
|
-
security_group_uuid:
|
|
1590
|
-
state:
|
|
1591
|
-
field_values:
|
|
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 =
|
|
1991
|
+
var ListModelSecurityRuleInstancesResponseSchema = import_zod24.z.object({
|
|
1594
1992
|
pagination: ModelSecurityPaginationSchema,
|
|
1595
|
-
rule_instances:
|
|
1993
|
+
rule_instances: import_zod24.z.array(ModelSecurityRuleInstanceResponseSchema)
|
|
1596
1994
|
}).passthrough();
|
|
1597
|
-
var ModelSecurityGroupCreateRequestSchema =
|
|
1598
|
-
name:
|
|
1599
|
-
source_type:
|
|
1600
|
-
description:
|
|
1601
|
-
rule_configurations:
|
|
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 =
|
|
1604
|
-
uuid:
|
|
1605
|
-
tsg_id:
|
|
1606
|
-
created_at:
|
|
1607
|
-
updated_at:
|
|
1608
|
-
name:
|
|
1609
|
-
description:
|
|
1610
|
-
source_type:
|
|
1611
|
-
state:
|
|
1612
|
-
is_tombstone:
|
|
1613
|
-
}).passthrough();
|
|
1614
|
-
var ModelSecurityGroupUpdateRequestSchema =
|
|
1615
|
-
name:
|
|
1616
|
-
description:
|
|
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 =
|
|
2016
|
+
var ListModelSecurityGroupsResponseSchema = import_zod24.z.object({
|
|
1619
2017
|
pagination: ModelSecurityPaginationSchema,
|
|
1620
|
-
security_groups:
|
|
2018
|
+
security_groups: import_zod24.z.array(ModelSecurityGroupResponseSchema)
|
|
1621
2019
|
}).passthrough();
|
|
1622
|
-
var PyPIAuthResponseSchema =
|
|
1623
|
-
url:
|
|
1624
|
-
expires_at:
|
|
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
|
|
1823
|
-
var RedTeamPaginationSchema =
|
|
1824
|
-
var CountByNameSchema =
|
|
1825
|
-
var ValidationErrorSchema =
|
|
1826
|
-
loc:
|
|
1827
|
-
msg:
|
|
1828
|
-
type:
|
|
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 =
|
|
1831
|
-
var TargetBackgroundSchema =
|
|
1832
|
-
industry:
|
|
1833
|
-
use_case:
|
|
1834
|
-
competitors:
|
|
1835
|
-
}).passthrough();
|
|
1836
|
-
var TargetAdditionalContextSchema =
|
|
1837
|
-
base_model:
|
|
1838
|
-
core_architecture:
|
|
1839
|
-
system_prompt:
|
|
1840
|
-
languages_supported:
|
|
1841
|
-
banned_keywords:
|
|
1842
|
-
tools_accessible:
|
|
1843
|
-
}).passthrough();
|
|
1844
|
-
var TargetMetadataSchema =
|
|
1845
|
-
multi_turn:
|
|
1846
|
-
multi_turn_error_message:
|
|
1847
|
-
rate_limit:
|
|
1848
|
-
rate_limit_enabled:
|
|
1849
|
-
rate_limit_error_code:
|
|
1850
|
-
rate_limit_error_json:
|
|
1851
|
-
rate_limit_error_message:
|
|
1852
|
-
content_filter_enabled:
|
|
1853
|
-
content_filter_error_code:
|
|
1854
|
-
content_filter_error_json:
|
|
1855
|
-
content_filter_error_message:
|
|
1856
|
-
probe_message:
|
|
1857
|
-
request_timeout:
|
|
1858
|
-
}).passthrough();
|
|
1859
|
-
var MultiTurnStatefulConfigSchema =
|
|
1860
|
-
type:
|
|
1861
|
-
response_id_field:
|
|
1862
|
-
request_id_field:
|
|
1863
|
-
}).passthrough();
|
|
1864
|
-
var MultiTurnStatelessConfigSchema =
|
|
1865
|
-
type:
|
|
1866
|
-
assistant_role:
|
|
1867
|
-
}).passthrough();
|
|
1868
|
-
var OpenAIConnectionParamsSchema =
|
|
1869
|
-
api_key:
|
|
1870
|
-
model_name:
|
|
1871
|
-
}).passthrough();
|
|
1872
|
-
var HuggingfaceConnectionParamsSchema =
|
|
1873
|
-
api_key:
|
|
1874
|
-
model_name:
|
|
1875
|
-
}).passthrough();
|
|
1876
|
-
var DatabricksConnectionParamsSchema =
|
|
1877
|
-
auth_type:
|
|
1878
|
-
workspace_url:
|
|
1879
|
-
model_name:
|
|
1880
|
-
access_token:
|
|
1881
|
-
client_id:
|
|
1882
|
-
secret:
|
|
1883
|
-
}).passthrough();
|
|
1884
|
-
var BedrockAccessConnectionParamsSchema =
|
|
1885
|
-
access_id:
|
|
1886
|
-
access_secret:
|
|
1887
|
-
region:
|
|
1888
|
-
model_id:
|
|
1889
|
-
session_token:
|
|
1890
|
-
}).passthrough();
|
|
1891
|
-
var RestConnectionParamsSchema =
|
|
1892
|
-
api_endpoint:
|
|
1893
|
-
request_headers:
|
|
1894
|
-
request_json:
|
|
1895
|
-
response_json:
|
|
1896
|
-
response_key:
|
|
1897
|
-
target_connection_config:
|
|
1898
|
-
curl:
|
|
1899
|
-
multi_turn_config:
|
|
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:
|
|
1903
|
-
response_stop_value:
|
|
2300
|
+
response_stop_key: import_zod25.z.string(),
|
|
2301
|
+
response_stop_value: import_zod25.z.string()
|
|
1904
2302
|
}).passthrough();
|
|
1905
|
-
var ConnectionParamsSchema =
|
|
2303
|
+
var ConnectionParamsSchema = import_zod25.z.union([
|
|
1906
2304
|
StreamingConnectionParamsSchema,
|
|
1907
2305
|
RestConnectionParamsSchema
|
|
1908
2306
|
]);
|
|
1909
|
-
var TargetJobRequestSchema =
|
|
1910
|
-
uuid:
|
|
1911
|
-
version:
|
|
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 =
|
|
1914
|
-
queued_at:
|
|
1915
|
-
started_at:
|
|
1916
|
-
completed_at:
|
|
1917
|
-
time_taken:
|
|
1918
|
-
}).passthrough();
|
|
1919
|
-
var StaticJobMetadataSchema =
|
|
1920
|
-
categories:
|
|
1921
|
-
rate_limit_enabled:
|
|
1922
|
-
rate_limit:
|
|
1923
|
-
rate_limit_error_code:
|
|
1924
|
-
rate_limit_error_message:
|
|
1925
|
-
rate_limit_error_json:
|
|
1926
|
-
content_filter_enabled:
|
|
1927
|
-
content_filter_error_code:
|
|
1928
|
-
content_filter_error_message:
|
|
1929
|
-
content_filter_error_json:
|
|
1930
|
-
}).passthrough();
|
|
1931
|
-
var DynamicJobMetadataSchema =
|
|
1932
|
-
rate_limit_enabled:
|
|
1933
|
-
rate_limit:
|
|
1934
|
-
rate_limit_error_code:
|
|
1935
|
-
rate_limit_error_message:
|
|
1936
|
-
rate_limit_error_json:
|
|
1937
|
-
content_filter_enabled:
|
|
1938
|
-
content_filter_error_code:
|
|
1939
|
-
content_filter_error_message:
|
|
1940
|
-
content_filter_error_json:
|
|
1941
|
-
stream_breadth:
|
|
1942
|
-
stream_depth:
|
|
1943
|
-
max_tokens:
|
|
1944
|
-
context_size:
|
|
1945
|
-
attack_goals:
|
|
1946
|
-
base_model:
|
|
1947
|
-
use_case:
|
|
1948
|
-
system_prompt:
|
|
1949
|
-
}).passthrough();
|
|
1950
|
-
var CustomJobMetadataSchema =
|
|
1951
|
-
custom_prompt_sets:
|
|
1952
|
-
rate_limit_enabled:
|
|
1953
|
-
rate_limit:
|
|
1954
|
-
rate_limit_error_code:
|
|
1955
|
-
rate_limit_error_message:
|
|
1956
|
-
rate_limit_error_json:
|
|
1957
|
-
content_filter_enabled:
|
|
1958
|
-
content_filter_error_code:
|
|
1959
|
-
content_filter_error_message:
|
|
1960
|
-
content_filter_error_json:
|
|
1961
|
-
}).passthrough();
|
|
1962
|
-
var JobCreateRequestSchema =
|
|
1963
|
-
name:
|
|
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:
|
|
1966
|
-
job_metadata:
|
|
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:
|
|
1972
|
-
extra_info:
|
|
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 =
|
|
1975
|
-
output_completion_percentage:
|
|
1976
|
-
partial_report_unlocked:
|
|
1977
|
-
partial_report_unlocked_at:
|
|
1978
|
-
report_summary:
|
|
1979
|
-
}).passthrough();
|
|
1980
|
-
var DynamicJobReportStatsSchema =
|
|
1981
|
-
total_goals:
|
|
1982
|
-
total_streams:
|
|
1983
|
-
total_threats:
|
|
1984
|
-
goals_achieved:
|
|
1985
|
-
report_summary:
|
|
1986
|
-
}).passthrough();
|
|
1987
|
-
var TargetReferenceSchema =
|
|
1988
|
-
uuid:
|
|
1989
|
-
tsg_id:
|
|
1990
|
-
name:
|
|
1991
|
-
description:
|
|
1992
|
-
target_type:
|
|
1993
|
-
connection_type:
|
|
1994
|
-
api_endpoint_type:
|
|
1995
|
-
response_mode:
|
|
1996
|
-
session_supported:
|
|
1997
|
-
extra_info:
|
|
1998
|
-
status:
|
|
1999
|
-
active:
|
|
2000
|
-
validated:
|
|
2001
|
-
version:
|
|
2002
|
-
secret_version:
|
|
2003
|
-
created_by_user_id:
|
|
2004
|
-
updated_by_user_id:
|
|
2005
|
-
created_at:
|
|
2006
|
-
updated_at:
|
|
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:
|
|
2407
|
+
profiling_status: import_zod25.z.string().nullable().optional(),
|
|
2010
2408
|
additional_context: TargetAdditionalContextSchema.nullable().optional()
|
|
2011
2409
|
}).passthrough();
|
|
2012
|
-
var JobResponseSchema =
|
|
2013
|
-
uuid:
|
|
2014
|
-
tsg_id:
|
|
2015
|
-
name:
|
|
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:
|
|
2018
|
-
job_metadata:
|
|
2019
|
-
version:
|
|
2020
|
-
extra_info:
|
|
2021
|
-
target_id:
|
|
2022
|
-
target_type:
|
|
2023
|
-
total:
|
|
2024
|
-
completed:
|
|
2025
|
-
status:
|
|
2026
|
-
score:
|
|
2027
|
-
asr:
|
|
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:
|
|
2030
|
-
updated_at:
|
|
2031
|
-
created_by_user_id:
|
|
2032
|
-
report_stats:
|
|
2033
|
-
metering_quota_uuid:
|
|
2034
|
-
counted_towards_quota:
|
|
2035
|
-
invocation_id:
|
|
2036
|
-
}).passthrough();
|
|
2037
|
-
var JobListResponseSchema =
|
|
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:
|
|
2437
|
+
data: import_zod25.z.array(JobResponseSchema)
|
|
2040
2438
|
}).passthrough();
|
|
2041
|
-
var JobAbortResponseSchema =
|
|
2042
|
-
job_id:
|
|
2043
|
-
message:
|
|
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 =
|
|
2046
|
-
id:
|
|
2047
|
-
display_name:
|
|
2048
|
-
description:
|
|
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 =
|
|
2051
|
-
id:
|
|
2052
|
-
display_name:
|
|
2053
|
-
description:
|
|
2054
|
-
preselect:
|
|
2055
|
-
prerequisites:
|
|
2056
|
-
active:
|
|
2057
|
-
}).passthrough();
|
|
2058
|
-
var CategoryModelSchema =
|
|
2059
|
-
id:
|
|
2060
|
-
display_name:
|
|
2061
|
-
description:
|
|
2062
|
-
preselect:
|
|
2063
|
-
sub_categories:
|
|
2064
|
-
}).passthrough();
|
|
2065
|
-
var AttackOutputSchema =
|
|
2066
|
-
uuid:
|
|
2067
|
-
tsg_id:
|
|
2068
|
-
attack_id:
|
|
2069
|
-
job_id:
|
|
2070
|
-
target_id:
|
|
2071
|
-
output:
|
|
2072
|
-
threat:
|
|
2073
|
-
marked_safe:
|
|
2074
|
-
}).passthrough();
|
|
2075
|
-
var AttackMultiTurnOutputSchema =
|
|
2076
|
-
uuid:
|
|
2077
|
-
tsg_id:
|
|
2078
|
-
attack_id:
|
|
2079
|
-
job_id:
|
|
2080
|
-
target_id:
|
|
2081
|
-
output:
|
|
2082
|
-
prompt:
|
|
2083
|
-
turn:
|
|
2084
|
-
threat:
|
|
2085
|
-
marked_safe:
|
|
2086
|
-
generation:
|
|
2087
|
-
multi_turn:
|
|
2088
|
-
}).passthrough();
|
|
2089
|
-
var AttackListItemSchema =
|
|
2090
|
-
uuid:
|
|
2091
|
-
tsg_id:
|
|
2092
|
-
job_id:
|
|
2093
|
-
target_id:
|
|
2094
|
-
prompt:
|
|
2095
|
-
prompt_mapping_id:
|
|
2096
|
-
prompt_id:
|
|
2097
|
-
category:
|
|
2098
|
-
sub_category:
|
|
2099
|
-
category_display_name:
|
|
2100
|
-
sub_category_display_name:
|
|
2101
|
-
status:
|
|
2102
|
-
marked_safe:
|
|
2103
|
-
extra_info:
|
|
2104
|
-
threat:
|
|
2105
|
-
attack_type:
|
|
2106
|
-
multi_turn:
|
|
2107
|
-
asr:
|
|
2108
|
-
version:
|
|
2109
|
-
severity:
|
|
2110
|
-
}).passthrough();
|
|
2111
|
-
var AttackListResponseSchema =
|
|
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:
|
|
2114
|
-
}).passthrough();
|
|
2115
|
-
var AttackDetailResponseSchema =
|
|
2116
|
-
uuid:
|
|
2117
|
-
tsg_id:
|
|
2118
|
-
job_id:
|
|
2119
|
-
target_id:
|
|
2120
|
-
prompt:
|
|
2121
|
-
prompt_mapping_id:
|
|
2122
|
-
prompt_id:
|
|
2123
|
-
category:
|
|
2124
|
-
sub_category:
|
|
2125
|
-
category_display_name:
|
|
2126
|
-
sub_category_display_name:
|
|
2127
|
-
compliance_frameworks:
|
|
2128
|
-
goal:
|
|
2129
|
-
status:
|
|
2130
|
-
marked_safe:
|
|
2131
|
-
extra_info:
|
|
2132
|
-
threat:
|
|
2133
|
-
attack_type:
|
|
2134
|
-
multi_turn:
|
|
2135
|
-
asr:
|
|
2136
|
-
version:
|
|
2137
|
-
severity:
|
|
2138
|
-
outputs:
|
|
2139
|
-
}).passthrough();
|
|
2140
|
-
var AttackMultiTurnDetailResponseSchema =
|
|
2141
|
-
uuid:
|
|
2142
|
-
tsg_id:
|
|
2143
|
-
job_id:
|
|
2144
|
-
target_id:
|
|
2145
|
-
prompt:
|
|
2146
|
-
prompt_mapping_id:
|
|
2147
|
-
prompt_id:
|
|
2148
|
-
category:
|
|
2149
|
-
sub_category:
|
|
2150
|
-
category_display_name:
|
|
2151
|
-
sub_category_display_name:
|
|
2152
|
-
compliance_frameworks:
|
|
2153
|
-
goal:
|
|
2154
|
-
status:
|
|
2155
|
-
marked_safe:
|
|
2156
|
-
extra_info:
|
|
2157
|
-
threat:
|
|
2158
|
-
attack_type:
|
|
2159
|
-
multi_turn:
|
|
2160
|
-
asr:
|
|
2161
|
-
version:
|
|
2162
|
-
severity:
|
|
2163
|
-
outputs:
|
|
2164
|
-
}).passthrough();
|
|
2165
|
-
var SubCategoryStatsSchema =
|
|
2166
|
-
id:
|
|
2167
|
-
display_name:
|
|
2168
|
-
description:
|
|
2169
|
-
preselect:
|
|
2170
|
-
prerequisites:
|
|
2171
|
-
active:
|
|
2172
|
-
successful:
|
|
2173
|
-
failed:
|
|
2174
|
-
total:
|
|
2175
|
-
}).passthrough();
|
|
2176
|
-
var CategoryReportSchema =
|
|
2177
|
-
id:
|
|
2178
|
-
display_name:
|
|
2179
|
-
description:
|
|
2180
|
-
preselect:
|
|
2181
|
-
sub_categories:
|
|
2182
|
-
asr:
|
|
2183
|
-
total_prompts:
|
|
2184
|
-
total_attacks:
|
|
2185
|
-
successful:
|
|
2186
|
-
failed:
|
|
2187
|
-
}).passthrough();
|
|
2188
|
-
var SeverityStatsSchema =
|
|
2189
|
-
severity:
|
|
2190
|
-
successful:
|
|
2191
|
-
failed:
|
|
2192
|
-
}).passthrough();
|
|
2193
|
-
var SeverityReportSchema =
|
|
2194
|
-
stats:
|
|
2195
|
-
successful:
|
|
2196
|
-
failed:
|
|
2197
|
-
total_attacks:
|
|
2198
|
-
}).passthrough();
|
|
2199
|
-
var ComplianceTechniqueSchema =
|
|
2200
|
-
id:
|
|
2201
|
-
display_name:
|
|
2202
|
-
compliance_id:
|
|
2203
|
-
description:
|
|
2204
|
-
link:
|
|
2205
|
-
version:
|
|
2206
|
-
active:
|
|
2207
|
-
successful:
|
|
2208
|
-
failed:
|
|
2209
|
-
total:
|
|
2210
|
-
}).passthrough();
|
|
2211
|
-
var ComplianceReportSchema =
|
|
2212
|
-
id:
|
|
2213
|
-
display_name:
|
|
2214
|
-
description:
|
|
2215
|
-
active:
|
|
2216
|
-
version:
|
|
2217
|
-
link:
|
|
2218
|
-
techniques:
|
|
2219
|
-
score:
|
|
2220
|
-
}).passthrough();
|
|
2221
|
-
var RuntimeSecurityPolicySchema =
|
|
2222
|
-
policy_id:
|
|
2223
|
-
display_name:
|
|
2224
|
-
config:
|
|
2225
|
-
}).passthrough();
|
|
2226
|
-
var StaticJobRemediationSchema =
|
|
2227
|
-
remediation:
|
|
2228
|
-
description:
|
|
2229
|
-
mapping_remediation_id:
|
|
2230
|
-
subcategories:
|
|
2231
|
-
effectiveness:
|
|
2232
|
-
ease_of_implementation:
|
|
2233
|
-
priority:
|
|
2234
|
-
resource_links:
|
|
2235
|
-
categories:
|
|
2236
|
-
}).passthrough();
|
|
2237
|
-
var StaticJobRemediationRecommendationSchema =
|
|
2238
|
-
runtime_security_policy_configuration:
|
|
2239
|
-
other_measures:
|
|
2240
|
-
}).passthrough();
|
|
2241
|
-
var StaticJobReportSchema =
|
|
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:
|
|
2244
|
-
score:
|
|
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:
|
|
2249
|
-
report_summary:
|
|
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 =
|
|
2253
|
-
total_goals:
|
|
2254
|
-
total_streams:
|
|
2255
|
-
total_threats:
|
|
2256
|
-
goals_achieved:
|
|
2257
|
-
report_summary:
|
|
2258
|
-
score:
|
|
2259
|
-
asr:
|
|
2260
|
-
}).passthrough();
|
|
2261
|
-
var RemediationDetailSchema =
|
|
2262
|
-
remediation:
|
|
2263
|
-
description:
|
|
2264
|
-
resource_links:
|
|
2265
|
-
priority_level:
|
|
2266
|
-
ease_of_implementation_level:
|
|
2267
|
-
effectiveness_level:
|
|
2268
|
-
}).passthrough();
|
|
2269
|
-
var RemediationResponseSchema =
|
|
2270
|
-
var RuntimeSecurityProfileResponseSchema =
|
|
2271
|
-
runtime_security_profile:
|
|
2272
|
-
}).passthrough();
|
|
2273
|
-
var GoalSchema =
|
|
2274
|
-
goal:
|
|
2275
|
-
safe_response:
|
|
2276
|
-
jailbroken_response:
|
|
2277
|
-
goal_metadata:
|
|
2278
|
-
custom_goal:
|
|
2279
|
-
goal_type:
|
|
2280
|
-
uuid:
|
|
2281
|
-
tsg_id:
|
|
2282
|
-
job_id:
|
|
2283
|
-
goal_to_show:
|
|
2284
|
-
threat:
|
|
2285
|
-
version:
|
|
2286
|
-
extra_info:
|
|
2287
|
-
}).passthrough();
|
|
2288
|
-
var GoalListResponseSchema =
|
|
2289
|
-
var StreamIterationDataSchema =
|
|
2290
|
-
uuid:
|
|
2291
|
-
tsg_id:
|
|
2292
|
-
job_id:
|
|
2293
|
-
stream_id:
|
|
2294
|
-
goal_id:
|
|
2295
|
-
iteration:
|
|
2296
|
-
prompt:
|
|
2297
|
-
techniques:
|
|
2298
|
-
improvement:
|
|
2299
|
-
prompts_objective:
|
|
2300
|
-
summary:
|
|
2301
|
-
output:
|
|
2302
|
-
score:
|
|
2303
|
-
judge_reasoning:
|
|
2304
|
-
threat:
|
|
2305
|
-
created_at:
|
|
2306
|
-
updated_at:
|
|
2307
|
-
extra_info:
|
|
2308
|
-
version:
|
|
2309
|
-
}).passthrough();
|
|
2310
|
-
var StreamDetailResponseSchema =
|
|
2311
|
-
uuid:
|
|
2312
|
-
tsg_id:
|
|
2313
|
-
job_id:
|
|
2314
|
-
target_id:
|
|
2315
|
-
goal_id:
|
|
2316
|
-
stream_idx:
|
|
2317
|
-
iteration:
|
|
2318
|
-
goal:
|
|
2319
|
-
marked_safe:
|
|
2320
|
-
stream_type:
|
|
2321
|
-
threat:
|
|
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:
|
|
2324
|
-
updated_at:
|
|
2325
|
-
extra_info:
|
|
2326
|
-
version:
|
|
2327
|
-
iterations:
|
|
2328
|
-
}).passthrough();
|
|
2329
|
-
var StreamListResponseSchema =
|
|
2330
|
-
var CustomAttackOutputSchema =
|
|
2331
|
-
uuid:
|
|
2332
|
-
tsg_id:
|
|
2333
|
-
custom_attack_id:
|
|
2334
|
-
job_id:
|
|
2335
|
-
target_id:
|
|
2336
|
-
output:
|
|
2337
|
-
threat:
|
|
2338
|
-
marked_safe:
|
|
2339
|
-
}).passthrough();
|
|
2340
|
-
var PropertyAssignmentSchema =
|
|
2341
|
-
name:
|
|
2342
|
-
value:
|
|
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 =
|
|
2345
|
-
value:
|
|
2346
|
-
successful_attack_count:
|
|
2347
|
-
total_attack_count:
|
|
2348
|
-
success_rate:
|
|
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 =
|
|
2351
|
-
property_name:
|
|
2352
|
-
values:
|
|
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 =
|
|
2355
|
-
prompt_set_id:
|
|
2356
|
-
prompt_set_name:
|
|
2357
|
-
total_prompts:
|
|
2358
|
-
total_attacks:
|
|
2359
|
-
total_threats:
|
|
2360
|
-
failed_attacks:
|
|
2361
|
-
threat_rate:
|
|
2362
|
-
property_names:
|
|
2363
|
-
property_statistics:
|
|
2364
|
-
}).passthrough();
|
|
2365
|
-
var CustomAttackReportResponseSchema =
|
|
2366
|
-
total_prompts:
|
|
2367
|
-
total_attacks:
|
|
2368
|
-
total_threats:
|
|
2369
|
-
failed_attacks:
|
|
2370
|
-
score:
|
|
2371
|
-
asr:
|
|
2372
|
-
custom_attack_reports:
|
|
2373
|
-
property_statistics:
|
|
2374
|
-
}).passthrough();
|
|
2375
|
-
var PromptSetsReportResponseSchema =
|
|
2376
|
-
prompt_sets:
|
|
2377
|
-
total_prompt_sets:
|
|
2378
|
-
applied_filters:
|
|
2379
|
-
}).passthrough();
|
|
2380
|
-
var PromptDetailResponseSchema =
|
|
2381
|
-
prompt_id:
|
|
2382
|
-
prompt_text:
|
|
2383
|
-
goal:
|
|
2384
|
-
user_defined_goal:
|
|
2385
|
-
properties:
|
|
2386
|
-
attack_id:
|
|
2387
|
-
threat:
|
|
2388
|
-
attack_outputs:
|
|
2389
|
-
asr:
|
|
2390
|
-
prompt_set_id:
|
|
2391
|
-
prompt_set_name:
|
|
2392
|
-
}).passthrough();
|
|
2393
|
-
var CustomAttacksListResponseSchema =
|
|
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:
|
|
2396
|
-
total_attacks:
|
|
2397
|
-
total_threats:
|
|
2398
|
-
}).passthrough();
|
|
2399
|
-
var RiskLevelSchema =
|
|
2400
|
-
risk_rating:
|
|
2401
|
-
total:
|
|
2402
|
-
targets_by_type:
|
|
2403
|
-
}).passthrough();
|
|
2404
|
-
var ScanStatisticsResponseSchema =
|
|
2405
|
-
total_scans:
|
|
2406
|
-
targets_scanned:
|
|
2407
|
-
targets_scanned_by_type:
|
|
2408
|
-
scan_status:
|
|
2409
|
-
risk_profile:
|
|
2410
|
-
}).passthrough();
|
|
2411
|
-
var ScoreTrendSeriesSchema =
|
|
2412
|
-
label:
|
|
2413
|
-
data:
|
|
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 =
|
|
2416
|
-
labels:
|
|
2417
|
-
series:
|
|
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 =
|
|
2420
|
-
job_id:
|
|
2421
|
-
up_vote:
|
|
2422
|
-
down_vote:
|
|
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 =
|
|
2425
|
-
job_id:
|
|
2426
|
-
up_vote:
|
|
2427
|
-
down_vote:
|
|
2428
|
-
}).passthrough();
|
|
2429
|
-
var QuotaDetailsSchema =
|
|
2430
|
-
allocated:
|
|
2431
|
-
unlimited:
|
|
2432
|
-
consumed:
|
|
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 =
|
|
2832
|
+
var QuotaSummarySchema = import_zod25.z.object({
|
|
2435
2833
|
static: QuotaDetailsSchema,
|
|
2436
2834
|
dynamic: QuotaDetailsSchema,
|
|
2437
2835
|
custom: QuotaDetailsSchema
|
|
2438
2836
|
});
|
|
2439
|
-
var ErrorLogSchema =
|
|
2440
|
-
created_at:
|
|
2441
|
-
updated_at:
|
|
2442
|
-
job_id:
|
|
2443
|
-
target_id:
|
|
2444
|
-
target_version:
|
|
2445
|
-
attack_id:
|
|
2446
|
-
error_type:
|
|
2447
|
-
error_source:
|
|
2448
|
-
error_message:
|
|
2449
|
-
target_object:
|
|
2450
|
-
extra_info:
|
|
2451
|
-
version:
|
|
2452
|
-
}).passthrough();
|
|
2453
|
-
var ErrorLogListResponseSchema =
|
|
2454
|
-
var TargetCreateRequestSchema =
|
|
2455
|
-
name:
|
|
2456
|
-
description:
|
|
2457
|
-
target_type:
|
|
2458
|
-
connection_type:
|
|
2459
|
-
api_endpoint_type:
|
|
2460
|
-
response_mode:
|
|
2461
|
-
connection_params:
|
|
2462
|
-
session_supported:
|
|
2463
|
-
target_metadata:
|
|
2464
|
-
target_background:
|
|
2465
|
-
additional_context:
|
|
2466
|
-
extra_info:
|
|
2467
|
-
network_broker_channel_uuid:
|
|
2468
|
-
}).passthrough();
|
|
2469
|
-
var TargetUpdateRequestSchema =
|
|
2470
|
-
name:
|
|
2471
|
-
description:
|
|
2472
|
-
target_type:
|
|
2473
|
-
connection_type:
|
|
2474
|
-
api_endpoint_type:
|
|
2475
|
-
response_mode:
|
|
2476
|
-
connection_params:
|
|
2477
|
-
session_supported:
|
|
2478
|
-
target_metadata:
|
|
2479
|
-
target_background:
|
|
2480
|
-
additional_context:
|
|
2481
|
-
extra_info:
|
|
2482
|
-
network_broker_channel_uuid:
|
|
2483
|
-
}).passthrough();
|
|
2484
|
-
var TargetContextUpdateSchema =
|
|
2485
|
-
target_background:
|
|
2486
|
-
additional_context:
|
|
2487
|
-
}).passthrough();
|
|
2488
|
-
var TargetResponseSchema =
|
|
2489
|
-
uuid:
|
|
2490
|
-
tsg_id:
|
|
2491
|
-
name:
|
|
2492
|
-
status:
|
|
2493
|
-
active:
|
|
2494
|
-
validated:
|
|
2495
|
-
created_at:
|
|
2496
|
-
updated_at:
|
|
2497
|
-
description:
|
|
2498
|
-
target_type:
|
|
2499
|
-
connection_type:
|
|
2500
|
-
api_endpoint_type:
|
|
2501
|
-
response_mode:
|
|
2502
|
-
session_supported:
|
|
2503
|
-
extra_info:
|
|
2504
|
-
version:
|
|
2505
|
-
secret_version:
|
|
2506
|
-
created_by_user_id:
|
|
2507
|
-
updated_by_user_id:
|
|
2508
|
-
target_metadata:
|
|
2509
|
-
target_background:
|
|
2510
|
-
profiling_status:
|
|
2511
|
-
additional_context:
|
|
2512
|
-
}).passthrough();
|
|
2513
|
-
var TargetListItemSchema =
|
|
2514
|
-
uuid:
|
|
2515
|
-
tsg_id:
|
|
2516
|
-
name:
|
|
2517
|
-
status:
|
|
2518
|
-
active:
|
|
2519
|
-
validated:
|
|
2520
|
-
created_at:
|
|
2521
|
-
updated_at:
|
|
2522
|
-
description:
|
|
2523
|
-
target_type:
|
|
2524
|
-
connection_type:
|
|
2525
|
-
api_endpoint_type:
|
|
2526
|
-
response_mode:
|
|
2527
|
-
session_supported:
|
|
2528
|
-
extra_info:
|
|
2529
|
-
version:
|
|
2530
|
-
secret_version:
|
|
2531
|
-
created_by_user_id:
|
|
2532
|
-
updated_by_user_id:
|
|
2533
|
-
}).passthrough();
|
|
2534
|
-
var TargetListSchema =
|
|
2535
|
-
var TargetProbeRequestSchema =
|
|
2536
|
-
name:
|
|
2537
|
-
uuid:
|
|
2538
|
-
description:
|
|
2539
|
-
target_type:
|
|
2540
|
-
connection_type:
|
|
2541
|
-
api_endpoint_type:
|
|
2542
|
-
response_mode:
|
|
2543
|
-
connection_params:
|
|
2544
|
-
session_supported:
|
|
2545
|
-
target_metadata:
|
|
2546
|
-
target_background:
|
|
2547
|
-
additional_context:
|
|
2548
|
-
extra_info:
|
|
2549
|
-
network_broker_channel_uuid:
|
|
2550
|
-
probe_fields:
|
|
2551
|
-
}).passthrough();
|
|
2552
|
-
var TargetProfileResponseSchema =
|
|
2553
|
-
target_id:
|
|
2554
|
-
target_version:
|
|
2555
|
-
status:
|
|
2556
|
-
profiling_status:
|
|
2557
|
-
target_background:
|
|
2558
|
-
additional_context:
|
|
2559
|
-
ai_generated_fields:
|
|
2560
|
-
other_details:
|
|
2561
|
-
}).passthrough();
|
|
2562
|
-
var BaseResponseSchema =
|
|
2563
|
-
message:
|
|
2564
|
-
status:
|
|
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 =
|
|
2567
|
-
total_prompts:
|
|
2568
|
-
active_prompts:
|
|
2569
|
-
inactive_prompts:
|
|
2570
|
-
failed_prompts:
|
|
2571
|
-
validation_prompts:
|
|
2572
|
-
}).passthrough();
|
|
2573
|
-
var CustomPromptSetCreateRequestSchema =
|
|
2574
|
-
name:
|
|
2575
|
-
description:
|
|
2576
|
-
property_names:
|
|
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 =
|
|
2579
|
-
name:
|
|
2580
|
-
description:
|
|
2581
|
-
archive:
|
|
2582
|
-
property_names:
|
|
2583
|
-
}).passthrough();
|
|
2584
|
-
var CustomPromptSetArchiveRequestSchema =
|
|
2585
|
-
var CustomPromptSetResponseSchema =
|
|
2586
|
-
uuid:
|
|
2587
|
-
name:
|
|
2588
|
-
active:
|
|
2589
|
-
archive:
|
|
2590
|
-
status:
|
|
2591
|
-
created_at:
|
|
2592
|
-
updated_at:
|
|
2593
|
-
description:
|
|
2594
|
-
property_names:
|
|
2595
|
-
properties:
|
|
2596
|
-
stats:
|
|
2597
|
-
extra_info:
|
|
2598
|
-
version:
|
|
2599
|
-
created_by_user_id:
|
|
2600
|
-
updated_by_user_id:
|
|
2601
|
-
}).passthrough();
|
|
2602
|
-
var CustomPromptSetListItemSchema =
|
|
2603
|
-
uuid:
|
|
2604
|
-
name:
|
|
2605
|
-
active:
|
|
2606
|
-
archive:
|
|
2607
|
-
status:
|
|
2608
|
-
created_at:
|
|
2609
|
-
updated_at:
|
|
2610
|
-
description:
|
|
2611
|
-
property_names:
|
|
2612
|
-
stats:
|
|
2613
|
-
created_by_user_id:
|
|
2614
|
-
}).passthrough();
|
|
2615
|
-
var CustomPromptSetListSchema =
|
|
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:
|
|
2618
|
-
}).passthrough();
|
|
2619
|
-
var CustomPromptSetListActiveSchema =
|
|
2620
|
-
var CustomPromptSetReferenceSchema =
|
|
2621
|
-
uuid:
|
|
2622
|
-
name:
|
|
2623
|
-
status:
|
|
2624
|
-
active:
|
|
2625
|
-
tsg_id:
|
|
2626
|
-
created_at:
|
|
2627
|
-
updated_at:
|
|
2628
|
-
version:
|
|
2629
|
-
}).passthrough();
|
|
2630
|
-
var CustomPromptSetVersionInfoSchema =
|
|
2631
|
-
uuid:
|
|
2632
|
-
status:
|
|
2633
|
-
is_latest:
|
|
2634
|
-
version:
|
|
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:
|
|
3034
|
+
snapshot_created_at: import_zod25.z.string().nullable().optional()
|
|
2637
3035
|
}).passthrough();
|
|
2638
|
-
var CustomPromptCreateRequestSchema =
|
|
2639
|
-
prompt:
|
|
2640
|
-
prompt_set_id:
|
|
2641
|
-
goal:
|
|
2642
|
-
properties:
|
|
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 =
|
|
2645
|
-
prompt:
|
|
2646
|
-
goal:
|
|
2647
|
-
properties:
|
|
2648
|
-
}).passthrough();
|
|
2649
|
-
var CustomPromptResponseSchema =
|
|
2650
|
-
uuid:
|
|
2651
|
-
prompt:
|
|
2652
|
-
user_defined_goal:
|
|
2653
|
-
status:
|
|
2654
|
-
active:
|
|
2655
|
-
prompt_set_id:
|
|
2656
|
-
created_at:
|
|
2657
|
-
updated_at:
|
|
2658
|
-
goal:
|
|
2659
|
-
properties:
|
|
2660
|
-
property_assignments:
|
|
2661
|
-
detector_category:
|
|
2662
|
-
severity:
|
|
2663
|
-
extra_info:
|
|
2664
|
-
}).passthrough();
|
|
2665
|
-
var CustomPromptListItemSchema =
|
|
2666
|
-
uuid:
|
|
2667
|
-
prompt:
|
|
2668
|
-
user_defined_goal:
|
|
2669
|
-
status:
|
|
2670
|
-
active:
|
|
2671
|
-
created_at:
|
|
2672
|
-
updated_at:
|
|
2673
|
-
goal:
|
|
2674
|
-
properties:
|
|
2675
|
-
}).passthrough();
|
|
2676
|
-
var CustomPromptListSchema =
|
|
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:
|
|
3076
|
+
data: import_zod25.z.array(CustomPromptListItemSchema).optional()
|
|
2679
3077
|
}).passthrough();
|
|
2680
|
-
var PropertyNameCreateRequestSchema =
|
|
2681
|
-
var PropertyValueCreateRequestSchema =
|
|
2682
|
-
property_name:
|
|
2683
|
-
property_value:
|
|
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 =
|
|
2686
|
-
property_name:
|
|
2687
|
-
created_at:
|
|
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 =
|
|
2690
|
-
var PropertyValuesResponseSchema =
|
|
2691
|
-
name:
|
|
2692
|
-
values:
|
|
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 =
|
|
2695
|
-
var DashboardOverviewResponseSchema =
|
|
2696
|
-
total_targets:
|
|
2697
|
-
targets_by_type:
|
|
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
|
|
2702
|
-
var OAuthTokenResponseSchema =
|
|
2703
|
-
access_token:
|
|
2704
|
-
token_type:
|
|
2705
|
-
expires_in:
|
|
2706
|
-
scope:
|
|
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
|
|
@@ -2838,7 +3236,13 @@ async function managementHttpRequest(opts) {
|
|
|
2838
3236
|
const url = new URL(`${stripped}${path}`);
|
|
2839
3237
|
if (params) {
|
|
2840
3238
|
for (const [key, value] of Object.entries(params)) {
|
|
2841
|
-
|
|
3239
|
+
if (Array.isArray(value)) {
|
|
3240
|
+
for (const v of value) {
|
|
3241
|
+
url.searchParams.append(key, v);
|
|
3242
|
+
}
|
|
3243
|
+
} else {
|
|
3244
|
+
url.searchParams.set(key, value);
|
|
3245
|
+
}
|
|
2842
3246
|
}
|
|
2843
3247
|
}
|
|
2844
3248
|
const headers = {
|
|
@@ -2866,8 +3270,327 @@ async function managementHttpRequest(opts) {
|
|
|
2866
3270
|
return { status: response.status, data };
|
|
2867
3271
|
}
|
|
2868
3272
|
|
|
2869
|
-
// src/management/profiles.ts
|
|
2870
|
-
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 {
|
|
2871
3594
|
baseUrl;
|
|
2872
3595
|
oauthClient;
|
|
2873
3596
|
tsgId;
|
|
@@ -2879,25 +3602,25 @@ var ProfilesClient = class {
|
|
|
2879
3602
|
this.numRetries = opts.numRetries;
|
|
2880
3603
|
}
|
|
2881
3604
|
/**
|
|
2882
|
-
*
|
|
2883
|
-
* @param
|
|
2884
|
-
* @returns The
|
|
3605
|
+
* Get a customer app by name.
|
|
3606
|
+
* @param appName - Name of the customer app.
|
|
3607
|
+
* @returns The customer app.
|
|
2885
3608
|
*/
|
|
2886
|
-
async
|
|
3609
|
+
async get(appName) {
|
|
2887
3610
|
const res = await managementHttpRequest({
|
|
2888
|
-
method: "
|
|
3611
|
+
method: "GET",
|
|
2889
3612
|
baseUrl: this.baseUrl,
|
|
2890
|
-
path:
|
|
2891
|
-
|
|
3613
|
+
path: MGMT_CUSTOMER_APP_PATH,
|
|
3614
|
+
params: { app_name: appName },
|
|
2892
3615
|
oauthClient: this.oauthClient,
|
|
2893
3616
|
numRetries: this.numRetries
|
|
2894
3617
|
});
|
|
2895
3618
|
return res.data;
|
|
2896
3619
|
}
|
|
2897
3620
|
/**
|
|
2898
|
-
* List
|
|
3621
|
+
* List customer apps for the TSG.
|
|
2899
3622
|
* @param opts - Pagination options.
|
|
2900
|
-
* @returns Paginated list of
|
|
3623
|
+
* @returns Paginated list of customer apps.
|
|
2901
3624
|
*/
|
|
2902
3625
|
async list(opts) {
|
|
2903
3626
|
const params = {
|
|
@@ -2907,7 +3630,7 @@ var ProfilesClient = class {
|
|
|
2907
3630
|
const res = await managementHttpRequest({
|
|
2908
3631
|
method: "GET",
|
|
2909
3632
|
baseUrl: this.baseUrl,
|
|
2910
|
-
path: `${
|
|
3633
|
+
path: `${MGMT_CUSTOMER_APPS_TSG_PATH}/${this.tsgId}`,
|
|
2911
3634
|
params,
|
|
2912
3635
|
oauthClient: this.oauthClient,
|
|
2913
3636
|
numRetries: this.numRetries
|
|
@@ -2915,22 +3638,17 @@ var ProfilesClient = class {
|
|
|
2915
3638
|
return res.data;
|
|
2916
3639
|
}
|
|
2917
3640
|
/**
|
|
2918
|
-
* Update
|
|
2919
|
-
* @param
|
|
2920
|
-
* @param request - Updated
|
|
2921
|
-
* @returns The updated
|
|
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.
|
|
2922
3645
|
*/
|
|
2923
|
-
async update(
|
|
2924
|
-
if (!isValidUuid(profileId)) {
|
|
2925
|
-
throw new AISecSDKException(
|
|
2926
|
-
`Invalid profile_id: ${profileId}`,
|
|
2927
|
-
"AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
|
|
2928
|
-
);
|
|
2929
|
-
}
|
|
3646
|
+
async update(customerAppId, request) {
|
|
2930
3647
|
const res = await managementHttpRequest({
|
|
2931
3648
|
method: "PUT",
|
|
2932
3649
|
baseUrl: this.baseUrl,
|
|
2933
|
-
path:
|
|
3650
|
+
path: MGMT_CUSTOMER_APP_PATH,
|
|
3651
|
+
params: { customer_app_id: customerAppId },
|
|
2934
3652
|
body: request,
|
|
2935
3653
|
oauthClient: this.oauthClient,
|
|
2936
3654
|
numRetries: this.numRetries
|
|
@@ -2938,21 +3656,17 @@ var ProfilesClient = class {
|
|
|
2938
3656
|
return res.data;
|
|
2939
3657
|
}
|
|
2940
3658
|
/**
|
|
2941
|
-
* Delete a
|
|
2942
|
-
* @param
|
|
2943
|
-
* @
|
|
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.
|
|
2944
3663
|
*/
|
|
2945
|
-
async delete(
|
|
2946
|
-
if (!isValidUuid(profileId)) {
|
|
2947
|
-
throw new AISecSDKException(
|
|
2948
|
-
`Invalid profile_id: ${profileId}`,
|
|
2949
|
-
"AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
|
|
2950
|
-
);
|
|
2951
|
-
}
|
|
3664
|
+
async delete(appName, updatedBy) {
|
|
2952
3665
|
const res = await managementHttpRequest({
|
|
2953
3666
|
method: "DELETE",
|
|
2954
3667
|
baseUrl: this.baseUrl,
|
|
2955
|
-
path:
|
|
3668
|
+
path: MGMT_CUSTOMER_APP_PATH,
|
|
3669
|
+
params: { app_name: appName, updated_by: updatedBy },
|
|
2956
3670
|
oauthClient: this.oauthClient,
|
|
2957
3671
|
numRetries: this.numRetries
|
|
2958
3672
|
});
|
|
@@ -2960,114 +3674,143 @@ var ProfilesClient = class {
|
|
|
2960
3674
|
}
|
|
2961
3675
|
};
|
|
2962
3676
|
|
|
2963
|
-
// src/management/
|
|
2964
|
-
var
|
|
3677
|
+
// src/management/dlp-profiles.ts
|
|
3678
|
+
var DlpProfilesClient = class {
|
|
2965
3679
|
baseUrl;
|
|
2966
3680
|
oauthClient;
|
|
2967
|
-
tsgId;
|
|
2968
3681
|
numRetries;
|
|
2969
3682
|
constructor(opts) {
|
|
2970
3683
|
this.baseUrl = opts.baseUrl;
|
|
2971
3684
|
this.oauthClient = opts.oauthClient;
|
|
2972
|
-
this.tsgId = opts.tsgId;
|
|
2973
3685
|
this.numRetries = opts.numRetries;
|
|
2974
3686
|
}
|
|
2975
3687
|
/**
|
|
2976
|
-
*
|
|
2977
|
-
* @
|
|
2978
|
-
* @returns The created custom topic.
|
|
3688
|
+
* List all DLP profiles for the TSG.
|
|
3689
|
+
* @returns List of DLP profiles.
|
|
2979
3690
|
*/
|
|
2980
|
-
async
|
|
3691
|
+
async list() {
|
|
2981
3692
|
const res = await managementHttpRequest({
|
|
2982
|
-
method: "
|
|
3693
|
+
method: "GET",
|
|
2983
3694
|
baseUrl: this.baseUrl,
|
|
2984
|
-
path:
|
|
2985
|
-
body: request,
|
|
3695
|
+
path: MGMT_DLP_PROFILES_PATH,
|
|
2986
3696
|
oauthClient: this.oauthClient,
|
|
2987
3697
|
numRetries: this.numRetries
|
|
2988
3698
|
});
|
|
2989
3699
|
return res.data;
|
|
2990
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
|
+
}
|
|
2991
3713
|
/**
|
|
2992
|
-
* List
|
|
2993
|
-
* @param opts -
|
|
2994
|
-
* @returns
|
|
3714
|
+
* List deployment profiles for the TSG.
|
|
3715
|
+
* @param opts - Optional filter options.
|
|
3716
|
+
* @returns Deployment profiles response.
|
|
2995
3717
|
*/
|
|
2996
3718
|
async list(opts) {
|
|
2997
|
-
const params = {
|
|
2998
|
-
|
|
2999
|
-
limit: String(opts?.limit ?? 100)
|
|
3000
|
-
};
|
|
3719
|
+
const params = {};
|
|
3720
|
+
if (opts?.unactivated !== void 0) params.unactivated = String(opts.unactivated);
|
|
3001
3721
|
const res = await managementHttpRequest({
|
|
3002
3722
|
method: "GET",
|
|
3003
3723
|
baseUrl: this.baseUrl,
|
|
3004
|
-
path:
|
|
3005
|
-
params,
|
|
3724
|
+
path: MGMT_DEPLOYMENT_PROFILES_PATH,
|
|
3725
|
+
params: Object.keys(params).length > 0 ? params : void 0,
|
|
3006
3726
|
oauthClient: this.oauthClient,
|
|
3007
3727
|
numRetries: this.numRetries
|
|
3008
3728
|
});
|
|
3009
3729
|
return res.data;
|
|
3010
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
|
+
}
|
|
3011
3743
|
/**
|
|
3012
|
-
*
|
|
3013
|
-
* @param
|
|
3014
|
-
* @
|
|
3015
|
-
* @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.
|
|
3016
3747
|
*/
|
|
3017
|
-
async
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
)
|
|
3023
|
-
|
|
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;
|
|
3024
3757
|
const res = await managementHttpRequest({
|
|
3025
|
-
method: "
|
|
3758
|
+
method: "POST",
|
|
3026
3759
|
baseUrl: this.baseUrl,
|
|
3027
|
-
path:
|
|
3028
|
-
|
|
3760
|
+
path: MGMT_SCAN_LOGS_PATH,
|
|
3761
|
+
params,
|
|
3762
|
+
body,
|
|
3029
3763
|
oauthClient: this.oauthClient,
|
|
3030
3764
|
numRetries: this.numRetries
|
|
3031
3765
|
});
|
|
3032
3766
|
return res.data;
|
|
3033
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
|
+
}
|
|
3034
3780
|
/**
|
|
3035
|
-
*
|
|
3036
|
-
* @param
|
|
3037
|
-
* @
|
|
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.
|
|
3038
3785
|
*/
|
|
3039
|
-
async
|
|
3040
|
-
if (!isValidUuid(topicId)) {
|
|
3041
|
-
throw new AISecSDKException(
|
|
3042
|
-
`Invalid topic_id: ${topicId}`,
|
|
3043
|
-
"AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
|
|
3044
|
-
);
|
|
3045
|
-
}
|
|
3786
|
+
async invalidateToken(token, body) {
|
|
3046
3787
|
const res = await managementHttpRequest({
|
|
3047
|
-
method: "
|
|
3788
|
+
method: "POST",
|
|
3048
3789
|
baseUrl: this.baseUrl,
|
|
3049
|
-
path:
|
|
3790
|
+
path: MGMT_OAUTH_INVALIDATE_PATH,
|
|
3791
|
+
params: { token },
|
|
3792
|
+
body,
|
|
3050
3793
|
oauthClient: this.oauthClient,
|
|
3051
3794
|
numRetries: this.numRetries
|
|
3052
3795
|
});
|
|
3053
3796
|
return res.data;
|
|
3054
3797
|
}
|
|
3055
3798
|
/**
|
|
3056
|
-
*
|
|
3057
|
-
* @param
|
|
3058
|
-
* @returns
|
|
3799
|
+
* Get an OAuth token for client credentials.
|
|
3800
|
+
* @param opts - Token request options.
|
|
3801
|
+
* @returns OAuth2 token response.
|
|
3059
3802
|
*/
|
|
3060
|
-
async
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
);
|
|
3066
|
-
}
|
|
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;
|
|
3067
3808
|
const res = await managementHttpRequest({
|
|
3068
|
-
method: "
|
|
3809
|
+
method: "POST",
|
|
3069
3810
|
baseUrl: this.baseUrl,
|
|
3070
|
-
path:
|
|
3811
|
+
path: MGMT_OAUTH_TOKEN_PATH,
|
|
3812
|
+
params: Object.keys(params).length > 0 ? params : void 0,
|
|
3813
|
+
body: opts.body,
|
|
3071
3814
|
oauthClient: this.oauthClient,
|
|
3072
3815
|
numRetries: this.numRetries
|
|
3073
3816
|
});
|
|
@@ -3079,6 +3822,12 @@ var TopicsClient = class {
|
|
|
3079
3822
|
var ManagementClient = class {
|
|
3080
3823
|
profiles;
|
|
3081
3824
|
topics;
|
|
3825
|
+
apiKeys;
|
|
3826
|
+
customerApps;
|
|
3827
|
+
dlpProfiles;
|
|
3828
|
+
deploymentProfiles;
|
|
3829
|
+
scanLogs;
|
|
3830
|
+
oauth;
|
|
3082
3831
|
constructor(opts = {}) {
|
|
3083
3832
|
const clientId = opts.clientId ?? process.env[MGMT_CLIENT_ID];
|
|
3084
3833
|
const clientSecret = opts.clientSecret ?? process.env[MGMT_CLIENT_SECRET];
|
|
@@ -3125,19 +3874,92 @@ var ManagementClient = class {
|
|
|
3125
3874
|
tsgId,
|
|
3126
3875
|
numRetries
|
|
3127
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
|
+
});
|
|
3128
3909
|
}
|
|
3129
3910
|
};
|
|
3130
3911
|
|
|
3131
3912
|
// src/model-security/scans-client.ts
|
|
3132
|
-
function
|
|
3913
|
+
function buildScanListParams(opts) {
|
|
3133
3914
|
const params = {};
|
|
3134
3915
|
if (opts?.skip !== void 0) params.skip = String(opts.skip);
|
|
3135
3916
|
if (opts?.limit !== void 0) params.limit = String(opts.limit);
|
|
3136
3917
|
if (opts?.sort_by !== void 0) params.sort_by = opts.sort_by;
|
|
3137
|
-
if (opts?.
|
|
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);
|
|
3138
3954
|
if (opts?.search !== void 0) params.search = opts.search;
|
|
3139
3955
|
return params;
|
|
3140
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
|
+
}
|
|
3141
3963
|
var ModelSecurityScansClient = class {
|
|
3142
3964
|
baseUrl;
|
|
3143
3965
|
oauthClient;
|
|
@@ -3169,15 +3991,11 @@ var ModelSecurityScansClient = class {
|
|
|
3169
3991
|
* @returns Paginated list of scans.
|
|
3170
3992
|
*/
|
|
3171
3993
|
async list(opts) {
|
|
3172
|
-
const params = buildListParams(opts);
|
|
3173
|
-
if (opts?.eval_outcome !== void 0) params.eval_outcome = opts.eval_outcome;
|
|
3174
|
-
if (opts?.source_type !== void 0) params.source_type = opts.source_type;
|
|
3175
|
-
if (opts?.scan_origin !== void 0) params.scan_origin = opts.scan_origin;
|
|
3176
3994
|
const res = await managementHttpRequest({
|
|
3177
3995
|
method: "GET",
|
|
3178
3996
|
baseUrl: this.baseUrl,
|
|
3179
3997
|
path: MODEL_SEC_SCANS_PATH,
|
|
3180
|
-
params,
|
|
3998
|
+
params: buildScanListParams(opts),
|
|
3181
3999
|
oauthClient: this.oauthClient,
|
|
3182
4000
|
numRetries: this.numRetries
|
|
3183
4001
|
});
|
|
@@ -3207,7 +4025,7 @@ var ModelSecurityScansClient = class {
|
|
|
3207
4025
|
/**
|
|
3208
4026
|
* Get rule evaluations for a scan.
|
|
3209
4027
|
* @param scanUuid - Scan UUID.
|
|
3210
|
-
* @param opts - Pagination options.
|
|
4028
|
+
* @param opts - Pagination and filter options.
|
|
3211
4029
|
* @returns Paginated list of rule evaluations.
|
|
3212
4030
|
*/
|
|
3213
4031
|
async getEvaluations(scanUuid, opts) {
|
|
@@ -3221,7 +4039,7 @@ var ModelSecurityScansClient = class {
|
|
|
3221
4039
|
method: "GET",
|
|
3222
4040
|
baseUrl: this.baseUrl,
|
|
3223
4041
|
path: `${MODEL_SEC_SCANS_PATH}/${scanUuid}/evaluations`,
|
|
3224
|
-
params:
|
|
4042
|
+
params: buildEvaluationListParams(opts),
|
|
3225
4043
|
oauthClient: this.oauthClient,
|
|
3226
4044
|
numRetries: this.numRetries
|
|
3227
4045
|
});
|
|
@@ -3240,14 +4058,11 @@ var ModelSecurityScansClient = class {
|
|
|
3240
4058
|
"AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
|
|
3241
4059
|
);
|
|
3242
4060
|
}
|
|
3243
|
-
const params = buildListParams(opts);
|
|
3244
|
-
if (opts?.type !== void 0) params.type = opts.type;
|
|
3245
|
-
if (opts?.result !== void 0) params.result = opts.result;
|
|
3246
4061
|
const res = await managementHttpRequest({
|
|
3247
4062
|
method: "GET",
|
|
3248
4063
|
baseUrl: this.baseUrl,
|
|
3249
4064
|
path: `${MODEL_SEC_SCANS_PATH}/${scanUuid}/files`,
|
|
3250
|
-
params,
|
|
4065
|
+
params: buildFileListParams(opts),
|
|
3251
4066
|
oauthClient: this.oauthClient,
|
|
3252
4067
|
numRetries: this.numRetries
|
|
3253
4068
|
});
|
|
@@ -3342,7 +4157,7 @@ var ModelSecurityScansClient = class {
|
|
|
3342
4157
|
method: "GET",
|
|
3343
4158
|
baseUrl: this.baseUrl,
|
|
3344
4159
|
path: `${MODEL_SEC_SCANS_PATH}/${scanUuid}/rule-violations`,
|
|
3345
|
-
params:
|
|
4160
|
+
params: buildViolationListParams(opts),
|
|
3346
4161
|
oauthClient: this.oauthClient,
|
|
3347
4162
|
numRetries: this.numRetries
|
|
3348
4163
|
});
|
|
@@ -3358,7 +4173,7 @@ var ModelSecurityScansClient = class {
|
|
|
3358
4173
|
method: "GET",
|
|
3359
4174
|
baseUrl: this.baseUrl,
|
|
3360
4175
|
path: `${MODEL_SEC_SCANS_PATH}/label-keys`,
|
|
3361
|
-
params:
|
|
4176
|
+
params: buildLabelListParams(opts),
|
|
3362
4177
|
oauthClient: this.oauthClient,
|
|
3363
4178
|
numRetries: this.numRetries
|
|
3364
4179
|
});
|
|
@@ -3375,7 +4190,7 @@ var ModelSecurityScansClient = class {
|
|
|
3375
4190
|
method: "GET",
|
|
3376
4191
|
baseUrl: this.baseUrl,
|
|
3377
4192
|
path: `${MODEL_SEC_SCANS_PATH}/label-keys/${encodeURIComponent(key)}/values`,
|
|
3378
|
-
params:
|
|
4193
|
+
params: buildLabelListParams(opts),
|
|
3379
4194
|
oauthClient: this.oauthClient,
|
|
3380
4195
|
numRetries: this.numRetries
|
|
3381
4196
|
});
|
|
@@ -3426,13 +4241,23 @@ var ModelSecurityScansClient = class {
|
|
|
3426
4241
|
};
|
|
3427
4242
|
|
|
3428
4243
|
// src/model-security/security-groups-client.ts
|
|
3429
|
-
function
|
|
4244
|
+
function buildGroupListParams(opts) {
|
|
3430
4245
|
const params = {};
|
|
3431
4246
|
if (opts?.skip !== void 0) params.skip = String(opts.skip);
|
|
3432
4247
|
if (opts?.limit !== void 0) params.limit = String(opts.limit);
|
|
3433
|
-
if (opts?.
|
|
3434
|
-
if (opts?.
|
|
3435
|
-
if (opts?.
|
|
4248
|
+
if (opts?.sort_field !== void 0) params.sort_field = opts.sort_field;
|
|
4249
|
+
if (opts?.sort_dir !== void 0) params.sort_dir = opts.sort_dir;
|
|
4250
|
+
if (opts?.source_types !== void 0) params.source_types = opts.source_types;
|
|
4251
|
+
if (opts?.search_query !== void 0) params.search_query = opts.search_query;
|
|
4252
|
+
if (opts?.enabled_rules !== void 0) params.enabled_rules = opts.enabled_rules;
|
|
4253
|
+
return params;
|
|
4254
|
+
}
|
|
4255
|
+
function buildRuleInstanceListParams(opts) {
|
|
4256
|
+
const params = {};
|
|
4257
|
+
if (opts?.skip !== void 0) params.skip = String(opts.skip);
|
|
4258
|
+
if (opts?.limit !== void 0) params.limit = String(opts.limit);
|
|
4259
|
+
if (opts?.security_rule_uuid !== void 0) params.security_rule_uuid = opts.security_rule_uuid;
|
|
4260
|
+
if (opts?.state !== void 0) params.state = opts.state;
|
|
3436
4261
|
return params;
|
|
3437
4262
|
}
|
|
3438
4263
|
var ModelSecurityGroupsClient = class {
|
|
@@ -3470,7 +4295,7 @@ var ModelSecurityGroupsClient = class {
|
|
|
3470
4295
|
method: "GET",
|
|
3471
4296
|
baseUrl: this.baseUrl,
|
|
3472
4297
|
path: MODEL_SEC_SECURITY_GROUPS_PATH,
|
|
3473
|
-
params:
|
|
4298
|
+
params: buildGroupListParams(opts),
|
|
3474
4299
|
oauthClient: this.oauthClient,
|
|
3475
4300
|
numRetries: this.numRetries
|
|
3476
4301
|
});
|
|
@@ -3556,7 +4381,7 @@ var ModelSecurityGroupsClient = class {
|
|
|
3556
4381
|
method: "GET",
|
|
3557
4382
|
baseUrl: this.baseUrl,
|
|
3558
4383
|
path: `${MODEL_SEC_SECURITY_GROUPS_PATH}/${securityGroupUuid}/rule-instances`,
|
|
3559
|
-
params:
|
|
4384
|
+
params: buildRuleInstanceListParams(opts),
|
|
3560
4385
|
oauthClient: this.oauthClient,
|
|
3561
4386
|
numRetries: this.numRetries
|
|
3562
4387
|
});
|
|
@@ -3623,13 +4448,12 @@ var ModelSecurityGroupsClient = class {
|
|
|
3623
4448
|
};
|
|
3624
4449
|
|
|
3625
4450
|
// src/model-security/security-rules-client.ts
|
|
3626
|
-
function
|
|
4451
|
+
function buildRuleListParams(opts) {
|
|
3627
4452
|
const params = {};
|
|
3628
4453
|
if (opts?.skip !== void 0) params.skip = String(opts.skip);
|
|
3629
4454
|
if (opts?.limit !== void 0) params.limit = String(opts.limit);
|
|
3630
|
-
if (opts?.
|
|
3631
|
-
if (opts?.
|
|
3632
|
-
if (opts?.search !== void 0) params.search = opts.search;
|
|
4455
|
+
if (opts?.source_type !== void 0) params.source_type = opts.source_type;
|
|
4456
|
+
if (opts?.search_query !== void 0) params.search_query = opts.search_query;
|
|
3633
4457
|
return params;
|
|
3634
4458
|
}
|
|
3635
4459
|
var ModelSecurityRulesClient = class {
|
|
@@ -3651,7 +4475,7 @@ var ModelSecurityRulesClient = class {
|
|
|
3651
4475
|
method: "GET",
|
|
3652
4476
|
baseUrl: this.baseUrl,
|
|
3653
4477
|
path: MODEL_SEC_SECURITY_RULES_PATH,
|
|
3654
|
-
params:
|
|
4478
|
+
params: buildRuleListParams(opts),
|
|
3655
4479
|
oauthClient: this.oauthClient,
|
|
3656
4480
|
numRetries: this.numRetries
|
|
3657
4481
|
});
|
|
@@ -3761,12 +4585,10 @@ var ModelSecurityClient = class {
|
|
|
3761
4585
|
};
|
|
3762
4586
|
|
|
3763
4587
|
// src/red-team/scans-client.ts
|
|
3764
|
-
function
|
|
4588
|
+
function buildListParams(opts) {
|
|
3765
4589
|
const params = {};
|
|
3766
4590
|
if (opts?.skip !== void 0) params.skip = String(opts.skip);
|
|
3767
4591
|
if (opts?.limit !== void 0) params.limit = String(opts.limit);
|
|
3768
|
-
if (opts?.sort_by !== void 0) params.sort_by = opts.sort_by;
|
|
3769
|
-
if (opts?.sort_direction !== void 0) params.sort_direction = opts.sort_direction;
|
|
3770
4592
|
if (opts?.search !== void 0) params.search = opts.search;
|
|
3771
4593
|
return params;
|
|
3772
4594
|
}
|
|
@@ -3793,7 +4615,7 @@ var RedTeamScansClient = class {
|
|
|
3793
4615
|
}
|
|
3794
4616
|
/** List red team scan jobs with optional filters. */
|
|
3795
4617
|
async list(opts) {
|
|
3796
|
-
const params =
|
|
4618
|
+
const params = buildListParams(opts);
|
|
3797
4619
|
if (opts?.status !== void 0) params.status = opts.status;
|
|
3798
4620
|
if (opts?.job_type !== void 0) params.job_type = opts.job_type;
|
|
3799
4621
|
if (opts?.target_id !== void 0) params.target_id = opts.target_id;
|
|
@@ -3849,12 +4671,10 @@ var RedTeamScansClient = class {
|
|
|
3849
4671
|
};
|
|
3850
4672
|
|
|
3851
4673
|
// src/red-team/reports-client.ts
|
|
3852
|
-
function
|
|
4674
|
+
function buildListParams2(opts) {
|
|
3853
4675
|
const params = {};
|
|
3854
4676
|
if (opts?.skip !== void 0) params.skip = String(opts.skip);
|
|
3855
4677
|
if (opts?.limit !== void 0) params.limit = String(opts.limit);
|
|
3856
|
-
if (opts?.sort_by !== void 0) params.sort_by = opts.sort_by;
|
|
3857
|
-
if (opts?.sort_direction !== void 0) params.sort_direction = opts.sort_direction;
|
|
3858
4678
|
if (opts?.search !== void 0) params.search = opts.search;
|
|
3859
4679
|
return params;
|
|
3860
4680
|
}
|
|
@@ -3878,11 +4698,13 @@ var RedTeamReportsClient = class {
|
|
|
3878
4698
|
/** List attacks for a static scan. */
|
|
3879
4699
|
async listAttacks(jobId, opts) {
|
|
3880
4700
|
validateJobId(jobId);
|
|
3881
|
-
const params =
|
|
4701
|
+
const params = buildListParams2(opts);
|
|
3882
4702
|
if (opts?.status !== void 0) params.status = opts.status;
|
|
3883
4703
|
if (opts?.severity !== void 0) params.severity = opts.severity;
|
|
3884
4704
|
if (opts?.category !== void 0) params.category = opts.category;
|
|
3885
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);
|
|
3886
4708
|
const res = await managementHttpRequest({
|
|
3887
4709
|
method: "GET",
|
|
3888
4710
|
baseUrl: this.baseUrl,
|
|
@@ -4007,8 +4829,10 @@ var RedTeamReportsClient = class {
|
|
|
4007
4829
|
/** List goals for a dynamic scan. */
|
|
4008
4830
|
async listGoals(jobId, opts) {
|
|
4009
4831
|
validateJobId(jobId);
|
|
4010
|
-
const params =
|
|
4832
|
+
const params = buildListParams2(opts);
|
|
4011
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);
|
|
4012
4836
|
const res = await managementHttpRequest({
|
|
4013
4837
|
method: "GET",
|
|
4014
4838
|
baseUrl: this.baseUrl,
|
|
@@ -4032,7 +4856,7 @@ var RedTeamReportsClient = class {
|
|
|
4032
4856
|
method: "GET",
|
|
4033
4857
|
baseUrl: this.baseUrl,
|
|
4034
4858
|
path: `${RED_TEAM_REPORT_DYNAMIC_PATH}/${jobId}/goal/${goalId}/list-streams`,
|
|
4035
|
-
params:
|
|
4859
|
+
params: buildListParams2(opts),
|
|
4036
4860
|
oauthClient: this.oauthClient,
|
|
4037
4861
|
numRetries: this.numRetries
|
|
4038
4862
|
});
|
|
@@ -4061,8 +4885,7 @@ var RedTeamReportsClient = class {
|
|
|
4061
4885
|
/** Download a report in the specified format. */
|
|
4062
4886
|
async downloadReport(jobId, format) {
|
|
4063
4887
|
validateJobId(jobId);
|
|
4064
|
-
const params = {};
|
|
4065
|
-
if (format !== void 0) params.file_format = format;
|
|
4888
|
+
const params = { file_format: format };
|
|
4066
4889
|
const res = await managementHttpRequest({
|
|
4067
4890
|
method: "GET",
|
|
4068
4891
|
baseUrl: this.baseUrl,
|
|
@@ -4088,12 +4911,10 @@ var RedTeamReportsClient = class {
|
|
|
4088
4911
|
};
|
|
4089
4912
|
|
|
4090
4913
|
// src/red-team/custom-attack-reports-client.ts
|
|
4091
|
-
function
|
|
4914
|
+
function buildListParams3(opts) {
|
|
4092
4915
|
const params = {};
|
|
4093
4916
|
if (opts?.skip !== void 0) params.skip = String(opts.skip);
|
|
4094
4917
|
if (opts?.limit !== void 0) params.limit = String(opts.limit);
|
|
4095
|
-
if (opts?.sort_by !== void 0) params.sort_by = opts.sort_by;
|
|
4096
|
-
if (opts?.sort_direction !== void 0) params.sort_direction = opts.sort_direction;
|
|
4097
4918
|
if (opts?.search !== void 0) params.search = opts.search;
|
|
4098
4919
|
return params;
|
|
4099
4920
|
}
|
|
@@ -4144,11 +4965,13 @@ var RedTeamCustomAttackReportsClient = class {
|
|
|
4144
4965
|
"AISEC_USER_REQUEST_PAYLOAD_ERROR" /* USER_REQUEST_PAYLOAD_ERROR */
|
|
4145
4966
|
);
|
|
4146
4967
|
}
|
|
4968
|
+
const params = buildListParams3(opts);
|
|
4969
|
+
if (opts?.is_threat !== void 0) params.is_threat = String(opts.is_threat);
|
|
4147
4970
|
const res = await managementHttpRequest({
|
|
4148
4971
|
method: "GET",
|
|
4149
4972
|
baseUrl: this.baseUrl,
|
|
4150
4973
|
path: `${RED_TEAM_CUSTOM_ATTACKS_REPORT_PATH}/report/${jobId}/prompt-set/${promptSetId}/prompts`,
|
|
4151
|
-
params
|
|
4974
|
+
params,
|
|
4152
4975
|
oauthClient: this.oauthClient,
|
|
4153
4976
|
numRetries: this.numRetries
|
|
4154
4977
|
});
|
|
@@ -4175,11 +4998,15 @@ var RedTeamCustomAttackReportsClient = class {
|
|
|
4175
4998
|
/** List custom attacks for a scan. */
|
|
4176
4999
|
async listCustomAttacks(jobId, opts) {
|
|
4177
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;
|
|
4178
5005
|
const res = await managementHttpRequest({
|
|
4179
5006
|
method: "GET",
|
|
4180
5007
|
baseUrl: this.baseUrl,
|
|
4181
5008
|
path: `${RED_TEAM_CUSTOM_ATTACKS_REPORT_PATH}/job/${jobId}/list-custom-attacks`,
|
|
4182
|
-
params
|
|
5009
|
+
params,
|
|
4183
5010
|
oauthClient: this.oauthClient,
|
|
4184
5011
|
numRetries: this.numRetries
|
|
4185
5012
|
});
|
|
@@ -4218,12 +5045,10 @@ var RedTeamCustomAttackReportsClient = class {
|
|
|
4218
5045
|
};
|
|
4219
5046
|
|
|
4220
5047
|
// src/red-team/targets-client.ts
|
|
4221
|
-
function
|
|
5048
|
+
function buildListParams4(opts) {
|
|
4222
5049
|
const params = {};
|
|
4223
5050
|
if (opts?.skip !== void 0) params.skip = String(opts.skip);
|
|
4224
5051
|
if (opts?.limit !== void 0) params.limit = String(opts.limit);
|
|
4225
|
-
if (opts?.sort_by !== void 0) params.sort_by = opts.sort_by;
|
|
4226
|
-
if (opts?.sort_direction !== void 0) params.sort_direction = opts.sort_direction;
|
|
4227
5052
|
if (opts?.search !== void 0) params.search = opts.search;
|
|
4228
5053
|
return params;
|
|
4229
5054
|
}
|
|
@@ -4253,10 +5078,9 @@ var RedTeamTargetsClient = class {
|
|
|
4253
5078
|
}
|
|
4254
5079
|
/** List targets with optional filters. */
|
|
4255
5080
|
async list(opts) {
|
|
4256
|
-
const params =
|
|
5081
|
+
const params = buildListParams4(opts);
|
|
4257
5082
|
if (opts?.target_type !== void 0) params.target_type = opts.target_type;
|
|
4258
5083
|
if (opts?.status !== void 0) params.status = opts.status;
|
|
4259
|
-
if (opts?.active !== void 0) params.active = String(opts.active);
|
|
4260
5084
|
const res = await managementHttpRequest({
|
|
4261
5085
|
method: "GET",
|
|
4262
5086
|
baseUrl: this.baseUrl,
|
|
@@ -4372,12 +5196,10 @@ var RedTeamTargetsClient = class {
|
|
|
4372
5196
|
};
|
|
4373
5197
|
|
|
4374
5198
|
// src/red-team/custom-attacks-client.ts
|
|
4375
|
-
function
|
|
5199
|
+
function buildListParams5(opts) {
|
|
4376
5200
|
const params = {};
|
|
4377
5201
|
if (opts?.skip !== void 0) params.skip = String(opts.skip);
|
|
4378
5202
|
if (opts?.limit !== void 0) params.limit = String(opts.limit);
|
|
4379
|
-
if (opts?.sort_by !== void 0) params.sort_by = opts.sort_by;
|
|
4380
|
-
if (opts?.sort_direction !== void 0) params.sort_direction = opts.sort_direction;
|
|
4381
5203
|
if (opts?.search !== void 0) params.search = opts.search;
|
|
4382
5204
|
return params;
|
|
4383
5205
|
}
|
|
@@ -4412,7 +5234,8 @@ var RedTeamCustomAttacksClient = class {
|
|
|
4412
5234
|
}
|
|
4413
5235
|
/** List custom prompt sets. */
|
|
4414
5236
|
async listPromptSets(opts) {
|
|
4415
|
-
const params =
|
|
5237
|
+
const params = buildListParams5(opts);
|
|
5238
|
+
if (opts?.status !== void 0) params.status = opts.status;
|
|
4416
5239
|
if (opts?.active !== void 0) params.active = String(opts.active);
|
|
4417
5240
|
if (opts?.archive !== void 0) params.archive = String(opts.archive);
|
|
4418
5241
|
const res = await managementHttpRequest({
|
|
@@ -4555,7 +5378,7 @@ var RedTeamCustomAttacksClient = class {
|
|
|
4555
5378
|
/** List prompts in a prompt set. */
|
|
4556
5379
|
async listPrompts(promptSetUuid, opts) {
|
|
4557
5380
|
validateUuid(promptSetUuid, "prompt set uuid");
|
|
4558
|
-
const params =
|
|
5381
|
+
const params = buildListParams5(opts);
|
|
4559
5382
|
if (opts?.active !== void 0) params.active = String(opts.active);
|
|
4560
5383
|
const res = await managementHttpRequest({
|
|
4561
5384
|
method: "GET",
|
|
@@ -4676,12 +5499,10 @@ var RedTeamCustomAttacksClient = class {
|
|
|
4676
5499
|
};
|
|
4677
5500
|
|
|
4678
5501
|
// src/red-team/client.ts
|
|
4679
|
-
function
|
|
5502
|
+
function buildListParams6(opts) {
|
|
4680
5503
|
const params = {};
|
|
4681
5504
|
if (opts?.skip !== void 0) params.skip = String(opts.skip);
|
|
4682
5505
|
if (opts?.limit !== void 0) params.limit = String(opts.limit);
|
|
4683
|
-
if (opts?.sort_by !== void 0) params.sort_by = opts.sort_by;
|
|
4684
|
-
if (opts?.sort_direction !== void 0) params.sort_direction = opts.sort_direction;
|
|
4685
5506
|
if (opts?.search !== void 0) params.search = opts.search;
|
|
4686
5507
|
return params;
|
|
4687
5508
|
}
|
|
@@ -4815,7 +5636,7 @@ var RedTeamClient = class {
|
|
|
4815
5636
|
method: "GET",
|
|
4816
5637
|
baseUrl: this.dataEndpoint,
|
|
4817
5638
|
path: `${RED_TEAM_ERROR_LOG_PATH}/${jobId}`,
|
|
4818
|
-
params:
|
|
5639
|
+
params: buildListParams6(opts),
|
|
4819
5640
|
oauthClient: this.oauthClient,
|
|
4820
5641
|
numRetries: this.numRetries
|
|
4821
5642
|
});
|
|
@@ -4864,15 +5685,25 @@ var RedTeamClient = class {
|
|
|
4864
5685
|
};
|
|
4865
5686
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4866
5687
|
0 && (module.exports = {
|
|
5688
|
+
AIRS_ENDPOINTS,
|
|
4867
5689
|
AISecSDKException,
|
|
4868
5690
|
AI_SEC_API_ENDPOINT,
|
|
4869
5691
|
AI_SEC_API_KEY,
|
|
4870
5692
|
AI_SEC_API_TOKEN,
|
|
4871
5693
|
ASYNC_SCAN_PATH,
|
|
4872
5694
|
Action,
|
|
5695
|
+
AgentEntrySchema,
|
|
4873
5696
|
AgentMetaSchema,
|
|
5697
|
+
AgentReportSchema,
|
|
4874
5698
|
AiProfileSchema,
|
|
4875
5699
|
ApiEndpointType,
|
|
5700
|
+
ApiKeyCreateRequestSchema,
|
|
5701
|
+
ApiKeyDPInfoSchema,
|
|
5702
|
+
ApiKeyDeleteResponseSchema,
|
|
5703
|
+
ApiKeyListResponseSchema,
|
|
5704
|
+
ApiKeyRegenerateRequestSchema,
|
|
5705
|
+
ApiKeySchema,
|
|
5706
|
+
ApiKeysClient,
|
|
4876
5707
|
AsyncScanObjectSchema,
|
|
4877
5708
|
AsyncScanResponseSchema,
|
|
4878
5709
|
AttackDetailResponseSchema,
|
|
@@ -4891,11 +5722,17 @@ var RedTeamClient = class {
|
|
|
4891
5722
|
Category,
|
|
4892
5723
|
CategoryModelSchema,
|
|
4893
5724
|
CategoryReportSchema,
|
|
5725
|
+
CgReportSchema,
|
|
5726
|
+
ClientIdAndCustomerAppSchema,
|
|
5727
|
+
CmdEntrySchema,
|
|
5728
|
+
CmdInjectReportSchema,
|
|
4894
5729
|
ComplianceReportSchema,
|
|
4895
5730
|
ComplianceSubCategory,
|
|
4896
5731
|
ComplianceTechniqueSchema,
|
|
4897
5732
|
ConnectionParamsSchema,
|
|
4898
5733
|
Content,
|
|
5734
|
+
ContentErrorSchema,
|
|
5735
|
+
ContentErrorType,
|
|
4899
5736
|
CountByNameSchema,
|
|
4900
5737
|
CountedQuotaEnum,
|
|
4901
5738
|
CreateCustomTopicRequestSchema,
|
|
@@ -4920,6 +5757,10 @@ var RedTeamClient = class {
|
|
|
4920
5757
|
CustomPromptUpdateRequestSchema,
|
|
4921
5758
|
CustomTopicListResponseSchema,
|
|
4922
5759
|
CustomTopicSchema,
|
|
5760
|
+
CustomerAppListResponseSchema,
|
|
5761
|
+
CustomerAppSchema,
|
|
5762
|
+
CustomerAppWithKeysSchema,
|
|
5763
|
+
CustomerAppsClient,
|
|
4923
5764
|
DEFAULT_ENDPOINT,
|
|
4924
5765
|
DEFAULT_MGMT_ENDPOINT,
|
|
4925
5766
|
DEFAULT_MODEL_SEC_DATA_ENDPOINT,
|
|
@@ -4932,11 +5773,21 @@ var RedTeamClient = class {
|
|
|
4932
5773
|
DashboardOverviewResponseSchema,
|
|
4933
5774
|
DatabricksConnectionParamsSchema,
|
|
4934
5775
|
DateRangeFilter,
|
|
5776
|
+
DbsEntrySchema,
|
|
5777
|
+
DbsReportSchema,
|
|
4935
5778
|
DeleteProfileConflictSchema,
|
|
4936
5779
|
DeleteProfileResponseSchema,
|
|
4937
5780
|
DeleteTopicConflictSchema,
|
|
4938
5781
|
DeleteTopicResponseSchema,
|
|
5782
|
+
DeploymentProfileEntrySchema,
|
|
5783
|
+
DeploymentProfilesClient,
|
|
5784
|
+
DeploymentProfilesResponseSchema,
|
|
5785
|
+
DetectionServiceName,
|
|
4939
5786
|
DetectionServiceResultSchema,
|
|
5787
|
+
DlpDataProfileSchema,
|
|
5788
|
+
DlpPatternDetectionSchema,
|
|
5789
|
+
DlpProfileListResponseSchema,
|
|
5790
|
+
DlpProfilesClient,
|
|
4940
5791
|
DlpReportSchema,
|
|
4941
5792
|
DynamicJobMetadataSchema,
|
|
4942
5793
|
DynamicJobReportSchema,
|
|
@@ -4946,6 +5797,7 @@ var RedTeamClient = class {
|
|
|
4946
5797
|
ErrorLogSchema,
|
|
4947
5798
|
ErrorResponseSchema,
|
|
4948
5799
|
ErrorSource,
|
|
5800
|
+
ErrorStatus,
|
|
4949
5801
|
ErrorType,
|
|
4950
5802
|
EvalOutcome,
|
|
4951
5803
|
EvalSummarySchema,
|
|
@@ -4997,11 +5849,20 @@ var RedTeamClient = class {
|
|
|
4997
5849
|
MAX_SESSION_ID_STR_LENGTH,
|
|
4998
5850
|
MAX_TOKEN_LENGTH,
|
|
4999
5851
|
MAX_TRANSACTION_ID_STR_LENGTH,
|
|
5852
|
+
MGMT_API_KEYS_TSG_PATH,
|
|
5853
|
+
MGMT_API_KEY_PATH,
|
|
5000
5854
|
MGMT_CLIENT_ID,
|
|
5001
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,
|
|
5002
5860
|
MGMT_ENDPOINT,
|
|
5861
|
+
MGMT_OAUTH_INVALIDATE_PATH,
|
|
5862
|
+
MGMT_OAUTH_TOKEN_PATH,
|
|
5003
5863
|
MGMT_PROFILES_TSG_PATH,
|
|
5004
5864
|
MGMT_PROFILE_PATH,
|
|
5865
|
+
MGMT_SCAN_LOGS_PATH,
|
|
5005
5866
|
MGMT_TOKEN_ENDPOINT,
|
|
5006
5867
|
MGMT_TOPICS_TSG_PATH,
|
|
5007
5868
|
MGMT_TOPIC_FORCE_PATH,
|
|
@@ -5019,8 +5880,11 @@ var RedTeamClient = class {
|
|
|
5019
5880
|
MODEL_SEC_TOKEN_ENDPOINT,
|
|
5020
5881
|
MODEL_SEC_TSG_ID,
|
|
5021
5882
|
MODEL_SEC_VIOLATIONS_PATH,
|
|
5883
|
+
MalwareReportSchema,
|
|
5022
5884
|
ManagementClient,
|
|
5023
5885
|
MaskedDataSchema,
|
|
5886
|
+
McEntrySchema,
|
|
5887
|
+
McReportSchema,
|
|
5024
5888
|
MetadataSchema,
|
|
5025
5889
|
ModelScanIssueSchema,
|
|
5026
5890
|
ModelScanStatus,
|
|
@@ -5039,8 +5903,13 @@ var RedTeamClient = class {
|
|
|
5039
5903
|
MultiTurnStatefulConfigSchema,
|
|
5040
5904
|
MultiTurnStatelessConfigSchema,
|
|
5041
5905
|
OAuthClient,
|
|
5906
|
+
OAuthManagementClient,
|
|
5907
|
+
Oauth2TokenSchema,
|
|
5908
|
+
OffsetSchema,
|
|
5042
5909
|
OpenAIConnectionParamsSchema,
|
|
5043
5910
|
PAYLOAD_HASH,
|
|
5911
|
+
PaginatedScanResultsSchema,
|
|
5912
|
+
PatternDetectionSchema,
|
|
5044
5913
|
PolicySchema,
|
|
5045
5914
|
PolicyType,
|
|
5046
5915
|
PrerequisiteModelSchema,
|
|
@@ -5123,10 +5992,13 @@ var RedTeamClient = class {
|
|
|
5123
5992
|
ScanDetailsSchema,
|
|
5124
5993
|
ScanIdResultSchema,
|
|
5125
5994
|
ScanListSchema,
|
|
5995
|
+
ScanLogsClient,
|
|
5126
5996
|
ScanOrigin,
|
|
5127
5997
|
ScanRequestContentsInnerSchema,
|
|
5128
5998
|
ScanRequestSchema,
|
|
5129
5999
|
ScanResponseSchema,
|
|
6000
|
+
ScanResultEntrySchema,
|
|
6001
|
+
ScanResultForDashboardSchema,
|
|
5130
6002
|
ScanStatisticsResponseSchema,
|
|
5131
6003
|
ScanSummarySchema,
|
|
5132
6004
|
Scanner,
|
|
@@ -5173,6 +6045,8 @@ var RedTeamClient = class {
|
|
|
5173
6045
|
TargetStatus,
|
|
5174
6046
|
TargetType,
|
|
5175
6047
|
TargetUpdateRequestSchema,
|
|
6048
|
+
TcReportSchema,
|
|
6049
|
+
TgReportSchema,
|
|
5176
6050
|
ThreatCategory,
|
|
5177
6051
|
ThreatScanReportSchema,
|
|
5178
6052
|
ToolDetectedSchema,
|