@cdot65/prisma-airs-sdk 0.10.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1820 -1567
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1329 -17
- package/dist/index.d.ts +1329 -17
- package/dist/index.js +1805 -1567
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -29,7 +29,7 @@ var MAX_NUMBER_OF_BATCH_SCAN_OBJECTS = 5;
|
|
|
29
29
|
var MAX_CONNECTION_POOL_SIZE = 100;
|
|
30
30
|
var MAX_NUMBER_OF_RETRIES = 5;
|
|
31
31
|
var HTTP_FORCE_RETRY_STATUS_CODES = [500, 502, 503, 504];
|
|
32
|
-
var SDK_VERSION = "0.
|
|
32
|
+
var SDK_VERSION = "0.12.0";
|
|
33
33
|
var USER_AGENT = `PAN-AIRS/${SDK_VERSION}-typescript-sdk`;
|
|
34
34
|
var DEFAULT_MGMT_ENDPOINT = "https://api.sase.paloaltonetworks.com/aisec";
|
|
35
35
|
var DEFAULT_TOKEN_ENDPOINT = "https://auth.apps.paloaltonetworks.com/oauth2/access_token";
|
|
@@ -56,6 +56,9 @@ var MGMT_CUSTOMER_APP_PATH = "/v1/mgmt/customerapp";
|
|
|
56
56
|
var MGMT_CUSTOMER_APPS_TSG_PATH = "/v1/mgmt/customerapp/tsg";
|
|
57
57
|
var MGMT_OAUTH_INVALIDATE_PATH = "/v1/mgmt/oauth/invalidateToken";
|
|
58
58
|
var MGMT_OAUTH_TOKEN_PATH = "/v1/mgmt/oauth/client_credential/accesstoken";
|
|
59
|
+
var MGMT_DASHBOARD_APPLICATION_PATH = "/v1/mgmt/dashboard/v2/apps/application";
|
|
60
|
+
var MGMT_DASHBOARD_APPLICATION_VIOLATION_BREAKDOWN_PATH = "/v1/mgmt/dashboard/v2/apps/applicationviolationbreakdown";
|
|
61
|
+
var MGMT_DASHBOARD_APPLICATIONS_OVERVIEW_PATH = "/v1/mgmt/dashboard/v2/apps/applicationsoverview";
|
|
59
62
|
var DEFAULT_DLP_ENDPOINT = "https://api.dlp.paloaltonetworks.com";
|
|
60
63
|
var DLP_DATA_FILTERING_PROFILES_PATH = "/v2/api/data-filtering-profiles";
|
|
61
64
|
var DLP_DATA_PATTERNS_PATH = "/v2/api/data-patterns";
|
|
@@ -1313,9 +1316,10 @@ var SecurityProfileListResponseSchema = z17.object({
|
|
|
1313
1316
|
ai_profiles: z17.array(SecurityProfileSchema),
|
|
1314
1317
|
next_offset: z17.number().optional()
|
|
1315
1318
|
}).passthrough();
|
|
1316
|
-
var DeleteProfileResponseSchema = z17.
|
|
1317
|
-
|
|
1318
|
-
}).passthrough()
|
|
1319
|
+
var DeleteProfileResponseSchema = z17.union([
|
|
1320
|
+
z17.string().transform((message) => ({ message })),
|
|
1321
|
+
z17.object({ message: z17.string() }).passthrough()
|
|
1322
|
+
]);
|
|
1319
1323
|
var DeleteProfileConflictSchema = z17.object({
|
|
1320
1324
|
message: z17.string(),
|
|
1321
1325
|
payload: z17.array(
|
|
@@ -1357,9 +1361,10 @@ var CustomTopicListResponseSchema = z18.object({
|
|
|
1357
1361
|
custom_topics: z18.array(CustomTopicSchema),
|
|
1358
1362
|
next_offset: z18.number().optional()
|
|
1359
1363
|
}).passthrough();
|
|
1360
|
-
var DeleteTopicResponseSchema = z18.
|
|
1361
|
-
|
|
1362
|
-
}).passthrough()
|
|
1364
|
+
var DeleteTopicResponseSchema = z18.union([
|
|
1365
|
+
z18.string().transform((message) => ({ message })),
|
|
1366
|
+
z18.object({ message: z18.string() }).passthrough()
|
|
1367
|
+
]);
|
|
1363
1368
|
var DeleteTopicConflictSchema = z18.object({
|
|
1364
1369
|
message: z18.string(),
|
|
1365
1370
|
payload: z18.array(
|
|
@@ -1422,9 +1427,10 @@ var ApiKeyListResponseSchema = z19.object({
|
|
|
1422
1427
|
api_keys: z19.array(ApiKeySchema).optional(),
|
|
1423
1428
|
next_offset: z19.number().optional()
|
|
1424
1429
|
}).passthrough();
|
|
1425
|
-
var ApiKeyDeleteResponseSchema = z19.
|
|
1426
|
-
|
|
1427
|
-
}).passthrough()
|
|
1430
|
+
var ApiKeyDeleteResponseSchema = z19.union([
|
|
1431
|
+
z19.string().transform((message) => ({ message })),
|
|
1432
|
+
z19.object({ message: z19.string().optional() }).passthrough()
|
|
1433
|
+
]);
|
|
1428
1434
|
|
|
1429
1435
|
// src/models/mgmt-customer-app.ts
|
|
1430
1436
|
import { z as z20 } from "zod";
|
|
@@ -1459,180 +1465,251 @@ var CustomerAppListResponseSchema = z20.object({
|
|
|
1459
1465
|
customer_apps: z20.array(CustomerAppWithKeysSchema).optional(),
|
|
1460
1466
|
next_offset: z20.number().optional()
|
|
1461
1467
|
}).passthrough();
|
|
1468
|
+
var CustomerAppDeleteResponseSchema = z20.union([
|
|
1469
|
+
z20.string().transform((message) => ({ message })),
|
|
1470
|
+
z20.object({ message: z20.string() }).passthrough()
|
|
1471
|
+
]);
|
|
1462
1472
|
|
|
1463
|
-
// src/models/mgmt-
|
|
1473
|
+
// src/models/mgmt-dashboard.ts
|
|
1464
1474
|
import { z as z21 } from "zod";
|
|
1465
|
-
var
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1475
|
+
var TokenStatsSchema = z21.object({
|
|
1476
|
+
average_daily_tokens: z21.number().nullable().optional(),
|
|
1477
|
+
average_daily_tokens_scale: z21.string().nullable().optional(),
|
|
1478
|
+
monthly_total_tokens: z21.number().nullable().optional(),
|
|
1479
|
+
monthly_total_tokens_scale: z21.string().nullable().optional()
|
|
1480
|
+
}).passthrough();
|
|
1481
|
+
var ViolationSeverityCountsSchema = z21.object({
|
|
1482
|
+
critical: z21.number().optional(),
|
|
1483
|
+
high: z21.number().optional(),
|
|
1484
|
+
medium: z21.number().optional(),
|
|
1485
|
+
low: z21.number().optional(),
|
|
1486
|
+
total: z21.number().optional()
|
|
1487
|
+
}).passthrough();
|
|
1488
|
+
var DashboardSessionStatsSchema = z21.object({
|
|
1489
|
+
total: z21.number().optional(),
|
|
1490
|
+
violating: z21.number().optional(),
|
|
1491
|
+
violation_breakdown: ViolationSeverityCountsSchema.optional(),
|
|
1492
|
+
last_session_id: z21.string().nullable().optional(),
|
|
1493
|
+
most_recent_session_time: z21.string().nullable().optional()
|
|
1494
|
+
}).passthrough();
|
|
1495
|
+
var DashboardApplicationSchema = z21.object({
|
|
1496
|
+
id: z21.string().nullable().optional(),
|
|
1497
|
+
name: z21.string().nullable().optional(),
|
|
1498
|
+
cloud: z21.string().nullable().optional(),
|
|
1499
|
+
source: z21.string().nullable().optional(),
|
|
1500
|
+
created_at: z21.string().nullable().optional(),
|
|
1501
|
+
updated_at: z21.string().nullable().optional(),
|
|
1502
|
+
profiles: z21.array(z21.string()).nullable().optional(),
|
|
1503
|
+
token_stats: TokenStatsSchema.nullable().optional(),
|
|
1504
|
+
session_stats: DashboardSessionStatsSchema.nullable().optional()
|
|
1505
|
+
}).passthrough();
|
|
1506
|
+
var DetectorViolationBreakdownEntrySchema = z21.object({
|
|
1507
|
+
detection_type: z21.string().optional(),
|
|
1508
|
+
violation_breakdown: ViolationSeverityCountsSchema.optional()
|
|
1509
|
+
}).passthrough();
|
|
1510
|
+
var DashboardApplicationViolationBreakdownSchema = z21.object({
|
|
1511
|
+
detection_type_violation_breakdown: z21.array(DetectorViolationBreakdownEntrySchema).optional(),
|
|
1512
|
+
total_violating: z21.number().optional()
|
|
1513
|
+
}).passthrough();
|
|
1514
|
+
var DashboardApplicationSessionsBucketSchema = z21.object({
|
|
1515
|
+
bucket_number: z21.number().optional(),
|
|
1516
|
+
date: z21.string().nullable().optional(),
|
|
1517
|
+
total: z21.number().optional(),
|
|
1518
|
+
violated: z21.number().optional()
|
|
1519
|
+
}).passthrough();
|
|
1520
|
+
var DashboardApplicationsOverviewItemSchema = z21.object({
|
|
1521
|
+
id: z21.string().nullable().optional(),
|
|
1522
|
+
name: z21.string().nullable().optional(),
|
|
1523
|
+
cloud: z21.string().nullable().optional(),
|
|
1524
|
+
source: z21.string().nullable().optional(),
|
|
1525
|
+
created_at: z21.string().nullable().optional(),
|
|
1526
|
+
sessions: z21.array(DashboardApplicationSessionsBucketSchema).nullable().optional(),
|
|
1527
|
+
sessions_total: z21.number().nullable().optional(),
|
|
1528
|
+
sessions_violated: z21.number().nullable().optional()
|
|
1529
|
+
}).passthrough();
|
|
1530
|
+
var DashboardPaginationSchema = z21.object({
|
|
1531
|
+
limit: z21.number().optional(),
|
|
1532
|
+
skip: z21.number().optional(),
|
|
1533
|
+
total_items: z21.number().optional()
|
|
1534
|
+
}).passthrough();
|
|
1535
|
+
var DashboardApplicationsOverviewSchema = z21.object({
|
|
1536
|
+
items: z21.array(DashboardApplicationsOverviewItemSchema).optional(),
|
|
1537
|
+
pagination: DashboardPaginationSchema.optional()
|
|
1476
1538
|
}).passthrough();
|
|
1477
1539
|
|
|
1478
|
-
// src/models/mgmt-
|
|
1540
|
+
// src/models/mgmt-deployment-profile.ts
|
|
1479
1541
|
import { z as z22 } from "zod";
|
|
1480
|
-
var
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
var DlpProfileListResponseSchema = z22.object({
|
|
1492
|
-
dlp_profiles: z22.array(DlpDataProfileSchema).optional()
|
|
1542
|
+
var DeploymentProfileEntrySchema = z22.object({
|
|
1543
|
+
dp_name: z22.string(),
|
|
1544
|
+
auth_code: z22.string(),
|
|
1545
|
+
tsg_id: z22.string().optional(),
|
|
1546
|
+
status: z22.string().optional(),
|
|
1547
|
+
expiration_date: z22.string().optional(),
|
|
1548
|
+
ave_text_records: z22.number().optional()
|
|
1549
|
+
}).passthrough();
|
|
1550
|
+
var DeploymentProfilesResponseSchema = z22.object({
|
|
1551
|
+
deployment_profiles: z22.array(DeploymentProfileEntrySchema),
|
|
1552
|
+
status: z22.string()
|
|
1493
1553
|
}).passthrough();
|
|
1494
1554
|
|
|
1495
|
-
// src/models/mgmt-
|
|
1555
|
+
// src/models/mgmt-dlp-profile.ts
|
|
1496
1556
|
import { z as z23 } from "zod";
|
|
1497
|
-
var
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1557
|
+
var DlpDataProfileSchema = z23.object({
|
|
1558
|
+
name: z23.string(),
|
|
1559
|
+
uuid: z23.string(),
|
|
1560
|
+
id: z23.string().optional(),
|
|
1561
|
+
version: z23.string().optional(),
|
|
1562
|
+
rule1: z23.object({ action: z23.string().optional() }).passthrough().optional(),
|
|
1563
|
+
rule2: z23.object({ action: z23.string().optional() }).passthrough().optional(),
|
|
1564
|
+
"log-severity": z23.string().optional(),
|
|
1565
|
+
"non-file-based": z23.string().optional(),
|
|
1566
|
+
"file-based": z23.string().optional()
|
|
1567
|
+
}).passthrough();
|
|
1568
|
+
var DlpProfileListResponseSchema = z23.object({
|
|
1569
|
+
dlp_profiles: z23.array(DlpDataProfileSchema).optional()
|
|
1570
|
+
}).passthrough();
|
|
1571
|
+
|
|
1572
|
+
// src/models/mgmt-scan-log.ts
|
|
1573
|
+
import { z as z24 } from "zod";
|
|
1574
|
+
var ScanResultEntrySchema = z24.object({
|
|
1575
|
+
csp_id: z24.string(),
|
|
1576
|
+
tsg_id: z24.string(),
|
|
1577
|
+
scan_id: z24.string(),
|
|
1578
|
+
scan_sub_req_id: z24.number(),
|
|
1579
|
+
api_key_name: z24.string(),
|
|
1580
|
+
app_name: z24.string(),
|
|
1581
|
+
tokens: z24.number(),
|
|
1582
|
+
text_records: z24.number(),
|
|
1583
|
+
transaction_id: z24.string().optional(),
|
|
1584
|
+
profile_id: z24.string().optional(),
|
|
1585
|
+
profile_name: z24.string().optional(),
|
|
1586
|
+
model_name: z24.string().optional(),
|
|
1587
|
+
user: z24.string().optional(),
|
|
1588
|
+
environment: z24.string().optional(),
|
|
1589
|
+
cloud_provider: z24.string().optional(),
|
|
1590
|
+
agent_framework: z24.string().optional(),
|
|
1591
|
+
report_id: z24.string().optional(),
|
|
1592
|
+
received_ts: z24.string().optional(),
|
|
1593
|
+
completed_ts: z24.string().optional(),
|
|
1594
|
+
status: z24.string().optional(),
|
|
1595
|
+
verdict: z24.string().optional(),
|
|
1596
|
+
action: z24.string().optional(),
|
|
1597
|
+
is_prompt: z24.boolean().optional(),
|
|
1598
|
+
is_response: z24.boolean().optional(),
|
|
1599
|
+
pi_final_verdict: z24.string().optional(),
|
|
1600
|
+
uf_final_verdict: z24.string().optional(),
|
|
1601
|
+
dlp_final_verdict: z24.string().optional(),
|
|
1602
|
+
dbs_final_verdict: z24.string().optional(),
|
|
1603
|
+
tc_final_verdict: z24.string().optional(),
|
|
1604
|
+
mc_final_verdict: z24.string().optional(),
|
|
1605
|
+
agent_final_verdict: z24.string().optional(),
|
|
1606
|
+
cg_final_verdict: z24.string().optional(),
|
|
1607
|
+
tg_final_verdict: z24.string().optional(),
|
|
1608
|
+
prompt_pi_verdict: z24.string().optional(),
|
|
1609
|
+
prompt_uf_verdict: z24.string().optional(),
|
|
1610
|
+
prompt_dlp_verdict: z24.string().optional(),
|
|
1611
|
+
prompt_tc_verdict: z24.string().optional(),
|
|
1612
|
+
prompt_mc_verdict: z24.string().optional(),
|
|
1613
|
+
prompt_agent_verdict: z24.string().optional(),
|
|
1614
|
+
prompt_tg_verdict: z24.string().optional(),
|
|
1615
|
+
prompt_verdict: z24.string().optional(),
|
|
1616
|
+
prompt_pi_action: z24.string().optional(),
|
|
1617
|
+
prompt_uf_action: z24.string().optional(),
|
|
1618
|
+
prompt_dlp_action: z24.string().optional(),
|
|
1619
|
+
prompt_tc_action: z24.string().optional(),
|
|
1620
|
+
prompt_mc_action: z24.string().optional(),
|
|
1621
|
+
prompt_agent_action: z24.string().optional(),
|
|
1622
|
+
prompt_tg_action: z24.string().optional(),
|
|
1623
|
+
response_uf_verdict: z24.string().optional(),
|
|
1624
|
+
response_dlp_verdict: z24.string().optional(),
|
|
1625
|
+
response_dbs_verdict: z24.string().optional(),
|
|
1626
|
+
response_tc_verdict: z24.string().optional(),
|
|
1627
|
+
response_mc_verdict: z24.string().optional(),
|
|
1628
|
+
response_agent_verdict: z24.string().optional(),
|
|
1629
|
+
response_cg_verdict: z24.string().optional(),
|
|
1630
|
+
response_tg_verdict: z24.string().optional(),
|
|
1631
|
+
response_uf_action: z24.string().optional(),
|
|
1632
|
+
response_dlp_action: z24.string().optional(),
|
|
1633
|
+
response_dbs_action: z24.string().optional(),
|
|
1634
|
+
response_tc_action: z24.string().optional(),
|
|
1635
|
+
response_mc_action: z24.string().optional(),
|
|
1636
|
+
response_agent_action: z24.string().optional(),
|
|
1637
|
+
response_cg_action: z24.string().optional(),
|
|
1638
|
+
response_tg_action: z24.string().optional(),
|
|
1639
|
+
response_verdict: z24.string().optional(),
|
|
1640
|
+
detection_service_flags: z24.number().optional(),
|
|
1641
|
+
content_masked: z24.boolean().optional(),
|
|
1642
|
+
user_ip: z24.string().optional()
|
|
1643
|
+
}).passthrough();
|
|
1644
|
+
var ScanResultForDashboardSchema = z24.object({
|
|
1645
|
+
text_records_count: z24.number().optional(),
|
|
1646
|
+
api_calls_count: z24.number().optional(),
|
|
1647
|
+
threats_count: z24.number().optional(),
|
|
1648
|
+
all_transactions_count: z24.number().optional(),
|
|
1649
|
+
benign_transaction_count: z24.number().optional(),
|
|
1650
|
+
scan_result_entries: z24.array(ScanResultEntrySchema).optional()
|
|
1651
|
+
}).passthrough();
|
|
1652
|
+
var PaginatedScanResultsSchema = z24.object({
|
|
1576
1653
|
scan_result_for_dashboard: ScanResultForDashboardSchema.optional(),
|
|
1577
|
-
total_pages:
|
|
1578
|
-
page_number:
|
|
1579
|
-
page_size:
|
|
1580
|
-
page_token:
|
|
1581
|
-
revision:
|
|
1654
|
+
total_pages: z24.number().optional(),
|
|
1655
|
+
page_number: z24.number().optional(),
|
|
1656
|
+
page_size: z24.number().optional(),
|
|
1657
|
+
page_token: z24.string().optional(),
|
|
1658
|
+
revision: z24.number().optional()
|
|
1582
1659
|
}).passthrough();
|
|
1583
1660
|
|
|
1584
1661
|
// src/models/mgmt-oauth.ts
|
|
1585
|
-
import { z as
|
|
1586
|
-
var ClientIdAndCustomerAppSchema =
|
|
1587
|
-
client_id:
|
|
1588
|
-
customer_app:
|
|
1589
|
-
}).passthrough();
|
|
1590
|
-
var Oauth2TokenSchema =
|
|
1591
|
-
token_type:
|
|
1592
|
-
issued_at:
|
|
1593
|
-
client_id:
|
|
1594
|
-
access_token:
|
|
1595
|
-
expires_in:
|
|
1596
|
-
status:
|
|
1662
|
+
import { z as z25 } from "zod";
|
|
1663
|
+
var ClientIdAndCustomerAppSchema = z25.object({
|
|
1664
|
+
client_id: z25.string(),
|
|
1665
|
+
customer_app: z25.string()
|
|
1666
|
+
}).passthrough();
|
|
1667
|
+
var Oauth2TokenSchema = z25.object({
|
|
1668
|
+
token_type: z25.string().optional(),
|
|
1669
|
+
issued_at: z25.string().optional(),
|
|
1670
|
+
client_id: z25.string().optional(),
|
|
1671
|
+
access_token: z25.string(),
|
|
1672
|
+
expires_in: z25.string().optional(),
|
|
1673
|
+
status: z25.string().optional()
|
|
1597
1674
|
}).passthrough();
|
|
1598
1675
|
|
|
1599
1676
|
// src/models/dlp-audit.ts
|
|
1600
|
-
import { z as
|
|
1601
|
-
var AuditResponseSchema =
|
|
1602
|
-
created_at:
|
|
1603
|
-
created_by:
|
|
1604
|
-
updated_at:
|
|
1605
|
-
updated_by:
|
|
1677
|
+
import { z as z26 } from "zod";
|
|
1678
|
+
var AuditResponseSchema = z26.object({
|
|
1679
|
+
created_at: z26.union([z26.string(), z26.number()]).nullish(),
|
|
1680
|
+
created_by: z26.string().nullish(),
|
|
1681
|
+
updated_at: z26.union([z26.string(), z26.number()]).nullish(),
|
|
1682
|
+
updated_by: z26.string().nullish()
|
|
1606
1683
|
}).passthrough();
|
|
1607
1684
|
|
|
1608
1685
|
// src/models/dlp-page.ts
|
|
1609
|
-
import { z as
|
|
1610
|
-
var SortObjectSchema =
|
|
1611
|
-
empty:
|
|
1612
|
-
sorted:
|
|
1613
|
-
unsorted:
|
|
1614
|
-
}).passthrough();
|
|
1615
|
-
var PageableObjectSchema =
|
|
1616
|
-
offset:
|
|
1617
|
-
pageNumber:
|
|
1618
|
-
pageSize:
|
|
1619
|
-
paged:
|
|
1620
|
-
unpaged:
|
|
1686
|
+
import { z as z27 } from "zod";
|
|
1687
|
+
var SortObjectSchema = z27.object({
|
|
1688
|
+
empty: z27.boolean().optional(),
|
|
1689
|
+
sorted: z27.boolean().optional(),
|
|
1690
|
+
unsorted: z27.boolean().optional()
|
|
1691
|
+
}).passthrough();
|
|
1692
|
+
var PageableObjectSchema = z27.object({
|
|
1693
|
+
offset: z27.number().optional(),
|
|
1694
|
+
pageNumber: z27.number().optional(),
|
|
1695
|
+
pageSize: z27.number().optional(),
|
|
1696
|
+
paged: z27.boolean().optional(),
|
|
1697
|
+
unpaged: z27.boolean().optional(),
|
|
1621
1698
|
sort: SortObjectSchema.optional()
|
|
1622
1699
|
}).passthrough();
|
|
1623
1700
|
function pageSchema(itemSchema) {
|
|
1624
|
-
return
|
|
1625
|
-
content:
|
|
1626
|
-
empty:
|
|
1627
|
-
first:
|
|
1628
|
-
last:
|
|
1629
|
-
number:
|
|
1630
|
-
numberOfElements:
|
|
1701
|
+
return z27.object({
|
|
1702
|
+
content: z27.array(itemSchema),
|
|
1703
|
+
empty: z27.boolean().optional(),
|
|
1704
|
+
first: z27.boolean().optional(),
|
|
1705
|
+
last: z27.boolean().optional(),
|
|
1706
|
+
number: z27.number().optional(),
|
|
1707
|
+
numberOfElements: z27.number().optional(),
|
|
1631
1708
|
pageable: PageableObjectSchema.optional(),
|
|
1632
|
-
size:
|
|
1709
|
+
size: z27.number().optional(),
|
|
1633
1710
|
sort: SortObjectSchema.optional(),
|
|
1634
|
-
totalElements:
|
|
1635
|
-
totalPages:
|
|
1711
|
+
totalElements: z27.number().optional(),
|
|
1712
|
+
totalPages: z27.number().optional()
|
|
1636
1713
|
}).passthrough();
|
|
1637
1714
|
}
|
|
1638
1715
|
|
|
@@ -1642,9 +1719,9 @@ function jsonNullable(inner) {
|
|
|
1642
1719
|
}
|
|
1643
1720
|
|
|
1644
1721
|
// src/models/dlp-dictionary.ts
|
|
1645
|
-
import { z as
|
|
1646
|
-
var DictionaryTypeSchema =
|
|
1647
|
-
var DictionaryCategorySchema =
|
|
1722
|
+
import { z as z28 } from "zod";
|
|
1723
|
+
var DictionaryTypeSchema = z28.enum(["predefined", "custom"]);
|
|
1724
|
+
var DictionaryCategorySchema = z28.enum([
|
|
1648
1725
|
"Academic",
|
|
1649
1726
|
"Confidential",
|
|
1650
1727
|
"Employment",
|
|
@@ -1655,8 +1732,8 @@ var DictionaryCategorySchema = z27.enum([
|
|
|
1655
1732
|
"Marketing",
|
|
1656
1733
|
"Source Code"
|
|
1657
1734
|
]);
|
|
1658
|
-
var DictionaryClassificationSchema =
|
|
1659
|
-
var DictionaryDetectionTechniqueSchema =
|
|
1735
|
+
var DictionaryClassificationSchema = z28.enum(["pab", "endpoint"]);
|
|
1736
|
+
var DictionaryDetectionTechniqueSchema = z28.enum([
|
|
1660
1737
|
"edm",
|
|
1661
1738
|
"document_fingerprint",
|
|
1662
1739
|
"trainable_classifier",
|
|
@@ -1671,7 +1748,7 @@ var DictionaryDetectionTechniqueSchema = z27.enum([
|
|
|
1671
1748
|
"pab",
|
|
1672
1749
|
"document_classifier"
|
|
1673
1750
|
]);
|
|
1674
|
-
var DictionaryDetectionSubTechniqueSchema =
|
|
1751
|
+
var DictionaryDetectionSubTechniqueSchema = z28.enum([
|
|
1675
1752
|
"dnn",
|
|
1676
1753
|
"gamma",
|
|
1677
1754
|
"ml_gateway",
|
|
@@ -1681,59 +1758,59 @@ var DictionaryDetectionSubTechniqueSchema = z27.enum([
|
|
|
1681
1758
|
"compression",
|
|
1682
1759
|
"threshold"
|
|
1683
1760
|
]);
|
|
1684
|
-
var DictionaryMetaDataDTOSchema =
|
|
1685
|
-
number_of_keywords:
|
|
1686
|
-
original_file_name:
|
|
1687
|
-
original_file_size_in_byte:
|
|
1761
|
+
var DictionaryMetaDataDTOSchema = z28.object({
|
|
1762
|
+
number_of_keywords: z28.number().nullish(),
|
|
1763
|
+
original_file_name: z28.string().nullish(),
|
|
1764
|
+
original_file_size_in_byte: z28.number().nullish()
|
|
1688
1765
|
}).passthrough();
|
|
1689
|
-
var DictionaryTagsSchema =
|
|
1690
|
-
classification:
|
|
1766
|
+
var DictionaryTagsSchema = z28.object({
|
|
1767
|
+
classification: z28.array(DictionaryClassificationSchema).nullish()
|
|
1691
1768
|
}).passthrough();
|
|
1692
|
-
var ResourceModelExtensionSchema =
|
|
1693
|
-
key:
|
|
1694
|
-
value:
|
|
1769
|
+
var ResourceModelExtensionSchema = z28.object({
|
|
1770
|
+
key: z28.string().nullish(),
|
|
1771
|
+
value: z28.string().nullish()
|
|
1695
1772
|
}).passthrough();
|
|
1696
|
-
var DictionaryRequestSchema =
|
|
1773
|
+
var DictionaryRequestSchema = z28.object({
|
|
1697
1774
|
category: DictionaryCategorySchema,
|
|
1698
|
-
name:
|
|
1699
|
-
original_file_name:
|
|
1700
|
-
region_name:
|
|
1701
|
-
description:
|
|
1702
|
-
is_case_sensitive:
|
|
1775
|
+
name: z28.string(),
|
|
1776
|
+
original_file_name: z28.string(),
|
|
1777
|
+
region_name: z28.string(),
|
|
1778
|
+
description: z28.string().optional(),
|
|
1779
|
+
is_case_sensitive: z28.boolean().optional(),
|
|
1703
1780
|
type: DictionaryTypeSchema.optional()
|
|
1704
1781
|
}).passthrough();
|
|
1705
|
-
var DictionaryPatchRequestSchema =
|
|
1782
|
+
var DictionaryPatchRequestSchema = z28.object({
|
|
1706
1783
|
category: DictionaryCategorySchema,
|
|
1707
|
-
name:
|
|
1708
|
-
original_file_name:
|
|
1709
|
-
description: jsonNullable(
|
|
1710
|
-
is_case_sensitive: jsonNullable(
|
|
1711
|
-
region_name: jsonNullable(
|
|
1712
|
-
}).passthrough();
|
|
1713
|
-
var DictionaryResponseSchema =
|
|
1714
|
-
id:
|
|
1715
|
-
name:
|
|
1716
|
-
description:
|
|
1717
|
-
category:
|
|
1718
|
-
region_name:
|
|
1784
|
+
name: z28.string(),
|
|
1785
|
+
original_file_name: z28.string(),
|
|
1786
|
+
description: jsonNullable(z28.string()),
|
|
1787
|
+
is_case_sensitive: jsonNullable(z28.boolean()),
|
|
1788
|
+
region_name: jsonNullable(z28.string())
|
|
1789
|
+
}).passthrough();
|
|
1790
|
+
var DictionaryResponseSchema = z28.object({
|
|
1791
|
+
id: z28.string().nullish(),
|
|
1792
|
+
name: z28.string().nullish(),
|
|
1793
|
+
description: z28.string().nullish(),
|
|
1794
|
+
category: z28.string().nullish(),
|
|
1795
|
+
region_name: z28.string().nullish(),
|
|
1719
1796
|
type: DictionaryTypeSchema.nullish(),
|
|
1720
|
-
is_case_sensitive:
|
|
1721
|
-
is_parent_managed:
|
|
1797
|
+
is_case_sensitive: z28.boolean().nullish(),
|
|
1798
|
+
is_parent_managed: z28.boolean().nullish(),
|
|
1722
1799
|
detection_technique: DictionaryDetectionTechniqueSchema.nullish(),
|
|
1723
1800
|
detection_sub_technique: DictionaryDetectionSubTechniqueSchema.nullish(),
|
|
1724
1801
|
dictionary_metadata: DictionaryMetaDataDTOSchema.nullish(),
|
|
1725
1802
|
/** Keyword list — populated only when `keywords=true` is passed as a query parameter. */
|
|
1726
|
-
keywords:
|
|
1803
|
+
keywords: z28.array(z28.string()).nullish(),
|
|
1727
1804
|
tags: DictionaryTagsSchema.nullish(),
|
|
1728
|
-
attributes:
|
|
1805
|
+
attributes: z28.array(ResourceModelExtensionSchema).nullish(),
|
|
1729
1806
|
audit_metadata: AuditResponseSchema.nullish()
|
|
1730
1807
|
}).passthrough();
|
|
1731
1808
|
var PageDictionaryResponseSchema = pageSchema(DictionaryResponseSchema);
|
|
1732
1809
|
|
|
1733
1810
|
// src/models/dlp-data-pattern.ts
|
|
1734
|
-
import { z as
|
|
1735
|
-
var DataPatternTypeSchema =
|
|
1736
|
-
var DataPatternTechniqueSchema =
|
|
1811
|
+
import { z as z29 } from "zod";
|
|
1812
|
+
var DataPatternTypeSchema = z29.enum(["predefined", "custom", "file_property"]);
|
|
1813
|
+
var DataPatternTechniqueSchema = z29.enum([
|
|
1737
1814
|
"edm",
|
|
1738
1815
|
"document_fingerprint",
|
|
1739
1816
|
"trainable_classifier",
|
|
@@ -1748,75 +1825,75 @@ var DataPatternTechniqueSchema = z28.enum([
|
|
|
1748
1825
|
"pab",
|
|
1749
1826
|
"document_classifier"
|
|
1750
1827
|
]);
|
|
1751
|
-
var DataPatternConfidenceLevelSchema =
|
|
1752
|
-
var DataPatternLicenseTypeSchema =
|
|
1753
|
-
var DataPatternStatusSchema =
|
|
1828
|
+
var DataPatternConfidenceLevelSchema = z29.enum(["low", "medium", "high"]);
|
|
1829
|
+
var DataPatternLicenseTypeSchema = z29.enum(["standard", "enterprise", "essentials"]);
|
|
1830
|
+
var DataPatternStatusSchema = z29.enum([
|
|
1754
1831
|
"active",
|
|
1755
1832
|
"disabled",
|
|
1756
1833
|
"deleted",
|
|
1757
1834
|
"deprecated",
|
|
1758
1835
|
"silent"
|
|
1759
1836
|
]);
|
|
1760
|
-
var ComparisonOperatorTypeSchema =
|
|
1837
|
+
var ComparisonOperatorTypeSchema = z29.enum([
|
|
1761
1838
|
"less_than",
|
|
1762
1839
|
"less_than_or_equal_to",
|
|
1763
1840
|
"greater_than_or_equal_to",
|
|
1764
1841
|
"greater_than",
|
|
1765
1842
|
"equal_to"
|
|
1766
1843
|
]);
|
|
1767
|
-
var WeightedRegexSchema =
|
|
1768
|
-
regex:
|
|
1769
|
-
weight:
|
|
1844
|
+
var WeightedRegexSchema = z29.object({
|
|
1845
|
+
regex: z29.string().min(1),
|
|
1846
|
+
weight: z29.number()
|
|
1770
1847
|
}).passthrough();
|
|
1771
|
-
var MetadataCriterionSchema =
|
|
1848
|
+
var MetadataCriterionSchema = z29.object({
|
|
1772
1849
|
comparisonOperatorType: ComparisonOperatorTypeSchema.nullish(),
|
|
1773
|
-
name:
|
|
1774
|
-
type:
|
|
1775
|
-
value:
|
|
1850
|
+
name: z29.string().nullish(),
|
|
1851
|
+
type: z29.string().nullish(),
|
|
1852
|
+
value: z29.string().nullish()
|
|
1776
1853
|
}).passthrough();
|
|
1777
|
-
var DataPatternDetectionConfigSchema =
|
|
1854
|
+
var DataPatternDetectionConfigSchema = z29.object({
|
|
1778
1855
|
technique: DataPatternTechniqueSchema,
|
|
1779
|
-
supported_confidence_levels:
|
|
1856
|
+
supported_confidence_levels: z29.array(DataPatternConfidenceLevelSchema).nullish()
|
|
1780
1857
|
}).passthrough();
|
|
1781
|
-
var DataPatternMatchingRulesSchema =
|
|
1782
|
-
delimiter:
|
|
1858
|
+
var DataPatternMatchingRulesSchema = z29.object({
|
|
1859
|
+
delimiter: z29.string().nullish(),
|
|
1783
1860
|
/** Proximity window for keyword matching — spec bounds 2..1000 inclusive. */
|
|
1784
|
-
proximity_distance:
|
|
1785
|
-
proximity_keywords:
|
|
1786
|
-
regexes:
|
|
1787
|
-
metadata_criteria:
|
|
1788
|
-
}).passthrough();
|
|
1789
|
-
var DataPatternTagsSchema =
|
|
1790
|
-
classification:
|
|
1791
|
-
compliance:
|
|
1792
|
-
geography:
|
|
1793
|
-
}).passthrough();
|
|
1794
|
-
var DataPatternRequestSchema =
|
|
1795
|
-
name:
|
|
1861
|
+
proximity_distance: z29.number().int().min(2).max(1e3).nullish(),
|
|
1862
|
+
proximity_keywords: z29.array(z29.string()).nullish(),
|
|
1863
|
+
regexes: z29.array(WeightedRegexSchema).nullish(),
|
|
1864
|
+
metadata_criteria: z29.array(MetadataCriterionSchema).nullish()
|
|
1865
|
+
}).passthrough();
|
|
1866
|
+
var DataPatternTagsSchema = z29.object({
|
|
1867
|
+
classification: z29.array(z29.string()).nullish(),
|
|
1868
|
+
compliance: z29.array(z29.string()).nullish(),
|
|
1869
|
+
geography: z29.array(z29.string()).nullish()
|
|
1870
|
+
}).passthrough();
|
|
1871
|
+
var DataPatternRequestSchema = z29.object({
|
|
1872
|
+
name: z29.string().min(1).max(64),
|
|
1796
1873
|
type: DataPatternTypeSchema,
|
|
1797
1874
|
detection_config: DataPatternDetectionConfigSchema,
|
|
1798
|
-
description:
|
|
1875
|
+
description: z29.string().optional(),
|
|
1799
1876
|
matching_rules: DataPatternMatchingRulesSchema.optional(),
|
|
1800
1877
|
tags: DataPatternTagsSchema.optional()
|
|
1801
1878
|
}).passthrough();
|
|
1802
|
-
var DataPatternPatchRequestSchema =
|
|
1803
|
-
name:
|
|
1879
|
+
var DataPatternPatchRequestSchema = z29.object({
|
|
1880
|
+
name: z29.string().min(1).max(64),
|
|
1804
1881
|
type: DataPatternTypeSchema,
|
|
1805
1882
|
detection_config: DataPatternDetectionConfigSchema,
|
|
1806
|
-
description: jsonNullable(
|
|
1883
|
+
description: jsonNullable(z29.string()),
|
|
1807
1884
|
matching_rules: jsonNullable(DataPatternMatchingRulesSchema),
|
|
1808
1885
|
tags: jsonNullable(DataPatternTagsSchema)
|
|
1809
1886
|
}).passthrough();
|
|
1810
|
-
var DataPatternResponseSchema =
|
|
1811
|
-
id:
|
|
1812
|
-
name:
|
|
1813
|
-
description:
|
|
1814
|
-
tenant_id:
|
|
1887
|
+
var DataPatternResponseSchema = z29.object({
|
|
1888
|
+
id: z29.string().nullish(),
|
|
1889
|
+
name: z29.string().nullish(),
|
|
1890
|
+
description: z29.string().nullish(),
|
|
1891
|
+
tenant_id: z29.string().nullish(),
|
|
1815
1892
|
type: DataPatternTypeSchema.nullish(),
|
|
1816
1893
|
status: DataPatternStatusSchema.nullish(),
|
|
1817
1894
|
license_type: DataPatternLicenseTypeSchema.nullish(),
|
|
1818
|
-
is_parent_managed:
|
|
1819
|
-
version:
|
|
1895
|
+
is_parent_managed: z29.boolean().nullish(),
|
|
1896
|
+
version: z29.number().nullish(),
|
|
1820
1897
|
detection_config: DataPatternDetectionConfigSchema.nullish(),
|
|
1821
1898
|
matching_rules: DataPatternMatchingRulesSchema.nullish(),
|
|
1822
1899
|
tags: DataPatternTagsSchema.nullish(),
|
|
@@ -1825,9 +1902,9 @@ var DataPatternResponseSchema = z28.object({
|
|
|
1825
1902
|
var PageDataPatternResponseSchema = pageSchema(DataPatternResponseSchema);
|
|
1826
1903
|
|
|
1827
1904
|
// src/models/dlp-data-profile.ts
|
|
1828
|
-
import { z as
|
|
1829
|
-
var ExpressionOperatorTypeSchema =
|
|
1830
|
-
var RuleItemDetectionTechniqueSchema =
|
|
1905
|
+
import { z as z30 } from "zod";
|
|
1906
|
+
var ExpressionOperatorTypeSchema = z30.enum(["and", "or", "not", "and_not", "or_not"]);
|
|
1907
|
+
var RuleItemDetectionTechniqueSchema = z30.enum([
|
|
1831
1908
|
"edm",
|
|
1832
1909
|
"document_fingerprint",
|
|
1833
1910
|
"trainable_classifier",
|
|
@@ -1842,200 +1919,200 @@ var RuleItemDetectionTechniqueSchema = z29.enum([
|
|
|
1842
1919
|
"pab",
|
|
1843
1920
|
"document_classifier"
|
|
1844
1921
|
]);
|
|
1845
|
-
var RuleItemMatchTypeSchema =
|
|
1846
|
-
var RuleItemOccurrenceOperatorTypeSchema =
|
|
1922
|
+
var RuleItemMatchTypeSchema = z30.enum(["include", "exclude"]);
|
|
1923
|
+
var RuleItemOccurrenceOperatorTypeSchema = z30.enum([
|
|
1847
1924
|
"any",
|
|
1848
1925
|
"less_than_equal_to",
|
|
1849
1926
|
"more_than_equal_to",
|
|
1850
1927
|
"between"
|
|
1851
1928
|
]);
|
|
1852
|
-
var RuleItemConfidenceLevelSchema =
|
|
1853
|
-
var RuleItemEdmMatchCriteriaSchema =
|
|
1854
|
-
var DataProfileTypeSchema =
|
|
1855
|
-
var DataProfileStatusSchema =
|
|
1856
|
-
var DataProfileSubtypeSchema =
|
|
1857
|
-
var DetectionRuleItemSchema =
|
|
1929
|
+
var RuleItemConfidenceLevelSchema = z30.enum(["low", "medium", "high"]);
|
|
1930
|
+
var RuleItemEdmMatchCriteriaSchema = z30.enum(["any", "all"]);
|
|
1931
|
+
var DataProfileTypeSchema = z30.enum(["basic", "advanced"]);
|
|
1932
|
+
var DataProfileStatusSchema = z30.enum(["active", "disabled", "deleted"]);
|
|
1933
|
+
var DataProfileSubtypeSchema = z30.enum(["custom", "predefined"]);
|
|
1934
|
+
var DetectionRuleItemSchema = z30.object({
|
|
1858
1935
|
detection_technique: RuleItemDetectionTechniqueSchema,
|
|
1859
|
-
id:
|
|
1860
|
-
name:
|
|
1861
|
-
description:
|
|
1862
|
-
version:
|
|
1936
|
+
id: z30.string().nullish(),
|
|
1937
|
+
name: z30.string().nullish(),
|
|
1938
|
+
description: z30.string().nullish(),
|
|
1939
|
+
version: z30.number().int().nullish(),
|
|
1863
1940
|
match_type: RuleItemMatchTypeSchema.nullish(),
|
|
1864
|
-
by_unique_count:
|
|
1941
|
+
by_unique_count: z30.boolean().nullish(),
|
|
1865
1942
|
confidence_level: RuleItemConfidenceLevelSchema.nullish(),
|
|
1866
|
-
supported_confidence_levels:
|
|
1867
|
-
occurrence_count:
|
|
1868
|
-
occurrence_high:
|
|
1869
|
-
occurrence_low:
|
|
1943
|
+
supported_confidence_levels: z30.array(RuleItemConfidenceLevelSchema).nullish(),
|
|
1944
|
+
occurrence_count: z30.number().int().nullish(),
|
|
1945
|
+
occurrence_high: z30.number().int().nullish(),
|
|
1946
|
+
occurrence_low: z30.number().int().nullish(),
|
|
1870
1947
|
occurrence_operator_type: RuleItemOccurrenceOperatorTypeSchema.nullish(),
|
|
1871
1948
|
// dictionary + document-type fields
|
|
1872
|
-
score:
|
|
1873
|
-
score_high:
|
|
1874
|
-
score_low:
|
|
1949
|
+
score: z30.number().int().nullish(),
|
|
1950
|
+
score_high: z30.number().int().nullish(),
|
|
1951
|
+
score_low: z30.number().int().nullish(),
|
|
1875
1952
|
// edm fields
|
|
1876
|
-
edm_dataset_id:
|
|
1877
|
-
primary_fields:
|
|
1953
|
+
edm_dataset_id: z30.string().nullish(),
|
|
1954
|
+
primary_fields: z30.array(z30.string()).nullish(),
|
|
1878
1955
|
primary_match_criteria: RuleItemEdmMatchCriteriaSchema.nullish(),
|
|
1879
|
-
primary_match_any_count:
|
|
1880
|
-
secondary_fields:
|
|
1956
|
+
primary_match_any_count: z30.number().int().nullish(),
|
|
1957
|
+
secondary_fields: z30.array(z30.string()).nullish(),
|
|
1881
1958
|
secondary_match_criteria: RuleItemEdmMatchCriteriaSchema.nullish(),
|
|
1882
|
-
secondary_match_any_count:
|
|
1959
|
+
secondary_match_any_count: z30.number().int().nullish()
|
|
1883
1960
|
}).passthrough();
|
|
1884
|
-
var ExpressionTreeNodeSchema =
|
|
1885
|
-
() =>
|
|
1961
|
+
var ExpressionTreeNodeSchema = z30.lazy(
|
|
1962
|
+
() => z30.object({
|
|
1886
1963
|
operator_type: ExpressionOperatorTypeSchema.nullish(),
|
|
1887
1964
|
rule_item: DetectionRuleItemSchema.nullish(),
|
|
1888
|
-
sub_expressions:
|
|
1965
|
+
sub_expressions: z30.array(ExpressionTreeNodeSchema).nullish()
|
|
1889
1966
|
}).passthrough()
|
|
1890
1967
|
);
|
|
1891
|
-
var MultiProfileDataNodeSchema =
|
|
1892
|
-
data_profile_ids:
|
|
1968
|
+
var MultiProfileDataNodeSchema = z30.object({
|
|
1969
|
+
data_profile_ids: z30.array(z30.number()).nullish(),
|
|
1893
1970
|
operator_type: ExpressionOperatorTypeSchema.nullish()
|
|
1894
1971
|
}).passthrough();
|
|
1895
|
-
var DefaultTreeDetectionRuleSchema =
|
|
1896
|
-
rule_type:
|
|
1972
|
+
var DefaultTreeDetectionRuleSchema = z30.object({
|
|
1973
|
+
rule_type: z30.literal("expression_tree"),
|
|
1897
1974
|
expression_tree: ExpressionTreeNodeSchema.nullish()
|
|
1898
1975
|
}).passthrough();
|
|
1899
|
-
var MultiProfileDetectionRuleSchema =
|
|
1900
|
-
rule_type:
|
|
1976
|
+
var MultiProfileDetectionRuleSchema = z30.object({
|
|
1977
|
+
rule_type: z30.literal("multi_profile"),
|
|
1901
1978
|
multi_profile: MultiProfileDataNodeSchema.nullish()
|
|
1902
1979
|
}).passthrough();
|
|
1903
|
-
var DetectionRuleSchema =
|
|
1980
|
+
var DetectionRuleSchema = z30.discriminatedUnion("rule_type", [
|
|
1904
1981
|
DefaultTreeDetectionRuleSchema,
|
|
1905
1982
|
MultiProfileDetectionRuleSchema
|
|
1906
1983
|
]);
|
|
1907
|
-
var AdvancedDataProfileRequestSchema =
|
|
1908
|
-
name:
|
|
1909
|
-
detection_rules:
|
|
1910
|
-
description:
|
|
1911
|
-
is_granular_data_profile:
|
|
1984
|
+
var AdvancedDataProfileRequestSchema = z30.object({
|
|
1985
|
+
name: z30.string().min(1).max(64),
|
|
1986
|
+
detection_rules: z30.array(DetectionRuleSchema),
|
|
1987
|
+
description: z30.string().optional(),
|
|
1988
|
+
is_granular_data_profile: z30.boolean().optional()
|
|
1912
1989
|
}).passthrough();
|
|
1913
|
-
var DataProfilePatchRequestSchema =
|
|
1914
|
-
name:
|
|
1990
|
+
var DataProfilePatchRequestSchema = z30.object({
|
|
1991
|
+
name: z30.string(),
|
|
1915
1992
|
profile_type: DataProfileTypeSchema,
|
|
1916
|
-
description: jsonNullable(
|
|
1917
|
-
detection_rules: jsonNullable(
|
|
1993
|
+
description: jsonNullable(z30.string()),
|
|
1994
|
+
detection_rules: jsonNullable(z30.array(DetectionRuleSchema))
|
|
1918
1995
|
}).passthrough();
|
|
1919
|
-
var DataProfileResponseSchema =
|
|
1920
|
-
id:
|
|
1921
|
-
name:
|
|
1922
|
-
description:
|
|
1923
|
-
tenant_id:
|
|
1996
|
+
var DataProfileResponseSchema = z30.object({
|
|
1997
|
+
id: z30.string().nullish(),
|
|
1998
|
+
name: z30.string().nullish(),
|
|
1999
|
+
description: z30.string().nullish(),
|
|
2000
|
+
tenant_id: z30.string().nullish(),
|
|
1924
2001
|
type: DataProfileSubtypeSchema.nullish(),
|
|
1925
2002
|
profile_status: DataProfileStatusSchema.nullish(),
|
|
1926
2003
|
profile_type: DataProfileTypeSchema.nullish(),
|
|
1927
|
-
is_granular_data_profile:
|
|
1928
|
-
is_parent_managed:
|
|
1929
|
-
version:
|
|
1930
|
-
advance_data_patterns_rule_request:
|
|
1931
|
-
detection_rules:
|
|
2004
|
+
is_granular_data_profile: z30.boolean().nullish(),
|
|
2005
|
+
is_parent_managed: z30.boolean().nullish(),
|
|
2006
|
+
version: z30.number().int().nullish(),
|
|
2007
|
+
advance_data_patterns_rule_request: z30.array(z30.string()).nullish(),
|
|
2008
|
+
detection_rules: z30.array(DetectionRuleSchema).nullish(),
|
|
1932
2009
|
audit_metadata: AuditResponseSchema.nullish()
|
|
1933
2010
|
}).passthrough();
|
|
1934
2011
|
var PageDataProfileResponseSchema = pageSchema(DataProfileResponseSchema);
|
|
1935
2012
|
|
|
1936
2013
|
// src/models/dlp-data-filtering-profile.ts
|
|
1937
|
-
import { z as
|
|
1938
|
-
var AppExclusionSchema =
|
|
1939
|
-
app_id:
|
|
1940
|
-
app_name:
|
|
1941
|
-
type:
|
|
2014
|
+
import { z as z31 } from "zod";
|
|
2015
|
+
var AppExclusionSchema = z31.object({
|
|
2016
|
+
app_id: z31.string().nullish(),
|
|
2017
|
+
app_name: z31.string().nullish(),
|
|
2018
|
+
type: z31.string().nullish()
|
|
1942
2019
|
}).passthrough();
|
|
1943
|
-
var URLExclusionSchema =
|
|
1944
|
-
type:
|
|
1945
|
-
url_id:
|
|
1946
|
-
url_name:
|
|
2020
|
+
var URLExclusionSchema = z31.object({
|
|
2021
|
+
type: z31.string().nullish(),
|
|
2022
|
+
url_id: z31.string().nullish(),
|
|
2023
|
+
url_name: z31.string().nullish()
|
|
1947
2024
|
}).passthrough();
|
|
1948
|
-
var ExclusionsSchema =
|
|
1949
|
-
app_exclusion_list:
|
|
1950
|
-
url_exclusion_list:
|
|
2025
|
+
var ExclusionsSchema = z31.object({
|
|
2026
|
+
app_exclusion_list: z31.array(AppExclusionSchema).nullish(),
|
|
2027
|
+
url_exclusion_list: z31.array(URLExclusionSchema).nullish(),
|
|
1951
2028
|
/**
|
|
1952
2029
|
* Map of category-name → string-array. `additionalProperties: { type: array of string }`
|
|
1953
2030
|
* in the OpenAPI spec; modeled here as `z.record(z.array(z.string()))`.
|
|
1954
2031
|
*/
|
|
1955
|
-
exclusion_list:
|
|
2032
|
+
exclusion_list: z31.record(z31.array(z31.string())).nullish()
|
|
1956
2033
|
}).passthrough();
|
|
1957
|
-
var SourceAttributesSchema =
|
|
1958
|
-
match_any:
|
|
1959
|
-
user_group_ids:
|
|
1960
|
-
user_ids:
|
|
2034
|
+
var SourceAttributesSchema = z31.object({
|
|
2035
|
+
match_any: z31.boolean().nullish(),
|
|
2036
|
+
user_group_ids: z31.array(z31.string()).nullish(),
|
|
2037
|
+
user_ids: z31.array(z31.string()).nullish()
|
|
1961
2038
|
}).passthrough();
|
|
1962
|
-
var DestinationAttributesSchema =
|
|
1963
|
-
match_any:
|
|
1964
|
-
app_ids:
|
|
1965
|
-
url_patterns:
|
|
2039
|
+
var DestinationAttributesSchema = z31.object({
|
|
2040
|
+
match_any: z31.boolean().nullish(),
|
|
2041
|
+
app_ids: z31.array(z31.string()).nullish(),
|
|
2042
|
+
url_patterns: z31.array(z31.string()).nullish()
|
|
1966
2043
|
}).passthrough();
|
|
1967
|
-
var ExceptionRuleDTOSchema =
|
|
1968
|
-
id:
|
|
1969
|
-
action:
|
|
1970
|
-
log_severity:
|
|
2044
|
+
var ExceptionRuleDTOSchema = z31.object({
|
|
2045
|
+
id: z31.string().nullish(),
|
|
2046
|
+
action: z31.enum(["ALLOW", "ALERT", "BLOCK"]).nullish(),
|
|
2047
|
+
log_severity: z31.enum(["INFORMATIONAL", "LOW", "MEDIUM", "HIGH", "CRITICAL"]).nullish(),
|
|
1971
2048
|
/**
|
|
1972
2049
|
* `int64` per spec; declared as `z.number()` since JS numbers cover any realistic
|
|
1973
2050
|
* data_profile_id and the SDK never round-trips these unmodified.
|
|
1974
2051
|
*/
|
|
1975
|
-
data_profile_ids:
|
|
2052
|
+
data_profile_ids: z31.array(z31.number()).nullish(),
|
|
1976
2053
|
destination_attributes: DestinationAttributesSchema.nullish(),
|
|
1977
2054
|
source_attributes: SourceAttributesSchema.nullish()
|
|
1978
2055
|
}).passthrough();
|
|
1979
|
-
var DataFilteringRuleDTOSchema =
|
|
1980
|
-
action:
|
|
1981
|
-
response_page:
|
|
1982
|
-
show_rsp_page:
|
|
1983
|
-
}).passthrough();
|
|
1984
|
-
var DataFilteringDetailsSchema =
|
|
1985
|
-
action:
|
|
1986
|
-
dataProfileId:
|
|
1987
|
-
direction:
|
|
1988
|
-
euc_template_id:
|
|
1989
|
-
fileBased:
|
|
1990
|
-
fileTypes:
|
|
1991
|
-
is_end_user_coaching_enabled:
|
|
1992
|
-
logSeverity:
|
|
1993
|
-
nonFileBased:
|
|
1994
|
-
scanType:
|
|
1995
|
-
}).passthrough();
|
|
1996
|
-
var DataFilteringProfileRequestSchema =
|
|
1997
|
-
file_based:
|
|
1998
|
-
non_file_based:
|
|
1999
|
-
description:
|
|
2000
|
-
direction:
|
|
2001
|
-
log_severity:
|
|
2002
|
-
scan_type:
|
|
2056
|
+
var DataFilteringRuleDTOSchema = z31.object({
|
|
2057
|
+
action: z31.string().nullish(),
|
|
2058
|
+
response_page: z31.string().nullish(),
|
|
2059
|
+
show_rsp_page: z31.string().nullish()
|
|
2060
|
+
}).passthrough();
|
|
2061
|
+
var DataFilteringDetailsSchema = z31.object({
|
|
2062
|
+
action: z31.string().nullish(),
|
|
2063
|
+
dataProfileId: z31.number().nullish(),
|
|
2064
|
+
direction: z31.string().nullish(),
|
|
2065
|
+
euc_template_id: z31.string().nullish(),
|
|
2066
|
+
fileBased: z31.string().nullish(),
|
|
2067
|
+
fileTypes: z31.array(z31.string()).nullish(),
|
|
2068
|
+
is_end_user_coaching_enabled: z31.boolean().nullish(),
|
|
2069
|
+
logSeverity: z31.string().nullish(),
|
|
2070
|
+
nonFileBased: z31.string().nullish(),
|
|
2071
|
+
scanType: z31.string().nullish()
|
|
2072
|
+
}).passthrough();
|
|
2073
|
+
var DataFilteringProfileRequestSchema = z31.object({
|
|
2074
|
+
file_based: z31.boolean(),
|
|
2075
|
+
non_file_based: z31.boolean(),
|
|
2076
|
+
description: z31.string().optional(),
|
|
2077
|
+
direction: z31.enum(["BOTH", "UPLOAD", "DOWNLOAD"]).optional(),
|
|
2078
|
+
log_severity: z31.enum(["CRITICAL", "HIGH", "MEDIUM", "LOW", "INFORMATIONAL"]).optional(),
|
|
2079
|
+
scan_type: z31.enum(["include", "exclude"]).optional(),
|
|
2003
2080
|
/**
|
|
2004
2081
|
* `int64` per spec; declared as `z.number()`. JS will lose precision above 2^53 but
|
|
2005
2082
|
* real-world IDs stay well under that ceiling.
|
|
2006
2083
|
*/
|
|
2007
|
-
data_profile_id:
|
|
2008
|
-
euc_template_id:
|
|
2009
|
-
is_end_user_coaching_enabled:
|
|
2010
|
-
is_granular_profile:
|
|
2011
|
-
file_type:
|
|
2012
|
-
criteria_details:
|
|
2013
|
-
exception_rules:
|
|
2084
|
+
data_profile_id: z31.number().optional(),
|
|
2085
|
+
euc_template_id: z31.string().optional(),
|
|
2086
|
+
is_end_user_coaching_enabled: z31.boolean().optional(),
|
|
2087
|
+
is_granular_profile: z31.boolean().optional(),
|
|
2088
|
+
file_type: z31.array(z31.string()).optional(),
|
|
2089
|
+
criteria_details: z31.array(DataFilteringDetailsSchema).optional(),
|
|
2090
|
+
exception_rules: z31.array(ExceptionRuleDTOSchema).optional(),
|
|
2014
2091
|
exclusions: ExclusionsSchema.optional(),
|
|
2015
2092
|
rule1: DataFilteringRuleDTOSchema.optional(),
|
|
2016
2093
|
rule2: DataFilteringRuleDTOSchema.optional()
|
|
2017
2094
|
}).passthrough();
|
|
2018
|
-
var DataFilteringProfileResponseSchema =
|
|
2019
|
-
id:
|
|
2020
|
-
name:
|
|
2021
|
-
description:
|
|
2022
|
-
tenant_id:
|
|
2023
|
-
type:
|
|
2024
|
-
data_profile_id:
|
|
2025
|
-
direction:
|
|
2026
|
-
file_based:
|
|
2027
|
-
non_file_based:
|
|
2028
|
-
log_severity:
|
|
2029
|
-
scan_type:
|
|
2030
|
-
is_end_user_coaching_enabled:
|
|
2031
|
-
is_granular_profile:
|
|
2032
|
-
is_parent_managed:
|
|
2033
|
-
euc_template_id:
|
|
2034
|
-
version:
|
|
2035
|
-
file_type:
|
|
2095
|
+
var DataFilteringProfileResponseSchema = z31.object({
|
|
2096
|
+
id: z31.string().nullish(),
|
|
2097
|
+
name: z31.string().nullish(),
|
|
2098
|
+
description: z31.string().nullish(),
|
|
2099
|
+
tenant_id: z31.string().nullish(),
|
|
2100
|
+
type: z31.string().nullish(),
|
|
2101
|
+
data_profile_id: z31.number().nullish(),
|
|
2102
|
+
direction: z31.string().nullish(),
|
|
2103
|
+
file_based: z31.boolean().nullish(),
|
|
2104
|
+
non_file_based: z31.boolean().nullish(),
|
|
2105
|
+
log_severity: z31.string().nullish(),
|
|
2106
|
+
scan_type: z31.enum(["include", "exclude"]).nullish(),
|
|
2107
|
+
is_end_user_coaching_enabled: z31.boolean().nullish(),
|
|
2108
|
+
is_granular_profile: z31.boolean().nullish(),
|
|
2109
|
+
is_parent_managed: z31.boolean().nullish(),
|
|
2110
|
+
euc_template_id: z31.string().nullish(),
|
|
2111
|
+
version: z31.number().nullish(),
|
|
2112
|
+
file_type: z31.array(z31.string()).nullish(),
|
|
2036
2113
|
audit_metadata: AuditResponseSchema.nullish(),
|
|
2037
|
-
criteria_details:
|
|
2038
|
-
exception_rules:
|
|
2114
|
+
criteria_details: z31.array(DataFilteringDetailsSchema).nullish(),
|
|
2115
|
+
exception_rules: z31.array(ExceptionRuleDTOSchema).nullish(),
|
|
2039
2116
|
exclusions: ExclusionsSchema.nullish(),
|
|
2040
2117
|
rule1: DataFilteringRuleDTOSchema.nullish(),
|
|
2041
2118
|
rule2: DataFilteringRuleDTOSchema.nullish()
|
|
@@ -2174,240 +2251,240 @@ var RuleFieldValueKey = {
|
|
|
2174
2251
|
};
|
|
2175
2252
|
|
|
2176
2253
|
// src/models/model-security.ts
|
|
2177
|
-
import { z as
|
|
2178
|
-
var ModelSecurityPaginationSchema =
|
|
2179
|
-
total_items:
|
|
2254
|
+
import { z as z32 } from "zod";
|
|
2255
|
+
var ModelSecurityPaginationSchema = z32.object({
|
|
2256
|
+
total_items: z32.number().int().nullable().optional()
|
|
2180
2257
|
}).passthrough();
|
|
2181
|
-
var LabelSchema =
|
|
2182
|
-
key:
|
|
2183
|
-
value:
|
|
2258
|
+
var LabelSchema = z32.object({
|
|
2259
|
+
key: z32.string(),
|
|
2260
|
+
value: z32.string()
|
|
2184
2261
|
}).passthrough();
|
|
2185
|
-
var LabelsCreateRequestSchema =
|
|
2186
|
-
labels:
|
|
2262
|
+
var LabelsCreateRequestSchema = z32.object({
|
|
2263
|
+
labels: z32.array(LabelSchema)
|
|
2187
2264
|
}).passthrough();
|
|
2188
|
-
var LabelsResponseSchema =
|
|
2189
|
-
var LabelKeyListSchema =
|
|
2265
|
+
var LabelsResponseSchema = z32.object({}).passthrough();
|
|
2266
|
+
var LabelKeyListSchema = z32.object({
|
|
2190
2267
|
pagination: ModelSecurityPaginationSchema,
|
|
2191
|
-
keys:
|
|
2268
|
+
keys: z32.array(z32.string())
|
|
2192
2269
|
}).passthrough();
|
|
2193
|
-
var LabelValueListSchema =
|
|
2270
|
+
var LabelValueListSchema = z32.object({
|
|
2194
2271
|
pagination: ModelSecurityPaginationSchema,
|
|
2195
|
-
values:
|
|
2196
|
-
}).passthrough();
|
|
2197
|
-
var EvalSummarySchema =
|
|
2198
|
-
rules_failed:
|
|
2199
|
-
rules_passed:
|
|
2200
|
-
total_rules:
|
|
2201
|
-
}).passthrough();
|
|
2202
|
-
var ModelScanIssueSchema =
|
|
2203
|
-
description:
|
|
2204
|
-
source:
|
|
2205
|
-
threat:
|
|
2206
|
-
module:
|
|
2207
|
-
operator:
|
|
2208
|
-
}).passthrough();
|
|
2209
|
-
var FileScanDataSchema =
|
|
2210
|
-
file_path:
|
|
2211
|
-
modelscan_status:
|
|
2212
|
-
blob_id:
|
|
2213
|
-
error_message:
|
|
2214
|
-
formats:
|
|
2215
|
-
issues_detected:
|
|
2216
|
-
}).passthrough();
|
|
2217
|
-
var ScanDetailsSchema =
|
|
2218
|
-
scanner_version:
|
|
2219
|
-
time_started:
|
|
2220
|
-
files:
|
|
2221
|
-
total_files_scanned:
|
|
2222
|
-
total_files_skipped:
|
|
2223
|
-
model_formats:
|
|
2224
|
-
model_size_bytes:
|
|
2225
|
-
scan_duration_ms:
|
|
2226
|
-
error_code:
|
|
2227
|
-
error_message:
|
|
2228
|
-
}).passthrough();
|
|
2229
|
-
var ScanCreateRequestSchema =
|
|
2230
|
-
model_uri:
|
|
2231
|
-
security_group_uuid:
|
|
2232
|
-
scan_origin:
|
|
2233
|
-
allow_patterns:
|
|
2234
|
-
ignore_patterns:
|
|
2235
|
-
labels:
|
|
2236
|
-
model_author:
|
|
2237
|
-
model_name:
|
|
2238
|
-
model_version:
|
|
2272
|
+
values: z32.array(z32.string())
|
|
2273
|
+
}).passthrough();
|
|
2274
|
+
var EvalSummarySchema = z32.object({
|
|
2275
|
+
rules_failed: z32.number().int().optional().default(0),
|
|
2276
|
+
rules_passed: z32.number().int().optional().default(0),
|
|
2277
|
+
total_rules: z32.number().int().optional().default(0)
|
|
2278
|
+
}).passthrough();
|
|
2279
|
+
var ModelScanIssueSchema = z32.object({
|
|
2280
|
+
description: z32.string(),
|
|
2281
|
+
source: z32.string(),
|
|
2282
|
+
threat: z32.string().nullable().optional(),
|
|
2283
|
+
module: z32.string().nullable().optional(),
|
|
2284
|
+
operator: z32.string().nullable().optional()
|
|
2285
|
+
}).passthrough();
|
|
2286
|
+
var FileScanDataSchema = z32.object({
|
|
2287
|
+
file_path: z32.string(),
|
|
2288
|
+
modelscan_status: z32.string(),
|
|
2289
|
+
blob_id: z32.string(),
|
|
2290
|
+
error_message: z32.string().nullable().optional(),
|
|
2291
|
+
formats: z32.array(z32.string()).nullable().optional(),
|
|
2292
|
+
issues_detected: z32.array(ModelScanIssueSchema).nullable().optional()
|
|
2293
|
+
}).passthrough();
|
|
2294
|
+
var ScanDetailsSchema = z32.object({
|
|
2295
|
+
scanner_version: z32.string(),
|
|
2296
|
+
time_started: z32.string(),
|
|
2297
|
+
files: z32.array(FileScanDataSchema),
|
|
2298
|
+
total_files_scanned: z32.number().int(),
|
|
2299
|
+
total_files_skipped: z32.number().int(),
|
|
2300
|
+
model_formats: z32.array(z32.string()),
|
|
2301
|
+
model_size_bytes: z32.number().int(),
|
|
2302
|
+
scan_duration_ms: z32.number().int(),
|
|
2303
|
+
error_code: z32.string().nullable().optional(),
|
|
2304
|
+
error_message: z32.string().nullable().optional()
|
|
2305
|
+
}).passthrough();
|
|
2306
|
+
var ScanCreateRequestSchema = z32.object({
|
|
2307
|
+
model_uri: z32.string(),
|
|
2308
|
+
security_group_uuid: z32.string(),
|
|
2309
|
+
scan_origin: z32.string(),
|
|
2310
|
+
allow_patterns: z32.array(z32.string()).nullable().optional(),
|
|
2311
|
+
ignore_patterns: z32.array(z32.string()).nullable().optional(),
|
|
2312
|
+
labels: z32.array(LabelSchema).nullable().optional(),
|
|
2313
|
+
model_author: z32.string().nullable().optional(),
|
|
2314
|
+
model_name: z32.string().nullable().optional(),
|
|
2315
|
+
model_version: z32.string().nullable().optional(),
|
|
2239
2316
|
scan_details: ScanDetailsSchema.nullable().optional()
|
|
2240
2317
|
}).passthrough();
|
|
2241
|
-
var ScanBaseResponseSchema =
|
|
2242
|
-
uuid:
|
|
2243
|
-
tsg_id:
|
|
2244
|
-
created_at:
|
|
2245
|
-
updated_at:
|
|
2246
|
-
model_uri:
|
|
2247
|
-
owner:
|
|
2248
|
-
scan_origin:
|
|
2249
|
-
security_group_uuid:
|
|
2250
|
-
security_group_name:
|
|
2251
|
-
model_version_uuid:
|
|
2252
|
-
eval_outcome:
|
|
2253
|
-
source_type:
|
|
2254
|
-
created_by:
|
|
2255
|
-
enabled_rule_count_snapshot:
|
|
2256
|
-
error_code:
|
|
2257
|
-
error_message:
|
|
2318
|
+
var ScanBaseResponseSchema = z32.object({
|
|
2319
|
+
uuid: z32.string(),
|
|
2320
|
+
tsg_id: z32.string(),
|
|
2321
|
+
created_at: z32.string(),
|
|
2322
|
+
updated_at: z32.string(),
|
|
2323
|
+
model_uri: z32.string(),
|
|
2324
|
+
owner: z32.string(),
|
|
2325
|
+
scan_origin: z32.string(),
|
|
2326
|
+
security_group_uuid: z32.string(),
|
|
2327
|
+
security_group_name: z32.string(),
|
|
2328
|
+
model_version_uuid: z32.string(),
|
|
2329
|
+
eval_outcome: z32.string(),
|
|
2330
|
+
source_type: z32.string(),
|
|
2331
|
+
created_by: z32.string().nullable().optional(),
|
|
2332
|
+
enabled_rule_count_snapshot: z32.number().int().nullable().optional(),
|
|
2333
|
+
error_code: z32.string().nullable().optional(),
|
|
2334
|
+
error_message: z32.string().nullable().optional(),
|
|
2258
2335
|
eval_summary: EvalSummarySchema.nullable().optional(),
|
|
2259
|
-
labels:
|
|
2260
|
-
model_formats:
|
|
2261
|
-
scanner_version:
|
|
2262
|
-
time_started:
|
|
2263
|
-
total_files_scanned:
|
|
2264
|
-
total_files_skipped:
|
|
2265
|
-
}).passthrough();
|
|
2266
|
-
var ScanListSchema =
|
|
2336
|
+
labels: z32.array(LabelSchema).optional(),
|
|
2337
|
+
model_formats: z32.array(z32.string()).nullable().optional(),
|
|
2338
|
+
scanner_version: z32.string().nullable().optional(),
|
|
2339
|
+
time_started: z32.string().nullable().optional(),
|
|
2340
|
+
total_files_scanned: z32.number().int().nullable().optional(),
|
|
2341
|
+
total_files_skipped: z32.number().int().nullable().optional()
|
|
2342
|
+
}).passthrough();
|
|
2343
|
+
var ScanListSchema = z32.object({
|
|
2267
2344
|
pagination: ModelSecurityPaginationSchema,
|
|
2268
|
-
scans:
|
|
2269
|
-
}).passthrough();
|
|
2270
|
-
var FileResponseSchema =
|
|
2271
|
-
uuid:
|
|
2272
|
-
tsg_id:
|
|
2273
|
-
created_at:
|
|
2274
|
-
updated_at:
|
|
2275
|
-
path:
|
|
2276
|
-
parent_path:
|
|
2277
|
-
type:
|
|
2278
|
-
result:
|
|
2279
|
-
model_version_uuid:
|
|
2280
|
-
blob_id:
|
|
2281
|
-
formats:
|
|
2282
|
-
scan_uuid:
|
|
2283
|
-
}).passthrough();
|
|
2284
|
-
var FileListSchema =
|
|
2345
|
+
scans: z32.array(ScanBaseResponseSchema)
|
|
2346
|
+
}).passthrough();
|
|
2347
|
+
var FileResponseSchema = z32.object({
|
|
2348
|
+
uuid: z32.string(),
|
|
2349
|
+
tsg_id: z32.string(),
|
|
2350
|
+
created_at: z32.string(),
|
|
2351
|
+
updated_at: z32.string(),
|
|
2352
|
+
path: z32.string(),
|
|
2353
|
+
parent_path: z32.string(),
|
|
2354
|
+
type: z32.string(),
|
|
2355
|
+
result: z32.string(),
|
|
2356
|
+
model_version_uuid: z32.string(),
|
|
2357
|
+
blob_id: z32.string().nullable().optional(),
|
|
2358
|
+
formats: z32.array(z32.string()).nullable().optional(),
|
|
2359
|
+
scan_uuid: z32.string().nullable().optional()
|
|
2360
|
+
}).passthrough();
|
|
2361
|
+
var FileListSchema = z32.object({
|
|
2285
2362
|
pagination: ModelSecurityPaginationSchema,
|
|
2286
|
-
files:
|
|
2287
|
-
}).passthrough();
|
|
2288
|
-
var RuleEvaluationResponseSchema =
|
|
2289
|
-
uuid:
|
|
2290
|
-
tsg_id:
|
|
2291
|
-
created_at:
|
|
2292
|
-
updated_at:
|
|
2293
|
-
result:
|
|
2294
|
-
violation_count:
|
|
2295
|
-
rule_instance_uuid:
|
|
2296
|
-
scan_uuid:
|
|
2297
|
-
rule_name:
|
|
2298
|
-
rule_description:
|
|
2299
|
-
rule_instance_state:
|
|
2300
|
-
}).passthrough();
|
|
2301
|
-
var RuleEvaluationListSchema =
|
|
2363
|
+
files: z32.array(FileResponseSchema)
|
|
2364
|
+
}).passthrough();
|
|
2365
|
+
var RuleEvaluationResponseSchema = z32.object({
|
|
2366
|
+
uuid: z32.string(),
|
|
2367
|
+
tsg_id: z32.string(),
|
|
2368
|
+
created_at: z32.string(),
|
|
2369
|
+
updated_at: z32.string(),
|
|
2370
|
+
result: z32.string(),
|
|
2371
|
+
violation_count: z32.number().int(),
|
|
2372
|
+
rule_instance_uuid: z32.string(),
|
|
2373
|
+
scan_uuid: z32.string(),
|
|
2374
|
+
rule_name: z32.string(),
|
|
2375
|
+
rule_description: z32.string(),
|
|
2376
|
+
rule_instance_state: z32.string()
|
|
2377
|
+
}).passthrough();
|
|
2378
|
+
var RuleEvaluationListSchema = z32.object({
|
|
2302
2379
|
pagination: ModelSecurityPaginationSchema,
|
|
2303
|
-
evaluations:
|
|
2304
|
-
}).passthrough();
|
|
2305
|
-
var ViolationResponseSchema =
|
|
2306
|
-
uuid:
|
|
2307
|
-
tsg_id:
|
|
2308
|
-
created_at:
|
|
2309
|
-
updated_at:
|
|
2310
|
-
description:
|
|
2311
|
-
rule_instance_uuid:
|
|
2312
|
-
rule_name:
|
|
2313
|
-
rule_description:
|
|
2314
|
-
rule_instance_state:
|
|
2315
|
-
file:
|
|
2316
|
-
hash:
|
|
2317
|
-
module:
|
|
2318
|
-
operator:
|
|
2319
|
-
threat:
|
|
2320
|
-
threat_description:
|
|
2321
|
-
}).passthrough();
|
|
2322
|
-
var ViolationListSchema =
|
|
2380
|
+
evaluations: z32.array(RuleEvaluationResponseSchema)
|
|
2381
|
+
}).passthrough();
|
|
2382
|
+
var ViolationResponseSchema = z32.object({
|
|
2383
|
+
uuid: z32.string(),
|
|
2384
|
+
tsg_id: z32.string(),
|
|
2385
|
+
created_at: z32.string(),
|
|
2386
|
+
updated_at: z32.string(),
|
|
2387
|
+
description: z32.string(),
|
|
2388
|
+
rule_instance_uuid: z32.string(),
|
|
2389
|
+
rule_name: z32.string(),
|
|
2390
|
+
rule_description: z32.string(),
|
|
2391
|
+
rule_instance_state: z32.string(),
|
|
2392
|
+
file: z32.string().nullable().optional(),
|
|
2393
|
+
hash: z32.string().nullable().optional(),
|
|
2394
|
+
module: z32.string().nullable().optional(),
|
|
2395
|
+
operator: z32.string().nullable().optional(),
|
|
2396
|
+
threat: z32.string().nullable().optional(),
|
|
2397
|
+
threat_description: z32.string().nullable().optional()
|
|
2398
|
+
}).passthrough();
|
|
2399
|
+
var ViolationListSchema = z32.object({
|
|
2323
2400
|
pagination: ModelSecurityPaginationSchema,
|
|
2324
|
-
violations:
|
|
2325
|
-
}).passthrough();
|
|
2326
|
-
var RuleEditableFieldDropdownSchema =
|
|
2327
|
-
value:
|
|
2328
|
-
label:
|
|
2329
|
-
}).passthrough();
|
|
2330
|
-
var RuleEditableFieldSchema =
|
|
2331
|
-
attribute_name:
|
|
2332
|
-
type:
|
|
2333
|
-
display_name:
|
|
2334
|
-
display_type:
|
|
2335
|
-
description:
|
|
2336
|
-
dropdown_values:
|
|
2337
|
-
}).passthrough();
|
|
2338
|
-
var RuleRemediationSchema =
|
|
2339
|
-
description:
|
|
2340
|
-
steps:
|
|
2341
|
-
url:
|
|
2342
|
-
}).passthrough();
|
|
2343
|
-
var RuleConfigurationSchema =
|
|
2344
|
-
field_values:
|
|
2345
|
-
state:
|
|
2346
|
-
}).passthrough();
|
|
2347
|
-
var ModelSecurityRuleResponseSchema =
|
|
2348
|
-
uuid:
|
|
2349
|
-
name:
|
|
2350
|
-
description:
|
|
2351
|
-
rule_type:
|
|
2352
|
-
compatible_sources:
|
|
2353
|
-
default_state:
|
|
2401
|
+
violations: z32.array(ViolationResponseSchema)
|
|
2402
|
+
}).passthrough();
|
|
2403
|
+
var RuleEditableFieldDropdownSchema = z32.object({
|
|
2404
|
+
value: z32.string(),
|
|
2405
|
+
label: z32.string()
|
|
2406
|
+
}).passthrough();
|
|
2407
|
+
var RuleEditableFieldSchema = z32.object({
|
|
2408
|
+
attribute_name: z32.string(),
|
|
2409
|
+
type: z32.string(),
|
|
2410
|
+
display_name: z32.string(),
|
|
2411
|
+
display_type: z32.string(),
|
|
2412
|
+
description: z32.string().nullable().optional(),
|
|
2413
|
+
dropdown_values: z32.array(RuleEditableFieldDropdownSchema).nullable().optional()
|
|
2414
|
+
}).passthrough();
|
|
2415
|
+
var RuleRemediationSchema = z32.object({
|
|
2416
|
+
description: z32.string(),
|
|
2417
|
+
steps: z32.array(z32.string()),
|
|
2418
|
+
url: z32.string()
|
|
2419
|
+
}).passthrough();
|
|
2420
|
+
var RuleConfigurationSchema = z32.object({
|
|
2421
|
+
field_values: z32.record(z32.unknown()).optional(),
|
|
2422
|
+
state: z32.string().nullable().optional()
|
|
2423
|
+
}).passthrough();
|
|
2424
|
+
var ModelSecurityRuleResponseSchema = z32.object({
|
|
2425
|
+
uuid: z32.string(),
|
|
2426
|
+
name: z32.string(),
|
|
2427
|
+
description: z32.string(),
|
|
2428
|
+
rule_type: z32.string(),
|
|
2429
|
+
compatible_sources: z32.array(z32.string()),
|
|
2430
|
+
default_state: z32.string(),
|
|
2354
2431
|
remediation: RuleRemediationSchema,
|
|
2355
|
-
editable_fields:
|
|
2356
|
-
constant_values:
|
|
2357
|
-
default_values:
|
|
2432
|
+
editable_fields: z32.array(RuleEditableFieldSchema),
|
|
2433
|
+
constant_values: z32.record(z32.unknown()),
|
|
2434
|
+
default_values: z32.record(z32.unknown())
|
|
2358
2435
|
}).passthrough();
|
|
2359
|
-
var ListModelSecurityRulesResponseSchema =
|
|
2436
|
+
var ListModelSecurityRulesResponseSchema = z32.object({
|
|
2360
2437
|
pagination: ModelSecurityPaginationSchema,
|
|
2361
|
-
rules:
|
|
2362
|
-
}).passthrough();
|
|
2363
|
-
var ModelSecurityRuleInstanceResponseSchema =
|
|
2364
|
-
uuid:
|
|
2365
|
-
tsg_id:
|
|
2366
|
-
created_at:
|
|
2367
|
-
updated_at:
|
|
2368
|
-
security_group_uuid:
|
|
2369
|
-
security_rule_uuid:
|
|
2370
|
-
state:
|
|
2438
|
+
rules: z32.array(ModelSecurityRuleResponseSchema)
|
|
2439
|
+
}).passthrough();
|
|
2440
|
+
var ModelSecurityRuleInstanceResponseSchema = z32.object({
|
|
2441
|
+
uuid: z32.string(),
|
|
2442
|
+
tsg_id: z32.string(),
|
|
2443
|
+
created_at: z32.string(),
|
|
2444
|
+
updated_at: z32.string(),
|
|
2445
|
+
security_group_uuid: z32.string(),
|
|
2446
|
+
security_rule_uuid: z32.string(),
|
|
2447
|
+
state: z32.string(),
|
|
2371
2448
|
rule: ModelSecurityRuleResponseSchema,
|
|
2372
|
-
field_values:
|
|
2449
|
+
field_values: z32.record(z32.unknown()).optional()
|
|
2373
2450
|
}).passthrough();
|
|
2374
|
-
var ModelSecurityRuleInstanceUpdateRequestSchema =
|
|
2375
|
-
security_group_uuid:
|
|
2376
|
-
state:
|
|
2377
|
-
field_values:
|
|
2451
|
+
var ModelSecurityRuleInstanceUpdateRequestSchema = z32.object({
|
|
2452
|
+
security_group_uuid: z32.string(),
|
|
2453
|
+
state: z32.string().nullable().optional(),
|
|
2454
|
+
field_values: z32.record(z32.unknown()).nullable().optional()
|
|
2378
2455
|
}).passthrough();
|
|
2379
|
-
var ListModelSecurityRuleInstancesResponseSchema =
|
|
2456
|
+
var ListModelSecurityRuleInstancesResponseSchema = z32.object({
|
|
2380
2457
|
pagination: ModelSecurityPaginationSchema,
|
|
2381
|
-
rule_instances:
|
|
2382
|
-
}).passthrough();
|
|
2383
|
-
var ModelSecurityGroupCreateRequestSchema =
|
|
2384
|
-
name:
|
|
2385
|
-
source_type:
|
|
2386
|
-
description:
|
|
2387
|
-
rule_configurations:
|
|
2388
|
-
}).passthrough();
|
|
2389
|
-
var ModelSecurityGroupResponseSchema =
|
|
2390
|
-
uuid:
|
|
2391
|
-
tsg_id:
|
|
2392
|
-
created_at:
|
|
2393
|
-
updated_at:
|
|
2394
|
-
name:
|
|
2395
|
-
description:
|
|
2396
|
-
source_type:
|
|
2397
|
-
state:
|
|
2398
|
-
is_tombstone:
|
|
2399
|
-
}).passthrough();
|
|
2400
|
-
var ModelSecurityGroupUpdateRequestSchema =
|
|
2401
|
-
name:
|
|
2402
|
-
description:
|
|
2403
|
-
}).passthrough();
|
|
2404
|
-
var ListModelSecurityGroupsResponseSchema =
|
|
2458
|
+
rule_instances: z32.array(ModelSecurityRuleInstanceResponseSchema)
|
|
2459
|
+
}).passthrough();
|
|
2460
|
+
var ModelSecurityGroupCreateRequestSchema = z32.object({
|
|
2461
|
+
name: z32.string(),
|
|
2462
|
+
source_type: z32.string(),
|
|
2463
|
+
description: z32.string().optional().default(""),
|
|
2464
|
+
rule_configurations: z32.record(RuleConfigurationSchema).optional()
|
|
2465
|
+
}).passthrough();
|
|
2466
|
+
var ModelSecurityGroupResponseSchema = z32.object({
|
|
2467
|
+
uuid: z32.string(),
|
|
2468
|
+
tsg_id: z32.string(),
|
|
2469
|
+
created_at: z32.string(),
|
|
2470
|
+
updated_at: z32.string(),
|
|
2471
|
+
name: z32.string(),
|
|
2472
|
+
description: z32.string(),
|
|
2473
|
+
source_type: z32.string(),
|
|
2474
|
+
state: z32.string(),
|
|
2475
|
+
is_tombstone: z32.boolean()
|
|
2476
|
+
}).passthrough();
|
|
2477
|
+
var ModelSecurityGroupUpdateRequestSchema = z32.object({
|
|
2478
|
+
name: z32.string().nullable().optional(),
|
|
2479
|
+
description: z32.string().nullable().optional()
|
|
2480
|
+
}).passthrough();
|
|
2481
|
+
var ListModelSecurityGroupsResponseSchema = z32.object({
|
|
2405
2482
|
pagination: ModelSecurityPaginationSchema,
|
|
2406
|
-
security_groups:
|
|
2483
|
+
security_groups: z32.array(ModelSecurityGroupResponseSchema)
|
|
2407
2484
|
}).passthrough();
|
|
2408
|
-
var PyPIAuthResponseSchema =
|
|
2409
|
-
url:
|
|
2410
|
-
expires_at:
|
|
2485
|
+
var PyPIAuthResponseSchema = z32.object({
|
|
2486
|
+
url: z32.string(),
|
|
2487
|
+
expires_at: z32.string()
|
|
2411
2488
|
}).passthrough();
|
|
2412
2489
|
|
|
2413
2490
|
// src/models/red-team-enums.ts
|
|
@@ -2615,1013 +2692,1013 @@ var TargetType = {
|
|
|
2615
2692
|
};
|
|
2616
2693
|
|
|
2617
2694
|
// src/models/red-team.ts
|
|
2618
|
-
import { z as
|
|
2619
|
-
var RedTeamPaginationSchema =
|
|
2620
|
-
var CountByNameSchema =
|
|
2621
|
-
var ValidationErrorSchema =
|
|
2622
|
-
loc:
|
|
2623
|
-
msg:
|
|
2624
|
-
type:
|
|
2625
|
-
}).passthrough();
|
|
2626
|
-
var HTTPValidationErrorSchema =
|
|
2627
|
-
var TargetBackgroundSchema =
|
|
2628
|
-
industry:
|
|
2629
|
-
use_case:
|
|
2630
|
-
competitors:
|
|
2631
|
-
}).passthrough();
|
|
2632
|
-
var TargetAdditionalContextSchema =
|
|
2633
|
-
base_model:
|
|
2634
|
-
core_architecture:
|
|
2635
|
-
system_prompt:
|
|
2636
|
-
languages_supported:
|
|
2637
|
-
banned_keywords:
|
|
2638
|
-
tools_accessible:
|
|
2639
|
-
}).passthrough();
|
|
2640
|
-
var TargetMetadataSchema =
|
|
2641
|
-
multi_turn:
|
|
2642
|
-
multi_turn_error_message:
|
|
2643
|
-
rate_limit:
|
|
2644
|
-
rate_limit_enabled:
|
|
2645
|
-
rate_limit_error_code:
|
|
2646
|
-
rate_limit_error_json:
|
|
2647
|
-
rate_limit_error_message:
|
|
2648
|
-
content_filter_enabled:
|
|
2649
|
-
content_filter_error_code:
|
|
2650
|
-
content_filter_error_json:
|
|
2651
|
-
content_filter_error_message:
|
|
2652
|
-
probe_message:
|
|
2653
|
-
request_timeout:
|
|
2654
|
-
}).passthrough();
|
|
2655
|
-
var MultiTurnStatefulConfigSchema =
|
|
2656
|
-
type:
|
|
2657
|
-
response_id_field:
|
|
2658
|
-
request_id_field:
|
|
2659
|
-
}).passthrough();
|
|
2660
|
-
var MultiTurnStatelessConfigSchema =
|
|
2661
|
-
type:
|
|
2662
|
-
assistant_role:
|
|
2663
|
-
}).passthrough();
|
|
2664
|
-
var HeadersAuthConfigSchema =
|
|
2665
|
-
var BasicAuthAuthConfigSchema =
|
|
2666
|
-
basic_auth_location:
|
|
2667
|
-
basic_auth_header:
|
|
2668
|
-
}).passthrough();
|
|
2669
|
-
var OAuth2AuthConfigSchema =
|
|
2670
|
-
oauth2_token_url:
|
|
2671
|
-
oauth2_expiry_minutes:
|
|
2672
|
-
oauth2_headers:
|
|
2673
|
-
oauth2_body_params:
|
|
2674
|
-
oauth2_token_response_key:
|
|
2675
|
-
oauth2_inject_header:
|
|
2676
|
-
}).passthrough();
|
|
2677
|
-
var AuthConfigSchema =
|
|
2695
|
+
import { z as z33 } from "zod";
|
|
2696
|
+
var RedTeamPaginationSchema = z33.object({ total_items: z33.number().int().nullable().optional() }).passthrough();
|
|
2697
|
+
var CountByNameSchema = z33.object({ name: z33.string(), count: z33.number().int() }).passthrough();
|
|
2698
|
+
var ValidationErrorSchema = z33.object({
|
|
2699
|
+
loc: z33.array(z33.union([z33.string(), z33.number()])),
|
|
2700
|
+
msg: z33.string(),
|
|
2701
|
+
type: z33.string()
|
|
2702
|
+
}).passthrough();
|
|
2703
|
+
var HTTPValidationErrorSchema = z33.object({ detail: z33.array(ValidationErrorSchema).optional() }).passthrough();
|
|
2704
|
+
var TargetBackgroundSchema = z33.object({
|
|
2705
|
+
industry: z33.string().nullable().optional(),
|
|
2706
|
+
use_case: z33.string().nullable().optional(),
|
|
2707
|
+
competitors: z33.array(z33.string()).nullable().optional()
|
|
2708
|
+
}).passthrough();
|
|
2709
|
+
var TargetAdditionalContextSchema = z33.object({
|
|
2710
|
+
base_model: z33.string().nullable().optional(),
|
|
2711
|
+
core_architecture: z33.string().nullable().optional(),
|
|
2712
|
+
system_prompt: z33.string().nullable().optional(),
|
|
2713
|
+
languages_supported: z33.array(z33.string()).nullable().optional(),
|
|
2714
|
+
banned_keywords: z33.array(z33.string()).nullable().optional(),
|
|
2715
|
+
tools_accessible: z33.array(z33.string()).nullable().optional()
|
|
2716
|
+
}).passthrough();
|
|
2717
|
+
var TargetMetadataSchema = z33.object({
|
|
2718
|
+
multi_turn: z33.boolean().optional(),
|
|
2719
|
+
multi_turn_error_message: z33.string().nullable().optional(),
|
|
2720
|
+
rate_limit: z33.number().int().nullable().optional(),
|
|
2721
|
+
rate_limit_enabled: z33.boolean().optional(),
|
|
2722
|
+
rate_limit_error_code: z33.number().int().nullable().optional(),
|
|
2723
|
+
rate_limit_error_json: z33.record(z33.unknown()).nullable().optional(),
|
|
2724
|
+
rate_limit_error_message: z33.string().nullable().optional(),
|
|
2725
|
+
content_filter_enabled: z33.boolean().optional(),
|
|
2726
|
+
content_filter_error_code: z33.number().int().nullable().optional(),
|
|
2727
|
+
content_filter_error_json: z33.record(z33.unknown()).nullable().optional(),
|
|
2728
|
+
content_filter_error_message: z33.string().nullable().optional(),
|
|
2729
|
+
probe_message: z33.string().optional(),
|
|
2730
|
+
request_timeout: z33.number().optional()
|
|
2731
|
+
}).passthrough();
|
|
2732
|
+
var MultiTurnStatefulConfigSchema = z33.object({
|
|
2733
|
+
type: z33.string().default("stateful"),
|
|
2734
|
+
response_id_field: z33.string(),
|
|
2735
|
+
request_id_field: z33.string()
|
|
2736
|
+
}).passthrough();
|
|
2737
|
+
var MultiTurnStatelessConfigSchema = z33.object({
|
|
2738
|
+
type: z33.string().default("stateless"),
|
|
2739
|
+
assistant_role: z33.string().nullable().optional()
|
|
2740
|
+
}).passthrough();
|
|
2741
|
+
var HeadersAuthConfigSchema = z33.object({ auth_header: z33.record(z33.unknown()) }).passthrough();
|
|
2742
|
+
var BasicAuthAuthConfigSchema = z33.object({
|
|
2743
|
+
basic_auth_location: z33.string().default("HEADER"),
|
|
2744
|
+
basic_auth_header: z33.record(z33.unknown()).nullable().optional()
|
|
2745
|
+
}).passthrough();
|
|
2746
|
+
var OAuth2AuthConfigSchema = z33.object({
|
|
2747
|
+
oauth2_token_url: z33.string(),
|
|
2748
|
+
oauth2_expiry_minutes: z33.number().int().default(60),
|
|
2749
|
+
oauth2_headers: z33.record(z33.unknown()).optional(),
|
|
2750
|
+
oauth2_body_params: z33.record(z33.unknown()).optional(),
|
|
2751
|
+
oauth2_token_response_key: z33.string().default("access_token"),
|
|
2752
|
+
oauth2_inject_header: z33.record(z33.unknown())
|
|
2753
|
+
}).passthrough();
|
|
2754
|
+
var AuthConfigSchema = z33.union([
|
|
2678
2755
|
HeadersAuthConfigSchema,
|
|
2679
2756
|
BasicAuthAuthConfigSchema,
|
|
2680
2757
|
OAuth2AuthConfigSchema
|
|
2681
2758
|
]);
|
|
2682
|
-
var OpenAIConnectionParamsSchema =
|
|
2683
|
-
api_key:
|
|
2684
|
-
model_name:
|
|
2685
|
-
}).passthrough();
|
|
2686
|
-
var HuggingfaceConnectionParamsSchema =
|
|
2687
|
-
api_key:
|
|
2688
|
-
model_name:
|
|
2689
|
-
}).passthrough();
|
|
2690
|
-
var DatabricksConnectionParamsSchema =
|
|
2691
|
-
auth_type:
|
|
2692
|
-
workspace_url:
|
|
2693
|
-
model_name:
|
|
2694
|
-
access_token:
|
|
2695
|
-
client_id:
|
|
2696
|
-
secret:
|
|
2697
|
-
}).passthrough();
|
|
2698
|
-
var BedrockAccessConnectionParamsSchema =
|
|
2699
|
-
access_id:
|
|
2700
|
-
access_secret:
|
|
2701
|
-
region:
|
|
2702
|
-
model_id:
|
|
2703
|
-
session_token:
|
|
2704
|
-
}).passthrough();
|
|
2705
|
-
var RestConnectionParamsSchema =
|
|
2706
|
-
api_endpoint:
|
|
2707
|
-
request_headers:
|
|
2708
|
-
request_json:
|
|
2709
|
-
response_json:
|
|
2710
|
-
response_key:
|
|
2711
|
-
target_connection_config:
|
|
2712
|
-
curl:
|
|
2713
|
-
multi_turn_config:
|
|
2759
|
+
var OpenAIConnectionParamsSchema = z33.object({
|
|
2760
|
+
api_key: z33.string(),
|
|
2761
|
+
model_name: z33.string()
|
|
2762
|
+
}).passthrough();
|
|
2763
|
+
var HuggingfaceConnectionParamsSchema = z33.object({
|
|
2764
|
+
api_key: z33.string(),
|
|
2765
|
+
model_name: z33.string()
|
|
2766
|
+
}).passthrough();
|
|
2767
|
+
var DatabricksConnectionParamsSchema = z33.object({
|
|
2768
|
+
auth_type: z33.string(),
|
|
2769
|
+
workspace_url: z33.string(),
|
|
2770
|
+
model_name: z33.string(),
|
|
2771
|
+
access_token: z33.string().nullable().optional(),
|
|
2772
|
+
client_id: z33.string().nullable().optional(),
|
|
2773
|
+
secret: z33.string().nullable().optional()
|
|
2774
|
+
}).passthrough();
|
|
2775
|
+
var BedrockAccessConnectionParamsSchema = z33.object({
|
|
2776
|
+
access_id: z33.string(),
|
|
2777
|
+
access_secret: z33.string(),
|
|
2778
|
+
region: z33.string(),
|
|
2779
|
+
model_id: z33.string(),
|
|
2780
|
+
session_token: z33.string().nullable().optional()
|
|
2781
|
+
}).passthrough();
|
|
2782
|
+
var RestConnectionParamsSchema = z33.object({
|
|
2783
|
+
api_endpoint: z33.string().nullable().optional(),
|
|
2784
|
+
request_headers: z33.record(z33.unknown()).nullable().optional(),
|
|
2785
|
+
request_json: z33.record(z33.unknown()).nullable().optional(),
|
|
2786
|
+
response_json: z33.record(z33.unknown()).nullable().optional(),
|
|
2787
|
+
response_key: z33.string().nullable().optional(),
|
|
2788
|
+
target_connection_config: z33.unknown().nullable().optional(),
|
|
2789
|
+
curl: z33.string().nullable().optional(),
|
|
2790
|
+
multi_turn_config: z33.unknown().nullable().optional()
|
|
2714
2791
|
}).passthrough();
|
|
2715
2792
|
var StreamingConnectionParamsSchema = RestConnectionParamsSchema.extend({
|
|
2716
|
-
response_stop_key:
|
|
2717
|
-
response_stop_value:
|
|
2793
|
+
response_stop_key: z33.string(),
|
|
2794
|
+
response_stop_value: z33.string()
|
|
2718
2795
|
}).passthrough();
|
|
2719
2796
|
var WebSocketConnectionParamsSchema = RestConnectionParamsSchema.extend({
|
|
2720
|
-
ws_response_timeout:
|
|
2797
|
+
ws_response_timeout: z33.number().default(110)
|
|
2721
2798
|
}).passthrough();
|
|
2722
|
-
var ConnectionParamsSchema =
|
|
2799
|
+
var ConnectionParamsSchema = z33.union([
|
|
2723
2800
|
WebSocketConnectionParamsSchema,
|
|
2724
2801
|
StreamingConnectionParamsSchema,
|
|
2725
2802
|
RestConnectionParamsSchema
|
|
2726
2803
|
]);
|
|
2727
|
-
var TargetJobRequestSchema =
|
|
2728
|
-
uuid:
|
|
2729
|
-
version:
|
|
2730
|
-
}).passthrough();
|
|
2731
|
-
var JobTimeRecordSchema =
|
|
2732
|
-
queued_at:
|
|
2733
|
-
started_at:
|
|
2734
|
-
completed_at:
|
|
2735
|
-
time_taken:
|
|
2736
|
-
}).passthrough();
|
|
2737
|
-
var StaticJobMetadataSchema =
|
|
2738
|
-
categories:
|
|
2739
|
-
rate_limit_enabled:
|
|
2740
|
-
rate_limit:
|
|
2741
|
-
rate_limit_error_code:
|
|
2742
|
-
rate_limit_error_message:
|
|
2743
|
-
rate_limit_error_json:
|
|
2744
|
-
content_filter_enabled:
|
|
2745
|
-
content_filter_error_code:
|
|
2746
|
-
content_filter_error_message:
|
|
2747
|
-
content_filter_error_json:
|
|
2748
|
-
}).passthrough();
|
|
2749
|
-
var DynamicJobMetadataSchema =
|
|
2750
|
-
rate_limit_enabled:
|
|
2751
|
-
rate_limit:
|
|
2752
|
-
rate_limit_error_code:
|
|
2753
|
-
rate_limit_error_message:
|
|
2754
|
-
rate_limit_error_json:
|
|
2755
|
-
content_filter_enabled:
|
|
2756
|
-
content_filter_error_code:
|
|
2757
|
-
content_filter_error_message:
|
|
2758
|
-
content_filter_error_json:
|
|
2759
|
-
stream_breadth:
|
|
2760
|
-
stream_depth:
|
|
2761
|
-
max_tokens:
|
|
2762
|
-
context_size:
|
|
2763
|
-
attack_goals:
|
|
2764
|
-
base_model:
|
|
2765
|
-
use_case:
|
|
2766
|
-
system_prompt:
|
|
2767
|
-
}).passthrough();
|
|
2768
|
-
var CustomJobMetadataSchema =
|
|
2769
|
-
custom_prompt_sets:
|
|
2770
|
-
rate_limit_enabled:
|
|
2771
|
-
rate_limit:
|
|
2772
|
-
rate_limit_error_code:
|
|
2773
|
-
rate_limit_error_message:
|
|
2774
|
-
rate_limit_error_json:
|
|
2775
|
-
content_filter_enabled:
|
|
2776
|
-
content_filter_error_code:
|
|
2777
|
-
content_filter_error_message:
|
|
2778
|
-
content_filter_error_json:
|
|
2779
|
-
}).passthrough();
|
|
2780
|
-
var JobCreateRequestSchema =
|
|
2781
|
-
name:
|
|
2804
|
+
var TargetJobRequestSchema = z33.object({
|
|
2805
|
+
uuid: z33.string(),
|
|
2806
|
+
version: z33.number().int().nullable().optional()
|
|
2807
|
+
}).passthrough();
|
|
2808
|
+
var JobTimeRecordSchema = z33.object({
|
|
2809
|
+
queued_at: z33.string().nullable().optional(),
|
|
2810
|
+
started_at: z33.string().nullable().optional(),
|
|
2811
|
+
completed_at: z33.string().nullable().optional(),
|
|
2812
|
+
time_taken: z33.string().nullable().optional()
|
|
2813
|
+
}).passthrough();
|
|
2814
|
+
var StaticJobMetadataSchema = z33.object({
|
|
2815
|
+
categories: z33.record(z33.unknown()),
|
|
2816
|
+
rate_limit_enabled: z33.boolean().optional(),
|
|
2817
|
+
rate_limit: z33.number().int().nullable().optional(),
|
|
2818
|
+
rate_limit_error_code: z33.number().int().nullable().optional(),
|
|
2819
|
+
rate_limit_error_message: z33.string().nullable().optional(),
|
|
2820
|
+
rate_limit_error_json: z33.unknown().optional(),
|
|
2821
|
+
content_filter_enabled: z33.boolean().optional(),
|
|
2822
|
+
content_filter_error_code: z33.number().int().nullable().optional(),
|
|
2823
|
+
content_filter_error_message: z33.string().nullable().optional(),
|
|
2824
|
+
content_filter_error_json: z33.unknown().optional()
|
|
2825
|
+
}).passthrough();
|
|
2826
|
+
var DynamicJobMetadataSchema = z33.object({
|
|
2827
|
+
rate_limit_enabled: z33.boolean().optional(),
|
|
2828
|
+
rate_limit: z33.number().int().nullable().optional(),
|
|
2829
|
+
rate_limit_error_code: z33.number().int().nullable().optional(),
|
|
2830
|
+
rate_limit_error_message: z33.string().nullable().optional(),
|
|
2831
|
+
rate_limit_error_json: z33.unknown().optional(),
|
|
2832
|
+
content_filter_enabled: z33.boolean().optional(),
|
|
2833
|
+
content_filter_error_code: z33.number().int().nullable().optional(),
|
|
2834
|
+
content_filter_error_message: z33.string().nullable().optional(),
|
|
2835
|
+
content_filter_error_json: z33.unknown().optional(),
|
|
2836
|
+
stream_breadth: z33.number().int().optional(),
|
|
2837
|
+
stream_depth: z33.number().int().optional(),
|
|
2838
|
+
max_tokens: z33.number().int().optional(),
|
|
2839
|
+
context_size: z33.number().int().optional(),
|
|
2840
|
+
attack_goals: z33.array(z33.unknown()).optional(),
|
|
2841
|
+
base_model: z33.string().nullable().optional(),
|
|
2842
|
+
use_case: z33.string().nullable().optional(),
|
|
2843
|
+
system_prompt: z33.string().nullable().optional()
|
|
2844
|
+
}).passthrough();
|
|
2845
|
+
var CustomJobMetadataSchema = z33.object({
|
|
2846
|
+
custom_prompt_sets: z33.array(z33.unknown()),
|
|
2847
|
+
rate_limit_enabled: z33.boolean().optional(),
|
|
2848
|
+
rate_limit: z33.number().int().nullable().optional(),
|
|
2849
|
+
rate_limit_error_code: z33.number().int().nullable().optional(),
|
|
2850
|
+
rate_limit_error_message: z33.string().nullable().optional(),
|
|
2851
|
+
rate_limit_error_json: z33.unknown().optional(),
|
|
2852
|
+
content_filter_enabled: z33.boolean().optional(),
|
|
2853
|
+
content_filter_error_code: z33.number().int().nullable().optional(),
|
|
2854
|
+
content_filter_error_message: z33.string().nullable().optional(),
|
|
2855
|
+
content_filter_error_json: z33.unknown().optional()
|
|
2856
|
+
}).passthrough();
|
|
2857
|
+
var JobCreateRequestSchema = z33.object({
|
|
2858
|
+
name: z33.string(),
|
|
2782
2859
|
target: TargetJobRequestSchema,
|
|
2783
|
-
job_type:
|
|
2784
|
-
job_metadata:
|
|
2860
|
+
job_type: z33.string(),
|
|
2861
|
+
job_metadata: z33.union([
|
|
2785
2862
|
StaticJobMetadataSchema,
|
|
2786
2863
|
DynamicJobMetadataSchema,
|
|
2787
2864
|
CustomJobMetadataSchema
|
|
2788
2865
|
]),
|
|
2789
|
-
version:
|
|
2790
|
-
extra_info:
|
|
2791
|
-
}).passthrough();
|
|
2792
|
-
var StaticJobReportStatsSchema =
|
|
2793
|
-
output_completion_percentage:
|
|
2794
|
-
partial_report_unlocked:
|
|
2795
|
-
partial_report_unlocked_at:
|
|
2796
|
-
report_summary:
|
|
2797
|
-
}).passthrough();
|
|
2798
|
-
var DynamicJobReportStatsSchema =
|
|
2799
|
-
total_goals:
|
|
2800
|
-
total_streams:
|
|
2801
|
-
total_threats:
|
|
2802
|
-
goals_achieved:
|
|
2803
|
-
report_summary:
|
|
2804
|
-
}).passthrough();
|
|
2805
|
-
var TargetReferenceSchema =
|
|
2806
|
-
uuid:
|
|
2807
|
-
tsg_id:
|
|
2808
|
-
name:
|
|
2809
|
-
description:
|
|
2810
|
-
target_type:
|
|
2811
|
-
connection_type:
|
|
2812
|
-
api_endpoint_type:
|
|
2813
|
-
response_mode:
|
|
2814
|
-
session_supported:
|
|
2815
|
-
extra_info:
|
|
2816
|
-
status:
|
|
2817
|
-
active:
|
|
2818
|
-
validated:
|
|
2819
|
-
version:
|
|
2820
|
-
secret_version:
|
|
2821
|
-
created_by_user_id:
|
|
2822
|
-
updated_by_user_id:
|
|
2823
|
-
created_at:
|
|
2824
|
-
updated_at:
|
|
2866
|
+
version: z33.number().int().nullable().optional(),
|
|
2867
|
+
extra_info: z33.record(z33.unknown()).nullable().optional()
|
|
2868
|
+
}).passthrough();
|
|
2869
|
+
var StaticJobReportStatsSchema = z33.object({
|
|
2870
|
+
output_completion_percentage: z33.number(),
|
|
2871
|
+
partial_report_unlocked: z33.boolean().optional(),
|
|
2872
|
+
partial_report_unlocked_at: z33.string().nullable().optional(),
|
|
2873
|
+
report_summary: z33.string().nullable().optional()
|
|
2874
|
+
}).passthrough();
|
|
2875
|
+
var DynamicJobReportStatsSchema = z33.object({
|
|
2876
|
+
total_goals: z33.number().int().optional(),
|
|
2877
|
+
total_streams: z33.number().int().optional(),
|
|
2878
|
+
total_threats: z33.number().int().optional(),
|
|
2879
|
+
goals_achieved: z33.number().int().optional(),
|
|
2880
|
+
report_summary: z33.string().nullable().optional()
|
|
2881
|
+
}).passthrough();
|
|
2882
|
+
var TargetReferenceSchema = z33.object({
|
|
2883
|
+
uuid: z33.string(),
|
|
2884
|
+
tsg_id: z33.string(),
|
|
2885
|
+
name: z33.string(),
|
|
2886
|
+
description: z33.string().nullable().optional(),
|
|
2887
|
+
target_type: z33.string().nullable().optional(),
|
|
2888
|
+
connection_type: z33.string().nullable().optional(),
|
|
2889
|
+
api_endpoint_type: z33.string().nullable().optional(),
|
|
2890
|
+
response_mode: z33.string().nullable().optional(),
|
|
2891
|
+
session_supported: z33.boolean().optional(),
|
|
2892
|
+
extra_info: z33.record(z33.unknown()).nullable().optional(),
|
|
2893
|
+
status: z33.string(),
|
|
2894
|
+
active: z33.boolean(),
|
|
2895
|
+
validated: z33.boolean(),
|
|
2896
|
+
version: z33.number().int().nullable().optional(),
|
|
2897
|
+
secret_version: z33.string().nullable().optional(),
|
|
2898
|
+
created_by_user_id: z33.string().nullable().optional(),
|
|
2899
|
+
updated_by_user_id: z33.string().nullable().optional(),
|
|
2900
|
+
created_at: z33.string(),
|
|
2901
|
+
updated_at: z33.string(),
|
|
2825
2902
|
target_metadata: TargetMetadataSchema.optional(),
|
|
2826
2903
|
target_background: TargetBackgroundSchema.nullable().optional(),
|
|
2827
|
-
profiling_status:
|
|
2904
|
+
profiling_status: z33.string().nullable().optional(),
|
|
2828
2905
|
additional_context: TargetAdditionalContextSchema.nullable().optional(),
|
|
2829
|
-
auth_type:
|
|
2906
|
+
auth_type: z33.string().nullable().optional()
|
|
2830
2907
|
}).passthrough();
|
|
2831
|
-
var JobResponseSchema =
|
|
2832
|
-
uuid:
|
|
2833
|
-
tsg_id:
|
|
2834
|
-
name:
|
|
2908
|
+
var JobResponseSchema = z33.object({
|
|
2909
|
+
uuid: z33.string(),
|
|
2910
|
+
tsg_id: z33.string(),
|
|
2911
|
+
name: z33.string(),
|
|
2835
2912
|
target: TargetReferenceSchema,
|
|
2836
|
-
job_type:
|
|
2837
|
-
job_metadata:
|
|
2838
|
-
version:
|
|
2839
|
-
extra_info:
|
|
2840
|
-
target_id:
|
|
2841
|
-
target_type:
|
|
2842
|
-
total:
|
|
2843
|
-
completed:
|
|
2844
|
-
status:
|
|
2845
|
-
score:
|
|
2846
|
-
asr:
|
|
2913
|
+
job_type: z33.string(),
|
|
2914
|
+
job_metadata: z33.unknown(),
|
|
2915
|
+
version: z33.number().int().nullable().optional(),
|
|
2916
|
+
extra_info: z33.record(z33.unknown()).nullable().optional(),
|
|
2917
|
+
target_id: z33.string(),
|
|
2918
|
+
target_type: z33.string(),
|
|
2919
|
+
total: z33.number().int().nullable().optional(),
|
|
2920
|
+
completed: z33.number().int().nullable().optional(),
|
|
2921
|
+
status: z33.string().optional(),
|
|
2922
|
+
score: z33.number().nullable().optional(),
|
|
2923
|
+
asr: z33.number().nullable().optional(),
|
|
2847
2924
|
time_record: JobTimeRecordSchema.nullable().optional(),
|
|
2848
|
-
created_at:
|
|
2849
|
-
updated_at:
|
|
2850
|
-
created_by_user_id:
|
|
2851
|
-
report_stats:
|
|
2852
|
-
metering_quota_uuid:
|
|
2853
|
-
counted_towards_quota:
|
|
2854
|
-
invocation_id:
|
|
2855
|
-
}).passthrough();
|
|
2856
|
-
var JobListResponseSchema =
|
|
2925
|
+
created_at: z33.string().nullable().optional(),
|
|
2926
|
+
updated_at: z33.string().nullable().optional(),
|
|
2927
|
+
created_by_user_id: z33.string().nullable().optional(),
|
|
2928
|
+
report_stats: z33.unknown().optional(),
|
|
2929
|
+
metering_quota_uuid: z33.string().nullable().optional(),
|
|
2930
|
+
counted_towards_quota: z33.string().optional(),
|
|
2931
|
+
invocation_id: z33.string().nullable().optional()
|
|
2932
|
+
}).passthrough();
|
|
2933
|
+
var JobListResponseSchema = z33.object({
|
|
2857
2934
|
pagination: RedTeamPaginationSchema,
|
|
2858
|
-
data:
|
|
2859
|
-
}).passthrough();
|
|
2860
|
-
var JobAbortResponseSchema =
|
|
2861
|
-
job_id:
|
|
2862
|
-
message:
|
|
2863
|
-
}).passthrough();
|
|
2864
|
-
var PrerequisiteModelSchema =
|
|
2865
|
-
id:
|
|
2866
|
-
display_name:
|
|
2867
|
-
description:
|
|
2868
|
-
}).passthrough();
|
|
2869
|
-
var SubCategoryModelSchema =
|
|
2870
|
-
id:
|
|
2871
|
-
display_name:
|
|
2872
|
-
description:
|
|
2873
|
-
preselect:
|
|
2874
|
-
prerequisites:
|
|
2875
|
-
active:
|
|
2876
|
-
}).passthrough();
|
|
2877
|
-
var CategoryModelSchema =
|
|
2878
|
-
id:
|
|
2879
|
-
display_name:
|
|
2880
|
-
description:
|
|
2881
|
-
preselect:
|
|
2882
|
-
sub_categories:
|
|
2883
|
-
}).passthrough();
|
|
2884
|
-
var AttackOutputSchema =
|
|
2885
|
-
uuid:
|
|
2886
|
-
tsg_id:
|
|
2887
|
-
attack_id:
|
|
2888
|
-
job_id:
|
|
2889
|
-
target_id:
|
|
2890
|
-
output:
|
|
2891
|
-
threat:
|
|
2892
|
-
marked_safe:
|
|
2893
|
-
}).passthrough();
|
|
2894
|
-
var AttackMultiTurnOutputSchema =
|
|
2895
|
-
uuid:
|
|
2896
|
-
tsg_id:
|
|
2897
|
-
attack_id:
|
|
2898
|
-
job_id:
|
|
2899
|
-
target_id:
|
|
2900
|
-
output:
|
|
2901
|
-
prompt:
|
|
2902
|
-
turn:
|
|
2903
|
-
threat:
|
|
2904
|
-
marked_safe:
|
|
2905
|
-
generation:
|
|
2906
|
-
multi_turn:
|
|
2907
|
-
}).passthrough();
|
|
2908
|
-
var AttackListItemSchema =
|
|
2909
|
-
uuid:
|
|
2910
|
-
tsg_id:
|
|
2911
|
-
job_id:
|
|
2912
|
-
target_id:
|
|
2913
|
-
prompt:
|
|
2914
|
-
prompt_mapping_id:
|
|
2915
|
-
prompt_id:
|
|
2916
|
-
category:
|
|
2917
|
-
sub_category:
|
|
2918
|
-
category_display_name:
|
|
2919
|
-
sub_category_display_name:
|
|
2920
|
-
status:
|
|
2921
|
-
marked_safe:
|
|
2922
|
-
extra_info:
|
|
2923
|
-
threat:
|
|
2924
|
-
attack_type:
|
|
2925
|
-
multi_turn:
|
|
2926
|
-
asr:
|
|
2927
|
-
version:
|
|
2928
|
-
severity:
|
|
2929
|
-
}).passthrough();
|
|
2930
|
-
var AttackListResponseSchema =
|
|
2935
|
+
data: z33.array(JobResponseSchema)
|
|
2936
|
+
}).passthrough();
|
|
2937
|
+
var JobAbortResponseSchema = z33.object({
|
|
2938
|
+
job_id: z33.string(),
|
|
2939
|
+
message: z33.string()
|
|
2940
|
+
}).passthrough();
|
|
2941
|
+
var PrerequisiteModelSchema = z33.object({
|
|
2942
|
+
id: z33.string(),
|
|
2943
|
+
display_name: z33.string(),
|
|
2944
|
+
description: z33.string()
|
|
2945
|
+
}).passthrough();
|
|
2946
|
+
var SubCategoryModelSchema = z33.object({
|
|
2947
|
+
id: z33.string(),
|
|
2948
|
+
display_name: z33.string(),
|
|
2949
|
+
description: z33.string(),
|
|
2950
|
+
preselect: z33.boolean().optional(),
|
|
2951
|
+
prerequisites: z33.array(PrerequisiteModelSchema).nullable().optional(),
|
|
2952
|
+
active: z33.boolean().optional()
|
|
2953
|
+
}).passthrough();
|
|
2954
|
+
var CategoryModelSchema = z33.object({
|
|
2955
|
+
id: z33.string(),
|
|
2956
|
+
display_name: z33.string(),
|
|
2957
|
+
description: z33.string(),
|
|
2958
|
+
preselect: z33.boolean().optional(),
|
|
2959
|
+
sub_categories: z33.array(SubCategoryModelSchema)
|
|
2960
|
+
}).passthrough();
|
|
2961
|
+
var AttackOutputSchema = z33.object({
|
|
2962
|
+
uuid: z33.string(),
|
|
2963
|
+
tsg_id: z33.string(),
|
|
2964
|
+
attack_id: z33.string(),
|
|
2965
|
+
job_id: z33.string(),
|
|
2966
|
+
target_id: z33.string(),
|
|
2967
|
+
output: z33.string(),
|
|
2968
|
+
threat: z33.boolean().nullable().optional(),
|
|
2969
|
+
marked_safe: z33.boolean().nullable().optional()
|
|
2970
|
+
}).passthrough();
|
|
2971
|
+
var AttackMultiTurnOutputSchema = z33.object({
|
|
2972
|
+
uuid: z33.string(),
|
|
2973
|
+
tsg_id: z33.string(),
|
|
2974
|
+
attack_id: z33.string(),
|
|
2975
|
+
job_id: z33.string(),
|
|
2976
|
+
target_id: z33.string(),
|
|
2977
|
+
output: z33.string(),
|
|
2978
|
+
prompt: z33.string(),
|
|
2979
|
+
turn: z33.number().int(),
|
|
2980
|
+
threat: z33.boolean().nullable().optional(),
|
|
2981
|
+
marked_safe: z33.boolean().nullable().optional(),
|
|
2982
|
+
generation: z33.number().int().optional(),
|
|
2983
|
+
multi_turn: z33.boolean().optional()
|
|
2984
|
+
}).passthrough();
|
|
2985
|
+
var AttackListItemSchema = z33.object({
|
|
2986
|
+
uuid: z33.string(),
|
|
2987
|
+
tsg_id: z33.string(),
|
|
2988
|
+
job_id: z33.string(),
|
|
2989
|
+
target_id: z33.string(),
|
|
2990
|
+
prompt: z33.string(),
|
|
2991
|
+
prompt_mapping_id: z33.string(),
|
|
2992
|
+
prompt_id: z33.string(),
|
|
2993
|
+
category: z33.string(),
|
|
2994
|
+
sub_category: z33.string(),
|
|
2995
|
+
category_display_name: z33.string(),
|
|
2996
|
+
sub_category_display_name: z33.string(),
|
|
2997
|
+
status: z33.string().optional(),
|
|
2998
|
+
marked_safe: z33.boolean().nullable().optional(),
|
|
2999
|
+
extra_info: z33.record(z33.unknown()).optional(),
|
|
3000
|
+
threat: z33.boolean().nullable().optional(),
|
|
3001
|
+
attack_type: z33.string().optional(),
|
|
3002
|
+
multi_turn: z33.boolean().optional(),
|
|
3003
|
+
asr: z33.number().nullable().optional(),
|
|
3004
|
+
version: z33.number().int().nullable().optional(),
|
|
3005
|
+
severity: z33.string().optional()
|
|
3006
|
+
}).passthrough();
|
|
3007
|
+
var AttackListResponseSchema = z33.object({
|
|
2931
3008
|
pagination: RedTeamPaginationSchema,
|
|
2932
|
-
data:
|
|
2933
|
-
}).passthrough();
|
|
2934
|
-
var AttackDetailResponseSchema =
|
|
2935
|
-
uuid:
|
|
2936
|
-
tsg_id:
|
|
2937
|
-
job_id:
|
|
2938
|
-
target_id:
|
|
2939
|
-
prompt:
|
|
2940
|
-
prompt_mapping_id:
|
|
2941
|
-
prompt_id:
|
|
2942
|
-
category:
|
|
2943
|
-
sub_category:
|
|
2944
|
-
category_display_name:
|
|
2945
|
-
sub_category_display_name:
|
|
2946
|
-
compliance_frameworks:
|
|
2947
|
-
goal:
|
|
2948
|
-
status:
|
|
2949
|
-
marked_safe:
|
|
2950
|
-
extra_info:
|
|
2951
|
-
threat:
|
|
2952
|
-
attack_type:
|
|
2953
|
-
multi_turn:
|
|
2954
|
-
asr:
|
|
2955
|
-
version:
|
|
2956
|
-
severity:
|
|
2957
|
-
outputs:
|
|
2958
|
-
}).passthrough();
|
|
2959
|
-
var AttackMultiTurnDetailResponseSchema =
|
|
2960
|
-
uuid:
|
|
2961
|
-
tsg_id:
|
|
2962
|
-
job_id:
|
|
2963
|
-
target_id:
|
|
2964
|
-
prompt:
|
|
2965
|
-
prompt_mapping_id:
|
|
2966
|
-
prompt_id:
|
|
2967
|
-
category:
|
|
2968
|
-
sub_category:
|
|
2969
|
-
category_display_name:
|
|
2970
|
-
sub_category_display_name:
|
|
2971
|
-
compliance_frameworks:
|
|
2972
|
-
goal:
|
|
2973
|
-
status:
|
|
2974
|
-
marked_safe:
|
|
2975
|
-
extra_info:
|
|
2976
|
-
threat:
|
|
2977
|
-
attack_type:
|
|
2978
|
-
multi_turn:
|
|
2979
|
-
asr:
|
|
2980
|
-
version:
|
|
2981
|
-
severity:
|
|
2982
|
-
outputs:
|
|
2983
|
-
}).passthrough();
|
|
2984
|
-
var SubCategoryStatsSchema =
|
|
2985
|
-
id:
|
|
2986
|
-
display_name:
|
|
2987
|
-
description:
|
|
2988
|
-
preselect:
|
|
2989
|
-
prerequisites:
|
|
2990
|
-
active:
|
|
2991
|
-
successful:
|
|
2992
|
-
failed:
|
|
2993
|
-
total:
|
|
2994
|
-
}).passthrough();
|
|
2995
|
-
var CategoryReportSchema =
|
|
2996
|
-
id:
|
|
2997
|
-
display_name:
|
|
2998
|
-
description:
|
|
2999
|
-
preselect:
|
|
3000
|
-
sub_categories:
|
|
3001
|
-
asr:
|
|
3002
|
-
total_prompts:
|
|
3003
|
-
total_attacks:
|
|
3004
|
-
successful:
|
|
3005
|
-
failed:
|
|
3006
|
-
}).passthrough();
|
|
3007
|
-
var SeverityStatsSchema =
|
|
3008
|
-
severity:
|
|
3009
|
-
successful:
|
|
3010
|
-
failed:
|
|
3011
|
-
}).passthrough();
|
|
3012
|
-
var SeverityReportSchema =
|
|
3013
|
-
stats:
|
|
3014
|
-
successful:
|
|
3015
|
-
failed:
|
|
3016
|
-
total_attacks:
|
|
3017
|
-
}).passthrough();
|
|
3018
|
-
var ComplianceTechniqueSchema =
|
|
3019
|
-
id:
|
|
3020
|
-
display_name:
|
|
3021
|
-
compliance_id:
|
|
3022
|
-
description:
|
|
3023
|
-
link:
|
|
3024
|
-
version:
|
|
3025
|
-
active:
|
|
3026
|
-
successful:
|
|
3027
|
-
failed:
|
|
3028
|
-
total:
|
|
3029
|
-
}).passthrough();
|
|
3030
|
-
var ComplianceReportSchema =
|
|
3031
|
-
id:
|
|
3032
|
-
display_name:
|
|
3033
|
-
description:
|
|
3034
|
-
active:
|
|
3035
|
-
version:
|
|
3036
|
-
link:
|
|
3037
|
-
techniques:
|
|
3038
|
-
score:
|
|
3039
|
-
}).passthrough();
|
|
3040
|
-
var RuntimeSecurityPolicySchema =
|
|
3041
|
-
policy_id:
|
|
3042
|
-
display_name:
|
|
3043
|
-
config:
|
|
3044
|
-
}).passthrough();
|
|
3045
|
-
var StaticJobRemediationSchema =
|
|
3046
|
-
remediation:
|
|
3047
|
-
description:
|
|
3048
|
-
mapping_remediation_id:
|
|
3049
|
-
subcategories:
|
|
3050
|
-
effectiveness:
|
|
3051
|
-
ease_of_implementation:
|
|
3052
|
-
priority:
|
|
3053
|
-
resource_links:
|
|
3054
|
-
categories:
|
|
3055
|
-
}).passthrough();
|
|
3056
|
-
var StaticJobRemediationRecommendationSchema =
|
|
3057
|
-
runtime_security_policy_configuration:
|
|
3058
|
-
other_measures:
|
|
3059
|
-
}).passthrough();
|
|
3060
|
-
var StaticJobReportSchema =
|
|
3009
|
+
data: z33.array(AttackListItemSchema)
|
|
3010
|
+
}).passthrough();
|
|
3011
|
+
var AttackDetailResponseSchema = z33.object({
|
|
3012
|
+
uuid: z33.string(),
|
|
3013
|
+
tsg_id: z33.string(),
|
|
3014
|
+
job_id: z33.string(),
|
|
3015
|
+
target_id: z33.string(),
|
|
3016
|
+
prompt: z33.string(),
|
|
3017
|
+
prompt_mapping_id: z33.string(),
|
|
3018
|
+
prompt_id: z33.string(),
|
|
3019
|
+
category: z33.string(),
|
|
3020
|
+
sub_category: z33.string(),
|
|
3021
|
+
category_display_name: z33.string(),
|
|
3022
|
+
sub_category_display_name: z33.string(),
|
|
3023
|
+
compliance_frameworks: z33.array(z33.unknown()),
|
|
3024
|
+
goal: z33.string().nullable(),
|
|
3025
|
+
status: z33.string().optional(),
|
|
3026
|
+
marked_safe: z33.boolean().nullable().optional(),
|
|
3027
|
+
extra_info: z33.record(z33.unknown()).optional(),
|
|
3028
|
+
threat: z33.boolean().nullable().optional(),
|
|
3029
|
+
attack_type: z33.string().optional(),
|
|
3030
|
+
multi_turn: z33.boolean().optional(),
|
|
3031
|
+
asr: z33.number().nullable().optional(),
|
|
3032
|
+
version: z33.number().int().nullable().optional(),
|
|
3033
|
+
severity: z33.string().optional(),
|
|
3034
|
+
outputs: z33.array(AttackOutputSchema).optional()
|
|
3035
|
+
}).passthrough();
|
|
3036
|
+
var AttackMultiTurnDetailResponseSchema = z33.object({
|
|
3037
|
+
uuid: z33.string(),
|
|
3038
|
+
tsg_id: z33.string(),
|
|
3039
|
+
job_id: z33.string(),
|
|
3040
|
+
target_id: z33.string(),
|
|
3041
|
+
prompt: z33.string(),
|
|
3042
|
+
prompt_mapping_id: z33.string(),
|
|
3043
|
+
prompt_id: z33.string(),
|
|
3044
|
+
category: z33.string(),
|
|
3045
|
+
sub_category: z33.string(),
|
|
3046
|
+
category_display_name: z33.string(),
|
|
3047
|
+
sub_category_display_name: z33.string(),
|
|
3048
|
+
compliance_frameworks: z33.array(z33.unknown()),
|
|
3049
|
+
goal: z33.string().nullable(),
|
|
3050
|
+
status: z33.string().optional(),
|
|
3051
|
+
marked_safe: z33.boolean().nullable().optional(),
|
|
3052
|
+
extra_info: z33.record(z33.unknown()).optional(),
|
|
3053
|
+
threat: z33.boolean().nullable().optional(),
|
|
3054
|
+
attack_type: z33.string().optional(),
|
|
3055
|
+
multi_turn: z33.boolean().optional(),
|
|
3056
|
+
asr: z33.number().nullable().optional(),
|
|
3057
|
+
version: z33.number().int().nullable().optional(),
|
|
3058
|
+
severity: z33.string().optional(),
|
|
3059
|
+
outputs: z33.array(AttackMultiTurnOutputSchema).optional()
|
|
3060
|
+
}).passthrough();
|
|
3061
|
+
var SubCategoryStatsSchema = z33.object({
|
|
3062
|
+
id: z33.string(),
|
|
3063
|
+
display_name: z33.string(),
|
|
3064
|
+
description: z33.string(),
|
|
3065
|
+
preselect: z33.boolean().optional(),
|
|
3066
|
+
prerequisites: z33.array(PrerequisiteModelSchema).nullable().optional(),
|
|
3067
|
+
active: z33.boolean().optional(),
|
|
3068
|
+
successful: z33.number().int(),
|
|
3069
|
+
failed: z33.number().int(),
|
|
3070
|
+
total: z33.number().int().optional()
|
|
3071
|
+
}).passthrough();
|
|
3072
|
+
var CategoryReportSchema = z33.object({
|
|
3073
|
+
id: z33.string(),
|
|
3074
|
+
display_name: z33.string(),
|
|
3075
|
+
description: z33.string(),
|
|
3076
|
+
preselect: z33.boolean().optional(),
|
|
3077
|
+
sub_categories: z33.array(SubCategoryStatsSchema),
|
|
3078
|
+
asr: z33.number(),
|
|
3079
|
+
total_prompts: z33.number().int(),
|
|
3080
|
+
total_attacks: z33.number().int(),
|
|
3081
|
+
successful: z33.number().int(),
|
|
3082
|
+
failed: z33.number().int()
|
|
3083
|
+
}).passthrough();
|
|
3084
|
+
var SeverityStatsSchema = z33.object({
|
|
3085
|
+
severity: z33.string(),
|
|
3086
|
+
successful: z33.number().int().optional(),
|
|
3087
|
+
failed: z33.number().int().optional()
|
|
3088
|
+
}).passthrough();
|
|
3089
|
+
var SeverityReportSchema = z33.object({
|
|
3090
|
+
stats: z33.array(SeverityStatsSchema),
|
|
3091
|
+
successful: z33.number().int().optional(),
|
|
3092
|
+
failed: z33.number().int().optional(),
|
|
3093
|
+
total_attacks: z33.number().int().optional()
|
|
3094
|
+
}).passthrough();
|
|
3095
|
+
var ComplianceTechniqueSchema = z33.object({
|
|
3096
|
+
id: z33.string(),
|
|
3097
|
+
display_name: z33.string(),
|
|
3098
|
+
compliance_id: z33.string(),
|
|
3099
|
+
description: z33.string(),
|
|
3100
|
+
link: z33.string(),
|
|
3101
|
+
version: z33.string(),
|
|
3102
|
+
active: z33.boolean(),
|
|
3103
|
+
successful: z33.number().int().optional(),
|
|
3104
|
+
failed: z33.number().int().optional(),
|
|
3105
|
+
total: z33.number().int().optional()
|
|
3106
|
+
}).passthrough();
|
|
3107
|
+
var ComplianceReportSchema = z33.object({
|
|
3108
|
+
id: z33.string(),
|
|
3109
|
+
display_name: z33.string(),
|
|
3110
|
+
description: z33.string(),
|
|
3111
|
+
active: z33.boolean(),
|
|
3112
|
+
version: z33.string(),
|
|
3113
|
+
link: z33.string(),
|
|
3114
|
+
techniques: z33.array(ComplianceTechniqueSchema),
|
|
3115
|
+
score: z33.number().int().optional()
|
|
3116
|
+
}).passthrough();
|
|
3117
|
+
var RuntimeSecurityPolicySchema = z33.object({
|
|
3118
|
+
policy_id: z33.string(),
|
|
3119
|
+
display_name: z33.string(),
|
|
3120
|
+
config: z33.record(z33.unknown())
|
|
3121
|
+
}).passthrough();
|
|
3122
|
+
var StaticJobRemediationSchema = z33.object({
|
|
3123
|
+
remediation: z33.string(),
|
|
3124
|
+
description: z33.string(),
|
|
3125
|
+
mapping_remediation_id: z33.string().nullable().optional(),
|
|
3126
|
+
subcategories: z33.array(z33.string()).nullable().optional(),
|
|
3127
|
+
effectiveness: z33.number().int().optional(),
|
|
3128
|
+
ease_of_implementation: z33.number().int().optional(),
|
|
3129
|
+
priority: z33.number().int().optional(),
|
|
3130
|
+
resource_links: z33.array(z33.string()).optional(),
|
|
3131
|
+
categories: z33.array(z33.string()).nullable().optional()
|
|
3132
|
+
}).passthrough();
|
|
3133
|
+
var StaticJobRemediationRecommendationSchema = z33.object({
|
|
3134
|
+
runtime_security_policy_configuration: z33.array(RuntimeSecurityPolicySchema).nullable().optional(),
|
|
3135
|
+
other_measures: z33.array(StaticJobRemediationSchema).optional()
|
|
3136
|
+
}).passthrough();
|
|
3137
|
+
var StaticJobReportSchema = z33.object({
|
|
3061
3138
|
severity_report: SeverityReportSchema,
|
|
3062
|
-
asr:
|
|
3063
|
-
score:
|
|
3139
|
+
asr: z33.number().nullable().optional(),
|
|
3140
|
+
score: z33.number().nullable().optional(),
|
|
3064
3141
|
security_report: CategoryReportSchema.nullable().optional(),
|
|
3065
3142
|
safety_report: CategoryReportSchema.nullable().optional(),
|
|
3066
3143
|
brand_report: CategoryReportSchema.nullable().optional(),
|
|
3067
|
-
compliance_report:
|
|
3068
|
-
report_summary:
|
|
3144
|
+
compliance_report: z33.array(ComplianceReportSchema).nullable().optional(),
|
|
3145
|
+
report_summary: z33.string().nullable().optional(),
|
|
3069
3146
|
recommendations: StaticJobRemediationRecommendationSchema.nullable().optional()
|
|
3070
3147
|
}).passthrough();
|
|
3071
|
-
var DynamicJobReportSchema =
|
|
3072
|
-
total_goals:
|
|
3073
|
-
total_streams:
|
|
3074
|
-
total_threats:
|
|
3075
|
-
goals_achieved:
|
|
3076
|
-
report_summary:
|
|
3077
|
-
score:
|
|
3078
|
-
asr:
|
|
3079
|
-
}).passthrough();
|
|
3080
|
-
var RemediationDetailSchema =
|
|
3081
|
-
remediation:
|
|
3082
|
-
description:
|
|
3083
|
-
resource_links:
|
|
3084
|
-
priority_level:
|
|
3085
|
-
ease_of_implementation_level:
|
|
3086
|
-
effectiveness_level:
|
|
3087
|
-
}).passthrough();
|
|
3088
|
-
var RemediationResponseSchema =
|
|
3089
|
-
var RuntimeSecurityProfileResponseSchema =
|
|
3090
|
-
runtime_security_profile:
|
|
3091
|
-
}).passthrough();
|
|
3092
|
-
var GoalSchema =
|
|
3093
|
-
goal:
|
|
3094
|
-
safe_response:
|
|
3095
|
-
jailbroken_response:
|
|
3096
|
-
goal_metadata:
|
|
3097
|
-
custom_goal:
|
|
3098
|
-
goal_type:
|
|
3099
|
-
uuid:
|
|
3100
|
-
tsg_id:
|
|
3101
|
-
job_id:
|
|
3102
|
-
goal_to_show:
|
|
3103
|
-
threat:
|
|
3104
|
-
version:
|
|
3105
|
-
extra_info:
|
|
3106
|
-
}).passthrough();
|
|
3107
|
-
var GoalListResponseSchema =
|
|
3108
|
-
var StreamIterationDataSchema =
|
|
3109
|
-
uuid:
|
|
3110
|
-
tsg_id:
|
|
3111
|
-
job_id:
|
|
3112
|
-
stream_id:
|
|
3113
|
-
goal_id:
|
|
3114
|
-
iteration:
|
|
3115
|
-
prompt:
|
|
3116
|
-
techniques:
|
|
3117
|
-
improvement:
|
|
3118
|
-
prompts_objective:
|
|
3119
|
-
summary:
|
|
3120
|
-
output:
|
|
3121
|
-
score:
|
|
3122
|
-
judge_reasoning:
|
|
3123
|
-
threat:
|
|
3124
|
-
created_at:
|
|
3125
|
-
updated_at:
|
|
3126
|
-
extra_info:
|
|
3127
|
-
version:
|
|
3128
|
-
}).passthrough();
|
|
3129
|
-
var StreamDetailResponseSchema =
|
|
3130
|
-
uuid:
|
|
3131
|
-
tsg_id:
|
|
3132
|
-
job_id:
|
|
3133
|
-
target_id:
|
|
3134
|
-
goal_id:
|
|
3135
|
-
stream_idx:
|
|
3136
|
-
iteration:
|
|
3137
|
-
goal:
|
|
3138
|
-
marked_safe:
|
|
3139
|
-
stream_type:
|
|
3140
|
-
threat:
|
|
3148
|
+
var DynamicJobReportSchema = z33.object({
|
|
3149
|
+
total_goals: z33.number().int().optional(),
|
|
3150
|
+
total_streams: z33.number().int().optional(),
|
|
3151
|
+
total_threats: z33.number().int().optional(),
|
|
3152
|
+
goals_achieved: z33.number().int().optional(),
|
|
3153
|
+
report_summary: z33.string().nullable().optional(),
|
|
3154
|
+
score: z33.number().optional(),
|
|
3155
|
+
asr: z33.number().optional()
|
|
3156
|
+
}).passthrough();
|
|
3157
|
+
var RemediationDetailSchema = z33.object({
|
|
3158
|
+
remediation: z33.string(),
|
|
3159
|
+
description: z33.string(),
|
|
3160
|
+
resource_links: z33.array(z33.string()).optional(),
|
|
3161
|
+
priority_level: z33.string().optional(),
|
|
3162
|
+
ease_of_implementation_level: z33.string().optional(),
|
|
3163
|
+
effectiveness_level: z33.string().optional()
|
|
3164
|
+
}).passthrough();
|
|
3165
|
+
var RemediationResponseSchema = z33.object({ remediations: z33.array(RemediationDetailSchema).optional() }).passthrough();
|
|
3166
|
+
var RuntimeSecurityProfileResponseSchema = z33.object({
|
|
3167
|
+
runtime_security_profile: z33.array(RuntimeSecurityPolicySchema).nullable().optional()
|
|
3168
|
+
}).passthrough();
|
|
3169
|
+
var GoalSchema = z33.object({
|
|
3170
|
+
goal: z33.string(),
|
|
3171
|
+
safe_response: z33.string(),
|
|
3172
|
+
jailbroken_response: z33.string(),
|
|
3173
|
+
goal_metadata: z33.record(z33.unknown()).optional(),
|
|
3174
|
+
custom_goal: z33.boolean().optional(),
|
|
3175
|
+
goal_type: z33.string().optional(),
|
|
3176
|
+
uuid: z33.string(),
|
|
3177
|
+
tsg_id: z33.string(),
|
|
3178
|
+
job_id: z33.string(),
|
|
3179
|
+
goal_to_show: z33.string().nullable().optional(),
|
|
3180
|
+
threat: z33.boolean().optional(),
|
|
3181
|
+
version: z33.number().int().nullable().optional(),
|
|
3182
|
+
extra_info: z33.record(z33.unknown()).nullable().optional()
|
|
3183
|
+
}).passthrough();
|
|
3184
|
+
var GoalListResponseSchema = z33.object({ pagination: RedTeamPaginationSchema, data: z33.array(GoalSchema) }).passthrough();
|
|
3185
|
+
var StreamIterationDataSchema = z33.object({
|
|
3186
|
+
uuid: z33.string(),
|
|
3187
|
+
tsg_id: z33.string(),
|
|
3188
|
+
job_id: z33.string(),
|
|
3189
|
+
stream_id: z33.string(),
|
|
3190
|
+
goal_id: z33.string(),
|
|
3191
|
+
iteration: z33.number().int(),
|
|
3192
|
+
prompt: z33.string(),
|
|
3193
|
+
techniques: z33.string(),
|
|
3194
|
+
improvement: z33.string(),
|
|
3195
|
+
prompts_objective: z33.string(),
|
|
3196
|
+
summary: z33.string(),
|
|
3197
|
+
output: z33.string().nullable().optional(),
|
|
3198
|
+
score: z33.number().int().nullable().optional(),
|
|
3199
|
+
judge_reasoning: z33.string().nullable().optional(),
|
|
3200
|
+
threat: z33.boolean().optional(),
|
|
3201
|
+
created_at: z33.string().nullable().optional(),
|
|
3202
|
+
updated_at: z33.string().nullable().optional(),
|
|
3203
|
+
extra_info: z33.record(z33.unknown()).nullable().optional(),
|
|
3204
|
+
version: z33.number().int().nullable().optional()
|
|
3205
|
+
}).passthrough();
|
|
3206
|
+
var StreamDetailResponseSchema = z33.object({
|
|
3207
|
+
uuid: z33.string(),
|
|
3208
|
+
tsg_id: z33.string(),
|
|
3209
|
+
job_id: z33.string(),
|
|
3210
|
+
target_id: z33.string(),
|
|
3211
|
+
goal_id: z33.string(),
|
|
3212
|
+
stream_idx: z33.number().int().optional(),
|
|
3213
|
+
iteration: z33.number().int().optional(),
|
|
3214
|
+
goal: z33.unknown().optional(),
|
|
3215
|
+
marked_safe: z33.boolean().optional(),
|
|
3216
|
+
stream_type: z33.string().nullable().optional(),
|
|
3217
|
+
threat: z33.boolean().optional(),
|
|
3141
3218
|
first_threat_iteration: StreamIterationDataSchema.nullable().optional(),
|
|
3142
|
-
created_at:
|
|
3143
|
-
updated_at:
|
|
3144
|
-
extra_info:
|
|
3145
|
-
version:
|
|
3146
|
-
iterations:
|
|
3147
|
-
}).passthrough();
|
|
3148
|
-
var StreamListResponseSchema =
|
|
3149
|
-
var CustomAttackOutputSchema =
|
|
3150
|
-
uuid:
|
|
3151
|
-
tsg_id:
|
|
3152
|
-
custom_attack_id:
|
|
3153
|
-
job_id:
|
|
3154
|
-
target_id:
|
|
3155
|
-
output:
|
|
3156
|
-
threat:
|
|
3157
|
-
marked_safe:
|
|
3158
|
-
}).passthrough();
|
|
3159
|
-
var PropertyAssignmentSchema =
|
|
3160
|
-
name:
|
|
3161
|
-
value:
|
|
3162
|
-
}).passthrough();
|
|
3163
|
-
var PropertyValueStatisticSchema =
|
|
3164
|
-
value:
|
|
3165
|
-
successful_attack_count:
|
|
3166
|
-
total_attack_count:
|
|
3167
|
-
success_rate:
|
|
3168
|
-
}).passthrough();
|
|
3169
|
-
var PropertyStatisticSchema =
|
|
3170
|
-
property_name:
|
|
3171
|
-
values:
|
|
3172
|
-
}).passthrough();
|
|
3173
|
-
var PromptSetSummarySchema =
|
|
3174
|
-
prompt_set_id:
|
|
3175
|
-
prompt_set_name:
|
|
3176
|
-
total_prompts:
|
|
3177
|
-
total_attacks:
|
|
3178
|
-
total_threats:
|
|
3179
|
-
failed_attacks:
|
|
3180
|
-
threat_rate:
|
|
3181
|
-
property_names:
|
|
3182
|
-
property_statistics:
|
|
3183
|
-
}).passthrough();
|
|
3184
|
-
var CustomAttackReportResponseSchema =
|
|
3185
|
-
total_prompts:
|
|
3186
|
-
total_attacks:
|
|
3187
|
-
total_threats:
|
|
3188
|
-
failed_attacks:
|
|
3189
|
-
score:
|
|
3190
|
-
asr:
|
|
3191
|
-
custom_attack_reports:
|
|
3192
|
-
property_statistics:
|
|
3193
|
-
}).passthrough();
|
|
3194
|
-
var PromptSetsReportResponseSchema =
|
|
3195
|
-
prompt_sets:
|
|
3196
|
-
total_prompt_sets:
|
|
3197
|
-
applied_filters:
|
|
3198
|
-
}).passthrough();
|
|
3199
|
-
var PromptDetailResponseSchema =
|
|
3200
|
-
prompt_id:
|
|
3201
|
-
prompt_text:
|
|
3202
|
-
goal:
|
|
3203
|
-
user_defined_goal:
|
|
3204
|
-
properties:
|
|
3205
|
-
attack_id:
|
|
3206
|
-
threat:
|
|
3207
|
-
attack_outputs:
|
|
3208
|
-
asr:
|
|
3209
|
-
prompt_set_id:
|
|
3210
|
-
prompt_set_name:
|
|
3211
|
-
}).passthrough();
|
|
3212
|
-
var CustomAttacksListResponseSchema =
|
|
3219
|
+
created_at: z33.string().nullable().optional(),
|
|
3220
|
+
updated_at: z33.string().nullable().optional(),
|
|
3221
|
+
extra_info: z33.record(z33.unknown()).optional(),
|
|
3222
|
+
version: z33.number().int().nullable().optional(),
|
|
3223
|
+
iterations: z33.array(StreamIterationDataSchema).optional()
|
|
3224
|
+
}).passthrough();
|
|
3225
|
+
var StreamListResponseSchema = z33.object({ pagination: RedTeamPaginationSchema, data: z33.array(StreamDetailResponseSchema) }).passthrough();
|
|
3226
|
+
var CustomAttackOutputSchema = z33.object({
|
|
3227
|
+
uuid: z33.string(),
|
|
3228
|
+
tsg_id: z33.string(),
|
|
3229
|
+
custom_attack_id: z33.string(),
|
|
3230
|
+
job_id: z33.string(),
|
|
3231
|
+
target_id: z33.string(),
|
|
3232
|
+
output: z33.string(),
|
|
3233
|
+
threat: z33.boolean().nullable().optional(),
|
|
3234
|
+
marked_safe: z33.boolean().nullable().optional()
|
|
3235
|
+
}).passthrough();
|
|
3236
|
+
var PropertyAssignmentSchema = z33.object({
|
|
3237
|
+
name: z33.string(),
|
|
3238
|
+
value: z33.string()
|
|
3239
|
+
}).passthrough();
|
|
3240
|
+
var PropertyValueStatisticSchema = z33.object({
|
|
3241
|
+
value: z33.string(),
|
|
3242
|
+
successful_attack_count: z33.number().int(),
|
|
3243
|
+
total_attack_count: z33.number().int(),
|
|
3244
|
+
success_rate: z33.number()
|
|
3245
|
+
}).passthrough();
|
|
3246
|
+
var PropertyStatisticSchema = z33.object({
|
|
3247
|
+
property_name: z33.string(),
|
|
3248
|
+
values: z33.array(PropertyValueStatisticSchema)
|
|
3249
|
+
}).passthrough();
|
|
3250
|
+
var PromptSetSummarySchema = z33.object({
|
|
3251
|
+
prompt_set_id: z33.string(),
|
|
3252
|
+
prompt_set_name: z33.string(),
|
|
3253
|
+
total_prompts: z33.number().int(),
|
|
3254
|
+
total_attacks: z33.number().int(),
|
|
3255
|
+
total_threats: z33.number().int(),
|
|
3256
|
+
failed_attacks: z33.number().int(),
|
|
3257
|
+
threat_rate: z33.number(),
|
|
3258
|
+
property_names: z33.array(z33.string()).optional(),
|
|
3259
|
+
property_statistics: z33.array(PropertyStatisticSchema).optional()
|
|
3260
|
+
}).passthrough();
|
|
3261
|
+
var CustomAttackReportResponseSchema = z33.object({
|
|
3262
|
+
total_prompts: z33.number().int(),
|
|
3263
|
+
total_attacks: z33.number().int(),
|
|
3264
|
+
total_threats: z33.number().int(),
|
|
3265
|
+
failed_attacks: z33.number().int(),
|
|
3266
|
+
score: z33.number(),
|
|
3267
|
+
asr: z33.number(),
|
|
3268
|
+
custom_attack_reports: z33.array(PromptSetSummarySchema).optional(),
|
|
3269
|
+
property_statistics: z33.array(PropertyStatisticSchema).optional()
|
|
3270
|
+
}).passthrough();
|
|
3271
|
+
var PromptSetsReportResponseSchema = z33.object({
|
|
3272
|
+
prompt_sets: z33.array(PromptSetSummarySchema),
|
|
3273
|
+
total_prompt_sets: z33.number().int(),
|
|
3274
|
+
applied_filters: z33.record(z33.unknown()).optional()
|
|
3275
|
+
}).passthrough();
|
|
3276
|
+
var PromptDetailResponseSchema = z33.object({
|
|
3277
|
+
prompt_id: z33.string(),
|
|
3278
|
+
prompt_text: z33.string(),
|
|
3279
|
+
goal: z33.string().nullable().optional(),
|
|
3280
|
+
user_defined_goal: z33.boolean().optional(),
|
|
3281
|
+
properties: z33.array(PropertyAssignmentSchema).optional(),
|
|
3282
|
+
attack_id: z33.string().nullable().optional(),
|
|
3283
|
+
threat: z33.boolean().nullable().optional(),
|
|
3284
|
+
attack_outputs: z33.array(CustomAttackOutputSchema).optional(),
|
|
3285
|
+
asr: z33.number().nullable().optional(),
|
|
3286
|
+
prompt_set_id: z33.string().nullable().optional(),
|
|
3287
|
+
prompt_set_name: z33.string().nullable().optional()
|
|
3288
|
+
}).passthrough();
|
|
3289
|
+
var CustomAttacksListResponseSchema = z33.object({
|
|
3213
3290
|
pagination: RedTeamPaginationSchema,
|
|
3214
|
-
data:
|
|
3215
|
-
total_attacks:
|
|
3216
|
-
total_threats:
|
|
3217
|
-
}).passthrough();
|
|
3218
|
-
var RiskLevelSchema =
|
|
3219
|
-
risk_rating:
|
|
3220
|
-
total:
|
|
3221
|
-
targets_by_type:
|
|
3222
|
-
}).passthrough();
|
|
3223
|
-
var ScanStatisticsResponseSchema =
|
|
3224
|
-
total_scans:
|
|
3225
|
-
targets_scanned:
|
|
3226
|
-
targets_scanned_by_type:
|
|
3227
|
-
scan_status:
|
|
3228
|
-
risk_profile:
|
|
3229
|
-
}).passthrough();
|
|
3230
|
-
var ScoreTrendSeriesSchema =
|
|
3231
|
-
label:
|
|
3232
|
-
data:
|
|
3233
|
-
}).passthrough();
|
|
3234
|
-
var ScoreTrendResponseSchema =
|
|
3235
|
-
labels:
|
|
3236
|
-
series:
|
|
3237
|
-
}).passthrough();
|
|
3238
|
-
var SentimentRequestSchema =
|
|
3239
|
-
job_id:
|
|
3240
|
-
up_vote:
|
|
3241
|
-
down_vote:
|
|
3242
|
-
}).passthrough();
|
|
3243
|
-
var SentimentResponseSchema =
|
|
3244
|
-
job_id:
|
|
3245
|
-
up_vote:
|
|
3246
|
-
down_vote:
|
|
3247
|
-
}).passthrough();
|
|
3248
|
-
var QuotaDetailsSchema =
|
|
3249
|
-
allocated:
|
|
3250
|
-
unlimited:
|
|
3251
|
-
consumed:
|
|
3252
|
-
}).passthrough();
|
|
3253
|
-
var QuotaSummarySchema =
|
|
3291
|
+
data: z33.array(z33.unknown()),
|
|
3292
|
+
total_attacks: z33.number().int(),
|
|
3293
|
+
total_threats: z33.number().int()
|
|
3294
|
+
}).passthrough();
|
|
3295
|
+
var RiskLevelSchema = z33.object({
|
|
3296
|
+
risk_rating: z33.string(),
|
|
3297
|
+
total: z33.number().int(),
|
|
3298
|
+
targets_by_type: z33.array(CountByNameSchema).optional()
|
|
3299
|
+
}).passthrough();
|
|
3300
|
+
var ScanStatisticsResponseSchema = z33.object({
|
|
3301
|
+
total_scans: z33.number().int(),
|
|
3302
|
+
targets_scanned: z33.number().int(),
|
|
3303
|
+
targets_scanned_by_type: z33.array(CountByNameSchema).optional(),
|
|
3304
|
+
scan_status: z33.array(CountByNameSchema).optional(),
|
|
3305
|
+
risk_profile: z33.array(RiskLevelSchema).optional()
|
|
3306
|
+
}).passthrough();
|
|
3307
|
+
var ScoreTrendSeriesSchema = z33.object({
|
|
3308
|
+
label: z33.string(),
|
|
3309
|
+
data: z33.array(z33.number().nullable())
|
|
3310
|
+
}).passthrough();
|
|
3311
|
+
var ScoreTrendResponseSchema = z33.object({
|
|
3312
|
+
labels: z33.array(z33.string()),
|
|
3313
|
+
series: z33.array(ScoreTrendSeriesSchema)
|
|
3314
|
+
}).passthrough();
|
|
3315
|
+
var SentimentRequestSchema = z33.object({
|
|
3316
|
+
job_id: z33.string(),
|
|
3317
|
+
up_vote: z33.boolean().optional(),
|
|
3318
|
+
down_vote: z33.boolean().optional()
|
|
3319
|
+
}).passthrough();
|
|
3320
|
+
var SentimentResponseSchema = z33.object({
|
|
3321
|
+
job_id: z33.string(),
|
|
3322
|
+
up_vote: z33.boolean().optional(),
|
|
3323
|
+
down_vote: z33.boolean().optional()
|
|
3324
|
+
}).passthrough();
|
|
3325
|
+
var QuotaDetailsSchema = z33.object({
|
|
3326
|
+
allocated: z33.number().int(),
|
|
3327
|
+
unlimited: z33.boolean(),
|
|
3328
|
+
consumed: z33.number().int()
|
|
3329
|
+
}).passthrough();
|
|
3330
|
+
var QuotaSummarySchema = z33.object({
|
|
3254
3331
|
static: QuotaDetailsSchema,
|
|
3255
3332
|
dynamic: QuotaDetailsSchema,
|
|
3256
3333
|
custom: QuotaDetailsSchema
|
|
3257
3334
|
}).passthrough();
|
|
3258
|
-
var ErrorLogSchema =
|
|
3259
|
-
created_at:
|
|
3260
|
-
updated_at:
|
|
3261
|
-
job_id:
|
|
3262
|
-
target_id:
|
|
3263
|
-
target_version:
|
|
3264
|
-
attack_id:
|
|
3265
|
-
error_type:
|
|
3266
|
-
error_source:
|
|
3267
|
-
error_message:
|
|
3268
|
-
target_object:
|
|
3269
|
-
extra_info:
|
|
3270
|
-
version:
|
|
3271
|
-
}).passthrough();
|
|
3272
|
-
var ErrorLogListResponseSchema =
|
|
3335
|
+
var ErrorLogSchema = z33.object({
|
|
3336
|
+
created_at: z33.string(),
|
|
3337
|
+
updated_at: z33.string(),
|
|
3338
|
+
job_id: z33.string().nullable().optional(),
|
|
3339
|
+
target_id: z33.string().nullable().optional(),
|
|
3340
|
+
target_version: z33.number().int().nullable().optional(),
|
|
3341
|
+
attack_id: z33.string().nullable().optional(),
|
|
3342
|
+
error_type: z33.string().nullable().optional(),
|
|
3343
|
+
error_source: z33.string().nullable().optional(),
|
|
3344
|
+
error_message: z33.string().nullable().optional(),
|
|
3345
|
+
target_object: z33.record(z33.unknown()).nullable().optional(),
|
|
3346
|
+
extra_info: z33.record(z33.unknown()).nullable().optional(),
|
|
3347
|
+
version: z33.number().int().optional()
|
|
3348
|
+
}).passthrough();
|
|
3349
|
+
var ErrorLogListResponseSchema = z33.object({ pagination: RedTeamPaginationSchema, data: z33.array(ErrorLogSchema) }).passthrough();
|
|
3273
3350
|
var TargetRequestBaseFields = {
|
|
3274
|
-
name:
|
|
3275
|
-
description:
|
|
3276
|
-
target_type:
|
|
3277
|
-
connection_type:
|
|
3278
|
-
api_endpoint_type:
|
|
3279
|
-
response_mode:
|
|
3280
|
-
connection_params:
|
|
3281
|
-
session_supported:
|
|
3351
|
+
name: z33.string(),
|
|
3352
|
+
description: z33.string().nullable().optional(),
|
|
3353
|
+
target_type: z33.string().nullable().optional(),
|
|
3354
|
+
connection_type: z33.string().nullable().optional(),
|
|
3355
|
+
api_endpoint_type: z33.string().nullable().optional(),
|
|
3356
|
+
response_mode: z33.string().nullable().optional(),
|
|
3357
|
+
connection_params: z33.union([RestConnectionParamsSchema, StreamingConnectionParamsSchema]).nullable().optional(),
|
|
3358
|
+
session_supported: z33.boolean().optional(),
|
|
3282
3359
|
target_metadata: TargetMetadataSchema.optional(),
|
|
3283
3360
|
target_background: TargetBackgroundSchema.nullable().optional(),
|
|
3284
3361
|
additional_context: TargetAdditionalContextSchema.nullable().optional(),
|
|
3285
|
-
extra_info:
|
|
3286
|
-
network_broker_channel_uuid:
|
|
3362
|
+
extra_info: z33.record(z33.unknown()).nullable().optional(),
|
|
3363
|
+
network_broker_channel_uuid: z33.string().nullable().optional()
|
|
3287
3364
|
};
|
|
3288
|
-
var TargetCreateRequestSchema =
|
|
3289
|
-
var TargetUpdateRequestSchema =
|
|
3290
|
-
var TargetContextUpdateSchema =
|
|
3365
|
+
var TargetCreateRequestSchema = z33.object(TargetRequestBaseFields).strict();
|
|
3366
|
+
var TargetUpdateRequestSchema = z33.object(TargetRequestBaseFields).strict();
|
|
3367
|
+
var TargetContextUpdateSchema = z33.object({
|
|
3291
3368
|
target_background: TargetBackgroundSchema.nullable().optional(),
|
|
3292
3369
|
additional_context: TargetAdditionalContextSchema.nullable().optional()
|
|
3293
3370
|
}).passthrough();
|
|
3294
|
-
var TargetResponseSchema =
|
|
3295
|
-
uuid:
|
|
3296
|
-
tsg_id:
|
|
3297
|
-
name:
|
|
3298
|
-
status:
|
|
3299
|
-
active:
|
|
3300
|
-
validated:
|
|
3301
|
-
created_at:
|
|
3302
|
-
updated_at:
|
|
3303
|
-
description:
|
|
3304
|
-
target_type:
|
|
3305
|
-
connection_type:
|
|
3306
|
-
api_endpoint_type:
|
|
3307
|
-
response_mode:
|
|
3308
|
-
session_supported:
|
|
3309
|
-
extra_info:
|
|
3310
|
-
version:
|
|
3311
|
-
secret_version:
|
|
3312
|
-
created_by_user_id:
|
|
3313
|
-
updated_by_user_id:
|
|
3314
|
-
target_metadata:
|
|
3315
|
-
target_background:
|
|
3316
|
-
profiling_status:
|
|
3317
|
-
additional_context:
|
|
3318
|
-
auth_type:
|
|
3319
|
-
}).passthrough();
|
|
3320
|
-
var TargetListItemSchema =
|
|
3321
|
-
uuid:
|
|
3322
|
-
tsg_id:
|
|
3323
|
-
name:
|
|
3324
|
-
status:
|
|
3325
|
-
active:
|
|
3326
|
-
validated:
|
|
3327
|
-
created_at:
|
|
3328
|
-
updated_at:
|
|
3329
|
-
description:
|
|
3330
|
-
target_type:
|
|
3331
|
-
connection_type:
|
|
3332
|
-
api_endpoint_type:
|
|
3333
|
-
response_mode:
|
|
3334
|
-
session_supported:
|
|
3335
|
-
extra_info:
|
|
3336
|
-
version:
|
|
3337
|
-
secret_version:
|
|
3338
|
-
created_by_user_id:
|
|
3339
|
-
updated_by_user_id:
|
|
3340
|
-
auth_type:
|
|
3341
|
-
}).passthrough();
|
|
3342
|
-
var TargetListSchema =
|
|
3343
|
-
var TargetProbeRequestSchema =
|
|
3371
|
+
var TargetResponseSchema = z33.object({
|
|
3372
|
+
uuid: z33.string(),
|
|
3373
|
+
tsg_id: z33.string(),
|
|
3374
|
+
name: z33.string(),
|
|
3375
|
+
status: z33.unknown(),
|
|
3376
|
+
active: z33.boolean(),
|
|
3377
|
+
validated: z33.boolean(),
|
|
3378
|
+
created_at: z33.string(),
|
|
3379
|
+
updated_at: z33.string(),
|
|
3380
|
+
description: z33.unknown().optional(),
|
|
3381
|
+
target_type: z33.unknown().optional(),
|
|
3382
|
+
connection_type: z33.unknown().optional(),
|
|
3383
|
+
api_endpoint_type: z33.unknown().optional(),
|
|
3384
|
+
response_mode: z33.unknown().optional(),
|
|
3385
|
+
session_supported: z33.boolean().optional(),
|
|
3386
|
+
extra_info: z33.unknown().optional(),
|
|
3387
|
+
version: z33.unknown().optional(),
|
|
3388
|
+
secret_version: z33.unknown().optional(),
|
|
3389
|
+
created_by_user_id: z33.unknown().optional(),
|
|
3390
|
+
updated_by_user_id: z33.unknown().optional(),
|
|
3391
|
+
target_metadata: z33.unknown().optional(),
|
|
3392
|
+
target_background: z33.unknown().optional(),
|
|
3393
|
+
profiling_status: z33.unknown().optional(),
|
|
3394
|
+
additional_context: z33.unknown().optional(),
|
|
3395
|
+
auth_type: z33.string().nullable().optional()
|
|
3396
|
+
}).passthrough();
|
|
3397
|
+
var TargetListItemSchema = z33.object({
|
|
3398
|
+
uuid: z33.string(),
|
|
3399
|
+
tsg_id: z33.string(),
|
|
3400
|
+
name: z33.string(),
|
|
3401
|
+
status: z33.unknown(),
|
|
3402
|
+
active: z33.boolean(),
|
|
3403
|
+
validated: z33.boolean(),
|
|
3404
|
+
created_at: z33.string(),
|
|
3405
|
+
updated_at: z33.string(),
|
|
3406
|
+
description: z33.unknown().optional(),
|
|
3407
|
+
target_type: z33.unknown().optional(),
|
|
3408
|
+
connection_type: z33.unknown().optional(),
|
|
3409
|
+
api_endpoint_type: z33.unknown().optional(),
|
|
3410
|
+
response_mode: z33.unknown().optional(),
|
|
3411
|
+
session_supported: z33.boolean().optional(),
|
|
3412
|
+
extra_info: z33.unknown().optional(),
|
|
3413
|
+
version: z33.unknown().optional(),
|
|
3414
|
+
secret_version: z33.unknown().optional(),
|
|
3415
|
+
created_by_user_id: z33.unknown().optional(),
|
|
3416
|
+
updated_by_user_id: z33.unknown().optional(),
|
|
3417
|
+
auth_type: z33.string().nullable().optional()
|
|
3418
|
+
}).passthrough();
|
|
3419
|
+
var TargetListSchema = z33.object({ pagination: RedTeamPaginationSchema, data: z33.array(TargetListItemSchema).optional() }).passthrough();
|
|
3420
|
+
var TargetProbeRequestSchema = z33.object({
|
|
3344
3421
|
...TargetRequestBaseFields,
|
|
3345
|
-
uuid:
|
|
3346
|
-
probe_fields:
|
|
3422
|
+
uuid: z33.string().nullable().optional(),
|
|
3423
|
+
probe_fields: z33.array(z33.string()).nullable().optional()
|
|
3347
3424
|
}).strict();
|
|
3348
|
-
var TargetAuthValidationRequestSchema =
|
|
3349
|
-
auth_type:
|
|
3350
|
-
auth_config:
|
|
3351
|
-
target_id:
|
|
3352
|
-
network_broker_channel_uuid:
|
|
3353
|
-
}).passthrough();
|
|
3354
|
-
var TargetAuthValidationResponseSchema =
|
|
3355
|
-
validated:
|
|
3356
|
-
token_preview:
|
|
3357
|
-
expires_in:
|
|
3358
|
-
}).passthrough();
|
|
3359
|
-
var TargetProfileResponseSchema =
|
|
3360
|
-
target_id:
|
|
3361
|
-
target_version:
|
|
3362
|
-
status:
|
|
3363
|
-
profiling_status:
|
|
3364
|
-
target_background:
|
|
3365
|
-
additional_context:
|
|
3366
|
-
ai_generated_fields:
|
|
3367
|
-
other_details:
|
|
3368
|
-
}).passthrough();
|
|
3369
|
-
var TargetTemplateCollectionSchema =
|
|
3370
|
-
OPENAI:
|
|
3371
|
-
HUGGING_FACE:
|
|
3372
|
-
DATABRICKS:
|
|
3373
|
-
BEDROCK:
|
|
3374
|
-
REST:
|
|
3375
|
-
STREAMING:
|
|
3376
|
-
WEBSOCKET:
|
|
3377
|
-
}).passthrough();
|
|
3378
|
-
var BaseResponseSchema =
|
|
3379
|
-
message:
|
|
3380
|
-
status:
|
|
3381
|
-
}).passthrough();
|
|
3382
|
-
var PromptSetStatsSchema =
|
|
3383
|
-
total_prompts:
|
|
3384
|
-
active_prompts:
|
|
3385
|
-
inactive_prompts:
|
|
3386
|
-
failed_prompts:
|
|
3387
|
-
validation_prompts:
|
|
3388
|
-
}).passthrough();
|
|
3389
|
-
var CustomPromptSetCreateRequestSchema =
|
|
3390
|
-
name:
|
|
3391
|
-
description:
|
|
3392
|
-
property_names:
|
|
3393
|
-
}).passthrough();
|
|
3394
|
-
var CustomPromptSetUpdateRequestSchema =
|
|
3395
|
-
name:
|
|
3396
|
-
description:
|
|
3397
|
-
archive:
|
|
3398
|
-
property_names:
|
|
3399
|
-
}).passthrough();
|
|
3400
|
-
var CustomPromptSetArchiveRequestSchema =
|
|
3401
|
-
var CustomPromptSetResponseSchema =
|
|
3402
|
-
uuid:
|
|
3403
|
-
name:
|
|
3404
|
-
active:
|
|
3405
|
-
archive:
|
|
3406
|
-
status:
|
|
3407
|
-
created_at:
|
|
3408
|
-
updated_at:
|
|
3409
|
-
description:
|
|
3410
|
-
property_names:
|
|
3411
|
-
properties:
|
|
3412
|
-
stats:
|
|
3413
|
-
extra_info:
|
|
3414
|
-
version:
|
|
3415
|
-
created_by_user_id:
|
|
3416
|
-
updated_by_user_id:
|
|
3417
|
-
}).passthrough();
|
|
3418
|
-
var CustomPromptSetListItemSchema =
|
|
3419
|
-
uuid:
|
|
3420
|
-
name:
|
|
3421
|
-
active:
|
|
3422
|
-
archive:
|
|
3423
|
-
status:
|
|
3424
|
-
created_at:
|
|
3425
|
-
updated_at:
|
|
3426
|
-
description:
|
|
3427
|
-
property_names:
|
|
3428
|
-
stats:
|
|
3429
|
-
created_by_user_id:
|
|
3430
|
-
}).passthrough();
|
|
3431
|
-
var CustomPromptSetListSchema =
|
|
3425
|
+
var TargetAuthValidationRequestSchema = z33.object({
|
|
3426
|
+
auth_type: z33.string(),
|
|
3427
|
+
auth_config: z33.unknown(),
|
|
3428
|
+
target_id: z33.string().nullable().optional(),
|
|
3429
|
+
network_broker_channel_uuid: z33.string().nullable().optional()
|
|
3430
|
+
}).passthrough();
|
|
3431
|
+
var TargetAuthValidationResponseSchema = z33.object({
|
|
3432
|
+
validated: z33.boolean(),
|
|
3433
|
+
token_preview: z33.string().nullable().optional(),
|
|
3434
|
+
expires_in: z33.number().int().nullable().optional()
|
|
3435
|
+
}).passthrough();
|
|
3436
|
+
var TargetProfileResponseSchema = z33.object({
|
|
3437
|
+
target_id: z33.string(),
|
|
3438
|
+
target_version: z33.number().int(),
|
|
3439
|
+
status: z33.string(),
|
|
3440
|
+
profiling_status: z33.unknown().optional(),
|
|
3441
|
+
target_background: z33.unknown().optional(),
|
|
3442
|
+
additional_context: z33.unknown().optional(),
|
|
3443
|
+
ai_generated_fields: z33.unknown().optional(),
|
|
3444
|
+
other_details: z33.unknown().optional()
|
|
3445
|
+
}).passthrough();
|
|
3446
|
+
var TargetTemplateCollectionSchema = z33.object({
|
|
3447
|
+
OPENAI: z33.record(z33.unknown()),
|
|
3448
|
+
HUGGING_FACE: z33.record(z33.unknown()),
|
|
3449
|
+
DATABRICKS: z33.record(z33.unknown()),
|
|
3450
|
+
BEDROCK: z33.record(z33.unknown()),
|
|
3451
|
+
REST: z33.record(z33.unknown()),
|
|
3452
|
+
STREAMING: z33.record(z33.unknown()),
|
|
3453
|
+
WEBSOCKET: z33.record(z33.unknown())
|
|
3454
|
+
}).passthrough();
|
|
3455
|
+
var BaseResponseSchema = z33.object({
|
|
3456
|
+
message: z33.string(),
|
|
3457
|
+
status: z33.number().int()
|
|
3458
|
+
}).passthrough();
|
|
3459
|
+
var PromptSetStatsSchema = z33.object({
|
|
3460
|
+
total_prompts: z33.number().int(),
|
|
3461
|
+
active_prompts: z33.number().int(),
|
|
3462
|
+
inactive_prompts: z33.number().int(),
|
|
3463
|
+
failed_prompts: z33.number().int().optional(),
|
|
3464
|
+
validation_prompts: z33.number().int().optional()
|
|
3465
|
+
}).passthrough();
|
|
3466
|
+
var CustomPromptSetCreateRequestSchema = z33.object({
|
|
3467
|
+
name: z33.string(),
|
|
3468
|
+
description: z33.unknown().optional(),
|
|
3469
|
+
property_names: z33.array(z33.string()).optional()
|
|
3470
|
+
}).passthrough();
|
|
3471
|
+
var CustomPromptSetUpdateRequestSchema = z33.object({
|
|
3472
|
+
name: z33.unknown().optional(),
|
|
3473
|
+
description: z33.unknown().optional(),
|
|
3474
|
+
archive: z33.unknown().optional(),
|
|
3475
|
+
property_names: z33.unknown().optional()
|
|
3476
|
+
}).passthrough();
|
|
3477
|
+
var CustomPromptSetArchiveRequestSchema = z33.object({ archive: z33.boolean() }).passthrough();
|
|
3478
|
+
var CustomPromptSetResponseSchema = z33.object({
|
|
3479
|
+
uuid: z33.string(),
|
|
3480
|
+
name: z33.string(),
|
|
3481
|
+
active: z33.boolean(),
|
|
3482
|
+
archive: z33.boolean(),
|
|
3483
|
+
status: z33.string(),
|
|
3484
|
+
created_at: z33.string(),
|
|
3485
|
+
updated_at: z33.string(),
|
|
3486
|
+
description: z33.unknown().optional(),
|
|
3487
|
+
property_names: z33.array(z33.string()).optional(),
|
|
3488
|
+
properties: z33.array(z33.unknown()).optional(),
|
|
3489
|
+
stats: z33.unknown().optional(),
|
|
3490
|
+
extra_info: z33.unknown().optional(),
|
|
3491
|
+
version: z33.unknown().optional(),
|
|
3492
|
+
created_by_user_id: z33.unknown().optional(),
|
|
3493
|
+
updated_by_user_id: z33.unknown().optional()
|
|
3494
|
+
}).passthrough();
|
|
3495
|
+
var CustomPromptSetListItemSchema = z33.object({
|
|
3496
|
+
uuid: z33.string(),
|
|
3497
|
+
name: z33.string(),
|
|
3498
|
+
active: z33.boolean(),
|
|
3499
|
+
archive: z33.boolean(),
|
|
3500
|
+
status: z33.string(),
|
|
3501
|
+
created_at: z33.string(),
|
|
3502
|
+
updated_at: z33.string(),
|
|
3503
|
+
description: z33.unknown().optional(),
|
|
3504
|
+
property_names: z33.array(z33.string()).optional(),
|
|
3505
|
+
stats: z33.unknown().optional(),
|
|
3506
|
+
created_by_user_id: z33.unknown().optional()
|
|
3507
|
+
}).passthrough();
|
|
3508
|
+
var CustomPromptSetListSchema = z33.object({
|
|
3432
3509
|
pagination: RedTeamPaginationSchema,
|
|
3433
|
-
data:
|
|
3434
|
-
}).passthrough();
|
|
3435
|
-
var CustomPromptSetReferenceSchema =
|
|
3436
|
-
uuid:
|
|
3437
|
-
name:
|
|
3438
|
-
status:
|
|
3439
|
-
active:
|
|
3440
|
-
tsg_id:
|
|
3441
|
-
created_at:
|
|
3442
|
-
updated_at:
|
|
3443
|
-
version:
|
|
3444
|
-
}).passthrough();
|
|
3445
|
-
var CustomPromptSetListActiveSchema =
|
|
3446
|
-
var CustomPromptSetVersionInfoSchema =
|
|
3447
|
-
uuid:
|
|
3448
|
-
status:
|
|
3449
|
-
is_latest:
|
|
3450
|
-
version:
|
|
3510
|
+
data: z33.array(CustomPromptSetListItemSchema).optional()
|
|
3511
|
+
}).passthrough();
|
|
3512
|
+
var CustomPromptSetReferenceSchema = z33.object({
|
|
3513
|
+
uuid: z33.string(),
|
|
3514
|
+
name: z33.string(),
|
|
3515
|
+
status: z33.string(),
|
|
3516
|
+
active: z33.boolean(),
|
|
3517
|
+
tsg_id: z33.string(),
|
|
3518
|
+
created_at: z33.string(),
|
|
3519
|
+
updated_at: z33.string(),
|
|
3520
|
+
version: z33.unknown().optional()
|
|
3521
|
+
}).passthrough();
|
|
3522
|
+
var CustomPromptSetListActiveSchema = z33.object({ data: z33.array(CustomPromptSetReferenceSchema).optional() }).passthrough();
|
|
3523
|
+
var CustomPromptSetVersionInfoSchema = z33.object({
|
|
3524
|
+
uuid: z33.string(),
|
|
3525
|
+
status: z33.string(),
|
|
3526
|
+
is_latest: z33.boolean(),
|
|
3527
|
+
version: z33.string().nullable().optional(),
|
|
3451
3528
|
stats: PromptSetStatsSchema.nullable().optional(),
|
|
3452
|
-
snapshot_created_at:
|
|
3453
|
-
}).passthrough();
|
|
3454
|
-
var CustomPromptCreateRequestSchema =
|
|
3455
|
-
prompt:
|
|
3456
|
-
prompt_set_id:
|
|
3457
|
-
goal:
|
|
3458
|
-
properties:
|
|
3459
|
-
}).passthrough();
|
|
3460
|
-
var CustomPromptUpdateRequestSchema =
|
|
3461
|
-
prompt:
|
|
3462
|
-
goal:
|
|
3463
|
-
properties:
|
|
3464
|
-
}).passthrough();
|
|
3465
|
-
var CustomPromptResponseSchema =
|
|
3466
|
-
uuid:
|
|
3467
|
-
prompt:
|
|
3468
|
-
user_defined_goal:
|
|
3469
|
-
status:
|
|
3470
|
-
active:
|
|
3471
|
-
prompt_set_id:
|
|
3472
|
-
created_at:
|
|
3473
|
-
updated_at:
|
|
3474
|
-
goal:
|
|
3475
|
-
properties:
|
|
3476
|
-
property_assignments:
|
|
3477
|
-
detector_category:
|
|
3478
|
-
severity:
|
|
3479
|
-
extra_info:
|
|
3480
|
-
}).passthrough();
|
|
3481
|
-
var CustomPromptListItemSchema =
|
|
3482
|
-
uuid:
|
|
3483
|
-
prompt:
|
|
3484
|
-
user_defined_goal:
|
|
3485
|
-
status:
|
|
3486
|
-
active:
|
|
3487
|
-
created_at:
|
|
3488
|
-
updated_at:
|
|
3489
|
-
goal:
|
|
3490
|
-
properties:
|
|
3491
|
-
}).passthrough();
|
|
3492
|
-
var CustomPromptListSchema =
|
|
3529
|
+
snapshot_created_at: z33.string().nullable().optional()
|
|
3530
|
+
}).passthrough();
|
|
3531
|
+
var CustomPromptCreateRequestSchema = z33.object({
|
|
3532
|
+
prompt: z33.string(),
|
|
3533
|
+
prompt_set_id: z33.string(),
|
|
3534
|
+
goal: z33.unknown().optional(),
|
|
3535
|
+
properties: z33.unknown().optional()
|
|
3536
|
+
}).passthrough();
|
|
3537
|
+
var CustomPromptUpdateRequestSchema = z33.object({
|
|
3538
|
+
prompt: z33.unknown().optional(),
|
|
3539
|
+
goal: z33.unknown().optional(),
|
|
3540
|
+
properties: z33.unknown().optional()
|
|
3541
|
+
}).passthrough();
|
|
3542
|
+
var CustomPromptResponseSchema = z33.object({
|
|
3543
|
+
uuid: z33.string(),
|
|
3544
|
+
prompt: z33.string(),
|
|
3545
|
+
user_defined_goal: z33.boolean(),
|
|
3546
|
+
status: z33.string(),
|
|
3547
|
+
active: z33.boolean(),
|
|
3548
|
+
prompt_set_id: z33.string(),
|
|
3549
|
+
created_at: z33.string(),
|
|
3550
|
+
updated_at: z33.string(),
|
|
3551
|
+
goal: z33.unknown().optional(),
|
|
3552
|
+
properties: z33.unknown().optional(),
|
|
3553
|
+
property_assignments: z33.array(z33.unknown()).optional(),
|
|
3554
|
+
detector_category: z33.unknown().optional(),
|
|
3555
|
+
severity: z33.unknown().optional(),
|
|
3556
|
+
extra_info: z33.unknown().optional()
|
|
3557
|
+
}).passthrough();
|
|
3558
|
+
var CustomPromptListItemSchema = z33.object({
|
|
3559
|
+
uuid: z33.string(),
|
|
3560
|
+
prompt: z33.string(),
|
|
3561
|
+
user_defined_goal: z33.boolean(),
|
|
3562
|
+
status: z33.string(),
|
|
3563
|
+
active: z33.boolean(),
|
|
3564
|
+
created_at: z33.string(),
|
|
3565
|
+
updated_at: z33.string(),
|
|
3566
|
+
goal: z33.unknown().optional(),
|
|
3567
|
+
properties: z33.unknown().optional()
|
|
3568
|
+
}).passthrough();
|
|
3569
|
+
var CustomPromptListSchema = z33.object({
|
|
3493
3570
|
pagination: RedTeamPaginationSchema,
|
|
3494
|
-
data:
|
|
3495
|
-
}).passthrough();
|
|
3496
|
-
var PropertyNameCreateRequestSchema =
|
|
3497
|
-
var PropertyValueCreateRequestSchema =
|
|
3498
|
-
property_name:
|
|
3499
|
-
property_value:
|
|
3500
|
-
}).passthrough();
|
|
3501
|
-
var PropertyDefinitionSchema =
|
|
3502
|
-
property_name:
|
|
3503
|
-
created_at:
|
|
3504
|
-
}).passthrough();
|
|
3505
|
-
var PropertyNamesListResponseSchema =
|
|
3506
|
-
var PropertyValuesResponseSchema =
|
|
3507
|
-
name:
|
|
3508
|
-
values:
|
|
3509
|
-
}).passthrough();
|
|
3510
|
-
var PropertyValuesMultipleResponseSchema =
|
|
3511
|
-
var DashboardOverviewResponseSchema =
|
|
3512
|
-
total_targets:
|
|
3513
|
-
targets_by_type:
|
|
3514
|
-
}).passthrough();
|
|
3515
|
-
var EulaAcceptRequestSchema =
|
|
3516
|
-
eula_content:
|
|
3517
|
-
accepted_at:
|
|
3518
|
-
}).passthrough();
|
|
3519
|
-
var EulaContentResponseSchema =
|
|
3520
|
-
content:
|
|
3521
|
-
}).passthrough();
|
|
3522
|
-
var EulaResponseSchema =
|
|
3523
|
-
uuid:
|
|
3524
|
-
is_accepted:
|
|
3525
|
-
accepted_at:
|
|
3526
|
-
accepted_by_user_id:
|
|
3527
|
-
}).passthrough();
|
|
3528
|
-
var DeviceInstanceSchema =
|
|
3529
|
-
app_id:
|
|
3530
|
-
region:
|
|
3531
|
-
tenant_id:
|
|
3532
|
-
tsg_id:
|
|
3533
|
-
}).passthrough();
|
|
3534
|
-
var DeviceLicenseSchema =
|
|
3535
|
-
authorizationCode:
|
|
3536
|
-
expirationDate:
|
|
3537
|
-
licensePanDbIdentification:
|
|
3538
|
-
partNumber:
|
|
3539
|
-
serialNumber:
|
|
3540
|
-
subtypeName:
|
|
3541
|
-
registrationDate:
|
|
3542
|
-
}).passthrough();
|
|
3543
|
-
var DeviceSchema =
|
|
3544
|
-
serial_number:
|
|
3545
|
-
model:
|
|
3546
|
-
sku:
|
|
3547
|
-
device_type:
|
|
3548
|
-
device_name:
|
|
3549
|
-
tsg_id:
|
|
3550
|
-
support_account_id:
|
|
3551
|
-
asset_type:
|
|
3552
|
-
licenses:
|
|
3553
|
-
}).passthrough();
|
|
3554
|
-
var DeviceStatusSchema =
|
|
3555
|
-
status:
|
|
3556
|
-
error:
|
|
3557
|
-
serial_number:
|
|
3558
|
-
}).passthrough();
|
|
3559
|
-
var DeviceRequestSchema =
|
|
3571
|
+
data: z33.array(CustomPromptListItemSchema).optional()
|
|
3572
|
+
}).passthrough();
|
|
3573
|
+
var PropertyNameCreateRequestSchema = z33.object({ name: z33.string() }).passthrough();
|
|
3574
|
+
var PropertyValueCreateRequestSchema = z33.object({
|
|
3575
|
+
property_name: z33.string(),
|
|
3576
|
+
property_value: z33.string()
|
|
3577
|
+
}).passthrough();
|
|
3578
|
+
var PropertyDefinitionSchema = z33.object({
|
|
3579
|
+
property_name: z33.string(),
|
|
3580
|
+
created_at: z33.string()
|
|
3581
|
+
}).passthrough();
|
|
3582
|
+
var PropertyNamesListResponseSchema = z33.object({ data: z33.array(z33.string()).optional() }).passthrough();
|
|
3583
|
+
var PropertyValuesResponseSchema = z33.object({
|
|
3584
|
+
name: z33.string(),
|
|
3585
|
+
values: z33.array(z33.string()).optional()
|
|
3586
|
+
}).passthrough();
|
|
3587
|
+
var PropertyValuesMultipleResponseSchema = z33.object({ data: z33.record(z33.array(z33.string())).optional() }).passthrough();
|
|
3588
|
+
var DashboardOverviewResponseSchema = z33.object({
|
|
3589
|
+
total_targets: z33.number().int(),
|
|
3590
|
+
targets_by_type: z33.array(CountByNameSchema).optional()
|
|
3591
|
+
}).passthrough();
|
|
3592
|
+
var EulaAcceptRequestSchema = z33.object({
|
|
3593
|
+
eula_content: z33.string(),
|
|
3594
|
+
accepted_at: z33.string().nullable().optional()
|
|
3595
|
+
}).passthrough();
|
|
3596
|
+
var EulaContentResponseSchema = z33.object({
|
|
3597
|
+
content: z33.string()
|
|
3598
|
+
}).passthrough();
|
|
3599
|
+
var EulaResponseSchema = z33.object({
|
|
3600
|
+
uuid: z33.string().nullable().optional(),
|
|
3601
|
+
is_accepted: z33.boolean(),
|
|
3602
|
+
accepted_at: z33.string().nullable().optional(),
|
|
3603
|
+
accepted_by_user_id: z33.string().nullable().optional()
|
|
3604
|
+
}).passthrough();
|
|
3605
|
+
var DeviceInstanceSchema = z33.object({
|
|
3606
|
+
app_id: z33.string(),
|
|
3607
|
+
region: z33.string(),
|
|
3608
|
+
tenant_id: z33.string(),
|
|
3609
|
+
tsg_id: z33.string()
|
|
3610
|
+
}).passthrough();
|
|
3611
|
+
var DeviceLicenseSchema = z33.object({
|
|
3612
|
+
authorizationCode: z33.string().optional(),
|
|
3613
|
+
expirationDate: z33.string().optional(),
|
|
3614
|
+
licensePanDbIdentification: z33.string().optional(),
|
|
3615
|
+
partNumber: z33.string().optional(),
|
|
3616
|
+
serialNumber: z33.string().optional(),
|
|
3617
|
+
subtypeName: z33.string().optional(),
|
|
3618
|
+
registrationDate: z33.string().optional()
|
|
3619
|
+
}).passthrough();
|
|
3620
|
+
var DeviceSchema = z33.object({
|
|
3621
|
+
serial_number: z33.string(),
|
|
3622
|
+
model: z33.string().optional(),
|
|
3623
|
+
sku: z33.string().optional(),
|
|
3624
|
+
device_type: z33.string().optional(),
|
|
3625
|
+
device_name: z33.string().optional(),
|
|
3626
|
+
tsg_id: z33.string().optional(),
|
|
3627
|
+
support_account_id: z33.string().optional(),
|
|
3628
|
+
asset_type: z33.string().optional(),
|
|
3629
|
+
licenses: z33.array(DeviceLicenseSchema).optional()
|
|
3630
|
+
}).passthrough();
|
|
3631
|
+
var DeviceStatusSchema = z33.object({
|
|
3632
|
+
status: z33.string(),
|
|
3633
|
+
error: z33.string().optional(),
|
|
3634
|
+
serial_number: z33.string().optional()
|
|
3635
|
+
}).passthrough();
|
|
3636
|
+
var DeviceRequestSchema = z33.object({
|
|
3560
3637
|
instance: DeviceInstanceSchema,
|
|
3561
|
-
created_by:
|
|
3562
|
-
devices:
|
|
3563
|
-
}).passthrough();
|
|
3564
|
-
var DeviceResponseSchema =
|
|
3565
|
-
devices:
|
|
3566
|
-
status:
|
|
3567
|
-
}).passthrough();
|
|
3568
|
-
var DeploymentProfileAttributeSchema =
|
|
3569
|
-
quantity:
|
|
3570
|
-
unit_of_measure:
|
|
3571
|
-
}).passthrough();
|
|
3572
|
-
var DeploymentProfileRequestSchema =
|
|
3573
|
-
dAuthCode:
|
|
3574
|
-
deploymentProfileId:
|
|
3575
|
-
license_expiration:
|
|
3576
|
-
profileName:
|
|
3577
|
-
subType:
|
|
3578
|
-
subscriptions:
|
|
3579
|
-
type:
|
|
3580
|
-
aveTextRecord:
|
|
3581
|
-
attributes:
|
|
3582
|
-
}).passthrough();
|
|
3583
|
-
var InstanceExtraDetailsSchema =
|
|
3584
|
-
deployment_profiles:
|
|
3585
|
-
airs_shared_by_tsg:
|
|
3586
|
-
airs_unshared_dps:
|
|
3587
|
-
}).passthrough();
|
|
3588
|
-
var InstanceRequestSchema =
|
|
3589
|
-
tsg_id:
|
|
3590
|
-
tenant_id:
|
|
3591
|
-
app_id:
|
|
3592
|
-
region:
|
|
3593
|
-
support_account_id:
|
|
3594
|
-
support_account_name:
|
|
3595
|
-
created_by:
|
|
3596
|
-
internal:
|
|
3597
|
-
tenant_instance_name:
|
|
3638
|
+
created_by: z33.string().optional(),
|
|
3639
|
+
devices: z33.array(DeviceSchema).optional()
|
|
3640
|
+
}).passthrough();
|
|
3641
|
+
var DeviceResponseSchema = z33.object({
|
|
3642
|
+
devices: z33.array(DeviceStatusSchema).optional(),
|
|
3643
|
+
status: z33.string().optional()
|
|
3644
|
+
}).passthrough();
|
|
3645
|
+
var DeploymentProfileAttributeSchema = z33.object({
|
|
3646
|
+
quantity: z33.number().optional(),
|
|
3647
|
+
unit_of_measure: z33.string().optional()
|
|
3648
|
+
}).passthrough();
|
|
3649
|
+
var DeploymentProfileRequestSchema = z33.object({
|
|
3650
|
+
dAuthCode: z33.string().optional(),
|
|
3651
|
+
deploymentProfileId: z33.string().optional(),
|
|
3652
|
+
license_expiration: z33.string().optional(),
|
|
3653
|
+
profileName: z33.string().optional(),
|
|
3654
|
+
subType: z33.string().optional(),
|
|
3655
|
+
subscriptions: z33.string().optional(),
|
|
3656
|
+
type: z33.string().optional(),
|
|
3657
|
+
aveTextRecord: z33.number().default(0),
|
|
3658
|
+
attributes: z33.array(DeploymentProfileAttributeSchema).optional()
|
|
3659
|
+
}).passthrough();
|
|
3660
|
+
var InstanceExtraDetailsSchema = z33.object({
|
|
3661
|
+
deployment_profiles: z33.array(DeploymentProfileRequestSchema).optional(),
|
|
3662
|
+
airs_shared_by_tsg: z33.string().optional(),
|
|
3663
|
+
airs_unshared_dps: z33.string().optional()
|
|
3664
|
+
}).passthrough();
|
|
3665
|
+
var InstanceRequestSchema = z33.object({
|
|
3666
|
+
tsg_id: z33.string(),
|
|
3667
|
+
tenant_id: z33.string(),
|
|
3668
|
+
app_id: z33.string(),
|
|
3669
|
+
region: z33.string(),
|
|
3670
|
+
support_account_id: z33.string().optional(),
|
|
3671
|
+
support_account_name: z33.string().optional(),
|
|
3672
|
+
created_by: z33.string().optional(),
|
|
3673
|
+
internal: z33.boolean().optional(),
|
|
3674
|
+
tenant_instance_name: z33.string().optional(),
|
|
3598
3675
|
extra: InstanceExtraDetailsSchema.optional(),
|
|
3599
|
-
iam_controlled:
|
|
3600
|
-
platform_region:
|
|
3601
|
-
csp_tenant_id:
|
|
3602
|
-
tsg_instances:
|
|
3603
|
-
}).passthrough();
|
|
3604
|
-
var InstanceResponseSchema =
|
|
3605
|
-
tsg_id:
|
|
3606
|
-
tenant_id:
|
|
3607
|
-
app_id:
|
|
3608
|
-
is_success:
|
|
3609
|
-
}).passthrough();
|
|
3610
|
-
var InstanceGetResponseSchema =
|
|
3611
|
-
tsg_id:
|
|
3612
|
-
tenant_id:
|
|
3613
|
-
app_id:
|
|
3614
|
-
region:
|
|
3615
|
-
support_account_id:
|
|
3616
|
-
support_account_name:
|
|
3617
|
-
created_by:
|
|
3618
|
-
internal:
|
|
3619
|
-
tenant_instance_name:
|
|
3620
|
-
deployment_profiles:
|
|
3621
|
-
}).passthrough();
|
|
3622
|
-
var RegistryCredentialsSchema =
|
|
3623
|
-
token:
|
|
3624
|
-
expiry:
|
|
3676
|
+
iam_controlled: z33.boolean().optional(),
|
|
3677
|
+
platform_region: z33.string().optional(),
|
|
3678
|
+
csp_tenant_id: z33.string().optional(),
|
|
3679
|
+
tsg_instances: z33.unknown().optional()
|
|
3680
|
+
}).passthrough();
|
|
3681
|
+
var InstanceResponseSchema = z33.object({
|
|
3682
|
+
tsg_id: z33.string(),
|
|
3683
|
+
tenant_id: z33.string().optional(),
|
|
3684
|
+
app_id: z33.string().optional(),
|
|
3685
|
+
is_success: z33.boolean().optional()
|
|
3686
|
+
}).passthrough();
|
|
3687
|
+
var InstanceGetResponseSchema = z33.object({
|
|
3688
|
+
tsg_id: z33.string(),
|
|
3689
|
+
tenant_id: z33.string(),
|
|
3690
|
+
app_id: z33.string(),
|
|
3691
|
+
region: z33.string(),
|
|
3692
|
+
support_account_id: z33.string().optional(),
|
|
3693
|
+
support_account_name: z33.string().optional(),
|
|
3694
|
+
created_by: z33.string().optional(),
|
|
3695
|
+
internal: z33.boolean().optional(),
|
|
3696
|
+
tenant_instance_name: z33.string().optional(),
|
|
3697
|
+
deployment_profiles: z33.array(DeploymentProfileRequestSchema).optional()
|
|
3698
|
+
}).passthrough();
|
|
3699
|
+
var RegistryCredentialsSchema = z33.object({
|
|
3700
|
+
token: z33.string(),
|
|
3701
|
+
expiry: z33.string()
|
|
3625
3702
|
}).passthrough();
|
|
3626
3703
|
|
|
3627
3704
|
// src/http/auth/oauth.ts
|
|
@@ -3646,12 +3723,12 @@ var OAuthAuth = class {
|
|
|
3646
3723
|
};
|
|
3647
3724
|
|
|
3648
3725
|
// src/models/oauth-token.ts
|
|
3649
|
-
import { z as
|
|
3650
|
-
var OAuthTokenResponseSchema =
|
|
3651
|
-
access_token:
|
|
3652
|
-
token_type:
|
|
3653
|
-
expires_in:
|
|
3654
|
-
scope:
|
|
3726
|
+
import { z as z34 } from "zod";
|
|
3727
|
+
var OAuthTokenResponseSchema = z34.object({
|
|
3728
|
+
access_token: z34.string(),
|
|
3729
|
+
token_type: z34.string().optional(),
|
|
3730
|
+
expires_in: z34.number(),
|
|
3731
|
+
scope: z34.string().optional()
|
|
3655
3732
|
}).passthrough();
|
|
3656
3733
|
|
|
3657
3734
|
// src/management/oauth-client.ts
|
|
@@ -4485,15 +4562,14 @@ var CustomerAppsClient = class {
|
|
|
4485
4562
|
* Delete a customer app.
|
|
4486
4563
|
* @param appName - Name of the customer app to delete.
|
|
4487
4564
|
* @param updatedBy - Email of user performing the deletion.
|
|
4488
|
-
* @returns
|
|
4565
|
+
* @returns Deletion confirmation message.
|
|
4489
4566
|
* @example
|
|
4490
4567
|
* ```ts
|
|
4491
4568
|
* import { ManagementClient } from '@cdot65/prisma-airs-sdk';
|
|
4492
4569
|
* const mgmt = new ManagementClient(); // reads PANW_MGMT_* env vars
|
|
4493
4570
|
*
|
|
4494
|
-
* const
|
|
4495
|
-
* // app
|
|
4496
|
-
* // { tsg_id: '1234567890', app_name: 'myapp', cloud_provider: 'aws', environment: 'prod' }
|
|
4571
|
+
* const result = await mgmt.customerApps.delete('myapp', 'user@example.com');
|
|
4572
|
+
* // result => { message: 'customer app and associated keys successfully deleted' }
|
|
4497
4573
|
* ```
|
|
4498
4574
|
*/
|
|
4499
4575
|
async delete(appName, updatedBy) {
|
|
@@ -4502,7 +4578,7 @@ var CustomerAppsClient = class {
|
|
|
4502
4578
|
baseUrl: this.baseUrl,
|
|
4503
4579
|
path: MGMT_CUSTOMER_APP_PATH,
|
|
4504
4580
|
params: { app_name: appName, updated_by: updatedBy },
|
|
4505
|
-
responseSchema:
|
|
4581
|
+
responseSchema: CustomerAppDeleteResponseSchema,
|
|
4506
4582
|
auth: this.auth,
|
|
4507
4583
|
numRetries: this.numRetries
|
|
4508
4584
|
});
|
|
@@ -4637,7 +4713,7 @@ var ScanLogsClient = class {
|
|
|
4637
4713
|
};
|
|
4638
4714
|
|
|
4639
4715
|
// src/management/oauth-management.ts
|
|
4640
|
-
import { z as
|
|
4716
|
+
import { z as z35 } from "zod";
|
|
4641
4717
|
var OAuthManagementClient = class {
|
|
4642
4718
|
baseUrl;
|
|
4643
4719
|
auth;
|
|
@@ -4671,7 +4747,7 @@ var OAuthManagementClient = class {
|
|
|
4671
4747
|
path: MGMT_OAUTH_INVALIDATE_PATH,
|
|
4672
4748
|
params: { token },
|
|
4673
4749
|
body,
|
|
4674
|
-
responseSchema:
|
|
4750
|
+
responseSchema: z35.string(),
|
|
4675
4751
|
auth: this.auth,
|
|
4676
4752
|
numRetries: this.numRetries
|
|
4677
4753
|
});
|
|
@@ -4712,6 +4788,148 @@ var OAuthManagementClient = class {
|
|
|
4712
4788
|
}
|
|
4713
4789
|
};
|
|
4714
4790
|
|
|
4791
|
+
// src/management/dashboard.ts
|
|
4792
|
+
var DashboardClient = class {
|
|
4793
|
+
baseUrl;
|
|
4794
|
+
auth;
|
|
4795
|
+
numRetries;
|
|
4796
|
+
constructor(opts) {
|
|
4797
|
+
this.baseUrl = opts.baseUrl;
|
|
4798
|
+
this.auth = opts.auth;
|
|
4799
|
+
this.numRetries = opts.numRetries;
|
|
4800
|
+
}
|
|
4801
|
+
/**
|
|
4802
|
+
* Get per-application token consumption and session activity over the requested window.
|
|
4803
|
+
*
|
|
4804
|
+
* @param query - App identity and time window. `appId` and `appName` are both required.
|
|
4805
|
+
* @returns The application overview with `token_stats`, `session_stats`, attached profiles,
|
|
4806
|
+
* and monitoring metadata.
|
|
4807
|
+
* @example
|
|
4808
|
+
* ```ts
|
|
4809
|
+
* import { ManagementClient } from '@cdot65/prisma-airs-sdk';
|
|
4810
|
+
* const mgmt = new ManagementClient(); // reads PANW_MGMT_* env vars
|
|
4811
|
+
*
|
|
4812
|
+
* const overview = await mgmt.dashboard.application({
|
|
4813
|
+
* appId: 'd8dc4033-593b-45e7-9633-e0dfc130cc82',
|
|
4814
|
+
* appName: 'chatbot',
|
|
4815
|
+
* });
|
|
4816
|
+
* // overview =>
|
|
4817
|
+
* // { name: 'chatbot', cloud: 'other', source: 'api',
|
|
4818
|
+
* // token_stats: { average_daily_tokens: 744.233, average_daily_tokens_scale: 'K',
|
|
4819
|
+
* // monthly_total_tokens: 17.71, monthly_total_tokens_scale: 'M' },
|
|
4820
|
+
* // session_stats: { total: 56935, violating: 31136, ... },
|
|
4821
|
+
* // profiles: ['ms-tuned', 'golden-v2'] }
|
|
4822
|
+
* ```
|
|
4823
|
+
*/
|
|
4824
|
+
async application(query) {
|
|
4825
|
+
return request({
|
|
4826
|
+
method: "GET",
|
|
4827
|
+
baseUrl: this.baseUrl,
|
|
4828
|
+
path: MGMT_DASHBOARD_APPLICATION_PATH,
|
|
4829
|
+
params: {
|
|
4830
|
+
appid: query.appId,
|
|
4831
|
+
appname: query.appName,
|
|
4832
|
+
time_interval: String(query.timeInterval ?? 30),
|
|
4833
|
+
time_unit: query.timeUnit ?? "days"
|
|
4834
|
+
},
|
|
4835
|
+
responseSchema: DashboardApplicationSchema,
|
|
4836
|
+
auth: this.auth,
|
|
4837
|
+
numRetries: this.numRetries
|
|
4838
|
+
});
|
|
4839
|
+
}
|
|
4840
|
+
/**
|
|
4841
|
+
* Get per-detector violation severity counts for the application over the requested window.
|
|
4842
|
+
*
|
|
4843
|
+
* @param query - App identity and time window. `appId` and `appName` are both required.
|
|
4844
|
+
* @returns The detection-type breakdown (one entry per detector observed live:
|
|
4845
|
+
* `agent_security`, `contextual_grounding`, `dbs` (database security), `dlp`,
|
|
4846
|
+
* `malicious_code`, `pi` (prompt injection), `source_code`, `tc` (toxic content),
|
|
4847
|
+
* `topic_guardrails`, `uf` (URL filtering)) plus `total_violating`. Detector set may
|
|
4848
|
+
* evolve; `.passthrough()` schemas accept additions.
|
|
4849
|
+
* @example
|
|
4850
|
+
* ```ts
|
|
4851
|
+
* import { ManagementClient } from '@cdot65/prisma-airs-sdk';
|
|
4852
|
+
* const mgmt = new ManagementClient(); // reads PANW_MGMT_* env vars
|
|
4853
|
+
*
|
|
4854
|
+
* const breakdown = await mgmt.dashboard.applicationViolationBreakdown({
|
|
4855
|
+
* appId: 'd8dc4033-593b-45e7-9633-e0dfc130cc82',
|
|
4856
|
+
* appName: 'chatbot',
|
|
4857
|
+
* });
|
|
4858
|
+
* // breakdown =>
|
|
4859
|
+
* // { detection_type_violation_breakdown: [
|
|
4860
|
+
* // { detection_type: 'topic_guardrails',
|
|
4861
|
+
* // violation_breakdown: { critical: 0, high: 0, medium: 3, low: 0, total: 3 } },
|
|
4862
|
+
* // { detection_type: 'dlp',
|
|
4863
|
+
* // violation_breakdown: { critical: 0, high: 0, medium: 0, low: 0, total: 0 } },
|
|
4864
|
+
* // ... ],
|
|
4865
|
+
* // total_violating: 3 }
|
|
4866
|
+
* ```
|
|
4867
|
+
*/
|
|
4868
|
+
async applicationViolationBreakdown(query) {
|
|
4869
|
+
return request({
|
|
4870
|
+
method: "GET",
|
|
4871
|
+
baseUrl: this.baseUrl,
|
|
4872
|
+
path: MGMT_DASHBOARD_APPLICATION_VIOLATION_BREAKDOWN_PATH,
|
|
4873
|
+
params: {
|
|
4874
|
+
appid: query.appId,
|
|
4875
|
+
appname: query.appName,
|
|
4876
|
+
time_interval: String(query.timeInterval ?? 30),
|
|
4877
|
+
time_unit: query.timeUnit ?? "days"
|
|
4878
|
+
},
|
|
4879
|
+
responseSchema: DashboardApplicationViolationBreakdownSchema,
|
|
4880
|
+
auth: this.auth,
|
|
4881
|
+
numRetries: this.numRetries
|
|
4882
|
+
});
|
|
4883
|
+
}
|
|
4884
|
+
/**
|
|
4885
|
+
* Enumerate all dashboard application buckets the tenant has data for.
|
|
4886
|
+
*
|
|
4887
|
+
* This is the canonical apps-list source for the dashboard. The customer-apps endpoint
|
|
4888
|
+
* (`mgmt.customerApps.list`) lists registered customer applications, but each registered
|
|
4889
|
+
* customer-app can have **multiple dashboard buckets** when its API key is used to send scan
|
|
4890
|
+
* requests carrying different `metadata.app_name` values - one bucket per distinct
|
|
4891
|
+
* scan-payload name. This endpoint returns every bucket, so it is what you want for
|
|
4892
|
+
* per-app token-consumption reporting and dashboard inventory.
|
|
4893
|
+
*
|
|
4894
|
+
* The `id` field on each item is the registered `customer_appId` UUID; the `name` field is
|
|
4895
|
+
* the scan-payload value. Pass that `(id, name)` pair to {@link application} or
|
|
4896
|
+
* {@link applicationViolationBreakdown} to retrieve drill-down data for a specific bucket.
|
|
4897
|
+
*
|
|
4898
|
+
* @param query - Time window and pagination.
|
|
4899
|
+
* @returns Paginated bucket list plus pagination metadata.
|
|
4900
|
+
* @example
|
|
4901
|
+
* ```ts
|
|
4902
|
+
* import { ManagementClient } from '@cdot65/prisma-airs-sdk';
|
|
4903
|
+
* const mgmt = new ManagementClient();
|
|
4904
|
+
*
|
|
4905
|
+
* const { items } = await mgmt.dashboard.applicationsOverview();
|
|
4906
|
+
* for (const item of items ?? []) {
|
|
4907
|
+
* const overview = await mgmt.dashboard.application({
|
|
4908
|
+
* appId: item.id ?? '',
|
|
4909
|
+
* appName: item.name ?? '',
|
|
4910
|
+
* });
|
|
4911
|
+
* console.log(item.name, overview.token_stats?.monthly_total_tokens);
|
|
4912
|
+
* }
|
|
4913
|
+
* ```
|
|
4914
|
+
*/
|
|
4915
|
+
async applicationsOverview(query) {
|
|
4916
|
+
return request({
|
|
4917
|
+
method: "GET",
|
|
4918
|
+
baseUrl: this.baseUrl,
|
|
4919
|
+
path: MGMT_DASHBOARD_APPLICATIONS_OVERVIEW_PATH,
|
|
4920
|
+
params: {
|
|
4921
|
+
time_interval: String(query?.timeInterval ?? 30),
|
|
4922
|
+
time_unit: query?.timeUnit ?? "days",
|
|
4923
|
+
limit: String(query?.limit ?? 25),
|
|
4924
|
+
offset: String(query?.offset ?? 0)
|
|
4925
|
+
},
|
|
4926
|
+
responseSchema: DashboardApplicationsOverviewSchema,
|
|
4927
|
+
auth: this.auth,
|
|
4928
|
+
numRetries: this.numRetries
|
|
4929
|
+
});
|
|
4930
|
+
}
|
|
4931
|
+
};
|
|
4932
|
+
|
|
4715
4933
|
// src/management/dlp/data-filtering-profiles.ts
|
|
4716
4934
|
var DataFilteringProfilesClient = class {
|
|
4717
4935
|
baseUrl;
|
|
@@ -5405,6 +5623,7 @@ var ManagementClient = class {
|
|
|
5405
5623
|
deploymentProfiles;
|
|
5406
5624
|
scanLogs;
|
|
5407
5625
|
oauth;
|
|
5626
|
+
dashboard;
|
|
5408
5627
|
dlp;
|
|
5409
5628
|
constructor(opts = {}) {
|
|
5410
5629
|
const apiEndpoint = opts.apiEndpoint ?? process.env[MGMT_ENDPOINT] ?? DEFAULT_MGMT_ENDPOINT;
|
|
@@ -5427,6 +5646,7 @@ var ManagementClient = class {
|
|
|
5427
5646
|
this.deploymentProfiles = new DeploymentProfilesClient({ baseUrl, auth, numRetries });
|
|
5428
5647
|
this.scanLogs = new ScanLogsClient({ baseUrl, auth, numRetries });
|
|
5429
5648
|
this.oauth = new OAuthManagementClient({ baseUrl, auth, numRetries });
|
|
5649
|
+
this.dashboard = new DashboardClient({ baseUrl, auth, numRetries });
|
|
5430
5650
|
this.dlp = new DlpNamespace({ baseUrl: dlpEndpoint, auth, numRetries });
|
|
5431
5651
|
}
|
|
5432
5652
|
};
|
|
@@ -6221,7 +6441,7 @@ var ModelSecurityClient = class {
|
|
|
6221
6441
|
};
|
|
6222
6442
|
|
|
6223
6443
|
// src/red-team/scans-client.ts
|
|
6224
|
-
import { z as
|
|
6444
|
+
import { z as z36 } from "zod";
|
|
6225
6445
|
var RedTeamScansClient = class {
|
|
6226
6446
|
baseUrl;
|
|
6227
6447
|
auth;
|
|
@@ -6358,7 +6578,7 @@ var RedTeamScansClient = class {
|
|
|
6358
6578
|
method: "GET",
|
|
6359
6579
|
baseUrl: this.baseUrl,
|
|
6360
6580
|
path: RED_TEAM_CATEGORIES_PATH,
|
|
6361
|
-
responseSchema:
|
|
6581
|
+
responseSchema: z36.array(CategoryModelSchema),
|
|
6362
6582
|
auth: this.auth,
|
|
6363
6583
|
numRetries: this.numRetries
|
|
6364
6584
|
});
|
|
@@ -6366,7 +6586,7 @@ var RedTeamScansClient = class {
|
|
|
6366
6586
|
};
|
|
6367
6587
|
|
|
6368
6588
|
// src/red-team/reports-client.ts
|
|
6369
|
-
import { z as
|
|
6589
|
+
import { z as z37 } from "zod";
|
|
6370
6590
|
var RedTeamReportsClient = class {
|
|
6371
6591
|
baseUrl;
|
|
6372
6592
|
auth;
|
|
@@ -6741,7 +6961,7 @@ var RedTeamReportsClient = class {
|
|
|
6741
6961
|
baseUrl: this.baseUrl,
|
|
6742
6962
|
path: `${RED_TEAM_REPORT_PATH}/${jobId}/download`,
|
|
6743
6963
|
params: { file_format: format },
|
|
6744
|
-
responseSchema:
|
|
6964
|
+
responseSchema: z37.unknown(),
|
|
6745
6965
|
auth: this.auth,
|
|
6746
6966
|
numRetries: this.numRetries
|
|
6747
6967
|
});
|
|
@@ -6765,7 +6985,7 @@ var RedTeamReportsClient = class {
|
|
|
6765
6985
|
method: "POST",
|
|
6766
6986
|
baseUrl: this.baseUrl,
|
|
6767
6987
|
path: `${RED_TEAM_REPORT_PATH}/${jobId}/generate-partial-report`,
|
|
6768
|
-
responseSchema:
|
|
6988
|
+
responseSchema: z37.unknown(),
|
|
6769
6989
|
auth: this.auth,
|
|
6770
6990
|
numRetries: this.numRetries
|
|
6771
6991
|
});
|
|
@@ -6773,7 +6993,7 @@ var RedTeamReportsClient = class {
|
|
|
6773
6993
|
};
|
|
6774
6994
|
|
|
6775
6995
|
// src/red-team/custom-attack-reports-client.ts
|
|
6776
|
-
import { z as
|
|
6996
|
+
import { z as z38 } from "zod";
|
|
6777
6997
|
var RedTeamCustomAttackReportsClient = class {
|
|
6778
6998
|
baseUrl;
|
|
6779
6999
|
auth;
|
|
@@ -6863,7 +7083,7 @@ var RedTeamCustomAttackReportsClient = class {
|
|
|
6863
7083
|
baseUrl: this.baseUrl,
|
|
6864
7084
|
path: `${RED_TEAM_CUSTOM_ATTACKS_REPORT_PATH}/report/${jobId}/prompt-set/${promptSetId}/prompts`,
|
|
6865
7085
|
params,
|
|
6866
|
-
responseSchema:
|
|
7086
|
+
responseSchema: z38.array(PromptDetailResponseSchema),
|
|
6867
7087
|
auth: this.auth,
|
|
6868
7088
|
numRetries: this.numRetries
|
|
6869
7089
|
});
|
|
@@ -6957,7 +7177,7 @@ var RedTeamCustomAttackReportsClient = class {
|
|
|
6957
7177
|
method: "GET",
|
|
6958
7178
|
baseUrl: this.baseUrl,
|
|
6959
7179
|
path: `${RED_TEAM_CUSTOM_ATTACKS_REPORT_PATH}/job/${jobId}/attack/${attackId}/list-outputs`,
|
|
6960
|
-
responseSchema:
|
|
7180
|
+
responseSchema: z38.array(CustomAttackOutputSchema),
|
|
6961
7181
|
auth: this.auth,
|
|
6962
7182
|
numRetries: this.numRetries
|
|
6963
7183
|
});
|
|
@@ -6982,7 +7202,7 @@ var RedTeamCustomAttackReportsClient = class {
|
|
|
6982
7202
|
method: "GET",
|
|
6983
7203
|
baseUrl: this.baseUrl,
|
|
6984
7204
|
path: `${RED_TEAM_CUSTOM_ATTACKS_REPORT_PATH}/job/${jobId}/property-stats`,
|
|
6985
|
-
responseSchema:
|
|
7205
|
+
responseSchema: z38.array(PropertyStatisticSchema),
|
|
6986
7206
|
auth: this.auth,
|
|
6987
7207
|
numRetries: this.numRetries
|
|
6988
7208
|
});
|
|
@@ -6990,7 +7210,7 @@ var RedTeamCustomAttackReportsClient = class {
|
|
|
6990
7210
|
};
|
|
6991
7211
|
|
|
6992
7212
|
// src/red-team/targets-client.ts
|
|
6993
|
-
import { z as
|
|
7213
|
+
import { z as z39 } from "zod";
|
|
6994
7214
|
var RedTeamTargetsClient = class {
|
|
6995
7215
|
baseUrl;
|
|
6996
7216
|
auth;
|
|
@@ -7147,7 +7367,8 @@ var RedTeamTargetsClient = class {
|
|
|
7147
7367
|
method: "DELETE",
|
|
7148
7368
|
baseUrl: this.baseUrl,
|
|
7149
7369
|
path: `${RED_TEAM_TARGET_PATH}/${uuid}`,
|
|
7150
|
-
responseSchema: BaseResponseSchema,
|
|
7370
|
+
responseSchema: BaseResponseSchema.optional(),
|
|
7371
|
+
allowEmptyBody: true,
|
|
7151
7372
|
auth: this.auth,
|
|
7152
7373
|
numRetries: this.numRetries
|
|
7153
7374
|
});
|
|
@@ -7282,7 +7503,7 @@ var RedTeamTargetsClient = class {
|
|
|
7282
7503
|
method: "GET",
|
|
7283
7504
|
baseUrl: this.baseUrl,
|
|
7284
7505
|
path: `${RED_TEAM_TEMPLATE_PATH}/target-metadata`,
|
|
7285
|
-
responseSchema:
|
|
7506
|
+
responseSchema: z39.record(z39.unknown()),
|
|
7286
7507
|
auth: this.auth,
|
|
7287
7508
|
numRetries: this.numRetries
|
|
7288
7509
|
});
|
|
@@ -7782,7 +8003,8 @@ var RedTeamCustomAttacksClient = class {
|
|
|
7782
8003
|
method: "DELETE",
|
|
7783
8004
|
baseUrl: this.baseUrl,
|
|
7784
8005
|
path: `${RED_TEAM_CUSTOM_ATTACK_PATH}/custom-prompt-set/${promptSetUuid}/custom-prompt/${promptUuid}`,
|
|
7785
|
-
responseSchema: BaseResponseSchema,
|
|
8006
|
+
responseSchema: BaseResponseSchema.optional(),
|
|
8007
|
+
allowEmptyBody: true,
|
|
7786
8008
|
auth: this.auth,
|
|
7787
8009
|
numRetries: this.numRetries
|
|
7788
8010
|
});
|
|
@@ -7833,7 +8055,8 @@ var RedTeamCustomAttacksClient = class {
|
|
|
7833
8055
|
baseUrl: this.baseUrl,
|
|
7834
8056
|
path: `${RED_TEAM_CUSTOM_ATTACK_PATH}/property-names`,
|
|
7835
8057
|
body,
|
|
7836
|
-
responseSchema: BaseResponseSchema,
|
|
8058
|
+
responseSchema: BaseResponseSchema.optional(),
|
|
8059
|
+
allowEmptyBody: true,
|
|
7837
8060
|
auth: this.auth,
|
|
7838
8061
|
numRetries: this.numRetries
|
|
7839
8062
|
});
|
|
@@ -8552,6 +8775,7 @@ export {
|
|
|
8552
8775
|
CustomPromptUpdateRequestSchema,
|
|
8553
8776
|
CustomTopicListResponseSchema,
|
|
8554
8777
|
CustomTopicSchema,
|
|
8778
|
+
CustomerAppDeleteResponseSchema,
|
|
8555
8779
|
CustomerAppListResponseSchema,
|
|
8556
8780
|
CustomerAppSchema,
|
|
8557
8781
|
CustomerAppWithKeysSchema,
|
|
@@ -8570,7 +8794,15 @@ export {
|
|
|
8570
8794
|
DLP_DICTIONARIES_PATH,
|
|
8571
8795
|
DSDetailResultSchema,
|
|
8572
8796
|
DSResultMetadataSchema,
|
|
8797
|
+
DashboardApplicationSchema,
|
|
8798
|
+
DashboardApplicationSessionsBucketSchema,
|
|
8799
|
+
DashboardApplicationViolationBreakdownSchema,
|
|
8800
|
+
DashboardApplicationsOverviewItemSchema,
|
|
8801
|
+
DashboardApplicationsOverviewSchema,
|
|
8802
|
+
DashboardClient,
|
|
8573
8803
|
DashboardOverviewResponseSchema,
|
|
8804
|
+
DashboardPaginationSchema,
|
|
8805
|
+
DashboardSessionStatsSchema,
|
|
8574
8806
|
DataFilteringDetailsSchema,
|
|
8575
8807
|
DataFilteringProfileRequestSchema,
|
|
8576
8808
|
DataFilteringProfileResponseSchema,
|
|
@@ -8616,6 +8848,7 @@ export {
|
|
|
8616
8848
|
DetectionRuleSchema,
|
|
8617
8849
|
DetectionServiceName,
|
|
8618
8850
|
DetectionServiceResultSchema,
|
|
8851
|
+
DetectorViolationBreakdownEntrySchema,
|
|
8619
8852
|
DeviceInstanceSchema,
|
|
8620
8853
|
DeviceLicenseSchema,
|
|
8621
8854
|
DeviceRequestSchema,
|
|
@@ -8719,6 +8952,9 @@ export {
|
|
|
8719
8952
|
MGMT_CLIENT_SECRET,
|
|
8720
8953
|
MGMT_CUSTOMER_APPS_TSG_PATH,
|
|
8721
8954
|
MGMT_CUSTOMER_APP_PATH,
|
|
8955
|
+
MGMT_DASHBOARD_APPLICATIONS_OVERVIEW_PATH,
|
|
8956
|
+
MGMT_DASHBOARD_APPLICATION_PATH,
|
|
8957
|
+
MGMT_DASHBOARD_APPLICATION_VIOLATION_BREAKDOWN_PATH,
|
|
8722
8958
|
MGMT_DEPLOYMENT_PROFILES_PATH,
|
|
8723
8959
|
MGMT_DLP_PROFILES_PATH,
|
|
8724
8960
|
MGMT_ENDPOINT,
|
|
@@ -8947,6 +9183,7 @@ export {
|
|
|
8947
9183
|
TgReportSchema,
|
|
8948
9184
|
ThreatCategory,
|
|
8949
9185
|
ThreatScanReportSchema,
|
|
9186
|
+
TokenStatsSchema,
|
|
8950
9187
|
ToolDetectedSchema,
|
|
8951
9188
|
ToolDetectionDetailsSchema,
|
|
8952
9189
|
ToolDetectionEntrySchema,
|
|
@@ -8964,6 +9201,7 @@ export {
|
|
|
8964
9201
|
Verdict,
|
|
8965
9202
|
ViolationListSchema,
|
|
8966
9203
|
ViolationResponseSchema,
|
|
9204
|
+
ViolationSeverityCountsSchema,
|
|
8967
9205
|
WebSocketConnectionParamsSchema,
|
|
8968
9206
|
WeightedRegexSchema,
|
|
8969
9207
|
globalConfiguration,
|