@cdot65/prisma-airs-sdk 0.10.0 → 0.12.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/dist/index.cjs +1820 -1567
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1329 -17
- package/dist/index.d.ts +1329 -17
- package/dist/index.js +1805 -1567
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -101,6 +101,7 @@ __export(index_exports, {
|
|
|
101
101
|
CustomPromptUpdateRequestSchema: () => CustomPromptUpdateRequestSchema,
|
|
102
102
|
CustomTopicListResponseSchema: () => CustomTopicListResponseSchema,
|
|
103
103
|
CustomTopicSchema: () => CustomTopicSchema,
|
|
104
|
+
CustomerAppDeleteResponseSchema: () => CustomerAppDeleteResponseSchema,
|
|
104
105
|
CustomerAppListResponseSchema: () => CustomerAppListResponseSchema,
|
|
105
106
|
CustomerAppSchema: () => CustomerAppSchema,
|
|
106
107
|
CustomerAppWithKeysSchema: () => CustomerAppWithKeysSchema,
|
|
@@ -119,7 +120,15 @@ __export(index_exports, {
|
|
|
119
120
|
DLP_DICTIONARIES_PATH: () => DLP_DICTIONARIES_PATH,
|
|
120
121
|
DSDetailResultSchema: () => DSDetailResultSchema,
|
|
121
122
|
DSResultMetadataSchema: () => DSResultMetadataSchema,
|
|
123
|
+
DashboardApplicationSchema: () => DashboardApplicationSchema,
|
|
124
|
+
DashboardApplicationSessionsBucketSchema: () => DashboardApplicationSessionsBucketSchema,
|
|
125
|
+
DashboardApplicationViolationBreakdownSchema: () => DashboardApplicationViolationBreakdownSchema,
|
|
126
|
+
DashboardApplicationsOverviewItemSchema: () => DashboardApplicationsOverviewItemSchema,
|
|
127
|
+
DashboardApplicationsOverviewSchema: () => DashboardApplicationsOverviewSchema,
|
|
128
|
+
DashboardClient: () => DashboardClient,
|
|
122
129
|
DashboardOverviewResponseSchema: () => DashboardOverviewResponseSchema,
|
|
130
|
+
DashboardPaginationSchema: () => DashboardPaginationSchema,
|
|
131
|
+
DashboardSessionStatsSchema: () => DashboardSessionStatsSchema,
|
|
123
132
|
DataFilteringDetailsSchema: () => DataFilteringDetailsSchema,
|
|
124
133
|
DataFilteringProfileRequestSchema: () => DataFilteringProfileRequestSchema,
|
|
125
134
|
DataFilteringProfileResponseSchema: () => DataFilteringProfileResponseSchema,
|
|
@@ -165,6 +174,7 @@ __export(index_exports, {
|
|
|
165
174
|
DetectionRuleSchema: () => DetectionRuleSchema,
|
|
166
175
|
DetectionServiceName: () => DetectionServiceName,
|
|
167
176
|
DetectionServiceResultSchema: () => DetectionServiceResultSchema,
|
|
177
|
+
DetectorViolationBreakdownEntrySchema: () => DetectorViolationBreakdownEntrySchema,
|
|
168
178
|
DeviceInstanceSchema: () => DeviceInstanceSchema,
|
|
169
179
|
DeviceLicenseSchema: () => DeviceLicenseSchema,
|
|
170
180
|
DeviceRequestSchema: () => DeviceRequestSchema,
|
|
@@ -268,6 +278,9 @@ __export(index_exports, {
|
|
|
268
278
|
MGMT_CLIENT_SECRET: () => MGMT_CLIENT_SECRET,
|
|
269
279
|
MGMT_CUSTOMER_APPS_TSG_PATH: () => MGMT_CUSTOMER_APPS_TSG_PATH,
|
|
270
280
|
MGMT_CUSTOMER_APP_PATH: () => MGMT_CUSTOMER_APP_PATH,
|
|
281
|
+
MGMT_DASHBOARD_APPLICATIONS_OVERVIEW_PATH: () => MGMT_DASHBOARD_APPLICATIONS_OVERVIEW_PATH,
|
|
282
|
+
MGMT_DASHBOARD_APPLICATION_PATH: () => MGMT_DASHBOARD_APPLICATION_PATH,
|
|
283
|
+
MGMT_DASHBOARD_APPLICATION_VIOLATION_BREAKDOWN_PATH: () => MGMT_DASHBOARD_APPLICATION_VIOLATION_BREAKDOWN_PATH,
|
|
271
284
|
MGMT_DEPLOYMENT_PROFILES_PATH: () => MGMT_DEPLOYMENT_PROFILES_PATH,
|
|
272
285
|
MGMT_DLP_PROFILES_PATH: () => MGMT_DLP_PROFILES_PATH,
|
|
273
286
|
MGMT_ENDPOINT: () => MGMT_ENDPOINT,
|
|
@@ -496,6 +509,7 @@ __export(index_exports, {
|
|
|
496
509
|
TgReportSchema: () => TgReportSchema,
|
|
497
510
|
ThreatCategory: () => ThreatCategory,
|
|
498
511
|
ThreatScanReportSchema: () => ThreatScanReportSchema,
|
|
512
|
+
TokenStatsSchema: () => TokenStatsSchema,
|
|
499
513
|
ToolDetectedSchema: () => ToolDetectedSchema,
|
|
500
514
|
ToolDetectionDetailsSchema: () => ToolDetectionDetailsSchema,
|
|
501
515
|
ToolDetectionEntrySchema: () => ToolDetectionEntrySchema,
|
|
@@ -513,6 +527,7 @@ __export(index_exports, {
|
|
|
513
527
|
Verdict: () => Verdict,
|
|
514
528
|
ViolationListSchema: () => ViolationListSchema,
|
|
515
529
|
ViolationResponseSchema: () => ViolationResponseSchema,
|
|
530
|
+
ViolationSeverityCountsSchema: () => ViolationSeverityCountsSchema,
|
|
516
531
|
WebSocketConnectionParamsSchema: () => WebSocketConnectionParamsSchema,
|
|
517
532
|
WeightedRegexSchema: () => WeightedRegexSchema,
|
|
518
533
|
globalConfiguration: () => globalConfiguration,
|
|
@@ -553,7 +568,7 @@ var MAX_NUMBER_OF_BATCH_SCAN_OBJECTS = 5;
|
|
|
553
568
|
var MAX_CONNECTION_POOL_SIZE = 100;
|
|
554
569
|
var MAX_NUMBER_OF_RETRIES = 5;
|
|
555
570
|
var HTTP_FORCE_RETRY_STATUS_CODES = [500, 502, 503, 504];
|
|
556
|
-
var SDK_VERSION = "0.
|
|
571
|
+
var SDK_VERSION = "0.12.0";
|
|
557
572
|
var USER_AGENT = `PAN-AIRS/${SDK_VERSION}-typescript-sdk`;
|
|
558
573
|
var DEFAULT_MGMT_ENDPOINT = "https://api.sase.paloaltonetworks.com/aisec";
|
|
559
574
|
var DEFAULT_TOKEN_ENDPOINT = "https://auth.apps.paloaltonetworks.com/oauth2/access_token";
|
|
@@ -580,6 +595,9 @@ var MGMT_CUSTOMER_APP_PATH = "/v1/mgmt/customerapp";
|
|
|
580
595
|
var MGMT_CUSTOMER_APPS_TSG_PATH = "/v1/mgmt/customerapp/tsg";
|
|
581
596
|
var MGMT_OAUTH_INVALIDATE_PATH = "/v1/mgmt/oauth/invalidateToken";
|
|
582
597
|
var MGMT_OAUTH_TOKEN_PATH = "/v1/mgmt/oauth/client_credential/accesstoken";
|
|
598
|
+
var MGMT_DASHBOARD_APPLICATION_PATH = "/v1/mgmt/dashboard/v2/apps/application";
|
|
599
|
+
var MGMT_DASHBOARD_APPLICATION_VIOLATION_BREAKDOWN_PATH = "/v1/mgmt/dashboard/v2/apps/applicationviolationbreakdown";
|
|
600
|
+
var MGMT_DASHBOARD_APPLICATIONS_OVERVIEW_PATH = "/v1/mgmt/dashboard/v2/apps/applicationsoverview";
|
|
583
601
|
var DEFAULT_DLP_ENDPOINT = "https://api.dlp.paloaltonetworks.com";
|
|
584
602
|
var DLP_DATA_FILTERING_PROFILES_PATH = "/v2/api/data-filtering-profiles";
|
|
585
603
|
var DLP_DATA_PATTERNS_PATH = "/v2/api/data-patterns";
|
|
@@ -1837,9 +1855,10 @@ var SecurityProfileListResponseSchema = import_zod17.z.object({
|
|
|
1837
1855
|
ai_profiles: import_zod17.z.array(SecurityProfileSchema),
|
|
1838
1856
|
next_offset: import_zod17.z.number().optional()
|
|
1839
1857
|
}).passthrough();
|
|
1840
|
-
var DeleteProfileResponseSchema = import_zod17.z.
|
|
1841
|
-
|
|
1842
|
-
}).passthrough()
|
|
1858
|
+
var DeleteProfileResponseSchema = import_zod17.z.union([
|
|
1859
|
+
import_zod17.z.string().transform((message) => ({ message })),
|
|
1860
|
+
import_zod17.z.object({ message: import_zod17.z.string() }).passthrough()
|
|
1861
|
+
]);
|
|
1843
1862
|
var DeleteProfileConflictSchema = import_zod17.z.object({
|
|
1844
1863
|
message: import_zod17.z.string(),
|
|
1845
1864
|
payload: import_zod17.z.array(
|
|
@@ -1881,9 +1900,10 @@ var CustomTopicListResponseSchema = import_zod18.z.object({
|
|
|
1881
1900
|
custom_topics: import_zod18.z.array(CustomTopicSchema),
|
|
1882
1901
|
next_offset: import_zod18.z.number().optional()
|
|
1883
1902
|
}).passthrough();
|
|
1884
|
-
var DeleteTopicResponseSchema = import_zod18.z.
|
|
1885
|
-
|
|
1886
|
-
}).passthrough()
|
|
1903
|
+
var DeleteTopicResponseSchema = import_zod18.z.union([
|
|
1904
|
+
import_zod18.z.string().transform((message) => ({ message })),
|
|
1905
|
+
import_zod18.z.object({ message: import_zod18.z.string() }).passthrough()
|
|
1906
|
+
]);
|
|
1887
1907
|
var DeleteTopicConflictSchema = import_zod18.z.object({
|
|
1888
1908
|
message: import_zod18.z.string(),
|
|
1889
1909
|
payload: import_zod18.z.array(
|
|
@@ -1946,9 +1966,10 @@ var ApiKeyListResponseSchema = import_zod19.z.object({
|
|
|
1946
1966
|
api_keys: import_zod19.z.array(ApiKeySchema).optional(),
|
|
1947
1967
|
next_offset: import_zod19.z.number().optional()
|
|
1948
1968
|
}).passthrough();
|
|
1949
|
-
var ApiKeyDeleteResponseSchema = import_zod19.z.
|
|
1950
|
-
|
|
1951
|
-
}).passthrough()
|
|
1969
|
+
var ApiKeyDeleteResponseSchema = import_zod19.z.union([
|
|
1970
|
+
import_zod19.z.string().transform((message) => ({ message })),
|
|
1971
|
+
import_zod19.z.object({ message: import_zod19.z.string().optional() }).passthrough()
|
|
1972
|
+
]);
|
|
1952
1973
|
|
|
1953
1974
|
// src/models/mgmt-customer-app.ts
|
|
1954
1975
|
var import_zod20 = require("zod");
|
|
@@ -1983,180 +2004,251 @@ var CustomerAppListResponseSchema = import_zod20.z.object({
|
|
|
1983
2004
|
customer_apps: import_zod20.z.array(CustomerAppWithKeysSchema).optional(),
|
|
1984
2005
|
next_offset: import_zod20.z.number().optional()
|
|
1985
2006
|
}).passthrough();
|
|
2007
|
+
var CustomerAppDeleteResponseSchema = import_zod20.z.union([
|
|
2008
|
+
import_zod20.z.string().transform((message) => ({ message })),
|
|
2009
|
+
import_zod20.z.object({ message: import_zod20.z.string() }).passthrough()
|
|
2010
|
+
]);
|
|
1986
2011
|
|
|
1987
|
-
// src/models/mgmt-
|
|
2012
|
+
// src/models/mgmt-dashboard.ts
|
|
1988
2013
|
var import_zod21 = require("zod");
|
|
1989
|
-
var
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2014
|
+
var TokenStatsSchema = import_zod21.z.object({
|
|
2015
|
+
average_daily_tokens: import_zod21.z.number().nullable().optional(),
|
|
2016
|
+
average_daily_tokens_scale: import_zod21.z.string().nullable().optional(),
|
|
2017
|
+
monthly_total_tokens: import_zod21.z.number().nullable().optional(),
|
|
2018
|
+
monthly_total_tokens_scale: import_zod21.z.string().nullable().optional()
|
|
2019
|
+
}).passthrough();
|
|
2020
|
+
var ViolationSeverityCountsSchema = import_zod21.z.object({
|
|
2021
|
+
critical: import_zod21.z.number().optional(),
|
|
2022
|
+
high: import_zod21.z.number().optional(),
|
|
2023
|
+
medium: import_zod21.z.number().optional(),
|
|
2024
|
+
low: import_zod21.z.number().optional(),
|
|
2025
|
+
total: import_zod21.z.number().optional()
|
|
2026
|
+
}).passthrough();
|
|
2027
|
+
var DashboardSessionStatsSchema = import_zod21.z.object({
|
|
2028
|
+
total: import_zod21.z.number().optional(),
|
|
2029
|
+
violating: import_zod21.z.number().optional(),
|
|
2030
|
+
violation_breakdown: ViolationSeverityCountsSchema.optional(),
|
|
2031
|
+
last_session_id: import_zod21.z.string().nullable().optional(),
|
|
2032
|
+
most_recent_session_time: import_zod21.z.string().nullable().optional()
|
|
2033
|
+
}).passthrough();
|
|
2034
|
+
var DashboardApplicationSchema = import_zod21.z.object({
|
|
2035
|
+
id: import_zod21.z.string().nullable().optional(),
|
|
2036
|
+
name: import_zod21.z.string().nullable().optional(),
|
|
2037
|
+
cloud: import_zod21.z.string().nullable().optional(),
|
|
2038
|
+
source: import_zod21.z.string().nullable().optional(),
|
|
2039
|
+
created_at: import_zod21.z.string().nullable().optional(),
|
|
2040
|
+
updated_at: import_zod21.z.string().nullable().optional(),
|
|
2041
|
+
profiles: import_zod21.z.array(import_zod21.z.string()).nullable().optional(),
|
|
2042
|
+
token_stats: TokenStatsSchema.nullable().optional(),
|
|
2043
|
+
session_stats: DashboardSessionStatsSchema.nullable().optional()
|
|
2044
|
+
}).passthrough();
|
|
2045
|
+
var DetectorViolationBreakdownEntrySchema = import_zod21.z.object({
|
|
2046
|
+
detection_type: import_zod21.z.string().optional(),
|
|
2047
|
+
violation_breakdown: ViolationSeverityCountsSchema.optional()
|
|
2048
|
+
}).passthrough();
|
|
2049
|
+
var DashboardApplicationViolationBreakdownSchema = import_zod21.z.object({
|
|
2050
|
+
detection_type_violation_breakdown: import_zod21.z.array(DetectorViolationBreakdownEntrySchema).optional(),
|
|
2051
|
+
total_violating: import_zod21.z.number().optional()
|
|
2052
|
+
}).passthrough();
|
|
2053
|
+
var DashboardApplicationSessionsBucketSchema = import_zod21.z.object({
|
|
2054
|
+
bucket_number: import_zod21.z.number().optional(),
|
|
2055
|
+
date: import_zod21.z.string().nullable().optional(),
|
|
2056
|
+
total: import_zod21.z.number().optional(),
|
|
2057
|
+
violated: import_zod21.z.number().optional()
|
|
2058
|
+
}).passthrough();
|
|
2059
|
+
var DashboardApplicationsOverviewItemSchema = import_zod21.z.object({
|
|
2060
|
+
id: import_zod21.z.string().nullable().optional(),
|
|
2061
|
+
name: import_zod21.z.string().nullable().optional(),
|
|
2062
|
+
cloud: import_zod21.z.string().nullable().optional(),
|
|
2063
|
+
source: import_zod21.z.string().nullable().optional(),
|
|
2064
|
+
created_at: import_zod21.z.string().nullable().optional(),
|
|
2065
|
+
sessions: import_zod21.z.array(DashboardApplicationSessionsBucketSchema).nullable().optional(),
|
|
2066
|
+
sessions_total: import_zod21.z.number().nullable().optional(),
|
|
2067
|
+
sessions_violated: import_zod21.z.number().nullable().optional()
|
|
2068
|
+
}).passthrough();
|
|
2069
|
+
var DashboardPaginationSchema = import_zod21.z.object({
|
|
2070
|
+
limit: import_zod21.z.number().optional(),
|
|
2071
|
+
skip: import_zod21.z.number().optional(),
|
|
2072
|
+
total_items: import_zod21.z.number().optional()
|
|
2073
|
+
}).passthrough();
|
|
2074
|
+
var DashboardApplicationsOverviewSchema = import_zod21.z.object({
|
|
2075
|
+
items: import_zod21.z.array(DashboardApplicationsOverviewItemSchema).optional(),
|
|
2076
|
+
pagination: DashboardPaginationSchema.optional()
|
|
2000
2077
|
}).passthrough();
|
|
2001
2078
|
|
|
2002
|
-
// src/models/mgmt-
|
|
2079
|
+
// src/models/mgmt-deployment-profile.ts
|
|
2003
2080
|
var import_zod22 = require("zod");
|
|
2004
|
-
var
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
var DlpProfileListResponseSchema = import_zod22.z.object({
|
|
2016
|
-
dlp_profiles: import_zod22.z.array(DlpDataProfileSchema).optional()
|
|
2081
|
+
var DeploymentProfileEntrySchema = import_zod22.z.object({
|
|
2082
|
+
dp_name: import_zod22.z.string(),
|
|
2083
|
+
auth_code: import_zod22.z.string(),
|
|
2084
|
+
tsg_id: import_zod22.z.string().optional(),
|
|
2085
|
+
status: import_zod22.z.string().optional(),
|
|
2086
|
+
expiration_date: import_zod22.z.string().optional(),
|
|
2087
|
+
ave_text_records: import_zod22.z.number().optional()
|
|
2088
|
+
}).passthrough();
|
|
2089
|
+
var DeploymentProfilesResponseSchema = import_zod22.z.object({
|
|
2090
|
+
deployment_profiles: import_zod22.z.array(DeploymentProfileEntrySchema),
|
|
2091
|
+
status: import_zod22.z.string()
|
|
2017
2092
|
}).passthrough();
|
|
2018
2093
|
|
|
2019
|
-
// src/models/mgmt-
|
|
2094
|
+
// src/models/mgmt-dlp-profile.ts
|
|
2020
2095
|
var import_zod23 = require("zod");
|
|
2021
|
-
var
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2096
|
+
var DlpDataProfileSchema = import_zod23.z.object({
|
|
2097
|
+
name: import_zod23.z.string(),
|
|
2098
|
+
uuid: import_zod23.z.string(),
|
|
2099
|
+
id: import_zod23.z.string().optional(),
|
|
2100
|
+
version: import_zod23.z.string().optional(),
|
|
2101
|
+
rule1: import_zod23.z.object({ action: import_zod23.z.string().optional() }).passthrough().optional(),
|
|
2102
|
+
rule2: import_zod23.z.object({ action: import_zod23.z.string().optional() }).passthrough().optional(),
|
|
2103
|
+
"log-severity": import_zod23.z.string().optional(),
|
|
2104
|
+
"non-file-based": import_zod23.z.string().optional(),
|
|
2105
|
+
"file-based": import_zod23.z.string().optional()
|
|
2106
|
+
}).passthrough();
|
|
2107
|
+
var DlpProfileListResponseSchema = import_zod23.z.object({
|
|
2108
|
+
dlp_profiles: import_zod23.z.array(DlpDataProfileSchema).optional()
|
|
2109
|
+
}).passthrough();
|
|
2110
|
+
|
|
2111
|
+
// src/models/mgmt-scan-log.ts
|
|
2112
|
+
var import_zod24 = require("zod");
|
|
2113
|
+
var ScanResultEntrySchema = import_zod24.z.object({
|
|
2114
|
+
csp_id: import_zod24.z.string(),
|
|
2115
|
+
tsg_id: import_zod24.z.string(),
|
|
2116
|
+
scan_id: import_zod24.z.string(),
|
|
2117
|
+
scan_sub_req_id: import_zod24.z.number(),
|
|
2118
|
+
api_key_name: import_zod24.z.string(),
|
|
2119
|
+
app_name: import_zod24.z.string(),
|
|
2120
|
+
tokens: import_zod24.z.number(),
|
|
2121
|
+
text_records: import_zod24.z.number(),
|
|
2122
|
+
transaction_id: import_zod24.z.string().optional(),
|
|
2123
|
+
profile_id: import_zod24.z.string().optional(),
|
|
2124
|
+
profile_name: import_zod24.z.string().optional(),
|
|
2125
|
+
model_name: import_zod24.z.string().optional(),
|
|
2126
|
+
user: import_zod24.z.string().optional(),
|
|
2127
|
+
environment: import_zod24.z.string().optional(),
|
|
2128
|
+
cloud_provider: import_zod24.z.string().optional(),
|
|
2129
|
+
agent_framework: import_zod24.z.string().optional(),
|
|
2130
|
+
report_id: import_zod24.z.string().optional(),
|
|
2131
|
+
received_ts: import_zod24.z.string().optional(),
|
|
2132
|
+
completed_ts: import_zod24.z.string().optional(),
|
|
2133
|
+
status: import_zod24.z.string().optional(),
|
|
2134
|
+
verdict: import_zod24.z.string().optional(),
|
|
2135
|
+
action: import_zod24.z.string().optional(),
|
|
2136
|
+
is_prompt: import_zod24.z.boolean().optional(),
|
|
2137
|
+
is_response: import_zod24.z.boolean().optional(),
|
|
2138
|
+
pi_final_verdict: import_zod24.z.string().optional(),
|
|
2139
|
+
uf_final_verdict: import_zod24.z.string().optional(),
|
|
2140
|
+
dlp_final_verdict: import_zod24.z.string().optional(),
|
|
2141
|
+
dbs_final_verdict: import_zod24.z.string().optional(),
|
|
2142
|
+
tc_final_verdict: import_zod24.z.string().optional(),
|
|
2143
|
+
mc_final_verdict: import_zod24.z.string().optional(),
|
|
2144
|
+
agent_final_verdict: import_zod24.z.string().optional(),
|
|
2145
|
+
cg_final_verdict: import_zod24.z.string().optional(),
|
|
2146
|
+
tg_final_verdict: import_zod24.z.string().optional(),
|
|
2147
|
+
prompt_pi_verdict: import_zod24.z.string().optional(),
|
|
2148
|
+
prompt_uf_verdict: import_zod24.z.string().optional(),
|
|
2149
|
+
prompt_dlp_verdict: import_zod24.z.string().optional(),
|
|
2150
|
+
prompt_tc_verdict: import_zod24.z.string().optional(),
|
|
2151
|
+
prompt_mc_verdict: import_zod24.z.string().optional(),
|
|
2152
|
+
prompt_agent_verdict: import_zod24.z.string().optional(),
|
|
2153
|
+
prompt_tg_verdict: import_zod24.z.string().optional(),
|
|
2154
|
+
prompt_verdict: import_zod24.z.string().optional(),
|
|
2155
|
+
prompt_pi_action: import_zod24.z.string().optional(),
|
|
2156
|
+
prompt_uf_action: import_zod24.z.string().optional(),
|
|
2157
|
+
prompt_dlp_action: import_zod24.z.string().optional(),
|
|
2158
|
+
prompt_tc_action: import_zod24.z.string().optional(),
|
|
2159
|
+
prompt_mc_action: import_zod24.z.string().optional(),
|
|
2160
|
+
prompt_agent_action: import_zod24.z.string().optional(),
|
|
2161
|
+
prompt_tg_action: import_zod24.z.string().optional(),
|
|
2162
|
+
response_uf_verdict: import_zod24.z.string().optional(),
|
|
2163
|
+
response_dlp_verdict: import_zod24.z.string().optional(),
|
|
2164
|
+
response_dbs_verdict: import_zod24.z.string().optional(),
|
|
2165
|
+
response_tc_verdict: import_zod24.z.string().optional(),
|
|
2166
|
+
response_mc_verdict: import_zod24.z.string().optional(),
|
|
2167
|
+
response_agent_verdict: import_zod24.z.string().optional(),
|
|
2168
|
+
response_cg_verdict: import_zod24.z.string().optional(),
|
|
2169
|
+
response_tg_verdict: import_zod24.z.string().optional(),
|
|
2170
|
+
response_uf_action: import_zod24.z.string().optional(),
|
|
2171
|
+
response_dlp_action: import_zod24.z.string().optional(),
|
|
2172
|
+
response_dbs_action: import_zod24.z.string().optional(),
|
|
2173
|
+
response_tc_action: import_zod24.z.string().optional(),
|
|
2174
|
+
response_mc_action: import_zod24.z.string().optional(),
|
|
2175
|
+
response_agent_action: import_zod24.z.string().optional(),
|
|
2176
|
+
response_cg_action: import_zod24.z.string().optional(),
|
|
2177
|
+
response_tg_action: import_zod24.z.string().optional(),
|
|
2178
|
+
response_verdict: import_zod24.z.string().optional(),
|
|
2179
|
+
detection_service_flags: import_zod24.z.number().optional(),
|
|
2180
|
+
content_masked: import_zod24.z.boolean().optional(),
|
|
2181
|
+
user_ip: import_zod24.z.string().optional()
|
|
2182
|
+
}).passthrough();
|
|
2183
|
+
var ScanResultForDashboardSchema = import_zod24.z.object({
|
|
2184
|
+
text_records_count: import_zod24.z.number().optional(),
|
|
2185
|
+
api_calls_count: import_zod24.z.number().optional(),
|
|
2186
|
+
threats_count: import_zod24.z.number().optional(),
|
|
2187
|
+
all_transactions_count: import_zod24.z.number().optional(),
|
|
2188
|
+
benign_transaction_count: import_zod24.z.number().optional(),
|
|
2189
|
+
scan_result_entries: import_zod24.z.array(ScanResultEntrySchema).optional()
|
|
2190
|
+
}).passthrough();
|
|
2191
|
+
var PaginatedScanResultsSchema = import_zod24.z.object({
|
|
2100
2192
|
scan_result_for_dashboard: ScanResultForDashboardSchema.optional(),
|
|
2101
|
-
total_pages:
|
|
2102
|
-
page_number:
|
|
2103
|
-
page_size:
|
|
2104
|
-
page_token:
|
|
2105
|
-
revision:
|
|
2193
|
+
total_pages: import_zod24.z.number().optional(),
|
|
2194
|
+
page_number: import_zod24.z.number().optional(),
|
|
2195
|
+
page_size: import_zod24.z.number().optional(),
|
|
2196
|
+
page_token: import_zod24.z.string().optional(),
|
|
2197
|
+
revision: import_zod24.z.number().optional()
|
|
2106
2198
|
}).passthrough();
|
|
2107
2199
|
|
|
2108
2200
|
// src/models/mgmt-oauth.ts
|
|
2109
|
-
var
|
|
2110
|
-
var ClientIdAndCustomerAppSchema =
|
|
2111
|
-
client_id:
|
|
2112
|
-
customer_app:
|
|
2113
|
-
}).passthrough();
|
|
2114
|
-
var Oauth2TokenSchema =
|
|
2115
|
-
token_type:
|
|
2116
|
-
issued_at:
|
|
2117
|
-
client_id:
|
|
2118
|
-
access_token:
|
|
2119
|
-
expires_in:
|
|
2120
|
-
status:
|
|
2201
|
+
var import_zod25 = require("zod");
|
|
2202
|
+
var ClientIdAndCustomerAppSchema = import_zod25.z.object({
|
|
2203
|
+
client_id: import_zod25.z.string(),
|
|
2204
|
+
customer_app: import_zod25.z.string()
|
|
2205
|
+
}).passthrough();
|
|
2206
|
+
var Oauth2TokenSchema = import_zod25.z.object({
|
|
2207
|
+
token_type: import_zod25.z.string().optional(),
|
|
2208
|
+
issued_at: import_zod25.z.string().optional(),
|
|
2209
|
+
client_id: import_zod25.z.string().optional(),
|
|
2210
|
+
access_token: import_zod25.z.string(),
|
|
2211
|
+
expires_in: import_zod25.z.string().optional(),
|
|
2212
|
+
status: import_zod25.z.string().optional()
|
|
2121
2213
|
}).passthrough();
|
|
2122
2214
|
|
|
2123
2215
|
// src/models/dlp-audit.ts
|
|
2124
|
-
var
|
|
2125
|
-
var AuditResponseSchema =
|
|
2126
|
-
created_at:
|
|
2127
|
-
created_by:
|
|
2128
|
-
updated_at:
|
|
2129
|
-
updated_by:
|
|
2216
|
+
var import_zod26 = require("zod");
|
|
2217
|
+
var AuditResponseSchema = import_zod26.z.object({
|
|
2218
|
+
created_at: import_zod26.z.union([import_zod26.z.string(), import_zod26.z.number()]).nullish(),
|
|
2219
|
+
created_by: import_zod26.z.string().nullish(),
|
|
2220
|
+
updated_at: import_zod26.z.union([import_zod26.z.string(), import_zod26.z.number()]).nullish(),
|
|
2221
|
+
updated_by: import_zod26.z.string().nullish()
|
|
2130
2222
|
}).passthrough();
|
|
2131
2223
|
|
|
2132
2224
|
// src/models/dlp-page.ts
|
|
2133
|
-
var
|
|
2134
|
-
var SortObjectSchema =
|
|
2135
|
-
empty:
|
|
2136
|
-
sorted:
|
|
2137
|
-
unsorted:
|
|
2138
|
-
}).passthrough();
|
|
2139
|
-
var PageableObjectSchema =
|
|
2140
|
-
offset:
|
|
2141
|
-
pageNumber:
|
|
2142
|
-
pageSize:
|
|
2143
|
-
paged:
|
|
2144
|
-
unpaged:
|
|
2225
|
+
var import_zod27 = require("zod");
|
|
2226
|
+
var SortObjectSchema = import_zod27.z.object({
|
|
2227
|
+
empty: import_zod27.z.boolean().optional(),
|
|
2228
|
+
sorted: import_zod27.z.boolean().optional(),
|
|
2229
|
+
unsorted: import_zod27.z.boolean().optional()
|
|
2230
|
+
}).passthrough();
|
|
2231
|
+
var PageableObjectSchema = import_zod27.z.object({
|
|
2232
|
+
offset: import_zod27.z.number().optional(),
|
|
2233
|
+
pageNumber: import_zod27.z.number().optional(),
|
|
2234
|
+
pageSize: import_zod27.z.number().optional(),
|
|
2235
|
+
paged: import_zod27.z.boolean().optional(),
|
|
2236
|
+
unpaged: import_zod27.z.boolean().optional(),
|
|
2145
2237
|
sort: SortObjectSchema.optional()
|
|
2146
2238
|
}).passthrough();
|
|
2147
2239
|
function pageSchema(itemSchema) {
|
|
2148
|
-
return
|
|
2149
|
-
content:
|
|
2150
|
-
empty:
|
|
2151
|
-
first:
|
|
2152
|
-
last:
|
|
2153
|
-
number:
|
|
2154
|
-
numberOfElements:
|
|
2240
|
+
return import_zod27.z.object({
|
|
2241
|
+
content: import_zod27.z.array(itemSchema),
|
|
2242
|
+
empty: import_zod27.z.boolean().optional(),
|
|
2243
|
+
first: import_zod27.z.boolean().optional(),
|
|
2244
|
+
last: import_zod27.z.boolean().optional(),
|
|
2245
|
+
number: import_zod27.z.number().optional(),
|
|
2246
|
+
numberOfElements: import_zod27.z.number().optional(),
|
|
2155
2247
|
pageable: PageableObjectSchema.optional(),
|
|
2156
|
-
size:
|
|
2248
|
+
size: import_zod27.z.number().optional(),
|
|
2157
2249
|
sort: SortObjectSchema.optional(),
|
|
2158
|
-
totalElements:
|
|
2159
|
-
totalPages:
|
|
2250
|
+
totalElements: import_zod27.z.number().optional(),
|
|
2251
|
+
totalPages: import_zod27.z.number().optional()
|
|
2160
2252
|
}).passthrough();
|
|
2161
2253
|
}
|
|
2162
2254
|
|
|
@@ -2166,9 +2258,9 @@ function jsonNullable(inner) {
|
|
|
2166
2258
|
}
|
|
2167
2259
|
|
|
2168
2260
|
// src/models/dlp-dictionary.ts
|
|
2169
|
-
var
|
|
2170
|
-
var DictionaryTypeSchema =
|
|
2171
|
-
var DictionaryCategorySchema =
|
|
2261
|
+
var import_zod28 = require("zod");
|
|
2262
|
+
var DictionaryTypeSchema = import_zod28.z.enum(["predefined", "custom"]);
|
|
2263
|
+
var DictionaryCategorySchema = import_zod28.z.enum([
|
|
2172
2264
|
"Academic",
|
|
2173
2265
|
"Confidential",
|
|
2174
2266
|
"Employment",
|
|
@@ -2179,8 +2271,8 @@ var DictionaryCategorySchema = import_zod27.z.enum([
|
|
|
2179
2271
|
"Marketing",
|
|
2180
2272
|
"Source Code"
|
|
2181
2273
|
]);
|
|
2182
|
-
var DictionaryClassificationSchema =
|
|
2183
|
-
var DictionaryDetectionTechniqueSchema =
|
|
2274
|
+
var DictionaryClassificationSchema = import_zod28.z.enum(["pab", "endpoint"]);
|
|
2275
|
+
var DictionaryDetectionTechniqueSchema = import_zod28.z.enum([
|
|
2184
2276
|
"edm",
|
|
2185
2277
|
"document_fingerprint",
|
|
2186
2278
|
"trainable_classifier",
|
|
@@ -2195,7 +2287,7 @@ var DictionaryDetectionTechniqueSchema = import_zod27.z.enum([
|
|
|
2195
2287
|
"pab",
|
|
2196
2288
|
"document_classifier"
|
|
2197
2289
|
]);
|
|
2198
|
-
var DictionaryDetectionSubTechniqueSchema =
|
|
2290
|
+
var DictionaryDetectionSubTechniqueSchema = import_zod28.z.enum([
|
|
2199
2291
|
"dnn",
|
|
2200
2292
|
"gamma",
|
|
2201
2293
|
"ml_gateway",
|
|
@@ -2205,59 +2297,59 @@ var DictionaryDetectionSubTechniqueSchema = import_zod27.z.enum([
|
|
|
2205
2297
|
"compression",
|
|
2206
2298
|
"threshold"
|
|
2207
2299
|
]);
|
|
2208
|
-
var DictionaryMetaDataDTOSchema =
|
|
2209
|
-
number_of_keywords:
|
|
2210
|
-
original_file_name:
|
|
2211
|
-
original_file_size_in_byte:
|
|
2300
|
+
var DictionaryMetaDataDTOSchema = import_zod28.z.object({
|
|
2301
|
+
number_of_keywords: import_zod28.z.number().nullish(),
|
|
2302
|
+
original_file_name: import_zod28.z.string().nullish(),
|
|
2303
|
+
original_file_size_in_byte: import_zod28.z.number().nullish()
|
|
2212
2304
|
}).passthrough();
|
|
2213
|
-
var DictionaryTagsSchema =
|
|
2214
|
-
classification:
|
|
2305
|
+
var DictionaryTagsSchema = import_zod28.z.object({
|
|
2306
|
+
classification: import_zod28.z.array(DictionaryClassificationSchema).nullish()
|
|
2215
2307
|
}).passthrough();
|
|
2216
|
-
var ResourceModelExtensionSchema =
|
|
2217
|
-
key:
|
|
2218
|
-
value:
|
|
2308
|
+
var ResourceModelExtensionSchema = import_zod28.z.object({
|
|
2309
|
+
key: import_zod28.z.string().nullish(),
|
|
2310
|
+
value: import_zod28.z.string().nullish()
|
|
2219
2311
|
}).passthrough();
|
|
2220
|
-
var DictionaryRequestSchema =
|
|
2312
|
+
var DictionaryRequestSchema = import_zod28.z.object({
|
|
2221
2313
|
category: DictionaryCategorySchema,
|
|
2222
|
-
name:
|
|
2223
|
-
original_file_name:
|
|
2224
|
-
region_name:
|
|
2225
|
-
description:
|
|
2226
|
-
is_case_sensitive:
|
|
2314
|
+
name: import_zod28.z.string(),
|
|
2315
|
+
original_file_name: import_zod28.z.string(),
|
|
2316
|
+
region_name: import_zod28.z.string(),
|
|
2317
|
+
description: import_zod28.z.string().optional(),
|
|
2318
|
+
is_case_sensitive: import_zod28.z.boolean().optional(),
|
|
2227
2319
|
type: DictionaryTypeSchema.optional()
|
|
2228
2320
|
}).passthrough();
|
|
2229
|
-
var DictionaryPatchRequestSchema =
|
|
2321
|
+
var DictionaryPatchRequestSchema = import_zod28.z.object({
|
|
2230
2322
|
category: DictionaryCategorySchema,
|
|
2231
|
-
name:
|
|
2232
|
-
original_file_name:
|
|
2233
|
-
description: jsonNullable(
|
|
2234
|
-
is_case_sensitive: jsonNullable(
|
|
2235
|
-
region_name: jsonNullable(
|
|
2236
|
-
}).passthrough();
|
|
2237
|
-
var DictionaryResponseSchema =
|
|
2238
|
-
id:
|
|
2239
|
-
name:
|
|
2240
|
-
description:
|
|
2241
|
-
category:
|
|
2242
|
-
region_name:
|
|
2323
|
+
name: import_zod28.z.string(),
|
|
2324
|
+
original_file_name: import_zod28.z.string(),
|
|
2325
|
+
description: jsonNullable(import_zod28.z.string()),
|
|
2326
|
+
is_case_sensitive: jsonNullable(import_zod28.z.boolean()),
|
|
2327
|
+
region_name: jsonNullable(import_zod28.z.string())
|
|
2328
|
+
}).passthrough();
|
|
2329
|
+
var DictionaryResponseSchema = import_zod28.z.object({
|
|
2330
|
+
id: import_zod28.z.string().nullish(),
|
|
2331
|
+
name: import_zod28.z.string().nullish(),
|
|
2332
|
+
description: import_zod28.z.string().nullish(),
|
|
2333
|
+
category: import_zod28.z.string().nullish(),
|
|
2334
|
+
region_name: import_zod28.z.string().nullish(),
|
|
2243
2335
|
type: DictionaryTypeSchema.nullish(),
|
|
2244
|
-
is_case_sensitive:
|
|
2245
|
-
is_parent_managed:
|
|
2336
|
+
is_case_sensitive: import_zod28.z.boolean().nullish(),
|
|
2337
|
+
is_parent_managed: import_zod28.z.boolean().nullish(),
|
|
2246
2338
|
detection_technique: DictionaryDetectionTechniqueSchema.nullish(),
|
|
2247
2339
|
detection_sub_technique: DictionaryDetectionSubTechniqueSchema.nullish(),
|
|
2248
2340
|
dictionary_metadata: DictionaryMetaDataDTOSchema.nullish(),
|
|
2249
2341
|
/** Keyword list — populated only when `keywords=true` is passed as a query parameter. */
|
|
2250
|
-
keywords:
|
|
2342
|
+
keywords: import_zod28.z.array(import_zod28.z.string()).nullish(),
|
|
2251
2343
|
tags: DictionaryTagsSchema.nullish(),
|
|
2252
|
-
attributes:
|
|
2344
|
+
attributes: import_zod28.z.array(ResourceModelExtensionSchema).nullish(),
|
|
2253
2345
|
audit_metadata: AuditResponseSchema.nullish()
|
|
2254
2346
|
}).passthrough();
|
|
2255
2347
|
var PageDictionaryResponseSchema = pageSchema(DictionaryResponseSchema);
|
|
2256
2348
|
|
|
2257
2349
|
// src/models/dlp-data-pattern.ts
|
|
2258
|
-
var
|
|
2259
|
-
var DataPatternTypeSchema =
|
|
2260
|
-
var DataPatternTechniqueSchema =
|
|
2350
|
+
var import_zod29 = require("zod");
|
|
2351
|
+
var DataPatternTypeSchema = import_zod29.z.enum(["predefined", "custom", "file_property"]);
|
|
2352
|
+
var DataPatternTechniqueSchema = import_zod29.z.enum([
|
|
2261
2353
|
"edm",
|
|
2262
2354
|
"document_fingerprint",
|
|
2263
2355
|
"trainable_classifier",
|
|
@@ -2272,75 +2364,75 @@ var DataPatternTechniqueSchema = import_zod28.z.enum([
|
|
|
2272
2364
|
"pab",
|
|
2273
2365
|
"document_classifier"
|
|
2274
2366
|
]);
|
|
2275
|
-
var DataPatternConfidenceLevelSchema =
|
|
2276
|
-
var DataPatternLicenseTypeSchema =
|
|
2277
|
-
var DataPatternStatusSchema =
|
|
2367
|
+
var DataPatternConfidenceLevelSchema = import_zod29.z.enum(["low", "medium", "high"]);
|
|
2368
|
+
var DataPatternLicenseTypeSchema = import_zod29.z.enum(["standard", "enterprise", "essentials"]);
|
|
2369
|
+
var DataPatternStatusSchema = import_zod29.z.enum([
|
|
2278
2370
|
"active",
|
|
2279
2371
|
"disabled",
|
|
2280
2372
|
"deleted",
|
|
2281
2373
|
"deprecated",
|
|
2282
2374
|
"silent"
|
|
2283
2375
|
]);
|
|
2284
|
-
var ComparisonOperatorTypeSchema =
|
|
2376
|
+
var ComparisonOperatorTypeSchema = import_zod29.z.enum([
|
|
2285
2377
|
"less_than",
|
|
2286
2378
|
"less_than_or_equal_to",
|
|
2287
2379
|
"greater_than_or_equal_to",
|
|
2288
2380
|
"greater_than",
|
|
2289
2381
|
"equal_to"
|
|
2290
2382
|
]);
|
|
2291
|
-
var WeightedRegexSchema =
|
|
2292
|
-
regex:
|
|
2293
|
-
weight:
|
|
2383
|
+
var WeightedRegexSchema = import_zod29.z.object({
|
|
2384
|
+
regex: import_zod29.z.string().min(1),
|
|
2385
|
+
weight: import_zod29.z.number()
|
|
2294
2386
|
}).passthrough();
|
|
2295
|
-
var MetadataCriterionSchema =
|
|
2387
|
+
var MetadataCriterionSchema = import_zod29.z.object({
|
|
2296
2388
|
comparisonOperatorType: ComparisonOperatorTypeSchema.nullish(),
|
|
2297
|
-
name:
|
|
2298
|
-
type:
|
|
2299
|
-
value:
|
|
2389
|
+
name: import_zod29.z.string().nullish(),
|
|
2390
|
+
type: import_zod29.z.string().nullish(),
|
|
2391
|
+
value: import_zod29.z.string().nullish()
|
|
2300
2392
|
}).passthrough();
|
|
2301
|
-
var DataPatternDetectionConfigSchema =
|
|
2393
|
+
var DataPatternDetectionConfigSchema = import_zod29.z.object({
|
|
2302
2394
|
technique: DataPatternTechniqueSchema,
|
|
2303
|
-
supported_confidence_levels:
|
|
2395
|
+
supported_confidence_levels: import_zod29.z.array(DataPatternConfidenceLevelSchema).nullish()
|
|
2304
2396
|
}).passthrough();
|
|
2305
|
-
var DataPatternMatchingRulesSchema =
|
|
2306
|
-
delimiter:
|
|
2397
|
+
var DataPatternMatchingRulesSchema = import_zod29.z.object({
|
|
2398
|
+
delimiter: import_zod29.z.string().nullish(),
|
|
2307
2399
|
/** Proximity window for keyword matching — spec bounds 2..1000 inclusive. */
|
|
2308
|
-
proximity_distance:
|
|
2309
|
-
proximity_keywords:
|
|
2310
|
-
regexes:
|
|
2311
|
-
metadata_criteria:
|
|
2312
|
-
}).passthrough();
|
|
2313
|
-
var DataPatternTagsSchema =
|
|
2314
|
-
classification:
|
|
2315
|
-
compliance:
|
|
2316
|
-
geography:
|
|
2317
|
-
}).passthrough();
|
|
2318
|
-
var DataPatternRequestSchema =
|
|
2319
|
-
name:
|
|
2400
|
+
proximity_distance: import_zod29.z.number().int().min(2).max(1e3).nullish(),
|
|
2401
|
+
proximity_keywords: import_zod29.z.array(import_zod29.z.string()).nullish(),
|
|
2402
|
+
regexes: import_zod29.z.array(WeightedRegexSchema).nullish(),
|
|
2403
|
+
metadata_criteria: import_zod29.z.array(MetadataCriterionSchema).nullish()
|
|
2404
|
+
}).passthrough();
|
|
2405
|
+
var DataPatternTagsSchema = import_zod29.z.object({
|
|
2406
|
+
classification: import_zod29.z.array(import_zod29.z.string()).nullish(),
|
|
2407
|
+
compliance: import_zod29.z.array(import_zod29.z.string()).nullish(),
|
|
2408
|
+
geography: import_zod29.z.array(import_zod29.z.string()).nullish()
|
|
2409
|
+
}).passthrough();
|
|
2410
|
+
var DataPatternRequestSchema = import_zod29.z.object({
|
|
2411
|
+
name: import_zod29.z.string().min(1).max(64),
|
|
2320
2412
|
type: DataPatternTypeSchema,
|
|
2321
2413
|
detection_config: DataPatternDetectionConfigSchema,
|
|
2322
|
-
description:
|
|
2414
|
+
description: import_zod29.z.string().optional(),
|
|
2323
2415
|
matching_rules: DataPatternMatchingRulesSchema.optional(),
|
|
2324
2416
|
tags: DataPatternTagsSchema.optional()
|
|
2325
2417
|
}).passthrough();
|
|
2326
|
-
var DataPatternPatchRequestSchema =
|
|
2327
|
-
name:
|
|
2418
|
+
var DataPatternPatchRequestSchema = import_zod29.z.object({
|
|
2419
|
+
name: import_zod29.z.string().min(1).max(64),
|
|
2328
2420
|
type: DataPatternTypeSchema,
|
|
2329
2421
|
detection_config: DataPatternDetectionConfigSchema,
|
|
2330
|
-
description: jsonNullable(
|
|
2422
|
+
description: jsonNullable(import_zod29.z.string()),
|
|
2331
2423
|
matching_rules: jsonNullable(DataPatternMatchingRulesSchema),
|
|
2332
2424
|
tags: jsonNullable(DataPatternTagsSchema)
|
|
2333
2425
|
}).passthrough();
|
|
2334
|
-
var DataPatternResponseSchema =
|
|
2335
|
-
id:
|
|
2336
|
-
name:
|
|
2337
|
-
description:
|
|
2338
|
-
tenant_id:
|
|
2426
|
+
var DataPatternResponseSchema = import_zod29.z.object({
|
|
2427
|
+
id: import_zod29.z.string().nullish(),
|
|
2428
|
+
name: import_zod29.z.string().nullish(),
|
|
2429
|
+
description: import_zod29.z.string().nullish(),
|
|
2430
|
+
tenant_id: import_zod29.z.string().nullish(),
|
|
2339
2431
|
type: DataPatternTypeSchema.nullish(),
|
|
2340
2432
|
status: DataPatternStatusSchema.nullish(),
|
|
2341
2433
|
license_type: DataPatternLicenseTypeSchema.nullish(),
|
|
2342
|
-
is_parent_managed:
|
|
2343
|
-
version:
|
|
2434
|
+
is_parent_managed: import_zod29.z.boolean().nullish(),
|
|
2435
|
+
version: import_zod29.z.number().nullish(),
|
|
2344
2436
|
detection_config: DataPatternDetectionConfigSchema.nullish(),
|
|
2345
2437
|
matching_rules: DataPatternMatchingRulesSchema.nullish(),
|
|
2346
2438
|
tags: DataPatternTagsSchema.nullish(),
|
|
@@ -2349,9 +2441,9 @@ var DataPatternResponseSchema = import_zod28.z.object({
|
|
|
2349
2441
|
var PageDataPatternResponseSchema = pageSchema(DataPatternResponseSchema);
|
|
2350
2442
|
|
|
2351
2443
|
// src/models/dlp-data-profile.ts
|
|
2352
|
-
var
|
|
2353
|
-
var ExpressionOperatorTypeSchema =
|
|
2354
|
-
var RuleItemDetectionTechniqueSchema =
|
|
2444
|
+
var import_zod30 = require("zod");
|
|
2445
|
+
var ExpressionOperatorTypeSchema = import_zod30.z.enum(["and", "or", "not", "and_not", "or_not"]);
|
|
2446
|
+
var RuleItemDetectionTechniqueSchema = import_zod30.z.enum([
|
|
2355
2447
|
"edm",
|
|
2356
2448
|
"document_fingerprint",
|
|
2357
2449
|
"trainable_classifier",
|
|
@@ -2366,200 +2458,200 @@ var RuleItemDetectionTechniqueSchema = import_zod29.z.enum([
|
|
|
2366
2458
|
"pab",
|
|
2367
2459
|
"document_classifier"
|
|
2368
2460
|
]);
|
|
2369
|
-
var RuleItemMatchTypeSchema =
|
|
2370
|
-
var RuleItemOccurrenceOperatorTypeSchema =
|
|
2461
|
+
var RuleItemMatchTypeSchema = import_zod30.z.enum(["include", "exclude"]);
|
|
2462
|
+
var RuleItemOccurrenceOperatorTypeSchema = import_zod30.z.enum([
|
|
2371
2463
|
"any",
|
|
2372
2464
|
"less_than_equal_to",
|
|
2373
2465
|
"more_than_equal_to",
|
|
2374
2466
|
"between"
|
|
2375
2467
|
]);
|
|
2376
|
-
var RuleItemConfidenceLevelSchema =
|
|
2377
|
-
var RuleItemEdmMatchCriteriaSchema =
|
|
2378
|
-
var DataProfileTypeSchema =
|
|
2379
|
-
var DataProfileStatusSchema =
|
|
2380
|
-
var DataProfileSubtypeSchema =
|
|
2381
|
-
var DetectionRuleItemSchema =
|
|
2468
|
+
var RuleItemConfidenceLevelSchema = import_zod30.z.enum(["low", "medium", "high"]);
|
|
2469
|
+
var RuleItemEdmMatchCriteriaSchema = import_zod30.z.enum(["any", "all"]);
|
|
2470
|
+
var DataProfileTypeSchema = import_zod30.z.enum(["basic", "advanced"]);
|
|
2471
|
+
var DataProfileStatusSchema = import_zod30.z.enum(["active", "disabled", "deleted"]);
|
|
2472
|
+
var DataProfileSubtypeSchema = import_zod30.z.enum(["custom", "predefined"]);
|
|
2473
|
+
var DetectionRuleItemSchema = import_zod30.z.object({
|
|
2382
2474
|
detection_technique: RuleItemDetectionTechniqueSchema,
|
|
2383
|
-
id:
|
|
2384
|
-
name:
|
|
2385
|
-
description:
|
|
2386
|
-
version:
|
|
2475
|
+
id: import_zod30.z.string().nullish(),
|
|
2476
|
+
name: import_zod30.z.string().nullish(),
|
|
2477
|
+
description: import_zod30.z.string().nullish(),
|
|
2478
|
+
version: import_zod30.z.number().int().nullish(),
|
|
2387
2479
|
match_type: RuleItemMatchTypeSchema.nullish(),
|
|
2388
|
-
by_unique_count:
|
|
2480
|
+
by_unique_count: import_zod30.z.boolean().nullish(),
|
|
2389
2481
|
confidence_level: RuleItemConfidenceLevelSchema.nullish(),
|
|
2390
|
-
supported_confidence_levels:
|
|
2391
|
-
occurrence_count:
|
|
2392
|
-
occurrence_high:
|
|
2393
|
-
occurrence_low:
|
|
2482
|
+
supported_confidence_levels: import_zod30.z.array(RuleItemConfidenceLevelSchema).nullish(),
|
|
2483
|
+
occurrence_count: import_zod30.z.number().int().nullish(),
|
|
2484
|
+
occurrence_high: import_zod30.z.number().int().nullish(),
|
|
2485
|
+
occurrence_low: import_zod30.z.number().int().nullish(),
|
|
2394
2486
|
occurrence_operator_type: RuleItemOccurrenceOperatorTypeSchema.nullish(),
|
|
2395
2487
|
// dictionary + document-type fields
|
|
2396
|
-
score:
|
|
2397
|
-
score_high:
|
|
2398
|
-
score_low:
|
|
2488
|
+
score: import_zod30.z.number().int().nullish(),
|
|
2489
|
+
score_high: import_zod30.z.number().int().nullish(),
|
|
2490
|
+
score_low: import_zod30.z.number().int().nullish(),
|
|
2399
2491
|
// edm fields
|
|
2400
|
-
edm_dataset_id:
|
|
2401
|
-
primary_fields:
|
|
2492
|
+
edm_dataset_id: import_zod30.z.string().nullish(),
|
|
2493
|
+
primary_fields: import_zod30.z.array(import_zod30.z.string()).nullish(),
|
|
2402
2494
|
primary_match_criteria: RuleItemEdmMatchCriteriaSchema.nullish(),
|
|
2403
|
-
primary_match_any_count:
|
|
2404
|
-
secondary_fields:
|
|
2495
|
+
primary_match_any_count: import_zod30.z.number().int().nullish(),
|
|
2496
|
+
secondary_fields: import_zod30.z.array(import_zod30.z.string()).nullish(),
|
|
2405
2497
|
secondary_match_criteria: RuleItemEdmMatchCriteriaSchema.nullish(),
|
|
2406
|
-
secondary_match_any_count:
|
|
2498
|
+
secondary_match_any_count: import_zod30.z.number().int().nullish()
|
|
2407
2499
|
}).passthrough();
|
|
2408
|
-
var ExpressionTreeNodeSchema =
|
|
2409
|
-
() =>
|
|
2500
|
+
var ExpressionTreeNodeSchema = import_zod30.z.lazy(
|
|
2501
|
+
() => import_zod30.z.object({
|
|
2410
2502
|
operator_type: ExpressionOperatorTypeSchema.nullish(),
|
|
2411
2503
|
rule_item: DetectionRuleItemSchema.nullish(),
|
|
2412
|
-
sub_expressions:
|
|
2504
|
+
sub_expressions: import_zod30.z.array(ExpressionTreeNodeSchema).nullish()
|
|
2413
2505
|
}).passthrough()
|
|
2414
2506
|
);
|
|
2415
|
-
var MultiProfileDataNodeSchema =
|
|
2416
|
-
data_profile_ids:
|
|
2507
|
+
var MultiProfileDataNodeSchema = import_zod30.z.object({
|
|
2508
|
+
data_profile_ids: import_zod30.z.array(import_zod30.z.number()).nullish(),
|
|
2417
2509
|
operator_type: ExpressionOperatorTypeSchema.nullish()
|
|
2418
2510
|
}).passthrough();
|
|
2419
|
-
var DefaultTreeDetectionRuleSchema =
|
|
2420
|
-
rule_type:
|
|
2511
|
+
var DefaultTreeDetectionRuleSchema = import_zod30.z.object({
|
|
2512
|
+
rule_type: import_zod30.z.literal("expression_tree"),
|
|
2421
2513
|
expression_tree: ExpressionTreeNodeSchema.nullish()
|
|
2422
2514
|
}).passthrough();
|
|
2423
|
-
var MultiProfileDetectionRuleSchema =
|
|
2424
|
-
rule_type:
|
|
2515
|
+
var MultiProfileDetectionRuleSchema = import_zod30.z.object({
|
|
2516
|
+
rule_type: import_zod30.z.literal("multi_profile"),
|
|
2425
2517
|
multi_profile: MultiProfileDataNodeSchema.nullish()
|
|
2426
2518
|
}).passthrough();
|
|
2427
|
-
var DetectionRuleSchema =
|
|
2519
|
+
var DetectionRuleSchema = import_zod30.z.discriminatedUnion("rule_type", [
|
|
2428
2520
|
DefaultTreeDetectionRuleSchema,
|
|
2429
2521
|
MultiProfileDetectionRuleSchema
|
|
2430
2522
|
]);
|
|
2431
|
-
var AdvancedDataProfileRequestSchema =
|
|
2432
|
-
name:
|
|
2433
|
-
detection_rules:
|
|
2434
|
-
description:
|
|
2435
|
-
is_granular_data_profile:
|
|
2523
|
+
var AdvancedDataProfileRequestSchema = import_zod30.z.object({
|
|
2524
|
+
name: import_zod30.z.string().min(1).max(64),
|
|
2525
|
+
detection_rules: import_zod30.z.array(DetectionRuleSchema),
|
|
2526
|
+
description: import_zod30.z.string().optional(),
|
|
2527
|
+
is_granular_data_profile: import_zod30.z.boolean().optional()
|
|
2436
2528
|
}).passthrough();
|
|
2437
|
-
var DataProfilePatchRequestSchema =
|
|
2438
|
-
name:
|
|
2529
|
+
var DataProfilePatchRequestSchema = import_zod30.z.object({
|
|
2530
|
+
name: import_zod30.z.string(),
|
|
2439
2531
|
profile_type: DataProfileTypeSchema,
|
|
2440
|
-
description: jsonNullable(
|
|
2441
|
-
detection_rules: jsonNullable(
|
|
2532
|
+
description: jsonNullable(import_zod30.z.string()),
|
|
2533
|
+
detection_rules: jsonNullable(import_zod30.z.array(DetectionRuleSchema))
|
|
2442
2534
|
}).passthrough();
|
|
2443
|
-
var DataProfileResponseSchema =
|
|
2444
|
-
id:
|
|
2445
|
-
name:
|
|
2446
|
-
description:
|
|
2447
|
-
tenant_id:
|
|
2535
|
+
var DataProfileResponseSchema = import_zod30.z.object({
|
|
2536
|
+
id: import_zod30.z.string().nullish(),
|
|
2537
|
+
name: import_zod30.z.string().nullish(),
|
|
2538
|
+
description: import_zod30.z.string().nullish(),
|
|
2539
|
+
tenant_id: import_zod30.z.string().nullish(),
|
|
2448
2540
|
type: DataProfileSubtypeSchema.nullish(),
|
|
2449
2541
|
profile_status: DataProfileStatusSchema.nullish(),
|
|
2450
2542
|
profile_type: DataProfileTypeSchema.nullish(),
|
|
2451
|
-
is_granular_data_profile:
|
|
2452
|
-
is_parent_managed:
|
|
2453
|
-
version:
|
|
2454
|
-
advance_data_patterns_rule_request:
|
|
2455
|
-
detection_rules:
|
|
2543
|
+
is_granular_data_profile: import_zod30.z.boolean().nullish(),
|
|
2544
|
+
is_parent_managed: import_zod30.z.boolean().nullish(),
|
|
2545
|
+
version: import_zod30.z.number().int().nullish(),
|
|
2546
|
+
advance_data_patterns_rule_request: import_zod30.z.array(import_zod30.z.string()).nullish(),
|
|
2547
|
+
detection_rules: import_zod30.z.array(DetectionRuleSchema).nullish(),
|
|
2456
2548
|
audit_metadata: AuditResponseSchema.nullish()
|
|
2457
2549
|
}).passthrough();
|
|
2458
2550
|
var PageDataProfileResponseSchema = pageSchema(DataProfileResponseSchema);
|
|
2459
2551
|
|
|
2460
2552
|
// src/models/dlp-data-filtering-profile.ts
|
|
2461
|
-
var
|
|
2462
|
-
var AppExclusionSchema =
|
|
2463
|
-
app_id:
|
|
2464
|
-
app_name:
|
|
2465
|
-
type:
|
|
2553
|
+
var import_zod31 = require("zod");
|
|
2554
|
+
var AppExclusionSchema = import_zod31.z.object({
|
|
2555
|
+
app_id: import_zod31.z.string().nullish(),
|
|
2556
|
+
app_name: import_zod31.z.string().nullish(),
|
|
2557
|
+
type: import_zod31.z.string().nullish()
|
|
2466
2558
|
}).passthrough();
|
|
2467
|
-
var URLExclusionSchema =
|
|
2468
|
-
type:
|
|
2469
|
-
url_id:
|
|
2470
|
-
url_name:
|
|
2559
|
+
var URLExclusionSchema = import_zod31.z.object({
|
|
2560
|
+
type: import_zod31.z.string().nullish(),
|
|
2561
|
+
url_id: import_zod31.z.string().nullish(),
|
|
2562
|
+
url_name: import_zod31.z.string().nullish()
|
|
2471
2563
|
}).passthrough();
|
|
2472
|
-
var ExclusionsSchema =
|
|
2473
|
-
app_exclusion_list:
|
|
2474
|
-
url_exclusion_list:
|
|
2564
|
+
var ExclusionsSchema = import_zod31.z.object({
|
|
2565
|
+
app_exclusion_list: import_zod31.z.array(AppExclusionSchema).nullish(),
|
|
2566
|
+
url_exclusion_list: import_zod31.z.array(URLExclusionSchema).nullish(),
|
|
2475
2567
|
/**
|
|
2476
2568
|
* Map of category-name → string-array. `additionalProperties: { type: array of string }`
|
|
2477
2569
|
* in the OpenAPI spec; modeled here as `z.record(z.array(z.string()))`.
|
|
2478
2570
|
*/
|
|
2479
|
-
exclusion_list:
|
|
2571
|
+
exclusion_list: import_zod31.z.record(import_zod31.z.array(import_zod31.z.string())).nullish()
|
|
2480
2572
|
}).passthrough();
|
|
2481
|
-
var SourceAttributesSchema =
|
|
2482
|
-
match_any:
|
|
2483
|
-
user_group_ids:
|
|
2484
|
-
user_ids:
|
|
2573
|
+
var SourceAttributesSchema = import_zod31.z.object({
|
|
2574
|
+
match_any: import_zod31.z.boolean().nullish(),
|
|
2575
|
+
user_group_ids: import_zod31.z.array(import_zod31.z.string()).nullish(),
|
|
2576
|
+
user_ids: import_zod31.z.array(import_zod31.z.string()).nullish()
|
|
2485
2577
|
}).passthrough();
|
|
2486
|
-
var DestinationAttributesSchema =
|
|
2487
|
-
match_any:
|
|
2488
|
-
app_ids:
|
|
2489
|
-
url_patterns:
|
|
2578
|
+
var DestinationAttributesSchema = import_zod31.z.object({
|
|
2579
|
+
match_any: import_zod31.z.boolean().nullish(),
|
|
2580
|
+
app_ids: import_zod31.z.array(import_zod31.z.string()).nullish(),
|
|
2581
|
+
url_patterns: import_zod31.z.array(import_zod31.z.string()).nullish()
|
|
2490
2582
|
}).passthrough();
|
|
2491
|
-
var ExceptionRuleDTOSchema =
|
|
2492
|
-
id:
|
|
2493
|
-
action:
|
|
2494
|
-
log_severity:
|
|
2583
|
+
var ExceptionRuleDTOSchema = import_zod31.z.object({
|
|
2584
|
+
id: import_zod31.z.string().nullish(),
|
|
2585
|
+
action: import_zod31.z.enum(["ALLOW", "ALERT", "BLOCK"]).nullish(),
|
|
2586
|
+
log_severity: import_zod31.z.enum(["INFORMATIONAL", "LOW", "MEDIUM", "HIGH", "CRITICAL"]).nullish(),
|
|
2495
2587
|
/**
|
|
2496
2588
|
* `int64` per spec; declared as `z.number()` since JS numbers cover any realistic
|
|
2497
2589
|
* data_profile_id and the SDK never round-trips these unmodified.
|
|
2498
2590
|
*/
|
|
2499
|
-
data_profile_ids:
|
|
2591
|
+
data_profile_ids: import_zod31.z.array(import_zod31.z.number()).nullish(),
|
|
2500
2592
|
destination_attributes: DestinationAttributesSchema.nullish(),
|
|
2501
2593
|
source_attributes: SourceAttributesSchema.nullish()
|
|
2502
2594
|
}).passthrough();
|
|
2503
|
-
var DataFilteringRuleDTOSchema =
|
|
2504
|
-
action:
|
|
2505
|
-
response_page:
|
|
2506
|
-
show_rsp_page:
|
|
2507
|
-
}).passthrough();
|
|
2508
|
-
var DataFilteringDetailsSchema =
|
|
2509
|
-
action:
|
|
2510
|
-
dataProfileId:
|
|
2511
|
-
direction:
|
|
2512
|
-
euc_template_id:
|
|
2513
|
-
fileBased:
|
|
2514
|
-
fileTypes:
|
|
2515
|
-
is_end_user_coaching_enabled:
|
|
2516
|
-
logSeverity:
|
|
2517
|
-
nonFileBased:
|
|
2518
|
-
scanType:
|
|
2519
|
-
}).passthrough();
|
|
2520
|
-
var DataFilteringProfileRequestSchema =
|
|
2521
|
-
file_based:
|
|
2522
|
-
non_file_based:
|
|
2523
|
-
description:
|
|
2524
|
-
direction:
|
|
2525
|
-
log_severity:
|
|
2526
|
-
scan_type:
|
|
2595
|
+
var DataFilteringRuleDTOSchema = import_zod31.z.object({
|
|
2596
|
+
action: import_zod31.z.string().nullish(),
|
|
2597
|
+
response_page: import_zod31.z.string().nullish(),
|
|
2598
|
+
show_rsp_page: import_zod31.z.string().nullish()
|
|
2599
|
+
}).passthrough();
|
|
2600
|
+
var DataFilteringDetailsSchema = import_zod31.z.object({
|
|
2601
|
+
action: import_zod31.z.string().nullish(),
|
|
2602
|
+
dataProfileId: import_zod31.z.number().nullish(),
|
|
2603
|
+
direction: import_zod31.z.string().nullish(),
|
|
2604
|
+
euc_template_id: import_zod31.z.string().nullish(),
|
|
2605
|
+
fileBased: import_zod31.z.string().nullish(),
|
|
2606
|
+
fileTypes: import_zod31.z.array(import_zod31.z.string()).nullish(),
|
|
2607
|
+
is_end_user_coaching_enabled: import_zod31.z.boolean().nullish(),
|
|
2608
|
+
logSeverity: import_zod31.z.string().nullish(),
|
|
2609
|
+
nonFileBased: import_zod31.z.string().nullish(),
|
|
2610
|
+
scanType: import_zod31.z.string().nullish()
|
|
2611
|
+
}).passthrough();
|
|
2612
|
+
var DataFilteringProfileRequestSchema = import_zod31.z.object({
|
|
2613
|
+
file_based: import_zod31.z.boolean(),
|
|
2614
|
+
non_file_based: import_zod31.z.boolean(),
|
|
2615
|
+
description: import_zod31.z.string().optional(),
|
|
2616
|
+
direction: import_zod31.z.enum(["BOTH", "UPLOAD", "DOWNLOAD"]).optional(),
|
|
2617
|
+
log_severity: import_zod31.z.enum(["CRITICAL", "HIGH", "MEDIUM", "LOW", "INFORMATIONAL"]).optional(),
|
|
2618
|
+
scan_type: import_zod31.z.enum(["include", "exclude"]).optional(),
|
|
2527
2619
|
/**
|
|
2528
2620
|
* `int64` per spec; declared as `z.number()`. JS will lose precision above 2^53 but
|
|
2529
2621
|
* real-world IDs stay well under that ceiling.
|
|
2530
2622
|
*/
|
|
2531
|
-
data_profile_id:
|
|
2532
|
-
euc_template_id:
|
|
2533
|
-
is_end_user_coaching_enabled:
|
|
2534
|
-
is_granular_profile:
|
|
2535
|
-
file_type:
|
|
2536
|
-
criteria_details:
|
|
2537
|
-
exception_rules:
|
|
2623
|
+
data_profile_id: import_zod31.z.number().optional(),
|
|
2624
|
+
euc_template_id: import_zod31.z.string().optional(),
|
|
2625
|
+
is_end_user_coaching_enabled: import_zod31.z.boolean().optional(),
|
|
2626
|
+
is_granular_profile: import_zod31.z.boolean().optional(),
|
|
2627
|
+
file_type: import_zod31.z.array(import_zod31.z.string()).optional(),
|
|
2628
|
+
criteria_details: import_zod31.z.array(DataFilteringDetailsSchema).optional(),
|
|
2629
|
+
exception_rules: import_zod31.z.array(ExceptionRuleDTOSchema).optional(),
|
|
2538
2630
|
exclusions: ExclusionsSchema.optional(),
|
|
2539
2631
|
rule1: DataFilteringRuleDTOSchema.optional(),
|
|
2540
2632
|
rule2: DataFilteringRuleDTOSchema.optional()
|
|
2541
2633
|
}).passthrough();
|
|
2542
|
-
var DataFilteringProfileResponseSchema =
|
|
2543
|
-
id:
|
|
2544
|
-
name:
|
|
2545
|
-
description:
|
|
2546
|
-
tenant_id:
|
|
2547
|
-
type:
|
|
2548
|
-
data_profile_id:
|
|
2549
|
-
direction:
|
|
2550
|
-
file_based:
|
|
2551
|
-
non_file_based:
|
|
2552
|
-
log_severity:
|
|
2553
|
-
scan_type:
|
|
2554
|
-
is_end_user_coaching_enabled:
|
|
2555
|
-
is_granular_profile:
|
|
2556
|
-
is_parent_managed:
|
|
2557
|
-
euc_template_id:
|
|
2558
|
-
version:
|
|
2559
|
-
file_type:
|
|
2634
|
+
var DataFilteringProfileResponseSchema = import_zod31.z.object({
|
|
2635
|
+
id: import_zod31.z.string().nullish(),
|
|
2636
|
+
name: import_zod31.z.string().nullish(),
|
|
2637
|
+
description: import_zod31.z.string().nullish(),
|
|
2638
|
+
tenant_id: import_zod31.z.string().nullish(),
|
|
2639
|
+
type: import_zod31.z.string().nullish(),
|
|
2640
|
+
data_profile_id: import_zod31.z.number().nullish(),
|
|
2641
|
+
direction: import_zod31.z.string().nullish(),
|
|
2642
|
+
file_based: import_zod31.z.boolean().nullish(),
|
|
2643
|
+
non_file_based: import_zod31.z.boolean().nullish(),
|
|
2644
|
+
log_severity: import_zod31.z.string().nullish(),
|
|
2645
|
+
scan_type: import_zod31.z.enum(["include", "exclude"]).nullish(),
|
|
2646
|
+
is_end_user_coaching_enabled: import_zod31.z.boolean().nullish(),
|
|
2647
|
+
is_granular_profile: import_zod31.z.boolean().nullish(),
|
|
2648
|
+
is_parent_managed: import_zod31.z.boolean().nullish(),
|
|
2649
|
+
euc_template_id: import_zod31.z.string().nullish(),
|
|
2650
|
+
version: import_zod31.z.number().nullish(),
|
|
2651
|
+
file_type: import_zod31.z.array(import_zod31.z.string()).nullish(),
|
|
2560
2652
|
audit_metadata: AuditResponseSchema.nullish(),
|
|
2561
|
-
criteria_details:
|
|
2562
|
-
exception_rules:
|
|
2653
|
+
criteria_details: import_zod31.z.array(DataFilteringDetailsSchema).nullish(),
|
|
2654
|
+
exception_rules: import_zod31.z.array(ExceptionRuleDTOSchema).nullish(),
|
|
2563
2655
|
exclusions: ExclusionsSchema.nullish(),
|
|
2564
2656
|
rule1: DataFilteringRuleDTOSchema.nullish(),
|
|
2565
2657
|
rule2: DataFilteringRuleDTOSchema.nullish()
|
|
@@ -2698,240 +2790,240 @@ var RuleFieldValueKey = {
|
|
|
2698
2790
|
};
|
|
2699
2791
|
|
|
2700
2792
|
// src/models/model-security.ts
|
|
2701
|
-
var
|
|
2702
|
-
var ModelSecurityPaginationSchema =
|
|
2703
|
-
total_items:
|
|
2793
|
+
var import_zod32 = require("zod");
|
|
2794
|
+
var ModelSecurityPaginationSchema = import_zod32.z.object({
|
|
2795
|
+
total_items: import_zod32.z.number().int().nullable().optional()
|
|
2704
2796
|
}).passthrough();
|
|
2705
|
-
var LabelSchema =
|
|
2706
|
-
key:
|
|
2707
|
-
value:
|
|
2797
|
+
var LabelSchema = import_zod32.z.object({
|
|
2798
|
+
key: import_zod32.z.string(),
|
|
2799
|
+
value: import_zod32.z.string()
|
|
2708
2800
|
}).passthrough();
|
|
2709
|
-
var LabelsCreateRequestSchema =
|
|
2710
|
-
labels:
|
|
2801
|
+
var LabelsCreateRequestSchema = import_zod32.z.object({
|
|
2802
|
+
labels: import_zod32.z.array(LabelSchema)
|
|
2711
2803
|
}).passthrough();
|
|
2712
|
-
var LabelsResponseSchema =
|
|
2713
|
-
var LabelKeyListSchema =
|
|
2804
|
+
var LabelsResponseSchema = import_zod32.z.object({}).passthrough();
|
|
2805
|
+
var LabelKeyListSchema = import_zod32.z.object({
|
|
2714
2806
|
pagination: ModelSecurityPaginationSchema,
|
|
2715
|
-
keys:
|
|
2807
|
+
keys: import_zod32.z.array(import_zod32.z.string())
|
|
2716
2808
|
}).passthrough();
|
|
2717
|
-
var LabelValueListSchema =
|
|
2809
|
+
var LabelValueListSchema = import_zod32.z.object({
|
|
2718
2810
|
pagination: ModelSecurityPaginationSchema,
|
|
2719
|
-
values:
|
|
2720
|
-
}).passthrough();
|
|
2721
|
-
var EvalSummarySchema =
|
|
2722
|
-
rules_failed:
|
|
2723
|
-
rules_passed:
|
|
2724
|
-
total_rules:
|
|
2725
|
-
}).passthrough();
|
|
2726
|
-
var ModelScanIssueSchema =
|
|
2727
|
-
description:
|
|
2728
|
-
source:
|
|
2729
|
-
threat:
|
|
2730
|
-
module:
|
|
2731
|
-
operator:
|
|
2732
|
-
}).passthrough();
|
|
2733
|
-
var FileScanDataSchema =
|
|
2734
|
-
file_path:
|
|
2735
|
-
modelscan_status:
|
|
2736
|
-
blob_id:
|
|
2737
|
-
error_message:
|
|
2738
|
-
formats:
|
|
2739
|
-
issues_detected:
|
|
2740
|
-
}).passthrough();
|
|
2741
|
-
var ScanDetailsSchema =
|
|
2742
|
-
scanner_version:
|
|
2743
|
-
time_started:
|
|
2744
|
-
files:
|
|
2745
|
-
total_files_scanned:
|
|
2746
|
-
total_files_skipped:
|
|
2747
|
-
model_formats:
|
|
2748
|
-
model_size_bytes:
|
|
2749
|
-
scan_duration_ms:
|
|
2750
|
-
error_code:
|
|
2751
|
-
error_message:
|
|
2752
|
-
}).passthrough();
|
|
2753
|
-
var ScanCreateRequestSchema =
|
|
2754
|
-
model_uri:
|
|
2755
|
-
security_group_uuid:
|
|
2756
|
-
scan_origin:
|
|
2757
|
-
allow_patterns:
|
|
2758
|
-
ignore_patterns:
|
|
2759
|
-
labels:
|
|
2760
|
-
model_author:
|
|
2761
|
-
model_name:
|
|
2762
|
-
model_version:
|
|
2811
|
+
values: import_zod32.z.array(import_zod32.z.string())
|
|
2812
|
+
}).passthrough();
|
|
2813
|
+
var EvalSummarySchema = import_zod32.z.object({
|
|
2814
|
+
rules_failed: import_zod32.z.number().int().optional().default(0),
|
|
2815
|
+
rules_passed: import_zod32.z.number().int().optional().default(0),
|
|
2816
|
+
total_rules: import_zod32.z.number().int().optional().default(0)
|
|
2817
|
+
}).passthrough();
|
|
2818
|
+
var ModelScanIssueSchema = import_zod32.z.object({
|
|
2819
|
+
description: import_zod32.z.string(),
|
|
2820
|
+
source: import_zod32.z.string(),
|
|
2821
|
+
threat: import_zod32.z.string().nullable().optional(),
|
|
2822
|
+
module: import_zod32.z.string().nullable().optional(),
|
|
2823
|
+
operator: import_zod32.z.string().nullable().optional()
|
|
2824
|
+
}).passthrough();
|
|
2825
|
+
var FileScanDataSchema = import_zod32.z.object({
|
|
2826
|
+
file_path: import_zod32.z.string(),
|
|
2827
|
+
modelscan_status: import_zod32.z.string(),
|
|
2828
|
+
blob_id: import_zod32.z.string(),
|
|
2829
|
+
error_message: import_zod32.z.string().nullable().optional(),
|
|
2830
|
+
formats: import_zod32.z.array(import_zod32.z.string()).nullable().optional(),
|
|
2831
|
+
issues_detected: import_zod32.z.array(ModelScanIssueSchema).nullable().optional()
|
|
2832
|
+
}).passthrough();
|
|
2833
|
+
var ScanDetailsSchema = import_zod32.z.object({
|
|
2834
|
+
scanner_version: import_zod32.z.string(),
|
|
2835
|
+
time_started: import_zod32.z.string(),
|
|
2836
|
+
files: import_zod32.z.array(FileScanDataSchema),
|
|
2837
|
+
total_files_scanned: import_zod32.z.number().int(),
|
|
2838
|
+
total_files_skipped: import_zod32.z.number().int(),
|
|
2839
|
+
model_formats: import_zod32.z.array(import_zod32.z.string()),
|
|
2840
|
+
model_size_bytes: import_zod32.z.number().int(),
|
|
2841
|
+
scan_duration_ms: import_zod32.z.number().int(),
|
|
2842
|
+
error_code: import_zod32.z.string().nullable().optional(),
|
|
2843
|
+
error_message: import_zod32.z.string().nullable().optional()
|
|
2844
|
+
}).passthrough();
|
|
2845
|
+
var ScanCreateRequestSchema = import_zod32.z.object({
|
|
2846
|
+
model_uri: import_zod32.z.string(),
|
|
2847
|
+
security_group_uuid: import_zod32.z.string(),
|
|
2848
|
+
scan_origin: import_zod32.z.string(),
|
|
2849
|
+
allow_patterns: import_zod32.z.array(import_zod32.z.string()).nullable().optional(),
|
|
2850
|
+
ignore_patterns: import_zod32.z.array(import_zod32.z.string()).nullable().optional(),
|
|
2851
|
+
labels: import_zod32.z.array(LabelSchema).nullable().optional(),
|
|
2852
|
+
model_author: import_zod32.z.string().nullable().optional(),
|
|
2853
|
+
model_name: import_zod32.z.string().nullable().optional(),
|
|
2854
|
+
model_version: import_zod32.z.string().nullable().optional(),
|
|
2763
2855
|
scan_details: ScanDetailsSchema.nullable().optional()
|
|
2764
2856
|
}).passthrough();
|
|
2765
|
-
var ScanBaseResponseSchema =
|
|
2766
|
-
uuid:
|
|
2767
|
-
tsg_id:
|
|
2768
|
-
created_at:
|
|
2769
|
-
updated_at:
|
|
2770
|
-
model_uri:
|
|
2771
|
-
owner:
|
|
2772
|
-
scan_origin:
|
|
2773
|
-
security_group_uuid:
|
|
2774
|
-
security_group_name:
|
|
2775
|
-
model_version_uuid:
|
|
2776
|
-
eval_outcome:
|
|
2777
|
-
source_type:
|
|
2778
|
-
created_by:
|
|
2779
|
-
enabled_rule_count_snapshot:
|
|
2780
|
-
error_code:
|
|
2781
|
-
error_message:
|
|
2857
|
+
var ScanBaseResponseSchema = import_zod32.z.object({
|
|
2858
|
+
uuid: import_zod32.z.string(),
|
|
2859
|
+
tsg_id: import_zod32.z.string(),
|
|
2860
|
+
created_at: import_zod32.z.string(),
|
|
2861
|
+
updated_at: import_zod32.z.string(),
|
|
2862
|
+
model_uri: import_zod32.z.string(),
|
|
2863
|
+
owner: import_zod32.z.string(),
|
|
2864
|
+
scan_origin: import_zod32.z.string(),
|
|
2865
|
+
security_group_uuid: import_zod32.z.string(),
|
|
2866
|
+
security_group_name: import_zod32.z.string(),
|
|
2867
|
+
model_version_uuid: import_zod32.z.string(),
|
|
2868
|
+
eval_outcome: import_zod32.z.string(),
|
|
2869
|
+
source_type: import_zod32.z.string(),
|
|
2870
|
+
created_by: import_zod32.z.string().nullable().optional(),
|
|
2871
|
+
enabled_rule_count_snapshot: import_zod32.z.number().int().nullable().optional(),
|
|
2872
|
+
error_code: import_zod32.z.string().nullable().optional(),
|
|
2873
|
+
error_message: import_zod32.z.string().nullable().optional(),
|
|
2782
2874
|
eval_summary: EvalSummarySchema.nullable().optional(),
|
|
2783
|
-
labels:
|
|
2784
|
-
model_formats:
|
|
2785
|
-
scanner_version:
|
|
2786
|
-
time_started:
|
|
2787
|
-
total_files_scanned:
|
|
2788
|
-
total_files_skipped:
|
|
2789
|
-
}).passthrough();
|
|
2790
|
-
var ScanListSchema =
|
|
2875
|
+
labels: import_zod32.z.array(LabelSchema).optional(),
|
|
2876
|
+
model_formats: import_zod32.z.array(import_zod32.z.string()).nullable().optional(),
|
|
2877
|
+
scanner_version: import_zod32.z.string().nullable().optional(),
|
|
2878
|
+
time_started: import_zod32.z.string().nullable().optional(),
|
|
2879
|
+
total_files_scanned: import_zod32.z.number().int().nullable().optional(),
|
|
2880
|
+
total_files_skipped: import_zod32.z.number().int().nullable().optional()
|
|
2881
|
+
}).passthrough();
|
|
2882
|
+
var ScanListSchema = import_zod32.z.object({
|
|
2791
2883
|
pagination: ModelSecurityPaginationSchema,
|
|
2792
|
-
scans:
|
|
2793
|
-
}).passthrough();
|
|
2794
|
-
var FileResponseSchema =
|
|
2795
|
-
uuid:
|
|
2796
|
-
tsg_id:
|
|
2797
|
-
created_at:
|
|
2798
|
-
updated_at:
|
|
2799
|
-
path:
|
|
2800
|
-
parent_path:
|
|
2801
|
-
type:
|
|
2802
|
-
result:
|
|
2803
|
-
model_version_uuid:
|
|
2804
|
-
blob_id:
|
|
2805
|
-
formats:
|
|
2806
|
-
scan_uuid:
|
|
2807
|
-
}).passthrough();
|
|
2808
|
-
var FileListSchema =
|
|
2884
|
+
scans: import_zod32.z.array(ScanBaseResponseSchema)
|
|
2885
|
+
}).passthrough();
|
|
2886
|
+
var FileResponseSchema = import_zod32.z.object({
|
|
2887
|
+
uuid: import_zod32.z.string(),
|
|
2888
|
+
tsg_id: import_zod32.z.string(),
|
|
2889
|
+
created_at: import_zod32.z.string(),
|
|
2890
|
+
updated_at: import_zod32.z.string(),
|
|
2891
|
+
path: import_zod32.z.string(),
|
|
2892
|
+
parent_path: import_zod32.z.string(),
|
|
2893
|
+
type: import_zod32.z.string(),
|
|
2894
|
+
result: import_zod32.z.string(),
|
|
2895
|
+
model_version_uuid: import_zod32.z.string(),
|
|
2896
|
+
blob_id: import_zod32.z.string().nullable().optional(),
|
|
2897
|
+
formats: import_zod32.z.array(import_zod32.z.string()).nullable().optional(),
|
|
2898
|
+
scan_uuid: import_zod32.z.string().nullable().optional()
|
|
2899
|
+
}).passthrough();
|
|
2900
|
+
var FileListSchema = import_zod32.z.object({
|
|
2809
2901
|
pagination: ModelSecurityPaginationSchema,
|
|
2810
|
-
files:
|
|
2811
|
-
}).passthrough();
|
|
2812
|
-
var RuleEvaluationResponseSchema =
|
|
2813
|
-
uuid:
|
|
2814
|
-
tsg_id:
|
|
2815
|
-
created_at:
|
|
2816
|
-
updated_at:
|
|
2817
|
-
result:
|
|
2818
|
-
violation_count:
|
|
2819
|
-
rule_instance_uuid:
|
|
2820
|
-
scan_uuid:
|
|
2821
|
-
rule_name:
|
|
2822
|
-
rule_description:
|
|
2823
|
-
rule_instance_state:
|
|
2824
|
-
}).passthrough();
|
|
2825
|
-
var RuleEvaluationListSchema =
|
|
2902
|
+
files: import_zod32.z.array(FileResponseSchema)
|
|
2903
|
+
}).passthrough();
|
|
2904
|
+
var RuleEvaluationResponseSchema = import_zod32.z.object({
|
|
2905
|
+
uuid: import_zod32.z.string(),
|
|
2906
|
+
tsg_id: import_zod32.z.string(),
|
|
2907
|
+
created_at: import_zod32.z.string(),
|
|
2908
|
+
updated_at: import_zod32.z.string(),
|
|
2909
|
+
result: import_zod32.z.string(),
|
|
2910
|
+
violation_count: import_zod32.z.number().int(),
|
|
2911
|
+
rule_instance_uuid: import_zod32.z.string(),
|
|
2912
|
+
scan_uuid: import_zod32.z.string(),
|
|
2913
|
+
rule_name: import_zod32.z.string(),
|
|
2914
|
+
rule_description: import_zod32.z.string(),
|
|
2915
|
+
rule_instance_state: import_zod32.z.string()
|
|
2916
|
+
}).passthrough();
|
|
2917
|
+
var RuleEvaluationListSchema = import_zod32.z.object({
|
|
2826
2918
|
pagination: ModelSecurityPaginationSchema,
|
|
2827
|
-
evaluations:
|
|
2828
|
-
}).passthrough();
|
|
2829
|
-
var ViolationResponseSchema =
|
|
2830
|
-
uuid:
|
|
2831
|
-
tsg_id:
|
|
2832
|
-
created_at:
|
|
2833
|
-
updated_at:
|
|
2834
|
-
description:
|
|
2835
|
-
rule_instance_uuid:
|
|
2836
|
-
rule_name:
|
|
2837
|
-
rule_description:
|
|
2838
|
-
rule_instance_state:
|
|
2839
|
-
file:
|
|
2840
|
-
hash:
|
|
2841
|
-
module:
|
|
2842
|
-
operator:
|
|
2843
|
-
threat:
|
|
2844
|
-
threat_description:
|
|
2845
|
-
}).passthrough();
|
|
2846
|
-
var ViolationListSchema =
|
|
2919
|
+
evaluations: import_zod32.z.array(RuleEvaluationResponseSchema)
|
|
2920
|
+
}).passthrough();
|
|
2921
|
+
var ViolationResponseSchema = import_zod32.z.object({
|
|
2922
|
+
uuid: import_zod32.z.string(),
|
|
2923
|
+
tsg_id: import_zod32.z.string(),
|
|
2924
|
+
created_at: import_zod32.z.string(),
|
|
2925
|
+
updated_at: import_zod32.z.string(),
|
|
2926
|
+
description: import_zod32.z.string(),
|
|
2927
|
+
rule_instance_uuid: import_zod32.z.string(),
|
|
2928
|
+
rule_name: import_zod32.z.string(),
|
|
2929
|
+
rule_description: import_zod32.z.string(),
|
|
2930
|
+
rule_instance_state: import_zod32.z.string(),
|
|
2931
|
+
file: import_zod32.z.string().nullable().optional(),
|
|
2932
|
+
hash: import_zod32.z.string().nullable().optional(),
|
|
2933
|
+
module: import_zod32.z.string().nullable().optional(),
|
|
2934
|
+
operator: import_zod32.z.string().nullable().optional(),
|
|
2935
|
+
threat: import_zod32.z.string().nullable().optional(),
|
|
2936
|
+
threat_description: import_zod32.z.string().nullable().optional()
|
|
2937
|
+
}).passthrough();
|
|
2938
|
+
var ViolationListSchema = import_zod32.z.object({
|
|
2847
2939
|
pagination: ModelSecurityPaginationSchema,
|
|
2848
|
-
violations:
|
|
2849
|
-
}).passthrough();
|
|
2850
|
-
var RuleEditableFieldDropdownSchema =
|
|
2851
|
-
value:
|
|
2852
|
-
label:
|
|
2853
|
-
}).passthrough();
|
|
2854
|
-
var RuleEditableFieldSchema =
|
|
2855
|
-
attribute_name:
|
|
2856
|
-
type:
|
|
2857
|
-
display_name:
|
|
2858
|
-
display_type:
|
|
2859
|
-
description:
|
|
2860
|
-
dropdown_values:
|
|
2861
|
-
}).passthrough();
|
|
2862
|
-
var RuleRemediationSchema =
|
|
2863
|
-
description:
|
|
2864
|
-
steps:
|
|
2865
|
-
url:
|
|
2866
|
-
}).passthrough();
|
|
2867
|
-
var RuleConfigurationSchema =
|
|
2868
|
-
field_values:
|
|
2869
|
-
state:
|
|
2870
|
-
}).passthrough();
|
|
2871
|
-
var ModelSecurityRuleResponseSchema =
|
|
2872
|
-
uuid:
|
|
2873
|
-
name:
|
|
2874
|
-
description:
|
|
2875
|
-
rule_type:
|
|
2876
|
-
compatible_sources:
|
|
2877
|
-
default_state:
|
|
2940
|
+
violations: import_zod32.z.array(ViolationResponseSchema)
|
|
2941
|
+
}).passthrough();
|
|
2942
|
+
var RuleEditableFieldDropdownSchema = import_zod32.z.object({
|
|
2943
|
+
value: import_zod32.z.string(),
|
|
2944
|
+
label: import_zod32.z.string()
|
|
2945
|
+
}).passthrough();
|
|
2946
|
+
var RuleEditableFieldSchema = import_zod32.z.object({
|
|
2947
|
+
attribute_name: import_zod32.z.string(),
|
|
2948
|
+
type: import_zod32.z.string(),
|
|
2949
|
+
display_name: import_zod32.z.string(),
|
|
2950
|
+
display_type: import_zod32.z.string(),
|
|
2951
|
+
description: import_zod32.z.string().nullable().optional(),
|
|
2952
|
+
dropdown_values: import_zod32.z.array(RuleEditableFieldDropdownSchema).nullable().optional()
|
|
2953
|
+
}).passthrough();
|
|
2954
|
+
var RuleRemediationSchema = import_zod32.z.object({
|
|
2955
|
+
description: import_zod32.z.string(),
|
|
2956
|
+
steps: import_zod32.z.array(import_zod32.z.string()),
|
|
2957
|
+
url: import_zod32.z.string()
|
|
2958
|
+
}).passthrough();
|
|
2959
|
+
var RuleConfigurationSchema = import_zod32.z.object({
|
|
2960
|
+
field_values: import_zod32.z.record(import_zod32.z.unknown()).optional(),
|
|
2961
|
+
state: import_zod32.z.string().nullable().optional()
|
|
2962
|
+
}).passthrough();
|
|
2963
|
+
var ModelSecurityRuleResponseSchema = import_zod32.z.object({
|
|
2964
|
+
uuid: import_zod32.z.string(),
|
|
2965
|
+
name: import_zod32.z.string(),
|
|
2966
|
+
description: import_zod32.z.string(),
|
|
2967
|
+
rule_type: import_zod32.z.string(),
|
|
2968
|
+
compatible_sources: import_zod32.z.array(import_zod32.z.string()),
|
|
2969
|
+
default_state: import_zod32.z.string(),
|
|
2878
2970
|
remediation: RuleRemediationSchema,
|
|
2879
|
-
editable_fields:
|
|
2880
|
-
constant_values:
|
|
2881
|
-
default_values:
|
|
2971
|
+
editable_fields: import_zod32.z.array(RuleEditableFieldSchema),
|
|
2972
|
+
constant_values: import_zod32.z.record(import_zod32.z.unknown()),
|
|
2973
|
+
default_values: import_zod32.z.record(import_zod32.z.unknown())
|
|
2882
2974
|
}).passthrough();
|
|
2883
|
-
var ListModelSecurityRulesResponseSchema =
|
|
2975
|
+
var ListModelSecurityRulesResponseSchema = import_zod32.z.object({
|
|
2884
2976
|
pagination: ModelSecurityPaginationSchema,
|
|
2885
|
-
rules:
|
|
2886
|
-
}).passthrough();
|
|
2887
|
-
var ModelSecurityRuleInstanceResponseSchema =
|
|
2888
|
-
uuid:
|
|
2889
|
-
tsg_id:
|
|
2890
|
-
created_at:
|
|
2891
|
-
updated_at:
|
|
2892
|
-
security_group_uuid:
|
|
2893
|
-
security_rule_uuid:
|
|
2894
|
-
state:
|
|
2977
|
+
rules: import_zod32.z.array(ModelSecurityRuleResponseSchema)
|
|
2978
|
+
}).passthrough();
|
|
2979
|
+
var ModelSecurityRuleInstanceResponseSchema = import_zod32.z.object({
|
|
2980
|
+
uuid: import_zod32.z.string(),
|
|
2981
|
+
tsg_id: import_zod32.z.string(),
|
|
2982
|
+
created_at: import_zod32.z.string(),
|
|
2983
|
+
updated_at: import_zod32.z.string(),
|
|
2984
|
+
security_group_uuid: import_zod32.z.string(),
|
|
2985
|
+
security_rule_uuid: import_zod32.z.string(),
|
|
2986
|
+
state: import_zod32.z.string(),
|
|
2895
2987
|
rule: ModelSecurityRuleResponseSchema,
|
|
2896
|
-
field_values:
|
|
2988
|
+
field_values: import_zod32.z.record(import_zod32.z.unknown()).optional()
|
|
2897
2989
|
}).passthrough();
|
|
2898
|
-
var ModelSecurityRuleInstanceUpdateRequestSchema =
|
|
2899
|
-
security_group_uuid:
|
|
2900
|
-
state:
|
|
2901
|
-
field_values:
|
|
2990
|
+
var ModelSecurityRuleInstanceUpdateRequestSchema = import_zod32.z.object({
|
|
2991
|
+
security_group_uuid: import_zod32.z.string(),
|
|
2992
|
+
state: import_zod32.z.string().nullable().optional(),
|
|
2993
|
+
field_values: import_zod32.z.record(import_zod32.z.unknown()).nullable().optional()
|
|
2902
2994
|
}).passthrough();
|
|
2903
|
-
var ListModelSecurityRuleInstancesResponseSchema =
|
|
2995
|
+
var ListModelSecurityRuleInstancesResponseSchema = import_zod32.z.object({
|
|
2904
2996
|
pagination: ModelSecurityPaginationSchema,
|
|
2905
|
-
rule_instances:
|
|
2906
|
-
}).passthrough();
|
|
2907
|
-
var ModelSecurityGroupCreateRequestSchema =
|
|
2908
|
-
name:
|
|
2909
|
-
source_type:
|
|
2910
|
-
description:
|
|
2911
|
-
rule_configurations:
|
|
2912
|
-
}).passthrough();
|
|
2913
|
-
var ModelSecurityGroupResponseSchema =
|
|
2914
|
-
uuid:
|
|
2915
|
-
tsg_id:
|
|
2916
|
-
created_at:
|
|
2917
|
-
updated_at:
|
|
2918
|
-
name:
|
|
2919
|
-
description:
|
|
2920
|
-
source_type:
|
|
2921
|
-
state:
|
|
2922
|
-
is_tombstone:
|
|
2923
|
-
}).passthrough();
|
|
2924
|
-
var ModelSecurityGroupUpdateRequestSchema =
|
|
2925
|
-
name:
|
|
2926
|
-
description:
|
|
2927
|
-
}).passthrough();
|
|
2928
|
-
var ListModelSecurityGroupsResponseSchema =
|
|
2997
|
+
rule_instances: import_zod32.z.array(ModelSecurityRuleInstanceResponseSchema)
|
|
2998
|
+
}).passthrough();
|
|
2999
|
+
var ModelSecurityGroupCreateRequestSchema = import_zod32.z.object({
|
|
3000
|
+
name: import_zod32.z.string(),
|
|
3001
|
+
source_type: import_zod32.z.string(),
|
|
3002
|
+
description: import_zod32.z.string().optional().default(""),
|
|
3003
|
+
rule_configurations: import_zod32.z.record(RuleConfigurationSchema).optional()
|
|
3004
|
+
}).passthrough();
|
|
3005
|
+
var ModelSecurityGroupResponseSchema = import_zod32.z.object({
|
|
3006
|
+
uuid: import_zod32.z.string(),
|
|
3007
|
+
tsg_id: import_zod32.z.string(),
|
|
3008
|
+
created_at: import_zod32.z.string(),
|
|
3009
|
+
updated_at: import_zod32.z.string(),
|
|
3010
|
+
name: import_zod32.z.string(),
|
|
3011
|
+
description: import_zod32.z.string(),
|
|
3012
|
+
source_type: import_zod32.z.string(),
|
|
3013
|
+
state: import_zod32.z.string(),
|
|
3014
|
+
is_tombstone: import_zod32.z.boolean()
|
|
3015
|
+
}).passthrough();
|
|
3016
|
+
var ModelSecurityGroupUpdateRequestSchema = import_zod32.z.object({
|
|
3017
|
+
name: import_zod32.z.string().nullable().optional(),
|
|
3018
|
+
description: import_zod32.z.string().nullable().optional()
|
|
3019
|
+
}).passthrough();
|
|
3020
|
+
var ListModelSecurityGroupsResponseSchema = import_zod32.z.object({
|
|
2929
3021
|
pagination: ModelSecurityPaginationSchema,
|
|
2930
|
-
security_groups:
|
|
3022
|
+
security_groups: import_zod32.z.array(ModelSecurityGroupResponseSchema)
|
|
2931
3023
|
}).passthrough();
|
|
2932
|
-
var PyPIAuthResponseSchema =
|
|
2933
|
-
url:
|
|
2934
|
-
expires_at:
|
|
3024
|
+
var PyPIAuthResponseSchema = import_zod32.z.object({
|
|
3025
|
+
url: import_zod32.z.string(),
|
|
3026
|
+
expires_at: import_zod32.z.string()
|
|
2935
3027
|
}).passthrough();
|
|
2936
3028
|
|
|
2937
3029
|
// src/models/red-team-enums.ts
|
|
@@ -3139,1013 +3231,1013 @@ var TargetType = {
|
|
|
3139
3231
|
};
|
|
3140
3232
|
|
|
3141
3233
|
// src/models/red-team.ts
|
|
3142
|
-
var
|
|
3143
|
-
var RedTeamPaginationSchema =
|
|
3144
|
-
var CountByNameSchema =
|
|
3145
|
-
var ValidationErrorSchema =
|
|
3146
|
-
loc:
|
|
3147
|
-
msg:
|
|
3148
|
-
type:
|
|
3149
|
-
}).passthrough();
|
|
3150
|
-
var HTTPValidationErrorSchema =
|
|
3151
|
-
var TargetBackgroundSchema =
|
|
3152
|
-
industry:
|
|
3153
|
-
use_case:
|
|
3154
|
-
competitors:
|
|
3155
|
-
}).passthrough();
|
|
3156
|
-
var TargetAdditionalContextSchema =
|
|
3157
|
-
base_model:
|
|
3158
|
-
core_architecture:
|
|
3159
|
-
system_prompt:
|
|
3160
|
-
languages_supported:
|
|
3161
|
-
banned_keywords:
|
|
3162
|
-
tools_accessible:
|
|
3163
|
-
}).passthrough();
|
|
3164
|
-
var TargetMetadataSchema =
|
|
3165
|
-
multi_turn:
|
|
3166
|
-
multi_turn_error_message:
|
|
3167
|
-
rate_limit:
|
|
3168
|
-
rate_limit_enabled:
|
|
3169
|
-
rate_limit_error_code:
|
|
3170
|
-
rate_limit_error_json:
|
|
3171
|
-
rate_limit_error_message:
|
|
3172
|
-
content_filter_enabled:
|
|
3173
|
-
content_filter_error_code:
|
|
3174
|
-
content_filter_error_json:
|
|
3175
|
-
content_filter_error_message:
|
|
3176
|
-
probe_message:
|
|
3177
|
-
request_timeout:
|
|
3178
|
-
}).passthrough();
|
|
3179
|
-
var MultiTurnStatefulConfigSchema =
|
|
3180
|
-
type:
|
|
3181
|
-
response_id_field:
|
|
3182
|
-
request_id_field:
|
|
3183
|
-
}).passthrough();
|
|
3184
|
-
var MultiTurnStatelessConfigSchema =
|
|
3185
|
-
type:
|
|
3186
|
-
assistant_role:
|
|
3187
|
-
}).passthrough();
|
|
3188
|
-
var HeadersAuthConfigSchema =
|
|
3189
|
-
var BasicAuthAuthConfigSchema =
|
|
3190
|
-
basic_auth_location:
|
|
3191
|
-
basic_auth_header:
|
|
3192
|
-
}).passthrough();
|
|
3193
|
-
var OAuth2AuthConfigSchema =
|
|
3194
|
-
oauth2_token_url:
|
|
3195
|
-
oauth2_expiry_minutes:
|
|
3196
|
-
oauth2_headers:
|
|
3197
|
-
oauth2_body_params:
|
|
3198
|
-
oauth2_token_response_key:
|
|
3199
|
-
oauth2_inject_header:
|
|
3200
|
-
}).passthrough();
|
|
3201
|
-
var AuthConfigSchema =
|
|
3234
|
+
var import_zod33 = require("zod");
|
|
3235
|
+
var RedTeamPaginationSchema = import_zod33.z.object({ total_items: import_zod33.z.number().int().nullable().optional() }).passthrough();
|
|
3236
|
+
var CountByNameSchema = import_zod33.z.object({ name: import_zod33.z.string(), count: import_zod33.z.number().int() }).passthrough();
|
|
3237
|
+
var ValidationErrorSchema = import_zod33.z.object({
|
|
3238
|
+
loc: import_zod33.z.array(import_zod33.z.union([import_zod33.z.string(), import_zod33.z.number()])),
|
|
3239
|
+
msg: import_zod33.z.string(),
|
|
3240
|
+
type: import_zod33.z.string()
|
|
3241
|
+
}).passthrough();
|
|
3242
|
+
var HTTPValidationErrorSchema = import_zod33.z.object({ detail: import_zod33.z.array(ValidationErrorSchema).optional() }).passthrough();
|
|
3243
|
+
var TargetBackgroundSchema = import_zod33.z.object({
|
|
3244
|
+
industry: import_zod33.z.string().nullable().optional(),
|
|
3245
|
+
use_case: import_zod33.z.string().nullable().optional(),
|
|
3246
|
+
competitors: import_zod33.z.array(import_zod33.z.string()).nullable().optional()
|
|
3247
|
+
}).passthrough();
|
|
3248
|
+
var TargetAdditionalContextSchema = import_zod33.z.object({
|
|
3249
|
+
base_model: import_zod33.z.string().nullable().optional(),
|
|
3250
|
+
core_architecture: import_zod33.z.string().nullable().optional(),
|
|
3251
|
+
system_prompt: import_zod33.z.string().nullable().optional(),
|
|
3252
|
+
languages_supported: import_zod33.z.array(import_zod33.z.string()).nullable().optional(),
|
|
3253
|
+
banned_keywords: import_zod33.z.array(import_zod33.z.string()).nullable().optional(),
|
|
3254
|
+
tools_accessible: import_zod33.z.array(import_zod33.z.string()).nullable().optional()
|
|
3255
|
+
}).passthrough();
|
|
3256
|
+
var TargetMetadataSchema = import_zod33.z.object({
|
|
3257
|
+
multi_turn: import_zod33.z.boolean().optional(),
|
|
3258
|
+
multi_turn_error_message: import_zod33.z.string().nullable().optional(),
|
|
3259
|
+
rate_limit: import_zod33.z.number().int().nullable().optional(),
|
|
3260
|
+
rate_limit_enabled: import_zod33.z.boolean().optional(),
|
|
3261
|
+
rate_limit_error_code: import_zod33.z.number().int().nullable().optional(),
|
|
3262
|
+
rate_limit_error_json: import_zod33.z.record(import_zod33.z.unknown()).nullable().optional(),
|
|
3263
|
+
rate_limit_error_message: import_zod33.z.string().nullable().optional(),
|
|
3264
|
+
content_filter_enabled: import_zod33.z.boolean().optional(),
|
|
3265
|
+
content_filter_error_code: import_zod33.z.number().int().nullable().optional(),
|
|
3266
|
+
content_filter_error_json: import_zod33.z.record(import_zod33.z.unknown()).nullable().optional(),
|
|
3267
|
+
content_filter_error_message: import_zod33.z.string().nullable().optional(),
|
|
3268
|
+
probe_message: import_zod33.z.string().optional(),
|
|
3269
|
+
request_timeout: import_zod33.z.number().optional()
|
|
3270
|
+
}).passthrough();
|
|
3271
|
+
var MultiTurnStatefulConfigSchema = import_zod33.z.object({
|
|
3272
|
+
type: import_zod33.z.string().default("stateful"),
|
|
3273
|
+
response_id_field: import_zod33.z.string(),
|
|
3274
|
+
request_id_field: import_zod33.z.string()
|
|
3275
|
+
}).passthrough();
|
|
3276
|
+
var MultiTurnStatelessConfigSchema = import_zod33.z.object({
|
|
3277
|
+
type: import_zod33.z.string().default("stateless"),
|
|
3278
|
+
assistant_role: import_zod33.z.string().nullable().optional()
|
|
3279
|
+
}).passthrough();
|
|
3280
|
+
var HeadersAuthConfigSchema = import_zod33.z.object({ auth_header: import_zod33.z.record(import_zod33.z.unknown()) }).passthrough();
|
|
3281
|
+
var BasicAuthAuthConfigSchema = import_zod33.z.object({
|
|
3282
|
+
basic_auth_location: import_zod33.z.string().default("HEADER"),
|
|
3283
|
+
basic_auth_header: import_zod33.z.record(import_zod33.z.unknown()).nullable().optional()
|
|
3284
|
+
}).passthrough();
|
|
3285
|
+
var OAuth2AuthConfigSchema = import_zod33.z.object({
|
|
3286
|
+
oauth2_token_url: import_zod33.z.string(),
|
|
3287
|
+
oauth2_expiry_minutes: import_zod33.z.number().int().default(60),
|
|
3288
|
+
oauth2_headers: import_zod33.z.record(import_zod33.z.unknown()).optional(),
|
|
3289
|
+
oauth2_body_params: import_zod33.z.record(import_zod33.z.unknown()).optional(),
|
|
3290
|
+
oauth2_token_response_key: import_zod33.z.string().default("access_token"),
|
|
3291
|
+
oauth2_inject_header: import_zod33.z.record(import_zod33.z.unknown())
|
|
3292
|
+
}).passthrough();
|
|
3293
|
+
var AuthConfigSchema = import_zod33.z.union([
|
|
3202
3294
|
HeadersAuthConfigSchema,
|
|
3203
3295
|
BasicAuthAuthConfigSchema,
|
|
3204
3296
|
OAuth2AuthConfigSchema
|
|
3205
3297
|
]);
|
|
3206
|
-
var OpenAIConnectionParamsSchema =
|
|
3207
|
-
api_key:
|
|
3208
|
-
model_name:
|
|
3209
|
-
}).passthrough();
|
|
3210
|
-
var HuggingfaceConnectionParamsSchema =
|
|
3211
|
-
api_key:
|
|
3212
|
-
model_name:
|
|
3213
|
-
}).passthrough();
|
|
3214
|
-
var DatabricksConnectionParamsSchema =
|
|
3215
|
-
auth_type:
|
|
3216
|
-
workspace_url:
|
|
3217
|
-
model_name:
|
|
3218
|
-
access_token:
|
|
3219
|
-
client_id:
|
|
3220
|
-
secret:
|
|
3221
|
-
}).passthrough();
|
|
3222
|
-
var BedrockAccessConnectionParamsSchema =
|
|
3223
|
-
access_id:
|
|
3224
|
-
access_secret:
|
|
3225
|
-
region:
|
|
3226
|
-
model_id:
|
|
3227
|
-
session_token:
|
|
3228
|
-
}).passthrough();
|
|
3229
|
-
var RestConnectionParamsSchema =
|
|
3230
|
-
api_endpoint:
|
|
3231
|
-
request_headers:
|
|
3232
|
-
request_json:
|
|
3233
|
-
response_json:
|
|
3234
|
-
response_key:
|
|
3235
|
-
target_connection_config:
|
|
3236
|
-
curl:
|
|
3237
|
-
multi_turn_config:
|
|
3298
|
+
var OpenAIConnectionParamsSchema = import_zod33.z.object({
|
|
3299
|
+
api_key: import_zod33.z.string(),
|
|
3300
|
+
model_name: import_zod33.z.string()
|
|
3301
|
+
}).passthrough();
|
|
3302
|
+
var HuggingfaceConnectionParamsSchema = import_zod33.z.object({
|
|
3303
|
+
api_key: import_zod33.z.string(),
|
|
3304
|
+
model_name: import_zod33.z.string()
|
|
3305
|
+
}).passthrough();
|
|
3306
|
+
var DatabricksConnectionParamsSchema = import_zod33.z.object({
|
|
3307
|
+
auth_type: import_zod33.z.string(),
|
|
3308
|
+
workspace_url: import_zod33.z.string(),
|
|
3309
|
+
model_name: import_zod33.z.string(),
|
|
3310
|
+
access_token: import_zod33.z.string().nullable().optional(),
|
|
3311
|
+
client_id: import_zod33.z.string().nullable().optional(),
|
|
3312
|
+
secret: import_zod33.z.string().nullable().optional()
|
|
3313
|
+
}).passthrough();
|
|
3314
|
+
var BedrockAccessConnectionParamsSchema = import_zod33.z.object({
|
|
3315
|
+
access_id: import_zod33.z.string(),
|
|
3316
|
+
access_secret: import_zod33.z.string(),
|
|
3317
|
+
region: import_zod33.z.string(),
|
|
3318
|
+
model_id: import_zod33.z.string(),
|
|
3319
|
+
session_token: import_zod33.z.string().nullable().optional()
|
|
3320
|
+
}).passthrough();
|
|
3321
|
+
var RestConnectionParamsSchema = import_zod33.z.object({
|
|
3322
|
+
api_endpoint: import_zod33.z.string().nullable().optional(),
|
|
3323
|
+
request_headers: import_zod33.z.record(import_zod33.z.unknown()).nullable().optional(),
|
|
3324
|
+
request_json: import_zod33.z.record(import_zod33.z.unknown()).nullable().optional(),
|
|
3325
|
+
response_json: import_zod33.z.record(import_zod33.z.unknown()).nullable().optional(),
|
|
3326
|
+
response_key: import_zod33.z.string().nullable().optional(),
|
|
3327
|
+
target_connection_config: import_zod33.z.unknown().nullable().optional(),
|
|
3328
|
+
curl: import_zod33.z.string().nullable().optional(),
|
|
3329
|
+
multi_turn_config: import_zod33.z.unknown().nullable().optional()
|
|
3238
3330
|
}).passthrough();
|
|
3239
3331
|
var StreamingConnectionParamsSchema = RestConnectionParamsSchema.extend({
|
|
3240
|
-
response_stop_key:
|
|
3241
|
-
response_stop_value:
|
|
3332
|
+
response_stop_key: import_zod33.z.string(),
|
|
3333
|
+
response_stop_value: import_zod33.z.string()
|
|
3242
3334
|
}).passthrough();
|
|
3243
3335
|
var WebSocketConnectionParamsSchema = RestConnectionParamsSchema.extend({
|
|
3244
|
-
ws_response_timeout:
|
|
3336
|
+
ws_response_timeout: import_zod33.z.number().default(110)
|
|
3245
3337
|
}).passthrough();
|
|
3246
|
-
var ConnectionParamsSchema =
|
|
3338
|
+
var ConnectionParamsSchema = import_zod33.z.union([
|
|
3247
3339
|
WebSocketConnectionParamsSchema,
|
|
3248
3340
|
StreamingConnectionParamsSchema,
|
|
3249
3341
|
RestConnectionParamsSchema
|
|
3250
3342
|
]);
|
|
3251
|
-
var TargetJobRequestSchema =
|
|
3252
|
-
uuid:
|
|
3253
|
-
version:
|
|
3254
|
-
}).passthrough();
|
|
3255
|
-
var JobTimeRecordSchema =
|
|
3256
|
-
queued_at:
|
|
3257
|
-
started_at:
|
|
3258
|
-
completed_at:
|
|
3259
|
-
time_taken:
|
|
3260
|
-
}).passthrough();
|
|
3261
|
-
var StaticJobMetadataSchema =
|
|
3262
|
-
categories:
|
|
3263
|
-
rate_limit_enabled:
|
|
3264
|
-
rate_limit:
|
|
3265
|
-
rate_limit_error_code:
|
|
3266
|
-
rate_limit_error_message:
|
|
3267
|
-
rate_limit_error_json:
|
|
3268
|
-
content_filter_enabled:
|
|
3269
|
-
content_filter_error_code:
|
|
3270
|
-
content_filter_error_message:
|
|
3271
|
-
content_filter_error_json:
|
|
3272
|
-
}).passthrough();
|
|
3273
|
-
var DynamicJobMetadataSchema =
|
|
3274
|
-
rate_limit_enabled:
|
|
3275
|
-
rate_limit:
|
|
3276
|
-
rate_limit_error_code:
|
|
3277
|
-
rate_limit_error_message:
|
|
3278
|
-
rate_limit_error_json:
|
|
3279
|
-
content_filter_enabled:
|
|
3280
|
-
content_filter_error_code:
|
|
3281
|
-
content_filter_error_message:
|
|
3282
|
-
content_filter_error_json:
|
|
3283
|
-
stream_breadth:
|
|
3284
|
-
stream_depth:
|
|
3285
|
-
max_tokens:
|
|
3286
|
-
context_size:
|
|
3287
|
-
attack_goals:
|
|
3288
|
-
base_model:
|
|
3289
|
-
use_case:
|
|
3290
|
-
system_prompt:
|
|
3291
|
-
}).passthrough();
|
|
3292
|
-
var CustomJobMetadataSchema =
|
|
3293
|
-
custom_prompt_sets:
|
|
3294
|
-
rate_limit_enabled:
|
|
3295
|
-
rate_limit:
|
|
3296
|
-
rate_limit_error_code:
|
|
3297
|
-
rate_limit_error_message:
|
|
3298
|
-
rate_limit_error_json:
|
|
3299
|
-
content_filter_enabled:
|
|
3300
|
-
content_filter_error_code:
|
|
3301
|
-
content_filter_error_message:
|
|
3302
|
-
content_filter_error_json:
|
|
3303
|
-
}).passthrough();
|
|
3304
|
-
var JobCreateRequestSchema =
|
|
3305
|
-
name:
|
|
3343
|
+
var TargetJobRequestSchema = import_zod33.z.object({
|
|
3344
|
+
uuid: import_zod33.z.string(),
|
|
3345
|
+
version: import_zod33.z.number().int().nullable().optional()
|
|
3346
|
+
}).passthrough();
|
|
3347
|
+
var JobTimeRecordSchema = import_zod33.z.object({
|
|
3348
|
+
queued_at: import_zod33.z.string().nullable().optional(),
|
|
3349
|
+
started_at: import_zod33.z.string().nullable().optional(),
|
|
3350
|
+
completed_at: import_zod33.z.string().nullable().optional(),
|
|
3351
|
+
time_taken: import_zod33.z.string().nullable().optional()
|
|
3352
|
+
}).passthrough();
|
|
3353
|
+
var StaticJobMetadataSchema = import_zod33.z.object({
|
|
3354
|
+
categories: import_zod33.z.record(import_zod33.z.unknown()),
|
|
3355
|
+
rate_limit_enabled: import_zod33.z.boolean().optional(),
|
|
3356
|
+
rate_limit: import_zod33.z.number().int().nullable().optional(),
|
|
3357
|
+
rate_limit_error_code: import_zod33.z.number().int().nullable().optional(),
|
|
3358
|
+
rate_limit_error_message: import_zod33.z.string().nullable().optional(),
|
|
3359
|
+
rate_limit_error_json: import_zod33.z.unknown().optional(),
|
|
3360
|
+
content_filter_enabled: import_zod33.z.boolean().optional(),
|
|
3361
|
+
content_filter_error_code: import_zod33.z.number().int().nullable().optional(),
|
|
3362
|
+
content_filter_error_message: import_zod33.z.string().nullable().optional(),
|
|
3363
|
+
content_filter_error_json: import_zod33.z.unknown().optional()
|
|
3364
|
+
}).passthrough();
|
|
3365
|
+
var DynamicJobMetadataSchema = import_zod33.z.object({
|
|
3366
|
+
rate_limit_enabled: import_zod33.z.boolean().optional(),
|
|
3367
|
+
rate_limit: import_zod33.z.number().int().nullable().optional(),
|
|
3368
|
+
rate_limit_error_code: import_zod33.z.number().int().nullable().optional(),
|
|
3369
|
+
rate_limit_error_message: import_zod33.z.string().nullable().optional(),
|
|
3370
|
+
rate_limit_error_json: import_zod33.z.unknown().optional(),
|
|
3371
|
+
content_filter_enabled: import_zod33.z.boolean().optional(),
|
|
3372
|
+
content_filter_error_code: import_zod33.z.number().int().nullable().optional(),
|
|
3373
|
+
content_filter_error_message: import_zod33.z.string().nullable().optional(),
|
|
3374
|
+
content_filter_error_json: import_zod33.z.unknown().optional(),
|
|
3375
|
+
stream_breadth: import_zod33.z.number().int().optional(),
|
|
3376
|
+
stream_depth: import_zod33.z.number().int().optional(),
|
|
3377
|
+
max_tokens: import_zod33.z.number().int().optional(),
|
|
3378
|
+
context_size: import_zod33.z.number().int().optional(),
|
|
3379
|
+
attack_goals: import_zod33.z.array(import_zod33.z.unknown()).optional(),
|
|
3380
|
+
base_model: import_zod33.z.string().nullable().optional(),
|
|
3381
|
+
use_case: import_zod33.z.string().nullable().optional(),
|
|
3382
|
+
system_prompt: import_zod33.z.string().nullable().optional()
|
|
3383
|
+
}).passthrough();
|
|
3384
|
+
var CustomJobMetadataSchema = import_zod33.z.object({
|
|
3385
|
+
custom_prompt_sets: import_zod33.z.array(import_zod33.z.unknown()),
|
|
3386
|
+
rate_limit_enabled: import_zod33.z.boolean().optional(),
|
|
3387
|
+
rate_limit: import_zod33.z.number().int().nullable().optional(),
|
|
3388
|
+
rate_limit_error_code: import_zod33.z.number().int().nullable().optional(),
|
|
3389
|
+
rate_limit_error_message: import_zod33.z.string().nullable().optional(),
|
|
3390
|
+
rate_limit_error_json: import_zod33.z.unknown().optional(),
|
|
3391
|
+
content_filter_enabled: import_zod33.z.boolean().optional(),
|
|
3392
|
+
content_filter_error_code: import_zod33.z.number().int().nullable().optional(),
|
|
3393
|
+
content_filter_error_message: import_zod33.z.string().nullable().optional(),
|
|
3394
|
+
content_filter_error_json: import_zod33.z.unknown().optional()
|
|
3395
|
+
}).passthrough();
|
|
3396
|
+
var JobCreateRequestSchema = import_zod33.z.object({
|
|
3397
|
+
name: import_zod33.z.string(),
|
|
3306
3398
|
target: TargetJobRequestSchema,
|
|
3307
|
-
job_type:
|
|
3308
|
-
job_metadata:
|
|
3399
|
+
job_type: import_zod33.z.string(),
|
|
3400
|
+
job_metadata: import_zod33.z.union([
|
|
3309
3401
|
StaticJobMetadataSchema,
|
|
3310
3402
|
DynamicJobMetadataSchema,
|
|
3311
3403
|
CustomJobMetadataSchema
|
|
3312
3404
|
]),
|
|
3313
|
-
version:
|
|
3314
|
-
extra_info:
|
|
3315
|
-
}).passthrough();
|
|
3316
|
-
var StaticJobReportStatsSchema =
|
|
3317
|
-
output_completion_percentage:
|
|
3318
|
-
partial_report_unlocked:
|
|
3319
|
-
partial_report_unlocked_at:
|
|
3320
|
-
report_summary:
|
|
3321
|
-
}).passthrough();
|
|
3322
|
-
var DynamicJobReportStatsSchema =
|
|
3323
|
-
total_goals:
|
|
3324
|
-
total_streams:
|
|
3325
|
-
total_threats:
|
|
3326
|
-
goals_achieved:
|
|
3327
|
-
report_summary:
|
|
3328
|
-
}).passthrough();
|
|
3329
|
-
var TargetReferenceSchema =
|
|
3330
|
-
uuid:
|
|
3331
|
-
tsg_id:
|
|
3332
|
-
name:
|
|
3333
|
-
description:
|
|
3334
|
-
target_type:
|
|
3335
|
-
connection_type:
|
|
3336
|
-
api_endpoint_type:
|
|
3337
|
-
response_mode:
|
|
3338
|
-
session_supported:
|
|
3339
|
-
extra_info:
|
|
3340
|
-
status:
|
|
3341
|
-
active:
|
|
3342
|
-
validated:
|
|
3343
|
-
version:
|
|
3344
|
-
secret_version:
|
|
3345
|
-
created_by_user_id:
|
|
3346
|
-
updated_by_user_id:
|
|
3347
|
-
created_at:
|
|
3348
|
-
updated_at:
|
|
3405
|
+
version: import_zod33.z.number().int().nullable().optional(),
|
|
3406
|
+
extra_info: import_zod33.z.record(import_zod33.z.unknown()).nullable().optional()
|
|
3407
|
+
}).passthrough();
|
|
3408
|
+
var StaticJobReportStatsSchema = import_zod33.z.object({
|
|
3409
|
+
output_completion_percentage: import_zod33.z.number(),
|
|
3410
|
+
partial_report_unlocked: import_zod33.z.boolean().optional(),
|
|
3411
|
+
partial_report_unlocked_at: import_zod33.z.string().nullable().optional(),
|
|
3412
|
+
report_summary: import_zod33.z.string().nullable().optional()
|
|
3413
|
+
}).passthrough();
|
|
3414
|
+
var DynamicJobReportStatsSchema = import_zod33.z.object({
|
|
3415
|
+
total_goals: import_zod33.z.number().int().optional(),
|
|
3416
|
+
total_streams: import_zod33.z.number().int().optional(),
|
|
3417
|
+
total_threats: import_zod33.z.number().int().optional(),
|
|
3418
|
+
goals_achieved: import_zod33.z.number().int().optional(),
|
|
3419
|
+
report_summary: import_zod33.z.string().nullable().optional()
|
|
3420
|
+
}).passthrough();
|
|
3421
|
+
var TargetReferenceSchema = import_zod33.z.object({
|
|
3422
|
+
uuid: import_zod33.z.string(),
|
|
3423
|
+
tsg_id: import_zod33.z.string(),
|
|
3424
|
+
name: import_zod33.z.string(),
|
|
3425
|
+
description: import_zod33.z.string().nullable().optional(),
|
|
3426
|
+
target_type: import_zod33.z.string().nullable().optional(),
|
|
3427
|
+
connection_type: import_zod33.z.string().nullable().optional(),
|
|
3428
|
+
api_endpoint_type: import_zod33.z.string().nullable().optional(),
|
|
3429
|
+
response_mode: import_zod33.z.string().nullable().optional(),
|
|
3430
|
+
session_supported: import_zod33.z.boolean().optional(),
|
|
3431
|
+
extra_info: import_zod33.z.record(import_zod33.z.unknown()).nullable().optional(),
|
|
3432
|
+
status: import_zod33.z.string(),
|
|
3433
|
+
active: import_zod33.z.boolean(),
|
|
3434
|
+
validated: import_zod33.z.boolean(),
|
|
3435
|
+
version: import_zod33.z.number().int().nullable().optional(),
|
|
3436
|
+
secret_version: import_zod33.z.string().nullable().optional(),
|
|
3437
|
+
created_by_user_id: import_zod33.z.string().nullable().optional(),
|
|
3438
|
+
updated_by_user_id: import_zod33.z.string().nullable().optional(),
|
|
3439
|
+
created_at: import_zod33.z.string(),
|
|
3440
|
+
updated_at: import_zod33.z.string(),
|
|
3349
3441
|
target_metadata: TargetMetadataSchema.optional(),
|
|
3350
3442
|
target_background: TargetBackgroundSchema.nullable().optional(),
|
|
3351
|
-
profiling_status:
|
|
3443
|
+
profiling_status: import_zod33.z.string().nullable().optional(),
|
|
3352
3444
|
additional_context: TargetAdditionalContextSchema.nullable().optional(),
|
|
3353
|
-
auth_type:
|
|
3445
|
+
auth_type: import_zod33.z.string().nullable().optional()
|
|
3354
3446
|
}).passthrough();
|
|
3355
|
-
var JobResponseSchema =
|
|
3356
|
-
uuid:
|
|
3357
|
-
tsg_id:
|
|
3358
|
-
name:
|
|
3447
|
+
var JobResponseSchema = import_zod33.z.object({
|
|
3448
|
+
uuid: import_zod33.z.string(),
|
|
3449
|
+
tsg_id: import_zod33.z.string(),
|
|
3450
|
+
name: import_zod33.z.string(),
|
|
3359
3451
|
target: TargetReferenceSchema,
|
|
3360
|
-
job_type:
|
|
3361
|
-
job_metadata:
|
|
3362
|
-
version:
|
|
3363
|
-
extra_info:
|
|
3364
|
-
target_id:
|
|
3365
|
-
target_type:
|
|
3366
|
-
total:
|
|
3367
|
-
completed:
|
|
3368
|
-
status:
|
|
3369
|
-
score:
|
|
3370
|
-
asr:
|
|
3452
|
+
job_type: import_zod33.z.string(),
|
|
3453
|
+
job_metadata: import_zod33.z.unknown(),
|
|
3454
|
+
version: import_zod33.z.number().int().nullable().optional(),
|
|
3455
|
+
extra_info: import_zod33.z.record(import_zod33.z.unknown()).nullable().optional(),
|
|
3456
|
+
target_id: import_zod33.z.string(),
|
|
3457
|
+
target_type: import_zod33.z.string(),
|
|
3458
|
+
total: import_zod33.z.number().int().nullable().optional(),
|
|
3459
|
+
completed: import_zod33.z.number().int().nullable().optional(),
|
|
3460
|
+
status: import_zod33.z.string().optional(),
|
|
3461
|
+
score: import_zod33.z.number().nullable().optional(),
|
|
3462
|
+
asr: import_zod33.z.number().nullable().optional(),
|
|
3371
3463
|
time_record: JobTimeRecordSchema.nullable().optional(),
|
|
3372
|
-
created_at:
|
|
3373
|
-
updated_at:
|
|
3374
|
-
created_by_user_id:
|
|
3375
|
-
report_stats:
|
|
3376
|
-
metering_quota_uuid:
|
|
3377
|
-
counted_towards_quota:
|
|
3378
|
-
invocation_id:
|
|
3379
|
-
}).passthrough();
|
|
3380
|
-
var JobListResponseSchema =
|
|
3464
|
+
created_at: import_zod33.z.string().nullable().optional(),
|
|
3465
|
+
updated_at: import_zod33.z.string().nullable().optional(),
|
|
3466
|
+
created_by_user_id: import_zod33.z.string().nullable().optional(),
|
|
3467
|
+
report_stats: import_zod33.z.unknown().optional(),
|
|
3468
|
+
metering_quota_uuid: import_zod33.z.string().nullable().optional(),
|
|
3469
|
+
counted_towards_quota: import_zod33.z.string().optional(),
|
|
3470
|
+
invocation_id: import_zod33.z.string().nullable().optional()
|
|
3471
|
+
}).passthrough();
|
|
3472
|
+
var JobListResponseSchema = import_zod33.z.object({
|
|
3381
3473
|
pagination: RedTeamPaginationSchema,
|
|
3382
|
-
data:
|
|
3383
|
-
}).passthrough();
|
|
3384
|
-
var JobAbortResponseSchema =
|
|
3385
|
-
job_id:
|
|
3386
|
-
message:
|
|
3387
|
-
}).passthrough();
|
|
3388
|
-
var PrerequisiteModelSchema =
|
|
3389
|
-
id:
|
|
3390
|
-
display_name:
|
|
3391
|
-
description:
|
|
3392
|
-
}).passthrough();
|
|
3393
|
-
var SubCategoryModelSchema =
|
|
3394
|
-
id:
|
|
3395
|
-
display_name:
|
|
3396
|
-
description:
|
|
3397
|
-
preselect:
|
|
3398
|
-
prerequisites:
|
|
3399
|
-
active:
|
|
3400
|
-
}).passthrough();
|
|
3401
|
-
var CategoryModelSchema =
|
|
3402
|
-
id:
|
|
3403
|
-
display_name:
|
|
3404
|
-
description:
|
|
3405
|
-
preselect:
|
|
3406
|
-
sub_categories:
|
|
3407
|
-
}).passthrough();
|
|
3408
|
-
var AttackOutputSchema =
|
|
3409
|
-
uuid:
|
|
3410
|
-
tsg_id:
|
|
3411
|
-
attack_id:
|
|
3412
|
-
job_id:
|
|
3413
|
-
target_id:
|
|
3414
|
-
output:
|
|
3415
|
-
threat:
|
|
3416
|
-
marked_safe:
|
|
3417
|
-
}).passthrough();
|
|
3418
|
-
var AttackMultiTurnOutputSchema =
|
|
3419
|
-
uuid:
|
|
3420
|
-
tsg_id:
|
|
3421
|
-
attack_id:
|
|
3422
|
-
job_id:
|
|
3423
|
-
target_id:
|
|
3424
|
-
output:
|
|
3425
|
-
prompt:
|
|
3426
|
-
turn:
|
|
3427
|
-
threat:
|
|
3428
|
-
marked_safe:
|
|
3429
|
-
generation:
|
|
3430
|
-
multi_turn:
|
|
3431
|
-
}).passthrough();
|
|
3432
|
-
var AttackListItemSchema =
|
|
3433
|
-
uuid:
|
|
3434
|
-
tsg_id:
|
|
3435
|
-
job_id:
|
|
3436
|
-
target_id:
|
|
3437
|
-
prompt:
|
|
3438
|
-
prompt_mapping_id:
|
|
3439
|
-
prompt_id:
|
|
3440
|
-
category:
|
|
3441
|
-
sub_category:
|
|
3442
|
-
category_display_name:
|
|
3443
|
-
sub_category_display_name:
|
|
3444
|
-
status:
|
|
3445
|
-
marked_safe:
|
|
3446
|
-
extra_info:
|
|
3447
|
-
threat:
|
|
3448
|
-
attack_type:
|
|
3449
|
-
multi_turn:
|
|
3450
|
-
asr:
|
|
3451
|
-
version:
|
|
3452
|
-
severity:
|
|
3453
|
-
}).passthrough();
|
|
3454
|
-
var AttackListResponseSchema =
|
|
3474
|
+
data: import_zod33.z.array(JobResponseSchema)
|
|
3475
|
+
}).passthrough();
|
|
3476
|
+
var JobAbortResponseSchema = import_zod33.z.object({
|
|
3477
|
+
job_id: import_zod33.z.string(),
|
|
3478
|
+
message: import_zod33.z.string()
|
|
3479
|
+
}).passthrough();
|
|
3480
|
+
var PrerequisiteModelSchema = import_zod33.z.object({
|
|
3481
|
+
id: import_zod33.z.string(),
|
|
3482
|
+
display_name: import_zod33.z.string(),
|
|
3483
|
+
description: import_zod33.z.string()
|
|
3484
|
+
}).passthrough();
|
|
3485
|
+
var SubCategoryModelSchema = import_zod33.z.object({
|
|
3486
|
+
id: import_zod33.z.string(),
|
|
3487
|
+
display_name: import_zod33.z.string(),
|
|
3488
|
+
description: import_zod33.z.string(),
|
|
3489
|
+
preselect: import_zod33.z.boolean().optional(),
|
|
3490
|
+
prerequisites: import_zod33.z.array(PrerequisiteModelSchema).nullable().optional(),
|
|
3491
|
+
active: import_zod33.z.boolean().optional()
|
|
3492
|
+
}).passthrough();
|
|
3493
|
+
var CategoryModelSchema = import_zod33.z.object({
|
|
3494
|
+
id: import_zod33.z.string(),
|
|
3495
|
+
display_name: import_zod33.z.string(),
|
|
3496
|
+
description: import_zod33.z.string(),
|
|
3497
|
+
preselect: import_zod33.z.boolean().optional(),
|
|
3498
|
+
sub_categories: import_zod33.z.array(SubCategoryModelSchema)
|
|
3499
|
+
}).passthrough();
|
|
3500
|
+
var AttackOutputSchema = import_zod33.z.object({
|
|
3501
|
+
uuid: import_zod33.z.string(),
|
|
3502
|
+
tsg_id: import_zod33.z.string(),
|
|
3503
|
+
attack_id: import_zod33.z.string(),
|
|
3504
|
+
job_id: import_zod33.z.string(),
|
|
3505
|
+
target_id: import_zod33.z.string(),
|
|
3506
|
+
output: import_zod33.z.string(),
|
|
3507
|
+
threat: import_zod33.z.boolean().nullable().optional(),
|
|
3508
|
+
marked_safe: import_zod33.z.boolean().nullable().optional()
|
|
3509
|
+
}).passthrough();
|
|
3510
|
+
var AttackMultiTurnOutputSchema = import_zod33.z.object({
|
|
3511
|
+
uuid: import_zod33.z.string(),
|
|
3512
|
+
tsg_id: import_zod33.z.string(),
|
|
3513
|
+
attack_id: import_zod33.z.string(),
|
|
3514
|
+
job_id: import_zod33.z.string(),
|
|
3515
|
+
target_id: import_zod33.z.string(),
|
|
3516
|
+
output: import_zod33.z.string(),
|
|
3517
|
+
prompt: import_zod33.z.string(),
|
|
3518
|
+
turn: import_zod33.z.number().int(),
|
|
3519
|
+
threat: import_zod33.z.boolean().nullable().optional(),
|
|
3520
|
+
marked_safe: import_zod33.z.boolean().nullable().optional(),
|
|
3521
|
+
generation: import_zod33.z.number().int().optional(),
|
|
3522
|
+
multi_turn: import_zod33.z.boolean().optional()
|
|
3523
|
+
}).passthrough();
|
|
3524
|
+
var AttackListItemSchema = import_zod33.z.object({
|
|
3525
|
+
uuid: import_zod33.z.string(),
|
|
3526
|
+
tsg_id: import_zod33.z.string(),
|
|
3527
|
+
job_id: import_zod33.z.string(),
|
|
3528
|
+
target_id: import_zod33.z.string(),
|
|
3529
|
+
prompt: import_zod33.z.string(),
|
|
3530
|
+
prompt_mapping_id: import_zod33.z.string(),
|
|
3531
|
+
prompt_id: import_zod33.z.string(),
|
|
3532
|
+
category: import_zod33.z.string(),
|
|
3533
|
+
sub_category: import_zod33.z.string(),
|
|
3534
|
+
category_display_name: import_zod33.z.string(),
|
|
3535
|
+
sub_category_display_name: import_zod33.z.string(),
|
|
3536
|
+
status: import_zod33.z.string().optional(),
|
|
3537
|
+
marked_safe: import_zod33.z.boolean().nullable().optional(),
|
|
3538
|
+
extra_info: import_zod33.z.record(import_zod33.z.unknown()).optional(),
|
|
3539
|
+
threat: import_zod33.z.boolean().nullable().optional(),
|
|
3540
|
+
attack_type: import_zod33.z.string().optional(),
|
|
3541
|
+
multi_turn: import_zod33.z.boolean().optional(),
|
|
3542
|
+
asr: import_zod33.z.number().nullable().optional(),
|
|
3543
|
+
version: import_zod33.z.number().int().nullable().optional(),
|
|
3544
|
+
severity: import_zod33.z.string().optional()
|
|
3545
|
+
}).passthrough();
|
|
3546
|
+
var AttackListResponseSchema = import_zod33.z.object({
|
|
3455
3547
|
pagination: RedTeamPaginationSchema,
|
|
3456
|
-
data:
|
|
3457
|
-
}).passthrough();
|
|
3458
|
-
var AttackDetailResponseSchema =
|
|
3459
|
-
uuid:
|
|
3460
|
-
tsg_id:
|
|
3461
|
-
job_id:
|
|
3462
|
-
target_id:
|
|
3463
|
-
prompt:
|
|
3464
|
-
prompt_mapping_id:
|
|
3465
|
-
prompt_id:
|
|
3466
|
-
category:
|
|
3467
|
-
sub_category:
|
|
3468
|
-
category_display_name:
|
|
3469
|
-
sub_category_display_name:
|
|
3470
|
-
compliance_frameworks:
|
|
3471
|
-
goal:
|
|
3472
|
-
status:
|
|
3473
|
-
marked_safe:
|
|
3474
|
-
extra_info:
|
|
3475
|
-
threat:
|
|
3476
|
-
attack_type:
|
|
3477
|
-
multi_turn:
|
|
3478
|
-
asr:
|
|
3479
|
-
version:
|
|
3480
|
-
severity:
|
|
3481
|
-
outputs:
|
|
3482
|
-
}).passthrough();
|
|
3483
|
-
var AttackMultiTurnDetailResponseSchema =
|
|
3484
|
-
uuid:
|
|
3485
|
-
tsg_id:
|
|
3486
|
-
job_id:
|
|
3487
|
-
target_id:
|
|
3488
|
-
prompt:
|
|
3489
|
-
prompt_mapping_id:
|
|
3490
|
-
prompt_id:
|
|
3491
|
-
category:
|
|
3492
|
-
sub_category:
|
|
3493
|
-
category_display_name:
|
|
3494
|
-
sub_category_display_name:
|
|
3495
|
-
compliance_frameworks:
|
|
3496
|
-
goal:
|
|
3497
|
-
status:
|
|
3498
|
-
marked_safe:
|
|
3499
|
-
extra_info:
|
|
3500
|
-
threat:
|
|
3501
|
-
attack_type:
|
|
3502
|
-
multi_turn:
|
|
3503
|
-
asr:
|
|
3504
|
-
version:
|
|
3505
|
-
severity:
|
|
3506
|
-
outputs:
|
|
3507
|
-
}).passthrough();
|
|
3508
|
-
var SubCategoryStatsSchema =
|
|
3509
|
-
id:
|
|
3510
|
-
display_name:
|
|
3511
|
-
description:
|
|
3512
|
-
preselect:
|
|
3513
|
-
prerequisites:
|
|
3514
|
-
active:
|
|
3515
|
-
successful:
|
|
3516
|
-
failed:
|
|
3517
|
-
total:
|
|
3518
|
-
}).passthrough();
|
|
3519
|
-
var CategoryReportSchema =
|
|
3520
|
-
id:
|
|
3521
|
-
display_name:
|
|
3522
|
-
description:
|
|
3523
|
-
preselect:
|
|
3524
|
-
sub_categories:
|
|
3525
|
-
asr:
|
|
3526
|
-
total_prompts:
|
|
3527
|
-
total_attacks:
|
|
3528
|
-
successful:
|
|
3529
|
-
failed:
|
|
3530
|
-
}).passthrough();
|
|
3531
|
-
var SeverityStatsSchema =
|
|
3532
|
-
severity:
|
|
3533
|
-
successful:
|
|
3534
|
-
failed:
|
|
3535
|
-
}).passthrough();
|
|
3536
|
-
var SeverityReportSchema =
|
|
3537
|
-
stats:
|
|
3538
|
-
successful:
|
|
3539
|
-
failed:
|
|
3540
|
-
total_attacks:
|
|
3541
|
-
}).passthrough();
|
|
3542
|
-
var ComplianceTechniqueSchema =
|
|
3543
|
-
id:
|
|
3544
|
-
display_name:
|
|
3545
|
-
compliance_id:
|
|
3546
|
-
description:
|
|
3547
|
-
link:
|
|
3548
|
-
version:
|
|
3549
|
-
active:
|
|
3550
|
-
successful:
|
|
3551
|
-
failed:
|
|
3552
|
-
total:
|
|
3553
|
-
}).passthrough();
|
|
3554
|
-
var ComplianceReportSchema =
|
|
3555
|
-
id:
|
|
3556
|
-
display_name:
|
|
3557
|
-
description:
|
|
3558
|
-
active:
|
|
3559
|
-
version:
|
|
3560
|
-
link:
|
|
3561
|
-
techniques:
|
|
3562
|
-
score:
|
|
3563
|
-
}).passthrough();
|
|
3564
|
-
var RuntimeSecurityPolicySchema =
|
|
3565
|
-
policy_id:
|
|
3566
|
-
display_name:
|
|
3567
|
-
config:
|
|
3568
|
-
}).passthrough();
|
|
3569
|
-
var StaticJobRemediationSchema =
|
|
3570
|
-
remediation:
|
|
3571
|
-
description:
|
|
3572
|
-
mapping_remediation_id:
|
|
3573
|
-
subcategories:
|
|
3574
|
-
effectiveness:
|
|
3575
|
-
ease_of_implementation:
|
|
3576
|
-
priority:
|
|
3577
|
-
resource_links:
|
|
3578
|
-
categories:
|
|
3579
|
-
}).passthrough();
|
|
3580
|
-
var StaticJobRemediationRecommendationSchema =
|
|
3581
|
-
runtime_security_policy_configuration:
|
|
3582
|
-
other_measures:
|
|
3583
|
-
}).passthrough();
|
|
3584
|
-
var StaticJobReportSchema =
|
|
3548
|
+
data: import_zod33.z.array(AttackListItemSchema)
|
|
3549
|
+
}).passthrough();
|
|
3550
|
+
var AttackDetailResponseSchema = import_zod33.z.object({
|
|
3551
|
+
uuid: import_zod33.z.string(),
|
|
3552
|
+
tsg_id: import_zod33.z.string(),
|
|
3553
|
+
job_id: import_zod33.z.string(),
|
|
3554
|
+
target_id: import_zod33.z.string(),
|
|
3555
|
+
prompt: import_zod33.z.string(),
|
|
3556
|
+
prompt_mapping_id: import_zod33.z.string(),
|
|
3557
|
+
prompt_id: import_zod33.z.string(),
|
|
3558
|
+
category: import_zod33.z.string(),
|
|
3559
|
+
sub_category: import_zod33.z.string(),
|
|
3560
|
+
category_display_name: import_zod33.z.string(),
|
|
3561
|
+
sub_category_display_name: import_zod33.z.string(),
|
|
3562
|
+
compliance_frameworks: import_zod33.z.array(import_zod33.z.unknown()),
|
|
3563
|
+
goal: import_zod33.z.string().nullable(),
|
|
3564
|
+
status: import_zod33.z.string().optional(),
|
|
3565
|
+
marked_safe: import_zod33.z.boolean().nullable().optional(),
|
|
3566
|
+
extra_info: import_zod33.z.record(import_zod33.z.unknown()).optional(),
|
|
3567
|
+
threat: import_zod33.z.boolean().nullable().optional(),
|
|
3568
|
+
attack_type: import_zod33.z.string().optional(),
|
|
3569
|
+
multi_turn: import_zod33.z.boolean().optional(),
|
|
3570
|
+
asr: import_zod33.z.number().nullable().optional(),
|
|
3571
|
+
version: import_zod33.z.number().int().nullable().optional(),
|
|
3572
|
+
severity: import_zod33.z.string().optional(),
|
|
3573
|
+
outputs: import_zod33.z.array(AttackOutputSchema).optional()
|
|
3574
|
+
}).passthrough();
|
|
3575
|
+
var AttackMultiTurnDetailResponseSchema = import_zod33.z.object({
|
|
3576
|
+
uuid: import_zod33.z.string(),
|
|
3577
|
+
tsg_id: import_zod33.z.string(),
|
|
3578
|
+
job_id: import_zod33.z.string(),
|
|
3579
|
+
target_id: import_zod33.z.string(),
|
|
3580
|
+
prompt: import_zod33.z.string(),
|
|
3581
|
+
prompt_mapping_id: import_zod33.z.string(),
|
|
3582
|
+
prompt_id: import_zod33.z.string(),
|
|
3583
|
+
category: import_zod33.z.string(),
|
|
3584
|
+
sub_category: import_zod33.z.string(),
|
|
3585
|
+
category_display_name: import_zod33.z.string(),
|
|
3586
|
+
sub_category_display_name: import_zod33.z.string(),
|
|
3587
|
+
compliance_frameworks: import_zod33.z.array(import_zod33.z.unknown()),
|
|
3588
|
+
goal: import_zod33.z.string().nullable(),
|
|
3589
|
+
status: import_zod33.z.string().optional(),
|
|
3590
|
+
marked_safe: import_zod33.z.boolean().nullable().optional(),
|
|
3591
|
+
extra_info: import_zod33.z.record(import_zod33.z.unknown()).optional(),
|
|
3592
|
+
threat: import_zod33.z.boolean().nullable().optional(),
|
|
3593
|
+
attack_type: import_zod33.z.string().optional(),
|
|
3594
|
+
multi_turn: import_zod33.z.boolean().optional(),
|
|
3595
|
+
asr: import_zod33.z.number().nullable().optional(),
|
|
3596
|
+
version: import_zod33.z.number().int().nullable().optional(),
|
|
3597
|
+
severity: import_zod33.z.string().optional(),
|
|
3598
|
+
outputs: import_zod33.z.array(AttackMultiTurnOutputSchema).optional()
|
|
3599
|
+
}).passthrough();
|
|
3600
|
+
var SubCategoryStatsSchema = import_zod33.z.object({
|
|
3601
|
+
id: import_zod33.z.string(),
|
|
3602
|
+
display_name: import_zod33.z.string(),
|
|
3603
|
+
description: import_zod33.z.string(),
|
|
3604
|
+
preselect: import_zod33.z.boolean().optional(),
|
|
3605
|
+
prerequisites: import_zod33.z.array(PrerequisiteModelSchema).nullable().optional(),
|
|
3606
|
+
active: import_zod33.z.boolean().optional(),
|
|
3607
|
+
successful: import_zod33.z.number().int(),
|
|
3608
|
+
failed: import_zod33.z.number().int(),
|
|
3609
|
+
total: import_zod33.z.number().int().optional()
|
|
3610
|
+
}).passthrough();
|
|
3611
|
+
var CategoryReportSchema = import_zod33.z.object({
|
|
3612
|
+
id: import_zod33.z.string(),
|
|
3613
|
+
display_name: import_zod33.z.string(),
|
|
3614
|
+
description: import_zod33.z.string(),
|
|
3615
|
+
preselect: import_zod33.z.boolean().optional(),
|
|
3616
|
+
sub_categories: import_zod33.z.array(SubCategoryStatsSchema),
|
|
3617
|
+
asr: import_zod33.z.number(),
|
|
3618
|
+
total_prompts: import_zod33.z.number().int(),
|
|
3619
|
+
total_attacks: import_zod33.z.number().int(),
|
|
3620
|
+
successful: import_zod33.z.number().int(),
|
|
3621
|
+
failed: import_zod33.z.number().int()
|
|
3622
|
+
}).passthrough();
|
|
3623
|
+
var SeverityStatsSchema = import_zod33.z.object({
|
|
3624
|
+
severity: import_zod33.z.string(),
|
|
3625
|
+
successful: import_zod33.z.number().int().optional(),
|
|
3626
|
+
failed: import_zod33.z.number().int().optional()
|
|
3627
|
+
}).passthrough();
|
|
3628
|
+
var SeverityReportSchema = import_zod33.z.object({
|
|
3629
|
+
stats: import_zod33.z.array(SeverityStatsSchema),
|
|
3630
|
+
successful: import_zod33.z.number().int().optional(),
|
|
3631
|
+
failed: import_zod33.z.number().int().optional(),
|
|
3632
|
+
total_attacks: import_zod33.z.number().int().optional()
|
|
3633
|
+
}).passthrough();
|
|
3634
|
+
var ComplianceTechniqueSchema = import_zod33.z.object({
|
|
3635
|
+
id: import_zod33.z.string(),
|
|
3636
|
+
display_name: import_zod33.z.string(),
|
|
3637
|
+
compliance_id: import_zod33.z.string(),
|
|
3638
|
+
description: import_zod33.z.string(),
|
|
3639
|
+
link: import_zod33.z.string(),
|
|
3640
|
+
version: import_zod33.z.string(),
|
|
3641
|
+
active: import_zod33.z.boolean(),
|
|
3642
|
+
successful: import_zod33.z.number().int().optional(),
|
|
3643
|
+
failed: import_zod33.z.number().int().optional(),
|
|
3644
|
+
total: import_zod33.z.number().int().optional()
|
|
3645
|
+
}).passthrough();
|
|
3646
|
+
var ComplianceReportSchema = import_zod33.z.object({
|
|
3647
|
+
id: import_zod33.z.string(),
|
|
3648
|
+
display_name: import_zod33.z.string(),
|
|
3649
|
+
description: import_zod33.z.string(),
|
|
3650
|
+
active: import_zod33.z.boolean(),
|
|
3651
|
+
version: import_zod33.z.string(),
|
|
3652
|
+
link: import_zod33.z.string(),
|
|
3653
|
+
techniques: import_zod33.z.array(ComplianceTechniqueSchema),
|
|
3654
|
+
score: import_zod33.z.number().int().optional()
|
|
3655
|
+
}).passthrough();
|
|
3656
|
+
var RuntimeSecurityPolicySchema = import_zod33.z.object({
|
|
3657
|
+
policy_id: import_zod33.z.string(),
|
|
3658
|
+
display_name: import_zod33.z.string(),
|
|
3659
|
+
config: import_zod33.z.record(import_zod33.z.unknown())
|
|
3660
|
+
}).passthrough();
|
|
3661
|
+
var StaticJobRemediationSchema = import_zod33.z.object({
|
|
3662
|
+
remediation: import_zod33.z.string(),
|
|
3663
|
+
description: import_zod33.z.string(),
|
|
3664
|
+
mapping_remediation_id: import_zod33.z.string().nullable().optional(),
|
|
3665
|
+
subcategories: import_zod33.z.array(import_zod33.z.string()).nullable().optional(),
|
|
3666
|
+
effectiveness: import_zod33.z.number().int().optional(),
|
|
3667
|
+
ease_of_implementation: import_zod33.z.number().int().optional(),
|
|
3668
|
+
priority: import_zod33.z.number().int().optional(),
|
|
3669
|
+
resource_links: import_zod33.z.array(import_zod33.z.string()).optional(),
|
|
3670
|
+
categories: import_zod33.z.array(import_zod33.z.string()).nullable().optional()
|
|
3671
|
+
}).passthrough();
|
|
3672
|
+
var StaticJobRemediationRecommendationSchema = import_zod33.z.object({
|
|
3673
|
+
runtime_security_policy_configuration: import_zod33.z.array(RuntimeSecurityPolicySchema).nullable().optional(),
|
|
3674
|
+
other_measures: import_zod33.z.array(StaticJobRemediationSchema).optional()
|
|
3675
|
+
}).passthrough();
|
|
3676
|
+
var StaticJobReportSchema = import_zod33.z.object({
|
|
3585
3677
|
severity_report: SeverityReportSchema,
|
|
3586
|
-
asr:
|
|
3587
|
-
score:
|
|
3678
|
+
asr: import_zod33.z.number().nullable().optional(),
|
|
3679
|
+
score: import_zod33.z.number().nullable().optional(),
|
|
3588
3680
|
security_report: CategoryReportSchema.nullable().optional(),
|
|
3589
3681
|
safety_report: CategoryReportSchema.nullable().optional(),
|
|
3590
3682
|
brand_report: CategoryReportSchema.nullable().optional(),
|
|
3591
|
-
compliance_report:
|
|
3592
|
-
report_summary:
|
|
3683
|
+
compliance_report: import_zod33.z.array(ComplianceReportSchema).nullable().optional(),
|
|
3684
|
+
report_summary: import_zod33.z.string().nullable().optional(),
|
|
3593
3685
|
recommendations: StaticJobRemediationRecommendationSchema.nullable().optional()
|
|
3594
3686
|
}).passthrough();
|
|
3595
|
-
var DynamicJobReportSchema =
|
|
3596
|
-
total_goals:
|
|
3597
|
-
total_streams:
|
|
3598
|
-
total_threats:
|
|
3599
|
-
goals_achieved:
|
|
3600
|
-
report_summary:
|
|
3601
|
-
score:
|
|
3602
|
-
asr:
|
|
3603
|
-
}).passthrough();
|
|
3604
|
-
var RemediationDetailSchema =
|
|
3605
|
-
remediation:
|
|
3606
|
-
description:
|
|
3607
|
-
resource_links:
|
|
3608
|
-
priority_level:
|
|
3609
|
-
ease_of_implementation_level:
|
|
3610
|
-
effectiveness_level:
|
|
3611
|
-
}).passthrough();
|
|
3612
|
-
var RemediationResponseSchema =
|
|
3613
|
-
var RuntimeSecurityProfileResponseSchema =
|
|
3614
|
-
runtime_security_profile:
|
|
3615
|
-
}).passthrough();
|
|
3616
|
-
var GoalSchema =
|
|
3617
|
-
goal:
|
|
3618
|
-
safe_response:
|
|
3619
|
-
jailbroken_response:
|
|
3620
|
-
goal_metadata:
|
|
3621
|
-
custom_goal:
|
|
3622
|
-
goal_type:
|
|
3623
|
-
uuid:
|
|
3624
|
-
tsg_id:
|
|
3625
|
-
job_id:
|
|
3626
|
-
goal_to_show:
|
|
3627
|
-
threat:
|
|
3628
|
-
version:
|
|
3629
|
-
extra_info:
|
|
3630
|
-
}).passthrough();
|
|
3631
|
-
var GoalListResponseSchema =
|
|
3632
|
-
var StreamIterationDataSchema =
|
|
3633
|
-
uuid:
|
|
3634
|
-
tsg_id:
|
|
3635
|
-
job_id:
|
|
3636
|
-
stream_id:
|
|
3637
|
-
goal_id:
|
|
3638
|
-
iteration:
|
|
3639
|
-
prompt:
|
|
3640
|
-
techniques:
|
|
3641
|
-
improvement:
|
|
3642
|
-
prompts_objective:
|
|
3643
|
-
summary:
|
|
3644
|
-
output:
|
|
3645
|
-
score:
|
|
3646
|
-
judge_reasoning:
|
|
3647
|
-
threat:
|
|
3648
|
-
created_at:
|
|
3649
|
-
updated_at:
|
|
3650
|
-
extra_info:
|
|
3651
|
-
version:
|
|
3652
|
-
}).passthrough();
|
|
3653
|
-
var StreamDetailResponseSchema =
|
|
3654
|
-
uuid:
|
|
3655
|
-
tsg_id:
|
|
3656
|
-
job_id:
|
|
3657
|
-
target_id:
|
|
3658
|
-
goal_id:
|
|
3659
|
-
stream_idx:
|
|
3660
|
-
iteration:
|
|
3661
|
-
goal:
|
|
3662
|
-
marked_safe:
|
|
3663
|
-
stream_type:
|
|
3664
|
-
threat:
|
|
3687
|
+
var DynamicJobReportSchema = import_zod33.z.object({
|
|
3688
|
+
total_goals: import_zod33.z.number().int().optional(),
|
|
3689
|
+
total_streams: import_zod33.z.number().int().optional(),
|
|
3690
|
+
total_threats: import_zod33.z.number().int().optional(),
|
|
3691
|
+
goals_achieved: import_zod33.z.number().int().optional(),
|
|
3692
|
+
report_summary: import_zod33.z.string().nullable().optional(),
|
|
3693
|
+
score: import_zod33.z.number().optional(),
|
|
3694
|
+
asr: import_zod33.z.number().optional()
|
|
3695
|
+
}).passthrough();
|
|
3696
|
+
var RemediationDetailSchema = import_zod33.z.object({
|
|
3697
|
+
remediation: import_zod33.z.string(),
|
|
3698
|
+
description: import_zod33.z.string(),
|
|
3699
|
+
resource_links: import_zod33.z.array(import_zod33.z.string()).optional(),
|
|
3700
|
+
priority_level: import_zod33.z.string().optional(),
|
|
3701
|
+
ease_of_implementation_level: import_zod33.z.string().optional(),
|
|
3702
|
+
effectiveness_level: import_zod33.z.string().optional()
|
|
3703
|
+
}).passthrough();
|
|
3704
|
+
var RemediationResponseSchema = import_zod33.z.object({ remediations: import_zod33.z.array(RemediationDetailSchema).optional() }).passthrough();
|
|
3705
|
+
var RuntimeSecurityProfileResponseSchema = import_zod33.z.object({
|
|
3706
|
+
runtime_security_profile: import_zod33.z.array(RuntimeSecurityPolicySchema).nullable().optional()
|
|
3707
|
+
}).passthrough();
|
|
3708
|
+
var GoalSchema = import_zod33.z.object({
|
|
3709
|
+
goal: import_zod33.z.string(),
|
|
3710
|
+
safe_response: import_zod33.z.string(),
|
|
3711
|
+
jailbroken_response: import_zod33.z.string(),
|
|
3712
|
+
goal_metadata: import_zod33.z.record(import_zod33.z.unknown()).optional(),
|
|
3713
|
+
custom_goal: import_zod33.z.boolean().optional(),
|
|
3714
|
+
goal_type: import_zod33.z.string().optional(),
|
|
3715
|
+
uuid: import_zod33.z.string(),
|
|
3716
|
+
tsg_id: import_zod33.z.string(),
|
|
3717
|
+
job_id: import_zod33.z.string(),
|
|
3718
|
+
goal_to_show: import_zod33.z.string().nullable().optional(),
|
|
3719
|
+
threat: import_zod33.z.boolean().optional(),
|
|
3720
|
+
version: import_zod33.z.number().int().nullable().optional(),
|
|
3721
|
+
extra_info: import_zod33.z.record(import_zod33.z.unknown()).nullable().optional()
|
|
3722
|
+
}).passthrough();
|
|
3723
|
+
var GoalListResponseSchema = import_zod33.z.object({ pagination: RedTeamPaginationSchema, data: import_zod33.z.array(GoalSchema) }).passthrough();
|
|
3724
|
+
var StreamIterationDataSchema = import_zod33.z.object({
|
|
3725
|
+
uuid: import_zod33.z.string(),
|
|
3726
|
+
tsg_id: import_zod33.z.string(),
|
|
3727
|
+
job_id: import_zod33.z.string(),
|
|
3728
|
+
stream_id: import_zod33.z.string(),
|
|
3729
|
+
goal_id: import_zod33.z.string(),
|
|
3730
|
+
iteration: import_zod33.z.number().int(),
|
|
3731
|
+
prompt: import_zod33.z.string(),
|
|
3732
|
+
techniques: import_zod33.z.string(),
|
|
3733
|
+
improvement: import_zod33.z.string(),
|
|
3734
|
+
prompts_objective: import_zod33.z.string(),
|
|
3735
|
+
summary: import_zod33.z.string(),
|
|
3736
|
+
output: import_zod33.z.string().nullable().optional(),
|
|
3737
|
+
score: import_zod33.z.number().int().nullable().optional(),
|
|
3738
|
+
judge_reasoning: import_zod33.z.string().nullable().optional(),
|
|
3739
|
+
threat: import_zod33.z.boolean().optional(),
|
|
3740
|
+
created_at: import_zod33.z.string().nullable().optional(),
|
|
3741
|
+
updated_at: import_zod33.z.string().nullable().optional(),
|
|
3742
|
+
extra_info: import_zod33.z.record(import_zod33.z.unknown()).nullable().optional(),
|
|
3743
|
+
version: import_zod33.z.number().int().nullable().optional()
|
|
3744
|
+
}).passthrough();
|
|
3745
|
+
var StreamDetailResponseSchema = import_zod33.z.object({
|
|
3746
|
+
uuid: import_zod33.z.string(),
|
|
3747
|
+
tsg_id: import_zod33.z.string(),
|
|
3748
|
+
job_id: import_zod33.z.string(),
|
|
3749
|
+
target_id: import_zod33.z.string(),
|
|
3750
|
+
goal_id: import_zod33.z.string(),
|
|
3751
|
+
stream_idx: import_zod33.z.number().int().optional(),
|
|
3752
|
+
iteration: import_zod33.z.number().int().optional(),
|
|
3753
|
+
goal: import_zod33.z.unknown().optional(),
|
|
3754
|
+
marked_safe: import_zod33.z.boolean().optional(),
|
|
3755
|
+
stream_type: import_zod33.z.string().nullable().optional(),
|
|
3756
|
+
threat: import_zod33.z.boolean().optional(),
|
|
3665
3757
|
first_threat_iteration: StreamIterationDataSchema.nullable().optional(),
|
|
3666
|
-
created_at:
|
|
3667
|
-
updated_at:
|
|
3668
|
-
extra_info:
|
|
3669
|
-
version:
|
|
3670
|
-
iterations:
|
|
3671
|
-
}).passthrough();
|
|
3672
|
-
var StreamListResponseSchema =
|
|
3673
|
-
var CustomAttackOutputSchema =
|
|
3674
|
-
uuid:
|
|
3675
|
-
tsg_id:
|
|
3676
|
-
custom_attack_id:
|
|
3677
|
-
job_id:
|
|
3678
|
-
target_id:
|
|
3679
|
-
output:
|
|
3680
|
-
threat:
|
|
3681
|
-
marked_safe:
|
|
3682
|
-
}).passthrough();
|
|
3683
|
-
var PropertyAssignmentSchema =
|
|
3684
|
-
name:
|
|
3685
|
-
value:
|
|
3686
|
-
}).passthrough();
|
|
3687
|
-
var PropertyValueStatisticSchema =
|
|
3688
|
-
value:
|
|
3689
|
-
successful_attack_count:
|
|
3690
|
-
total_attack_count:
|
|
3691
|
-
success_rate:
|
|
3692
|
-
}).passthrough();
|
|
3693
|
-
var PropertyStatisticSchema =
|
|
3694
|
-
property_name:
|
|
3695
|
-
values:
|
|
3696
|
-
}).passthrough();
|
|
3697
|
-
var PromptSetSummarySchema =
|
|
3698
|
-
prompt_set_id:
|
|
3699
|
-
prompt_set_name:
|
|
3700
|
-
total_prompts:
|
|
3701
|
-
total_attacks:
|
|
3702
|
-
total_threats:
|
|
3703
|
-
failed_attacks:
|
|
3704
|
-
threat_rate:
|
|
3705
|
-
property_names:
|
|
3706
|
-
property_statistics:
|
|
3707
|
-
}).passthrough();
|
|
3708
|
-
var CustomAttackReportResponseSchema =
|
|
3709
|
-
total_prompts:
|
|
3710
|
-
total_attacks:
|
|
3711
|
-
total_threats:
|
|
3712
|
-
failed_attacks:
|
|
3713
|
-
score:
|
|
3714
|
-
asr:
|
|
3715
|
-
custom_attack_reports:
|
|
3716
|
-
property_statistics:
|
|
3717
|
-
}).passthrough();
|
|
3718
|
-
var PromptSetsReportResponseSchema =
|
|
3719
|
-
prompt_sets:
|
|
3720
|
-
total_prompt_sets:
|
|
3721
|
-
applied_filters:
|
|
3722
|
-
}).passthrough();
|
|
3723
|
-
var PromptDetailResponseSchema =
|
|
3724
|
-
prompt_id:
|
|
3725
|
-
prompt_text:
|
|
3726
|
-
goal:
|
|
3727
|
-
user_defined_goal:
|
|
3728
|
-
properties:
|
|
3729
|
-
attack_id:
|
|
3730
|
-
threat:
|
|
3731
|
-
attack_outputs:
|
|
3732
|
-
asr:
|
|
3733
|
-
prompt_set_id:
|
|
3734
|
-
prompt_set_name:
|
|
3735
|
-
}).passthrough();
|
|
3736
|
-
var CustomAttacksListResponseSchema =
|
|
3758
|
+
created_at: import_zod33.z.string().nullable().optional(),
|
|
3759
|
+
updated_at: import_zod33.z.string().nullable().optional(),
|
|
3760
|
+
extra_info: import_zod33.z.record(import_zod33.z.unknown()).optional(),
|
|
3761
|
+
version: import_zod33.z.number().int().nullable().optional(),
|
|
3762
|
+
iterations: import_zod33.z.array(StreamIterationDataSchema).optional()
|
|
3763
|
+
}).passthrough();
|
|
3764
|
+
var StreamListResponseSchema = import_zod33.z.object({ pagination: RedTeamPaginationSchema, data: import_zod33.z.array(StreamDetailResponseSchema) }).passthrough();
|
|
3765
|
+
var CustomAttackOutputSchema = import_zod33.z.object({
|
|
3766
|
+
uuid: import_zod33.z.string(),
|
|
3767
|
+
tsg_id: import_zod33.z.string(),
|
|
3768
|
+
custom_attack_id: import_zod33.z.string(),
|
|
3769
|
+
job_id: import_zod33.z.string(),
|
|
3770
|
+
target_id: import_zod33.z.string(),
|
|
3771
|
+
output: import_zod33.z.string(),
|
|
3772
|
+
threat: import_zod33.z.boolean().nullable().optional(),
|
|
3773
|
+
marked_safe: import_zod33.z.boolean().nullable().optional()
|
|
3774
|
+
}).passthrough();
|
|
3775
|
+
var PropertyAssignmentSchema = import_zod33.z.object({
|
|
3776
|
+
name: import_zod33.z.string(),
|
|
3777
|
+
value: import_zod33.z.string()
|
|
3778
|
+
}).passthrough();
|
|
3779
|
+
var PropertyValueStatisticSchema = import_zod33.z.object({
|
|
3780
|
+
value: import_zod33.z.string(),
|
|
3781
|
+
successful_attack_count: import_zod33.z.number().int(),
|
|
3782
|
+
total_attack_count: import_zod33.z.number().int(),
|
|
3783
|
+
success_rate: import_zod33.z.number()
|
|
3784
|
+
}).passthrough();
|
|
3785
|
+
var PropertyStatisticSchema = import_zod33.z.object({
|
|
3786
|
+
property_name: import_zod33.z.string(),
|
|
3787
|
+
values: import_zod33.z.array(PropertyValueStatisticSchema)
|
|
3788
|
+
}).passthrough();
|
|
3789
|
+
var PromptSetSummarySchema = import_zod33.z.object({
|
|
3790
|
+
prompt_set_id: import_zod33.z.string(),
|
|
3791
|
+
prompt_set_name: import_zod33.z.string(),
|
|
3792
|
+
total_prompts: import_zod33.z.number().int(),
|
|
3793
|
+
total_attacks: import_zod33.z.number().int(),
|
|
3794
|
+
total_threats: import_zod33.z.number().int(),
|
|
3795
|
+
failed_attacks: import_zod33.z.number().int(),
|
|
3796
|
+
threat_rate: import_zod33.z.number(),
|
|
3797
|
+
property_names: import_zod33.z.array(import_zod33.z.string()).optional(),
|
|
3798
|
+
property_statistics: import_zod33.z.array(PropertyStatisticSchema).optional()
|
|
3799
|
+
}).passthrough();
|
|
3800
|
+
var CustomAttackReportResponseSchema = import_zod33.z.object({
|
|
3801
|
+
total_prompts: import_zod33.z.number().int(),
|
|
3802
|
+
total_attacks: import_zod33.z.number().int(),
|
|
3803
|
+
total_threats: import_zod33.z.number().int(),
|
|
3804
|
+
failed_attacks: import_zod33.z.number().int(),
|
|
3805
|
+
score: import_zod33.z.number(),
|
|
3806
|
+
asr: import_zod33.z.number(),
|
|
3807
|
+
custom_attack_reports: import_zod33.z.array(PromptSetSummarySchema).optional(),
|
|
3808
|
+
property_statistics: import_zod33.z.array(PropertyStatisticSchema).optional()
|
|
3809
|
+
}).passthrough();
|
|
3810
|
+
var PromptSetsReportResponseSchema = import_zod33.z.object({
|
|
3811
|
+
prompt_sets: import_zod33.z.array(PromptSetSummarySchema),
|
|
3812
|
+
total_prompt_sets: import_zod33.z.number().int(),
|
|
3813
|
+
applied_filters: import_zod33.z.record(import_zod33.z.unknown()).optional()
|
|
3814
|
+
}).passthrough();
|
|
3815
|
+
var PromptDetailResponseSchema = import_zod33.z.object({
|
|
3816
|
+
prompt_id: import_zod33.z.string(),
|
|
3817
|
+
prompt_text: import_zod33.z.string(),
|
|
3818
|
+
goal: import_zod33.z.string().nullable().optional(),
|
|
3819
|
+
user_defined_goal: import_zod33.z.boolean().optional(),
|
|
3820
|
+
properties: import_zod33.z.array(PropertyAssignmentSchema).optional(),
|
|
3821
|
+
attack_id: import_zod33.z.string().nullable().optional(),
|
|
3822
|
+
threat: import_zod33.z.boolean().nullable().optional(),
|
|
3823
|
+
attack_outputs: import_zod33.z.array(CustomAttackOutputSchema).optional(),
|
|
3824
|
+
asr: import_zod33.z.number().nullable().optional(),
|
|
3825
|
+
prompt_set_id: import_zod33.z.string().nullable().optional(),
|
|
3826
|
+
prompt_set_name: import_zod33.z.string().nullable().optional()
|
|
3827
|
+
}).passthrough();
|
|
3828
|
+
var CustomAttacksListResponseSchema = import_zod33.z.object({
|
|
3737
3829
|
pagination: RedTeamPaginationSchema,
|
|
3738
|
-
data:
|
|
3739
|
-
total_attacks:
|
|
3740
|
-
total_threats:
|
|
3741
|
-
}).passthrough();
|
|
3742
|
-
var RiskLevelSchema =
|
|
3743
|
-
risk_rating:
|
|
3744
|
-
total:
|
|
3745
|
-
targets_by_type:
|
|
3746
|
-
}).passthrough();
|
|
3747
|
-
var ScanStatisticsResponseSchema =
|
|
3748
|
-
total_scans:
|
|
3749
|
-
targets_scanned:
|
|
3750
|
-
targets_scanned_by_type:
|
|
3751
|
-
scan_status:
|
|
3752
|
-
risk_profile:
|
|
3753
|
-
}).passthrough();
|
|
3754
|
-
var ScoreTrendSeriesSchema =
|
|
3755
|
-
label:
|
|
3756
|
-
data:
|
|
3757
|
-
}).passthrough();
|
|
3758
|
-
var ScoreTrendResponseSchema =
|
|
3759
|
-
labels:
|
|
3760
|
-
series:
|
|
3761
|
-
}).passthrough();
|
|
3762
|
-
var SentimentRequestSchema =
|
|
3763
|
-
job_id:
|
|
3764
|
-
up_vote:
|
|
3765
|
-
down_vote:
|
|
3766
|
-
}).passthrough();
|
|
3767
|
-
var SentimentResponseSchema =
|
|
3768
|
-
job_id:
|
|
3769
|
-
up_vote:
|
|
3770
|
-
down_vote:
|
|
3771
|
-
}).passthrough();
|
|
3772
|
-
var QuotaDetailsSchema =
|
|
3773
|
-
allocated:
|
|
3774
|
-
unlimited:
|
|
3775
|
-
consumed:
|
|
3776
|
-
}).passthrough();
|
|
3777
|
-
var QuotaSummarySchema =
|
|
3830
|
+
data: import_zod33.z.array(import_zod33.z.unknown()),
|
|
3831
|
+
total_attacks: import_zod33.z.number().int(),
|
|
3832
|
+
total_threats: import_zod33.z.number().int()
|
|
3833
|
+
}).passthrough();
|
|
3834
|
+
var RiskLevelSchema = import_zod33.z.object({
|
|
3835
|
+
risk_rating: import_zod33.z.string(),
|
|
3836
|
+
total: import_zod33.z.number().int(),
|
|
3837
|
+
targets_by_type: import_zod33.z.array(CountByNameSchema).optional()
|
|
3838
|
+
}).passthrough();
|
|
3839
|
+
var ScanStatisticsResponseSchema = import_zod33.z.object({
|
|
3840
|
+
total_scans: import_zod33.z.number().int(),
|
|
3841
|
+
targets_scanned: import_zod33.z.number().int(),
|
|
3842
|
+
targets_scanned_by_type: import_zod33.z.array(CountByNameSchema).optional(),
|
|
3843
|
+
scan_status: import_zod33.z.array(CountByNameSchema).optional(),
|
|
3844
|
+
risk_profile: import_zod33.z.array(RiskLevelSchema).optional()
|
|
3845
|
+
}).passthrough();
|
|
3846
|
+
var ScoreTrendSeriesSchema = import_zod33.z.object({
|
|
3847
|
+
label: import_zod33.z.string(),
|
|
3848
|
+
data: import_zod33.z.array(import_zod33.z.number().nullable())
|
|
3849
|
+
}).passthrough();
|
|
3850
|
+
var ScoreTrendResponseSchema = import_zod33.z.object({
|
|
3851
|
+
labels: import_zod33.z.array(import_zod33.z.string()),
|
|
3852
|
+
series: import_zod33.z.array(ScoreTrendSeriesSchema)
|
|
3853
|
+
}).passthrough();
|
|
3854
|
+
var SentimentRequestSchema = import_zod33.z.object({
|
|
3855
|
+
job_id: import_zod33.z.string(),
|
|
3856
|
+
up_vote: import_zod33.z.boolean().optional(),
|
|
3857
|
+
down_vote: import_zod33.z.boolean().optional()
|
|
3858
|
+
}).passthrough();
|
|
3859
|
+
var SentimentResponseSchema = import_zod33.z.object({
|
|
3860
|
+
job_id: import_zod33.z.string(),
|
|
3861
|
+
up_vote: import_zod33.z.boolean().optional(),
|
|
3862
|
+
down_vote: import_zod33.z.boolean().optional()
|
|
3863
|
+
}).passthrough();
|
|
3864
|
+
var QuotaDetailsSchema = import_zod33.z.object({
|
|
3865
|
+
allocated: import_zod33.z.number().int(),
|
|
3866
|
+
unlimited: import_zod33.z.boolean(),
|
|
3867
|
+
consumed: import_zod33.z.number().int()
|
|
3868
|
+
}).passthrough();
|
|
3869
|
+
var QuotaSummarySchema = import_zod33.z.object({
|
|
3778
3870
|
static: QuotaDetailsSchema,
|
|
3779
3871
|
dynamic: QuotaDetailsSchema,
|
|
3780
3872
|
custom: QuotaDetailsSchema
|
|
3781
3873
|
}).passthrough();
|
|
3782
|
-
var ErrorLogSchema =
|
|
3783
|
-
created_at:
|
|
3784
|
-
updated_at:
|
|
3785
|
-
job_id:
|
|
3786
|
-
target_id:
|
|
3787
|
-
target_version:
|
|
3788
|
-
attack_id:
|
|
3789
|
-
error_type:
|
|
3790
|
-
error_source:
|
|
3791
|
-
error_message:
|
|
3792
|
-
target_object:
|
|
3793
|
-
extra_info:
|
|
3794
|
-
version:
|
|
3795
|
-
}).passthrough();
|
|
3796
|
-
var ErrorLogListResponseSchema =
|
|
3874
|
+
var ErrorLogSchema = import_zod33.z.object({
|
|
3875
|
+
created_at: import_zod33.z.string(),
|
|
3876
|
+
updated_at: import_zod33.z.string(),
|
|
3877
|
+
job_id: import_zod33.z.string().nullable().optional(),
|
|
3878
|
+
target_id: import_zod33.z.string().nullable().optional(),
|
|
3879
|
+
target_version: import_zod33.z.number().int().nullable().optional(),
|
|
3880
|
+
attack_id: import_zod33.z.string().nullable().optional(),
|
|
3881
|
+
error_type: import_zod33.z.string().nullable().optional(),
|
|
3882
|
+
error_source: import_zod33.z.string().nullable().optional(),
|
|
3883
|
+
error_message: import_zod33.z.string().nullable().optional(),
|
|
3884
|
+
target_object: import_zod33.z.record(import_zod33.z.unknown()).nullable().optional(),
|
|
3885
|
+
extra_info: import_zod33.z.record(import_zod33.z.unknown()).nullable().optional(),
|
|
3886
|
+
version: import_zod33.z.number().int().optional()
|
|
3887
|
+
}).passthrough();
|
|
3888
|
+
var ErrorLogListResponseSchema = import_zod33.z.object({ pagination: RedTeamPaginationSchema, data: import_zod33.z.array(ErrorLogSchema) }).passthrough();
|
|
3797
3889
|
var TargetRequestBaseFields = {
|
|
3798
|
-
name:
|
|
3799
|
-
description:
|
|
3800
|
-
target_type:
|
|
3801
|
-
connection_type:
|
|
3802
|
-
api_endpoint_type:
|
|
3803
|
-
response_mode:
|
|
3804
|
-
connection_params:
|
|
3805
|
-
session_supported:
|
|
3890
|
+
name: import_zod33.z.string(),
|
|
3891
|
+
description: import_zod33.z.string().nullable().optional(),
|
|
3892
|
+
target_type: import_zod33.z.string().nullable().optional(),
|
|
3893
|
+
connection_type: import_zod33.z.string().nullable().optional(),
|
|
3894
|
+
api_endpoint_type: import_zod33.z.string().nullable().optional(),
|
|
3895
|
+
response_mode: import_zod33.z.string().nullable().optional(),
|
|
3896
|
+
connection_params: import_zod33.z.union([RestConnectionParamsSchema, StreamingConnectionParamsSchema]).nullable().optional(),
|
|
3897
|
+
session_supported: import_zod33.z.boolean().optional(),
|
|
3806
3898
|
target_metadata: TargetMetadataSchema.optional(),
|
|
3807
3899
|
target_background: TargetBackgroundSchema.nullable().optional(),
|
|
3808
3900
|
additional_context: TargetAdditionalContextSchema.nullable().optional(),
|
|
3809
|
-
extra_info:
|
|
3810
|
-
network_broker_channel_uuid:
|
|
3901
|
+
extra_info: import_zod33.z.record(import_zod33.z.unknown()).nullable().optional(),
|
|
3902
|
+
network_broker_channel_uuid: import_zod33.z.string().nullable().optional()
|
|
3811
3903
|
};
|
|
3812
|
-
var TargetCreateRequestSchema =
|
|
3813
|
-
var TargetUpdateRequestSchema =
|
|
3814
|
-
var TargetContextUpdateSchema =
|
|
3904
|
+
var TargetCreateRequestSchema = import_zod33.z.object(TargetRequestBaseFields).strict();
|
|
3905
|
+
var TargetUpdateRequestSchema = import_zod33.z.object(TargetRequestBaseFields).strict();
|
|
3906
|
+
var TargetContextUpdateSchema = import_zod33.z.object({
|
|
3815
3907
|
target_background: TargetBackgroundSchema.nullable().optional(),
|
|
3816
3908
|
additional_context: TargetAdditionalContextSchema.nullable().optional()
|
|
3817
3909
|
}).passthrough();
|
|
3818
|
-
var TargetResponseSchema =
|
|
3819
|
-
uuid:
|
|
3820
|
-
tsg_id:
|
|
3821
|
-
name:
|
|
3822
|
-
status:
|
|
3823
|
-
active:
|
|
3824
|
-
validated:
|
|
3825
|
-
created_at:
|
|
3826
|
-
updated_at:
|
|
3827
|
-
description:
|
|
3828
|
-
target_type:
|
|
3829
|
-
connection_type:
|
|
3830
|
-
api_endpoint_type:
|
|
3831
|
-
response_mode:
|
|
3832
|
-
session_supported:
|
|
3833
|
-
extra_info:
|
|
3834
|
-
version:
|
|
3835
|
-
secret_version:
|
|
3836
|
-
created_by_user_id:
|
|
3837
|
-
updated_by_user_id:
|
|
3838
|
-
target_metadata:
|
|
3839
|
-
target_background:
|
|
3840
|
-
profiling_status:
|
|
3841
|
-
additional_context:
|
|
3842
|
-
auth_type:
|
|
3843
|
-
}).passthrough();
|
|
3844
|
-
var TargetListItemSchema =
|
|
3845
|
-
uuid:
|
|
3846
|
-
tsg_id:
|
|
3847
|
-
name:
|
|
3848
|
-
status:
|
|
3849
|
-
active:
|
|
3850
|
-
validated:
|
|
3851
|
-
created_at:
|
|
3852
|
-
updated_at:
|
|
3853
|
-
description:
|
|
3854
|
-
target_type:
|
|
3855
|
-
connection_type:
|
|
3856
|
-
api_endpoint_type:
|
|
3857
|
-
response_mode:
|
|
3858
|
-
session_supported:
|
|
3859
|
-
extra_info:
|
|
3860
|
-
version:
|
|
3861
|
-
secret_version:
|
|
3862
|
-
created_by_user_id:
|
|
3863
|
-
updated_by_user_id:
|
|
3864
|
-
auth_type:
|
|
3865
|
-
}).passthrough();
|
|
3866
|
-
var TargetListSchema =
|
|
3867
|
-
var TargetProbeRequestSchema =
|
|
3910
|
+
var TargetResponseSchema = import_zod33.z.object({
|
|
3911
|
+
uuid: import_zod33.z.string(),
|
|
3912
|
+
tsg_id: import_zod33.z.string(),
|
|
3913
|
+
name: import_zod33.z.string(),
|
|
3914
|
+
status: import_zod33.z.unknown(),
|
|
3915
|
+
active: import_zod33.z.boolean(),
|
|
3916
|
+
validated: import_zod33.z.boolean(),
|
|
3917
|
+
created_at: import_zod33.z.string(),
|
|
3918
|
+
updated_at: import_zod33.z.string(),
|
|
3919
|
+
description: import_zod33.z.unknown().optional(),
|
|
3920
|
+
target_type: import_zod33.z.unknown().optional(),
|
|
3921
|
+
connection_type: import_zod33.z.unknown().optional(),
|
|
3922
|
+
api_endpoint_type: import_zod33.z.unknown().optional(),
|
|
3923
|
+
response_mode: import_zod33.z.unknown().optional(),
|
|
3924
|
+
session_supported: import_zod33.z.boolean().optional(),
|
|
3925
|
+
extra_info: import_zod33.z.unknown().optional(),
|
|
3926
|
+
version: import_zod33.z.unknown().optional(),
|
|
3927
|
+
secret_version: import_zod33.z.unknown().optional(),
|
|
3928
|
+
created_by_user_id: import_zod33.z.unknown().optional(),
|
|
3929
|
+
updated_by_user_id: import_zod33.z.unknown().optional(),
|
|
3930
|
+
target_metadata: import_zod33.z.unknown().optional(),
|
|
3931
|
+
target_background: import_zod33.z.unknown().optional(),
|
|
3932
|
+
profiling_status: import_zod33.z.unknown().optional(),
|
|
3933
|
+
additional_context: import_zod33.z.unknown().optional(),
|
|
3934
|
+
auth_type: import_zod33.z.string().nullable().optional()
|
|
3935
|
+
}).passthrough();
|
|
3936
|
+
var TargetListItemSchema = import_zod33.z.object({
|
|
3937
|
+
uuid: import_zod33.z.string(),
|
|
3938
|
+
tsg_id: import_zod33.z.string(),
|
|
3939
|
+
name: import_zod33.z.string(),
|
|
3940
|
+
status: import_zod33.z.unknown(),
|
|
3941
|
+
active: import_zod33.z.boolean(),
|
|
3942
|
+
validated: import_zod33.z.boolean(),
|
|
3943
|
+
created_at: import_zod33.z.string(),
|
|
3944
|
+
updated_at: import_zod33.z.string(),
|
|
3945
|
+
description: import_zod33.z.unknown().optional(),
|
|
3946
|
+
target_type: import_zod33.z.unknown().optional(),
|
|
3947
|
+
connection_type: import_zod33.z.unknown().optional(),
|
|
3948
|
+
api_endpoint_type: import_zod33.z.unknown().optional(),
|
|
3949
|
+
response_mode: import_zod33.z.unknown().optional(),
|
|
3950
|
+
session_supported: import_zod33.z.boolean().optional(),
|
|
3951
|
+
extra_info: import_zod33.z.unknown().optional(),
|
|
3952
|
+
version: import_zod33.z.unknown().optional(),
|
|
3953
|
+
secret_version: import_zod33.z.unknown().optional(),
|
|
3954
|
+
created_by_user_id: import_zod33.z.unknown().optional(),
|
|
3955
|
+
updated_by_user_id: import_zod33.z.unknown().optional(),
|
|
3956
|
+
auth_type: import_zod33.z.string().nullable().optional()
|
|
3957
|
+
}).passthrough();
|
|
3958
|
+
var TargetListSchema = import_zod33.z.object({ pagination: RedTeamPaginationSchema, data: import_zod33.z.array(TargetListItemSchema).optional() }).passthrough();
|
|
3959
|
+
var TargetProbeRequestSchema = import_zod33.z.object({
|
|
3868
3960
|
...TargetRequestBaseFields,
|
|
3869
|
-
uuid:
|
|
3870
|
-
probe_fields:
|
|
3961
|
+
uuid: import_zod33.z.string().nullable().optional(),
|
|
3962
|
+
probe_fields: import_zod33.z.array(import_zod33.z.string()).nullable().optional()
|
|
3871
3963
|
}).strict();
|
|
3872
|
-
var TargetAuthValidationRequestSchema =
|
|
3873
|
-
auth_type:
|
|
3874
|
-
auth_config:
|
|
3875
|
-
target_id:
|
|
3876
|
-
network_broker_channel_uuid:
|
|
3877
|
-
}).passthrough();
|
|
3878
|
-
var TargetAuthValidationResponseSchema =
|
|
3879
|
-
validated:
|
|
3880
|
-
token_preview:
|
|
3881
|
-
expires_in:
|
|
3882
|
-
}).passthrough();
|
|
3883
|
-
var TargetProfileResponseSchema =
|
|
3884
|
-
target_id:
|
|
3885
|
-
target_version:
|
|
3886
|
-
status:
|
|
3887
|
-
profiling_status:
|
|
3888
|
-
target_background:
|
|
3889
|
-
additional_context:
|
|
3890
|
-
ai_generated_fields:
|
|
3891
|
-
other_details:
|
|
3892
|
-
}).passthrough();
|
|
3893
|
-
var TargetTemplateCollectionSchema =
|
|
3894
|
-
OPENAI:
|
|
3895
|
-
HUGGING_FACE:
|
|
3896
|
-
DATABRICKS:
|
|
3897
|
-
BEDROCK:
|
|
3898
|
-
REST:
|
|
3899
|
-
STREAMING:
|
|
3900
|
-
WEBSOCKET:
|
|
3901
|
-
}).passthrough();
|
|
3902
|
-
var BaseResponseSchema =
|
|
3903
|
-
message:
|
|
3904
|
-
status:
|
|
3905
|
-
}).passthrough();
|
|
3906
|
-
var PromptSetStatsSchema =
|
|
3907
|
-
total_prompts:
|
|
3908
|
-
active_prompts:
|
|
3909
|
-
inactive_prompts:
|
|
3910
|
-
failed_prompts:
|
|
3911
|
-
validation_prompts:
|
|
3912
|
-
}).passthrough();
|
|
3913
|
-
var CustomPromptSetCreateRequestSchema =
|
|
3914
|
-
name:
|
|
3915
|
-
description:
|
|
3916
|
-
property_names:
|
|
3917
|
-
}).passthrough();
|
|
3918
|
-
var CustomPromptSetUpdateRequestSchema =
|
|
3919
|
-
name:
|
|
3920
|
-
description:
|
|
3921
|
-
archive:
|
|
3922
|
-
property_names:
|
|
3923
|
-
}).passthrough();
|
|
3924
|
-
var CustomPromptSetArchiveRequestSchema =
|
|
3925
|
-
var CustomPromptSetResponseSchema =
|
|
3926
|
-
uuid:
|
|
3927
|
-
name:
|
|
3928
|
-
active:
|
|
3929
|
-
archive:
|
|
3930
|
-
status:
|
|
3931
|
-
created_at:
|
|
3932
|
-
updated_at:
|
|
3933
|
-
description:
|
|
3934
|
-
property_names:
|
|
3935
|
-
properties:
|
|
3936
|
-
stats:
|
|
3937
|
-
extra_info:
|
|
3938
|
-
version:
|
|
3939
|
-
created_by_user_id:
|
|
3940
|
-
updated_by_user_id:
|
|
3941
|
-
}).passthrough();
|
|
3942
|
-
var CustomPromptSetListItemSchema =
|
|
3943
|
-
uuid:
|
|
3944
|
-
name:
|
|
3945
|
-
active:
|
|
3946
|
-
archive:
|
|
3947
|
-
status:
|
|
3948
|
-
created_at:
|
|
3949
|
-
updated_at:
|
|
3950
|
-
description:
|
|
3951
|
-
property_names:
|
|
3952
|
-
stats:
|
|
3953
|
-
created_by_user_id:
|
|
3954
|
-
}).passthrough();
|
|
3955
|
-
var CustomPromptSetListSchema =
|
|
3964
|
+
var TargetAuthValidationRequestSchema = import_zod33.z.object({
|
|
3965
|
+
auth_type: import_zod33.z.string(),
|
|
3966
|
+
auth_config: import_zod33.z.unknown(),
|
|
3967
|
+
target_id: import_zod33.z.string().nullable().optional(),
|
|
3968
|
+
network_broker_channel_uuid: import_zod33.z.string().nullable().optional()
|
|
3969
|
+
}).passthrough();
|
|
3970
|
+
var TargetAuthValidationResponseSchema = import_zod33.z.object({
|
|
3971
|
+
validated: import_zod33.z.boolean(),
|
|
3972
|
+
token_preview: import_zod33.z.string().nullable().optional(),
|
|
3973
|
+
expires_in: import_zod33.z.number().int().nullable().optional()
|
|
3974
|
+
}).passthrough();
|
|
3975
|
+
var TargetProfileResponseSchema = import_zod33.z.object({
|
|
3976
|
+
target_id: import_zod33.z.string(),
|
|
3977
|
+
target_version: import_zod33.z.number().int(),
|
|
3978
|
+
status: import_zod33.z.string(),
|
|
3979
|
+
profiling_status: import_zod33.z.unknown().optional(),
|
|
3980
|
+
target_background: import_zod33.z.unknown().optional(),
|
|
3981
|
+
additional_context: import_zod33.z.unknown().optional(),
|
|
3982
|
+
ai_generated_fields: import_zod33.z.unknown().optional(),
|
|
3983
|
+
other_details: import_zod33.z.unknown().optional()
|
|
3984
|
+
}).passthrough();
|
|
3985
|
+
var TargetTemplateCollectionSchema = import_zod33.z.object({
|
|
3986
|
+
OPENAI: import_zod33.z.record(import_zod33.z.unknown()),
|
|
3987
|
+
HUGGING_FACE: import_zod33.z.record(import_zod33.z.unknown()),
|
|
3988
|
+
DATABRICKS: import_zod33.z.record(import_zod33.z.unknown()),
|
|
3989
|
+
BEDROCK: import_zod33.z.record(import_zod33.z.unknown()),
|
|
3990
|
+
REST: import_zod33.z.record(import_zod33.z.unknown()),
|
|
3991
|
+
STREAMING: import_zod33.z.record(import_zod33.z.unknown()),
|
|
3992
|
+
WEBSOCKET: import_zod33.z.record(import_zod33.z.unknown())
|
|
3993
|
+
}).passthrough();
|
|
3994
|
+
var BaseResponseSchema = import_zod33.z.object({
|
|
3995
|
+
message: import_zod33.z.string(),
|
|
3996
|
+
status: import_zod33.z.number().int()
|
|
3997
|
+
}).passthrough();
|
|
3998
|
+
var PromptSetStatsSchema = import_zod33.z.object({
|
|
3999
|
+
total_prompts: import_zod33.z.number().int(),
|
|
4000
|
+
active_prompts: import_zod33.z.number().int(),
|
|
4001
|
+
inactive_prompts: import_zod33.z.number().int(),
|
|
4002
|
+
failed_prompts: import_zod33.z.number().int().optional(),
|
|
4003
|
+
validation_prompts: import_zod33.z.number().int().optional()
|
|
4004
|
+
}).passthrough();
|
|
4005
|
+
var CustomPromptSetCreateRequestSchema = import_zod33.z.object({
|
|
4006
|
+
name: import_zod33.z.string(),
|
|
4007
|
+
description: import_zod33.z.unknown().optional(),
|
|
4008
|
+
property_names: import_zod33.z.array(import_zod33.z.string()).optional()
|
|
4009
|
+
}).passthrough();
|
|
4010
|
+
var CustomPromptSetUpdateRequestSchema = import_zod33.z.object({
|
|
4011
|
+
name: import_zod33.z.unknown().optional(),
|
|
4012
|
+
description: import_zod33.z.unknown().optional(),
|
|
4013
|
+
archive: import_zod33.z.unknown().optional(),
|
|
4014
|
+
property_names: import_zod33.z.unknown().optional()
|
|
4015
|
+
}).passthrough();
|
|
4016
|
+
var CustomPromptSetArchiveRequestSchema = import_zod33.z.object({ archive: import_zod33.z.boolean() }).passthrough();
|
|
4017
|
+
var CustomPromptSetResponseSchema = import_zod33.z.object({
|
|
4018
|
+
uuid: import_zod33.z.string(),
|
|
4019
|
+
name: import_zod33.z.string(),
|
|
4020
|
+
active: import_zod33.z.boolean(),
|
|
4021
|
+
archive: import_zod33.z.boolean(),
|
|
4022
|
+
status: import_zod33.z.string(),
|
|
4023
|
+
created_at: import_zod33.z.string(),
|
|
4024
|
+
updated_at: import_zod33.z.string(),
|
|
4025
|
+
description: import_zod33.z.unknown().optional(),
|
|
4026
|
+
property_names: import_zod33.z.array(import_zod33.z.string()).optional(),
|
|
4027
|
+
properties: import_zod33.z.array(import_zod33.z.unknown()).optional(),
|
|
4028
|
+
stats: import_zod33.z.unknown().optional(),
|
|
4029
|
+
extra_info: import_zod33.z.unknown().optional(),
|
|
4030
|
+
version: import_zod33.z.unknown().optional(),
|
|
4031
|
+
created_by_user_id: import_zod33.z.unknown().optional(),
|
|
4032
|
+
updated_by_user_id: import_zod33.z.unknown().optional()
|
|
4033
|
+
}).passthrough();
|
|
4034
|
+
var CustomPromptSetListItemSchema = import_zod33.z.object({
|
|
4035
|
+
uuid: import_zod33.z.string(),
|
|
4036
|
+
name: import_zod33.z.string(),
|
|
4037
|
+
active: import_zod33.z.boolean(),
|
|
4038
|
+
archive: import_zod33.z.boolean(),
|
|
4039
|
+
status: import_zod33.z.string(),
|
|
4040
|
+
created_at: import_zod33.z.string(),
|
|
4041
|
+
updated_at: import_zod33.z.string(),
|
|
4042
|
+
description: import_zod33.z.unknown().optional(),
|
|
4043
|
+
property_names: import_zod33.z.array(import_zod33.z.string()).optional(),
|
|
4044
|
+
stats: import_zod33.z.unknown().optional(),
|
|
4045
|
+
created_by_user_id: import_zod33.z.unknown().optional()
|
|
4046
|
+
}).passthrough();
|
|
4047
|
+
var CustomPromptSetListSchema = import_zod33.z.object({
|
|
3956
4048
|
pagination: RedTeamPaginationSchema,
|
|
3957
|
-
data:
|
|
3958
|
-
}).passthrough();
|
|
3959
|
-
var CustomPromptSetReferenceSchema =
|
|
3960
|
-
uuid:
|
|
3961
|
-
name:
|
|
3962
|
-
status:
|
|
3963
|
-
active:
|
|
3964
|
-
tsg_id:
|
|
3965
|
-
created_at:
|
|
3966
|
-
updated_at:
|
|
3967
|
-
version:
|
|
3968
|
-
}).passthrough();
|
|
3969
|
-
var CustomPromptSetListActiveSchema =
|
|
3970
|
-
var CustomPromptSetVersionInfoSchema =
|
|
3971
|
-
uuid:
|
|
3972
|
-
status:
|
|
3973
|
-
is_latest:
|
|
3974
|
-
version:
|
|
4049
|
+
data: import_zod33.z.array(CustomPromptSetListItemSchema).optional()
|
|
4050
|
+
}).passthrough();
|
|
4051
|
+
var CustomPromptSetReferenceSchema = import_zod33.z.object({
|
|
4052
|
+
uuid: import_zod33.z.string(),
|
|
4053
|
+
name: import_zod33.z.string(),
|
|
4054
|
+
status: import_zod33.z.string(),
|
|
4055
|
+
active: import_zod33.z.boolean(),
|
|
4056
|
+
tsg_id: import_zod33.z.string(),
|
|
4057
|
+
created_at: import_zod33.z.string(),
|
|
4058
|
+
updated_at: import_zod33.z.string(),
|
|
4059
|
+
version: import_zod33.z.unknown().optional()
|
|
4060
|
+
}).passthrough();
|
|
4061
|
+
var CustomPromptSetListActiveSchema = import_zod33.z.object({ data: import_zod33.z.array(CustomPromptSetReferenceSchema).optional() }).passthrough();
|
|
4062
|
+
var CustomPromptSetVersionInfoSchema = import_zod33.z.object({
|
|
4063
|
+
uuid: import_zod33.z.string(),
|
|
4064
|
+
status: import_zod33.z.string(),
|
|
4065
|
+
is_latest: import_zod33.z.boolean(),
|
|
4066
|
+
version: import_zod33.z.string().nullable().optional(),
|
|
3975
4067
|
stats: PromptSetStatsSchema.nullable().optional(),
|
|
3976
|
-
snapshot_created_at:
|
|
3977
|
-
}).passthrough();
|
|
3978
|
-
var CustomPromptCreateRequestSchema =
|
|
3979
|
-
prompt:
|
|
3980
|
-
prompt_set_id:
|
|
3981
|
-
goal:
|
|
3982
|
-
properties:
|
|
3983
|
-
}).passthrough();
|
|
3984
|
-
var CustomPromptUpdateRequestSchema =
|
|
3985
|
-
prompt:
|
|
3986
|
-
goal:
|
|
3987
|
-
properties:
|
|
3988
|
-
}).passthrough();
|
|
3989
|
-
var CustomPromptResponseSchema =
|
|
3990
|
-
uuid:
|
|
3991
|
-
prompt:
|
|
3992
|
-
user_defined_goal:
|
|
3993
|
-
status:
|
|
3994
|
-
active:
|
|
3995
|
-
prompt_set_id:
|
|
3996
|
-
created_at:
|
|
3997
|
-
updated_at:
|
|
3998
|
-
goal:
|
|
3999
|
-
properties:
|
|
4000
|
-
property_assignments:
|
|
4001
|
-
detector_category:
|
|
4002
|
-
severity:
|
|
4003
|
-
extra_info:
|
|
4004
|
-
}).passthrough();
|
|
4005
|
-
var CustomPromptListItemSchema =
|
|
4006
|
-
uuid:
|
|
4007
|
-
prompt:
|
|
4008
|
-
user_defined_goal:
|
|
4009
|
-
status:
|
|
4010
|
-
active:
|
|
4011
|
-
created_at:
|
|
4012
|
-
updated_at:
|
|
4013
|
-
goal:
|
|
4014
|
-
properties:
|
|
4015
|
-
}).passthrough();
|
|
4016
|
-
var CustomPromptListSchema =
|
|
4068
|
+
snapshot_created_at: import_zod33.z.string().nullable().optional()
|
|
4069
|
+
}).passthrough();
|
|
4070
|
+
var CustomPromptCreateRequestSchema = import_zod33.z.object({
|
|
4071
|
+
prompt: import_zod33.z.string(),
|
|
4072
|
+
prompt_set_id: import_zod33.z.string(),
|
|
4073
|
+
goal: import_zod33.z.unknown().optional(),
|
|
4074
|
+
properties: import_zod33.z.unknown().optional()
|
|
4075
|
+
}).passthrough();
|
|
4076
|
+
var CustomPromptUpdateRequestSchema = import_zod33.z.object({
|
|
4077
|
+
prompt: import_zod33.z.unknown().optional(),
|
|
4078
|
+
goal: import_zod33.z.unknown().optional(),
|
|
4079
|
+
properties: import_zod33.z.unknown().optional()
|
|
4080
|
+
}).passthrough();
|
|
4081
|
+
var CustomPromptResponseSchema = import_zod33.z.object({
|
|
4082
|
+
uuid: import_zod33.z.string(),
|
|
4083
|
+
prompt: import_zod33.z.string(),
|
|
4084
|
+
user_defined_goal: import_zod33.z.boolean(),
|
|
4085
|
+
status: import_zod33.z.string(),
|
|
4086
|
+
active: import_zod33.z.boolean(),
|
|
4087
|
+
prompt_set_id: import_zod33.z.string(),
|
|
4088
|
+
created_at: import_zod33.z.string(),
|
|
4089
|
+
updated_at: import_zod33.z.string(),
|
|
4090
|
+
goal: import_zod33.z.unknown().optional(),
|
|
4091
|
+
properties: import_zod33.z.unknown().optional(),
|
|
4092
|
+
property_assignments: import_zod33.z.array(import_zod33.z.unknown()).optional(),
|
|
4093
|
+
detector_category: import_zod33.z.unknown().optional(),
|
|
4094
|
+
severity: import_zod33.z.unknown().optional(),
|
|
4095
|
+
extra_info: import_zod33.z.unknown().optional()
|
|
4096
|
+
}).passthrough();
|
|
4097
|
+
var CustomPromptListItemSchema = import_zod33.z.object({
|
|
4098
|
+
uuid: import_zod33.z.string(),
|
|
4099
|
+
prompt: import_zod33.z.string(),
|
|
4100
|
+
user_defined_goal: import_zod33.z.boolean(),
|
|
4101
|
+
status: import_zod33.z.string(),
|
|
4102
|
+
active: import_zod33.z.boolean(),
|
|
4103
|
+
created_at: import_zod33.z.string(),
|
|
4104
|
+
updated_at: import_zod33.z.string(),
|
|
4105
|
+
goal: import_zod33.z.unknown().optional(),
|
|
4106
|
+
properties: import_zod33.z.unknown().optional()
|
|
4107
|
+
}).passthrough();
|
|
4108
|
+
var CustomPromptListSchema = import_zod33.z.object({
|
|
4017
4109
|
pagination: RedTeamPaginationSchema,
|
|
4018
|
-
data:
|
|
4019
|
-
}).passthrough();
|
|
4020
|
-
var PropertyNameCreateRequestSchema =
|
|
4021
|
-
var PropertyValueCreateRequestSchema =
|
|
4022
|
-
property_name:
|
|
4023
|
-
property_value:
|
|
4024
|
-
}).passthrough();
|
|
4025
|
-
var PropertyDefinitionSchema =
|
|
4026
|
-
property_name:
|
|
4027
|
-
created_at:
|
|
4028
|
-
}).passthrough();
|
|
4029
|
-
var PropertyNamesListResponseSchema =
|
|
4030
|
-
var PropertyValuesResponseSchema =
|
|
4031
|
-
name:
|
|
4032
|
-
values:
|
|
4033
|
-
}).passthrough();
|
|
4034
|
-
var PropertyValuesMultipleResponseSchema =
|
|
4035
|
-
var DashboardOverviewResponseSchema =
|
|
4036
|
-
total_targets:
|
|
4037
|
-
targets_by_type:
|
|
4038
|
-
}).passthrough();
|
|
4039
|
-
var EulaAcceptRequestSchema =
|
|
4040
|
-
eula_content:
|
|
4041
|
-
accepted_at:
|
|
4042
|
-
}).passthrough();
|
|
4043
|
-
var EulaContentResponseSchema =
|
|
4044
|
-
content:
|
|
4045
|
-
}).passthrough();
|
|
4046
|
-
var EulaResponseSchema =
|
|
4047
|
-
uuid:
|
|
4048
|
-
is_accepted:
|
|
4049
|
-
accepted_at:
|
|
4050
|
-
accepted_by_user_id:
|
|
4051
|
-
}).passthrough();
|
|
4052
|
-
var DeviceInstanceSchema =
|
|
4053
|
-
app_id:
|
|
4054
|
-
region:
|
|
4055
|
-
tenant_id:
|
|
4056
|
-
tsg_id:
|
|
4057
|
-
}).passthrough();
|
|
4058
|
-
var DeviceLicenseSchema =
|
|
4059
|
-
authorizationCode:
|
|
4060
|
-
expirationDate:
|
|
4061
|
-
licensePanDbIdentification:
|
|
4062
|
-
partNumber:
|
|
4063
|
-
serialNumber:
|
|
4064
|
-
subtypeName:
|
|
4065
|
-
registrationDate:
|
|
4066
|
-
}).passthrough();
|
|
4067
|
-
var DeviceSchema =
|
|
4068
|
-
serial_number:
|
|
4069
|
-
model:
|
|
4070
|
-
sku:
|
|
4071
|
-
device_type:
|
|
4072
|
-
device_name:
|
|
4073
|
-
tsg_id:
|
|
4074
|
-
support_account_id:
|
|
4075
|
-
asset_type:
|
|
4076
|
-
licenses:
|
|
4077
|
-
}).passthrough();
|
|
4078
|
-
var DeviceStatusSchema =
|
|
4079
|
-
status:
|
|
4080
|
-
error:
|
|
4081
|
-
serial_number:
|
|
4082
|
-
}).passthrough();
|
|
4083
|
-
var DeviceRequestSchema =
|
|
4110
|
+
data: import_zod33.z.array(CustomPromptListItemSchema).optional()
|
|
4111
|
+
}).passthrough();
|
|
4112
|
+
var PropertyNameCreateRequestSchema = import_zod33.z.object({ name: import_zod33.z.string() }).passthrough();
|
|
4113
|
+
var PropertyValueCreateRequestSchema = import_zod33.z.object({
|
|
4114
|
+
property_name: import_zod33.z.string(),
|
|
4115
|
+
property_value: import_zod33.z.string()
|
|
4116
|
+
}).passthrough();
|
|
4117
|
+
var PropertyDefinitionSchema = import_zod33.z.object({
|
|
4118
|
+
property_name: import_zod33.z.string(),
|
|
4119
|
+
created_at: import_zod33.z.string()
|
|
4120
|
+
}).passthrough();
|
|
4121
|
+
var PropertyNamesListResponseSchema = import_zod33.z.object({ data: import_zod33.z.array(import_zod33.z.string()).optional() }).passthrough();
|
|
4122
|
+
var PropertyValuesResponseSchema = import_zod33.z.object({
|
|
4123
|
+
name: import_zod33.z.string(),
|
|
4124
|
+
values: import_zod33.z.array(import_zod33.z.string()).optional()
|
|
4125
|
+
}).passthrough();
|
|
4126
|
+
var PropertyValuesMultipleResponseSchema = import_zod33.z.object({ data: import_zod33.z.record(import_zod33.z.array(import_zod33.z.string())).optional() }).passthrough();
|
|
4127
|
+
var DashboardOverviewResponseSchema = import_zod33.z.object({
|
|
4128
|
+
total_targets: import_zod33.z.number().int(),
|
|
4129
|
+
targets_by_type: import_zod33.z.array(CountByNameSchema).optional()
|
|
4130
|
+
}).passthrough();
|
|
4131
|
+
var EulaAcceptRequestSchema = import_zod33.z.object({
|
|
4132
|
+
eula_content: import_zod33.z.string(),
|
|
4133
|
+
accepted_at: import_zod33.z.string().nullable().optional()
|
|
4134
|
+
}).passthrough();
|
|
4135
|
+
var EulaContentResponseSchema = import_zod33.z.object({
|
|
4136
|
+
content: import_zod33.z.string()
|
|
4137
|
+
}).passthrough();
|
|
4138
|
+
var EulaResponseSchema = import_zod33.z.object({
|
|
4139
|
+
uuid: import_zod33.z.string().nullable().optional(),
|
|
4140
|
+
is_accepted: import_zod33.z.boolean(),
|
|
4141
|
+
accepted_at: import_zod33.z.string().nullable().optional(),
|
|
4142
|
+
accepted_by_user_id: import_zod33.z.string().nullable().optional()
|
|
4143
|
+
}).passthrough();
|
|
4144
|
+
var DeviceInstanceSchema = import_zod33.z.object({
|
|
4145
|
+
app_id: import_zod33.z.string(),
|
|
4146
|
+
region: import_zod33.z.string(),
|
|
4147
|
+
tenant_id: import_zod33.z.string(),
|
|
4148
|
+
tsg_id: import_zod33.z.string()
|
|
4149
|
+
}).passthrough();
|
|
4150
|
+
var DeviceLicenseSchema = import_zod33.z.object({
|
|
4151
|
+
authorizationCode: import_zod33.z.string().optional(),
|
|
4152
|
+
expirationDate: import_zod33.z.string().optional(),
|
|
4153
|
+
licensePanDbIdentification: import_zod33.z.string().optional(),
|
|
4154
|
+
partNumber: import_zod33.z.string().optional(),
|
|
4155
|
+
serialNumber: import_zod33.z.string().optional(),
|
|
4156
|
+
subtypeName: import_zod33.z.string().optional(),
|
|
4157
|
+
registrationDate: import_zod33.z.string().optional()
|
|
4158
|
+
}).passthrough();
|
|
4159
|
+
var DeviceSchema = import_zod33.z.object({
|
|
4160
|
+
serial_number: import_zod33.z.string(),
|
|
4161
|
+
model: import_zod33.z.string().optional(),
|
|
4162
|
+
sku: import_zod33.z.string().optional(),
|
|
4163
|
+
device_type: import_zod33.z.string().optional(),
|
|
4164
|
+
device_name: import_zod33.z.string().optional(),
|
|
4165
|
+
tsg_id: import_zod33.z.string().optional(),
|
|
4166
|
+
support_account_id: import_zod33.z.string().optional(),
|
|
4167
|
+
asset_type: import_zod33.z.string().optional(),
|
|
4168
|
+
licenses: import_zod33.z.array(DeviceLicenseSchema).optional()
|
|
4169
|
+
}).passthrough();
|
|
4170
|
+
var DeviceStatusSchema = import_zod33.z.object({
|
|
4171
|
+
status: import_zod33.z.string(),
|
|
4172
|
+
error: import_zod33.z.string().optional(),
|
|
4173
|
+
serial_number: import_zod33.z.string().optional()
|
|
4174
|
+
}).passthrough();
|
|
4175
|
+
var DeviceRequestSchema = import_zod33.z.object({
|
|
4084
4176
|
instance: DeviceInstanceSchema,
|
|
4085
|
-
created_by:
|
|
4086
|
-
devices:
|
|
4087
|
-
}).passthrough();
|
|
4088
|
-
var DeviceResponseSchema =
|
|
4089
|
-
devices:
|
|
4090
|
-
status:
|
|
4091
|
-
}).passthrough();
|
|
4092
|
-
var DeploymentProfileAttributeSchema =
|
|
4093
|
-
quantity:
|
|
4094
|
-
unit_of_measure:
|
|
4095
|
-
}).passthrough();
|
|
4096
|
-
var DeploymentProfileRequestSchema =
|
|
4097
|
-
dAuthCode:
|
|
4098
|
-
deploymentProfileId:
|
|
4099
|
-
license_expiration:
|
|
4100
|
-
profileName:
|
|
4101
|
-
subType:
|
|
4102
|
-
subscriptions:
|
|
4103
|
-
type:
|
|
4104
|
-
aveTextRecord:
|
|
4105
|
-
attributes:
|
|
4106
|
-
}).passthrough();
|
|
4107
|
-
var InstanceExtraDetailsSchema =
|
|
4108
|
-
deployment_profiles:
|
|
4109
|
-
airs_shared_by_tsg:
|
|
4110
|
-
airs_unshared_dps:
|
|
4111
|
-
}).passthrough();
|
|
4112
|
-
var InstanceRequestSchema =
|
|
4113
|
-
tsg_id:
|
|
4114
|
-
tenant_id:
|
|
4115
|
-
app_id:
|
|
4116
|
-
region:
|
|
4117
|
-
support_account_id:
|
|
4118
|
-
support_account_name:
|
|
4119
|
-
created_by:
|
|
4120
|
-
internal:
|
|
4121
|
-
tenant_instance_name:
|
|
4177
|
+
created_by: import_zod33.z.string().optional(),
|
|
4178
|
+
devices: import_zod33.z.array(DeviceSchema).optional()
|
|
4179
|
+
}).passthrough();
|
|
4180
|
+
var DeviceResponseSchema = import_zod33.z.object({
|
|
4181
|
+
devices: import_zod33.z.array(DeviceStatusSchema).optional(),
|
|
4182
|
+
status: import_zod33.z.string().optional()
|
|
4183
|
+
}).passthrough();
|
|
4184
|
+
var DeploymentProfileAttributeSchema = import_zod33.z.object({
|
|
4185
|
+
quantity: import_zod33.z.number().optional(),
|
|
4186
|
+
unit_of_measure: import_zod33.z.string().optional()
|
|
4187
|
+
}).passthrough();
|
|
4188
|
+
var DeploymentProfileRequestSchema = import_zod33.z.object({
|
|
4189
|
+
dAuthCode: import_zod33.z.string().optional(),
|
|
4190
|
+
deploymentProfileId: import_zod33.z.string().optional(),
|
|
4191
|
+
license_expiration: import_zod33.z.string().optional(),
|
|
4192
|
+
profileName: import_zod33.z.string().optional(),
|
|
4193
|
+
subType: import_zod33.z.string().optional(),
|
|
4194
|
+
subscriptions: import_zod33.z.string().optional(),
|
|
4195
|
+
type: import_zod33.z.string().optional(),
|
|
4196
|
+
aveTextRecord: import_zod33.z.number().default(0),
|
|
4197
|
+
attributes: import_zod33.z.array(DeploymentProfileAttributeSchema).optional()
|
|
4198
|
+
}).passthrough();
|
|
4199
|
+
var InstanceExtraDetailsSchema = import_zod33.z.object({
|
|
4200
|
+
deployment_profiles: import_zod33.z.array(DeploymentProfileRequestSchema).optional(),
|
|
4201
|
+
airs_shared_by_tsg: import_zod33.z.string().optional(),
|
|
4202
|
+
airs_unshared_dps: import_zod33.z.string().optional()
|
|
4203
|
+
}).passthrough();
|
|
4204
|
+
var InstanceRequestSchema = import_zod33.z.object({
|
|
4205
|
+
tsg_id: import_zod33.z.string(),
|
|
4206
|
+
tenant_id: import_zod33.z.string(),
|
|
4207
|
+
app_id: import_zod33.z.string(),
|
|
4208
|
+
region: import_zod33.z.string(),
|
|
4209
|
+
support_account_id: import_zod33.z.string().optional(),
|
|
4210
|
+
support_account_name: import_zod33.z.string().optional(),
|
|
4211
|
+
created_by: import_zod33.z.string().optional(),
|
|
4212
|
+
internal: import_zod33.z.boolean().optional(),
|
|
4213
|
+
tenant_instance_name: import_zod33.z.string().optional(),
|
|
4122
4214
|
extra: InstanceExtraDetailsSchema.optional(),
|
|
4123
|
-
iam_controlled:
|
|
4124
|
-
platform_region:
|
|
4125
|
-
csp_tenant_id:
|
|
4126
|
-
tsg_instances:
|
|
4127
|
-
}).passthrough();
|
|
4128
|
-
var InstanceResponseSchema =
|
|
4129
|
-
tsg_id:
|
|
4130
|
-
tenant_id:
|
|
4131
|
-
app_id:
|
|
4132
|
-
is_success:
|
|
4133
|
-
}).passthrough();
|
|
4134
|
-
var InstanceGetResponseSchema =
|
|
4135
|
-
tsg_id:
|
|
4136
|
-
tenant_id:
|
|
4137
|
-
app_id:
|
|
4138
|
-
region:
|
|
4139
|
-
support_account_id:
|
|
4140
|
-
support_account_name:
|
|
4141
|
-
created_by:
|
|
4142
|
-
internal:
|
|
4143
|
-
tenant_instance_name:
|
|
4144
|
-
deployment_profiles:
|
|
4145
|
-
}).passthrough();
|
|
4146
|
-
var RegistryCredentialsSchema =
|
|
4147
|
-
token:
|
|
4148
|
-
expiry:
|
|
4215
|
+
iam_controlled: import_zod33.z.boolean().optional(),
|
|
4216
|
+
platform_region: import_zod33.z.string().optional(),
|
|
4217
|
+
csp_tenant_id: import_zod33.z.string().optional(),
|
|
4218
|
+
tsg_instances: import_zod33.z.unknown().optional()
|
|
4219
|
+
}).passthrough();
|
|
4220
|
+
var InstanceResponseSchema = import_zod33.z.object({
|
|
4221
|
+
tsg_id: import_zod33.z.string(),
|
|
4222
|
+
tenant_id: import_zod33.z.string().optional(),
|
|
4223
|
+
app_id: import_zod33.z.string().optional(),
|
|
4224
|
+
is_success: import_zod33.z.boolean().optional()
|
|
4225
|
+
}).passthrough();
|
|
4226
|
+
var InstanceGetResponseSchema = import_zod33.z.object({
|
|
4227
|
+
tsg_id: import_zod33.z.string(),
|
|
4228
|
+
tenant_id: import_zod33.z.string(),
|
|
4229
|
+
app_id: import_zod33.z.string(),
|
|
4230
|
+
region: import_zod33.z.string(),
|
|
4231
|
+
support_account_id: import_zod33.z.string().optional(),
|
|
4232
|
+
support_account_name: import_zod33.z.string().optional(),
|
|
4233
|
+
created_by: import_zod33.z.string().optional(),
|
|
4234
|
+
internal: import_zod33.z.boolean().optional(),
|
|
4235
|
+
tenant_instance_name: import_zod33.z.string().optional(),
|
|
4236
|
+
deployment_profiles: import_zod33.z.array(DeploymentProfileRequestSchema).optional()
|
|
4237
|
+
}).passthrough();
|
|
4238
|
+
var RegistryCredentialsSchema = import_zod33.z.object({
|
|
4239
|
+
token: import_zod33.z.string(),
|
|
4240
|
+
expiry: import_zod33.z.string()
|
|
4149
4241
|
}).passthrough();
|
|
4150
4242
|
|
|
4151
4243
|
// src/http/auth/oauth.ts
|
|
@@ -4170,12 +4262,12 @@ var OAuthAuth = class {
|
|
|
4170
4262
|
};
|
|
4171
4263
|
|
|
4172
4264
|
// src/models/oauth-token.ts
|
|
4173
|
-
var
|
|
4174
|
-
var OAuthTokenResponseSchema =
|
|
4175
|
-
access_token:
|
|
4176
|
-
token_type:
|
|
4177
|
-
expires_in:
|
|
4178
|
-
scope:
|
|
4265
|
+
var import_zod34 = require("zod");
|
|
4266
|
+
var OAuthTokenResponseSchema = import_zod34.z.object({
|
|
4267
|
+
access_token: import_zod34.z.string(),
|
|
4268
|
+
token_type: import_zod34.z.string().optional(),
|
|
4269
|
+
expires_in: import_zod34.z.number(),
|
|
4270
|
+
scope: import_zod34.z.string().optional()
|
|
4179
4271
|
}).passthrough();
|
|
4180
4272
|
|
|
4181
4273
|
// src/management/oauth-client.ts
|
|
@@ -5009,15 +5101,14 @@ var CustomerAppsClient = class {
|
|
|
5009
5101
|
* Delete a customer app.
|
|
5010
5102
|
* @param appName - Name of the customer app to delete.
|
|
5011
5103
|
* @param updatedBy - Email of user performing the deletion.
|
|
5012
|
-
* @returns
|
|
5104
|
+
* @returns Deletion confirmation message.
|
|
5013
5105
|
* @example
|
|
5014
5106
|
* ```ts
|
|
5015
5107
|
* import { ManagementClient } from '@cdot65/prisma-airs-sdk';
|
|
5016
5108
|
* const mgmt = new ManagementClient(); // reads PANW_MGMT_* env vars
|
|
5017
5109
|
*
|
|
5018
|
-
* const
|
|
5019
|
-
* // app
|
|
5020
|
-
* // { tsg_id: '1234567890', app_name: 'myapp', cloud_provider: 'aws', environment: 'prod' }
|
|
5110
|
+
* const result = await mgmt.customerApps.delete('myapp', 'user@example.com');
|
|
5111
|
+
* // result => { message: 'customer app and associated keys successfully deleted' }
|
|
5021
5112
|
* ```
|
|
5022
5113
|
*/
|
|
5023
5114
|
async delete(appName, updatedBy) {
|
|
@@ -5026,7 +5117,7 @@ var CustomerAppsClient = class {
|
|
|
5026
5117
|
baseUrl: this.baseUrl,
|
|
5027
5118
|
path: MGMT_CUSTOMER_APP_PATH,
|
|
5028
5119
|
params: { app_name: appName, updated_by: updatedBy },
|
|
5029
|
-
responseSchema:
|
|
5120
|
+
responseSchema: CustomerAppDeleteResponseSchema,
|
|
5030
5121
|
auth: this.auth,
|
|
5031
5122
|
numRetries: this.numRetries
|
|
5032
5123
|
});
|
|
@@ -5161,7 +5252,7 @@ var ScanLogsClient = class {
|
|
|
5161
5252
|
};
|
|
5162
5253
|
|
|
5163
5254
|
// src/management/oauth-management.ts
|
|
5164
|
-
var
|
|
5255
|
+
var import_zod35 = require("zod");
|
|
5165
5256
|
var OAuthManagementClient = class {
|
|
5166
5257
|
baseUrl;
|
|
5167
5258
|
auth;
|
|
@@ -5195,7 +5286,7 @@ var OAuthManagementClient = class {
|
|
|
5195
5286
|
path: MGMT_OAUTH_INVALIDATE_PATH,
|
|
5196
5287
|
params: { token },
|
|
5197
5288
|
body,
|
|
5198
|
-
responseSchema:
|
|
5289
|
+
responseSchema: import_zod35.z.string(),
|
|
5199
5290
|
auth: this.auth,
|
|
5200
5291
|
numRetries: this.numRetries
|
|
5201
5292
|
});
|
|
@@ -5236,6 +5327,148 @@ var OAuthManagementClient = class {
|
|
|
5236
5327
|
}
|
|
5237
5328
|
};
|
|
5238
5329
|
|
|
5330
|
+
// src/management/dashboard.ts
|
|
5331
|
+
var DashboardClient = class {
|
|
5332
|
+
baseUrl;
|
|
5333
|
+
auth;
|
|
5334
|
+
numRetries;
|
|
5335
|
+
constructor(opts) {
|
|
5336
|
+
this.baseUrl = opts.baseUrl;
|
|
5337
|
+
this.auth = opts.auth;
|
|
5338
|
+
this.numRetries = opts.numRetries;
|
|
5339
|
+
}
|
|
5340
|
+
/**
|
|
5341
|
+
* Get per-application token consumption and session activity over the requested window.
|
|
5342
|
+
*
|
|
5343
|
+
* @param query - App identity and time window. `appId` and `appName` are both required.
|
|
5344
|
+
* @returns The application overview with `token_stats`, `session_stats`, attached profiles,
|
|
5345
|
+
* and monitoring metadata.
|
|
5346
|
+
* @example
|
|
5347
|
+
* ```ts
|
|
5348
|
+
* import { ManagementClient } from '@cdot65/prisma-airs-sdk';
|
|
5349
|
+
* const mgmt = new ManagementClient(); // reads PANW_MGMT_* env vars
|
|
5350
|
+
*
|
|
5351
|
+
* const overview = await mgmt.dashboard.application({
|
|
5352
|
+
* appId: 'd8dc4033-593b-45e7-9633-e0dfc130cc82',
|
|
5353
|
+
* appName: 'chatbot',
|
|
5354
|
+
* });
|
|
5355
|
+
* // overview =>
|
|
5356
|
+
* // { name: 'chatbot', cloud: 'other', source: 'api',
|
|
5357
|
+
* // token_stats: { average_daily_tokens: 744.233, average_daily_tokens_scale: 'K',
|
|
5358
|
+
* // monthly_total_tokens: 17.71, monthly_total_tokens_scale: 'M' },
|
|
5359
|
+
* // session_stats: { total: 56935, violating: 31136, ... },
|
|
5360
|
+
* // profiles: ['ms-tuned', 'golden-v2'] }
|
|
5361
|
+
* ```
|
|
5362
|
+
*/
|
|
5363
|
+
async application(query) {
|
|
5364
|
+
return request({
|
|
5365
|
+
method: "GET",
|
|
5366
|
+
baseUrl: this.baseUrl,
|
|
5367
|
+
path: MGMT_DASHBOARD_APPLICATION_PATH,
|
|
5368
|
+
params: {
|
|
5369
|
+
appid: query.appId,
|
|
5370
|
+
appname: query.appName,
|
|
5371
|
+
time_interval: String(query.timeInterval ?? 30),
|
|
5372
|
+
time_unit: query.timeUnit ?? "days"
|
|
5373
|
+
},
|
|
5374
|
+
responseSchema: DashboardApplicationSchema,
|
|
5375
|
+
auth: this.auth,
|
|
5376
|
+
numRetries: this.numRetries
|
|
5377
|
+
});
|
|
5378
|
+
}
|
|
5379
|
+
/**
|
|
5380
|
+
* Get per-detector violation severity counts for the application over the requested window.
|
|
5381
|
+
*
|
|
5382
|
+
* @param query - App identity and time window. `appId` and `appName` are both required.
|
|
5383
|
+
* @returns The detection-type breakdown (one entry per detector observed live:
|
|
5384
|
+
* `agent_security`, `contextual_grounding`, `dbs` (database security), `dlp`,
|
|
5385
|
+
* `malicious_code`, `pi` (prompt injection), `source_code`, `tc` (toxic content),
|
|
5386
|
+
* `topic_guardrails`, `uf` (URL filtering)) plus `total_violating`. Detector set may
|
|
5387
|
+
* evolve; `.passthrough()` schemas accept additions.
|
|
5388
|
+
* @example
|
|
5389
|
+
* ```ts
|
|
5390
|
+
* import { ManagementClient } from '@cdot65/prisma-airs-sdk';
|
|
5391
|
+
* const mgmt = new ManagementClient(); // reads PANW_MGMT_* env vars
|
|
5392
|
+
*
|
|
5393
|
+
* const breakdown = await mgmt.dashboard.applicationViolationBreakdown({
|
|
5394
|
+
* appId: 'd8dc4033-593b-45e7-9633-e0dfc130cc82',
|
|
5395
|
+
* appName: 'chatbot',
|
|
5396
|
+
* });
|
|
5397
|
+
* // breakdown =>
|
|
5398
|
+
* // { detection_type_violation_breakdown: [
|
|
5399
|
+
* // { detection_type: 'topic_guardrails',
|
|
5400
|
+
* // violation_breakdown: { critical: 0, high: 0, medium: 3, low: 0, total: 3 } },
|
|
5401
|
+
* // { detection_type: 'dlp',
|
|
5402
|
+
* // violation_breakdown: { critical: 0, high: 0, medium: 0, low: 0, total: 0 } },
|
|
5403
|
+
* // ... ],
|
|
5404
|
+
* // total_violating: 3 }
|
|
5405
|
+
* ```
|
|
5406
|
+
*/
|
|
5407
|
+
async applicationViolationBreakdown(query) {
|
|
5408
|
+
return request({
|
|
5409
|
+
method: "GET",
|
|
5410
|
+
baseUrl: this.baseUrl,
|
|
5411
|
+
path: MGMT_DASHBOARD_APPLICATION_VIOLATION_BREAKDOWN_PATH,
|
|
5412
|
+
params: {
|
|
5413
|
+
appid: query.appId,
|
|
5414
|
+
appname: query.appName,
|
|
5415
|
+
time_interval: String(query.timeInterval ?? 30),
|
|
5416
|
+
time_unit: query.timeUnit ?? "days"
|
|
5417
|
+
},
|
|
5418
|
+
responseSchema: DashboardApplicationViolationBreakdownSchema,
|
|
5419
|
+
auth: this.auth,
|
|
5420
|
+
numRetries: this.numRetries
|
|
5421
|
+
});
|
|
5422
|
+
}
|
|
5423
|
+
/**
|
|
5424
|
+
* Enumerate all dashboard application buckets the tenant has data for.
|
|
5425
|
+
*
|
|
5426
|
+
* This is the canonical apps-list source for the dashboard. The customer-apps endpoint
|
|
5427
|
+
* (`mgmt.customerApps.list`) lists registered customer applications, but each registered
|
|
5428
|
+
* customer-app can have **multiple dashboard buckets** when its API key is used to send scan
|
|
5429
|
+
* requests carrying different `metadata.app_name` values - one bucket per distinct
|
|
5430
|
+
* scan-payload name. This endpoint returns every bucket, so it is what you want for
|
|
5431
|
+
* per-app token-consumption reporting and dashboard inventory.
|
|
5432
|
+
*
|
|
5433
|
+
* The `id` field on each item is the registered `customer_appId` UUID; the `name` field is
|
|
5434
|
+
* the scan-payload value. Pass that `(id, name)` pair to {@link application} or
|
|
5435
|
+
* {@link applicationViolationBreakdown} to retrieve drill-down data for a specific bucket.
|
|
5436
|
+
*
|
|
5437
|
+
* @param query - Time window and pagination.
|
|
5438
|
+
* @returns Paginated bucket list plus pagination metadata.
|
|
5439
|
+
* @example
|
|
5440
|
+
* ```ts
|
|
5441
|
+
* import { ManagementClient } from '@cdot65/prisma-airs-sdk';
|
|
5442
|
+
* const mgmt = new ManagementClient();
|
|
5443
|
+
*
|
|
5444
|
+
* const { items } = await mgmt.dashboard.applicationsOverview();
|
|
5445
|
+
* for (const item of items ?? []) {
|
|
5446
|
+
* const overview = await mgmt.dashboard.application({
|
|
5447
|
+
* appId: item.id ?? '',
|
|
5448
|
+
* appName: item.name ?? '',
|
|
5449
|
+
* });
|
|
5450
|
+
* console.log(item.name, overview.token_stats?.monthly_total_tokens);
|
|
5451
|
+
* }
|
|
5452
|
+
* ```
|
|
5453
|
+
*/
|
|
5454
|
+
async applicationsOverview(query) {
|
|
5455
|
+
return request({
|
|
5456
|
+
method: "GET",
|
|
5457
|
+
baseUrl: this.baseUrl,
|
|
5458
|
+
path: MGMT_DASHBOARD_APPLICATIONS_OVERVIEW_PATH,
|
|
5459
|
+
params: {
|
|
5460
|
+
time_interval: String(query?.timeInterval ?? 30),
|
|
5461
|
+
time_unit: query?.timeUnit ?? "days",
|
|
5462
|
+
limit: String(query?.limit ?? 25),
|
|
5463
|
+
offset: String(query?.offset ?? 0)
|
|
5464
|
+
},
|
|
5465
|
+
responseSchema: DashboardApplicationsOverviewSchema,
|
|
5466
|
+
auth: this.auth,
|
|
5467
|
+
numRetries: this.numRetries
|
|
5468
|
+
});
|
|
5469
|
+
}
|
|
5470
|
+
};
|
|
5471
|
+
|
|
5239
5472
|
// src/management/dlp/data-filtering-profiles.ts
|
|
5240
5473
|
var DataFilteringProfilesClient = class {
|
|
5241
5474
|
baseUrl;
|
|
@@ -5929,6 +6162,7 @@ var ManagementClient = class {
|
|
|
5929
6162
|
deploymentProfiles;
|
|
5930
6163
|
scanLogs;
|
|
5931
6164
|
oauth;
|
|
6165
|
+
dashboard;
|
|
5932
6166
|
dlp;
|
|
5933
6167
|
constructor(opts = {}) {
|
|
5934
6168
|
const apiEndpoint = opts.apiEndpoint ?? process.env[MGMT_ENDPOINT] ?? DEFAULT_MGMT_ENDPOINT;
|
|
@@ -5951,6 +6185,7 @@ var ManagementClient = class {
|
|
|
5951
6185
|
this.deploymentProfiles = new DeploymentProfilesClient({ baseUrl, auth, numRetries });
|
|
5952
6186
|
this.scanLogs = new ScanLogsClient({ baseUrl, auth, numRetries });
|
|
5953
6187
|
this.oauth = new OAuthManagementClient({ baseUrl, auth, numRetries });
|
|
6188
|
+
this.dashboard = new DashboardClient({ baseUrl, auth, numRetries });
|
|
5954
6189
|
this.dlp = new DlpNamespace({ baseUrl: dlpEndpoint, auth, numRetries });
|
|
5955
6190
|
}
|
|
5956
6191
|
};
|
|
@@ -6745,7 +6980,7 @@ var ModelSecurityClient = class {
|
|
|
6745
6980
|
};
|
|
6746
6981
|
|
|
6747
6982
|
// src/red-team/scans-client.ts
|
|
6748
|
-
var
|
|
6983
|
+
var import_zod36 = require("zod");
|
|
6749
6984
|
var RedTeamScansClient = class {
|
|
6750
6985
|
baseUrl;
|
|
6751
6986
|
auth;
|
|
@@ -6882,7 +7117,7 @@ var RedTeamScansClient = class {
|
|
|
6882
7117
|
method: "GET",
|
|
6883
7118
|
baseUrl: this.baseUrl,
|
|
6884
7119
|
path: RED_TEAM_CATEGORIES_PATH,
|
|
6885
|
-
responseSchema:
|
|
7120
|
+
responseSchema: import_zod36.z.array(CategoryModelSchema),
|
|
6886
7121
|
auth: this.auth,
|
|
6887
7122
|
numRetries: this.numRetries
|
|
6888
7123
|
});
|
|
@@ -6890,7 +7125,7 @@ var RedTeamScansClient = class {
|
|
|
6890
7125
|
};
|
|
6891
7126
|
|
|
6892
7127
|
// src/red-team/reports-client.ts
|
|
6893
|
-
var
|
|
7128
|
+
var import_zod37 = require("zod");
|
|
6894
7129
|
var RedTeamReportsClient = class {
|
|
6895
7130
|
baseUrl;
|
|
6896
7131
|
auth;
|
|
@@ -7265,7 +7500,7 @@ var RedTeamReportsClient = class {
|
|
|
7265
7500
|
baseUrl: this.baseUrl,
|
|
7266
7501
|
path: `${RED_TEAM_REPORT_PATH}/${jobId}/download`,
|
|
7267
7502
|
params: { file_format: format },
|
|
7268
|
-
responseSchema:
|
|
7503
|
+
responseSchema: import_zod37.z.unknown(),
|
|
7269
7504
|
auth: this.auth,
|
|
7270
7505
|
numRetries: this.numRetries
|
|
7271
7506
|
});
|
|
@@ -7289,7 +7524,7 @@ var RedTeamReportsClient = class {
|
|
|
7289
7524
|
method: "POST",
|
|
7290
7525
|
baseUrl: this.baseUrl,
|
|
7291
7526
|
path: `${RED_TEAM_REPORT_PATH}/${jobId}/generate-partial-report`,
|
|
7292
|
-
responseSchema:
|
|
7527
|
+
responseSchema: import_zod37.z.unknown(),
|
|
7293
7528
|
auth: this.auth,
|
|
7294
7529
|
numRetries: this.numRetries
|
|
7295
7530
|
});
|
|
@@ -7297,7 +7532,7 @@ var RedTeamReportsClient = class {
|
|
|
7297
7532
|
};
|
|
7298
7533
|
|
|
7299
7534
|
// src/red-team/custom-attack-reports-client.ts
|
|
7300
|
-
var
|
|
7535
|
+
var import_zod38 = require("zod");
|
|
7301
7536
|
var RedTeamCustomAttackReportsClient = class {
|
|
7302
7537
|
baseUrl;
|
|
7303
7538
|
auth;
|
|
@@ -7387,7 +7622,7 @@ var RedTeamCustomAttackReportsClient = class {
|
|
|
7387
7622
|
baseUrl: this.baseUrl,
|
|
7388
7623
|
path: `${RED_TEAM_CUSTOM_ATTACKS_REPORT_PATH}/report/${jobId}/prompt-set/${promptSetId}/prompts`,
|
|
7389
7624
|
params,
|
|
7390
|
-
responseSchema:
|
|
7625
|
+
responseSchema: import_zod38.z.array(PromptDetailResponseSchema),
|
|
7391
7626
|
auth: this.auth,
|
|
7392
7627
|
numRetries: this.numRetries
|
|
7393
7628
|
});
|
|
@@ -7481,7 +7716,7 @@ var RedTeamCustomAttackReportsClient = class {
|
|
|
7481
7716
|
method: "GET",
|
|
7482
7717
|
baseUrl: this.baseUrl,
|
|
7483
7718
|
path: `${RED_TEAM_CUSTOM_ATTACKS_REPORT_PATH}/job/${jobId}/attack/${attackId}/list-outputs`,
|
|
7484
|
-
responseSchema:
|
|
7719
|
+
responseSchema: import_zod38.z.array(CustomAttackOutputSchema),
|
|
7485
7720
|
auth: this.auth,
|
|
7486
7721
|
numRetries: this.numRetries
|
|
7487
7722
|
});
|
|
@@ -7506,7 +7741,7 @@ var RedTeamCustomAttackReportsClient = class {
|
|
|
7506
7741
|
method: "GET",
|
|
7507
7742
|
baseUrl: this.baseUrl,
|
|
7508
7743
|
path: `${RED_TEAM_CUSTOM_ATTACKS_REPORT_PATH}/job/${jobId}/property-stats`,
|
|
7509
|
-
responseSchema:
|
|
7744
|
+
responseSchema: import_zod38.z.array(PropertyStatisticSchema),
|
|
7510
7745
|
auth: this.auth,
|
|
7511
7746
|
numRetries: this.numRetries
|
|
7512
7747
|
});
|
|
@@ -7514,7 +7749,7 @@ var RedTeamCustomAttackReportsClient = class {
|
|
|
7514
7749
|
};
|
|
7515
7750
|
|
|
7516
7751
|
// src/red-team/targets-client.ts
|
|
7517
|
-
var
|
|
7752
|
+
var import_zod39 = require("zod");
|
|
7518
7753
|
var RedTeamTargetsClient = class {
|
|
7519
7754
|
baseUrl;
|
|
7520
7755
|
auth;
|
|
@@ -7671,7 +7906,8 @@ var RedTeamTargetsClient = class {
|
|
|
7671
7906
|
method: "DELETE",
|
|
7672
7907
|
baseUrl: this.baseUrl,
|
|
7673
7908
|
path: `${RED_TEAM_TARGET_PATH}/${uuid}`,
|
|
7674
|
-
responseSchema: BaseResponseSchema,
|
|
7909
|
+
responseSchema: BaseResponseSchema.optional(),
|
|
7910
|
+
allowEmptyBody: true,
|
|
7675
7911
|
auth: this.auth,
|
|
7676
7912
|
numRetries: this.numRetries
|
|
7677
7913
|
});
|
|
@@ -7806,7 +8042,7 @@ var RedTeamTargetsClient = class {
|
|
|
7806
8042
|
method: "GET",
|
|
7807
8043
|
baseUrl: this.baseUrl,
|
|
7808
8044
|
path: `${RED_TEAM_TEMPLATE_PATH}/target-metadata`,
|
|
7809
|
-
responseSchema:
|
|
8045
|
+
responseSchema: import_zod39.z.record(import_zod39.z.unknown()),
|
|
7810
8046
|
auth: this.auth,
|
|
7811
8047
|
numRetries: this.numRetries
|
|
7812
8048
|
});
|
|
@@ -8306,7 +8542,8 @@ var RedTeamCustomAttacksClient = class {
|
|
|
8306
8542
|
method: "DELETE",
|
|
8307
8543
|
baseUrl: this.baseUrl,
|
|
8308
8544
|
path: `${RED_TEAM_CUSTOM_ATTACK_PATH}/custom-prompt-set/${promptSetUuid}/custom-prompt/${promptUuid}`,
|
|
8309
|
-
responseSchema: BaseResponseSchema,
|
|
8545
|
+
responseSchema: BaseResponseSchema.optional(),
|
|
8546
|
+
allowEmptyBody: true,
|
|
8310
8547
|
auth: this.auth,
|
|
8311
8548
|
numRetries: this.numRetries
|
|
8312
8549
|
});
|
|
@@ -8357,7 +8594,8 @@ var RedTeamCustomAttacksClient = class {
|
|
|
8357
8594
|
baseUrl: this.baseUrl,
|
|
8358
8595
|
path: `${RED_TEAM_CUSTOM_ATTACK_PATH}/property-names`,
|
|
8359
8596
|
body,
|
|
8360
|
-
responseSchema: BaseResponseSchema,
|
|
8597
|
+
responseSchema: BaseResponseSchema.optional(),
|
|
8598
|
+
allowEmptyBody: true,
|
|
8361
8599
|
auth: this.auth,
|
|
8362
8600
|
numRetries: this.numRetries
|
|
8363
8601
|
});
|
|
@@ -9077,6 +9315,7 @@ var RedTeamClient = class {
|
|
|
9077
9315
|
CustomPromptUpdateRequestSchema,
|
|
9078
9316
|
CustomTopicListResponseSchema,
|
|
9079
9317
|
CustomTopicSchema,
|
|
9318
|
+
CustomerAppDeleteResponseSchema,
|
|
9080
9319
|
CustomerAppListResponseSchema,
|
|
9081
9320
|
CustomerAppSchema,
|
|
9082
9321
|
CustomerAppWithKeysSchema,
|
|
@@ -9095,7 +9334,15 @@ var RedTeamClient = class {
|
|
|
9095
9334
|
DLP_DICTIONARIES_PATH,
|
|
9096
9335
|
DSDetailResultSchema,
|
|
9097
9336
|
DSResultMetadataSchema,
|
|
9337
|
+
DashboardApplicationSchema,
|
|
9338
|
+
DashboardApplicationSessionsBucketSchema,
|
|
9339
|
+
DashboardApplicationViolationBreakdownSchema,
|
|
9340
|
+
DashboardApplicationsOverviewItemSchema,
|
|
9341
|
+
DashboardApplicationsOverviewSchema,
|
|
9342
|
+
DashboardClient,
|
|
9098
9343
|
DashboardOverviewResponseSchema,
|
|
9344
|
+
DashboardPaginationSchema,
|
|
9345
|
+
DashboardSessionStatsSchema,
|
|
9099
9346
|
DataFilteringDetailsSchema,
|
|
9100
9347
|
DataFilteringProfileRequestSchema,
|
|
9101
9348
|
DataFilteringProfileResponseSchema,
|
|
@@ -9141,6 +9388,7 @@ var RedTeamClient = class {
|
|
|
9141
9388
|
DetectionRuleSchema,
|
|
9142
9389
|
DetectionServiceName,
|
|
9143
9390
|
DetectionServiceResultSchema,
|
|
9391
|
+
DetectorViolationBreakdownEntrySchema,
|
|
9144
9392
|
DeviceInstanceSchema,
|
|
9145
9393
|
DeviceLicenseSchema,
|
|
9146
9394
|
DeviceRequestSchema,
|
|
@@ -9244,6 +9492,9 @@ var RedTeamClient = class {
|
|
|
9244
9492
|
MGMT_CLIENT_SECRET,
|
|
9245
9493
|
MGMT_CUSTOMER_APPS_TSG_PATH,
|
|
9246
9494
|
MGMT_CUSTOMER_APP_PATH,
|
|
9495
|
+
MGMT_DASHBOARD_APPLICATIONS_OVERVIEW_PATH,
|
|
9496
|
+
MGMT_DASHBOARD_APPLICATION_PATH,
|
|
9497
|
+
MGMT_DASHBOARD_APPLICATION_VIOLATION_BREAKDOWN_PATH,
|
|
9247
9498
|
MGMT_DEPLOYMENT_PROFILES_PATH,
|
|
9248
9499
|
MGMT_DLP_PROFILES_PATH,
|
|
9249
9500
|
MGMT_ENDPOINT,
|
|
@@ -9472,6 +9723,7 @@ var RedTeamClient = class {
|
|
|
9472
9723
|
TgReportSchema,
|
|
9473
9724
|
ThreatCategory,
|
|
9474
9725
|
ThreatScanReportSchema,
|
|
9726
|
+
TokenStatsSchema,
|
|
9475
9727
|
ToolDetectedSchema,
|
|
9476
9728
|
ToolDetectionDetailsSchema,
|
|
9477
9729
|
ToolDetectionEntrySchema,
|
|
@@ -9489,6 +9741,7 @@ var RedTeamClient = class {
|
|
|
9489
9741
|
Verdict,
|
|
9490
9742
|
ViolationListSchema,
|
|
9491
9743
|
ViolationResponseSchema,
|
|
9744
|
+
ViolationSeverityCountsSchema,
|
|
9492
9745
|
WebSocketConnectionParamsSchema,
|
|
9493
9746
|
WeightedRegexSchema,
|
|
9494
9747
|
globalConfiguration,
|