@cdot65/prisma-airs-sdk 0.8.2 → 0.9.0
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/README.md +6 -0
- package/dist/index.cjs +2229 -1199
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11265 -5
- package/dist/index.d.ts +11265 -5
- package/dist/index.js +2156 -1198
- package/dist/index.js.map +1 -1
- package/package.json +7 -2
package/dist/index.cjs
CHANGED
|
@@ -27,6 +27,7 @@ __export(index_exports, {
|
|
|
27
27
|
AI_SEC_API_TOKEN: () => AI_SEC_API_TOKEN,
|
|
28
28
|
ASYNC_SCAN_PATH: () => ASYNC_SCAN_PATH,
|
|
29
29
|
Action: () => Action,
|
|
30
|
+
AdvancedDataProfileRequestSchema: () => AdvancedDataProfileRequestSchema,
|
|
30
31
|
AgentEntrySchema: () => AgentEntrySchema,
|
|
31
32
|
AgentMetaSchema: () => AgentMetaSchema,
|
|
32
33
|
AgentProtectionItemSchema: () => AgentProtectionItemSchema,
|
|
@@ -41,6 +42,7 @@ __export(index_exports, {
|
|
|
41
42
|
ApiKeyRegenerateRequestSchema: () => ApiKeyRegenerateRequestSchema,
|
|
42
43
|
ApiKeySchema: () => ApiKeySchema,
|
|
43
44
|
ApiKeysClient: () => ApiKeysClient,
|
|
45
|
+
AppExclusionSchema: () => AppExclusionSchema,
|
|
44
46
|
AsyncScanObjectSchema: () => AsyncScanObjectSchema,
|
|
45
47
|
AsyncScanResponseSchema: () => AsyncScanResponseSchema,
|
|
46
48
|
AttackDetailResponseSchema: () => AttackDetailResponseSchema,
|
|
@@ -51,6 +53,7 @@ __export(index_exports, {
|
|
|
51
53
|
AttackOutputSchema: () => AttackOutputSchema,
|
|
52
54
|
AttackStatus: () => AttackStatus,
|
|
53
55
|
AttackType: () => AttackType,
|
|
56
|
+
AuditResponseSchema: () => AuditResponseSchema,
|
|
54
57
|
AuthConfigSchema: () => AuthConfigSchema,
|
|
55
58
|
AuthType: () => AuthType,
|
|
56
59
|
BEARER: () => BEARER,
|
|
@@ -66,6 +69,7 @@ __export(index_exports, {
|
|
|
66
69
|
ClientIdAndCustomerAppSchema: () => ClientIdAndCustomerAppSchema,
|
|
67
70
|
CmdEntrySchema: () => CmdEntrySchema,
|
|
68
71
|
CmdInjectReportSchema: () => CmdInjectReportSchema,
|
|
72
|
+
ComparisonOperatorTypeSchema: () => ComparisonOperatorTypeSchema,
|
|
69
73
|
ComplianceReportSchema: () => ComplianceReportSchema,
|
|
70
74
|
ComplianceSubCategory: () => ComplianceSubCategory,
|
|
71
75
|
ComplianceTechniqueSchema: () => ComplianceTechniqueSchema,
|
|
@@ -101,6 +105,7 @@ __export(index_exports, {
|
|
|
101
105
|
CustomerAppSchema: () => CustomerAppSchema,
|
|
102
106
|
CustomerAppWithKeysSchema: () => CustomerAppWithKeysSchema,
|
|
103
107
|
CustomerAppsClient: () => CustomerAppsClient,
|
|
108
|
+
DEFAULT_DLP_ENDPOINT: () => DEFAULT_DLP_ENDPOINT,
|
|
104
109
|
DEFAULT_ENDPOINT: () => DEFAULT_ENDPOINT,
|
|
105
110
|
DEFAULT_MGMT_ENDPOINT: () => DEFAULT_MGMT_ENDPOINT,
|
|
106
111
|
DEFAULT_MODEL_SEC_DATA_ENDPOINT: () => DEFAULT_MODEL_SEC_DATA_ENDPOINT,
|
|
@@ -108,16 +113,44 @@ __export(index_exports, {
|
|
|
108
113
|
DEFAULT_RED_TEAM_DATA_ENDPOINT: () => DEFAULT_RED_TEAM_DATA_ENDPOINT,
|
|
109
114
|
DEFAULT_RED_TEAM_MGMT_ENDPOINT: () => DEFAULT_RED_TEAM_MGMT_ENDPOINT,
|
|
110
115
|
DEFAULT_TOKEN_ENDPOINT: () => DEFAULT_TOKEN_ENDPOINT,
|
|
116
|
+
DLP_DATA_FILTERING_PROFILES_PATH: () => DLP_DATA_FILTERING_PROFILES_PATH,
|
|
117
|
+
DLP_DATA_PATTERNS_PATH: () => DLP_DATA_PATTERNS_PATH,
|
|
118
|
+
DLP_DATA_PROFILES_PATH: () => DLP_DATA_PROFILES_PATH,
|
|
119
|
+
DLP_DICTIONARIES_PATH: () => DLP_DICTIONARIES_PATH,
|
|
111
120
|
DSDetailResultSchema: () => DSDetailResultSchema,
|
|
112
121
|
DSResultMetadataSchema: () => DSResultMetadataSchema,
|
|
113
122
|
DashboardOverviewResponseSchema: () => DashboardOverviewResponseSchema,
|
|
123
|
+
DataFilteringDetailsSchema: () => DataFilteringDetailsSchema,
|
|
124
|
+
DataFilteringProfileRequestSchema: () => DataFilteringProfileRequestSchema,
|
|
125
|
+
DataFilteringProfileResponseSchema: () => DataFilteringProfileResponseSchema,
|
|
126
|
+
DataFilteringProfilesClient: () => DataFilteringProfilesClient,
|
|
127
|
+
DataFilteringRuleDTOSchema: () => DataFilteringRuleDTOSchema,
|
|
114
128
|
DataLeakDetectionMemberSchema: () => DataLeakDetectionMemberSchema,
|
|
129
|
+
DataPatternConfidenceLevelSchema: () => DataPatternConfidenceLevelSchema,
|
|
130
|
+
DataPatternDetectionConfigSchema: () => DataPatternDetectionConfigSchema,
|
|
131
|
+
DataPatternLicenseTypeSchema: () => DataPatternLicenseTypeSchema,
|
|
132
|
+
DataPatternMatchingRulesSchema: () => DataPatternMatchingRulesSchema,
|
|
133
|
+
DataPatternPatchRequestSchema: () => DataPatternPatchRequestSchema,
|
|
134
|
+
DataPatternRequestSchema: () => DataPatternRequestSchema,
|
|
135
|
+
DataPatternResponseSchema: () => DataPatternResponseSchema,
|
|
136
|
+
DataPatternStatusSchema: () => DataPatternStatusSchema,
|
|
137
|
+
DataPatternTagsSchema: () => DataPatternTagsSchema,
|
|
138
|
+
DataPatternTechniqueSchema: () => DataPatternTechniqueSchema,
|
|
139
|
+
DataPatternTypeSchema: () => DataPatternTypeSchema,
|
|
140
|
+
DataPatternsClient: () => DataPatternsClient,
|
|
141
|
+
DataProfilePatchRequestSchema: () => DataProfilePatchRequestSchema,
|
|
142
|
+
DataProfileResponseSchema: () => DataProfileResponseSchema,
|
|
143
|
+
DataProfileStatusSchema: () => DataProfileStatusSchema,
|
|
144
|
+
DataProfileSubtypeSchema: () => DataProfileSubtypeSchema,
|
|
145
|
+
DataProfileTypeSchema: () => DataProfileTypeSchema,
|
|
146
|
+
DataProfilesClient: () => DataProfilesClient,
|
|
115
147
|
DataProtectionSchema: () => DataProtectionSchema,
|
|
116
148
|
DatabaseSecurityItemSchema: () => DatabaseSecurityItemSchema,
|
|
117
149
|
DatabricksConnectionParamsSchema: () => DatabricksConnectionParamsSchema,
|
|
118
150
|
DateRangeFilter: () => DateRangeFilter,
|
|
119
151
|
DbsEntrySchema: () => DbsEntrySchema,
|
|
120
152
|
DbsReportSchema: () => DbsReportSchema,
|
|
153
|
+
DefaultTreeDetectionRuleSchema: () => DefaultTreeDetectionRuleSchema,
|
|
121
154
|
DeleteProfileConflictSchema: () => DeleteProfileConflictSchema,
|
|
122
155
|
DeleteProfileResponseSchema: () => DeleteProfileResponseSchema,
|
|
123
156
|
DeleteTopicConflictSchema: () => DeleteTopicConflictSchema,
|
|
@@ -127,6 +160,9 @@ __export(index_exports, {
|
|
|
127
160
|
DeploymentProfileRequestSchema: () => DeploymentProfileRequestSchema,
|
|
128
161
|
DeploymentProfilesClient: () => DeploymentProfilesClient,
|
|
129
162
|
DeploymentProfilesResponseSchema: () => DeploymentProfilesResponseSchema,
|
|
163
|
+
DestinationAttributesSchema: () => DestinationAttributesSchema,
|
|
164
|
+
DetectionRuleItemSchema: () => DetectionRuleItemSchema,
|
|
165
|
+
DetectionRuleSchema: () => DetectionRuleSchema,
|
|
130
166
|
DetectionServiceName: () => DetectionServiceName,
|
|
131
167
|
DetectionServiceResultSchema: () => DetectionServiceResultSchema,
|
|
132
168
|
DeviceInstanceSchema: () => DeviceInstanceSchema,
|
|
@@ -135,8 +171,20 @@ __export(index_exports, {
|
|
|
135
171
|
DeviceResponseSchema: () => DeviceResponseSchema,
|
|
136
172
|
DeviceSchema: () => DeviceSchema,
|
|
137
173
|
DeviceStatusSchema: () => DeviceStatusSchema,
|
|
174
|
+
DictionariesClient: () => DictionariesClient,
|
|
175
|
+
DictionaryCategorySchema: () => DictionaryCategorySchema,
|
|
176
|
+
DictionaryClassificationSchema: () => DictionaryClassificationSchema,
|
|
177
|
+
DictionaryDetectionSubTechniqueSchema: () => DictionaryDetectionSubTechniqueSchema,
|
|
178
|
+
DictionaryDetectionTechniqueSchema: () => DictionaryDetectionTechniqueSchema,
|
|
179
|
+
DictionaryMetaDataDTOSchema: () => DictionaryMetaDataDTOSchema,
|
|
180
|
+
DictionaryPatchRequestSchema: () => DictionaryPatchRequestSchema,
|
|
181
|
+
DictionaryRequestSchema: () => DictionaryRequestSchema,
|
|
182
|
+
DictionaryResponseSchema: () => DictionaryResponseSchema,
|
|
183
|
+
DictionaryTagsSchema: () => DictionaryTagsSchema,
|
|
184
|
+
DictionaryTypeSchema: () => DictionaryTypeSchema,
|
|
138
185
|
DlpDataProfilePolicySchema: () => DlpDataProfilePolicySchema,
|
|
139
186
|
DlpDataProfileSchema: () => DlpDataProfileSchema,
|
|
187
|
+
DlpNamespace: () => DlpNamespace,
|
|
140
188
|
DlpPatternDetectionSchema: () => DlpPatternDetectionSchema,
|
|
141
189
|
DlpProfileListResponseSchema: () => DlpProfileListResponseSchema,
|
|
142
190
|
DlpProfilesClient: () => DlpProfilesClient,
|
|
@@ -157,6 +205,10 @@ __export(index_exports, {
|
|
|
157
205
|
EulaResponseSchema: () => EulaResponseSchema,
|
|
158
206
|
EvalOutcome: () => EvalOutcome,
|
|
159
207
|
EvalSummarySchema: () => EvalSummarySchema,
|
|
208
|
+
ExceptionRuleDTOSchema: () => ExceptionRuleDTOSchema,
|
|
209
|
+
ExclusionsSchema: () => ExclusionsSchema,
|
|
210
|
+
ExpressionOperatorTypeSchema: () => ExpressionOperatorTypeSchema,
|
|
211
|
+
ExpressionTreeNodeSchema: () => ExpressionTreeNodeSchema,
|
|
160
212
|
FileFormat: () => FileFormat,
|
|
161
213
|
FileListSchema: () => FileListSchema,
|
|
162
214
|
FileResponseSchema: () => FileResponseSchema,
|
|
@@ -247,6 +299,7 @@ __export(index_exports, {
|
|
|
247
299
|
MaskedDataSchema: () => MaskedDataSchema,
|
|
248
300
|
McEntrySchema: () => McEntrySchema,
|
|
249
301
|
McReportSchema: () => McReportSchema,
|
|
302
|
+
MetadataCriterionSchema: () => MetadataCriterionSchema,
|
|
250
303
|
MetadataSchema: () => MetadataSchema,
|
|
251
304
|
ModelConfigurationSchema: () => ModelConfigurationSchema,
|
|
252
305
|
ModelProtectionItemSchema: () => ModelProtectionItemSchema,
|
|
@@ -264,6 +317,8 @@ __export(index_exports, {
|
|
|
264
317
|
ModelSecurityRuleResponseSchema: () => ModelSecurityRuleResponseSchema,
|
|
265
318
|
ModelSecurityRulesClient: () => ModelSecurityRulesClient,
|
|
266
319
|
ModelSecurityScansClient: () => ModelSecurityScansClient,
|
|
320
|
+
MultiProfileDataNodeSchema: () => MultiProfileDataNodeSchema,
|
|
321
|
+
MultiProfileDetectionRuleSchema: () => MultiProfileDetectionRuleSchema,
|
|
267
322
|
MultiTurnStatefulConfigSchema: () => MultiTurnStatefulConfigSchema,
|
|
268
323
|
MultiTurnStatelessConfigSchema: () => MultiTurnStatelessConfigSchema,
|
|
269
324
|
OAuth2AuthConfigSchema: () => OAuth2AuthConfigSchema,
|
|
@@ -273,6 +328,11 @@ __export(index_exports, {
|
|
|
273
328
|
OffsetSchema: () => OffsetSchema,
|
|
274
329
|
OpenAIConnectionParamsSchema: () => OpenAIConnectionParamsSchema,
|
|
275
330
|
PAYLOAD_HASH: () => PAYLOAD_HASH,
|
|
331
|
+
PageDataFilteringProfileResponseSchema: () => PageDataFilteringProfileResponseSchema,
|
|
332
|
+
PageDataPatternResponseSchema: () => PageDataPatternResponseSchema,
|
|
333
|
+
PageDataProfileResponseSchema: () => PageDataProfileResponseSchema,
|
|
334
|
+
PageDictionaryResponseSchema: () => PageDictionaryResponseSchema,
|
|
335
|
+
PageableObjectSchema: () => PageableObjectSchema,
|
|
276
336
|
PaginatedScanResultsSchema: () => PaginatedScanResultsSchema,
|
|
277
337
|
PatternDetectionSchema: () => PatternDetectionSchema,
|
|
278
338
|
PolicyAppProtectionSchema: () => PolicyAppProtectionSchema,
|
|
@@ -338,6 +398,7 @@ __export(index_exports, {
|
|
|
338
398
|
RegistryCredentialsSchema: () => RegistryCredentialsSchema,
|
|
339
399
|
RemediationDetailSchema: () => RemediationDetailSchema,
|
|
340
400
|
RemediationResponseSchema: () => RemediationResponseSchema,
|
|
401
|
+
ResourceModelExtensionSchema: () => ResourceModelExtensionSchema,
|
|
341
402
|
ResponseDetectedSchema: () => ResponseDetectedSchema,
|
|
342
403
|
ResponseDetectionDetailsSchema: () => ResponseDetectionDetailsSchema,
|
|
343
404
|
ResponseMode: () => ResponseMode,
|
|
@@ -352,6 +413,11 @@ __export(index_exports, {
|
|
|
352
413
|
RuleEvaluationResponseSchema: () => RuleEvaluationResponseSchema,
|
|
353
414
|
RuleEvaluationResult: () => RuleEvaluationResult,
|
|
354
415
|
RuleFieldValueKey: () => RuleFieldValueKey,
|
|
416
|
+
RuleItemConfidenceLevelSchema: () => RuleItemConfidenceLevelSchema,
|
|
417
|
+
RuleItemDetectionTechniqueSchema: () => RuleItemDetectionTechniqueSchema,
|
|
418
|
+
RuleItemEdmMatchCriteriaSchema: () => RuleItemEdmMatchCriteriaSchema,
|
|
419
|
+
RuleItemMatchTypeSchema: () => RuleItemMatchTypeSchema,
|
|
420
|
+
RuleItemOccurrenceOperatorTypeSchema: () => RuleItemOccurrenceOperatorTypeSchema,
|
|
355
421
|
RuleRemediationSchema: () => RuleRemediationSchema,
|
|
356
422
|
RuleState: () => RuleState,
|
|
357
423
|
RuleType: () => RuleType,
|
|
@@ -390,6 +456,8 @@ __export(index_exports, {
|
|
|
390
456
|
SortByDateField: () => SortByDateField,
|
|
391
457
|
SortByFileField: () => SortByFileField,
|
|
392
458
|
SortDirection: () => SortDirection,
|
|
459
|
+
SortObjectSchema: () => SortObjectSchema,
|
|
460
|
+
SourceAttributesSchema: () => SourceAttributesSchema,
|
|
393
461
|
SourceType: () => SourceType,
|
|
394
462
|
StaticJobMetadataSchema: () => StaticJobMetadataSchema,
|
|
395
463
|
StaticJobRemediationRecommendationSchema: () => StaticJobRemediationRecommendationSchema,
|
|
@@ -437,6 +505,7 @@ __export(index_exports, {
|
|
|
437
505
|
TopicArraySchema: () => TopicArraySchema,
|
|
438
506
|
TopicObjectSchema: () => TopicObjectSchema,
|
|
439
507
|
TopicsClient: () => TopicsClient,
|
|
508
|
+
URLExclusionSchema: () => URLExclusionSchema,
|
|
440
509
|
USER_AGENT: () => USER_AGENT,
|
|
441
510
|
UrlCategorySchema: () => UrlCategorySchema,
|
|
442
511
|
UrlfEntrySchema: () => UrlfEntrySchema,
|
|
@@ -445,8 +514,11 @@ __export(index_exports, {
|
|
|
445
514
|
ViolationListSchema: () => ViolationListSchema,
|
|
446
515
|
ViolationResponseSchema: () => ViolationResponseSchema,
|
|
447
516
|
WebSocketConnectionParamsSchema: () => WebSocketConnectionParamsSchema,
|
|
517
|
+
WeightedRegexSchema: () => WeightedRegexSchema,
|
|
448
518
|
globalConfiguration: () => globalConfiguration,
|
|
449
|
-
init: () => init
|
|
519
|
+
init: () => init,
|
|
520
|
+
jsonNullable: () => jsonNullable,
|
|
521
|
+
pageSchema: () => pageSchema
|
|
450
522
|
});
|
|
451
523
|
module.exports = __toCommonJS(index_exports);
|
|
452
524
|
|
|
@@ -481,7 +553,7 @@ var MAX_NUMBER_OF_BATCH_SCAN_OBJECTS = 5;
|
|
|
481
553
|
var MAX_CONNECTION_POOL_SIZE = 100;
|
|
482
554
|
var MAX_NUMBER_OF_RETRIES = 5;
|
|
483
555
|
var HTTP_FORCE_RETRY_STATUS_CODES = [500, 502, 503, 504];
|
|
484
|
-
var SDK_VERSION = "0.
|
|
556
|
+
var SDK_VERSION = "0.9.0";
|
|
485
557
|
var USER_AGENT = `PAN-AIRS/${SDK_VERSION}-typescript-sdk`;
|
|
486
558
|
var DEFAULT_MGMT_ENDPOINT = "https://api.sase.paloaltonetworks.com/aisec";
|
|
487
559
|
var DEFAULT_TOKEN_ENDPOINT = "https://auth.apps.paloaltonetworks.com/oauth2/access_token";
|
|
@@ -508,6 +580,11 @@ var MGMT_CUSTOMER_APP_PATH = "/v1/mgmt/customerapp";
|
|
|
508
580
|
var MGMT_CUSTOMER_APPS_TSG_PATH = "/v1/mgmt/customerapp/tsg";
|
|
509
581
|
var MGMT_OAUTH_INVALIDATE_PATH = "/v1/mgmt/oauth/invalidateToken";
|
|
510
582
|
var MGMT_OAUTH_TOKEN_PATH = "/v1/mgmt/oauth/client_credential/accesstoken";
|
|
583
|
+
var DEFAULT_DLP_ENDPOINT = "https://api.dlp.paloaltonetworks.com";
|
|
584
|
+
var DLP_DATA_FILTERING_PROFILES_PATH = "/v2/api/data-filtering-profiles";
|
|
585
|
+
var DLP_DATA_PATTERNS_PATH = "/v2/api/data-patterns";
|
|
586
|
+
var DLP_DICTIONARIES_PATH = "/v2/api/dictionaries";
|
|
587
|
+
var DLP_DATA_PROFILES_PATH = "/v2/api/data-profiles";
|
|
511
588
|
var DEFAULT_MODEL_SEC_DATA_ENDPOINT = "https://api.sase.paloaltonetworks.com/aims/data";
|
|
512
589
|
var DEFAULT_MODEL_SEC_MGMT_ENDPOINT = "https://api.sase.paloaltonetworks.com/aims/mgmt";
|
|
513
590
|
var MODEL_SEC_CLIENT_ID = "PANW_MODEL_SEC_CLIENT_ID";
|
|
@@ -771,16 +848,20 @@ async function request(spec) {
|
|
|
771
848
|
}
|
|
772
849
|
const headers = { "User-Agent": USER_AGENT };
|
|
773
850
|
let bodyText;
|
|
774
|
-
|
|
775
|
-
|
|
851
|
+
let bodyForFetch;
|
|
852
|
+
if (spec.formData !== void 0) {
|
|
853
|
+
bodyForFetch = spec.formData;
|
|
854
|
+
} else if (spec.body !== void 0) {
|
|
855
|
+
headers["Content-Type"] = spec.contentType ?? "application/json";
|
|
776
856
|
bodyText = JSON.stringify(spec.body);
|
|
857
|
+
bodyForFetch = bodyText;
|
|
777
858
|
}
|
|
778
859
|
const prepared = { method: spec.method, url, headers, bodyText };
|
|
779
860
|
const final = await spec.auth.prepare(prepared);
|
|
780
861
|
return fetch(final.url.toString(), {
|
|
781
862
|
method: final.method,
|
|
782
863
|
headers: final.headers,
|
|
783
|
-
body: final.bodyText
|
|
864
|
+
body: spec.formData !== void 0 ? bodyForFetch : final.bodyText
|
|
784
865
|
});
|
|
785
866
|
},
|
|
786
867
|
onRetryableFailure: async (res) => {
|
|
@@ -798,6 +879,9 @@ async function request(spec) {
|
|
|
798
879
|
if (!spec.responseSchema) {
|
|
799
880
|
return void 0;
|
|
800
881
|
}
|
|
882
|
+
if (spec.allowEmptyBody && !text) {
|
|
883
|
+
return void 0;
|
|
884
|
+
}
|
|
801
885
|
let parsed;
|
|
802
886
|
try {
|
|
803
887
|
parsed = text ? JSON.parse(text) : {};
|
|
@@ -1873,6 +1957,454 @@ var Oauth2TokenSchema = import_zod24.z.object({
|
|
|
1873
1957
|
status: import_zod24.z.string().optional()
|
|
1874
1958
|
}).passthrough();
|
|
1875
1959
|
|
|
1960
|
+
// src/models/dlp-audit.ts
|
|
1961
|
+
var import_zod25 = require("zod");
|
|
1962
|
+
var AuditResponseSchema = import_zod25.z.object({
|
|
1963
|
+
created_at: import_zod25.z.string().optional(),
|
|
1964
|
+
created_by: import_zod25.z.string().optional(),
|
|
1965
|
+
updated_at: import_zod25.z.string().optional(),
|
|
1966
|
+
updated_by: import_zod25.z.string().optional()
|
|
1967
|
+
}).passthrough();
|
|
1968
|
+
|
|
1969
|
+
// src/models/dlp-page.ts
|
|
1970
|
+
var import_zod26 = require("zod");
|
|
1971
|
+
var SortObjectSchema = import_zod26.z.object({
|
|
1972
|
+
empty: import_zod26.z.boolean().optional(),
|
|
1973
|
+
sorted: import_zod26.z.boolean().optional(),
|
|
1974
|
+
unsorted: import_zod26.z.boolean().optional()
|
|
1975
|
+
}).passthrough();
|
|
1976
|
+
var PageableObjectSchema = import_zod26.z.object({
|
|
1977
|
+
offset: import_zod26.z.number().optional(),
|
|
1978
|
+
pageNumber: import_zod26.z.number().optional(),
|
|
1979
|
+
pageSize: import_zod26.z.number().optional(),
|
|
1980
|
+
paged: import_zod26.z.boolean().optional(),
|
|
1981
|
+
unpaged: import_zod26.z.boolean().optional(),
|
|
1982
|
+
sort: SortObjectSchema.optional()
|
|
1983
|
+
}).passthrough();
|
|
1984
|
+
function pageSchema(itemSchema) {
|
|
1985
|
+
return import_zod26.z.object({
|
|
1986
|
+
content: import_zod26.z.array(itemSchema),
|
|
1987
|
+
empty: import_zod26.z.boolean().optional(),
|
|
1988
|
+
first: import_zod26.z.boolean().optional(),
|
|
1989
|
+
last: import_zod26.z.boolean().optional(),
|
|
1990
|
+
number: import_zod26.z.number().optional(),
|
|
1991
|
+
numberOfElements: import_zod26.z.number().optional(),
|
|
1992
|
+
pageable: PageableObjectSchema.optional(),
|
|
1993
|
+
size: import_zod26.z.number().optional(),
|
|
1994
|
+
sort: SortObjectSchema.optional(),
|
|
1995
|
+
totalElements: import_zod26.z.number().optional(),
|
|
1996
|
+
totalPages: import_zod26.z.number().optional()
|
|
1997
|
+
}).passthrough();
|
|
1998
|
+
}
|
|
1999
|
+
|
|
2000
|
+
// src/models/dlp-json-nullable.ts
|
|
2001
|
+
function jsonNullable(inner) {
|
|
2002
|
+
return inner.nullable().optional();
|
|
2003
|
+
}
|
|
2004
|
+
|
|
2005
|
+
// src/models/dlp-dictionary.ts
|
|
2006
|
+
var import_zod27 = require("zod");
|
|
2007
|
+
var DictionaryTypeSchema = import_zod27.z.enum(["predefined", "custom"]);
|
|
2008
|
+
var DictionaryCategorySchema = import_zod27.z.enum([
|
|
2009
|
+
"Academic",
|
|
2010
|
+
"Confidential",
|
|
2011
|
+
"Employment",
|
|
2012
|
+
"Financial",
|
|
2013
|
+
"Government",
|
|
2014
|
+
"Healthcare",
|
|
2015
|
+
"Legal",
|
|
2016
|
+
"Marketing",
|
|
2017
|
+
"Source Code"
|
|
2018
|
+
]);
|
|
2019
|
+
var DictionaryClassificationSchema = import_zod27.z.enum(["pab", "endpoint"]);
|
|
2020
|
+
var DictionaryDetectionTechniqueSchema = import_zod27.z.enum([
|
|
2021
|
+
"edm",
|
|
2022
|
+
"document_fingerprint",
|
|
2023
|
+
"trainable_classifier",
|
|
2024
|
+
"ml_document",
|
|
2025
|
+
"regex",
|
|
2026
|
+
"weighted_regex",
|
|
2027
|
+
"ml",
|
|
2028
|
+
"titus_tag",
|
|
2029
|
+
"wildfire",
|
|
2030
|
+
"file_property",
|
|
2031
|
+
"dictionary",
|
|
2032
|
+
"pab",
|
|
2033
|
+
"document_classifier"
|
|
2034
|
+
]);
|
|
2035
|
+
var DictionaryDetectionSubTechniqueSchema = import_zod27.z.enum([
|
|
2036
|
+
"dnn",
|
|
2037
|
+
"gamma",
|
|
2038
|
+
"ml_gateway",
|
|
2039
|
+
"encoding",
|
|
2040
|
+
"password_protected",
|
|
2041
|
+
"encryption",
|
|
2042
|
+
"compression",
|
|
2043
|
+
"threshold"
|
|
2044
|
+
]);
|
|
2045
|
+
var DictionaryMetaDataDTOSchema = import_zod27.z.object({
|
|
2046
|
+
number_of_keywords: import_zod27.z.number().optional(),
|
|
2047
|
+
original_file_name: import_zod27.z.string().optional(),
|
|
2048
|
+
original_file_size_in_byte: import_zod27.z.number().optional()
|
|
2049
|
+
}).passthrough();
|
|
2050
|
+
var DictionaryTagsSchema = import_zod27.z.object({
|
|
2051
|
+
classification: import_zod27.z.array(DictionaryClassificationSchema).optional()
|
|
2052
|
+
}).passthrough();
|
|
2053
|
+
var ResourceModelExtensionSchema = import_zod27.z.object({
|
|
2054
|
+
key: import_zod27.z.string().optional(),
|
|
2055
|
+
value: import_zod27.z.string().optional()
|
|
2056
|
+
}).passthrough();
|
|
2057
|
+
var DictionaryRequestSchema = import_zod27.z.object({
|
|
2058
|
+
category: DictionaryCategorySchema,
|
|
2059
|
+
name: import_zod27.z.string(),
|
|
2060
|
+
original_file_name: import_zod27.z.string(),
|
|
2061
|
+
region_name: import_zod27.z.string(),
|
|
2062
|
+
description: import_zod27.z.string().optional(),
|
|
2063
|
+
is_case_sensitive: import_zod27.z.boolean().optional(),
|
|
2064
|
+
type: DictionaryTypeSchema.optional()
|
|
2065
|
+
}).passthrough();
|
|
2066
|
+
var DictionaryPatchRequestSchema = import_zod27.z.object({
|
|
2067
|
+
category: DictionaryCategorySchema,
|
|
2068
|
+
name: import_zod27.z.string(),
|
|
2069
|
+
original_file_name: import_zod27.z.string(),
|
|
2070
|
+
description: jsonNullable(import_zod27.z.string()),
|
|
2071
|
+
is_case_sensitive: jsonNullable(import_zod27.z.boolean()),
|
|
2072
|
+
region_name: jsonNullable(import_zod27.z.string())
|
|
2073
|
+
}).passthrough();
|
|
2074
|
+
var DictionaryResponseSchema = import_zod27.z.object({
|
|
2075
|
+
id: import_zod27.z.string().optional(),
|
|
2076
|
+
name: import_zod27.z.string().optional(),
|
|
2077
|
+
description: import_zod27.z.string().optional(),
|
|
2078
|
+
category: import_zod27.z.string().optional(),
|
|
2079
|
+
region_name: import_zod27.z.string().optional(),
|
|
2080
|
+
type: DictionaryTypeSchema.optional(),
|
|
2081
|
+
is_case_sensitive: import_zod27.z.boolean().optional(),
|
|
2082
|
+
is_parent_managed: import_zod27.z.boolean().optional(),
|
|
2083
|
+
detection_technique: DictionaryDetectionTechniqueSchema.optional(),
|
|
2084
|
+
detection_sub_technique: DictionaryDetectionSubTechniqueSchema.optional(),
|
|
2085
|
+
dictionary_metadata: DictionaryMetaDataDTOSchema.optional(),
|
|
2086
|
+
/** Keyword list — populated only when `keywords=true` is passed as a query parameter. */
|
|
2087
|
+
keywords: import_zod27.z.array(import_zod27.z.string()).optional(),
|
|
2088
|
+
tags: DictionaryTagsSchema.optional(),
|
|
2089
|
+
attributes: import_zod27.z.array(ResourceModelExtensionSchema).optional(),
|
|
2090
|
+
audit_metadata: AuditResponseSchema.optional()
|
|
2091
|
+
}).passthrough();
|
|
2092
|
+
var PageDictionaryResponseSchema = pageSchema(DictionaryResponseSchema);
|
|
2093
|
+
|
|
2094
|
+
// src/models/dlp-data-pattern.ts
|
|
2095
|
+
var import_zod28 = require("zod");
|
|
2096
|
+
var DataPatternTypeSchema = import_zod28.z.enum(["predefined", "custom", "file_property"]);
|
|
2097
|
+
var DataPatternTechniqueSchema = import_zod28.z.enum([
|
|
2098
|
+
"edm",
|
|
2099
|
+
"document_fingerprint",
|
|
2100
|
+
"trainable_classifier",
|
|
2101
|
+
"ml_document",
|
|
2102
|
+
"regex",
|
|
2103
|
+
"weighted_regex",
|
|
2104
|
+
"ml",
|
|
2105
|
+
"titus_tag",
|
|
2106
|
+
"wildfire",
|
|
2107
|
+
"file_property",
|
|
2108
|
+
"dictionary",
|
|
2109
|
+
"pab",
|
|
2110
|
+
"document_classifier"
|
|
2111
|
+
]);
|
|
2112
|
+
var DataPatternConfidenceLevelSchema = import_zod28.z.enum(["low", "medium", "high"]);
|
|
2113
|
+
var DataPatternLicenseTypeSchema = import_zod28.z.enum(["standard", "enterprise", "essentials"]);
|
|
2114
|
+
var DataPatternStatusSchema = import_zod28.z.enum([
|
|
2115
|
+
"active",
|
|
2116
|
+
"disabled",
|
|
2117
|
+
"deleted",
|
|
2118
|
+
"deprecated",
|
|
2119
|
+
"silent"
|
|
2120
|
+
]);
|
|
2121
|
+
var ComparisonOperatorTypeSchema = import_zod28.z.enum([
|
|
2122
|
+
"less_than",
|
|
2123
|
+
"less_than_or_equal_to",
|
|
2124
|
+
"greater_than_or_equal_to",
|
|
2125
|
+
"greater_than",
|
|
2126
|
+
"equal_to"
|
|
2127
|
+
]);
|
|
2128
|
+
var WeightedRegexSchema = import_zod28.z.object({
|
|
2129
|
+
regex: import_zod28.z.string().min(1),
|
|
2130
|
+
weight: import_zod28.z.number()
|
|
2131
|
+
}).passthrough();
|
|
2132
|
+
var MetadataCriterionSchema = import_zod28.z.object({
|
|
2133
|
+
comparisonOperatorType: ComparisonOperatorTypeSchema.optional(),
|
|
2134
|
+
name: import_zod28.z.string().optional(),
|
|
2135
|
+
type: import_zod28.z.string().optional(),
|
|
2136
|
+
value: import_zod28.z.string().optional()
|
|
2137
|
+
}).passthrough();
|
|
2138
|
+
var DataPatternDetectionConfigSchema = import_zod28.z.object({
|
|
2139
|
+
technique: DataPatternTechniqueSchema,
|
|
2140
|
+
supported_confidence_levels: import_zod28.z.array(DataPatternConfidenceLevelSchema).optional()
|
|
2141
|
+
}).passthrough();
|
|
2142
|
+
var DataPatternMatchingRulesSchema = import_zod28.z.object({
|
|
2143
|
+
delimiter: import_zod28.z.string().optional(),
|
|
2144
|
+
/** Proximity window for keyword matching — spec bounds 2..1000 inclusive. */
|
|
2145
|
+
proximity_distance: import_zod28.z.number().int().min(2).max(1e3).optional(),
|
|
2146
|
+
proximity_keywords: import_zod28.z.array(import_zod28.z.string()).optional(),
|
|
2147
|
+
regexes: import_zod28.z.array(WeightedRegexSchema).optional(),
|
|
2148
|
+
metadata_criteria: import_zod28.z.array(MetadataCriterionSchema).optional()
|
|
2149
|
+
}).passthrough();
|
|
2150
|
+
var DataPatternTagsSchema = import_zod28.z.object({
|
|
2151
|
+
classification: import_zod28.z.array(import_zod28.z.string()).optional(),
|
|
2152
|
+
compliance: import_zod28.z.array(import_zod28.z.string()).optional(),
|
|
2153
|
+
geography: import_zod28.z.array(import_zod28.z.string()).optional()
|
|
2154
|
+
}).passthrough();
|
|
2155
|
+
var DataPatternRequestSchema = import_zod28.z.object({
|
|
2156
|
+
name: import_zod28.z.string().min(1).max(64),
|
|
2157
|
+
type: DataPatternTypeSchema,
|
|
2158
|
+
detection_config: DataPatternDetectionConfigSchema,
|
|
2159
|
+
description: import_zod28.z.string().optional(),
|
|
2160
|
+
matching_rules: DataPatternMatchingRulesSchema.optional(),
|
|
2161
|
+
tags: DataPatternTagsSchema.optional()
|
|
2162
|
+
}).passthrough();
|
|
2163
|
+
var DataPatternPatchRequestSchema = import_zod28.z.object({
|
|
2164
|
+
name: import_zod28.z.string().min(1).max(64),
|
|
2165
|
+
type: DataPatternTypeSchema,
|
|
2166
|
+
detection_config: DataPatternDetectionConfigSchema,
|
|
2167
|
+
description: jsonNullable(import_zod28.z.string()),
|
|
2168
|
+
matching_rules: jsonNullable(DataPatternMatchingRulesSchema),
|
|
2169
|
+
tags: jsonNullable(DataPatternTagsSchema)
|
|
2170
|
+
}).passthrough();
|
|
2171
|
+
var DataPatternResponseSchema = import_zod28.z.object({
|
|
2172
|
+
id: import_zod28.z.string().optional(),
|
|
2173
|
+
name: import_zod28.z.string().optional(),
|
|
2174
|
+
description: import_zod28.z.string().optional(),
|
|
2175
|
+
tenant_id: import_zod28.z.string().optional(),
|
|
2176
|
+
type: DataPatternTypeSchema.optional(),
|
|
2177
|
+
status: DataPatternStatusSchema.optional(),
|
|
2178
|
+
license_type: DataPatternLicenseTypeSchema.optional(),
|
|
2179
|
+
is_parent_managed: import_zod28.z.boolean().optional(),
|
|
2180
|
+
version: import_zod28.z.number().optional(),
|
|
2181
|
+
detection_config: DataPatternDetectionConfigSchema.optional(),
|
|
2182
|
+
matching_rules: DataPatternMatchingRulesSchema.optional(),
|
|
2183
|
+
tags: DataPatternTagsSchema.optional(),
|
|
2184
|
+
audit_metadata: AuditResponseSchema.optional()
|
|
2185
|
+
}).passthrough();
|
|
2186
|
+
var PageDataPatternResponseSchema = pageSchema(DataPatternResponseSchema);
|
|
2187
|
+
|
|
2188
|
+
// src/models/dlp-data-profile.ts
|
|
2189
|
+
var import_zod29 = require("zod");
|
|
2190
|
+
var ExpressionOperatorTypeSchema = import_zod29.z.enum(["and", "or", "not", "and_not", "or_not"]);
|
|
2191
|
+
var RuleItemDetectionTechniqueSchema = import_zod29.z.enum([
|
|
2192
|
+
"edm",
|
|
2193
|
+
"document_fingerprint",
|
|
2194
|
+
"trainable_classifier",
|
|
2195
|
+
"ml_document",
|
|
2196
|
+
"regex",
|
|
2197
|
+
"weighted_regex",
|
|
2198
|
+
"ml",
|
|
2199
|
+
"titus_tag",
|
|
2200
|
+
"wildfire",
|
|
2201
|
+
"file_property",
|
|
2202
|
+
"dictionary",
|
|
2203
|
+
"pab",
|
|
2204
|
+
"document_classifier"
|
|
2205
|
+
]);
|
|
2206
|
+
var RuleItemMatchTypeSchema = import_zod29.z.enum(["include", "exclude"]);
|
|
2207
|
+
var RuleItemOccurrenceOperatorTypeSchema = import_zod29.z.enum([
|
|
2208
|
+
"any",
|
|
2209
|
+
"less_than_equal_to",
|
|
2210
|
+
"more_than_equal_to",
|
|
2211
|
+
"between"
|
|
2212
|
+
]);
|
|
2213
|
+
var RuleItemConfidenceLevelSchema = import_zod29.z.enum(["low", "medium", "high"]);
|
|
2214
|
+
var RuleItemEdmMatchCriteriaSchema = import_zod29.z.enum(["any", "all"]);
|
|
2215
|
+
var DataProfileTypeSchema = import_zod29.z.enum(["basic", "advanced"]);
|
|
2216
|
+
var DataProfileStatusSchema = import_zod29.z.enum(["active", "disabled", "deleted"]);
|
|
2217
|
+
var DataProfileSubtypeSchema = import_zod29.z.enum(["custom", "predefined"]);
|
|
2218
|
+
var DetectionRuleItemSchema = import_zod29.z.object({
|
|
2219
|
+
detection_technique: RuleItemDetectionTechniqueSchema,
|
|
2220
|
+
id: import_zod29.z.string().optional(),
|
|
2221
|
+
name: import_zod29.z.string().optional(),
|
|
2222
|
+
description: import_zod29.z.string().optional(),
|
|
2223
|
+
version: import_zod29.z.number().int().optional(),
|
|
2224
|
+
match_type: RuleItemMatchTypeSchema.optional(),
|
|
2225
|
+
by_unique_count: import_zod29.z.boolean().optional(),
|
|
2226
|
+
confidence_level: RuleItemConfidenceLevelSchema.optional(),
|
|
2227
|
+
supported_confidence_levels: import_zod29.z.array(RuleItemConfidenceLevelSchema).optional(),
|
|
2228
|
+
occurrence_count: import_zod29.z.number().int().optional(),
|
|
2229
|
+
occurrence_high: import_zod29.z.number().int().optional(),
|
|
2230
|
+
occurrence_low: import_zod29.z.number().int().optional(),
|
|
2231
|
+
occurrence_operator_type: RuleItemOccurrenceOperatorTypeSchema.optional(),
|
|
2232
|
+
// dictionary + document-type fields
|
|
2233
|
+
score: import_zod29.z.number().int().optional(),
|
|
2234
|
+
score_high: import_zod29.z.number().int().optional(),
|
|
2235
|
+
score_low: import_zod29.z.number().int().optional(),
|
|
2236
|
+
// edm fields
|
|
2237
|
+
edm_dataset_id: import_zod29.z.string().optional(),
|
|
2238
|
+
primary_fields: import_zod29.z.array(import_zod29.z.string()).optional(),
|
|
2239
|
+
primary_match_criteria: RuleItemEdmMatchCriteriaSchema.optional(),
|
|
2240
|
+
primary_match_any_count: import_zod29.z.number().int().optional(),
|
|
2241
|
+
secondary_fields: import_zod29.z.array(import_zod29.z.string()).optional(),
|
|
2242
|
+
secondary_match_criteria: RuleItemEdmMatchCriteriaSchema.optional(),
|
|
2243
|
+
secondary_match_any_count: import_zod29.z.number().int().optional()
|
|
2244
|
+
}).passthrough();
|
|
2245
|
+
var ExpressionTreeNodeSchema = import_zod29.z.lazy(
|
|
2246
|
+
() => import_zod29.z.object({
|
|
2247
|
+
operator_type: ExpressionOperatorTypeSchema.optional(),
|
|
2248
|
+
rule_item: DetectionRuleItemSchema.optional(),
|
|
2249
|
+
sub_expressions: import_zod29.z.array(ExpressionTreeNodeSchema).optional()
|
|
2250
|
+
}).passthrough()
|
|
2251
|
+
);
|
|
2252
|
+
var MultiProfileDataNodeSchema = import_zod29.z.object({
|
|
2253
|
+
data_profile_ids: import_zod29.z.array(import_zod29.z.number()).optional(),
|
|
2254
|
+
operator_type: ExpressionOperatorTypeSchema.optional()
|
|
2255
|
+
}).passthrough();
|
|
2256
|
+
var DefaultTreeDetectionRuleSchema = import_zod29.z.object({
|
|
2257
|
+
rule_type: import_zod29.z.literal("expression_tree"),
|
|
2258
|
+
expression_tree: ExpressionTreeNodeSchema.optional()
|
|
2259
|
+
}).passthrough();
|
|
2260
|
+
var MultiProfileDetectionRuleSchema = import_zod29.z.object({
|
|
2261
|
+
rule_type: import_zod29.z.literal("multi_profile"),
|
|
2262
|
+
multi_profile: MultiProfileDataNodeSchema.optional()
|
|
2263
|
+
}).passthrough();
|
|
2264
|
+
var DetectionRuleSchema = import_zod29.z.discriminatedUnion("rule_type", [
|
|
2265
|
+
DefaultTreeDetectionRuleSchema,
|
|
2266
|
+
MultiProfileDetectionRuleSchema
|
|
2267
|
+
]);
|
|
2268
|
+
var AdvancedDataProfileRequestSchema = import_zod29.z.object({
|
|
2269
|
+
name: import_zod29.z.string().min(1).max(64),
|
|
2270
|
+
detection_rules: import_zod29.z.array(DetectionRuleSchema),
|
|
2271
|
+
description: import_zod29.z.string().optional(),
|
|
2272
|
+
is_granular_data_profile: import_zod29.z.boolean().optional()
|
|
2273
|
+
}).passthrough();
|
|
2274
|
+
var DataProfilePatchRequestSchema = import_zod29.z.object({
|
|
2275
|
+
name: import_zod29.z.string(),
|
|
2276
|
+
profile_type: DataProfileTypeSchema,
|
|
2277
|
+
description: jsonNullable(import_zod29.z.string()),
|
|
2278
|
+
detection_rules: jsonNullable(import_zod29.z.array(DetectionRuleSchema))
|
|
2279
|
+
}).passthrough();
|
|
2280
|
+
var DataProfileResponseSchema = import_zod29.z.object({
|
|
2281
|
+
id: import_zod29.z.string().optional(),
|
|
2282
|
+
name: import_zod29.z.string().optional(),
|
|
2283
|
+
description: import_zod29.z.string().optional(),
|
|
2284
|
+
tenant_id: import_zod29.z.string().optional(),
|
|
2285
|
+
type: DataProfileSubtypeSchema.optional(),
|
|
2286
|
+
profile_status: DataProfileStatusSchema.optional(),
|
|
2287
|
+
profile_type: DataProfileTypeSchema.optional(),
|
|
2288
|
+
is_granular_data_profile: import_zod29.z.boolean().optional(),
|
|
2289
|
+
is_parent_managed: import_zod29.z.boolean().optional(),
|
|
2290
|
+
version: import_zod29.z.number().int().optional(),
|
|
2291
|
+
advance_data_patterns_rule_request: import_zod29.z.array(import_zod29.z.string()).optional(),
|
|
2292
|
+
detection_rules: import_zod29.z.array(DetectionRuleSchema).optional(),
|
|
2293
|
+
audit_metadata: AuditResponseSchema.optional()
|
|
2294
|
+
}).passthrough();
|
|
2295
|
+
var PageDataProfileResponseSchema = pageSchema(DataProfileResponseSchema);
|
|
2296
|
+
|
|
2297
|
+
// src/models/dlp-data-filtering-profile.ts
|
|
2298
|
+
var import_zod30 = require("zod");
|
|
2299
|
+
var AppExclusionSchema = import_zod30.z.object({
|
|
2300
|
+
app_id: import_zod30.z.string().optional(),
|
|
2301
|
+
app_name: import_zod30.z.string().optional(),
|
|
2302
|
+
type: import_zod30.z.string().optional()
|
|
2303
|
+
}).passthrough();
|
|
2304
|
+
var URLExclusionSchema = import_zod30.z.object({
|
|
2305
|
+
type: import_zod30.z.string().optional(),
|
|
2306
|
+
url_id: import_zod30.z.string().optional(),
|
|
2307
|
+
url_name: import_zod30.z.string().optional()
|
|
2308
|
+
}).passthrough();
|
|
2309
|
+
var ExclusionsSchema = import_zod30.z.object({
|
|
2310
|
+
app_exclusion_list: import_zod30.z.array(AppExclusionSchema).optional(),
|
|
2311
|
+
url_exclusion_list: import_zod30.z.array(URLExclusionSchema).optional(),
|
|
2312
|
+
/**
|
|
2313
|
+
* Map of category-name → string-array. `additionalProperties: { type: array of string }`
|
|
2314
|
+
* in the OpenAPI spec; modeled here as `z.record(z.array(z.string()))`.
|
|
2315
|
+
*/
|
|
2316
|
+
exclusion_list: import_zod30.z.record(import_zod30.z.array(import_zod30.z.string())).optional()
|
|
2317
|
+
}).passthrough();
|
|
2318
|
+
var SourceAttributesSchema = import_zod30.z.object({
|
|
2319
|
+
match_any: import_zod30.z.boolean().optional(),
|
|
2320
|
+
user_group_ids: import_zod30.z.array(import_zod30.z.string()).optional(),
|
|
2321
|
+
user_ids: import_zod30.z.array(import_zod30.z.string()).optional()
|
|
2322
|
+
}).passthrough();
|
|
2323
|
+
var DestinationAttributesSchema = import_zod30.z.object({
|
|
2324
|
+
match_any: import_zod30.z.boolean().optional(),
|
|
2325
|
+
app_ids: import_zod30.z.array(import_zod30.z.string()).optional(),
|
|
2326
|
+
url_patterns: import_zod30.z.array(import_zod30.z.string()).optional()
|
|
2327
|
+
}).passthrough();
|
|
2328
|
+
var ExceptionRuleDTOSchema = import_zod30.z.object({
|
|
2329
|
+
id: import_zod30.z.string().optional(),
|
|
2330
|
+
action: import_zod30.z.enum(["ALLOW", "ALERT", "BLOCK"]).optional(),
|
|
2331
|
+
log_severity: import_zod30.z.enum(["INFORMATIONAL", "LOW", "MEDIUM", "HIGH", "CRITICAL"]).optional(),
|
|
2332
|
+
/**
|
|
2333
|
+
* `int64` per spec; declared as `z.number()` since JS numbers cover any realistic
|
|
2334
|
+
* data_profile_id and the SDK never round-trips these unmodified.
|
|
2335
|
+
*/
|
|
2336
|
+
data_profile_ids: import_zod30.z.array(import_zod30.z.number()).optional(),
|
|
2337
|
+
destination_attributes: DestinationAttributesSchema.optional(),
|
|
2338
|
+
source_attributes: SourceAttributesSchema.optional()
|
|
2339
|
+
}).passthrough();
|
|
2340
|
+
var DataFilteringRuleDTOSchema = import_zod30.z.object({
|
|
2341
|
+
action: import_zod30.z.string().optional(),
|
|
2342
|
+
response_page: import_zod30.z.string().optional(),
|
|
2343
|
+
show_rsp_page: import_zod30.z.string().optional()
|
|
2344
|
+
}).passthrough();
|
|
2345
|
+
var DataFilteringDetailsSchema = import_zod30.z.object({
|
|
2346
|
+
action: import_zod30.z.string().optional(),
|
|
2347
|
+
dataProfileId: import_zod30.z.number().optional(),
|
|
2348
|
+
direction: import_zod30.z.string().optional(),
|
|
2349
|
+
euc_template_id: import_zod30.z.string().optional(),
|
|
2350
|
+
fileBased: import_zod30.z.string().optional(),
|
|
2351
|
+
fileTypes: import_zod30.z.array(import_zod30.z.string()).optional(),
|
|
2352
|
+
is_end_user_coaching_enabled: import_zod30.z.boolean().optional(),
|
|
2353
|
+
logSeverity: import_zod30.z.string().optional(),
|
|
2354
|
+
nonFileBased: import_zod30.z.string().optional(),
|
|
2355
|
+
scanType: import_zod30.z.string().optional()
|
|
2356
|
+
}).passthrough();
|
|
2357
|
+
var DataFilteringProfileRequestSchema = import_zod30.z.object({
|
|
2358
|
+
file_based: import_zod30.z.boolean(),
|
|
2359
|
+
non_file_based: import_zod30.z.boolean(),
|
|
2360
|
+
description: import_zod30.z.string().optional(),
|
|
2361
|
+
direction: import_zod30.z.enum(["BOTH", "UPLOAD", "DOWNLOAD"]).optional(),
|
|
2362
|
+
log_severity: import_zod30.z.enum(["CRITICAL", "HIGH", "MEDIUM", "LOW", "INFORMATIONAL"]).optional(),
|
|
2363
|
+
scan_type: import_zod30.z.enum(["include", "exclude"]).optional(),
|
|
2364
|
+
/**
|
|
2365
|
+
* `int64` per spec; declared as `z.number()`. JS will lose precision above 2^53 but
|
|
2366
|
+
* real-world IDs stay well under that ceiling.
|
|
2367
|
+
*/
|
|
2368
|
+
data_profile_id: import_zod30.z.number().optional(),
|
|
2369
|
+
euc_template_id: import_zod30.z.string().optional(),
|
|
2370
|
+
is_end_user_coaching_enabled: import_zod30.z.boolean().optional(),
|
|
2371
|
+
is_granular_profile: import_zod30.z.boolean().optional(),
|
|
2372
|
+
file_type: import_zod30.z.array(import_zod30.z.string()).optional(),
|
|
2373
|
+
criteria_details: import_zod30.z.array(DataFilteringDetailsSchema).optional(),
|
|
2374
|
+
exception_rules: import_zod30.z.array(ExceptionRuleDTOSchema).optional(),
|
|
2375
|
+
exclusions: ExclusionsSchema.optional(),
|
|
2376
|
+
rule1: DataFilteringRuleDTOSchema.optional(),
|
|
2377
|
+
rule2: DataFilteringRuleDTOSchema.optional()
|
|
2378
|
+
}).passthrough();
|
|
2379
|
+
var DataFilteringProfileResponseSchema = import_zod30.z.object({
|
|
2380
|
+
id: import_zod30.z.string().optional(),
|
|
2381
|
+
name: import_zod30.z.string().optional(),
|
|
2382
|
+
description: import_zod30.z.string().optional(),
|
|
2383
|
+
tenant_id: import_zod30.z.string().optional(),
|
|
2384
|
+
type: import_zod30.z.string().optional(),
|
|
2385
|
+
data_profile_id: import_zod30.z.number().optional(),
|
|
2386
|
+
direction: import_zod30.z.string().optional(),
|
|
2387
|
+
file_based: import_zod30.z.boolean().optional(),
|
|
2388
|
+
non_file_based: import_zod30.z.boolean().optional(),
|
|
2389
|
+
log_severity: import_zod30.z.string().optional(),
|
|
2390
|
+
scan_type: import_zod30.z.enum(["include", "exclude"]).optional(),
|
|
2391
|
+
is_end_user_coaching_enabled: import_zod30.z.boolean().optional(),
|
|
2392
|
+
is_granular_profile: import_zod30.z.boolean().optional(),
|
|
2393
|
+
is_parent_managed: import_zod30.z.boolean().optional(),
|
|
2394
|
+
euc_template_id: import_zod30.z.string().optional(),
|
|
2395
|
+
version: import_zod30.z.number().optional(),
|
|
2396
|
+
file_type: import_zod30.z.array(import_zod30.z.string()).optional(),
|
|
2397
|
+
audit_metadata: AuditResponseSchema.optional(),
|
|
2398
|
+
criteria_details: import_zod30.z.array(DataFilteringDetailsSchema).optional(),
|
|
2399
|
+
exception_rules: import_zod30.z.array(ExceptionRuleDTOSchema).optional(),
|
|
2400
|
+
exclusions: ExclusionsSchema.optional(),
|
|
2401
|
+
rule1: DataFilteringRuleDTOSchema.optional(),
|
|
2402
|
+
rule2: DataFilteringRuleDTOSchema.optional()
|
|
2403
|
+
}).passthrough();
|
|
2404
|
+
var PageDataFilteringProfileResponseSchema = pageSchema(
|
|
2405
|
+
DataFilteringProfileResponseSchema
|
|
2406
|
+
);
|
|
2407
|
+
|
|
1876
2408
|
// src/models/model-security-enums.ts
|
|
1877
2409
|
var ErrorCodes = {
|
|
1878
2410
|
UNKNOWN_ERROR: "UNKNOWN_ERROR",
|
|
@@ -2003,240 +2535,240 @@ var RuleFieldValueKey = {
|
|
|
2003
2535
|
};
|
|
2004
2536
|
|
|
2005
2537
|
// src/models/model-security.ts
|
|
2006
|
-
var
|
|
2007
|
-
var ModelSecurityPaginationSchema =
|
|
2008
|
-
total_items:
|
|
2538
|
+
var import_zod31 = require("zod");
|
|
2539
|
+
var ModelSecurityPaginationSchema = import_zod31.z.object({
|
|
2540
|
+
total_items: import_zod31.z.number().int().nullable().optional()
|
|
2009
2541
|
}).passthrough();
|
|
2010
|
-
var LabelSchema =
|
|
2011
|
-
key:
|
|
2012
|
-
value:
|
|
2542
|
+
var LabelSchema = import_zod31.z.object({
|
|
2543
|
+
key: import_zod31.z.string(),
|
|
2544
|
+
value: import_zod31.z.string()
|
|
2013
2545
|
}).passthrough();
|
|
2014
|
-
var LabelsCreateRequestSchema =
|
|
2015
|
-
labels:
|
|
2546
|
+
var LabelsCreateRequestSchema = import_zod31.z.object({
|
|
2547
|
+
labels: import_zod31.z.array(LabelSchema)
|
|
2016
2548
|
}).passthrough();
|
|
2017
|
-
var LabelsResponseSchema =
|
|
2018
|
-
var LabelKeyListSchema =
|
|
2549
|
+
var LabelsResponseSchema = import_zod31.z.object({}).passthrough();
|
|
2550
|
+
var LabelKeyListSchema = import_zod31.z.object({
|
|
2019
2551
|
pagination: ModelSecurityPaginationSchema,
|
|
2020
|
-
keys:
|
|
2552
|
+
keys: import_zod31.z.array(import_zod31.z.string())
|
|
2021
2553
|
}).passthrough();
|
|
2022
|
-
var LabelValueListSchema =
|
|
2554
|
+
var LabelValueListSchema = import_zod31.z.object({
|
|
2023
2555
|
pagination: ModelSecurityPaginationSchema,
|
|
2024
|
-
values:
|
|
2025
|
-
}).passthrough();
|
|
2026
|
-
var EvalSummarySchema =
|
|
2027
|
-
rules_failed:
|
|
2028
|
-
rules_passed:
|
|
2029
|
-
total_rules:
|
|
2030
|
-
}).passthrough();
|
|
2031
|
-
var ModelScanIssueSchema =
|
|
2032
|
-
description:
|
|
2033
|
-
source:
|
|
2034
|
-
threat:
|
|
2035
|
-
module:
|
|
2036
|
-
operator:
|
|
2037
|
-
}).passthrough();
|
|
2038
|
-
var FileScanDataSchema =
|
|
2039
|
-
file_path:
|
|
2040
|
-
modelscan_status:
|
|
2041
|
-
blob_id:
|
|
2042
|
-
error_message:
|
|
2043
|
-
formats:
|
|
2044
|
-
issues_detected:
|
|
2045
|
-
}).passthrough();
|
|
2046
|
-
var ScanDetailsSchema =
|
|
2047
|
-
scanner_version:
|
|
2048
|
-
time_started:
|
|
2049
|
-
files:
|
|
2050
|
-
total_files_scanned:
|
|
2051
|
-
total_files_skipped:
|
|
2052
|
-
model_formats:
|
|
2053
|
-
model_size_bytes:
|
|
2054
|
-
scan_duration_ms:
|
|
2055
|
-
error_code:
|
|
2056
|
-
error_message:
|
|
2057
|
-
}).passthrough();
|
|
2058
|
-
var ScanCreateRequestSchema =
|
|
2059
|
-
model_uri:
|
|
2060
|
-
security_group_uuid:
|
|
2061
|
-
scan_origin:
|
|
2062
|
-
allow_patterns:
|
|
2063
|
-
ignore_patterns:
|
|
2064
|
-
labels:
|
|
2065
|
-
model_author:
|
|
2066
|
-
model_name:
|
|
2067
|
-
model_version:
|
|
2556
|
+
values: import_zod31.z.array(import_zod31.z.string())
|
|
2557
|
+
}).passthrough();
|
|
2558
|
+
var EvalSummarySchema = import_zod31.z.object({
|
|
2559
|
+
rules_failed: import_zod31.z.number().int().optional().default(0),
|
|
2560
|
+
rules_passed: import_zod31.z.number().int().optional().default(0),
|
|
2561
|
+
total_rules: import_zod31.z.number().int().optional().default(0)
|
|
2562
|
+
}).passthrough();
|
|
2563
|
+
var ModelScanIssueSchema = import_zod31.z.object({
|
|
2564
|
+
description: import_zod31.z.string(),
|
|
2565
|
+
source: import_zod31.z.string(),
|
|
2566
|
+
threat: import_zod31.z.string().nullable().optional(),
|
|
2567
|
+
module: import_zod31.z.string().nullable().optional(),
|
|
2568
|
+
operator: import_zod31.z.string().nullable().optional()
|
|
2569
|
+
}).passthrough();
|
|
2570
|
+
var FileScanDataSchema = import_zod31.z.object({
|
|
2571
|
+
file_path: import_zod31.z.string(),
|
|
2572
|
+
modelscan_status: import_zod31.z.string(),
|
|
2573
|
+
blob_id: import_zod31.z.string(),
|
|
2574
|
+
error_message: import_zod31.z.string().nullable().optional(),
|
|
2575
|
+
formats: import_zod31.z.array(import_zod31.z.string()).nullable().optional(),
|
|
2576
|
+
issues_detected: import_zod31.z.array(ModelScanIssueSchema).nullable().optional()
|
|
2577
|
+
}).passthrough();
|
|
2578
|
+
var ScanDetailsSchema = import_zod31.z.object({
|
|
2579
|
+
scanner_version: import_zod31.z.string(),
|
|
2580
|
+
time_started: import_zod31.z.string(),
|
|
2581
|
+
files: import_zod31.z.array(FileScanDataSchema),
|
|
2582
|
+
total_files_scanned: import_zod31.z.number().int(),
|
|
2583
|
+
total_files_skipped: import_zod31.z.number().int(),
|
|
2584
|
+
model_formats: import_zod31.z.array(import_zod31.z.string()),
|
|
2585
|
+
model_size_bytes: import_zod31.z.number().int(),
|
|
2586
|
+
scan_duration_ms: import_zod31.z.number().int(),
|
|
2587
|
+
error_code: import_zod31.z.string().nullable().optional(),
|
|
2588
|
+
error_message: import_zod31.z.string().nullable().optional()
|
|
2589
|
+
}).passthrough();
|
|
2590
|
+
var ScanCreateRequestSchema = import_zod31.z.object({
|
|
2591
|
+
model_uri: import_zod31.z.string(),
|
|
2592
|
+
security_group_uuid: import_zod31.z.string(),
|
|
2593
|
+
scan_origin: import_zod31.z.string(),
|
|
2594
|
+
allow_patterns: import_zod31.z.array(import_zod31.z.string()).nullable().optional(),
|
|
2595
|
+
ignore_patterns: import_zod31.z.array(import_zod31.z.string()).nullable().optional(),
|
|
2596
|
+
labels: import_zod31.z.array(LabelSchema).nullable().optional(),
|
|
2597
|
+
model_author: import_zod31.z.string().nullable().optional(),
|
|
2598
|
+
model_name: import_zod31.z.string().nullable().optional(),
|
|
2599
|
+
model_version: import_zod31.z.string().nullable().optional(),
|
|
2068
2600
|
scan_details: ScanDetailsSchema.nullable().optional()
|
|
2069
2601
|
}).passthrough();
|
|
2070
|
-
var ScanBaseResponseSchema =
|
|
2071
|
-
uuid:
|
|
2072
|
-
tsg_id:
|
|
2073
|
-
created_at:
|
|
2074
|
-
updated_at:
|
|
2075
|
-
model_uri:
|
|
2076
|
-
owner:
|
|
2077
|
-
scan_origin:
|
|
2078
|
-
security_group_uuid:
|
|
2079
|
-
security_group_name:
|
|
2080
|
-
model_version_uuid:
|
|
2081
|
-
eval_outcome:
|
|
2082
|
-
source_type:
|
|
2083
|
-
created_by:
|
|
2084
|
-
enabled_rule_count_snapshot:
|
|
2085
|
-
error_code:
|
|
2086
|
-
error_message:
|
|
2602
|
+
var ScanBaseResponseSchema = import_zod31.z.object({
|
|
2603
|
+
uuid: import_zod31.z.string(),
|
|
2604
|
+
tsg_id: import_zod31.z.string(),
|
|
2605
|
+
created_at: import_zod31.z.string(),
|
|
2606
|
+
updated_at: import_zod31.z.string(),
|
|
2607
|
+
model_uri: import_zod31.z.string(),
|
|
2608
|
+
owner: import_zod31.z.string(),
|
|
2609
|
+
scan_origin: import_zod31.z.string(),
|
|
2610
|
+
security_group_uuid: import_zod31.z.string(),
|
|
2611
|
+
security_group_name: import_zod31.z.string(),
|
|
2612
|
+
model_version_uuid: import_zod31.z.string(),
|
|
2613
|
+
eval_outcome: import_zod31.z.string(),
|
|
2614
|
+
source_type: import_zod31.z.string(),
|
|
2615
|
+
created_by: import_zod31.z.string().nullable().optional(),
|
|
2616
|
+
enabled_rule_count_snapshot: import_zod31.z.number().int().nullable().optional(),
|
|
2617
|
+
error_code: import_zod31.z.string().nullable().optional(),
|
|
2618
|
+
error_message: import_zod31.z.string().nullable().optional(),
|
|
2087
2619
|
eval_summary: EvalSummarySchema.nullable().optional(),
|
|
2088
|
-
labels:
|
|
2089
|
-
model_formats:
|
|
2090
|
-
scanner_version:
|
|
2091
|
-
time_started:
|
|
2092
|
-
total_files_scanned:
|
|
2093
|
-
total_files_skipped:
|
|
2094
|
-
}).passthrough();
|
|
2095
|
-
var ScanListSchema =
|
|
2620
|
+
labels: import_zod31.z.array(LabelSchema).optional(),
|
|
2621
|
+
model_formats: import_zod31.z.array(import_zod31.z.string()).nullable().optional(),
|
|
2622
|
+
scanner_version: import_zod31.z.string().nullable().optional(),
|
|
2623
|
+
time_started: import_zod31.z.string().nullable().optional(),
|
|
2624
|
+
total_files_scanned: import_zod31.z.number().int().nullable().optional(),
|
|
2625
|
+
total_files_skipped: import_zod31.z.number().int().nullable().optional()
|
|
2626
|
+
}).passthrough();
|
|
2627
|
+
var ScanListSchema = import_zod31.z.object({
|
|
2096
2628
|
pagination: ModelSecurityPaginationSchema,
|
|
2097
|
-
scans:
|
|
2098
|
-
}).passthrough();
|
|
2099
|
-
var FileResponseSchema =
|
|
2100
|
-
uuid:
|
|
2101
|
-
tsg_id:
|
|
2102
|
-
created_at:
|
|
2103
|
-
updated_at:
|
|
2104
|
-
path:
|
|
2105
|
-
parent_path:
|
|
2106
|
-
type:
|
|
2107
|
-
result:
|
|
2108
|
-
model_version_uuid:
|
|
2109
|
-
blob_id:
|
|
2110
|
-
formats:
|
|
2111
|
-
scan_uuid:
|
|
2112
|
-
}).passthrough();
|
|
2113
|
-
var FileListSchema =
|
|
2629
|
+
scans: import_zod31.z.array(ScanBaseResponseSchema)
|
|
2630
|
+
}).passthrough();
|
|
2631
|
+
var FileResponseSchema = import_zod31.z.object({
|
|
2632
|
+
uuid: import_zod31.z.string(),
|
|
2633
|
+
tsg_id: import_zod31.z.string(),
|
|
2634
|
+
created_at: import_zod31.z.string(),
|
|
2635
|
+
updated_at: import_zod31.z.string(),
|
|
2636
|
+
path: import_zod31.z.string(),
|
|
2637
|
+
parent_path: import_zod31.z.string(),
|
|
2638
|
+
type: import_zod31.z.string(),
|
|
2639
|
+
result: import_zod31.z.string(),
|
|
2640
|
+
model_version_uuid: import_zod31.z.string(),
|
|
2641
|
+
blob_id: import_zod31.z.string().nullable().optional(),
|
|
2642
|
+
formats: import_zod31.z.array(import_zod31.z.string()).nullable().optional(),
|
|
2643
|
+
scan_uuid: import_zod31.z.string().nullable().optional()
|
|
2644
|
+
}).passthrough();
|
|
2645
|
+
var FileListSchema = import_zod31.z.object({
|
|
2114
2646
|
pagination: ModelSecurityPaginationSchema,
|
|
2115
|
-
files:
|
|
2116
|
-
}).passthrough();
|
|
2117
|
-
var RuleEvaluationResponseSchema =
|
|
2118
|
-
uuid:
|
|
2119
|
-
tsg_id:
|
|
2120
|
-
created_at:
|
|
2121
|
-
updated_at:
|
|
2122
|
-
result:
|
|
2123
|
-
violation_count:
|
|
2124
|
-
rule_instance_uuid:
|
|
2125
|
-
scan_uuid:
|
|
2126
|
-
rule_name:
|
|
2127
|
-
rule_description:
|
|
2128
|
-
rule_instance_state:
|
|
2129
|
-
}).passthrough();
|
|
2130
|
-
var RuleEvaluationListSchema =
|
|
2647
|
+
files: import_zod31.z.array(FileResponseSchema)
|
|
2648
|
+
}).passthrough();
|
|
2649
|
+
var RuleEvaluationResponseSchema = import_zod31.z.object({
|
|
2650
|
+
uuid: import_zod31.z.string(),
|
|
2651
|
+
tsg_id: import_zod31.z.string(),
|
|
2652
|
+
created_at: import_zod31.z.string(),
|
|
2653
|
+
updated_at: import_zod31.z.string(),
|
|
2654
|
+
result: import_zod31.z.string(),
|
|
2655
|
+
violation_count: import_zod31.z.number().int(),
|
|
2656
|
+
rule_instance_uuid: import_zod31.z.string(),
|
|
2657
|
+
scan_uuid: import_zod31.z.string(),
|
|
2658
|
+
rule_name: import_zod31.z.string(),
|
|
2659
|
+
rule_description: import_zod31.z.string(),
|
|
2660
|
+
rule_instance_state: import_zod31.z.string()
|
|
2661
|
+
}).passthrough();
|
|
2662
|
+
var RuleEvaluationListSchema = import_zod31.z.object({
|
|
2131
2663
|
pagination: ModelSecurityPaginationSchema,
|
|
2132
|
-
evaluations:
|
|
2133
|
-
}).passthrough();
|
|
2134
|
-
var ViolationResponseSchema =
|
|
2135
|
-
uuid:
|
|
2136
|
-
tsg_id:
|
|
2137
|
-
created_at:
|
|
2138
|
-
updated_at:
|
|
2139
|
-
description:
|
|
2140
|
-
rule_instance_uuid:
|
|
2141
|
-
rule_name:
|
|
2142
|
-
rule_description:
|
|
2143
|
-
rule_instance_state:
|
|
2144
|
-
file:
|
|
2145
|
-
hash:
|
|
2146
|
-
module:
|
|
2147
|
-
operator:
|
|
2148
|
-
threat:
|
|
2149
|
-
threat_description:
|
|
2150
|
-
}).passthrough();
|
|
2151
|
-
var ViolationListSchema =
|
|
2664
|
+
evaluations: import_zod31.z.array(RuleEvaluationResponseSchema)
|
|
2665
|
+
}).passthrough();
|
|
2666
|
+
var ViolationResponseSchema = import_zod31.z.object({
|
|
2667
|
+
uuid: import_zod31.z.string(),
|
|
2668
|
+
tsg_id: import_zod31.z.string(),
|
|
2669
|
+
created_at: import_zod31.z.string(),
|
|
2670
|
+
updated_at: import_zod31.z.string(),
|
|
2671
|
+
description: import_zod31.z.string(),
|
|
2672
|
+
rule_instance_uuid: import_zod31.z.string(),
|
|
2673
|
+
rule_name: import_zod31.z.string(),
|
|
2674
|
+
rule_description: import_zod31.z.string(),
|
|
2675
|
+
rule_instance_state: import_zod31.z.string(),
|
|
2676
|
+
file: import_zod31.z.string().nullable().optional(),
|
|
2677
|
+
hash: import_zod31.z.string().nullable().optional(),
|
|
2678
|
+
module: import_zod31.z.string().nullable().optional(),
|
|
2679
|
+
operator: import_zod31.z.string().nullable().optional(),
|
|
2680
|
+
threat: import_zod31.z.string().nullable().optional(),
|
|
2681
|
+
threat_description: import_zod31.z.string().nullable().optional()
|
|
2682
|
+
}).passthrough();
|
|
2683
|
+
var ViolationListSchema = import_zod31.z.object({
|
|
2152
2684
|
pagination: ModelSecurityPaginationSchema,
|
|
2153
|
-
violations:
|
|
2154
|
-
}).passthrough();
|
|
2155
|
-
var RuleEditableFieldDropdownSchema =
|
|
2156
|
-
value:
|
|
2157
|
-
label:
|
|
2158
|
-
}).passthrough();
|
|
2159
|
-
var RuleEditableFieldSchema =
|
|
2160
|
-
attribute_name:
|
|
2161
|
-
type:
|
|
2162
|
-
display_name:
|
|
2163
|
-
display_type:
|
|
2164
|
-
description:
|
|
2165
|
-
dropdown_values:
|
|
2166
|
-
}).passthrough();
|
|
2167
|
-
var RuleRemediationSchema =
|
|
2168
|
-
description:
|
|
2169
|
-
steps:
|
|
2170
|
-
url:
|
|
2171
|
-
}).passthrough();
|
|
2172
|
-
var RuleConfigurationSchema =
|
|
2173
|
-
field_values:
|
|
2174
|
-
state:
|
|
2175
|
-
}).passthrough();
|
|
2176
|
-
var ModelSecurityRuleResponseSchema =
|
|
2177
|
-
uuid:
|
|
2178
|
-
name:
|
|
2179
|
-
description:
|
|
2180
|
-
rule_type:
|
|
2181
|
-
compatible_sources:
|
|
2182
|
-
default_state:
|
|
2685
|
+
violations: import_zod31.z.array(ViolationResponseSchema)
|
|
2686
|
+
}).passthrough();
|
|
2687
|
+
var RuleEditableFieldDropdownSchema = import_zod31.z.object({
|
|
2688
|
+
value: import_zod31.z.string(),
|
|
2689
|
+
label: import_zod31.z.string()
|
|
2690
|
+
}).passthrough();
|
|
2691
|
+
var RuleEditableFieldSchema = import_zod31.z.object({
|
|
2692
|
+
attribute_name: import_zod31.z.string(),
|
|
2693
|
+
type: import_zod31.z.string(),
|
|
2694
|
+
display_name: import_zod31.z.string(),
|
|
2695
|
+
display_type: import_zod31.z.string(),
|
|
2696
|
+
description: import_zod31.z.string().nullable().optional(),
|
|
2697
|
+
dropdown_values: import_zod31.z.array(RuleEditableFieldDropdownSchema).nullable().optional()
|
|
2698
|
+
}).passthrough();
|
|
2699
|
+
var RuleRemediationSchema = import_zod31.z.object({
|
|
2700
|
+
description: import_zod31.z.string(),
|
|
2701
|
+
steps: import_zod31.z.array(import_zod31.z.string()),
|
|
2702
|
+
url: import_zod31.z.string()
|
|
2703
|
+
}).passthrough();
|
|
2704
|
+
var RuleConfigurationSchema = import_zod31.z.object({
|
|
2705
|
+
field_values: import_zod31.z.record(import_zod31.z.unknown()).optional(),
|
|
2706
|
+
state: import_zod31.z.string().nullable().optional()
|
|
2707
|
+
}).passthrough();
|
|
2708
|
+
var ModelSecurityRuleResponseSchema = import_zod31.z.object({
|
|
2709
|
+
uuid: import_zod31.z.string(),
|
|
2710
|
+
name: import_zod31.z.string(),
|
|
2711
|
+
description: import_zod31.z.string(),
|
|
2712
|
+
rule_type: import_zod31.z.string(),
|
|
2713
|
+
compatible_sources: import_zod31.z.array(import_zod31.z.string()),
|
|
2714
|
+
default_state: import_zod31.z.string(),
|
|
2183
2715
|
remediation: RuleRemediationSchema,
|
|
2184
|
-
editable_fields:
|
|
2185
|
-
constant_values:
|
|
2186
|
-
default_values:
|
|
2716
|
+
editable_fields: import_zod31.z.array(RuleEditableFieldSchema),
|
|
2717
|
+
constant_values: import_zod31.z.record(import_zod31.z.unknown()),
|
|
2718
|
+
default_values: import_zod31.z.record(import_zod31.z.unknown())
|
|
2187
2719
|
}).passthrough();
|
|
2188
|
-
var ListModelSecurityRulesResponseSchema =
|
|
2720
|
+
var ListModelSecurityRulesResponseSchema = import_zod31.z.object({
|
|
2189
2721
|
pagination: ModelSecurityPaginationSchema,
|
|
2190
|
-
rules:
|
|
2191
|
-
}).passthrough();
|
|
2192
|
-
var ModelSecurityRuleInstanceResponseSchema =
|
|
2193
|
-
uuid:
|
|
2194
|
-
tsg_id:
|
|
2195
|
-
created_at:
|
|
2196
|
-
updated_at:
|
|
2197
|
-
security_group_uuid:
|
|
2198
|
-
security_rule_uuid:
|
|
2199
|
-
state:
|
|
2722
|
+
rules: import_zod31.z.array(ModelSecurityRuleResponseSchema)
|
|
2723
|
+
}).passthrough();
|
|
2724
|
+
var ModelSecurityRuleInstanceResponseSchema = import_zod31.z.object({
|
|
2725
|
+
uuid: import_zod31.z.string(),
|
|
2726
|
+
tsg_id: import_zod31.z.string(),
|
|
2727
|
+
created_at: import_zod31.z.string(),
|
|
2728
|
+
updated_at: import_zod31.z.string(),
|
|
2729
|
+
security_group_uuid: import_zod31.z.string(),
|
|
2730
|
+
security_rule_uuid: import_zod31.z.string(),
|
|
2731
|
+
state: import_zod31.z.string(),
|
|
2200
2732
|
rule: ModelSecurityRuleResponseSchema,
|
|
2201
|
-
field_values:
|
|
2733
|
+
field_values: import_zod31.z.record(import_zod31.z.unknown()).optional()
|
|
2202
2734
|
}).passthrough();
|
|
2203
|
-
var ModelSecurityRuleInstanceUpdateRequestSchema =
|
|
2204
|
-
security_group_uuid:
|
|
2205
|
-
state:
|
|
2206
|
-
field_values:
|
|
2735
|
+
var ModelSecurityRuleInstanceUpdateRequestSchema = import_zod31.z.object({
|
|
2736
|
+
security_group_uuid: import_zod31.z.string(),
|
|
2737
|
+
state: import_zod31.z.string().nullable().optional(),
|
|
2738
|
+
field_values: import_zod31.z.record(import_zod31.z.unknown()).nullable().optional()
|
|
2207
2739
|
}).passthrough();
|
|
2208
|
-
var ListModelSecurityRuleInstancesResponseSchema =
|
|
2740
|
+
var ListModelSecurityRuleInstancesResponseSchema = import_zod31.z.object({
|
|
2209
2741
|
pagination: ModelSecurityPaginationSchema,
|
|
2210
|
-
rule_instances:
|
|
2211
|
-
}).passthrough();
|
|
2212
|
-
var ModelSecurityGroupCreateRequestSchema =
|
|
2213
|
-
name:
|
|
2214
|
-
source_type:
|
|
2215
|
-
description:
|
|
2216
|
-
rule_configurations:
|
|
2217
|
-
}).passthrough();
|
|
2218
|
-
var ModelSecurityGroupResponseSchema =
|
|
2219
|
-
uuid:
|
|
2220
|
-
tsg_id:
|
|
2221
|
-
created_at:
|
|
2222
|
-
updated_at:
|
|
2223
|
-
name:
|
|
2224
|
-
description:
|
|
2225
|
-
source_type:
|
|
2226
|
-
state:
|
|
2227
|
-
is_tombstone:
|
|
2228
|
-
}).passthrough();
|
|
2229
|
-
var ModelSecurityGroupUpdateRequestSchema =
|
|
2230
|
-
name:
|
|
2231
|
-
description:
|
|
2232
|
-
}).passthrough();
|
|
2233
|
-
var ListModelSecurityGroupsResponseSchema =
|
|
2742
|
+
rule_instances: import_zod31.z.array(ModelSecurityRuleInstanceResponseSchema)
|
|
2743
|
+
}).passthrough();
|
|
2744
|
+
var ModelSecurityGroupCreateRequestSchema = import_zod31.z.object({
|
|
2745
|
+
name: import_zod31.z.string(),
|
|
2746
|
+
source_type: import_zod31.z.string(),
|
|
2747
|
+
description: import_zod31.z.string().optional().default(""),
|
|
2748
|
+
rule_configurations: import_zod31.z.record(RuleConfigurationSchema).optional()
|
|
2749
|
+
}).passthrough();
|
|
2750
|
+
var ModelSecurityGroupResponseSchema = import_zod31.z.object({
|
|
2751
|
+
uuid: import_zod31.z.string(),
|
|
2752
|
+
tsg_id: import_zod31.z.string(),
|
|
2753
|
+
created_at: import_zod31.z.string(),
|
|
2754
|
+
updated_at: import_zod31.z.string(),
|
|
2755
|
+
name: import_zod31.z.string(),
|
|
2756
|
+
description: import_zod31.z.string(),
|
|
2757
|
+
source_type: import_zod31.z.string(),
|
|
2758
|
+
state: import_zod31.z.string(),
|
|
2759
|
+
is_tombstone: import_zod31.z.boolean()
|
|
2760
|
+
}).passthrough();
|
|
2761
|
+
var ModelSecurityGroupUpdateRequestSchema = import_zod31.z.object({
|
|
2762
|
+
name: import_zod31.z.string().nullable().optional(),
|
|
2763
|
+
description: import_zod31.z.string().nullable().optional()
|
|
2764
|
+
}).passthrough();
|
|
2765
|
+
var ListModelSecurityGroupsResponseSchema = import_zod31.z.object({
|
|
2234
2766
|
pagination: ModelSecurityPaginationSchema,
|
|
2235
|
-
security_groups:
|
|
2767
|
+
security_groups: import_zod31.z.array(ModelSecurityGroupResponseSchema)
|
|
2236
2768
|
}).passthrough();
|
|
2237
|
-
var PyPIAuthResponseSchema =
|
|
2238
|
-
url:
|
|
2239
|
-
expires_at:
|
|
2769
|
+
var PyPIAuthResponseSchema = import_zod31.z.object({
|
|
2770
|
+
url: import_zod31.z.string(),
|
|
2771
|
+
expires_at: import_zod31.z.string()
|
|
2240
2772
|
}).passthrough();
|
|
2241
2773
|
|
|
2242
2774
|
// src/models/red-team-enums.ts
|
|
@@ -2444,1013 +2976,1013 @@ var TargetType = {
|
|
|
2444
2976
|
};
|
|
2445
2977
|
|
|
2446
2978
|
// src/models/red-team.ts
|
|
2447
|
-
var
|
|
2448
|
-
var RedTeamPaginationSchema =
|
|
2449
|
-
var CountByNameSchema =
|
|
2450
|
-
var ValidationErrorSchema =
|
|
2451
|
-
loc:
|
|
2452
|
-
msg:
|
|
2453
|
-
type:
|
|
2454
|
-
}).passthrough();
|
|
2455
|
-
var HTTPValidationErrorSchema =
|
|
2456
|
-
var TargetBackgroundSchema =
|
|
2457
|
-
industry:
|
|
2458
|
-
use_case:
|
|
2459
|
-
competitors:
|
|
2460
|
-
}).passthrough();
|
|
2461
|
-
var TargetAdditionalContextSchema =
|
|
2462
|
-
base_model:
|
|
2463
|
-
core_architecture:
|
|
2464
|
-
system_prompt:
|
|
2465
|
-
languages_supported:
|
|
2466
|
-
banned_keywords:
|
|
2467
|
-
tools_accessible:
|
|
2468
|
-
}).passthrough();
|
|
2469
|
-
var TargetMetadataSchema =
|
|
2470
|
-
multi_turn:
|
|
2471
|
-
multi_turn_error_message:
|
|
2472
|
-
rate_limit:
|
|
2473
|
-
rate_limit_enabled:
|
|
2474
|
-
rate_limit_error_code:
|
|
2475
|
-
rate_limit_error_json:
|
|
2476
|
-
rate_limit_error_message:
|
|
2477
|
-
content_filter_enabled:
|
|
2478
|
-
content_filter_error_code:
|
|
2479
|
-
content_filter_error_json:
|
|
2480
|
-
content_filter_error_message:
|
|
2481
|
-
probe_message:
|
|
2482
|
-
request_timeout:
|
|
2483
|
-
}).passthrough();
|
|
2484
|
-
var MultiTurnStatefulConfigSchema =
|
|
2485
|
-
type:
|
|
2486
|
-
response_id_field:
|
|
2487
|
-
request_id_field:
|
|
2488
|
-
}).passthrough();
|
|
2489
|
-
var MultiTurnStatelessConfigSchema =
|
|
2490
|
-
type:
|
|
2491
|
-
assistant_role:
|
|
2492
|
-
}).passthrough();
|
|
2493
|
-
var HeadersAuthConfigSchema =
|
|
2494
|
-
var BasicAuthAuthConfigSchema =
|
|
2495
|
-
basic_auth_location:
|
|
2496
|
-
basic_auth_header:
|
|
2497
|
-
}).passthrough();
|
|
2498
|
-
var OAuth2AuthConfigSchema =
|
|
2499
|
-
oauth2_token_url:
|
|
2500
|
-
oauth2_expiry_minutes:
|
|
2501
|
-
oauth2_headers:
|
|
2502
|
-
oauth2_body_params:
|
|
2503
|
-
oauth2_token_response_key:
|
|
2504
|
-
oauth2_inject_header:
|
|
2505
|
-
}).passthrough();
|
|
2506
|
-
var AuthConfigSchema =
|
|
2979
|
+
var import_zod32 = require("zod");
|
|
2980
|
+
var RedTeamPaginationSchema = import_zod32.z.object({ total_items: import_zod32.z.number().int().nullable().optional() }).passthrough();
|
|
2981
|
+
var CountByNameSchema = import_zod32.z.object({ name: import_zod32.z.string(), count: import_zod32.z.number().int() }).passthrough();
|
|
2982
|
+
var ValidationErrorSchema = import_zod32.z.object({
|
|
2983
|
+
loc: import_zod32.z.array(import_zod32.z.union([import_zod32.z.string(), import_zod32.z.number()])),
|
|
2984
|
+
msg: import_zod32.z.string(),
|
|
2985
|
+
type: import_zod32.z.string()
|
|
2986
|
+
}).passthrough();
|
|
2987
|
+
var HTTPValidationErrorSchema = import_zod32.z.object({ detail: import_zod32.z.array(ValidationErrorSchema).optional() }).passthrough();
|
|
2988
|
+
var TargetBackgroundSchema = import_zod32.z.object({
|
|
2989
|
+
industry: import_zod32.z.string().nullable().optional(),
|
|
2990
|
+
use_case: import_zod32.z.string().nullable().optional(),
|
|
2991
|
+
competitors: import_zod32.z.array(import_zod32.z.string()).nullable().optional()
|
|
2992
|
+
}).passthrough();
|
|
2993
|
+
var TargetAdditionalContextSchema = import_zod32.z.object({
|
|
2994
|
+
base_model: import_zod32.z.string().nullable().optional(),
|
|
2995
|
+
core_architecture: import_zod32.z.string().nullable().optional(),
|
|
2996
|
+
system_prompt: import_zod32.z.string().nullable().optional(),
|
|
2997
|
+
languages_supported: import_zod32.z.array(import_zod32.z.string()).nullable().optional(),
|
|
2998
|
+
banned_keywords: import_zod32.z.array(import_zod32.z.string()).nullable().optional(),
|
|
2999
|
+
tools_accessible: import_zod32.z.array(import_zod32.z.string()).nullable().optional()
|
|
3000
|
+
}).passthrough();
|
|
3001
|
+
var TargetMetadataSchema = import_zod32.z.object({
|
|
3002
|
+
multi_turn: import_zod32.z.boolean().optional(),
|
|
3003
|
+
multi_turn_error_message: import_zod32.z.string().nullable().optional(),
|
|
3004
|
+
rate_limit: import_zod32.z.number().int().nullable().optional(),
|
|
3005
|
+
rate_limit_enabled: import_zod32.z.boolean().optional(),
|
|
3006
|
+
rate_limit_error_code: import_zod32.z.number().int().nullable().optional(),
|
|
3007
|
+
rate_limit_error_json: import_zod32.z.record(import_zod32.z.unknown()).nullable().optional(),
|
|
3008
|
+
rate_limit_error_message: import_zod32.z.string().nullable().optional(),
|
|
3009
|
+
content_filter_enabled: import_zod32.z.boolean().optional(),
|
|
3010
|
+
content_filter_error_code: import_zod32.z.number().int().nullable().optional(),
|
|
3011
|
+
content_filter_error_json: import_zod32.z.record(import_zod32.z.unknown()).nullable().optional(),
|
|
3012
|
+
content_filter_error_message: import_zod32.z.string().nullable().optional(),
|
|
3013
|
+
probe_message: import_zod32.z.string().optional(),
|
|
3014
|
+
request_timeout: import_zod32.z.number().optional()
|
|
3015
|
+
}).passthrough();
|
|
3016
|
+
var MultiTurnStatefulConfigSchema = import_zod32.z.object({
|
|
3017
|
+
type: import_zod32.z.string().default("stateful"),
|
|
3018
|
+
response_id_field: import_zod32.z.string(),
|
|
3019
|
+
request_id_field: import_zod32.z.string()
|
|
3020
|
+
}).passthrough();
|
|
3021
|
+
var MultiTurnStatelessConfigSchema = import_zod32.z.object({
|
|
3022
|
+
type: import_zod32.z.string().default("stateless"),
|
|
3023
|
+
assistant_role: import_zod32.z.string().nullable().optional()
|
|
3024
|
+
}).passthrough();
|
|
3025
|
+
var HeadersAuthConfigSchema = import_zod32.z.object({ auth_header: import_zod32.z.record(import_zod32.z.unknown()) }).passthrough();
|
|
3026
|
+
var BasicAuthAuthConfigSchema = import_zod32.z.object({
|
|
3027
|
+
basic_auth_location: import_zod32.z.string().default("HEADER"),
|
|
3028
|
+
basic_auth_header: import_zod32.z.record(import_zod32.z.unknown()).nullable().optional()
|
|
3029
|
+
}).passthrough();
|
|
3030
|
+
var OAuth2AuthConfigSchema = import_zod32.z.object({
|
|
3031
|
+
oauth2_token_url: import_zod32.z.string(),
|
|
3032
|
+
oauth2_expiry_minutes: import_zod32.z.number().int().default(60),
|
|
3033
|
+
oauth2_headers: import_zod32.z.record(import_zod32.z.unknown()).optional(),
|
|
3034
|
+
oauth2_body_params: import_zod32.z.record(import_zod32.z.unknown()).optional(),
|
|
3035
|
+
oauth2_token_response_key: import_zod32.z.string().default("access_token"),
|
|
3036
|
+
oauth2_inject_header: import_zod32.z.record(import_zod32.z.unknown())
|
|
3037
|
+
}).passthrough();
|
|
3038
|
+
var AuthConfigSchema = import_zod32.z.union([
|
|
2507
3039
|
HeadersAuthConfigSchema,
|
|
2508
3040
|
BasicAuthAuthConfigSchema,
|
|
2509
3041
|
OAuth2AuthConfigSchema
|
|
2510
3042
|
]);
|
|
2511
|
-
var OpenAIConnectionParamsSchema =
|
|
2512
|
-
api_key:
|
|
2513
|
-
model_name:
|
|
2514
|
-
}).passthrough();
|
|
2515
|
-
var HuggingfaceConnectionParamsSchema =
|
|
2516
|
-
api_key:
|
|
2517
|
-
model_name:
|
|
2518
|
-
}).passthrough();
|
|
2519
|
-
var DatabricksConnectionParamsSchema =
|
|
2520
|
-
auth_type:
|
|
2521
|
-
workspace_url:
|
|
2522
|
-
model_name:
|
|
2523
|
-
access_token:
|
|
2524
|
-
client_id:
|
|
2525
|
-
secret:
|
|
2526
|
-
}).passthrough();
|
|
2527
|
-
var BedrockAccessConnectionParamsSchema =
|
|
2528
|
-
access_id:
|
|
2529
|
-
access_secret:
|
|
2530
|
-
region:
|
|
2531
|
-
model_id:
|
|
2532
|
-
session_token:
|
|
2533
|
-
}).passthrough();
|
|
2534
|
-
var RestConnectionParamsSchema =
|
|
2535
|
-
api_endpoint:
|
|
2536
|
-
request_headers:
|
|
2537
|
-
request_json:
|
|
2538
|
-
response_json:
|
|
2539
|
-
response_key:
|
|
2540
|
-
target_connection_config:
|
|
2541
|
-
curl:
|
|
2542
|
-
multi_turn_config:
|
|
3043
|
+
var OpenAIConnectionParamsSchema = import_zod32.z.object({
|
|
3044
|
+
api_key: import_zod32.z.string(),
|
|
3045
|
+
model_name: import_zod32.z.string()
|
|
3046
|
+
}).passthrough();
|
|
3047
|
+
var HuggingfaceConnectionParamsSchema = import_zod32.z.object({
|
|
3048
|
+
api_key: import_zod32.z.string(),
|
|
3049
|
+
model_name: import_zod32.z.string()
|
|
3050
|
+
}).passthrough();
|
|
3051
|
+
var DatabricksConnectionParamsSchema = import_zod32.z.object({
|
|
3052
|
+
auth_type: import_zod32.z.string(),
|
|
3053
|
+
workspace_url: import_zod32.z.string(),
|
|
3054
|
+
model_name: import_zod32.z.string(),
|
|
3055
|
+
access_token: import_zod32.z.string().nullable().optional(),
|
|
3056
|
+
client_id: import_zod32.z.string().nullable().optional(),
|
|
3057
|
+
secret: import_zod32.z.string().nullable().optional()
|
|
3058
|
+
}).passthrough();
|
|
3059
|
+
var BedrockAccessConnectionParamsSchema = import_zod32.z.object({
|
|
3060
|
+
access_id: import_zod32.z.string(),
|
|
3061
|
+
access_secret: import_zod32.z.string(),
|
|
3062
|
+
region: import_zod32.z.string(),
|
|
3063
|
+
model_id: import_zod32.z.string(),
|
|
3064
|
+
session_token: import_zod32.z.string().nullable().optional()
|
|
3065
|
+
}).passthrough();
|
|
3066
|
+
var RestConnectionParamsSchema = import_zod32.z.object({
|
|
3067
|
+
api_endpoint: import_zod32.z.string().nullable().optional(),
|
|
3068
|
+
request_headers: import_zod32.z.record(import_zod32.z.unknown()).nullable().optional(),
|
|
3069
|
+
request_json: import_zod32.z.record(import_zod32.z.unknown()).nullable().optional(),
|
|
3070
|
+
response_json: import_zod32.z.record(import_zod32.z.unknown()).nullable().optional(),
|
|
3071
|
+
response_key: import_zod32.z.string().nullable().optional(),
|
|
3072
|
+
target_connection_config: import_zod32.z.unknown().nullable().optional(),
|
|
3073
|
+
curl: import_zod32.z.string().nullable().optional(),
|
|
3074
|
+
multi_turn_config: import_zod32.z.unknown().nullable().optional()
|
|
2543
3075
|
}).passthrough();
|
|
2544
3076
|
var StreamingConnectionParamsSchema = RestConnectionParamsSchema.extend({
|
|
2545
|
-
response_stop_key:
|
|
2546
|
-
response_stop_value:
|
|
3077
|
+
response_stop_key: import_zod32.z.string(),
|
|
3078
|
+
response_stop_value: import_zod32.z.string()
|
|
2547
3079
|
}).passthrough();
|
|
2548
3080
|
var WebSocketConnectionParamsSchema = RestConnectionParamsSchema.extend({
|
|
2549
|
-
ws_response_timeout:
|
|
3081
|
+
ws_response_timeout: import_zod32.z.number().default(110)
|
|
2550
3082
|
}).passthrough();
|
|
2551
|
-
var ConnectionParamsSchema =
|
|
3083
|
+
var ConnectionParamsSchema = import_zod32.z.union([
|
|
2552
3084
|
WebSocketConnectionParamsSchema,
|
|
2553
3085
|
StreamingConnectionParamsSchema,
|
|
2554
3086
|
RestConnectionParamsSchema
|
|
2555
3087
|
]);
|
|
2556
|
-
var TargetJobRequestSchema =
|
|
2557
|
-
uuid:
|
|
2558
|
-
version:
|
|
2559
|
-
}).passthrough();
|
|
2560
|
-
var JobTimeRecordSchema =
|
|
2561
|
-
queued_at:
|
|
2562
|
-
started_at:
|
|
2563
|
-
completed_at:
|
|
2564
|
-
time_taken:
|
|
2565
|
-
}).passthrough();
|
|
2566
|
-
var StaticJobMetadataSchema =
|
|
2567
|
-
categories:
|
|
2568
|
-
rate_limit_enabled:
|
|
2569
|
-
rate_limit:
|
|
2570
|
-
rate_limit_error_code:
|
|
2571
|
-
rate_limit_error_message:
|
|
2572
|
-
rate_limit_error_json:
|
|
2573
|
-
content_filter_enabled:
|
|
2574
|
-
content_filter_error_code:
|
|
2575
|
-
content_filter_error_message:
|
|
2576
|
-
content_filter_error_json:
|
|
2577
|
-
}).passthrough();
|
|
2578
|
-
var DynamicJobMetadataSchema =
|
|
2579
|
-
rate_limit_enabled:
|
|
2580
|
-
rate_limit:
|
|
2581
|
-
rate_limit_error_code:
|
|
2582
|
-
rate_limit_error_message:
|
|
2583
|
-
rate_limit_error_json:
|
|
2584
|
-
content_filter_enabled:
|
|
2585
|
-
content_filter_error_code:
|
|
2586
|
-
content_filter_error_message:
|
|
2587
|
-
content_filter_error_json:
|
|
2588
|
-
stream_breadth:
|
|
2589
|
-
stream_depth:
|
|
2590
|
-
max_tokens:
|
|
2591
|
-
context_size:
|
|
2592
|
-
attack_goals:
|
|
2593
|
-
base_model:
|
|
2594
|
-
use_case:
|
|
2595
|
-
system_prompt:
|
|
2596
|
-
}).passthrough();
|
|
2597
|
-
var CustomJobMetadataSchema =
|
|
2598
|
-
custom_prompt_sets:
|
|
2599
|
-
rate_limit_enabled:
|
|
2600
|
-
rate_limit:
|
|
2601
|
-
rate_limit_error_code:
|
|
2602
|
-
rate_limit_error_message:
|
|
2603
|
-
rate_limit_error_json:
|
|
2604
|
-
content_filter_enabled:
|
|
2605
|
-
content_filter_error_code:
|
|
2606
|
-
content_filter_error_message:
|
|
2607
|
-
content_filter_error_json:
|
|
2608
|
-
}).passthrough();
|
|
2609
|
-
var JobCreateRequestSchema =
|
|
2610
|
-
name:
|
|
3088
|
+
var TargetJobRequestSchema = import_zod32.z.object({
|
|
3089
|
+
uuid: import_zod32.z.string(),
|
|
3090
|
+
version: import_zod32.z.number().int().nullable().optional()
|
|
3091
|
+
}).passthrough();
|
|
3092
|
+
var JobTimeRecordSchema = import_zod32.z.object({
|
|
3093
|
+
queued_at: import_zod32.z.string().nullable().optional(),
|
|
3094
|
+
started_at: import_zod32.z.string().nullable().optional(),
|
|
3095
|
+
completed_at: import_zod32.z.string().nullable().optional(),
|
|
3096
|
+
time_taken: import_zod32.z.string().nullable().optional()
|
|
3097
|
+
}).passthrough();
|
|
3098
|
+
var StaticJobMetadataSchema = import_zod32.z.object({
|
|
3099
|
+
categories: import_zod32.z.record(import_zod32.z.unknown()),
|
|
3100
|
+
rate_limit_enabled: import_zod32.z.boolean().optional(),
|
|
3101
|
+
rate_limit: import_zod32.z.number().int().nullable().optional(),
|
|
3102
|
+
rate_limit_error_code: import_zod32.z.number().int().nullable().optional(),
|
|
3103
|
+
rate_limit_error_message: import_zod32.z.string().nullable().optional(),
|
|
3104
|
+
rate_limit_error_json: import_zod32.z.unknown().optional(),
|
|
3105
|
+
content_filter_enabled: import_zod32.z.boolean().optional(),
|
|
3106
|
+
content_filter_error_code: import_zod32.z.number().int().nullable().optional(),
|
|
3107
|
+
content_filter_error_message: import_zod32.z.string().nullable().optional(),
|
|
3108
|
+
content_filter_error_json: import_zod32.z.unknown().optional()
|
|
3109
|
+
}).passthrough();
|
|
3110
|
+
var DynamicJobMetadataSchema = import_zod32.z.object({
|
|
3111
|
+
rate_limit_enabled: import_zod32.z.boolean().optional(),
|
|
3112
|
+
rate_limit: import_zod32.z.number().int().nullable().optional(),
|
|
3113
|
+
rate_limit_error_code: import_zod32.z.number().int().nullable().optional(),
|
|
3114
|
+
rate_limit_error_message: import_zod32.z.string().nullable().optional(),
|
|
3115
|
+
rate_limit_error_json: import_zod32.z.unknown().optional(),
|
|
3116
|
+
content_filter_enabled: import_zod32.z.boolean().optional(),
|
|
3117
|
+
content_filter_error_code: import_zod32.z.number().int().nullable().optional(),
|
|
3118
|
+
content_filter_error_message: import_zod32.z.string().nullable().optional(),
|
|
3119
|
+
content_filter_error_json: import_zod32.z.unknown().optional(),
|
|
3120
|
+
stream_breadth: import_zod32.z.number().int().optional(),
|
|
3121
|
+
stream_depth: import_zod32.z.number().int().optional(),
|
|
3122
|
+
max_tokens: import_zod32.z.number().int().optional(),
|
|
3123
|
+
context_size: import_zod32.z.number().int().optional(),
|
|
3124
|
+
attack_goals: import_zod32.z.array(import_zod32.z.unknown()).optional(),
|
|
3125
|
+
base_model: import_zod32.z.string().nullable().optional(),
|
|
3126
|
+
use_case: import_zod32.z.string().nullable().optional(),
|
|
3127
|
+
system_prompt: import_zod32.z.string().nullable().optional()
|
|
3128
|
+
}).passthrough();
|
|
3129
|
+
var CustomJobMetadataSchema = import_zod32.z.object({
|
|
3130
|
+
custom_prompt_sets: import_zod32.z.array(import_zod32.z.unknown()),
|
|
3131
|
+
rate_limit_enabled: import_zod32.z.boolean().optional(),
|
|
3132
|
+
rate_limit: import_zod32.z.number().int().nullable().optional(),
|
|
3133
|
+
rate_limit_error_code: import_zod32.z.number().int().nullable().optional(),
|
|
3134
|
+
rate_limit_error_message: import_zod32.z.string().nullable().optional(),
|
|
3135
|
+
rate_limit_error_json: import_zod32.z.unknown().optional(),
|
|
3136
|
+
content_filter_enabled: import_zod32.z.boolean().optional(),
|
|
3137
|
+
content_filter_error_code: import_zod32.z.number().int().nullable().optional(),
|
|
3138
|
+
content_filter_error_message: import_zod32.z.string().nullable().optional(),
|
|
3139
|
+
content_filter_error_json: import_zod32.z.unknown().optional()
|
|
3140
|
+
}).passthrough();
|
|
3141
|
+
var JobCreateRequestSchema = import_zod32.z.object({
|
|
3142
|
+
name: import_zod32.z.string(),
|
|
2611
3143
|
target: TargetJobRequestSchema,
|
|
2612
|
-
job_type:
|
|
2613
|
-
job_metadata:
|
|
3144
|
+
job_type: import_zod32.z.string(),
|
|
3145
|
+
job_metadata: import_zod32.z.union([
|
|
2614
3146
|
StaticJobMetadataSchema,
|
|
2615
3147
|
DynamicJobMetadataSchema,
|
|
2616
3148
|
CustomJobMetadataSchema
|
|
2617
3149
|
]),
|
|
2618
|
-
version:
|
|
2619
|
-
extra_info:
|
|
2620
|
-
}).passthrough();
|
|
2621
|
-
var StaticJobReportStatsSchema =
|
|
2622
|
-
output_completion_percentage:
|
|
2623
|
-
partial_report_unlocked:
|
|
2624
|
-
partial_report_unlocked_at:
|
|
2625
|
-
report_summary:
|
|
2626
|
-
}).passthrough();
|
|
2627
|
-
var DynamicJobReportStatsSchema =
|
|
2628
|
-
total_goals:
|
|
2629
|
-
total_streams:
|
|
2630
|
-
total_threats:
|
|
2631
|
-
goals_achieved:
|
|
2632
|
-
report_summary:
|
|
2633
|
-
}).passthrough();
|
|
2634
|
-
var TargetReferenceSchema =
|
|
2635
|
-
uuid:
|
|
2636
|
-
tsg_id:
|
|
2637
|
-
name:
|
|
2638
|
-
description:
|
|
2639
|
-
target_type:
|
|
2640
|
-
connection_type:
|
|
2641
|
-
api_endpoint_type:
|
|
2642
|
-
response_mode:
|
|
2643
|
-
session_supported:
|
|
2644
|
-
extra_info:
|
|
2645
|
-
status:
|
|
2646
|
-
active:
|
|
2647
|
-
validated:
|
|
2648
|
-
version:
|
|
2649
|
-
secret_version:
|
|
2650
|
-
created_by_user_id:
|
|
2651
|
-
updated_by_user_id:
|
|
2652
|
-
created_at:
|
|
2653
|
-
updated_at:
|
|
3150
|
+
version: import_zod32.z.number().int().nullable().optional(),
|
|
3151
|
+
extra_info: import_zod32.z.record(import_zod32.z.unknown()).nullable().optional()
|
|
3152
|
+
}).passthrough();
|
|
3153
|
+
var StaticJobReportStatsSchema = import_zod32.z.object({
|
|
3154
|
+
output_completion_percentage: import_zod32.z.number(),
|
|
3155
|
+
partial_report_unlocked: import_zod32.z.boolean().optional(),
|
|
3156
|
+
partial_report_unlocked_at: import_zod32.z.string().nullable().optional(),
|
|
3157
|
+
report_summary: import_zod32.z.string().nullable().optional()
|
|
3158
|
+
}).passthrough();
|
|
3159
|
+
var DynamicJobReportStatsSchema = import_zod32.z.object({
|
|
3160
|
+
total_goals: import_zod32.z.number().int().optional(),
|
|
3161
|
+
total_streams: import_zod32.z.number().int().optional(),
|
|
3162
|
+
total_threats: import_zod32.z.number().int().optional(),
|
|
3163
|
+
goals_achieved: import_zod32.z.number().int().optional(),
|
|
3164
|
+
report_summary: import_zod32.z.string().nullable().optional()
|
|
3165
|
+
}).passthrough();
|
|
3166
|
+
var TargetReferenceSchema = import_zod32.z.object({
|
|
3167
|
+
uuid: import_zod32.z.string(),
|
|
3168
|
+
tsg_id: import_zod32.z.string(),
|
|
3169
|
+
name: import_zod32.z.string(),
|
|
3170
|
+
description: import_zod32.z.string().nullable().optional(),
|
|
3171
|
+
target_type: import_zod32.z.string().nullable().optional(),
|
|
3172
|
+
connection_type: import_zod32.z.string().nullable().optional(),
|
|
3173
|
+
api_endpoint_type: import_zod32.z.string().nullable().optional(),
|
|
3174
|
+
response_mode: import_zod32.z.string().nullable().optional(),
|
|
3175
|
+
session_supported: import_zod32.z.boolean().optional(),
|
|
3176
|
+
extra_info: import_zod32.z.record(import_zod32.z.unknown()).nullable().optional(),
|
|
3177
|
+
status: import_zod32.z.string(),
|
|
3178
|
+
active: import_zod32.z.boolean(),
|
|
3179
|
+
validated: import_zod32.z.boolean(),
|
|
3180
|
+
version: import_zod32.z.number().int().nullable().optional(),
|
|
3181
|
+
secret_version: import_zod32.z.string().nullable().optional(),
|
|
3182
|
+
created_by_user_id: import_zod32.z.string().nullable().optional(),
|
|
3183
|
+
updated_by_user_id: import_zod32.z.string().nullable().optional(),
|
|
3184
|
+
created_at: import_zod32.z.string(),
|
|
3185
|
+
updated_at: import_zod32.z.string(),
|
|
2654
3186
|
target_metadata: TargetMetadataSchema.optional(),
|
|
2655
3187
|
target_background: TargetBackgroundSchema.nullable().optional(),
|
|
2656
|
-
profiling_status:
|
|
3188
|
+
profiling_status: import_zod32.z.string().nullable().optional(),
|
|
2657
3189
|
additional_context: TargetAdditionalContextSchema.nullable().optional(),
|
|
2658
|
-
auth_type:
|
|
3190
|
+
auth_type: import_zod32.z.string().nullable().optional()
|
|
2659
3191
|
}).passthrough();
|
|
2660
|
-
var JobResponseSchema =
|
|
2661
|
-
uuid:
|
|
2662
|
-
tsg_id:
|
|
2663
|
-
name:
|
|
3192
|
+
var JobResponseSchema = import_zod32.z.object({
|
|
3193
|
+
uuid: import_zod32.z.string(),
|
|
3194
|
+
tsg_id: import_zod32.z.string(),
|
|
3195
|
+
name: import_zod32.z.string(),
|
|
2664
3196
|
target: TargetReferenceSchema,
|
|
2665
|
-
job_type:
|
|
2666
|
-
job_metadata:
|
|
2667
|
-
version:
|
|
2668
|
-
extra_info:
|
|
2669
|
-
target_id:
|
|
2670
|
-
target_type:
|
|
2671
|
-
total:
|
|
2672
|
-
completed:
|
|
2673
|
-
status:
|
|
2674
|
-
score:
|
|
2675
|
-
asr:
|
|
3197
|
+
job_type: import_zod32.z.string(),
|
|
3198
|
+
job_metadata: import_zod32.z.unknown(),
|
|
3199
|
+
version: import_zod32.z.number().int().nullable().optional(),
|
|
3200
|
+
extra_info: import_zod32.z.record(import_zod32.z.unknown()).nullable().optional(),
|
|
3201
|
+
target_id: import_zod32.z.string(),
|
|
3202
|
+
target_type: import_zod32.z.string(),
|
|
3203
|
+
total: import_zod32.z.number().int().nullable().optional(),
|
|
3204
|
+
completed: import_zod32.z.number().int().nullable().optional(),
|
|
3205
|
+
status: import_zod32.z.string().optional(),
|
|
3206
|
+
score: import_zod32.z.number().nullable().optional(),
|
|
3207
|
+
asr: import_zod32.z.number().nullable().optional(),
|
|
2676
3208
|
time_record: JobTimeRecordSchema.nullable().optional(),
|
|
2677
|
-
created_at:
|
|
2678
|
-
updated_at:
|
|
2679
|
-
created_by_user_id:
|
|
2680
|
-
report_stats:
|
|
2681
|
-
metering_quota_uuid:
|
|
2682
|
-
counted_towards_quota:
|
|
2683
|
-
invocation_id:
|
|
2684
|
-
}).passthrough();
|
|
2685
|
-
var JobListResponseSchema =
|
|
3209
|
+
created_at: import_zod32.z.string().nullable().optional(),
|
|
3210
|
+
updated_at: import_zod32.z.string().nullable().optional(),
|
|
3211
|
+
created_by_user_id: import_zod32.z.string().nullable().optional(),
|
|
3212
|
+
report_stats: import_zod32.z.unknown().optional(),
|
|
3213
|
+
metering_quota_uuid: import_zod32.z.string().nullable().optional(),
|
|
3214
|
+
counted_towards_quota: import_zod32.z.string().optional(),
|
|
3215
|
+
invocation_id: import_zod32.z.string().nullable().optional()
|
|
3216
|
+
}).passthrough();
|
|
3217
|
+
var JobListResponseSchema = import_zod32.z.object({
|
|
2686
3218
|
pagination: RedTeamPaginationSchema,
|
|
2687
|
-
data:
|
|
2688
|
-
}).passthrough();
|
|
2689
|
-
var JobAbortResponseSchema =
|
|
2690
|
-
job_id:
|
|
2691
|
-
message:
|
|
2692
|
-
}).passthrough();
|
|
2693
|
-
var PrerequisiteModelSchema =
|
|
2694
|
-
id:
|
|
2695
|
-
display_name:
|
|
2696
|
-
description:
|
|
2697
|
-
}).passthrough();
|
|
2698
|
-
var SubCategoryModelSchema =
|
|
2699
|
-
id:
|
|
2700
|
-
display_name:
|
|
2701
|
-
description:
|
|
2702
|
-
preselect:
|
|
2703
|
-
prerequisites:
|
|
2704
|
-
active:
|
|
2705
|
-
}).passthrough();
|
|
2706
|
-
var CategoryModelSchema =
|
|
2707
|
-
id:
|
|
2708
|
-
display_name:
|
|
2709
|
-
description:
|
|
2710
|
-
preselect:
|
|
2711
|
-
sub_categories:
|
|
2712
|
-
}).passthrough();
|
|
2713
|
-
var AttackOutputSchema =
|
|
2714
|
-
uuid:
|
|
2715
|
-
tsg_id:
|
|
2716
|
-
attack_id:
|
|
2717
|
-
job_id:
|
|
2718
|
-
target_id:
|
|
2719
|
-
output:
|
|
2720
|
-
threat:
|
|
2721
|
-
marked_safe:
|
|
2722
|
-
}).passthrough();
|
|
2723
|
-
var AttackMultiTurnOutputSchema =
|
|
2724
|
-
uuid:
|
|
2725
|
-
tsg_id:
|
|
2726
|
-
attack_id:
|
|
2727
|
-
job_id:
|
|
2728
|
-
target_id:
|
|
2729
|
-
output:
|
|
2730
|
-
prompt:
|
|
2731
|
-
turn:
|
|
2732
|
-
threat:
|
|
2733
|
-
marked_safe:
|
|
2734
|
-
generation:
|
|
2735
|
-
multi_turn:
|
|
2736
|
-
}).passthrough();
|
|
2737
|
-
var AttackListItemSchema =
|
|
2738
|
-
uuid:
|
|
2739
|
-
tsg_id:
|
|
2740
|
-
job_id:
|
|
2741
|
-
target_id:
|
|
2742
|
-
prompt:
|
|
2743
|
-
prompt_mapping_id:
|
|
2744
|
-
prompt_id:
|
|
2745
|
-
category:
|
|
2746
|
-
sub_category:
|
|
2747
|
-
category_display_name:
|
|
2748
|
-
sub_category_display_name:
|
|
2749
|
-
status:
|
|
2750
|
-
marked_safe:
|
|
2751
|
-
extra_info:
|
|
2752
|
-
threat:
|
|
2753
|
-
attack_type:
|
|
2754
|
-
multi_turn:
|
|
2755
|
-
asr:
|
|
2756
|
-
version:
|
|
2757
|
-
severity:
|
|
2758
|
-
}).passthrough();
|
|
2759
|
-
var AttackListResponseSchema =
|
|
3219
|
+
data: import_zod32.z.array(JobResponseSchema)
|
|
3220
|
+
}).passthrough();
|
|
3221
|
+
var JobAbortResponseSchema = import_zod32.z.object({
|
|
3222
|
+
job_id: import_zod32.z.string(),
|
|
3223
|
+
message: import_zod32.z.string()
|
|
3224
|
+
}).passthrough();
|
|
3225
|
+
var PrerequisiteModelSchema = import_zod32.z.object({
|
|
3226
|
+
id: import_zod32.z.string(),
|
|
3227
|
+
display_name: import_zod32.z.string(),
|
|
3228
|
+
description: import_zod32.z.string()
|
|
3229
|
+
}).passthrough();
|
|
3230
|
+
var SubCategoryModelSchema = import_zod32.z.object({
|
|
3231
|
+
id: import_zod32.z.string(),
|
|
3232
|
+
display_name: import_zod32.z.string(),
|
|
3233
|
+
description: import_zod32.z.string(),
|
|
3234
|
+
preselect: import_zod32.z.boolean().optional(),
|
|
3235
|
+
prerequisites: import_zod32.z.array(PrerequisiteModelSchema).nullable().optional(),
|
|
3236
|
+
active: import_zod32.z.boolean().optional()
|
|
3237
|
+
}).passthrough();
|
|
3238
|
+
var CategoryModelSchema = import_zod32.z.object({
|
|
3239
|
+
id: import_zod32.z.string(),
|
|
3240
|
+
display_name: import_zod32.z.string(),
|
|
3241
|
+
description: import_zod32.z.string(),
|
|
3242
|
+
preselect: import_zod32.z.boolean().optional(),
|
|
3243
|
+
sub_categories: import_zod32.z.array(SubCategoryModelSchema)
|
|
3244
|
+
}).passthrough();
|
|
3245
|
+
var AttackOutputSchema = import_zod32.z.object({
|
|
3246
|
+
uuid: import_zod32.z.string(),
|
|
3247
|
+
tsg_id: import_zod32.z.string(),
|
|
3248
|
+
attack_id: import_zod32.z.string(),
|
|
3249
|
+
job_id: import_zod32.z.string(),
|
|
3250
|
+
target_id: import_zod32.z.string(),
|
|
3251
|
+
output: import_zod32.z.string(),
|
|
3252
|
+
threat: import_zod32.z.boolean().nullable().optional(),
|
|
3253
|
+
marked_safe: import_zod32.z.boolean().nullable().optional()
|
|
3254
|
+
}).passthrough();
|
|
3255
|
+
var AttackMultiTurnOutputSchema = import_zod32.z.object({
|
|
3256
|
+
uuid: import_zod32.z.string(),
|
|
3257
|
+
tsg_id: import_zod32.z.string(),
|
|
3258
|
+
attack_id: import_zod32.z.string(),
|
|
3259
|
+
job_id: import_zod32.z.string(),
|
|
3260
|
+
target_id: import_zod32.z.string(),
|
|
3261
|
+
output: import_zod32.z.string(),
|
|
3262
|
+
prompt: import_zod32.z.string(),
|
|
3263
|
+
turn: import_zod32.z.number().int(),
|
|
3264
|
+
threat: import_zod32.z.boolean().nullable().optional(),
|
|
3265
|
+
marked_safe: import_zod32.z.boolean().nullable().optional(),
|
|
3266
|
+
generation: import_zod32.z.number().int().optional(),
|
|
3267
|
+
multi_turn: import_zod32.z.boolean().optional()
|
|
3268
|
+
}).passthrough();
|
|
3269
|
+
var AttackListItemSchema = import_zod32.z.object({
|
|
3270
|
+
uuid: import_zod32.z.string(),
|
|
3271
|
+
tsg_id: import_zod32.z.string(),
|
|
3272
|
+
job_id: import_zod32.z.string(),
|
|
3273
|
+
target_id: import_zod32.z.string(),
|
|
3274
|
+
prompt: import_zod32.z.string(),
|
|
3275
|
+
prompt_mapping_id: import_zod32.z.string(),
|
|
3276
|
+
prompt_id: import_zod32.z.string(),
|
|
3277
|
+
category: import_zod32.z.string(),
|
|
3278
|
+
sub_category: import_zod32.z.string(),
|
|
3279
|
+
category_display_name: import_zod32.z.string(),
|
|
3280
|
+
sub_category_display_name: import_zod32.z.string(),
|
|
3281
|
+
status: import_zod32.z.string().optional(),
|
|
3282
|
+
marked_safe: import_zod32.z.boolean().nullable().optional(),
|
|
3283
|
+
extra_info: import_zod32.z.record(import_zod32.z.unknown()).optional(),
|
|
3284
|
+
threat: import_zod32.z.boolean().nullable().optional(),
|
|
3285
|
+
attack_type: import_zod32.z.string().optional(),
|
|
3286
|
+
multi_turn: import_zod32.z.boolean().optional(),
|
|
3287
|
+
asr: import_zod32.z.number().nullable().optional(),
|
|
3288
|
+
version: import_zod32.z.number().int().nullable().optional(),
|
|
3289
|
+
severity: import_zod32.z.string().optional()
|
|
3290
|
+
}).passthrough();
|
|
3291
|
+
var AttackListResponseSchema = import_zod32.z.object({
|
|
2760
3292
|
pagination: RedTeamPaginationSchema,
|
|
2761
|
-
data:
|
|
2762
|
-
}).passthrough();
|
|
2763
|
-
var AttackDetailResponseSchema =
|
|
2764
|
-
uuid:
|
|
2765
|
-
tsg_id:
|
|
2766
|
-
job_id:
|
|
2767
|
-
target_id:
|
|
2768
|
-
prompt:
|
|
2769
|
-
prompt_mapping_id:
|
|
2770
|
-
prompt_id:
|
|
2771
|
-
category:
|
|
2772
|
-
sub_category:
|
|
2773
|
-
category_display_name:
|
|
2774
|
-
sub_category_display_name:
|
|
2775
|
-
compliance_frameworks:
|
|
2776
|
-
goal:
|
|
2777
|
-
status:
|
|
2778
|
-
marked_safe:
|
|
2779
|
-
extra_info:
|
|
2780
|
-
threat:
|
|
2781
|
-
attack_type:
|
|
2782
|
-
multi_turn:
|
|
2783
|
-
asr:
|
|
2784
|
-
version:
|
|
2785
|
-
severity:
|
|
2786
|
-
outputs:
|
|
2787
|
-
}).passthrough();
|
|
2788
|
-
var AttackMultiTurnDetailResponseSchema =
|
|
2789
|
-
uuid:
|
|
2790
|
-
tsg_id:
|
|
2791
|
-
job_id:
|
|
2792
|
-
target_id:
|
|
2793
|
-
prompt:
|
|
2794
|
-
prompt_mapping_id:
|
|
2795
|
-
prompt_id:
|
|
2796
|
-
category:
|
|
2797
|
-
sub_category:
|
|
2798
|
-
category_display_name:
|
|
2799
|
-
sub_category_display_name:
|
|
2800
|
-
compliance_frameworks:
|
|
2801
|
-
goal:
|
|
2802
|
-
status:
|
|
2803
|
-
marked_safe:
|
|
2804
|
-
extra_info:
|
|
2805
|
-
threat:
|
|
2806
|
-
attack_type:
|
|
2807
|
-
multi_turn:
|
|
2808
|
-
asr:
|
|
2809
|
-
version:
|
|
2810
|
-
severity:
|
|
2811
|
-
outputs:
|
|
2812
|
-
}).passthrough();
|
|
2813
|
-
var SubCategoryStatsSchema =
|
|
2814
|
-
id:
|
|
2815
|
-
display_name:
|
|
2816
|
-
description:
|
|
2817
|
-
preselect:
|
|
2818
|
-
prerequisites:
|
|
2819
|
-
active:
|
|
2820
|
-
successful:
|
|
2821
|
-
failed:
|
|
2822
|
-
total:
|
|
2823
|
-
}).passthrough();
|
|
2824
|
-
var CategoryReportSchema =
|
|
2825
|
-
id:
|
|
2826
|
-
display_name:
|
|
2827
|
-
description:
|
|
2828
|
-
preselect:
|
|
2829
|
-
sub_categories:
|
|
2830
|
-
asr:
|
|
2831
|
-
total_prompts:
|
|
2832
|
-
total_attacks:
|
|
2833
|
-
successful:
|
|
2834
|
-
failed:
|
|
2835
|
-
}).passthrough();
|
|
2836
|
-
var SeverityStatsSchema =
|
|
2837
|
-
severity:
|
|
2838
|
-
successful:
|
|
2839
|
-
failed:
|
|
2840
|
-
}).passthrough();
|
|
2841
|
-
var SeverityReportSchema =
|
|
2842
|
-
stats:
|
|
2843
|
-
successful:
|
|
2844
|
-
failed:
|
|
2845
|
-
total_attacks:
|
|
2846
|
-
}).passthrough();
|
|
2847
|
-
var ComplianceTechniqueSchema =
|
|
2848
|
-
id:
|
|
2849
|
-
display_name:
|
|
2850
|
-
compliance_id:
|
|
2851
|
-
description:
|
|
2852
|
-
link:
|
|
2853
|
-
version:
|
|
2854
|
-
active:
|
|
2855
|
-
successful:
|
|
2856
|
-
failed:
|
|
2857
|
-
total:
|
|
2858
|
-
}).passthrough();
|
|
2859
|
-
var ComplianceReportSchema =
|
|
2860
|
-
id:
|
|
2861
|
-
display_name:
|
|
2862
|
-
description:
|
|
2863
|
-
active:
|
|
2864
|
-
version:
|
|
2865
|
-
link:
|
|
2866
|
-
techniques:
|
|
2867
|
-
score:
|
|
2868
|
-
}).passthrough();
|
|
2869
|
-
var RuntimeSecurityPolicySchema =
|
|
2870
|
-
policy_id:
|
|
2871
|
-
display_name:
|
|
2872
|
-
config:
|
|
2873
|
-
}).passthrough();
|
|
2874
|
-
var StaticJobRemediationSchema =
|
|
2875
|
-
remediation:
|
|
2876
|
-
description:
|
|
2877
|
-
mapping_remediation_id:
|
|
2878
|
-
subcategories:
|
|
2879
|
-
effectiveness:
|
|
2880
|
-
ease_of_implementation:
|
|
2881
|
-
priority:
|
|
2882
|
-
resource_links:
|
|
2883
|
-
categories:
|
|
2884
|
-
}).passthrough();
|
|
2885
|
-
var StaticJobRemediationRecommendationSchema =
|
|
2886
|
-
runtime_security_policy_configuration:
|
|
2887
|
-
other_measures:
|
|
2888
|
-
}).passthrough();
|
|
2889
|
-
var StaticJobReportSchema =
|
|
3293
|
+
data: import_zod32.z.array(AttackListItemSchema)
|
|
3294
|
+
}).passthrough();
|
|
3295
|
+
var AttackDetailResponseSchema = import_zod32.z.object({
|
|
3296
|
+
uuid: import_zod32.z.string(),
|
|
3297
|
+
tsg_id: import_zod32.z.string(),
|
|
3298
|
+
job_id: import_zod32.z.string(),
|
|
3299
|
+
target_id: import_zod32.z.string(),
|
|
3300
|
+
prompt: import_zod32.z.string(),
|
|
3301
|
+
prompt_mapping_id: import_zod32.z.string(),
|
|
3302
|
+
prompt_id: import_zod32.z.string(),
|
|
3303
|
+
category: import_zod32.z.string(),
|
|
3304
|
+
sub_category: import_zod32.z.string(),
|
|
3305
|
+
category_display_name: import_zod32.z.string(),
|
|
3306
|
+
sub_category_display_name: import_zod32.z.string(),
|
|
3307
|
+
compliance_frameworks: import_zod32.z.array(import_zod32.z.unknown()),
|
|
3308
|
+
goal: import_zod32.z.string().nullable(),
|
|
3309
|
+
status: import_zod32.z.string().optional(),
|
|
3310
|
+
marked_safe: import_zod32.z.boolean().nullable().optional(),
|
|
3311
|
+
extra_info: import_zod32.z.record(import_zod32.z.unknown()).optional(),
|
|
3312
|
+
threat: import_zod32.z.boolean().nullable().optional(),
|
|
3313
|
+
attack_type: import_zod32.z.string().optional(),
|
|
3314
|
+
multi_turn: import_zod32.z.boolean().optional(),
|
|
3315
|
+
asr: import_zod32.z.number().nullable().optional(),
|
|
3316
|
+
version: import_zod32.z.number().int().nullable().optional(),
|
|
3317
|
+
severity: import_zod32.z.string().optional(),
|
|
3318
|
+
outputs: import_zod32.z.array(AttackOutputSchema).optional()
|
|
3319
|
+
}).passthrough();
|
|
3320
|
+
var AttackMultiTurnDetailResponseSchema = import_zod32.z.object({
|
|
3321
|
+
uuid: import_zod32.z.string(),
|
|
3322
|
+
tsg_id: import_zod32.z.string(),
|
|
3323
|
+
job_id: import_zod32.z.string(),
|
|
3324
|
+
target_id: import_zod32.z.string(),
|
|
3325
|
+
prompt: import_zod32.z.string(),
|
|
3326
|
+
prompt_mapping_id: import_zod32.z.string(),
|
|
3327
|
+
prompt_id: import_zod32.z.string(),
|
|
3328
|
+
category: import_zod32.z.string(),
|
|
3329
|
+
sub_category: import_zod32.z.string(),
|
|
3330
|
+
category_display_name: import_zod32.z.string(),
|
|
3331
|
+
sub_category_display_name: import_zod32.z.string(),
|
|
3332
|
+
compliance_frameworks: import_zod32.z.array(import_zod32.z.unknown()),
|
|
3333
|
+
goal: import_zod32.z.string().nullable(),
|
|
3334
|
+
status: import_zod32.z.string().optional(),
|
|
3335
|
+
marked_safe: import_zod32.z.boolean().nullable().optional(),
|
|
3336
|
+
extra_info: import_zod32.z.record(import_zod32.z.unknown()).optional(),
|
|
3337
|
+
threat: import_zod32.z.boolean().nullable().optional(),
|
|
3338
|
+
attack_type: import_zod32.z.string().optional(),
|
|
3339
|
+
multi_turn: import_zod32.z.boolean().optional(),
|
|
3340
|
+
asr: import_zod32.z.number().nullable().optional(),
|
|
3341
|
+
version: import_zod32.z.number().int().nullable().optional(),
|
|
3342
|
+
severity: import_zod32.z.string().optional(),
|
|
3343
|
+
outputs: import_zod32.z.array(AttackMultiTurnOutputSchema).optional()
|
|
3344
|
+
}).passthrough();
|
|
3345
|
+
var SubCategoryStatsSchema = import_zod32.z.object({
|
|
3346
|
+
id: import_zod32.z.string(),
|
|
3347
|
+
display_name: import_zod32.z.string(),
|
|
3348
|
+
description: import_zod32.z.string(),
|
|
3349
|
+
preselect: import_zod32.z.boolean().optional(),
|
|
3350
|
+
prerequisites: import_zod32.z.array(PrerequisiteModelSchema).nullable().optional(),
|
|
3351
|
+
active: import_zod32.z.boolean().optional(),
|
|
3352
|
+
successful: import_zod32.z.number().int(),
|
|
3353
|
+
failed: import_zod32.z.number().int(),
|
|
3354
|
+
total: import_zod32.z.number().int().optional()
|
|
3355
|
+
}).passthrough();
|
|
3356
|
+
var CategoryReportSchema = import_zod32.z.object({
|
|
3357
|
+
id: import_zod32.z.string(),
|
|
3358
|
+
display_name: import_zod32.z.string(),
|
|
3359
|
+
description: import_zod32.z.string(),
|
|
3360
|
+
preselect: import_zod32.z.boolean().optional(),
|
|
3361
|
+
sub_categories: import_zod32.z.array(SubCategoryStatsSchema),
|
|
3362
|
+
asr: import_zod32.z.number(),
|
|
3363
|
+
total_prompts: import_zod32.z.number().int(),
|
|
3364
|
+
total_attacks: import_zod32.z.number().int(),
|
|
3365
|
+
successful: import_zod32.z.number().int(),
|
|
3366
|
+
failed: import_zod32.z.number().int()
|
|
3367
|
+
}).passthrough();
|
|
3368
|
+
var SeverityStatsSchema = import_zod32.z.object({
|
|
3369
|
+
severity: import_zod32.z.string(),
|
|
3370
|
+
successful: import_zod32.z.number().int().optional(),
|
|
3371
|
+
failed: import_zod32.z.number().int().optional()
|
|
3372
|
+
}).passthrough();
|
|
3373
|
+
var SeverityReportSchema = import_zod32.z.object({
|
|
3374
|
+
stats: import_zod32.z.array(SeverityStatsSchema),
|
|
3375
|
+
successful: import_zod32.z.number().int().optional(),
|
|
3376
|
+
failed: import_zod32.z.number().int().optional(),
|
|
3377
|
+
total_attacks: import_zod32.z.number().int().optional()
|
|
3378
|
+
}).passthrough();
|
|
3379
|
+
var ComplianceTechniqueSchema = import_zod32.z.object({
|
|
3380
|
+
id: import_zod32.z.string(),
|
|
3381
|
+
display_name: import_zod32.z.string(),
|
|
3382
|
+
compliance_id: import_zod32.z.string(),
|
|
3383
|
+
description: import_zod32.z.string(),
|
|
3384
|
+
link: import_zod32.z.string(),
|
|
3385
|
+
version: import_zod32.z.string(),
|
|
3386
|
+
active: import_zod32.z.boolean(),
|
|
3387
|
+
successful: import_zod32.z.number().int().optional(),
|
|
3388
|
+
failed: import_zod32.z.number().int().optional(),
|
|
3389
|
+
total: import_zod32.z.number().int().optional()
|
|
3390
|
+
}).passthrough();
|
|
3391
|
+
var ComplianceReportSchema = import_zod32.z.object({
|
|
3392
|
+
id: import_zod32.z.string(),
|
|
3393
|
+
display_name: import_zod32.z.string(),
|
|
3394
|
+
description: import_zod32.z.string(),
|
|
3395
|
+
active: import_zod32.z.boolean(),
|
|
3396
|
+
version: import_zod32.z.string(),
|
|
3397
|
+
link: import_zod32.z.string(),
|
|
3398
|
+
techniques: import_zod32.z.array(ComplianceTechniqueSchema),
|
|
3399
|
+
score: import_zod32.z.number().int().optional()
|
|
3400
|
+
}).passthrough();
|
|
3401
|
+
var RuntimeSecurityPolicySchema = import_zod32.z.object({
|
|
3402
|
+
policy_id: import_zod32.z.string(),
|
|
3403
|
+
display_name: import_zod32.z.string(),
|
|
3404
|
+
config: import_zod32.z.record(import_zod32.z.unknown())
|
|
3405
|
+
}).passthrough();
|
|
3406
|
+
var StaticJobRemediationSchema = import_zod32.z.object({
|
|
3407
|
+
remediation: import_zod32.z.string(),
|
|
3408
|
+
description: import_zod32.z.string(),
|
|
3409
|
+
mapping_remediation_id: import_zod32.z.string().nullable().optional(),
|
|
3410
|
+
subcategories: import_zod32.z.array(import_zod32.z.string()).nullable().optional(),
|
|
3411
|
+
effectiveness: import_zod32.z.number().int().optional(),
|
|
3412
|
+
ease_of_implementation: import_zod32.z.number().int().optional(),
|
|
3413
|
+
priority: import_zod32.z.number().int().optional(),
|
|
3414
|
+
resource_links: import_zod32.z.array(import_zod32.z.string()).optional(),
|
|
3415
|
+
categories: import_zod32.z.array(import_zod32.z.string()).nullable().optional()
|
|
3416
|
+
}).passthrough();
|
|
3417
|
+
var StaticJobRemediationRecommendationSchema = import_zod32.z.object({
|
|
3418
|
+
runtime_security_policy_configuration: import_zod32.z.array(RuntimeSecurityPolicySchema).nullable().optional(),
|
|
3419
|
+
other_measures: import_zod32.z.array(StaticJobRemediationSchema).optional()
|
|
3420
|
+
}).passthrough();
|
|
3421
|
+
var StaticJobReportSchema = import_zod32.z.object({
|
|
2890
3422
|
severity_report: SeverityReportSchema,
|
|
2891
|
-
asr:
|
|
2892
|
-
score:
|
|
3423
|
+
asr: import_zod32.z.number().nullable().optional(),
|
|
3424
|
+
score: import_zod32.z.number().nullable().optional(),
|
|
2893
3425
|
security_report: CategoryReportSchema.nullable().optional(),
|
|
2894
3426
|
safety_report: CategoryReportSchema.nullable().optional(),
|
|
2895
3427
|
brand_report: CategoryReportSchema.nullable().optional(),
|
|
2896
|
-
compliance_report:
|
|
2897
|
-
report_summary:
|
|
3428
|
+
compliance_report: import_zod32.z.array(ComplianceReportSchema).nullable().optional(),
|
|
3429
|
+
report_summary: import_zod32.z.string().nullable().optional(),
|
|
2898
3430
|
recommendations: StaticJobRemediationRecommendationSchema.nullable().optional()
|
|
2899
3431
|
}).passthrough();
|
|
2900
|
-
var DynamicJobReportSchema =
|
|
2901
|
-
total_goals:
|
|
2902
|
-
total_streams:
|
|
2903
|
-
total_threats:
|
|
2904
|
-
goals_achieved:
|
|
2905
|
-
report_summary:
|
|
2906
|
-
score:
|
|
2907
|
-
asr:
|
|
2908
|
-
}).passthrough();
|
|
2909
|
-
var RemediationDetailSchema =
|
|
2910
|
-
remediation:
|
|
2911
|
-
description:
|
|
2912
|
-
resource_links:
|
|
2913
|
-
priority_level:
|
|
2914
|
-
ease_of_implementation_level:
|
|
2915
|
-
effectiveness_level:
|
|
2916
|
-
}).passthrough();
|
|
2917
|
-
var RemediationResponseSchema =
|
|
2918
|
-
var RuntimeSecurityProfileResponseSchema =
|
|
2919
|
-
runtime_security_profile:
|
|
2920
|
-
}).passthrough();
|
|
2921
|
-
var GoalSchema =
|
|
2922
|
-
goal:
|
|
2923
|
-
safe_response:
|
|
2924
|
-
jailbroken_response:
|
|
2925
|
-
goal_metadata:
|
|
2926
|
-
custom_goal:
|
|
2927
|
-
goal_type:
|
|
2928
|
-
uuid:
|
|
2929
|
-
tsg_id:
|
|
2930
|
-
job_id:
|
|
2931
|
-
goal_to_show:
|
|
2932
|
-
threat:
|
|
2933
|
-
version:
|
|
2934
|
-
extra_info:
|
|
2935
|
-
}).passthrough();
|
|
2936
|
-
var GoalListResponseSchema =
|
|
2937
|
-
var StreamIterationDataSchema =
|
|
2938
|
-
uuid:
|
|
2939
|
-
tsg_id:
|
|
2940
|
-
job_id:
|
|
2941
|
-
stream_id:
|
|
2942
|
-
goal_id:
|
|
2943
|
-
iteration:
|
|
2944
|
-
prompt:
|
|
2945
|
-
techniques:
|
|
2946
|
-
improvement:
|
|
2947
|
-
prompts_objective:
|
|
2948
|
-
summary:
|
|
2949
|
-
output:
|
|
2950
|
-
score:
|
|
2951
|
-
judge_reasoning:
|
|
2952
|
-
threat:
|
|
2953
|
-
created_at:
|
|
2954
|
-
updated_at:
|
|
2955
|
-
extra_info:
|
|
2956
|
-
version:
|
|
2957
|
-
}).passthrough();
|
|
2958
|
-
var StreamDetailResponseSchema =
|
|
2959
|
-
uuid:
|
|
2960
|
-
tsg_id:
|
|
2961
|
-
job_id:
|
|
2962
|
-
target_id:
|
|
2963
|
-
goal_id:
|
|
2964
|
-
stream_idx:
|
|
2965
|
-
iteration:
|
|
2966
|
-
goal:
|
|
2967
|
-
marked_safe:
|
|
2968
|
-
stream_type:
|
|
2969
|
-
threat:
|
|
3432
|
+
var DynamicJobReportSchema = import_zod32.z.object({
|
|
3433
|
+
total_goals: import_zod32.z.number().int().optional(),
|
|
3434
|
+
total_streams: import_zod32.z.number().int().optional(),
|
|
3435
|
+
total_threats: import_zod32.z.number().int().optional(),
|
|
3436
|
+
goals_achieved: import_zod32.z.number().int().optional(),
|
|
3437
|
+
report_summary: import_zod32.z.string().nullable().optional(),
|
|
3438
|
+
score: import_zod32.z.number().optional(),
|
|
3439
|
+
asr: import_zod32.z.number().optional()
|
|
3440
|
+
}).passthrough();
|
|
3441
|
+
var RemediationDetailSchema = import_zod32.z.object({
|
|
3442
|
+
remediation: import_zod32.z.string(),
|
|
3443
|
+
description: import_zod32.z.string(),
|
|
3444
|
+
resource_links: import_zod32.z.array(import_zod32.z.string()).optional(),
|
|
3445
|
+
priority_level: import_zod32.z.string().optional(),
|
|
3446
|
+
ease_of_implementation_level: import_zod32.z.string().optional(),
|
|
3447
|
+
effectiveness_level: import_zod32.z.string().optional()
|
|
3448
|
+
}).passthrough();
|
|
3449
|
+
var RemediationResponseSchema = import_zod32.z.object({ remediations: import_zod32.z.array(RemediationDetailSchema).optional() }).passthrough();
|
|
3450
|
+
var RuntimeSecurityProfileResponseSchema = import_zod32.z.object({
|
|
3451
|
+
runtime_security_profile: import_zod32.z.array(RuntimeSecurityPolicySchema).nullable().optional()
|
|
3452
|
+
}).passthrough();
|
|
3453
|
+
var GoalSchema = import_zod32.z.object({
|
|
3454
|
+
goal: import_zod32.z.string(),
|
|
3455
|
+
safe_response: import_zod32.z.string(),
|
|
3456
|
+
jailbroken_response: import_zod32.z.string(),
|
|
3457
|
+
goal_metadata: import_zod32.z.record(import_zod32.z.unknown()).optional(),
|
|
3458
|
+
custom_goal: import_zod32.z.boolean().optional(),
|
|
3459
|
+
goal_type: import_zod32.z.string().optional(),
|
|
3460
|
+
uuid: import_zod32.z.string(),
|
|
3461
|
+
tsg_id: import_zod32.z.string(),
|
|
3462
|
+
job_id: import_zod32.z.string(),
|
|
3463
|
+
goal_to_show: import_zod32.z.string().nullable().optional(),
|
|
3464
|
+
threat: import_zod32.z.boolean().optional(),
|
|
3465
|
+
version: import_zod32.z.number().int().nullable().optional(),
|
|
3466
|
+
extra_info: import_zod32.z.record(import_zod32.z.unknown()).nullable().optional()
|
|
3467
|
+
}).passthrough();
|
|
3468
|
+
var GoalListResponseSchema = import_zod32.z.object({ pagination: RedTeamPaginationSchema, data: import_zod32.z.array(GoalSchema) }).passthrough();
|
|
3469
|
+
var StreamIterationDataSchema = import_zod32.z.object({
|
|
3470
|
+
uuid: import_zod32.z.string(),
|
|
3471
|
+
tsg_id: import_zod32.z.string(),
|
|
3472
|
+
job_id: import_zod32.z.string(),
|
|
3473
|
+
stream_id: import_zod32.z.string(),
|
|
3474
|
+
goal_id: import_zod32.z.string(),
|
|
3475
|
+
iteration: import_zod32.z.number().int(),
|
|
3476
|
+
prompt: import_zod32.z.string(),
|
|
3477
|
+
techniques: import_zod32.z.string(),
|
|
3478
|
+
improvement: import_zod32.z.string(),
|
|
3479
|
+
prompts_objective: import_zod32.z.string(),
|
|
3480
|
+
summary: import_zod32.z.string(),
|
|
3481
|
+
output: import_zod32.z.string().nullable().optional(),
|
|
3482
|
+
score: import_zod32.z.number().int().nullable().optional(),
|
|
3483
|
+
judge_reasoning: import_zod32.z.string().nullable().optional(),
|
|
3484
|
+
threat: import_zod32.z.boolean().optional(),
|
|
3485
|
+
created_at: import_zod32.z.string().nullable().optional(),
|
|
3486
|
+
updated_at: import_zod32.z.string().nullable().optional(),
|
|
3487
|
+
extra_info: import_zod32.z.record(import_zod32.z.unknown()).nullable().optional(),
|
|
3488
|
+
version: import_zod32.z.number().int().nullable().optional()
|
|
3489
|
+
}).passthrough();
|
|
3490
|
+
var StreamDetailResponseSchema = import_zod32.z.object({
|
|
3491
|
+
uuid: import_zod32.z.string(),
|
|
3492
|
+
tsg_id: import_zod32.z.string(),
|
|
3493
|
+
job_id: import_zod32.z.string(),
|
|
3494
|
+
target_id: import_zod32.z.string(),
|
|
3495
|
+
goal_id: import_zod32.z.string(),
|
|
3496
|
+
stream_idx: import_zod32.z.number().int().optional(),
|
|
3497
|
+
iteration: import_zod32.z.number().int().optional(),
|
|
3498
|
+
goal: import_zod32.z.unknown().optional(),
|
|
3499
|
+
marked_safe: import_zod32.z.boolean().optional(),
|
|
3500
|
+
stream_type: import_zod32.z.string().nullable().optional(),
|
|
3501
|
+
threat: import_zod32.z.boolean().optional(),
|
|
2970
3502
|
first_threat_iteration: StreamIterationDataSchema.nullable().optional(),
|
|
2971
|
-
created_at:
|
|
2972
|
-
updated_at:
|
|
2973
|
-
extra_info:
|
|
2974
|
-
version:
|
|
2975
|
-
iterations:
|
|
2976
|
-
}).passthrough();
|
|
2977
|
-
var StreamListResponseSchema =
|
|
2978
|
-
var CustomAttackOutputSchema =
|
|
2979
|
-
uuid:
|
|
2980
|
-
tsg_id:
|
|
2981
|
-
custom_attack_id:
|
|
2982
|
-
job_id:
|
|
2983
|
-
target_id:
|
|
2984
|
-
output:
|
|
2985
|
-
threat:
|
|
2986
|
-
marked_safe:
|
|
2987
|
-
}).passthrough();
|
|
2988
|
-
var PropertyAssignmentSchema =
|
|
2989
|
-
name:
|
|
2990
|
-
value:
|
|
2991
|
-
}).passthrough();
|
|
2992
|
-
var PropertyValueStatisticSchema =
|
|
2993
|
-
value:
|
|
2994
|
-
successful_attack_count:
|
|
2995
|
-
total_attack_count:
|
|
2996
|
-
success_rate:
|
|
2997
|
-
}).passthrough();
|
|
2998
|
-
var PropertyStatisticSchema =
|
|
2999
|
-
property_name:
|
|
3000
|
-
values:
|
|
3001
|
-
}).passthrough();
|
|
3002
|
-
var PromptSetSummarySchema =
|
|
3003
|
-
prompt_set_id:
|
|
3004
|
-
prompt_set_name:
|
|
3005
|
-
total_prompts:
|
|
3006
|
-
total_attacks:
|
|
3007
|
-
total_threats:
|
|
3008
|
-
failed_attacks:
|
|
3009
|
-
threat_rate:
|
|
3010
|
-
property_names:
|
|
3011
|
-
property_statistics:
|
|
3012
|
-
}).passthrough();
|
|
3013
|
-
var CustomAttackReportResponseSchema =
|
|
3014
|
-
total_prompts:
|
|
3015
|
-
total_attacks:
|
|
3016
|
-
total_threats:
|
|
3017
|
-
failed_attacks:
|
|
3018
|
-
score:
|
|
3019
|
-
asr:
|
|
3020
|
-
custom_attack_reports:
|
|
3021
|
-
property_statistics:
|
|
3022
|
-
}).passthrough();
|
|
3023
|
-
var PromptSetsReportResponseSchema =
|
|
3024
|
-
prompt_sets:
|
|
3025
|
-
total_prompt_sets:
|
|
3026
|
-
applied_filters:
|
|
3027
|
-
}).passthrough();
|
|
3028
|
-
var PromptDetailResponseSchema =
|
|
3029
|
-
prompt_id:
|
|
3030
|
-
prompt_text:
|
|
3031
|
-
goal:
|
|
3032
|
-
user_defined_goal:
|
|
3033
|
-
properties:
|
|
3034
|
-
attack_id:
|
|
3035
|
-
threat:
|
|
3036
|
-
attack_outputs:
|
|
3037
|
-
asr:
|
|
3038
|
-
prompt_set_id:
|
|
3039
|
-
prompt_set_name:
|
|
3040
|
-
}).passthrough();
|
|
3041
|
-
var CustomAttacksListResponseSchema =
|
|
3503
|
+
created_at: import_zod32.z.string().nullable().optional(),
|
|
3504
|
+
updated_at: import_zod32.z.string().nullable().optional(),
|
|
3505
|
+
extra_info: import_zod32.z.record(import_zod32.z.unknown()).optional(),
|
|
3506
|
+
version: import_zod32.z.number().int().nullable().optional(),
|
|
3507
|
+
iterations: import_zod32.z.array(StreamIterationDataSchema).optional()
|
|
3508
|
+
}).passthrough();
|
|
3509
|
+
var StreamListResponseSchema = import_zod32.z.object({ pagination: RedTeamPaginationSchema, data: import_zod32.z.array(StreamDetailResponseSchema) }).passthrough();
|
|
3510
|
+
var CustomAttackOutputSchema = import_zod32.z.object({
|
|
3511
|
+
uuid: import_zod32.z.string(),
|
|
3512
|
+
tsg_id: import_zod32.z.string(),
|
|
3513
|
+
custom_attack_id: import_zod32.z.string(),
|
|
3514
|
+
job_id: import_zod32.z.string(),
|
|
3515
|
+
target_id: import_zod32.z.string(),
|
|
3516
|
+
output: import_zod32.z.string(),
|
|
3517
|
+
threat: import_zod32.z.boolean().nullable().optional(),
|
|
3518
|
+
marked_safe: import_zod32.z.boolean().nullable().optional()
|
|
3519
|
+
}).passthrough();
|
|
3520
|
+
var PropertyAssignmentSchema = import_zod32.z.object({
|
|
3521
|
+
name: import_zod32.z.string(),
|
|
3522
|
+
value: import_zod32.z.string()
|
|
3523
|
+
}).passthrough();
|
|
3524
|
+
var PropertyValueStatisticSchema = import_zod32.z.object({
|
|
3525
|
+
value: import_zod32.z.string(),
|
|
3526
|
+
successful_attack_count: import_zod32.z.number().int(),
|
|
3527
|
+
total_attack_count: import_zod32.z.number().int(),
|
|
3528
|
+
success_rate: import_zod32.z.number()
|
|
3529
|
+
}).passthrough();
|
|
3530
|
+
var PropertyStatisticSchema = import_zod32.z.object({
|
|
3531
|
+
property_name: import_zod32.z.string(),
|
|
3532
|
+
values: import_zod32.z.array(PropertyValueStatisticSchema)
|
|
3533
|
+
}).passthrough();
|
|
3534
|
+
var PromptSetSummarySchema = import_zod32.z.object({
|
|
3535
|
+
prompt_set_id: import_zod32.z.string(),
|
|
3536
|
+
prompt_set_name: import_zod32.z.string(),
|
|
3537
|
+
total_prompts: import_zod32.z.number().int(),
|
|
3538
|
+
total_attacks: import_zod32.z.number().int(),
|
|
3539
|
+
total_threats: import_zod32.z.number().int(),
|
|
3540
|
+
failed_attacks: import_zod32.z.number().int(),
|
|
3541
|
+
threat_rate: import_zod32.z.number(),
|
|
3542
|
+
property_names: import_zod32.z.array(import_zod32.z.string()).optional(),
|
|
3543
|
+
property_statistics: import_zod32.z.array(PropertyStatisticSchema).optional()
|
|
3544
|
+
}).passthrough();
|
|
3545
|
+
var CustomAttackReportResponseSchema = import_zod32.z.object({
|
|
3546
|
+
total_prompts: import_zod32.z.number().int(),
|
|
3547
|
+
total_attacks: import_zod32.z.number().int(),
|
|
3548
|
+
total_threats: import_zod32.z.number().int(),
|
|
3549
|
+
failed_attacks: import_zod32.z.number().int(),
|
|
3550
|
+
score: import_zod32.z.number(),
|
|
3551
|
+
asr: import_zod32.z.number(),
|
|
3552
|
+
custom_attack_reports: import_zod32.z.array(PromptSetSummarySchema).optional(),
|
|
3553
|
+
property_statistics: import_zod32.z.array(PropertyStatisticSchema).optional()
|
|
3554
|
+
}).passthrough();
|
|
3555
|
+
var PromptSetsReportResponseSchema = import_zod32.z.object({
|
|
3556
|
+
prompt_sets: import_zod32.z.array(PromptSetSummarySchema),
|
|
3557
|
+
total_prompt_sets: import_zod32.z.number().int(),
|
|
3558
|
+
applied_filters: import_zod32.z.record(import_zod32.z.unknown()).optional()
|
|
3559
|
+
}).passthrough();
|
|
3560
|
+
var PromptDetailResponseSchema = import_zod32.z.object({
|
|
3561
|
+
prompt_id: import_zod32.z.string(),
|
|
3562
|
+
prompt_text: import_zod32.z.string(),
|
|
3563
|
+
goal: import_zod32.z.string().nullable().optional(),
|
|
3564
|
+
user_defined_goal: import_zod32.z.boolean().optional(),
|
|
3565
|
+
properties: import_zod32.z.array(PropertyAssignmentSchema).optional(),
|
|
3566
|
+
attack_id: import_zod32.z.string().nullable().optional(),
|
|
3567
|
+
threat: import_zod32.z.boolean().nullable().optional(),
|
|
3568
|
+
attack_outputs: import_zod32.z.array(CustomAttackOutputSchema).optional(),
|
|
3569
|
+
asr: import_zod32.z.number().nullable().optional(),
|
|
3570
|
+
prompt_set_id: import_zod32.z.string().nullable().optional(),
|
|
3571
|
+
prompt_set_name: import_zod32.z.string().nullable().optional()
|
|
3572
|
+
}).passthrough();
|
|
3573
|
+
var CustomAttacksListResponseSchema = import_zod32.z.object({
|
|
3042
3574
|
pagination: RedTeamPaginationSchema,
|
|
3043
|
-
data:
|
|
3044
|
-
total_attacks:
|
|
3045
|
-
total_threats:
|
|
3046
|
-
}).passthrough();
|
|
3047
|
-
var RiskLevelSchema =
|
|
3048
|
-
risk_rating:
|
|
3049
|
-
total:
|
|
3050
|
-
targets_by_type:
|
|
3051
|
-
}).passthrough();
|
|
3052
|
-
var ScanStatisticsResponseSchema =
|
|
3053
|
-
total_scans:
|
|
3054
|
-
targets_scanned:
|
|
3055
|
-
targets_scanned_by_type:
|
|
3056
|
-
scan_status:
|
|
3057
|
-
risk_profile:
|
|
3058
|
-
}).passthrough();
|
|
3059
|
-
var ScoreTrendSeriesSchema =
|
|
3060
|
-
label:
|
|
3061
|
-
data:
|
|
3062
|
-
}).passthrough();
|
|
3063
|
-
var ScoreTrendResponseSchema =
|
|
3064
|
-
labels:
|
|
3065
|
-
series:
|
|
3066
|
-
}).passthrough();
|
|
3067
|
-
var SentimentRequestSchema =
|
|
3068
|
-
job_id:
|
|
3069
|
-
up_vote:
|
|
3070
|
-
down_vote:
|
|
3071
|
-
}).passthrough();
|
|
3072
|
-
var SentimentResponseSchema =
|
|
3073
|
-
job_id:
|
|
3074
|
-
up_vote:
|
|
3075
|
-
down_vote:
|
|
3076
|
-
}).passthrough();
|
|
3077
|
-
var QuotaDetailsSchema =
|
|
3078
|
-
allocated:
|
|
3079
|
-
unlimited:
|
|
3080
|
-
consumed:
|
|
3081
|
-
}).passthrough();
|
|
3082
|
-
var QuotaSummarySchema =
|
|
3575
|
+
data: import_zod32.z.array(import_zod32.z.unknown()),
|
|
3576
|
+
total_attacks: import_zod32.z.number().int(),
|
|
3577
|
+
total_threats: import_zod32.z.number().int()
|
|
3578
|
+
}).passthrough();
|
|
3579
|
+
var RiskLevelSchema = import_zod32.z.object({
|
|
3580
|
+
risk_rating: import_zod32.z.string(),
|
|
3581
|
+
total: import_zod32.z.number().int(),
|
|
3582
|
+
targets_by_type: import_zod32.z.array(CountByNameSchema).optional()
|
|
3583
|
+
}).passthrough();
|
|
3584
|
+
var ScanStatisticsResponseSchema = import_zod32.z.object({
|
|
3585
|
+
total_scans: import_zod32.z.number().int(),
|
|
3586
|
+
targets_scanned: import_zod32.z.number().int(),
|
|
3587
|
+
targets_scanned_by_type: import_zod32.z.array(CountByNameSchema).optional(),
|
|
3588
|
+
scan_status: import_zod32.z.array(CountByNameSchema).optional(),
|
|
3589
|
+
risk_profile: import_zod32.z.array(RiskLevelSchema).optional()
|
|
3590
|
+
}).passthrough();
|
|
3591
|
+
var ScoreTrendSeriesSchema = import_zod32.z.object({
|
|
3592
|
+
label: import_zod32.z.string(),
|
|
3593
|
+
data: import_zod32.z.array(import_zod32.z.number().nullable())
|
|
3594
|
+
}).passthrough();
|
|
3595
|
+
var ScoreTrendResponseSchema = import_zod32.z.object({
|
|
3596
|
+
labels: import_zod32.z.array(import_zod32.z.string()),
|
|
3597
|
+
series: import_zod32.z.array(ScoreTrendSeriesSchema)
|
|
3598
|
+
}).passthrough();
|
|
3599
|
+
var SentimentRequestSchema = import_zod32.z.object({
|
|
3600
|
+
job_id: import_zod32.z.string(),
|
|
3601
|
+
up_vote: import_zod32.z.boolean().optional(),
|
|
3602
|
+
down_vote: import_zod32.z.boolean().optional()
|
|
3603
|
+
}).passthrough();
|
|
3604
|
+
var SentimentResponseSchema = import_zod32.z.object({
|
|
3605
|
+
job_id: import_zod32.z.string(),
|
|
3606
|
+
up_vote: import_zod32.z.boolean().optional(),
|
|
3607
|
+
down_vote: import_zod32.z.boolean().optional()
|
|
3608
|
+
}).passthrough();
|
|
3609
|
+
var QuotaDetailsSchema = import_zod32.z.object({
|
|
3610
|
+
allocated: import_zod32.z.number().int(),
|
|
3611
|
+
unlimited: import_zod32.z.boolean(),
|
|
3612
|
+
consumed: import_zod32.z.number().int()
|
|
3613
|
+
}).passthrough();
|
|
3614
|
+
var QuotaSummarySchema = import_zod32.z.object({
|
|
3083
3615
|
static: QuotaDetailsSchema,
|
|
3084
3616
|
dynamic: QuotaDetailsSchema,
|
|
3085
3617
|
custom: QuotaDetailsSchema
|
|
3086
3618
|
}).passthrough();
|
|
3087
|
-
var ErrorLogSchema =
|
|
3088
|
-
created_at:
|
|
3089
|
-
updated_at:
|
|
3090
|
-
job_id:
|
|
3091
|
-
target_id:
|
|
3092
|
-
target_version:
|
|
3093
|
-
attack_id:
|
|
3094
|
-
error_type:
|
|
3095
|
-
error_source:
|
|
3096
|
-
error_message:
|
|
3097
|
-
target_object:
|
|
3098
|
-
extra_info:
|
|
3099
|
-
version:
|
|
3100
|
-
}).passthrough();
|
|
3101
|
-
var ErrorLogListResponseSchema =
|
|
3619
|
+
var ErrorLogSchema = import_zod32.z.object({
|
|
3620
|
+
created_at: import_zod32.z.string(),
|
|
3621
|
+
updated_at: import_zod32.z.string(),
|
|
3622
|
+
job_id: import_zod32.z.string().nullable().optional(),
|
|
3623
|
+
target_id: import_zod32.z.string().nullable().optional(),
|
|
3624
|
+
target_version: import_zod32.z.number().int().nullable().optional(),
|
|
3625
|
+
attack_id: import_zod32.z.string().nullable().optional(),
|
|
3626
|
+
error_type: import_zod32.z.string().nullable().optional(),
|
|
3627
|
+
error_source: import_zod32.z.string().nullable().optional(),
|
|
3628
|
+
error_message: import_zod32.z.string().nullable().optional(),
|
|
3629
|
+
target_object: import_zod32.z.record(import_zod32.z.unknown()).nullable().optional(),
|
|
3630
|
+
extra_info: import_zod32.z.record(import_zod32.z.unknown()).nullable().optional(),
|
|
3631
|
+
version: import_zod32.z.number().int().optional()
|
|
3632
|
+
}).passthrough();
|
|
3633
|
+
var ErrorLogListResponseSchema = import_zod32.z.object({ pagination: RedTeamPaginationSchema, data: import_zod32.z.array(ErrorLogSchema) }).passthrough();
|
|
3102
3634
|
var TargetRequestBaseFields = {
|
|
3103
|
-
name:
|
|
3104
|
-
description:
|
|
3105
|
-
target_type:
|
|
3106
|
-
connection_type:
|
|
3107
|
-
api_endpoint_type:
|
|
3108
|
-
response_mode:
|
|
3109
|
-
connection_params:
|
|
3110
|
-
session_supported:
|
|
3635
|
+
name: import_zod32.z.string(),
|
|
3636
|
+
description: import_zod32.z.string().nullable().optional(),
|
|
3637
|
+
target_type: import_zod32.z.string().nullable().optional(),
|
|
3638
|
+
connection_type: import_zod32.z.string().nullable().optional(),
|
|
3639
|
+
api_endpoint_type: import_zod32.z.string().nullable().optional(),
|
|
3640
|
+
response_mode: import_zod32.z.string().nullable().optional(),
|
|
3641
|
+
connection_params: import_zod32.z.union([RestConnectionParamsSchema, StreamingConnectionParamsSchema]).nullable().optional(),
|
|
3642
|
+
session_supported: import_zod32.z.boolean().optional(),
|
|
3111
3643
|
target_metadata: TargetMetadataSchema.optional(),
|
|
3112
3644
|
target_background: TargetBackgroundSchema.nullable().optional(),
|
|
3113
3645
|
additional_context: TargetAdditionalContextSchema.nullable().optional(),
|
|
3114
|
-
extra_info:
|
|
3115
|
-
network_broker_channel_uuid:
|
|
3646
|
+
extra_info: import_zod32.z.record(import_zod32.z.unknown()).nullable().optional(),
|
|
3647
|
+
network_broker_channel_uuid: import_zod32.z.string().nullable().optional()
|
|
3116
3648
|
};
|
|
3117
|
-
var TargetCreateRequestSchema =
|
|
3118
|
-
var TargetUpdateRequestSchema =
|
|
3119
|
-
var TargetContextUpdateSchema =
|
|
3649
|
+
var TargetCreateRequestSchema = import_zod32.z.object(TargetRequestBaseFields).strict();
|
|
3650
|
+
var TargetUpdateRequestSchema = import_zod32.z.object(TargetRequestBaseFields).strict();
|
|
3651
|
+
var TargetContextUpdateSchema = import_zod32.z.object({
|
|
3120
3652
|
target_background: TargetBackgroundSchema.nullable().optional(),
|
|
3121
3653
|
additional_context: TargetAdditionalContextSchema.nullable().optional()
|
|
3122
3654
|
}).passthrough();
|
|
3123
|
-
var TargetResponseSchema =
|
|
3124
|
-
uuid:
|
|
3125
|
-
tsg_id:
|
|
3126
|
-
name:
|
|
3127
|
-
status:
|
|
3128
|
-
active:
|
|
3129
|
-
validated:
|
|
3130
|
-
created_at:
|
|
3131
|
-
updated_at:
|
|
3132
|
-
description:
|
|
3133
|
-
target_type:
|
|
3134
|
-
connection_type:
|
|
3135
|
-
api_endpoint_type:
|
|
3136
|
-
response_mode:
|
|
3137
|
-
session_supported:
|
|
3138
|
-
extra_info:
|
|
3139
|
-
version:
|
|
3140
|
-
secret_version:
|
|
3141
|
-
created_by_user_id:
|
|
3142
|
-
updated_by_user_id:
|
|
3143
|
-
target_metadata:
|
|
3144
|
-
target_background:
|
|
3145
|
-
profiling_status:
|
|
3146
|
-
additional_context:
|
|
3147
|
-
auth_type:
|
|
3148
|
-
}).passthrough();
|
|
3149
|
-
var TargetListItemSchema =
|
|
3150
|
-
uuid:
|
|
3151
|
-
tsg_id:
|
|
3152
|
-
name:
|
|
3153
|
-
status:
|
|
3154
|
-
active:
|
|
3155
|
-
validated:
|
|
3156
|
-
created_at:
|
|
3157
|
-
updated_at:
|
|
3158
|
-
description:
|
|
3159
|
-
target_type:
|
|
3160
|
-
connection_type:
|
|
3161
|
-
api_endpoint_type:
|
|
3162
|
-
response_mode:
|
|
3163
|
-
session_supported:
|
|
3164
|
-
extra_info:
|
|
3165
|
-
version:
|
|
3166
|
-
secret_version:
|
|
3167
|
-
created_by_user_id:
|
|
3168
|
-
updated_by_user_id:
|
|
3169
|
-
auth_type:
|
|
3170
|
-
}).passthrough();
|
|
3171
|
-
var TargetListSchema =
|
|
3172
|
-
var TargetProbeRequestSchema =
|
|
3655
|
+
var TargetResponseSchema = import_zod32.z.object({
|
|
3656
|
+
uuid: import_zod32.z.string(),
|
|
3657
|
+
tsg_id: import_zod32.z.string(),
|
|
3658
|
+
name: import_zod32.z.string(),
|
|
3659
|
+
status: import_zod32.z.unknown(),
|
|
3660
|
+
active: import_zod32.z.boolean(),
|
|
3661
|
+
validated: import_zod32.z.boolean(),
|
|
3662
|
+
created_at: import_zod32.z.string(),
|
|
3663
|
+
updated_at: import_zod32.z.string(),
|
|
3664
|
+
description: import_zod32.z.unknown().optional(),
|
|
3665
|
+
target_type: import_zod32.z.unknown().optional(),
|
|
3666
|
+
connection_type: import_zod32.z.unknown().optional(),
|
|
3667
|
+
api_endpoint_type: import_zod32.z.unknown().optional(),
|
|
3668
|
+
response_mode: import_zod32.z.unknown().optional(),
|
|
3669
|
+
session_supported: import_zod32.z.boolean().optional(),
|
|
3670
|
+
extra_info: import_zod32.z.unknown().optional(),
|
|
3671
|
+
version: import_zod32.z.unknown().optional(),
|
|
3672
|
+
secret_version: import_zod32.z.unknown().optional(),
|
|
3673
|
+
created_by_user_id: import_zod32.z.unknown().optional(),
|
|
3674
|
+
updated_by_user_id: import_zod32.z.unknown().optional(),
|
|
3675
|
+
target_metadata: import_zod32.z.unknown().optional(),
|
|
3676
|
+
target_background: import_zod32.z.unknown().optional(),
|
|
3677
|
+
profiling_status: import_zod32.z.unknown().optional(),
|
|
3678
|
+
additional_context: import_zod32.z.unknown().optional(),
|
|
3679
|
+
auth_type: import_zod32.z.string().nullable().optional()
|
|
3680
|
+
}).passthrough();
|
|
3681
|
+
var TargetListItemSchema = import_zod32.z.object({
|
|
3682
|
+
uuid: import_zod32.z.string(),
|
|
3683
|
+
tsg_id: import_zod32.z.string(),
|
|
3684
|
+
name: import_zod32.z.string(),
|
|
3685
|
+
status: import_zod32.z.unknown(),
|
|
3686
|
+
active: import_zod32.z.boolean(),
|
|
3687
|
+
validated: import_zod32.z.boolean(),
|
|
3688
|
+
created_at: import_zod32.z.string(),
|
|
3689
|
+
updated_at: import_zod32.z.string(),
|
|
3690
|
+
description: import_zod32.z.unknown().optional(),
|
|
3691
|
+
target_type: import_zod32.z.unknown().optional(),
|
|
3692
|
+
connection_type: import_zod32.z.unknown().optional(),
|
|
3693
|
+
api_endpoint_type: import_zod32.z.unknown().optional(),
|
|
3694
|
+
response_mode: import_zod32.z.unknown().optional(),
|
|
3695
|
+
session_supported: import_zod32.z.boolean().optional(),
|
|
3696
|
+
extra_info: import_zod32.z.unknown().optional(),
|
|
3697
|
+
version: import_zod32.z.unknown().optional(),
|
|
3698
|
+
secret_version: import_zod32.z.unknown().optional(),
|
|
3699
|
+
created_by_user_id: import_zod32.z.unknown().optional(),
|
|
3700
|
+
updated_by_user_id: import_zod32.z.unknown().optional(),
|
|
3701
|
+
auth_type: import_zod32.z.string().nullable().optional()
|
|
3702
|
+
}).passthrough();
|
|
3703
|
+
var TargetListSchema = import_zod32.z.object({ pagination: RedTeamPaginationSchema, data: import_zod32.z.array(TargetListItemSchema).optional() }).passthrough();
|
|
3704
|
+
var TargetProbeRequestSchema = import_zod32.z.object({
|
|
3173
3705
|
...TargetRequestBaseFields,
|
|
3174
|
-
uuid:
|
|
3175
|
-
probe_fields:
|
|
3706
|
+
uuid: import_zod32.z.string().nullable().optional(),
|
|
3707
|
+
probe_fields: import_zod32.z.array(import_zod32.z.string()).nullable().optional()
|
|
3176
3708
|
}).strict();
|
|
3177
|
-
var TargetAuthValidationRequestSchema =
|
|
3178
|
-
auth_type:
|
|
3179
|
-
auth_config:
|
|
3180
|
-
target_id:
|
|
3181
|
-
network_broker_channel_uuid:
|
|
3182
|
-
}).passthrough();
|
|
3183
|
-
var TargetAuthValidationResponseSchema =
|
|
3184
|
-
validated:
|
|
3185
|
-
token_preview:
|
|
3186
|
-
expires_in:
|
|
3187
|
-
}).passthrough();
|
|
3188
|
-
var TargetProfileResponseSchema =
|
|
3189
|
-
target_id:
|
|
3190
|
-
target_version:
|
|
3191
|
-
status:
|
|
3192
|
-
profiling_status:
|
|
3193
|
-
target_background:
|
|
3194
|
-
additional_context:
|
|
3195
|
-
ai_generated_fields:
|
|
3196
|
-
other_details:
|
|
3197
|
-
}).passthrough();
|
|
3198
|
-
var TargetTemplateCollectionSchema =
|
|
3199
|
-
OPENAI:
|
|
3200
|
-
HUGGING_FACE:
|
|
3201
|
-
DATABRICKS:
|
|
3202
|
-
BEDROCK:
|
|
3203
|
-
REST:
|
|
3204
|
-
STREAMING:
|
|
3205
|
-
WEBSOCKET:
|
|
3206
|
-
}).passthrough();
|
|
3207
|
-
var BaseResponseSchema =
|
|
3208
|
-
message:
|
|
3209
|
-
status:
|
|
3210
|
-
}).passthrough();
|
|
3211
|
-
var PromptSetStatsSchema =
|
|
3212
|
-
total_prompts:
|
|
3213
|
-
active_prompts:
|
|
3214
|
-
inactive_prompts:
|
|
3215
|
-
failed_prompts:
|
|
3216
|
-
validation_prompts:
|
|
3217
|
-
}).passthrough();
|
|
3218
|
-
var CustomPromptSetCreateRequestSchema =
|
|
3219
|
-
name:
|
|
3220
|
-
description:
|
|
3221
|
-
property_names:
|
|
3222
|
-
}).passthrough();
|
|
3223
|
-
var CustomPromptSetUpdateRequestSchema =
|
|
3224
|
-
name:
|
|
3225
|
-
description:
|
|
3226
|
-
archive:
|
|
3227
|
-
property_names:
|
|
3228
|
-
}).passthrough();
|
|
3229
|
-
var CustomPromptSetArchiveRequestSchema =
|
|
3230
|
-
var CustomPromptSetResponseSchema =
|
|
3231
|
-
uuid:
|
|
3232
|
-
name:
|
|
3233
|
-
active:
|
|
3234
|
-
archive:
|
|
3235
|
-
status:
|
|
3236
|
-
created_at:
|
|
3237
|
-
updated_at:
|
|
3238
|
-
description:
|
|
3239
|
-
property_names:
|
|
3240
|
-
properties:
|
|
3241
|
-
stats:
|
|
3242
|
-
extra_info:
|
|
3243
|
-
version:
|
|
3244
|
-
created_by_user_id:
|
|
3245
|
-
updated_by_user_id:
|
|
3246
|
-
}).passthrough();
|
|
3247
|
-
var CustomPromptSetListItemSchema =
|
|
3248
|
-
uuid:
|
|
3249
|
-
name:
|
|
3250
|
-
active:
|
|
3251
|
-
archive:
|
|
3252
|
-
status:
|
|
3253
|
-
created_at:
|
|
3254
|
-
updated_at:
|
|
3255
|
-
description:
|
|
3256
|
-
property_names:
|
|
3257
|
-
stats:
|
|
3258
|
-
created_by_user_id:
|
|
3259
|
-
}).passthrough();
|
|
3260
|
-
var CustomPromptSetListSchema =
|
|
3709
|
+
var TargetAuthValidationRequestSchema = import_zod32.z.object({
|
|
3710
|
+
auth_type: import_zod32.z.string(),
|
|
3711
|
+
auth_config: import_zod32.z.unknown(),
|
|
3712
|
+
target_id: import_zod32.z.string().nullable().optional(),
|
|
3713
|
+
network_broker_channel_uuid: import_zod32.z.string().nullable().optional()
|
|
3714
|
+
}).passthrough();
|
|
3715
|
+
var TargetAuthValidationResponseSchema = import_zod32.z.object({
|
|
3716
|
+
validated: import_zod32.z.boolean(),
|
|
3717
|
+
token_preview: import_zod32.z.string().nullable().optional(),
|
|
3718
|
+
expires_in: import_zod32.z.number().int().nullable().optional()
|
|
3719
|
+
}).passthrough();
|
|
3720
|
+
var TargetProfileResponseSchema = import_zod32.z.object({
|
|
3721
|
+
target_id: import_zod32.z.string(),
|
|
3722
|
+
target_version: import_zod32.z.number().int(),
|
|
3723
|
+
status: import_zod32.z.string(),
|
|
3724
|
+
profiling_status: import_zod32.z.unknown().optional(),
|
|
3725
|
+
target_background: import_zod32.z.unknown().optional(),
|
|
3726
|
+
additional_context: import_zod32.z.unknown().optional(),
|
|
3727
|
+
ai_generated_fields: import_zod32.z.unknown().optional(),
|
|
3728
|
+
other_details: import_zod32.z.unknown().optional()
|
|
3729
|
+
}).passthrough();
|
|
3730
|
+
var TargetTemplateCollectionSchema = import_zod32.z.object({
|
|
3731
|
+
OPENAI: import_zod32.z.record(import_zod32.z.unknown()),
|
|
3732
|
+
HUGGING_FACE: import_zod32.z.record(import_zod32.z.unknown()),
|
|
3733
|
+
DATABRICKS: import_zod32.z.record(import_zod32.z.unknown()),
|
|
3734
|
+
BEDROCK: import_zod32.z.record(import_zod32.z.unknown()),
|
|
3735
|
+
REST: import_zod32.z.record(import_zod32.z.unknown()),
|
|
3736
|
+
STREAMING: import_zod32.z.record(import_zod32.z.unknown()),
|
|
3737
|
+
WEBSOCKET: import_zod32.z.record(import_zod32.z.unknown())
|
|
3738
|
+
}).passthrough();
|
|
3739
|
+
var BaseResponseSchema = import_zod32.z.object({
|
|
3740
|
+
message: import_zod32.z.string(),
|
|
3741
|
+
status: import_zod32.z.number().int()
|
|
3742
|
+
}).passthrough();
|
|
3743
|
+
var PromptSetStatsSchema = import_zod32.z.object({
|
|
3744
|
+
total_prompts: import_zod32.z.number().int(),
|
|
3745
|
+
active_prompts: import_zod32.z.number().int(),
|
|
3746
|
+
inactive_prompts: import_zod32.z.number().int(),
|
|
3747
|
+
failed_prompts: import_zod32.z.number().int().optional(),
|
|
3748
|
+
validation_prompts: import_zod32.z.number().int().optional()
|
|
3749
|
+
}).passthrough();
|
|
3750
|
+
var CustomPromptSetCreateRequestSchema = import_zod32.z.object({
|
|
3751
|
+
name: import_zod32.z.string(),
|
|
3752
|
+
description: import_zod32.z.unknown().optional(),
|
|
3753
|
+
property_names: import_zod32.z.array(import_zod32.z.string()).optional()
|
|
3754
|
+
}).passthrough();
|
|
3755
|
+
var CustomPromptSetUpdateRequestSchema = import_zod32.z.object({
|
|
3756
|
+
name: import_zod32.z.unknown().optional(),
|
|
3757
|
+
description: import_zod32.z.unknown().optional(),
|
|
3758
|
+
archive: import_zod32.z.unknown().optional(),
|
|
3759
|
+
property_names: import_zod32.z.unknown().optional()
|
|
3760
|
+
}).passthrough();
|
|
3761
|
+
var CustomPromptSetArchiveRequestSchema = import_zod32.z.object({ archive: import_zod32.z.boolean() }).passthrough();
|
|
3762
|
+
var CustomPromptSetResponseSchema = import_zod32.z.object({
|
|
3763
|
+
uuid: import_zod32.z.string(),
|
|
3764
|
+
name: import_zod32.z.string(),
|
|
3765
|
+
active: import_zod32.z.boolean(),
|
|
3766
|
+
archive: import_zod32.z.boolean(),
|
|
3767
|
+
status: import_zod32.z.string(),
|
|
3768
|
+
created_at: import_zod32.z.string(),
|
|
3769
|
+
updated_at: import_zod32.z.string(),
|
|
3770
|
+
description: import_zod32.z.unknown().optional(),
|
|
3771
|
+
property_names: import_zod32.z.array(import_zod32.z.string()).optional(),
|
|
3772
|
+
properties: import_zod32.z.array(import_zod32.z.unknown()).optional(),
|
|
3773
|
+
stats: import_zod32.z.unknown().optional(),
|
|
3774
|
+
extra_info: import_zod32.z.unknown().optional(),
|
|
3775
|
+
version: import_zod32.z.unknown().optional(),
|
|
3776
|
+
created_by_user_id: import_zod32.z.unknown().optional(),
|
|
3777
|
+
updated_by_user_id: import_zod32.z.unknown().optional()
|
|
3778
|
+
}).passthrough();
|
|
3779
|
+
var CustomPromptSetListItemSchema = import_zod32.z.object({
|
|
3780
|
+
uuid: import_zod32.z.string(),
|
|
3781
|
+
name: import_zod32.z.string(),
|
|
3782
|
+
active: import_zod32.z.boolean(),
|
|
3783
|
+
archive: import_zod32.z.boolean(),
|
|
3784
|
+
status: import_zod32.z.string(),
|
|
3785
|
+
created_at: import_zod32.z.string(),
|
|
3786
|
+
updated_at: import_zod32.z.string(),
|
|
3787
|
+
description: import_zod32.z.unknown().optional(),
|
|
3788
|
+
property_names: import_zod32.z.array(import_zod32.z.string()).optional(),
|
|
3789
|
+
stats: import_zod32.z.unknown().optional(),
|
|
3790
|
+
created_by_user_id: import_zod32.z.unknown().optional()
|
|
3791
|
+
}).passthrough();
|
|
3792
|
+
var CustomPromptSetListSchema = import_zod32.z.object({
|
|
3261
3793
|
pagination: RedTeamPaginationSchema,
|
|
3262
|
-
data:
|
|
3263
|
-
}).passthrough();
|
|
3264
|
-
var CustomPromptSetReferenceSchema =
|
|
3265
|
-
uuid:
|
|
3266
|
-
name:
|
|
3267
|
-
status:
|
|
3268
|
-
active:
|
|
3269
|
-
tsg_id:
|
|
3270
|
-
created_at:
|
|
3271
|
-
updated_at:
|
|
3272
|
-
version:
|
|
3273
|
-
}).passthrough();
|
|
3274
|
-
var CustomPromptSetListActiveSchema =
|
|
3275
|
-
var CustomPromptSetVersionInfoSchema =
|
|
3276
|
-
uuid:
|
|
3277
|
-
status:
|
|
3278
|
-
is_latest:
|
|
3279
|
-
version:
|
|
3794
|
+
data: import_zod32.z.array(CustomPromptSetListItemSchema).optional()
|
|
3795
|
+
}).passthrough();
|
|
3796
|
+
var CustomPromptSetReferenceSchema = import_zod32.z.object({
|
|
3797
|
+
uuid: import_zod32.z.string(),
|
|
3798
|
+
name: import_zod32.z.string(),
|
|
3799
|
+
status: import_zod32.z.string(),
|
|
3800
|
+
active: import_zod32.z.boolean(),
|
|
3801
|
+
tsg_id: import_zod32.z.string(),
|
|
3802
|
+
created_at: import_zod32.z.string(),
|
|
3803
|
+
updated_at: import_zod32.z.string(),
|
|
3804
|
+
version: import_zod32.z.unknown().optional()
|
|
3805
|
+
}).passthrough();
|
|
3806
|
+
var CustomPromptSetListActiveSchema = import_zod32.z.object({ data: import_zod32.z.array(CustomPromptSetReferenceSchema).optional() }).passthrough();
|
|
3807
|
+
var CustomPromptSetVersionInfoSchema = import_zod32.z.object({
|
|
3808
|
+
uuid: import_zod32.z.string(),
|
|
3809
|
+
status: import_zod32.z.string(),
|
|
3810
|
+
is_latest: import_zod32.z.boolean(),
|
|
3811
|
+
version: import_zod32.z.string().nullable().optional(),
|
|
3280
3812
|
stats: PromptSetStatsSchema.nullable().optional(),
|
|
3281
|
-
snapshot_created_at:
|
|
3282
|
-
}).passthrough();
|
|
3283
|
-
var CustomPromptCreateRequestSchema =
|
|
3284
|
-
prompt:
|
|
3285
|
-
prompt_set_id:
|
|
3286
|
-
goal:
|
|
3287
|
-
properties:
|
|
3288
|
-
}).passthrough();
|
|
3289
|
-
var CustomPromptUpdateRequestSchema =
|
|
3290
|
-
prompt:
|
|
3291
|
-
goal:
|
|
3292
|
-
properties:
|
|
3293
|
-
}).passthrough();
|
|
3294
|
-
var CustomPromptResponseSchema =
|
|
3295
|
-
uuid:
|
|
3296
|
-
prompt:
|
|
3297
|
-
user_defined_goal:
|
|
3298
|
-
status:
|
|
3299
|
-
active:
|
|
3300
|
-
prompt_set_id:
|
|
3301
|
-
created_at:
|
|
3302
|
-
updated_at:
|
|
3303
|
-
goal:
|
|
3304
|
-
properties:
|
|
3305
|
-
property_assignments:
|
|
3306
|
-
detector_category:
|
|
3307
|
-
severity:
|
|
3308
|
-
extra_info:
|
|
3309
|
-
}).passthrough();
|
|
3310
|
-
var CustomPromptListItemSchema =
|
|
3311
|
-
uuid:
|
|
3312
|
-
prompt:
|
|
3313
|
-
user_defined_goal:
|
|
3314
|
-
status:
|
|
3315
|
-
active:
|
|
3316
|
-
created_at:
|
|
3317
|
-
updated_at:
|
|
3318
|
-
goal:
|
|
3319
|
-
properties:
|
|
3320
|
-
}).passthrough();
|
|
3321
|
-
var CustomPromptListSchema =
|
|
3813
|
+
snapshot_created_at: import_zod32.z.string().nullable().optional()
|
|
3814
|
+
}).passthrough();
|
|
3815
|
+
var CustomPromptCreateRequestSchema = import_zod32.z.object({
|
|
3816
|
+
prompt: import_zod32.z.string(),
|
|
3817
|
+
prompt_set_id: import_zod32.z.string(),
|
|
3818
|
+
goal: import_zod32.z.unknown().optional(),
|
|
3819
|
+
properties: import_zod32.z.unknown().optional()
|
|
3820
|
+
}).passthrough();
|
|
3821
|
+
var CustomPromptUpdateRequestSchema = import_zod32.z.object({
|
|
3822
|
+
prompt: import_zod32.z.unknown().optional(),
|
|
3823
|
+
goal: import_zod32.z.unknown().optional(),
|
|
3824
|
+
properties: import_zod32.z.unknown().optional()
|
|
3825
|
+
}).passthrough();
|
|
3826
|
+
var CustomPromptResponseSchema = import_zod32.z.object({
|
|
3827
|
+
uuid: import_zod32.z.string(),
|
|
3828
|
+
prompt: import_zod32.z.string(),
|
|
3829
|
+
user_defined_goal: import_zod32.z.boolean(),
|
|
3830
|
+
status: import_zod32.z.string(),
|
|
3831
|
+
active: import_zod32.z.boolean(),
|
|
3832
|
+
prompt_set_id: import_zod32.z.string(),
|
|
3833
|
+
created_at: import_zod32.z.string(),
|
|
3834
|
+
updated_at: import_zod32.z.string(),
|
|
3835
|
+
goal: import_zod32.z.unknown().optional(),
|
|
3836
|
+
properties: import_zod32.z.unknown().optional(),
|
|
3837
|
+
property_assignments: import_zod32.z.array(import_zod32.z.unknown()).optional(),
|
|
3838
|
+
detector_category: import_zod32.z.unknown().optional(),
|
|
3839
|
+
severity: import_zod32.z.unknown().optional(),
|
|
3840
|
+
extra_info: import_zod32.z.unknown().optional()
|
|
3841
|
+
}).passthrough();
|
|
3842
|
+
var CustomPromptListItemSchema = import_zod32.z.object({
|
|
3843
|
+
uuid: import_zod32.z.string(),
|
|
3844
|
+
prompt: import_zod32.z.string(),
|
|
3845
|
+
user_defined_goal: import_zod32.z.boolean(),
|
|
3846
|
+
status: import_zod32.z.string(),
|
|
3847
|
+
active: import_zod32.z.boolean(),
|
|
3848
|
+
created_at: import_zod32.z.string(),
|
|
3849
|
+
updated_at: import_zod32.z.string(),
|
|
3850
|
+
goal: import_zod32.z.unknown().optional(),
|
|
3851
|
+
properties: import_zod32.z.unknown().optional()
|
|
3852
|
+
}).passthrough();
|
|
3853
|
+
var CustomPromptListSchema = import_zod32.z.object({
|
|
3322
3854
|
pagination: RedTeamPaginationSchema,
|
|
3323
|
-
data:
|
|
3324
|
-
}).passthrough();
|
|
3325
|
-
var PropertyNameCreateRequestSchema =
|
|
3326
|
-
var PropertyValueCreateRequestSchema =
|
|
3327
|
-
property_name:
|
|
3328
|
-
property_value:
|
|
3329
|
-
}).passthrough();
|
|
3330
|
-
var PropertyDefinitionSchema =
|
|
3331
|
-
property_name:
|
|
3332
|
-
created_at:
|
|
3333
|
-
}).passthrough();
|
|
3334
|
-
var PropertyNamesListResponseSchema =
|
|
3335
|
-
var PropertyValuesResponseSchema =
|
|
3336
|
-
name:
|
|
3337
|
-
values:
|
|
3338
|
-
}).passthrough();
|
|
3339
|
-
var PropertyValuesMultipleResponseSchema =
|
|
3340
|
-
var DashboardOverviewResponseSchema =
|
|
3341
|
-
total_targets:
|
|
3342
|
-
targets_by_type:
|
|
3343
|
-
}).passthrough();
|
|
3344
|
-
var EulaAcceptRequestSchema =
|
|
3345
|
-
eula_content:
|
|
3346
|
-
accepted_at:
|
|
3347
|
-
}).passthrough();
|
|
3348
|
-
var EulaContentResponseSchema =
|
|
3349
|
-
content:
|
|
3350
|
-
}).passthrough();
|
|
3351
|
-
var EulaResponseSchema =
|
|
3352
|
-
uuid:
|
|
3353
|
-
is_accepted:
|
|
3354
|
-
accepted_at:
|
|
3355
|
-
accepted_by_user_id:
|
|
3356
|
-
}).passthrough();
|
|
3357
|
-
var DeviceInstanceSchema =
|
|
3358
|
-
app_id:
|
|
3359
|
-
region:
|
|
3360
|
-
tenant_id:
|
|
3361
|
-
tsg_id:
|
|
3362
|
-
}).passthrough();
|
|
3363
|
-
var DeviceLicenseSchema =
|
|
3364
|
-
authorizationCode:
|
|
3365
|
-
expirationDate:
|
|
3366
|
-
licensePanDbIdentification:
|
|
3367
|
-
partNumber:
|
|
3368
|
-
serialNumber:
|
|
3369
|
-
subtypeName:
|
|
3370
|
-
registrationDate:
|
|
3371
|
-
}).passthrough();
|
|
3372
|
-
var DeviceSchema =
|
|
3373
|
-
serial_number:
|
|
3374
|
-
model:
|
|
3375
|
-
sku:
|
|
3376
|
-
device_type:
|
|
3377
|
-
device_name:
|
|
3378
|
-
tsg_id:
|
|
3379
|
-
support_account_id:
|
|
3380
|
-
asset_type:
|
|
3381
|
-
licenses:
|
|
3382
|
-
}).passthrough();
|
|
3383
|
-
var DeviceStatusSchema =
|
|
3384
|
-
status:
|
|
3385
|
-
error:
|
|
3386
|
-
serial_number:
|
|
3387
|
-
}).passthrough();
|
|
3388
|
-
var DeviceRequestSchema =
|
|
3855
|
+
data: import_zod32.z.array(CustomPromptListItemSchema).optional()
|
|
3856
|
+
}).passthrough();
|
|
3857
|
+
var PropertyNameCreateRequestSchema = import_zod32.z.object({ name: import_zod32.z.string() }).passthrough();
|
|
3858
|
+
var PropertyValueCreateRequestSchema = import_zod32.z.object({
|
|
3859
|
+
property_name: import_zod32.z.string(),
|
|
3860
|
+
property_value: import_zod32.z.string()
|
|
3861
|
+
}).passthrough();
|
|
3862
|
+
var PropertyDefinitionSchema = import_zod32.z.object({
|
|
3863
|
+
property_name: import_zod32.z.string(),
|
|
3864
|
+
created_at: import_zod32.z.string()
|
|
3865
|
+
}).passthrough();
|
|
3866
|
+
var PropertyNamesListResponseSchema = import_zod32.z.object({ data: import_zod32.z.array(import_zod32.z.string()).optional() }).passthrough();
|
|
3867
|
+
var PropertyValuesResponseSchema = import_zod32.z.object({
|
|
3868
|
+
name: import_zod32.z.string(),
|
|
3869
|
+
values: import_zod32.z.array(import_zod32.z.string()).optional()
|
|
3870
|
+
}).passthrough();
|
|
3871
|
+
var PropertyValuesMultipleResponseSchema = import_zod32.z.object({ data: import_zod32.z.record(import_zod32.z.array(import_zod32.z.string())).optional() }).passthrough();
|
|
3872
|
+
var DashboardOverviewResponseSchema = import_zod32.z.object({
|
|
3873
|
+
total_targets: import_zod32.z.number().int(),
|
|
3874
|
+
targets_by_type: import_zod32.z.array(CountByNameSchema).optional()
|
|
3875
|
+
}).passthrough();
|
|
3876
|
+
var EulaAcceptRequestSchema = import_zod32.z.object({
|
|
3877
|
+
eula_content: import_zod32.z.string(),
|
|
3878
|
+
accepted_at: import_zod32.z.string().nullable().optional()
|
|
3879
|
+
}).passthrough();
|
|
3880
|
+
var EulaContentResponseSchema = import_zod32.z.object({
|
|
3881
|
+
content: import_zod32.z.string()
|
|
3882
|
+
}).passthrough();
|
|
3883
|
+
var EulaResponseSchema = import_zod32.z.object({
|
|
3884
|
+
uuid: import_zod32.z.string().nullable().optional(),
|
|
3885
|
+
is_accepted: import_zod32.z.boolean(),
|
|
3886
|
+
accepted_at: import_zod32.z.string().nullable().optional(),
|
|
3887
|
+
accepted_by_user_id: import_zod32.z.string().nullable().optional()
|
|
3888
|
+
}).passthrough();
|
|
3889
|
+
var DeviceInstanceSchema = import_zod32.z.object({
|
|
3890
|
+
app_id: import_zod32.z.string(),
|
|
3891
|
+
region: import_zod32.z.string(),
|
|
3892
|
+
tenant_id: import_zod32.z.string(),
|
|
3893
|
+
tsg_id: import_zod32.z.string()
|
|
3894
|
+
}).passthrough();
|
|
3895
|
+
var DeviceLicenseSchema = import_zod32.z.object({
|
|
3896
|
+
authorizationCode: import_zod32.z.string().optional(),
|
|
3897
|
+
expirationDate: import_zod32.z.string().optional(),
|
|
3898
|
+
licensePanDbIdentification: import_zod32.z.string().optional(),
|
|
3899
|
+
partNumber: import_zod32.z.string().optional(),
|
|
3900
|
+
serialNumber: import_zod32.z.string().optional(),
|
|
3901
|
+
subtypeName: import_zod32.z.string().optional(),
|
|
3902
|
+
registrationDate: import_zod32.z.string().optional()
|
|
3903
|
+
}).passthrough();
|
|
3904
|
+
var DeviceSchema = import_zod32.z.object({
|
|
3905
|
+
serial_number: import_zod32.z.string(),
|
|
3906
|
+
model: import_zod32.z.string().optional(),
|
|
3907
|
+
sku: import_zod32.z.string().optional(),
|
|
3908
|
+
device_type: import_zod32.z.string().optional(),
|
|
3909
|
+
device_name: import_zod32.z.string().optional(),
|
|
3910
|
+
tsg_id: import_zod32.z.string().optional(),
|
|
3911
|
+
support_account_id: import_zod32.z.string().optional(),
|
|
3912
|
+
asset_type: import_zod32.z.string().optional(),
|
|
3913
|
+
licenses: import_zod32.z.array(DeviceLicenseSchema).optional()
|
|
3914
|
+
}).passthrough();
|
|
3915
|
+
var DeviceStatusSchema = import_zod32.z.object({
|
|
3916
|
+
status: import_zod32.z.string(),
|
|
3917
|
+
error: import_zod32.z.string().optional(),
|
|
3918
|
+
serial_number: import_zod32.z.string().optional()
|
|
3919
|
+
}).passthrough();
|
|
3920
|
+
var DeviceRequestSchema = import_zod32.z.object({
|
|
3389
3921
|
instance: DeviceInstanceSchema,
|
|
3390
|
-
created_by:
|
|
3391
|
-
devices:
|
|
3392
|
-
}).passthrough();
|
|
3393
|
-
var DeviceResponseSchema =
|
|
3394
|
-
devices:
|
|
3395
|
-
status:
|
|
3396
|
-
}).passthrough();
|
|
3397
|
-
var DeploymentProfileAttributeSchema =
|
|
3398
|
-
quantity:
|
|
3399
|
-
unit_of_measure:
|
|
3400
|
-
}).passthrough();
|
|
3401
|
-
var DeploymentProfileRequestSchema =
|
|
3402
|
-
dAuthCode:
|
|
3403
|
-
deploymentProfileId:
|
|
3404
|
-
license_expiration:
|
|
3405
|
-
profileName:
|
|
3406
|
-
subType:
|
|
3407
|
-
subscriptions:
|
|
3408
|
-
type:
|
|
3409
|
-
aveTextRecord:
|
|
3410
|
-
attributes:
|
|
3411
|
-
}).passthrough();
|
|
3412
|
-
var InstanceExtraDetailsSchema =
|
|
3413
|
-
deployment_profiles:
|
|
3414
|
-
airs_shared_by_tsg:
|
|
3415
|
-
airs_unshared_dps:
|
|
3416
|
-
}).passthrough();
|
|
3417
|
-
var InstanceRequestSchema =
|
|
3418
|
-
tsg_id:
|
|
3419
|
-
tenant_id:
|
|
3420
|
-
app_id:
|
|
3421
|
-
region:
|
|
3422
|
-
support_account_id:
|
|
3423
|
-
support_account_name:
|
|
3424
|
-
created_by:
|
|
3425
|
-
internal:
|
|
3426
|
-
tenant_instance_name:
|
|
3922
|
+
created_by: import_zod32.z.string().optional(),
|
|
3923
|
+
devices: import_zod32.z.array(DeviceSchema).optional()
|
|
3924
|
+
}).passthrough();
|
|
3925
|
+
var DeviceResponseSchema = import_zod32.z.object({
|
|
3926
|
+
devices: import_zod32.z.array(DeviceStatusSchema).optional(),
|
|
3927
|
+
status: import_zod32.z.string().optional()
|
|
3928
|
+
}).passthrough();
|
|
3929
|
+
var DeploymentProfileAttributeSchema = import_zod32.z.object({
|
|
3930
|
+
quantity: import_zod32.z.number().optional(),
|
|
3931
|
+
unit_of_measure: import_zod32.z.string().optional()
|
|
3932
|
+
}).passthrough();
|
|
3933
|
+
var DeploymentProfileRequestSchema = import_zod32.z.object({
|
|
3934
|
+
dAuthCode: import_zod32.z.string().optional(),
|
|
3935
|
+
deploymentProfileId: import_zod32.z.string().optional(),
|
|
3936
|
+
license_expiration: import_zod32.z.string().optional(),
|
|
3937
|
+
profileName: import_zod32.z.string().optional(),
|
|
3938
|
+
subType: import_zod32.z.string().optional(),
|
|
3939
|
+
subscriptions: import_zod32.z.string().optional(),
|
|
3940
|
+
type: import_zod32.z.string().optional(),
|
|
3941
|
+
aveTextRecord: import_zod32.z.number().default(0),
|
|
3942
|
+
attributes: import_zod32.z.array(DeploymentProfileAttributeSchema).optional()
|
|
3943
|
+
}).passthrough();
|
|
3944
|
+
var InstanceExtraDetailsSchema = import_zod32.z.object({
|
|
3945
|
+
deployment_profiles: import_zod32.z.array(DeploymentProfileRequestSchema).optional(),
|
|
3946
|
+
airs_shared_by_tsg: import_zod32.z.string().optional(),
|
|
3947
|
+
airs_unshared_dps: import_zod32.z.string().optional()
|
|
3948
|
+
}).passthrough();
|
|
3949
|
+
var InstanceRequestSchema = import_zod32.z.object({
|
|
3950
|
+
tsg_id: import_zod32.z.string(),
|
|
3951
|
+
tenant_id: import_zod32.z.string(),
|
|
3952
|
+
app_id: import_zod32.z.string(),
|
|
3953
|
+
region: import_zod32.z.string(),
|
|
3954
|
+
support_account_id: import_zod32.z.string().optional(),
|
|
3955
|
+
support_account_name: import_zod32.z.string().optional(),
|
|
3956
|
+
created_by: import_zod32.z.string().optional(),
|
|
3957
|
+
internal: import_zod32.z.boolean().optional(),
|
|
3958
|
+
tenant_instance_name: import_zod32.z.string().optional(),
|
|
3427
3959
|
extra: InstanceExtraDetailsSchema.optional(),
|
|
3428
|
-
iam_controlled:
|
|
3429
|
-
platform_region:
|
|
3430
|
-
csp_tenant_id:
|
|
3431
|
-
tsg_instances:
|
|
3432
|
-
}).passthrough();
|
|
3433
|
-
var InstanceResponseSchema =
|
|
3434
|
-
tsg_id:
|
|
3435
|
-
tenant_id:
|
|
3436
|
-
app_id:
|
|
3437
|
-
is_success:
|
|
3438
|
-
}).passthrough();
|
|
3439
|
-
var InstanceGetResponseSchema =
|
|
3440
|
-
tsg_id:
|
|
3441
|
-
tenant_id:
|
|
3442
|
-
app_id:
|
|
3443
|
-
region:
|
|
3444
|
-
support_account_id:
|
|
3445
|
-
support_account_name:
|
|
3446
|
-
created_by:
|
|
3447
|
-
internal:
|
|
3448
|
-
tenant_instance_name:
|
|
3449
|
-
deployment_profiles:
|
|
3450
|
-
}).passthrough();
|
|
3451
|
-
var RegistryCredentialsSchema =
|
|
3452
|
-
token:
|
|
3453
|
-
expiry:
|
|
3960
|
+
iam_controlled: import_zod32.z.boolean().optional(),
|
|
3961
|
+
platform_region: import_zod32.z.string().optional(),
|
|
3962
|
+
csp_tenant_id: import_zod32.z.string().optional(),
|
|
3963
|
+
tsg_instances: import_zod32.z.unknown().optional()
|
|
3964
|
+
}).passthrough();
|
|
3965
|
+
var InstanceResponseSchema = import_zod32.z.object({
|
|
3966
|
+
tsg_id: import_zod32.z.string(),
|
|
3967
|
+
tenant_id: import_zod32.z.string().optional(),
|
|
3968
|
+
app_id: import_zod32.z.string().optional(),
|
|
3969
|
+
is_success: import_zod32.z.boolean().optional()
|
|
3970
|
+
}).passthrough();
|
|
3971
|
+
var InstanceGetResponseSchema = import_zod32.z.object({
|
|
3972
|
+
tsg_id: import_zod32.z.string(),
|
|
3973
|
+
tenant_id: import_zod32.z.string(),
|
|
3974
|
+
app_id: import_zod32.z.string(),
|
|
3975
|
+
region: import_zod32.z.string(),
|
|
3976
|
+
support_account_id: import_zod32.z.string().optional(),
|
|
3977
|
+
support_account_name: import_zod32.z.string().optional(),
|
|
3978
|
+
created_by: import_zod32.z.string().optional(),
|
|
3979
|
+
internal: import_zod32.z.boolean().optional(),
|
|
3980
|
+
tenant_instance_name: import_zod32.z.string().optional(),
|
|
3981
|
+
deployment_profiles: import_zod32.z.array(DeploymentProfileRequestSchema).optional()
|
|
3982
|
+
}).passthrough();
|
|
3983
|
+
var RegistryCredentialsSchema = import_zod32.z.object({
|
|
3984
|
+
token: import_zod32.z.string(),
|
|
3985
|
+
expiry: import_zod32.z.string()
|
|
3454
3986
|
}).passthrough();
|
|
3455
3987
|
|
|
3456
3988
|
// src/http/auth/oauth.ts
|
|
@@ -3475,12 +4007,12 @@ var OAuthAuth = class {
|
|
|
3475
4007
|
};
|
|
3476
4008
|
|
|
3477
4009
|
// src/models/oauth-token.ts
|
|
3478
|
-
var
|
|
3479
|
-
var OAuthTokenResponseSchema =
|
|
3480
|
-
access_token:
|
|
3481
|
-
token_type:
|
|
3482
|
-
expires_in:
|
|
3483
|
-
scope:
|
|
4010
|
+
var import_zod33 = require("zod");
|
|
4011
|
+
var OAuthTokenResponseSchema = import_zod33.z.object({
|
|
4012
|
+
access_token: import_zod33.z.string(),
|
|
4013
|
+
token_type: import_zod33.z.string().optional(),
|
|
4014
|
+
expires_in: import_zod33.z.number(),
|
|
4015
|
+
scope: import_zod33.z.string().optional()
|
|
3484
4016
|
}).passthrough();
|
|
3485
4017
|
|
|
3486
4018
|
// src/management/oauth-client.ts
|
|
@@ -4164,7 +4696,7 @@ var ScanLogsClient = class {
|
|
|
4164
4696
|
};
|
|
4165
4697
|
|
|
4166
4698
|
// src/management/oauth-management.ts
|
|
4167
|
-
var
|
|
4699
|
+
var import_zod34 = require("zod");
|
|
4168
4700
|
var OAuthManagementClient = class {
|
|
4169
4701
|
baseUrl;
|
|
4170
4702
|
auth;
|
|
@@ -4187,7 +4719,7 @@ var OAuthManagementClient = class {
|
|
|
4187
4719
|
path: MGMT_OAUTH_INVALIDATE_PATH,
|
|
4188
4720
|
params: { token },
|
|
4189
4721
|
body,
|
|
4190
|
-
responseSchema:
|
|
4722
|
+
responseSchema: import_zod34.z.string(),
|
|
4191
4723
|
auth: this.auth,
|
|
4192
4724
|
numRetries: this.numRetries
|
|
4193
4725
|
});
|
|
@@ -4215,6 +4747,413 @@ var OAuthManagementClient = class {
|
|
|
4215
4747
|
}
|
|
4216
4748
|
};
|
|
4217
4749
|
|
|
4750
|
+
// src/management/dlp/data-filtering-profiles.ts
|
|
4751
|
+
var DataFilteringProfilesClient = class {
|
|
4752
|
+
baseUrl;
|
|
4753
|
+
auth;
|
|
4754
|
+
numRetries;
|
|
4755
|
+
constructor(opts) {
|
|
4756
|
+
this.baseUrl = opts.baseUrl;
|
|
4757
|
+
this.auth = opts.auth;
|
|
4758
|
+
this.numRetries = opts.numRetries;
|
|
4759
|
+
}
|
|
4760
|
+
/**
|
|
4761
|
+
* List data filtering profiles. Returns the Spring `Page<>` envelope verbatim so callers can
|
|
4762
|
+
* inspect `totalElements`, `pageable`, etc. without a second round-trip.
|
|
4763
|
+
*/
|
|
4764
|
+
async list(params = {}) {
|
|
4765
|
+
const queryParams = {};
|
|
4766
|
+
if (params.page !== void 0) queryParams.page = String(params.page);
|
|
4767
|
+
if (params.size !== void 0) queryParams.size = String(params.size);
|
|
4768
|
+
if (params.sort !== void 0) queryParams.sort = params.sort;
|
|
4769
|
+
if (params.status !== void 0) queryParams.status = params.status;
|
|
4770
|
+
if (params.name !== void 0) queryParams.name = params.name;
|
|
4771
|
+
return request({
|
|
4772
|
+
method: "GET",
|
|
4773
|
+
baseUrl: this.baseUrl,
|
|
4774
|
+
path: DLP_DATA_FILTERING_PROFILES_PATH,
|
|
4775
|
+
params: queryParams,
|
|
4776
|
+
responseSchema: PageDataFilteringProfileResponseSchema,
|
|
4777
|
+
auth: this.auth,
|
|
4778
|
+
numRetries: this.numRetries
|
|
4779
|
+
});
|
|
4780
|
+
}
|
|
4781
|
+
/** Get a single data filtering profile by resource ID. */
|
|
4782
|
+
async get(resourceId) {
|
|
4783
|
+
return request({
|
|
4784
|
+
method: "GET",
|
|
4785
|
+
baseUrl: this.baseUrl,
|
|
4786
|
+
path: `${DLP_DATA_FILTERING_PROFILES_PATH}/${encodeURIComponent(resourceId)}`,
|
|
4787
|
+
responseSchema: DataFilteringProfileResponseSchema,
|
|
4788
|
+
auth: this.auth,
|
|
4789
|
+
numRetries: this.numRetries
|
|
4790
|
+
});
|
|
4791
|
+
}
|
|
4792
|
+
/**
|
|
4793
|
+
* Full-replace (PUT) the profile at `resourceId`. Returns the updated resource as the API
|
|
4794
|
+
* echoes it back.
|
|
4795
|
+
*/
|
|
4796
|
+
async replace(resourceId, body) {
|
|
4797
|
+
return request({
|
|
4798
|
+
method: "PUT",
|
|
4799
|
+
baseUrl: this.baseUrl,
|
|
4800
|
+
path: `${DLP_DATA_FILTERING_PROFILES_PATH}/${encodeURIComponent(resourceId)}`,
|
|
4801
|
+
body,
|
|
4802
|
+
responseSchema: DataFilteringProfileResponseSchema,
|
|
4803
|
+
auth: this.auth,
|
|
4804
|
+
numRetries: this.numRetries
|
|
4805
|
+
});
|
|
4806
|
+
}
|
|
4807
|
+
};
|
|
4808
|
+
|
|
4809
|
+
// src/management/dlp/data-patterns.ts
|
|
4810
|
+
var DataPatternsClient = class {
|
|
4811
|
+
baseUrl;
|
|
4812
|
+
auth;
|
|
4813
|
+
numRetries;
|
|
4814
|
+
constructor(opts) {
|
|
4815
|
+
this.baseUrl = opts.baseUrl;
|
|
4816
|
+
this.auth = opts.auth;
|
|
4817
|
+
this.numRetries = opts.numRetries;
|
|
4818
|
+
}
|
|
4819
|
+
/**
|
|
4820
|
+
* List data patterns. Returns the Spring `Page<>` envelope verbatim so callers can inspect
|
|
4821
|
+
* `totalElements`, `pageable`, etc.
|
|
4822
|
+
*/
|
|
4823
|
+
async list(params = {}) {
|
|
4824
|
+
const queryParams = {};
|
|
4825
|
+
if (params.page !== void 0) queryParams.page = String(params.page);
|
|
4826
|
+
if (params.size !== void 0) queryParams.size = String(params.size);
|
|
4827
|
+
if (params.sort !== void 0) queryParams.sort = params.sort;
|
|
4828
|
+
return request({
|
|
4829
|
+
method: "GET",
|
|
4830
|
+
baseUrl: this.baseUrl,
|
|
4831
|
+
path: DLP_DATA_PATTERNS_PATH,
|
|
4832
|
+
params: queryParams,
|
|
4833
|
+
responseSchema: PageDataPatternResponseSchema,
|
|
4834
|
+
auth: this.auth,
|
|
4835
|
+
numRetries: this.numRetries
|
|
4836
|
+
});
|
|
4837
|
+
}
|
|
4838
|
+
/** Create a new custom data pattern. */
|
|
4839
|
+
async create(body) {
|
|
4840
|
+
return request({
|
|
4841
|
+
method: "POST",
|
|
4842
|
+
baseUrl: this.baseUrl,
|
|
4843
|
+
path: DLP_DATA_PATTERNS_PATH,
|
|
4844
|
+
body,
|
|
4845
|
+
responseSchema: DataPatternResponseSchema,
|
|
4846
|
+
auth: this.auth,
|
|
4847
|
+
numRetries: this.numRetries
|
|
4848
|
+
});
|
|
4849
|
+
}
|
|
4850
|
+
/** Get a single data pattern by resource ID. */
|
|
4851
|
+
async get(resourceId) {
|
|
4852
|
+
return request({
|
|
4853
|
+
method: "GET",
|
|
4854
|
+
baseUrl: this.baseUrl,
|
|
4855
|
+
path: `${DLP_DATA_PATTERNS_PATH}/${encodeURIComponent(resourceId)}`,
|
|
4856
|
+
responseSchema: DataPatternResponseSchema,
|
|
4857
|
+
auth: this.auth,
|
|
4858
|
+
numRetries: this.numRetries
|
|
4859
|
+
});
|
|
4860
|
+
}
|
|
4861
|
+
/**
|
|
4862
|
+
* Full-replace (PUT) the pattern at `resourceId`. Returns the updated resource as the API
|
|
4863
|
+
* echoes it back.
|
|
4864
|
+
*/
|
|
4865
|
+
async replace(resourceId, body) {
|
|
4866
|
+
return request({
|
|
4867
|
+
method: "PUT",
|
|
4868
|
+
baseUrl: this.baseUrl,
|
|
4869
|
+
path: `${DLP_DATA_PATTERNS_PATH}/${encodeURIComponent(resourceId)}`,
|
|
4870
|
+
body,
|
|
4871
|
+
responseSchema: DataPatternResponseSchema,
|
|
4872
|
+
auth: this.auth,
|
|
4873
|
+
numRetries: this.numRetries
|
|
4874
|
+
});
|
|
4875
|
+
}
|
|
4876
|
+
/**
|
|
4877
|
+
* Partial update via JSON Merge Patch (RFC 7396). Sent with
|
|
4878
|
+
* `Content-Type: application/merge-patch+json`. Fields set to `null` clear server-side;
|
|
4879
|
+
* omitted fields are left unchanged.
|
|
4880
|
+
*/
|
|
4881
|
+
async patch(resourceId, body) {
|
|
4882
|
+
return request({
|
|
4883
|
+
method: "PATCH",
|
|
4884
|
+
baseUrl: this.baseUrl,
|
|
4885
|
+
path: `${DLP_DATA_PATTERNS_PATH}/${encodeURIComponent(resourceId)}`,
|
|
4886
|
+
body,
|
|
4887
|
+
contentType: "application/merge-patch+json",
|
|
4888
|
+
responseSchema: DataPatternResponseSchema,
|
|
4889
|
+
auth: this.auth,
|
|
4890
|
+
numRetries: this.numRetries
|
|
4891
|
+
});
|
|
4892
|
+
}
|
|
4893
|
+
/** Soft-delete (archive) a data pattern. Resolves on the 204 No Content response. */
|
|
4894
|
+
async delete(resourceId) {
|
|
4895
|
+
await request({
|
|
4896
|
+
method: "DELETE",
|
|
4897
|
+
baseUrl: this.baseUrl,
|
|
4898
|
+
path: `${DLP_DATA_PATTERNS_PATH}/${encodeURIComponent(resourceId)}`,
|
|
4899
|
+
auth: this.auth,
|
|
4900
|
+
numRetries: this.numRetries
|
|
4901
|
+
});
|
|
4902
|
+
}
|
|
4903
|
+
};
|
|
4904
|
+
|
|
4905
|
+
// src/management/dlp/data-profiles.ts
|
|
4906
|
+
var DataProfilesClient = class {
|
|
4907
|
+
baseUrl;
|
|
4908
|
+
auth;
|
|
4909
|
+
numRetries;
|
|
4910
|
+
constructor(opts) {
|
|
4911
|
+
this.baseUrl = opts.baseUrl;
|
|
4912
|
+
this.auth = opts.auth;
|
|
4913
|
+
this.numRetries = opts.numRetries;
|
|
4914
|
+
}
|
|
4915
|
+
/**
|
|
4916
|
+
* List data profiles. Returns the Spring `Page<>` envelope verbatim so callers can inspect
|
|
4917
|
+
* `totalElements`, `pageable`, etc.
|
|
4918
|
+
*/
|
|
4919
|
+
async list(params = {}) {
|
|
4920
|
+
const queryParams = {};
|
|
4921
|
+
if (params.page !== void 0) queryParams.page = String(params.page);
|
|
4922
|
+
if (params.size !== void 0) queryParams.size = String(params.size);
|
|
4923
|
+
if (params.sort !== void 0) queryParams.sort = params.sort;
|
|
4924
|
+
return request({
|
|
4925
|
+
method: "GET",
|
|
4926
|
+
baseUrl: this.baseUrl,
|
|
4927
|
+
path: DLP_DATA_PROFILES_PATH,
|
|
4928
|
+
params: queryParams,
|
|
4929
|
+
responseSchema: PageDataProfileResponseSchema,
|
|
4930
|
+
auth: this.auth,
|
|
4931
|
+
numRetries: this.numRetries
|
|
4932
|
+
});
|
|
4933
|
+
}
|
|
4934
|
+
/** Create a new data profile. */
|
|
4935
|
+
async create(body) {
|
|
4936
|
+
return request({
|
|
4937
|
+
method: "POST",
|
|
4938
|
+
baseUrl: this.baseUrl,
|
|
4939
|
+
path: DLP_DATA_PROFILES_PATH,
|
|
4940
|
+
body,
|
|
4941
|
+
responseSchema: DataProfileResponseSchema,
|
|
4942
|
+
auth: this.auth,
|
|
4943
|
+
numRetries: this.numRetries
|
|
4944
|
+
});
|
|
4945
|
+
}
|
|
4946
|
+
/** Get a single data profile by resource ID. */
|
|
4947
|
+
async get(resourceId) {
|
|
4948
|
+
return request({
|
|
4949
|
+
method: "GET",
|
|
4950
|
+
baseUrl: this.baseUrl,
|
|
4951
|
+
path: `${DLP_DATA_PROFILES_PATH}/${encodeURIComponent(resourceId)}`,
|
|
4952
|
+
responseSchema: DataProfileResponseSchema,
|
|
4953
|
+
auth: this.auth,
|
|
4954
|
+
numRetries: this.numRetries
|
|
4955
|
+
});
|
|
4956
|
+
}
|
|
4957
|
+
/**
|
|
4958
|
+
* Full-replace (PUT) the profile at `resourceId`. Returns the updated resource as the API
|
|
4959
|
+
* echoes it back.
|
|
4960
|
+
*/
|
|
4961
|
+
async replace(resourceId, body) {
|
|
4962
|
+
return request({
|
|
4963
|
+
method: "PUT",
|
|
4964
|
+
baseUrl: this.baseUrl,
|
|
4965
|
+
path: `${DLP_DATA_PROFILES_PATH}/${encodeURIComponent(resourceId)}`,
|
|
4966
|
+
body,
|
|
4967
|
+
responseSchema: DataProfileResponseSchema,
|
|
4968
|
+
auth: this.auth,
|
|
4969
|
+
numRetries: this.numRetries
|
|
4970
|
+
});
|
|
4971
|
+
}
|
|
4972
|
+
/**
|
|
4973
|
+
* Partial update via JSON Merge Patch (RFC 7396). Sent with
|
|
4974
|
+
* `Content-Type: application/merge-patch+json`. Fields set to `null` clear server-side;
|
|
4975
|
+
* omitted fields are left unchanged.
|
|
4976
|
+
*/
|
|
4977
|
+
async patch(resourceId, body) {
|
|
4978
|
+
return request({
|
|
4979
|
+
method: "PATCH",
|
|
4980
|
+
baseUrl: this.baseUrl,
|
|
4981
|
+
path: `${DLP_DATA_PROFILES_PATH}/${encodeURIComponent(resourceId)}`,
|
|
4982
|
+
body,
|
|
4983
|
+
contentType: "application/merge-patch+json",
|
|
4984
|
+
responseSchema: DataProfileResponseSchema,
|
|
4985
|
+
auth: this.auth,
|
|
4986
|
+
numRetries: this.numRetries
|
|
4987
|
+
});
|
|
4988
|
+
}
|
|
4989
|
+
};
|
|
4990
|
+
|
|
4991
|
+
// src/management/dlp/dictionaries.ts
|
|
4992
|
+
function toBlob(file) {
|
|
4993
|
+
if (file instanceof Blob) return file;
|
|
4994
|
+
if (typeof file === "string") return new Blob([file], { type: "text/plain" });
|
|
4995
|
+
if (file instanceof Uint8Array) return new Blob([file]);
|
|
4996
|
+
return new Blob([file]);
|
|
4997
|
+
}
|
|
4998
|
+
function buildFormData(metadata, file) {
|
|
4999
|
+
const fd = new FormData();
|
|
5000
|
+
fd.append(
|
|
5001
|
+
"json",
|
|
5002
|
+
new Blob([JSON.stringify(metadata)], { type: "application/json" }),
|
|
5003
|
+
"metadata.json"
|
|
5004
|
+
);
|
|
5005
|
+
fd.append("file", toBlob(file), metadata.original_file_name);
|
|
5006
|
+
return fd;
|
|
5007
|
+
}
|
|
5008
|
+
var DictionariesClient = class {
|
|
5009
|
+
baseUrl;
|
|
5010
|
+
auth;
|
|
5011
|
+
numRetries;
|
|
5012
|
+
constructor(opts) {
|
|
5013
|
+
this.baseUrl = opts.baseUrl;
|
|
5014
|
+
this.auth = opts.auth;
|
|
5015
|
+
this.numRetries = opts.numRetries;
|
|
5016
|
+
}
|
|
5017
|
+
/** List dictionaries. Returns the Spring `Page<>` envelope verbatim. */
|
|
5018
|
+
async list(params = {}) {
|
|
5019
|
+
const queryParams = {};
|
|
5020
|
+
if (params.page !== void 0) queryParams.page = String(params.page);
|
|
5021
|
+
if (params.size !== void 0) queryParams.size = String(params.size);
|
|
5022
|
+
if (params.sort !== void 0) queryParams.sort = params.sort;
|
|
5023
|
+
if (params.keywords !== void 0) queryParams.keywords = String(params.keywords);
|
|
5024
|
+
return request({
|
|
5025
|
+
method: "GET",
|
|
5026
|
+
baseUrl: this.baseUrl,
|
|
5027
|
+
path: DLP_DICTIONARIES_PATH,
|
|
5028
|
+
params: queryParams,
|
|
5029
|
+
responseSchema: PageDictionaryResponseSchema,
|
|
5030
|
+
auth: this.auth,
|
|
5031
|
+
numRetries: this.numRetries
|
|
5032
|
+
});
|
|
5033
|
+
}
|
|
5034
|
+
/**
|
|
5035
|
+
* Create a dictionary by uploading a keyword file. Sends a multipart body — the SDK does
|
|
5036
|
+
* not set Content-Type so the runtime can write the correct boundary.
|
|
5037
|
+
*/
|
|
5038
|
+
async create({
|
|
5039
|
+
metadata,
|
|
5040
|
+
file,
|
|
5041
|
+
includeKeywords
|
|
5042
|
+
}) {
|
|
5043
|
+
const queryParams = {};
|
|
5044
|
+
if (includeKeywords !== void 0) queryParams.keywords = String(includeKeywords);
|
|
5045
|
+
return request({
|
|
5046
|
+
method: "POST",
|
|
5047
|
+
baseUrl: this.baseUrl,
|
|
5048
|
+
path: DLP_DICTIONARIES_PATH,
|
|
5049
|
+
params: queryParams,
|
|
5050
|
+
formData: buildFormData(metadata, file),
|
|
5051
|
+
responseSchema: DictionaryResponseSchema,
|
|
5052
|
+
auth: this.auth,
|
|
5053
|
+
numRetries: this.numRetries
|
|
5054
|
+
});
|
|
5055
|
+
}
|
|
5056
|
+
/** Get a single dictionary by resource ID, optionally including its keyword list. */
|
|
5057
|
+
async get(resourceId, params = {}) {
|
|
5058
|
+
const queryParams = {};
|
|
5059
|
+
if (params.includeKeywords !== void 0) queryParams.keywords = String(params.includeKeywords);
|
|
5060
|
+
return request({
|
|
5061
|
+
method: "GET",
|
|
5062
|
+
baseUrl: this.baseUrl,
|
|
5063
|
+
path: `${DLP_DICTIONARIES_PATH}/${encodeURIComponent(resourceId)}`,
|
|
5064
|
+
params: queryParams,
|
|
5065
|
+
responseSchema: DictionaryResponseSchema,
|
|
5066
|
+
auth: this.auth,
|
|
5067
|
+
numRetries: this.numRetries
|
|
5068
|
+
});
|
|
5069
|
+
}
|
|
5070
|
+
/**
|
|
5071
|
+
* Full-replace the dictionary at `resourceId` via multipart upload.
|
|
5072
|
+
*
|
|
5073
|
+
* The API may respond with either 200 + body or 204 + no body — both are normal. Returns
|
|
5074
|
+
* the parsed body on 200 and `undefined` on 204.
|
|
5075
|
+
*/
|
|
5076
|
+
async replace(resourceId, { metadata, file, includeKeywords }) {
|
|
5077
|
+
const queryParams = {};
|
|
5078
|
+
if (includeKeywords !== void 0) queryParams.keywords = String(includeKeywords);
|
|
5079
|
+
return request({
|
|
5080
|
+
method: "PUT",
|
|
5081
|
+
baseUrl: this.baseUrl,
|
|
5082
|
+
path: `${DLP_DICTIONARIES_PATH}/${encodeURIComponent(resourceId)}`,
|
|
5083
|
+
params: queryParams,
|
|
5084
|
+
formData: buildFormData(metadata, file),
|
|
5085
|
+
responseSchema: DictionaryResponseSchema.optional(),
|
|
5086
|
+
allowEmptyBody: true,
|
|
5087
|
+
auth: this.auth,
|
|
5088
|
+
numRetries: this.numRetries
|
|
5089
|
+
});
|
|
5090
|
+
}
|
|
5091
|
+
/**
|
|
5092
|
+
* Partial update via JSON Merge Patch (RFC 7396). Sent with
|
|
5093
|
+
* `Content-Type: application/merge-patch+json`.
|
|
5094
|
+
*/
|
|
5095
|
+
async patch(resourceId, body) {
|
|
5096
|
+
return request({
|
|
5097
|
+
method: "PATCH",
|
|
5098
|
+
baseUrl: this.baseUrl,
|
|
5099
|
+
path: `${DLP_DICTIONARIES_PATH}/${encodeURIComponent(resourceId)}`,
|
|
5100
|
+
body,
|
|
5101
|
+
contentType: "application/merge-patch+json",
|
|
5102
|
+
responseSchema: DictionaryResponseSchema,
|
|
5103
|
+
auth: this.auth,
|
|
5104
|
+
numRetries: this.numRetries
|
|
5105
|
+
});
|
|
5106
|
+
}
|
|
5107
|
+
/** Delete a dictionary. Resolves to `undefined` on the 204 No Content response. */
|
|
5108
|
+
async delete(resourceId) {
|
|
5109
|
+
await request({
|
|
5110
|
+
method: "DELETE",
|
|
5111
|
+
baseUrl: this.baseUrl,
|
|
5112
|
+
path: `${DLP_DICTIONARIES_PATH}/${encodeURIComponent(resourceId)}`,
|
|
5113
|
+
auth: this.auth,
|
|
5114
|
+
numRetries: this.numRetries
|
|
5115
|
+
});
|
|
5116
|
+
}
|
|
5117
|
+
};
|
|
5118
|
+
|
|
5119
|
+
// src/management/dlp/index.ts
|
|
5120
|
+
var DlpNamespace = class {
|
|
5121
|
+
baseUrl;
|
|
5122
|
+
/** @internal */
|
|
5123
|
+
auth;
|
|
5124
|
+
/** @internal */
|
|
5125
|
+
numRetries;
|
|
5126
|
+
dataFilteringProfiles;
|
|
5127
|
+
dataPatterns;
|
|
5128
|
+
dataProfiles;
|
|
5129
|
+
dictionaries;
|
|
5130
|
+
constructor(opts) {
|
|
5131
|
+
this.baseUrl = opts.baseUrl;
|
|
5132
|
+
this.auth = opts.auth;
|
|
5133
|
+
this.numRetries = opts.numRetries;
|
|
5134
|
+
this.dataFilteringProfiles = new DataFilteringProfilesClient({
|
|
5135
|
+
baseUrl: opts.baseUrl,
|
|
5136
|
+
auth: opts.auth,
|
|
5137
|
+
numRetries: opts.numRetries
|
|
5138
|
+
});
|
|
5139
|
+
this.dataPatterns = new DataPatternsClient({
|
|
5140
|
+
baseUrl: opts.baseUrl,
|
|
5141
|
+
auth: opts.auth,
|
|
5142
|
+
numRetries: opts.numRetries
|
|
5143
|
+
});
|
|
5144
|
+
this.dataProfiles = new DataProfilesClient({
|
|
5145
|
+
baseUrl: opts.baseUrl,
|
|
5146
|
+
auth: opts.auth,
|
|
5147
|
+
numRetries: opts.numRetries
|
|
5148
|
+
});
|
|
5149
|
+
this.dictionaries = new DictionariesClient({
|
|
5150
|
+
baseUrl: opts.baseUrl,
|
|
5151
|
+
auth: opts.auth,
|
|
5152
|
+
numRetries: opts.numRetries
|
|
5153
|
+
});
|
|
5154
|
+
}
|
|
5155
|
+
};
|
|
5156
|
+
|
|
4218
5157
|
// src/management/client.ts
|
|
4219
5158
|
var ManagementClient = class {
|
|
4220
5159
|
profiles;
|
|
@@ -4225,8 +5164,10 @@ var ManagementClient = class {
|
|
|
4225
5164
|
deploymentProfiles;
|
|
4226
5165
|
scanLogs;
|
|
4227
5166
|
oauth;
|
|
5167
|
+
dlp;
|
|
4228
5168
|
constructor(opts = {}) {
|
|
4229
5169
|
const apiEndpoint = opts.apiEndpoint ?? process.env[MGMT_ENDPOINT] ?? DEFAULT_MGMT_ENDPOINT;
|
|
5170
|
+
const dlpEndpoint = opts.dlpEndpoint ?? DEFAULT_DLP_ENDPOINT;
|
|
4230
5171
|
const { baseUrl, oauthClient, numRetries, tsgId } = resolveOAuthConfig({
|
|
4231
5172
|
clientId: opts.clientId,
|
|
4232
5173
|
clientSecret: opts.clientSecret,
|
|
@@ -4245,6 +5186,7 @@ var ManagementClient = class {
|
|
|
4245
5186
|
this.deploymentProfiles = new DeploymentProfilesClient({ baseUrl, auth, numRetries });
|
|
4246
5187
|
this.scanLogs = new ScanLogsClient({ baseUrl, auth, numRetries });
|
|
4247
5188
|
this.oauth = new OAuthManagementClient({ baseUrl, auth, numRetries });
|
|
5189
|
+
this.dlp = new DlpNamespace({ baseUrl: dlpEndpoint, auth, numRetries });
|
|
4248
5190
|
}
|
|
4249
5191
|
};
|
|
4250
5192
|
|
|
@@ -4788,7 +5730,7 @@ var ModelSecurityClient = class {
|
|
|
4788
5730
|
};
|
|
4789
5731
|
|
|
4790
5732
|
// src/red-team/scans-client.ts
|
|
4791
|
-
var
|
|
5733
|
+
var import_zod35 = require("zod");
|
|
4792
5734
|
var RedTeamScansClient = class {
|
|
4793
5735
|
baseUrl;
|
|
4794
5736
|
auth;
|
|
@@ -4875,7 +5817,7 @@ var RedTeamScansClient = class {
|
|
|
4875
5817
|
method: "GET",
|
|
4876
5818
|
baseUrl: this.baseUrl,
|
|
4877
5819
|
path: RED_TEAM_CATEGORIES_PATH,
|
|
4878
|
-
responseSchema:
|
|
5820
|
+
responseSchema: import_zod35.z.array(CategoryModelSchema),
|
|
4879
5821
|
auth: this.auth,
|
|
4880
5822
|
numRetries: this.numRetries
|
|
4881
5823
|
});
|
|
@@ -4883,7 +5825,7 @@ var RedTeamScansClient = class {
|
|
|
4883
5825
|
};
|
|
4884
5826
|
|
|
4885
5827
|
// src/red-team/reports-client.ts
|
|
4886
|
-
var
|
|
5828
|
+
var import_zod36 = require("zod");
|
|
4887
5829
|
var RedTeamReportsClient = class {
|
|
4888
5830
|
baseUrl;
|
|
4889
5831
|
auth;
|
|
@@ -5130,7 +6072,7 @@ var RedTeamReportsClient = class {
|
|
|
5130
6072
|
baseUrl: this.baseUrl,
|
|
5131
6073
|
path: `${RED_TEAM_REPORT_PATH}/${jobId}/download`,
|
|
5132
6074
|
params: { file_format: format },
|
|
5133
|
-
responseSchema:
|
|
6075
|
+
responseSchema: import_zod36.z.unknown(),
|
|
5134
6076
|
auth: this.auth,
|
|
5135
6077
|
numRetries: this.numRetries
|
|
5136
6078
|
});
|
|
@@ -5146,7 +6088,7 @@ var RedTeamReportsClient = class {
|
|
|
5146
6088
|
method: "POST",
|
|
5147
6089
|
baseUrl: this.baseUrl,
|
|
5148
6090
|
path: `${RED_TEAM_REPORT_PATH}/${jobId}/generate-partial-report`,
|
|
5149
|
-
responseSchema:
|
|
6091
|
+
responseSchema: import_zod36.z.unknown(),
|
|
5150
6092
|
auth: this.auth,
|
|
5151
6093
|
numRetries: this.numRetries
|
|
5152
6094
|
});
|
|
@@ -5154,7 +6096,7 @@ var RedTeamReportsClient = class {
|
|
|
5154
6096
|
};
|
|
5155
6097
|
|
|
5156
6098
|
// src/red-team/custom-attack-reports-client.ts
|
|
5157
|
-
var
|
|
6099
|
+
var import_zod37 = require("zod");
|
|
5158
6100
|
var RedTeamCustomAttackReportsClient = class {
|
|
5159
6101
|
baseUrl;
|
|
5160
6102
|
auth;
|
|
@@ -5213,7 +6155,7 @@ var RedTeamCustomAttackReportsClient = class {
|
|
|
5213
6155
|
baseUrl: this.baseUrl,
|
|
5214
6156
|
path: `${RED_TEAM_CUSTOM_ATTACKS_REPORT_PATH}/report/${jobId}/prompt-set/${promptSetId}/prompts`,
|
|
5215
6157
|
params,
|
|
5216
|
-
responseSchema:
|
|
6158
|
+
responseSchema: import_zod37.z.array(PromptDetailResponseSchema),
|
|
5217
6159
|
auth: this.auth,
|
|
5218
6160
|
numRetries: this.numRetries
|
|
5219
6161
|
});
|
|
@@ -5271,7 +6213,7 @@ var RedTeamCustomAttackReportsClient = class {
|
|
|
5271
6213
|
method: "GET",
|
|
5272
6214
|
baseUrl: this.baseUrl,
|
|
5273
6215
|
path: `${RED_TEAM_CUSTOM_ATTACKS_REPORT_PATH}/job/${jobId}/attack/${attackId}/list-outputs`,
|
|
5274
|
-
responseSchema:
|
|
6216
|
+
responseSchema: import_zod37.z.array(CustomAttackOutputSchema),
|
|
5275
6217
|
auth: this.auth,
|
|
5276
6218
|
numRetries: this.numRetries
|
|
5277
6219
|
});
|
|
@@ -5287,7 +6229,7 @@ var RedTeamCustomAttackReportsClient = class {
|
|
|
5287
6229
|
method: "GET",
|
|
5288
6230
|
baseUrl: this.baseUrl,
|
|
5289
6231
|
path: `${RED_TEAM_CUSTOM_ATTACKS_REPORT_PATH}/job/${jobId}/property-stats`,
|
|
5290
|
-
responseSchema:
|
|
6232
|
+
responseSchema: import_zod37.z.array(PropertyStatisticSchema),
|
|
5291
6233
|
auth: this.auth,
|
|
5292
6234
|
numRetries: this.numRetries
|
|
5293
6235
|
});
|
|
@@ -5295,7 +6237,7 @@ var RedTeamCustomAttackReportsClient = class {
|
|
|
5295
6237
|
};
|
|
5296
6238
|
|
|
5297
6239
|
// src/red-team/targets-client.ts
|
|
5298
|
-
var
|
|
6240
|
+
var import_zod38 = require("zod");
|
|
5299
6241
|
var RedTeamTargetsClient = class {
|
|
5300
6242
|
baseUrl;
|
|
5301
6243
|
auth;
|
|
@@ -5473,7 +6415,7 @@ var RedTeamTargetsClient = class {
|
|
|
5473
6415
|
method: "GET",
|
|
5474
6416
|
baseUrl: this.baseUrl,
|
|
5475
6417
|
path: `${RED_TEAM_TEMPLATE_PATH}/target-metadata`,
|
|
5476
|
-
responseSchema:
|
|
6418
|
+
responseSchema: import_zod38.z.record(import_zod38.z.unknown()),
|
|
5477
6419
|
auth: this.auth,
|
|
5478
6420
|
numRetries: this.numRetries
|
|
5479
6421
|
});
|
|
@@ -5495,7 +6437,6 @@ var RedTeamTargetsClient = class {
|
|
|
5495
6437
|
};
|
|
5496
6438
|
|
|
5497
6439
|
// src/red-team/custom-attacks-client.ts
|
|
5498
|
-
var import_zod33 = require("zod");
|
|
5499
6440
|
var RedTeamCustomAttacksClient = class {
|
|
5500
6441
|
baseUrl;
|
|
5501
6442
|
auth;
|
|
@@ -5648,19 +6589,36 @@ var RedTeamCustomAttacksClient = class {
|
|
|
5648
6589
|
}
|
|
5649
6590
|
/**
|
|
5650
6591
|
* Download CSV template for a prompt set.
|
|
6592
|
+
*
|
|
6593
|
+
* Bypasses `request()` because the response is `text/csv`, not JSON, and
|
|
6594
|
+
* `request()` unconditionally `JSON.parse()`s 2xx bodies.
|
|
6595
|
+
*
|
|
5651
6596
|
* @param uuid - The prompt set UUID.
|
|
5652
|
-
* @returns The CSV template content
|
|
6597
|
+
* @returns The CSV template content as a raw string.
|
|
5653
6598
|
*/
|
|
5654
6599
|
async downloadTemplate(uuid) {
|
|
5655
6600
|
assertUuid(uuid, "prompt set uuid");
|
|
5656
|
-
|
|
6601
|
+
const url = new URL(
|
|
6602
|
+
`${this.baseUrl.replace(/\/+$/, "")}${RED_TEAM_CUSTOM_ATTACK_PATH}/download-template/${uuid}`
|
|
6603
|
+
);
|
|
6604
|
+
const stub = {
|
|
5657
6605
|
method: "GET",
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5662
|
-
|
|
6606
|
+
url,
|
|
6607
|
+
headers: { "User-Agent": USER_AGENT }
|
|
6608
|
+
};
|
|
6609
|
+
const prepared = await this.auth.prepare(stub);
|
|
6610
|
+
const response = await fetch(prepared.url.toString(), {
|
|
6611
|
+
method: "GET",
|
|
6612
|
+
headers: prepared.headers
|
|
5663
6613
|
});
|
|
6614
|
+
const text = await response.text();
|
|
6615
|
+
if (!response.ok) {
|
|
6616
|
+
throw new AISecSDKException(
|
|
6617
|
+
`Download template failed (${response.status}): ${text}`,
|
|
6618
|
+
"AISEC_SERVER_SIDE_ERROR" /* SERVER_SIDE_ERROR */
|
|
6619
|
+
);
|
|
6620
|
+
}
|
|
6621
|
+
return text;
|
|
5664
6622
|
}
|
|
5665
6623
|
/**
|
|
5666
6624
|
* Upload a CSV file of custom prompts for a prompt set.
|
|
@@ -6255,6 +7213,7 @@ var RedTeamClient = class {
|
|
|
6255
7213
|
AI_SEC_API_TOKEN,
|
|
6256
7214
|
ASYNC_SCAN_PATH,
|
|
6257
7215
|
Action,
|
|
7216
|
+
AdvancedDataProfileRequestSchema,
|
|
6258
7217
|
AgentEntrySchema,
|
|
6259
7218
|
AgentMetaSchema,
|
|
6260
7219
|
AgentProtectionItemSchema,
|
|
@@ -6269,6 +7228,7 @@ var RedTeamClient = class {
|
|
|
6269
7228
|
ApiKeyRegenerateRequestSchema,
|
|
6270
7229
|
ApiKeySchema,
|
|
6271
7230
|
ApiKeysClient,
|
|
7231
|
+
AppExclusionSchema,
|
|
6272
7232
|
AsyncScanObjectSchema,
|
|
6273
7233
|
AsyncScanResponseSchema,
|
|
6274
7234
|
AttackDetailResponseSchema,
|
|
@@ -6279,6 +7239,7 @@ var RedTeamClient = class {
|
|
|
6279
7239
|
AttackOutputSchema,
|
|
6280
7240
|
AttackStatus,
|
|
6281
7241
|
AttackType,
|
|
7242
|
+
AuditResponseSchema,
|
|
6282
7243
|
AuthConfigSchema,
|
|
6283
7244
|
AuthType,
|
|
6284
7245
|
BEARER,
|
|
@@ -6294,6 +7255,7 @@ var RedTeamClient = class {
|
|
|
6294
7255
|
ClientIdAndCustomerAppSchema,
|
|
6295
7256
|
CmdEntrySchema,
|
|
6296
7257
|
CmdInjectReportSchema,
|
|
7258
|
+
ComparisonOperatorTypeSchema,
|
|
6297
7259
|
ComplianceReportSchema,
|
|
6298
7260
|
ComplianceSubCategory,
|
|
6299
7261
|
ComplianceTechniqueSchema,
|
|
@@ -6329,6 +7291,7 @@ var RedTeamClient = class {
|
|
|
6329
7291
|
CustomerAppSchema,
|
|
6330
7292
|
CustomerAppWithKeysSchema,
|
|
6331
7293
|
CustomerAppsClient,
|
|
7294
|
+
DEFAULT_DLP_ENDPOINT,
|
|
6332
7295
|
DEFAULT_ENDPOINT,
|
|
6333
7296
|
DEFAULT_MGMT_ENDPOINT,
|
|
6334
7297
|
DEFAULT_MODEL_SEC_DATA_ENDPOINT,
|
|
@@ -6336,16 +7299,44 @@ var RedTeamClient = class {
|
|
|
6336
7299
|
DEFAULT_RED_TEAM_DATA_ENDPOINT,
|
|
6337
7300
|
DEFAULT_RED_TEAM_MGMT_ENDPOINT,
|
|
6338
7301
|
DEFAULT_TOKEN_ENDPOINT,
|
|
7302
|
+
DLP_DATA_FILTERING_PROFILES_PATH,
|
|
7303
|
+
DLP_DATA_PATTERNS_PATH,
|
|
7304
|
+
DLP_DATA_PROFILES_PATH,
|
|
7305
|
+
DLP_DICTIONARIES_PATH,
|
|
6339
7306
|
DSDetailResultSchema,
|
|
6340
7307
|
DSResultMetadataSchema,
|
|
6341
7308
|
DashboardOverviewResponseSchema,
|
|
7309
|
+
DataFilteringDetailsSchema,
|
|
7310
|
+
DataFilteringProfileRequestSchema,
|
|
7311
|
+
DataFilteringProfileResponseSchema,
|
|
7312
|
+
DataFilteringProfilesClient,
|
|
7313
|
+
DataFilteringRuleDTOSchema,
|
|
6342
7314
|
DataLeakDetectionMemberSchema,
|
|
7315
|
+
DataPatternConfidenceLevelSchema,
|
|
7316
|
+
DataPatternDetectionConfigSchema,
|
|
7317
|
+
DataPatternLicenseTypeSchema,
|
|
7318
|
+
DataPatternMatchingRulesSchema,
|
|
7319
|
+
DataPatternPatchRequestSchema,
|
|
7320
|
+
DataPatternRequestSchema,
|
|
7321
|
+
DataPatternResponseSchema,
|
|
7322
|
+
DataPatternStatusSchema,
|
|
7323
|
+
DataPatternTagsSchema,
|
|
7324
|
+
DataPatternTechniqueSchema,
|
|
7325
|
+
DataPatternTypeSchema,
|
|
7326
|
+
DataPatternsClient,
|
|
7327
|
+
DataProfilePatchRequestSchema,
|
|
7328
|
+
DataProfileResponseSchema,
|
|
7329
|
+
DataProfileStatusSchema,
|
|
7330
|
+
DataProfileSubtypeSchema,
|
|
7331
|
+
DataProfileTypeSchema,
|
|
7332
|
+
DataProfilesClient,
|
|
6343
7333
|
DataProtectionSchema,
|
|
6344
7334
|
DatabaseSecurityItemSchema,
|
|
6345
7335
|
DatabricksConnectionParamsSchema,
|
|
6346
7336
|
DateRangeFilter,
|
|
6347
7337
|
DbsEntrySchema,
|
|
6348
7338
|
DbsReportSchema,
|
|
7339
|
+
DefaultTreeDetectionRuleSchema,
|
|
6349
7340
|
DeleteProfileConflictSchema,
|
|
6350
7341
|
DeleteProfileResponseSchema,
|
|
6351
7342
|
DeleteTopicConflictSchema,
|
|
@@ -6355,6 +7346,9 @@ var RedTeamClient = class {
|
|
|
6355
7346
|
DeploymentProfileRequestSchema,
|
|
6356
7347
|
DeploymentProfilesClient,
|
|
6357
7348
|
DeploymentProfilesResponseSchema,
|
|
7349
|
+
DestinationAttributesSchema,
|
|
7350
|
+
DetectionRuleItemSchema,
|
|
7351
|
+
DetectionRuleSchema,
|
|
6358
7352
|
DetectionServiceName,
|
|
6359
7353
|
DetectionServiceResultSchema,
|
|
6360
7354
|
DeviceInstanceSchema,
|
|
@@ -6363,8 +7357,20 @@ var RedTeamClient = class {
|
|
|
6363
7357
|
DeviceResponseSchema,
|
|
6364
7358
|
DeviceSchema,
|
|
6365
7359
|
DeviceStatusSchema,
|
|
7360
|
+
DictionariesClient,
|
|
7361
|
+
DictionaryCategorySchema,
|
|
7362
|
+
DictionaryClassificationSchema,
|
|
7363
|
+
DictionaryDetectionSubTechniqueSchema,
|
|
7364
|
+
DictionaryDetectionTechniqueSchema,
|
|
7365
|
+
DictionaryMetaDataDTOSchema,
|
|
7366
|
+
DictionaryPatchRequestSchema,
|
|
7367
|
+
DictionaryRequestSchema,
|
|
7368
|
+
DictionaryResponseSchema,
|
|
7369
|
+
DictionaryTagsSchema,
|
|
7370
|
+
DictionaryTypeSchema,
|
|
6366
7371
|
DlpDataProfilePolicySchema,
|
|
6367
7372
|
DlpDataProfileSchema,
|
|
7373
|
+
DlpNamespace,
|
|
6368
7374
|
DlpPatternDetectionSchema,
|
|
6369
7375
|
DlpProfileListResponseSchema,
|
|
6370
7376
|
DlpProfilesClient,
|
|
@@ -6385,6 +7391,10 @@ var RedTeamClient = class {
|
|
|
6385
7391
|
EulaResponseSchema,
|
|
6386
7392
|
EvalOutcome,
|
|
6387
7393
|
EvalSummarySchema,
|
|
7394
|
+
ExceptionRuleDTOSchema,
|
|
7395
|
+
ExclusionsSchema,
|
|
7396
|
+
ExpressionOperatorTypeSchema,
|
|
7397
|
+
ExpressionTreeNodeSchema,
|
|
6388
7398
|
FileFormat,
|
|
6389
7399
|
FileListSchema,
|
|
6390
7400
|
FileResponseSchema,
|
|
@@ -6475,6 +7485,7 @@ var RedTeamClient = class {
|
|
|
6475
7485
|
MaskedDataSchema,
|
|
6476
7486
|
McEntrySchema,
|
|
6477
7487
|
McReportSchema,
|
|
7488
|
+
MetadataCriterionSchema,
|
|
6478
7489
|
MetadataSchema,
|
|
6479
7490
|
ModelConfigurationSchema,
|
|
6480
7491
|
ModelProtectionItemSchema,
|
|
@@ -6492,6 +7503,8 @@ var RedTeamClient = class {
|
|
|
6492
7503
|
ModelSecurityRuleResponseSchema,
|
|
6493
7504
|
ModelSecurityRulesClient,
|
|
6494
7505
|
ModelSecurityScansClient,
|
|
7506
|
+
MultiProfileDataNodeSchema,
|
|
7507
|
+
MultiProfileDetectionRuleSchema,
|
|
6495
7508
|
MultiTurnStatefulConfigSchema,
|
|
6496
7509
|
MultiTurnStatelessConfigSchema,
|
|
6497
7510
|
OAuth2AuthConfigSchema,
|
|
@@ -6501,6 +7514,11 @@ var RedTeamClient = class {
|
|
|
6501
7514
|
OffsetSchema,
|
|
6502
7515
|
OpenAIConnectionParamsSchema,
|
|
6503
7516
|
PAYLOAD_HASH,
|
|
7517
|
+
PageDataFilteringProfileResponseSchema,
|
|
7518
|
+
PageDataPatternResponseSchema,
|
|
7519
|
+
PageDataProfileResponseSchema,
|
|
7520
|
+
PageDictionaryResponseSchema,
|
|
7521
|
+
PageableObjectSchema,
|
|
6504
7522
|
PaginatedScanResultsSchema,
|
|
6505
7523
|
PatternDetectionSchema,
|
|
6506
7524
|
PolicyAppProtectionSchema,
|
|
@@ -6566,6 +7584,7 @@ var RedTeamClient = class {
|
|
|
6566
7584
|
RegistryCredentialsSchema,
|
|
6567
7585
|
RemediationDetailSchema,
|
|
6568
7586
|
RemediationResponseSchema,
|
|
7587
|
+
ResourceModelExtensionSchema,
|
|
6569
7588
|
ResponseDetectedSchema,
|
|
6570
7589
|
ResponseDetectionDetailsSchema,
|
|
6571
7590
|
ResponseMode,
|
|
@@ -6580,6 +7599,11 @@ var RedTeamClient = class {
|
|
|
6580
7599
|
RuleEvaluationResponseSchema,
|
|
6581
7600
|
RuleEvaluationResult,
|
|
6582
7601
|
RuleFieldValueKey,
|
|
7602
|
+
RuleItemConfidenceLevelSchema,
|
|
7603
|
+
RuleItemDetectionTechniqueSchema,
|
|
7604
|
+
RuleItemEdmMatchCriteriaSchema,
|
|
7605
|
+
RuleItemMatchTypeSchema,
|
|
7606
|
+
RuleItemOccurrenceOperatorTypeSchema,
|
|
6583
7607
|
RuleRemediationSchema,
|
|
6584
7608
|
RuleState,
|
|
6585
7609
|
RuleType,
|
|
@@ -6618,6 +7642,8 @@ var RedTeamClient = class {
|
|
|
6618
7642
|
SortByDateField,
|
|
6619
7643
|
SortByFileField,
|
|
6620
7644
|
SortDirection,
|
|
7645
|
+
SortObjectSchema,
|
|
7646
|
+
SourceAttributesSchema,
|
|
6621
7647
|
SourceType,
|
|
6622
7648
|
StaticJobMetadataSchema,
|
|
6623
7649
|
StaticJobRemediationRecommendationSchema,
|
|
@@ -6665,6 +7691,7 @@ var RedTeamClient = class {
|
|
|
6665
7691
|
TopicArraySchema,
|
|
6666
7692
|
TopicObjectSchema,
|
|
6667
7693
|
TopicsClient,
|
|
7694
|
+
URLExclusionSchema,
|
|
6668
7695
|
USER_AGENT,
|
|
6669
7696
|
UrlCategorySchema,
|
|
6670
7697
|
UrlfEntrySchema,
|
|
@@ -6673,7 +7700,10 @@ var RedTeamClient = class {
|
|
|
6673
7700
|
ViolationListSchema,
|
|
6674
7701
|
ViolationResponseSchema,
|
|
6675
7702
|
WebSocketConnectionParamsSchema,
|
|
7703
|
+
WeightedRegexSchema,
|
|
6676
7704
|
globalConfiguration,
|
|
6677
|
-
init
|
|
7705
|
+
init,
|
|
7706
|
+
jsonNullable,
|
|
7707
|
+
pageSchema
|
|
6678
7708
|
});
|
|
6679
7709
|
//# sourceMappingURL=index.cjs.map
|