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