@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.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.10.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.object({
1317
- message: z17.string()
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.object({
1361
- message: z18.string()
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.object({
1426
- message: z19.string().optional()
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-deployment-profile.ts
1473
+ // src/models/mgmt-dashboard.ts
1464
1474
  import { z as z21 } from "zod";
1465
- var DeploymentProfileEntrySchema = z21.object({
1466
- dp_name: z21.string(),
1467
- auth_code: z21.string(),
1468
- tsg_id: z21.string().optional(),
1469
- status: z21.string().optional(),
1470
- expiration_date: z21.string().optional(),
1471
- ave_text_records: z21.number().optional()
1472
- }).passthrough();
1473
- var DeploymentProfilesResponseSchema = z21.object({
1474
- deployment_profiles: z21.array(DeploymentProfileEntrySchema),
1475
- status: z21.string()
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-dlp-profile.ts
1540
+ // src/models/mgmt-deployment-profile.ts
1479
1541
  import { z as z22 } from "zod";
1480
- var DlpDataProfileSchema = z22.object({
1481
- name: z22.string(),
1482
- uuid: z22.string(),
1483
- id: z22.string().optional(),
1484
- version: z22.string().optional(),
1485
- rule1: z22.object({ action: z22.string().optional() }).passthrough().optional(),
1486
- rule2: z22.object({ action: z22.string().optional() }).passthrough().optional(),
1487
- "log-severity": z22.string().optional(),
1488
- "non-file-based": z22.string().optional(),
1489
- "file-based": z22.string().optional()
1490
- }).passthrough();
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-scan-log.ts
1555
+ // src/models/mgmt-dlp-profile.ts
1496
1556
  import { z as z23 } from "zod";
1497
- var ScanResultEntrySchema = z23.object({
1498
- csp_id: z23.string(),
1499
- tsg_id: z23.string(),
1500
- scan_id: z23.string(),
1501
- scan_sub_req_id: z23.number(),
1502
- api_key_name: z23.string(),
1503
- app_name: z23.string(),
1504
- tokens: z23.number(),
1505
- text_records: z23.number(),
1506
- transaction_id: z23.string().optional(),
1507
- profile_id: z23.string().optional(),
1508
- profile_name: z23.string().optional(),
1509
- model_name: z23.string().optional(),
1510
- user: z23.string().optional(),
1511
- environment: z23.string().optional(),
1512
- cloud_provider: z23.string().optional(),
1513
- agent_framework: z23.string().optional(),
1514
- report_id: z23.string().optional(),
1515
- received_ts: z23.string().optional(),
1516
- completed_ts: z23.string().optional(),
1517
- status: z23.string().optional(),
1518
- verdict: z23.string().optional(),
1519
- action: z23.string().optional(),
1520
- is_prompt: z23.boolean().optional(),
1521
- is_response: z23.boolean().optional(),
1522
- pi_final_verdict: z23.string().optional(),
1523
- uf_final_verdict: z23.string().optional(),
1524
- dlp_final_verdict: z23.string().optional(),
1525
- dbs_final_verdict: z23.string().optional(),
1526
- tc_final_verdict: z23.string().optional(),
1527
- mc_final_verdict: z23.string().optional(),
1528
- agent_final_verdict: z23.string().optional(),
1529
- cg_final_verdict: z23.string().optional(),
1530
- tg_final_verdict: z23.string().optional(),
1531
- prompt_pi_verdict: z23.string().optional(),
1532
- prompt_uf_verdict: z23.string().optional(),
1533
- prompt_dlp_verdict: z23.string().optional(),
1534
- prompt_tc_verdict: z23.string().optional(),
1535
- prompt_mc_verdict: z23.string().optional(),
1536
- prompt_agent_verdict: z23.string().optional(),
1537
- prompt_tg_verdict: z23.string().optional(),
1538
- prompt_verdict: z23.string().optional(),
1539
- prompt_pi_action: z23.string().optional(),
1540
- prompt_uf_action: z23.string().optional(),
1541
- prompt_dlp_action: z23.string().optional(),
1542
- prompt_tc_action: z23.string().optional(),
1543
- prompt_mc_action: z23.string().optional(),
1544
- prompt_agent_action: z23.string().optional(),
1545
- prompt_tg_action: z23.string().optional(),
1546
- response_uf_verdict: z23.string().optional(),
1547
- response_dlp_verdict: z23.string().optional(),
1548
- response_dbs_verdict: z23.string().optional(),
1549
- response_tc_verdict: z23.string().optional(),
1550
- response_mc_verdict: z23.string().optional(),
1551
- response_agent_verdict: z23.string().optional(),
1552
- response_cg_verdict: z23.string().optional(),
1553
- response_tg_verdict: z23.string().optional(),
1554
- response_uf_action: z23.string().optional(),
1555
- response_dlp_action: z23.string().optional(),
1556
- response_dbs_action: z23.string().optional(),
1557
- response_tc_action: z23.string().optional(),
1558
- response_mc_action: z23.string().optional(),
1559
- response_agent_action: z23.string().optional(),
1560
- response_cg_action: z23.string().optional(),
1561
- response_tg_action: z23.string().optional(),
1562
- response_verdict: z23.string().optional(),
1563
- detection_service_flags: z23.number().optional(),
1564
- content_masked: z23.boolean().optional(),
1565
- user_ip: z23.string().optional()
1566
- }).passthrough();
1567
- var ScanResultForDashboardSchema = z23.object({
1568
- text_records_count: z23.number().optional(),
1569
- api_calls_count: z23.number().optional(),
1570
- threats_count: z23.number().optional(),
1571
- all_transactions_count: z23.number().optional(),
1572
- benign_transaction_count: z23.number().optional(),
1573
- scan_result_entries: z23.array(ScanResultEntrySchema).optional()
1574
- }).passthrough();
1575
- var PaginatedScanResultsSchema = z23.object({
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: z23.number().optional(),
1578
- page_number: z23.number().optional(),
1579
- page_size: z23.number().optional(),
1580
- page_token: z23.string().optional(),
1581
- revision: z23.number().optional()
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 z24 } from "zod";
1586
- var ClientIdAndCustomerAppSchema = z24.object({
1587
- client_id: z24.string(),
1588
- customer_app: z24.string()
1589
- }).passthrough();
1590
- var Oauth2TokenSchema = z24.object({
1591
- token_type: z24.string().optional(),
1592
- issued_at: z24.string().optional(),
1593
- client_id: z24.string().optional(),
1594
- access_token: z24.string(),
1595
- expires_in: z24.string().optional(),
1596
- status: z24.string().optional()
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 z25 } from "zod";
1601
- var AuditResponseSchema = z25.object({
1602
- created_at: z25.union([z25.string(), z25.number()]).nullish(),
1603
- created_by: z25.string().nullish(),
1604
- updated_at: z25.union([z25.string(), z25.number()]).nullish(),
1605
- updated_by: z25.string().nullish()
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 z26 } from "zod";
1610
- var SortObjectSchema = z26.object({
1611
- empty: z26.boolean().optional(),
1612
- sorted: z26.boolean().optional(),
1613
- unsorted: z26.boolean().optional()
1614
- }).passthrough();
1615
- var PageableObjectSchema = z26.object({
1616
- offset: z26.number().optional(),
1617
- pageNumber: z26.number().optional(),
1618
- pageSize: z26.number().optional(),
1619
- paged: z26.boolean().optional(),
1620
- unpaged: z26.boolean().optional(),
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 z26.object({
1625
- content: z26.array(itemSchema),
1626
- empty: z26.boolean().optional(),
1627
- first: z26.boolean().optional(),
1628
- last: z26.boolean().optional(),
1629
- number: z26.number().optional(),
1630
- numberOfElements: z26.number().optional(),
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: z26.number().optional(),
1709
+ size: z27.number().optional(),
1633
1710
  sort: SortObjectSchema.optional(),
1634
- totalElements: z26.number().optional(),
1635
- totalPages: z26.number().optional()
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 z27 } from "zod";
1646
- var DictionaryTypeSchema = z27.enum(["predefined", "custom"]);
1647
- var DictionaryCategorySchema = z27.enum([
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 = z27.enum(["pab", "endpoint"]);
1659
- var DictionaryDetectionTechniqueSchema = z27.enum([
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 = z27.enum([
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 = z27.object({
1685
- number_of_keywords: z27.number().nullish(),
1686
- original_file_name: z27.string().nullish(),
1687
- original_file_size_in_byte: z27.number().nullish()
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 = z27.object({
1690
- classification: z27.array(DictionaryClassificationSchema).nullish()
1766
+ var DictionaryTagsSchema = z28.object({
1767
+ classification: z28.array(DictionaryClassificationSchema).nullish()
1691
1768
  }).passthrough();
1692
- var ResourceModelExtensionSchema = z27.object({
1693
- key: z27.string().nullish(),
1694
- value: z27.string().nullish()
1769
+ var ResourceModelExtensionSchema = z28.object({
1770
+ key: z28.string().nullish(),
1771
+ value: z28.string().nullish()
1695
1772
  }).passthrough();
1696
- var DictionaryRequestSchema = z27.object({
1773
+ var DictionaryRequestSchema = z28.object({
1697
1774
  category: DictionaryCategorySchema,
1698
- name: z27.string(),
1699
- original_file_name: z27.string(),
1700
- region_name: z27.string(),
1701
- description: z27.string().optional(),
1702
- is_case_sensitive: z27.boolean().optional(),
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 = z27.object({
1782
+ var DictionaryPatchRequestSchema = z28.object({
1706
1783
  category: DictionaryCategorySchema,
1707
- name: z27.string(),
1708
- original_file_name: z27.string(),
1709
- description: jsonNullable(z27.string()),
1710
- is_case_sensitive: jsonNullable(z27.boolean()),
1711
- region_name: jsonNullable(z27.string())
1712
- }).passthrough();
1713
- var DictionaryResponseSchema = z27.object({
1714
- id: z27.string().nullish(),
1715
- name: z27.string().nullish(),
1716
- description: z27.string().nullish(),
1717
- category: z27.string().nullish(),
1718
- region_name: z27.string().nullish(),
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: z27.boolean().nullish(),
1721
- is_parent_managed: z27.boolean().nullish(),
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: z27.array(z27.string()).nullish(),
1803
+ keywords: z28.array(z28.string()).nullish(),
1727
1804
  tags: DictionaryTagsSchema.nullish(),
1728
- attributes: z27.array(ResourceModelExtensionSchema).nullish(),
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 z28 } from "zod";
1735
- var DataPatternTypeSchema = z28.enum(["predefined", "custom", "file_property"]);
1736
- var DataPatternTechniqueSchema = z28.enum([
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 = z28.enum(["low", "medium", "high"]);
1752
- var DataPatternLicenseTypeSchema = z28.enum(["standard", "enterprise", "essentials"]);
1753
- var DataPatternStatusSchema = z28.enum([
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 = z28.enum([
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 = z28.object({
1768
- regex: z28.string().min(1),
1769
- weight: z28.number()
1844
+ var WeightedRegexSchema = z29.object({
1845
+ regex: z29.string().min(1),
1846
+ weight: z29.number()
1770
1847
  }).passthrough();
1771
- var MetadataCriterionSchema = z28.object({
1848
+ var MetadataCriterionSchema = z29.object({
1772
1849
  comparisonOperatorType: ComparisonOperatorTypeSchema.nullish(),
1773
- name: z28.string().nullish(),
1774
- type: z28.string().nullish(),
1775
- value: z28.string().nullish()
1850
+ name: z29.string().nullish(),
1851
+ type: z29.string().nullish(),
1852
+ value: z29.string().nullish()
1776
1853
  }).passthrough();
1777
- var DataPatternDetectionConfigSchema = z28.object({
1854
+ var DataPatternDetectionConfigSchema = z29.object({
1778
1855
  technique: DataPatternTechniqueSchema,
1779
- supported_confidence_levels: z28.array(DataPatternConfidenceLevelSchema).nullish()
1856
+ supported_confidence_levels: z29.array(DataPatternConfidenceLevelSchema).nullish()
1780
1857
  }).passthrough();
1781
- var DataPatternMatchingRulesSchema = z28.object({
1782
- delimiter: z28.string().nullish(),
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: z28.number().int().min(2).max(1e3).nullish(),
1785
- proximity_keywords: z28.array(z28.string()).nullish(),
1786
- regexes: z28.array(WeightedRegexSchema).nullish(),
1787
- metadata_criteria: z28.array(MetadataCriterionSchema).nullish()
1788
- }).passthrough();
1789
- var DataPatternTagsSchema = z28.object({
1790
- classification: z28.array(z28.string()).nullish(),
1791
- compliance: z28.array(z28.string()).nullish(),
1792
- geography: z28.array(z28.string()).nullish()
1793
- }).passthrough();
1794
- var DataPatternRequestSchema = z28.object({
1795
- name: z28.string().min(1).max(64),
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: z28.string().optional(),
1875
+ description: z29.string().optional(),
1799
1876
  matching_rules: DataPatternMatchingRulesSchema.optional(),
1800
1877
  tags: DataPatternTagsSchema.optional()
1801
1878
  }).passthrough();
1802
- var DataPatternPatchRequestSchema = z28.object({
1803
- name: z28.string().min(1).max(64),
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(z28.string()),
1883
+ description: jsonNullable(z29.string()),
1807
1884
  matching_rules: jsonNullable(DataPatternMatchingRulesSchema),
1808
1885
  tags: jsonNullable(DataPatternTagsSchema)
1809
1886
  }).passthrough();
1810
- var DataPatternResponseSchema = z28.object({
1811
- id: z28.string().nullish(),
1812
- name: z28.string().nullish(),
1813
- description: z28.string().nullish(),
1814
- tenant_id: z28.string().nullish(),
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: z28.boolean().nullish(),
1819
- version: z28.number().nullish(),
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 z29 } from "zod";
1829
- var ExpressionOperatorTypeSchema = z29.enum(["and", "or", "not", "and_not", "or_not"]);
1830
- var RuleItemDetectionTechniqueSchema = z29.enum([
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 = z29.enum(["include", "exclude"]);
1846
- var RuleItemOccurrenceOperatorTypeSchema = z29.enum([
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 = z29.enum(["low", "medium", "high"]);
1853
- var RuleItemEdmMatchCriteriaSchema = z29.enum(["any", "all"]);
1854
- var DataProfileTypeSchema = z29.enum(["basic", "advanced"]);
1855
- var DataProfileStatusSchema = z29.enum(["active", "disabled", "deleted"]);
1856
- var DataProfileSubtypeSchema = z29.enum(["custom", "predefined"]);
1857
- var DetectionRuleItemSchema = z29.object({
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: z29.string().nullish(),
1860
- name: z29.string().nullish(),
1861
- description: z29.string().nullish(),
1862
- version: z29.number().int().nullish(),
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: z29.boolean().nullish(),
1941
+ by_unique_count: z30.boolean().nullish(),
1865
1942
  confidence_level: RuleItemConfidenceLevelSchema.nullish(),
1866
- supported_confidence_levels: z29.array(RuleItemConfidenceLevelSchema).nullish(),
1867
- occurrence_count: z29.number().int().nullish(),
1868
- occurrence_high: z29.number().int().nullish(),
1869
- occurrence_low: z29.number().int().nullish(),
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: z29.number().int().nullish(),
1873
- score_high: z29.number().int().nullish(),
1874
- score_low: z29.number().int().nullish(),
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: z29.string().nullish(),
1877
- primary_fields: z29.array(z29.string()).nullish(),
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: z29.number().int().nullish(),
1880
- secondary_fields: z29.array(z29.string()).nullish(),
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: z29.number().int().nullish()
1959
+ secondary_match_any_count: z30.number().int().nullish()
1883
1960
  }).passthrough();
1884
- var ExpressionTreeNodeSchema = z29.lazy(
1885
- () => z29.object({
1961
+ var ExpressionTreeNodeSchema = z30.lazy(
1962
+ () => z30.object({
1886
1963
  operator_type: ExpressionOperatorTypeSchema.nullish(),
1887
1964
  rule_item: DetectionRuleItemSchema.nullish(),
1888
- sub_expressions: z29.array(ExpressionTreeNodeSchema).nullish()
1965
+ sub_expressions: z30.array(ExpressionTreeNodeSchema).nullish()
1889
1966
  }).passthrough()
1890
1967
  );
1891
- var MultiProfileDataNodeSchema = z29.object({
1892
- data_profile_ids: z29.array(z29.number()).nullish(),
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 = z29.object({
1896
- rule_type: z29.literal("expression_tree"),
1972
+ var DefaultTreeDetectionRuleSchema = z30.object({
1973
+ rule_type: z30.literal("expression_tree"),
1897
1974
  expression_tree: ExpressionTreeNodeSchema.nullish()
1898
1975
  }).passthrough();
1899
- var MultiProfileDetectionRuleSchema = z29.object({
1900
- rule_type: z29.literal("multi_profile"),
1976
+ var MultiProfileDetectionRuleSchema = z30.object({
1977
+ rule_type: z30.literal("multi_profile"),
1901
1978
  multi_profile: MultiProfileDataNodeSchema.nullish()
1902
1979
  }).passthrough();
1903
- var DetectionRuleSchema = z29.discriminatedUnion("rule_type", [
1980
+ var DetectionRuleSchema = z30.discriminatedUnion("rule_type", [
1904
1981
  DefaultTreeDetectionRuleSchema,
1905
1982
  MultiProfileDetectionRuleSchema
1906
1983
  ]);
1907
- var AdvancedDataProfileRequestSchema = z29.object({
1908
- name: z29.string().min(1).max(64),
1909
- detection_rules: z29.array(DetectionRuleSchema),
1910
- description: z29.string().optional(),
1911
- is_granular_data_profile: z29.boolean().optional()
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 = z29.object({
1914
- name: z29.string(),
1990
+ var DataProfilePatchRequestSchema = z30.object({
1991
+ name: z30.string(),
1915
1992
  profile_type: DataProfileTypeSchema,
1916
- description: jsonNullable(z29.string()),
1917
- detection_rules: jsonNullable(z29.array(DetectionRuleSchema))
1993
+ description: jsonNullable(z30.string()),
1994
+ detection_rules: jsonNullable(z30.array(DetectionRuleSchema))
1918
1995
  }).passthrough();
1919
- var DataProfileResponseSchema = z29.object({
1920
- id: z29.string().nullish(),
1921
- name: z29.string().nullish(),
1922
- description: z29.string().nullish(),
1923
- tenant_id: z29.string().nullish(),
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: z29.boolean().nullish(),
1928
- is_parent_managed: z29.boolean().nullish(),
1929
- version: z29.number().int().nullish(),
1930
- advance_data_patterns_rule_request: z29.array(z29.string()).nullish(),
1931
- detection_rules: z29.array(DetectionRuleSchema).nullish(),
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 z30 } from "zod";
1938
- var AppExclusionSchema = z30.object({
1939
- app_id: z30.string().nullish(),
1940
- app_name: z30.string().nullish(),
1941
- type: z30.string().nullish()
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 = z30.object({
1944
- type: z30.string().nullish(),
1945
- url_id: z30.string().nullish(),
1946
- url_name: z30.string().nullish()
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 = z30.object({
1949
- app_exclusion_list: z30.array(AppExclusionSchema).nullish(),
1950
- url_exclusion_list: z30.array(URLExclusionSchema).nullish(),
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: z30.record(z30.array(z30.string())).nullish()
2032
+ exclusion_list: z31.record(z31.array(z31.string())).nullish()
1956
2033
  }).passthrough();
1957
- var SourceAttributesSchema = z30.object({
1958
- match_any: z30.boolean().nullish(),
1959
- user_group_ids: z30.array(z30.string()).nullish(),
1960
- user_ids: z30.array(z30.string()).nullish()
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 = z30.object({
1963
- match_any: z30.boolean().nullish(),
1964
- app_ids: z30.array(z30.string()).nullish(),
1965
- url_patterns: z30.array(z30.string()).nullish()
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 = z30.object({
1968
- id: z30.string().nullish(),
1969
- action: z30.enum(["ALLOW", "ALERT", "BLOCK"]).nullish(),
1970
- log_severity: z30.enum(["INFORMATIONAL", "LOW", "MEDIUM", "HIGH", "CRITICAL"]).nullish(),
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: z30.array(z30.number()).nullish(),
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 = z30.object({
1980
- action: z30.string().nullish(),
1981
- response_page: z30.string().nullish(),
1982
- show_rsp_page: z30.string().nullish()
1983
- }).passthrough();
1984
- var DataFilteringDetailsSchema = z30.object({
1985
- action: z30.string().nullish(),
1986
- dataProfileId: z30.number().nullish(),
1987
- direction: z30.string().nullish(),
1988
- euc_template_id: z30.string().nullish(),
1989
- fileBased: z30.string().nullish(),
1990
- fileTypes: z30.array(z30.string()).nullish(),
1991
- is_end_user_coaching_enabled: z30.boolean().nullish(),
1992
- logSeverity: z30.string().nullish(),
1993
- nonFileBased: z30.string().nullish(),
1994
- scanType: z30.string().nullish()
1995
- }).passthrough();
1996
- var DataFilteringProfileRequestSchema = z30.object({
1997
- file_based: z30.boolean(),
1998
- non_file_based: z30.boolean(),
1999
- description: z30.string().optional(),
2000
- direction: z30.enum(["BOTH", "UPLOAD", "DOWNLOAD"]).optional(),
2001
- log_severity: z30.enum(["CRITICAL", "HIGH", "MEDIUM", "LOW", "INFORMATIONAL"]).optional(),
2002
- scan_type: z30.enum(["include", "exclude"]).optional(),
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: z30.number().optional(),
2008
- euc_template_id: z30.string().optional(),
2009
- is_end_user_coaching_enabled: z30.boolean().optional(),
2010
- is_granular_profile: z30.boolean().optional(),
2011
- file_type: z30.array(z30.string()).optional(),
2012
- criteria_details: z30.array(DataFilteringDetailsSchema).optional(),
2013
- exception_rules: z30.array(ExceptionRuleDTOSchema).optional(),
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 = z30.object({
2019
- id: z30.string().nullish(),
2020
- name: z30.string().nullish(),
2021
- description: z30.string().nullish(),
2022
- tenant_id: z30.string().nullish(),
2023
- type: z30.string().nullish(),
2024
- data_profile_id: z30.number().nullish(),
2025
- direction: z30.string().nullish(),
2026
- file_based: z30.boolean().nullish(),
2027
- non_file_based: z30.boolean().nullish(),
2028
- log_severity: z30.string().nullish(),
2029
- scan_type: z30.enum(["include", "exclude"]).nullish(),
2030
- is_end_user_coaching_enabled: z30.boolean().nullish(),
2031
- is_granular_profile: z30.boolean().nullish(),
2032
- is_parent_managed: z30.boolean().nullish(),
2033
- euc_template_id: z30.string().nullish(),
2034
- version: z30.number().nullish(),
2035
- file_type: z30.array(z30.string()).nullish(),
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: z30.array(DataFilteringDetailsSchema).nullish(),
2038
- exception_rules: z30.array(ExceptionRuleDTOSchema).nullish(),
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 z31 } from "zod";
2178
- var ModelSecurityPaginationSchema = z31.object({
2179
- total_items: z31.number().int().nullable().optional()
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 = z31.object({
2182
- key: z31.string(),
2183
- value: z31.string()
2258
+ var LabelSchema = z32.object({
2259
+ key: z32.string(),
2260
+ value: z32.string()
2184
2261
  }).passthrough();
2185
- var LabelsCreateRequestSchema = z31.object({
2186
- labels: z31.array(LabelSchema)
2262
+ var LabelsCreateRequestSchema = z32.object({
2263
+ labels: z32.array(LabelSchema)
2187
2264
  }).passthrough();
2188
- var LabelsResponseSchema = z31.object({}).passthrough();
2189
- var LabelKeyListSchema = z31.object({
2265
+ var LabelsResponseSchema = z32.object({}).passthrough();
2266
+ var LabelKeyListSchema = z32.object({
2190
2267
  pagination: ModelSecurityPaginationSchema,
2191
- keys: z31.array(z31.string())
2268
+ keys: z32.array(z32.string())
2192
2269
  }).passthrough();
2193
- var LabelValueListSchema = z31.object({
2270
+ var LabelValueListSchema = z32.object({
2194
2271
  pagination: ModelSecurityPaginationSchema,
2195
- values: z31.array(z31.string())
2196
- }).passthrough();
2197
- var EvalSummarySchema = z31.object({
2198
- rules_failed: z31.number().int().optional().default(0),
2199
- rules_passed: z31.number().int().optional().default(0),
2200
- total_rules: z31.number().int().optional().default(0)
2201
- }).passthrough();
2202
- var ModelScanIssueSchema = z31.object({
2203
- description: z31.string(),
2204
- source: z31.string(),
2205
- threat: z31.string().nullable().optional(),
2206
- module: z31.string().nullable().optional(),
2207
- operator: z31.string().nullable().optional()
2208
- }).passthrough();
2209
- var FileScanDataSchema = z31.object({
2210
- file_path: z31.string(),
2211
- modelscan_status: z31.string(),
2212
- blob_id: z31.string(),
2213
- error_message: z31.string().nullable().optional(),
2214
- formats: z31.array(z31.string()).nullable().optional(),
2215
- issues_detected: z31.array(ModelScanIssueSchema).nullable().optional()
2216
- }).passthrough();
2217
- var ScanDetailsSchema = z31.object({
2218
- scanner_version: z31.string(),
2219
- time_started: z31.string(),
2220
- files: z31.array(FileScanDataSchema),
2221
- total_files_scanned: z31.number().int(),
2222
- total_files_skipped: z31.number().int(),
2223
- model_formats: z31.array(z31.string()),
2224
- model_size_bytes: z31.number().int(),
2225
- scan_duration_ms: z31.number().int(),
2226
- error_code: z31.string().nullable().optional(),
2227
- error_message: z31.string().nullable().optional()
2228
- }).passthrough();
2229
- var ScanCreateRequestSchema = z31.object({
2230
- model_uri: z31.string(),
2231
- security_group_uuid: z31.string(),
2232
- scan_origin: z31.string(),
2233
- allow_patterns: z31.array(z31.string()).nullable().optional(),
2234
- ignore_patterns: z31.array(z31.string()).nullable().optional(),
2235
- labels: z31.array(LabelSchema).nullable().optional(),
2236
- model_author: z31.string().nullable().optional(),
2237
- model_name: z31.string().nullable().optional(),
2238
- model_version: z31.string().nullable().optional(),
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 = z31.object({
2242
- uuid: z31.string(),
2243
- tsg_id: z31.string(),
2244
- created_at: z31.string(),
2245
- updated_at: z31.string(),
2246
- model_uri: z31.string(),
2247
- owner: z31.string(),
2248
- scan_origin: z31.string(),
2249
- security_group_uuid: z31.string(),
2250
- security_group_name: z31.string(),
2251
- model_version_uuid: z31.string(),
2252
- eval_outcome: z31.string(),
2253
- source_type: z31.string(),
2254
- created_by: z31.string().nullable().optional(),
2255
- enabled_rule_count_snapshot: z31.number().int().nullable().optional(),
2256
- error_code: z31.string().nullable().optional(),
2257
- error_message: z31.string().nullable().optional(),
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: z31.array(LabelSchema).optional(),
2260
- model_formats: z31.array(z31.string()).nullable().optional(),
2261
- scanner_version: z31.string().nullable().optional(),
2262
- time_started: z31.string().nullable().optional(),
2263
- total_files_scanned: z31.number().int().nullable().optional(),
2264
- total_files_skipped: z31.number().int().nullable().optional()
2265
- }).passthrough();
2266
- var ScanListSchema = z31.object({
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: z31.array(ScanBaseResponseSchema)
2269
- }).passthrough();
2270
- var FileResponseSchema = z31.object({
2271
- uuid: z31.string(),
2272
- tsg_id: z31.string(),
2273
- created_at: z31.string(),
2274
- updated_at: z31.string(),
2275
- path: z31.string(),
2276
- parent_path: z31.string(),
2277
- type: z31.string(),
2278
- result: z31.string(),
2279
- model_version_uuid: z31.string(),
2280
- blob_id: z31.string().nullable().optional(),
2281
- formats: z31.array(z31.string()).nullable().optional(),
2282
- scan_uuid: z31.string().nullable().optional()
2283
- }).passthrough();
2284
- var FileListSchema = z31.object({
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: z31.array(FileResponseSchema)
2287
- }).passthrough();
2288
- var RuleEvaluationResponseSchema = z31.object({
2289
- uuid: z31.string(),
2290
- tsg_id: z31.string(),
2291
- created_at: z31.string(),
2292
- updated_at: z31.string(),
2293
- result: z31.string(),
2294
- violation_count: z31.number().int(),
2295
- rule_instance_uuid: z31.string(),
2296
- scan_uuid: z31.string(),
2297
- rule_name: z31.string(),
2298
- rule_description: z31.string(),
2299
- rule_instance_state: z31.string()
2300
- }).passthrough();
2301
- var RuleEvaluationListSchema = z31.object({
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: z31.array(RuleEvaluationResponseSchema)
2304
- }).passthrough();
2305
- var ViolationResponseSchema = z31.object({
2306
- uuid: z31.string(),
2307
- tsg_id: z31.string(),
2308
- created_at: z31.string(),
2309
- updated_at: z31.string(),
2310
- description: z31.string(),
2311
- rule_instance_uuid: z31.string(),
2312
- rule_name: z31.string(),
2313
- rule_description: z31.string(),
2314
- rule_instance_state: z31.string(),
2315
- file: z31.string().nullable().optional(),
2316
- hash: z31.string().nullable().optional(),
2317
- module: z31.string().nullable().optional(),
2318
- operator: z31.string().nullable().optional(),
2319
- threat: z31.string().nullable().optional(),
2320
- threat_description: z31.string().nullable().optional()
2321
- }).passthrough();
2322
- var ViolationListSchema = z31.object({
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: z31.array(ViolationResponseSchema)
2325
- }).passthrough();
2326
- var RuleEditableFieldDropdownSchema = z31.object({
2327
- value: z31.string(),
2328
- label: z31.string()
2329
- }).passthrough();
2330
- var RuleEditableFieldSchema = z31.object({
2331
- attribute_name: z31.string(),
2332
- type: z31.string(),
2333
- display_name: z31.string(),
2334
- display_type: z31.string(),
2335
- description: z31.string().nullable().optional(),
2336
- dropdown_values: z31.array(RuleEditableFieldDropdownSchema).nullable().optional()
2337
- }).passthrough();
2338
- var RuleRemediationSchema = z31.object({
2339
- description: z31.string(),
2340
- steps: z31.array(z31.string()),
2341
- url: z31.string()
2342
- }).passthrough();
2343
- var RuleConfigurationSchema = z31.object({
2344
- field_values: z31.record(z31.unknown()).optional(),
2345
- state: z31.string().nullable().optional()
2346
- }).passthrough();
2347
- var ModelSecurityRuleResponseSchema = z31.object({
2348
- uuid: z31.string(),
2349
- name: z31.string(),
2350
- description: z31.string(),
2351
- rule_type: z31.string(),
2352
- compatible_sources: z31.array(z31.string()),
2353
- default_state: z31.string(),
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: z31.array(RuleEditableFieldSchema),
2356
- constant_values: z31.record(z31.unknown()),
2357
- default_values: z31.record(z31.unknown())
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 = z31.object({
2436
+ var ListModelSecurityRulesResponseSchema = z32.object({
2360
2437
  pagination: ModelSecurityPaginationSchema,
2361
- rules: z31.array(ModelSecurityRuleResponseSchema)
2362
- }).passthrough();
2363
- var ModelSecurityRuleInstanceResponseSchema = z31.object({
2364
- uuid: z31.string(),
2365
- tsg_id: z31.string(),
2366
- created_at: z31.string(),
2367
- updated_at: z31.string(),
2368
- security_group_uuid: z31.string(),
2369
- security_rule_uuid: z31.string(),
2370
- state: z31.string(),
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: z31.record(z31.unknown()).optional()
2449
+ field_values: z32.record(z32.unknown()).optional()
2373
2450
  }).passthrough();
2374
- var ModelSecurityRuleInstanceUpdateRequestSchema = z31.object({
2375
- security_group_uuid: z31.string(),
2376
- state: z31.string().nullable().optional(),
2377
- field_values: z31.record(z31.unknown()).nullable().optional()
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 = z31.object({
2456
+ var ListModelSecurityRuleInstancesResponseSchema = z32.object({
2380
2457
  pagination: ModelSecurityPaginationSchema,
2381
- rule_instances: z31.array(ModelSecurityRuleInstanceResponseSchema)
2382
- }).passthrough();
2383
- var ModelSecurityGroupCreateRequestSchema = z31.object({
2384
- name: z31.string(),
2385
- source_type: z31.string(),
2386
- description: z31.string().optional().default(""),
2387
- rule_configurations: z31.record(RuleConfigurationSchema).optional()
2388
- }).passthrough();
2389
- var ModelSecurityGroupResponseSchema = z31.object({
2390
- uuid: z31.string(),
2391
- tsg_id: z31.string(),
2392
- created_at: z31.string(),
2393
- updated_at: z31.string(),
2394
- name: z31.string(),
2395
- description: z31.string(),
2396
- source_type: z31.string(),
2397
- state: z31.string(),
2398
- is_tombstone: z31.boolean()
2399
- }).passthrough();
2400
- var ModelSecurityGroupUpdateRequestSchema = z31.object({
2401
- name: z31.string().nullable().optional(),
2402
- description: z31.string().nullable().optional()
2403
- }).passthrough();
2404
- var ListModelSecurityGroupsResponseSchema = z31.object({
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: z31.array(ModelSecurityGroupResponseSchema)
2483
+ security_groups: z32.array(ModelSecurityGroupResponseSchema)
2407
2484
  }).passthrough();
2408
- var PyPIAuthResponseSchema = z31.object({
2409
- url: z31.string(),
2410
- expires_at: z31.string()
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 z32 } from "zod";
2619
- var RedTeamPaginationSchema = z32.object({ total_items: z32.number().int().nullable().optional() }).passthrough();
2620
- var CountByNameSchema = z32.object({ name: z32.string(), count: z32.number().int() }).passthrough();
2621
- var ValidationErrorSchema = z32.object({
2622
- loc: z32.array(z32.union([z32.string(), z32.number()])),
2623
- msg: z32.string(),
2624
- type: z32.string()
2625
- }).passthrough();
2626
- var HTTPValidationErrorSchema = z32.object({ detail: z32.array(ValidationErrorSchema).optional() }).passthrough();
2627
- var TargetBackgroundSchema = z32.object({
2628
- industry: z32.string().nullable().optional(),
2629
- use_case: z32.string().nullable().optional(),
2630
- competitors: z32.array(z32.string()).nullable().optional()
2631
- }).passthrough();
2632
- var TargetAdditionalContextSchema = z32.object({
2633
- base_model: z32.string().nullable().optional(),
2634
- core_architecture: z32.string().nullable().optional(),
2635
- system_prompt: z32.string().nullable().optional(),
2636
- languages_supported: z32.array(z32.string()).nullable().optional(),
2637
- banned_keywords: z32.array(z32.string()).nullable().optional(),
2638
- tools_accessible: z32.array(z32.string()).nullable().optional()
2639
- }).passthrough();
2640
- var TargetMetadataSchema = z32.object({
2641
- multi_turn: z32.boolean().optional(),
2642
- multi_turn_error_message: z32.string().nullable().optional(),
2643
- rate_limit: z32.number().int().nullable().optional(),
2644
- rate_limit_enabled: z32.boolean().optional(),
2645
- rate_limit_error_code: z32.number().int().nullable().optional(),
2646
- rate_limit_error_json: z32.record(z32.unknown()).nullable().optional(),
2647
- rate_limit_error_message: z32.string().nullable().optional(),
2648
- content_filter_enabled: z32.boolean().optional(),
2649
- content_filter_error_code: z32.number().int().nullable().optional(),
2650
- content_filter_error_json: z32.record(z32.unknown()).nullable().optional(),
2651
- content_filter_error_message: z32.string().nullable().optional(),
2652
- probe_message: z32.string().optional(),
2653
- request_timeout: z32.number().optional()
2654
- }).passthrough();
2655
- var MultiTurnStatefulConfigSchema = z32.object({
2656
- type: z32.string().default("stateful"),
2657
- response_id_field: z32.string(),
2658
- request_id_field: z32.string()
2659
- }).passthrough();
2660
- var MultiTurnStatelessConfigSchema = z32.object({
2661
- type: z32.string().default("stateless"),
2662
- assistant_role: z32.string().nullable().optional()
2663
- }).passthrough();
2664
- var HeadersAuthConfigSchema = z32.object({ auth_header: z32.record(z32.unknown()) }).passthrough();
2665
- var BasicAuthAuthConfigSchema = z32.object({
2666
- basic_auth_location: z32.string().default("HEADER"),
2667
- basic_auth_header: z32.record(z32.unknown()).nullable().optional()
2668
- }).passthrough();
2669
- var OAuth2AuthConfigSchema = z32.object({
2670
- oauth2_token_url: z32.string(),
2671
- oauth2_expiry_minutes: z32.number().int().default(60),
2672
- oauth2_headers: z32.record(z32.unknown()).optional(),
2673
- oauth2_body_params: z32.record(z32.unknown()).optional(),
2674
- oauth2_token_response_key: z32.string().default("access_token"),
2675
- oauth2_inject_header: z32.record(z32.unknown())
2676
- }).passthrough();
2677
- var AuthConfigSchema = z32.union([
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 = z32.object({
2683
- api_key: z32.string(),
2684
- model_name: z32.string()
2685
- }).passthrough();
2686
- var HuggingfaceConnectionParamsSchema = z32.object({
2687
- api_key: z32.string(),
2688
- model_name: z32.string()
2689
- }).passthrough();
2690
- var DatabricksConnectionParamsSchema = z32.object({
2691
- auth_type: z32.string(),
2692
- workspace_url: z32.string(),
2693
- model_name: z32.string(),
2694
- access_token: z32.string().nullable().optional(),
2695
- client_id: z32.string().nullable().optional(),
2696
- secret: z32.string().nullable().optional()
2697
- }).passthrough();
2698
- var BedrockAccessConnectionParamsSchema = z32.object({
2699
- access_id: z32.string(),
2700
- access_secret: z32.string(),
2701
- region: z32.string(),
2702
- model_id: z32.string(),
2703
- session_token: z32.string().nullable().optional()
2704
- }).passthrough();
2705
- var RestConnectionParamsSchema = z32.object({
2706
- api_endpoint: z32.string().nullable().optional(),
2707
- request_headers: z32.record(z32.unknown()).nullable().optional(),
2708
- request_json: z32.record(z32.unknown()).nullable().optional(),
2709
- response_json: z32.record(z32.unknown()).nullable().optional(),
2710
- response_key: z32.string().nullable().optional(),
2711
- target_connection_config: z32.unknown().nullable().optional(),
2712
- curl: z32.string().nullable().optional(),
2713
- multi_turn_config: z32.unknown().nullable().optional()
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: z32.string(),
2717
- response_stop_value: z32.string()
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: z32.number().default(110)
2797
+ ws_response_timeout: z33.number().default(110)
2721
2798
  }).passthrough();
2722
- var ConnectionParamsSchema = z32.union([
2799
+ var ConnectionParamsSchema = z33.union([
2723
2800
  WebSocketConnectionParamsSchema,
2724
2801
  StreamingConnectionParamsSchema,
2725
2802
  RestConnectionParamsSchema
2726
2803
  ]);
2727
- var TargetJobRequestSchema = z32.object({
2728
- uuid: z32.string(),
2729
- version: z32.number().int().nullable().optional()
2730
- }).passthrough();
2731
- var JobTimeRecordSchema = z32.object({
2732
- queued_at: z32.string().nullable().optional(),
2733
- started_at: z32.string().nullable().optional(),
2734
- completed_at: z32.string().nullable().optional(),
2735
- time_taken: z32.string().nullable().optional()
2736
- }).passthrough();
2737
- var StaticJobMetadataSchema = z32.object({
2738
- categories: z32.record(z32.unknown()),
2739
- rate_limit_enabled: z32.boolean().optional(),
2740
- rate_limit: z32.number().int().nullable().optional(),
2741
- rate_limit_error_code: z32.number().int().nullable().optional(),
2742
- rate_limit_error_message: z32.string().nullable().optional(),
2743
- rate_limit_error_json: z32.unknown().optional(),
2744
- content_filter_enabled: z32.boolean().optional(),
2745
- content_filter_error_code: z32.number().int().nullable().optional(),
2746
- content_filter_error_message: z32.string().nullable().optional(),
2747
- content_filter_error_json: z32.unknown().optional()
2748
- }).passthrough();
2749
- var DynamicJobMetadataSchema = z32.object({
2750
- rate_limit_enabled: z32.boolean().optional(),
2751
- rate_limit: z32.number().int().nullable().optional(),
2752
- rate_limit_error_code: z32.number().int().nullable().optional(),
2753
- rate_limit_error_message: z32.string().nullable().optional(),
2754
- rate_limit_error_json: z32.unknown().optional(),
2755
- content_filter_enabled: z32.boolean().optional(),
2756
- content_filter_error_code: z32.number().int().nullable().optional(),
2757
- content_filter_error_message: z32.string().nullable().optional(),
2758
- content_filter_error_json: z32.unknown().optional(),
2759
- stream_breadth: z32.number().int().optional(),
2760
- stream_depth: z32.number().int().optional(),
2761
- max_tokens: z32.number().int().optional(),
2762
- context_size: z32.number().int().optional(),
2763
- attack_goals: z32.array(z32.unknown()).optional(),
2764
- base_model: z32.string().nullable().optional(),
2765
- use_case: z32.string().nullable().optional(),
2766
- system_prompt: z32.string().nullable().optional()
2767
- }).passthrough();
2768
- var CustomJobMetadataSchema = z32.object({
2769
- custom_prompt_sets: z32.array(z32.unknown()),
2770
- rate_limit_enabled: z32.boolean().optional(),
2771
- rate_limit: z32.number().int().nullable().optional(),
2772
- rate_limit_error_code: z32.number().int().nullable().optional(),
2773
- rate_limit_error_message: z32.string().nullable().optional(),
2774
- rate_limit_error_json: z32.unknown().optional(),
2775
- content_filter_enabled: z32.boolean().optional(),
2776
- content_filter_error_code: z32.number().int().nullable().optional(),
2777
- content_filter_error_message: z32.string().nullable().optional(),
2778
- content_filter_error_json: z32.unknown().optional()
2779
- }).passthrough();
2780
- var JobCreateRequestSchema = z32.object({
2781
- name: z32.string(),
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: z32.string(),
2784
- job_metadata: z32.union([
2860
+ job_type: z33.string(),
2861
+ job_metadata: z33.union([
2785
2862
  StaticJobMetadataSchema,
2786
2863
  DynamicJobMetadataSchema,
2787
2864
  CustomJobMetadataSchema
2788
2865
  ]),
2789
- version: z32.number().int().nullable().optional(),
2790
- extra_info: z32.record(z32.unknown()).nullable().optional()
2791
- }).passthrough();
2792
- var StaticJobReportStatsSchema = z32.object({
2793
- output_completion_percentage: z32.number(),
2794
- partial_report_unlocked: z32.boolean().optional(),
2795
- partial_report_unlocked_at: z32.string().nullable().optional(),
2796
- report_summary: z32.string().nullable().optional()
2797
- }).passthrough();
2798
- var DynamicJobReportStatsSchema = z32.object({
2799
- total_goals: z32.number().int().optional(),
2800
- total_streams: z32.number().int().optional(),
2801
- total_threats: z32.number().int().optional(),
2802
- goals_achieved: z32.number().int().optional(),
2803
- report_summary: z32.string().nullable().optional()
2804
- }).passthrough();
2805
- var TargetReferenceSchema = z32.object({
2806
- uuid: z32.string(),
2807
- tsg_id: z32.string(),
2808
- name: z32.string(),
2809
- description: z32.string().nullable().optional(),
2810
- target_type: z32.string().nullable().optional(),
2811
- connection_type: z32.string().nullable().optional(),
2812
- api_endpoint_type: z32.string().nullable().optional(),
2813
- response_mode: z32.string().nullable().optional(),
2814
- session_supported: z32.boolean().optional(),
2815
- extra_info: z32.record(z32.unknown()).nullable().optional(),
2816
- status: z32.string(),
2817
- active: z32.boolean(),
2818
- validated: z32.boolean(),
2819
- version: z32.number().int().nullable().optional(),
2820
- secret_version: z32.string().nullable().optional(),
2821
- created_by_user_id: z32.string().nullable().optional(),
2822
- updated_by_user_id: z32.string().nullable().optional(),
2823
- created_at: z32.string(),
2824
- updated_at: z32.string(),
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: z32.string().nullable().optional(),
2904
+ profiling_status: z33.string().nullable().optional(),
2828
2905
  additional_context: TargetAdditionalContextSchema.nullable().optional(),
2829
- auth_type: z32.string().nullable().optional()
2906
+ auth_type: z33.string().nullable().optional()
2830
2907
  }).passthrough();
2831
- var JobResponseSchema = z32.object({
2832
- uuid: z32.string(),
2833
- tsg_id: z32.string(),
2834
- name: z32.string(),
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: z32.string(),
2837
- job_metadata: z32.unknown(),
2838
- version: z32.number().int().nullable().optional(),
2839
- extra_info: z32.record(z32.unknown()).nullable().optional(),
2840
- target_id: z32.string(),
2841
- target_type: z32.string(),
2842
- total: z32.number().int().nullable().optional(),
2843
- completed: z32.number().int().nullable().optional(),
2844
- status: z32.string().optional(),
2845
- score: z32.number().nullable().optional(),
2846
- asr: z32.number().nullable().optional(),
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: z32.string().nullable().optional(),
2849
- updated_at: z32.string().nullable().optional(),
2850
- created_by_user_id: z32.string().nullable().optional(),
2851
- report_stats: z32.unknown().optional(),
2852
- metering_quota_uuid: z32.string().nullable().optional(),
2853
- counted_towards_quota: z32.string().optional(),
2854
- invocation_id: z32.string().nullable().optional()
2855
- }).passthrough();
2856
- var JobListResponseSchema = z32.object({
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: z32.array(JobResponseSchema)
2859
- }).passthrough();
2860
- var JobAbortResponseSchema = z32.object({
2861
- job_id: z32.string(),
2862
- message: z32.string()
2863
- }).passthrough();
2864
- var PrerequisiteModelSchema = z32.object({
2865
- id: z32.string(),
2866
- display_name: z32.string(),
2867
- description: z32.string()
2868
- }).passthrough();
2869
- var SubCategoryModelSchema = z32.object({
2870
- id: z32.string(),
2871
- display_name: z32.string(),
2872
- description: z32.string(),
2873
- preselect: z32.boolean().optional(),
2874
- prerequisites: z32.array(PrerequisiteModelSchema).nullable().optional(),
2875
- active: z32.boolean().optional()
2876
- }).passthrough();
2877
- var CategoryModelSchema = z32.object({
2878
- id: z32.string(),
2879
- display_name: z32.string(),
2880
- description: z32.string(),
2881
- preselect: z32.boolean().optional(),
2882
- sub_categories: z32.array(SubCategoryModelSchema)
2883
- }).passthrough();
2884
- var AttackOutputSchema = z32.object({
2885
- uuid: z32.string(),
2886
- tsg_id: z32.string(),
2887
- attack_id: z32.string(),
2888
- job_id: z32.string(),
2889
- target_id: z32.string(),
2890
- output: z32.string(),
2891
- threat: z32.boolean().nullable().optional(),
2892
- marked_safe: z32.boolean().nullable().optional()
2893
- }).passthrough();
2894
- var AttackMultiTurnOutputSchema = z32.object({
2895
- uuid: z32.string(),
2896
- tsg_id: z32.string(),
2897
- attack_id: z32.string(),
2898
- job_id: z32.string(),
2899
- target_id: z32.string(),
2900
- output: z32.string(),
2901
- prompt: z32.string(),
2902
- turn: z32.number().int(),
2903
- threat: z32.boolean().nullable().optional(),
2904
- marked_safe: z32.boolean().nullable().optional(),
2905
- generation: z32.number().int().optional(),
2906
- multi_turn: z32.boolean().optional()
2907
- }).passthrough();
2908
- var AttackListItemSchema = z32.object({
2909
- uuid: z32.string(),
2910
- tsg_id: z32.string(),
2911
- job_id: z32.string(),
2912
- target_id: z32.string(),
2913
- prompt: z32.string(),
2914
- prompt_mapping_id: z32.string(),
2915
- prompt_id: z32.string(),
2916
- category: z32.string(),
2917
- sub_category: z32.string(),
2918
- category_display_name: z32.string(),
2919
- sub_category_display_name: z32.string(),
2920
- status: z32.string().optional(),
2921
- marked_safe: z32.boolean().nullable().optional(),
2922
- extra_info: z32.record(z32.unknown()).optional(),
2923
- threat: z32.boolean().nullable().optional(),
2924
- attack_type: z32.string().optional(),
2925
- multi_turn: z32.boolean().optional(),
2926
- asr: z32.number().nullable().optional(),
2927
- version: z32.number().int().nullable().optional(),
2928
- severity: z32.string().optional()
2929
- }).passthrough();
2930
- var AttackListResponseSchema = z32.object({
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: z32.array(AttackListItemSchema)
2933
- }).passthrough();
2934
- var AttackDetailResponseSchema = z32.object({
2935
- uuid: z32.string(),
2936
- tsg_id: z32.string(),
2937
- job_id: z32.string(),
2938
- target_id: z32.string(),
2939
- prompt: z32.string(),
2940
- prompt_mapping_id: z32.string(),
2941
- prompt_id: z32.string(),
2942
- category: z32.string(),
2943
- sub_category: z32.string(),
2944
- category_display_name: z32.string(),
2945
- sub_category_display_name: z32.string(),
2946
- compliance_frameworks: z32.array(z32.unknown()),
2947
- goal: z32.string().nullable(),
2948
- status: z32.string().optional(),
2949
- marked_safe: z32.boolean().nullable().optional(),
2950
- extra_info: z32.record(z32.unknown()).optional(),
2951
- threat: z32.boolean().nullable().optional(),
2952
- attack_type: z32.string().optional(),
2953
- multi_turn: z32.boolean().optional(),
2954
- asr: z32.number().nullable().optional(),
2955
- version: z32.number().int().nullable().optional(),
2956
- severity: z32.string().optional(),
2957
- outputs: z32.array(AttackOutputSchema).optional()
2958
- }).passthrough();
2959
- var AttackMultiTurnDetailResponseSchema = z32.object({
2960
- uuid: z32.string(),
2961
- tsg_id: z32.string(),
2962
- job_id: z32.string(),
2963
- target_id: z32.string(),
2964
- prompt: z32.string(),
2965
- prompt_mapping_id: z32.string(),
2966
- prompt_id: z32.string(),
2967
- category: z32.string(),
2968
- sub_category: z32.string(),
2969
- category_display_name: z32.string(),
2970
- sub_category_display_name: z32.string(),
2971
- compliance_frameworks: z32.array(z32.unknown()),
2972
- goal: z32.string().nullable(),
2973
- status: z32.string().optional(),
2974
- marked_safe: z32.boolean().nullable().optional(),
2975
- extra_info: z32.record(z32.unknown()).optional(),
2976
- threat: z32.boolean().nullable().optional(),
2977
- attack_type: z32.string().optional(),
2978
- multi_turn: z32.boolean().optional(),
2979
- asr: z32.number().nullable().optional(),
2980
- version: z32.number().int().nullable().optional(),
2981
- severity: z32.string().optional(),
2982
- outputs: z32.array(AttackMultiTurnOutputSchema).optional()
2983
- }).passthrough();
2984
- var SubCategoryStatsSchema = z32.object({
2985
- id: z32.string(),
2986
- display_name: z32.string(),
2987
- description: z32.string(),
2988
- preselect: z32.boolean().optional(),
2989
- prerequisites: z32.array(PrerequisiteModelSchema).nullable().optional(),
2990
- active: z32.boolean().optional(),
2991
- successful: z32.number().int(),
2992
- failed: z32.number().int(),
2993
- total: z32.number().int().optional()
2994
- }).passthrough();
2995
- var CategoryReportSchema = z32.object({
2996
- id: z32.string(),
2997
- display_name: z32.string(),
2998
- description: z32.string(),
2999
- preselect: z32.boolean().optional(),
3000
- sub_categories: z32.array(SubCategoryStatsSchema),
3001
- asr: z32.number(),
3002
- total_prompts: z32.number().int(),
3003
- total_attacks: z32.number().int(),
3004
- successful: z32.number().int(),
3005
- failed: z32.number().int()
3006
- }).passthrough();
3007
- var SeverityStatsSchema = z32.object({
3008
- severity: z32.string(),
3009
- successful: z32.number().int().optional(),
3010
- failed: z32.number().int().optional()
3011
- }).passthrough();
3012
- var SeverityReportSchema = z32.object({
3013
- stats: z32.array(SeverityStatsSchema),
3014
- successful: z32.number().int().optional(),
3015
- failed: z32.number().int().optional(),
3016
- total_attacks: z32.number().int().optional()
3017
- }).passthrough();
3018
- var ComplianceTechniqueSchema = z32.object({
3019
- id: z32.string(),
3020
- display_name: z32.string(),
3021
- compliance_id: z32.string(),
3022
- description: z32.string(),
3023
- link: z32.string(),
3024
- version: z32.string(),
3025
- active: z32.boolean(),
3026
- successful: z32.number().int().optional(),
3027
- failed: z32.number().int().optional(),
3028
- total: z32.number().int().optional()
3029
- }).passthrough();
3030
- var ComplianceReportSchema = z32.object({
3031
- id: z32.string(),
3032
- display_name: z32.string(),
3033
- description: z32.string(),
3034
- active: z32.boolean(),
3035
- version: z32.string(),
3036
- link: z32.string(),
3037
- techniques: z32.array(ComplianceTechniqueSchema),
3038
- score: z32.number().int().optional()
3039
- }).passthrough();
3040
- var RuntimeSecurityPolicySchema = z32.object({
3041
- policy_id: z32.string(),
3042
- display_name: z32.string(),
3043
- config: z32.record(z32.unknown())
3044
- }).passthrough();
3045
- var StaticJobRemediationSchema = z32.object({
3046
- remediation: z32.string(),
3047
- description: z32.string(),
3048
- mapping_remediation_id: z32.string().nullable().optional(),
3049
- subcategories: z32.array(z32.string()).nullable().optional(),
3050
- effectiveness: z32.number().int().optional(),
3051
- ease_of_implementation: z32.number().int().optional(),
3052
- priority: z32.number().int().optional(),
3053
- resource_links: z32.array(z32.string()).optional(),
3054
- categories: z32.array(z32.string()).nullable().optional()
3055
- }).passthrough();
3056
- var StaticJobRemediationRecommendationSchema = z32.object({
3057
- runtime_security_policy_configuration: z32.array(RuntimeSecurityPolicySchema).nullable().optional(),
3058
- other_measures: z32.array(StaticJobRemediationSchema).optional()
3059
- }).passthrough();
3060
- var StaticJobReportSchema = z32.object({
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: z32.number().nullable().optional(),
3063
- score: z32.number().nullable().optional(),
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: z32.array(ComplianceReportSchema).nullable().optional(),
3068
- report_summary: z32.string().nullable().optional(),
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 = z32.object({
3072
- total_goals: z32.number().int().optional(),
3073
- total_streams: z32.number().int().optional(),
3074
- total_threats: z32.number().int().optional(),
3075
- goals_achieved: z32.number().int().optional(),
3076
- report_summary: z32.string().nullable().optional(),
3077
- score: z32.number().optional(),
3078
- asr: z32.number().optional()
3079
- }).passthrough();
3080
- var RemediationDetailSchema = z32.object({
3081
- remediation: z32.string(),
3082
- description: z32.string(),
3083
- resource_links: z32.array(z32.string()).optional(),
3084
- priority_level: z32.string().optional(),
3085
- ease_of_implementation_level: z32.string().optional(),
3086
- effectiveness_level: z32.string().optional()
3087
- }).passthrough();
3088
- var RemediationResponseSchema = z32.object({ remediations: z32.array(RemediationDetailSchema).optional() }).passthrough();
3089
- var RuntimeSecurityProfileResponseSchema = z32.object({
3090
- runtime_security_profile: z32.array(RuntimeSecurityPolicySchema).nullable().optional()
3091
- }).passthrough();
3092
- var GoalSchema = z32.object({
3093
- goal: z32.string(),
3094
- safe_response: z32.string(),
3095
- jailbroken_response: z32.string(),
3096
- goal_metadata: z32.record(z32.unknown()).optional(),
3097
- custom_goal: z32.boolean().optional(),
3098
- goal_type: z32.string().optional(),
3099
- uuid: z32.string(),
3100
- tsg_id: z32.string(),
3101
- job_id: z32.string(),
3102
- goal_to_show: z32.string().nullable().optional(),
3103
- threat: z32.boolean().optional(),
3104
- version: z32.number().int().nullable().optional(),
3105
- extra_info: z32.record(z32.unknown()).nullable().optional()
3106
- }).passthrough();
3107
- var GoalListResponseSchema = z32.object({ pagination: RedTeamPaginationSchema, data: z32.array(GoalSchema) }).passthrough();
3108
- var StreamIterationDataSchema = z32.object({
3109
- uuid: z32.string(),
3110
- tsg_id: z32.string(),
3111
- job_id: z32.string(),
3112
- stream_id: z32.string(),
3113
- goal_id: z32.string(),
3114
- iteration: z32.number().int(),
3115
- prompt: z32.string(),
3116
- techniques: z32.string(),
3117
- improvement: z32.string(),
3118
- prompts_objective: z32.string(),
3119
- summary: z32.string(),
3120
- output: z32.string().nullable().optional(),
3121
- score: z32.number().int().nullable().optional(),
3122
- judge_reasoning: z32.string().nullable().optional(),
3123
- threat: z32.boolean().optional(),
3124
- created_at: z32.string().nullable().optional(),
3125
- updated_at: z32.string().nullable().optional(),
3126
- extra_info: z32.record(z32.unknown()).nullable().optional(),
3127
- version: z32.number().int().nullable().optional()
3128
- }).passthrough();
3129
- var StreamDetailResponseSchema = z32.object({
3130
- uuid: z32.string(),
3131
- tsg_id: z32.string(),
3132
- job_id: z32.string(),
3133
- target_id: z32.string(),
3134
- goal_id: z32.string(),
3135
- stream_idx: z32.number().int().optional(),
3136
- iteration: z32.number().int().optional(),
3137
- goal: z32.unknown().optional(),
3138
- marked_safe: z32.boolean().optional(),
3139
- stream_type: z32.string().nullable().optional(),
3140
- threat: z32.boolean().optional(),
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: z32.string().nullable().optional(),
3143
- updated_at: z32.string().nullable().optional(),
3144
- extra_info: z32.record(z32.unknown()).optional(),
3145
- version: z32.number().int().nullable().optional(),
3146
- iterations: z32.array(StreamIterationDataSchema).optional()
3147
- }).passthrough();
3148
- var StreamListResponseSchema = z32.object({ pagination: RedTeamPaginationSchema, data: z32.array(StreamDetailResponseSchema) }).passthrough();
3149
- var CustomAttackOutputSchema = z32.object({
3150
- uuid: z32.string(),
3151
- tsg_id: z32.string(),
3152
- custom_attack_id: z32.string(),
3153
- job_id: z32.string(),
3154
- target_id: z32.string(),
3155
- output: z32.string(),
3156
- threat: z32.boolean().nullable().optional(),
3157
- marked_safe: z32.boolean().nullable().optional()
3158
- }).passthrough();
3159
- var PropertyAssignmentSchema = z32.object({
3160
- name: z32.string(),
3161
- value: z32.string()
3162
- }).passthrough();
3163
- var PropertyValueStatisticSchema = z32.object({
3164
- value: z32.string(),
3165
- successful_attack_count: z32.number().int(),
3166
- total_attack_count: z32.number().int(),
3167
- success_rate: z32.number()
3168
- }).passthrough();
3169
- var PropertyStatisticSchema = z32.object({
3170
- property_name: z32.string(),
3171
- values: z32.array(PropertyValueStatisticSchema)
3172
- }).passthrough();
3173
- var PromptSetSummarySchema = z32.object({
3174
- prompt_set_id: z32.string(),
3175
- prompt_set_name: z32.string(),
3176
- total_prompts: z32.number().int(),
3177
- total_attacks: z32.number().int(),
3178
- total_threats: z32.number().int(),
3179
- failed_attacks: z32.number().int(),
3180
- threat_rate: z32.number(),
3181
- property_names: z32.array(z32.string()).optional(),
3182
- property_statistics: z32.array(PropertyStatisticSchema).optional()
3183
- }).passthrough();
3184
- var CustomAttackReportResponseSchema = z32.object({
3185
- total_prompts: z32.number().int(),
3186
- total_attacks: z32.number().int(),
3187
- total_threats: z32.number().int(),
3188
- failed_attacks: z32.number().int(),
3189
- score: z32.number(),
3190
- asr: z32.number(),
3191
- custom_attack_reports: z32.array(PromptSetSummarySchema).optional(),
3192
- property_statistics: z32.array(PropertyStatisticSchema).optional()
3193
- }).passthrough();
3194
- var PromptSetsReportResponseSchema = z32.object({
3195
- prompt_sets: z32.array(PromptSetSummarySchema),
3196
- total_prompt_sets: z32.number().int(),
3197
- applied_filters: z32.record(z32.unknown()).optional()
3198
- }).passthrough();
3199
- var PromptDetailResponseSchema = z32.object({
3200
- prompt_id: z32.string(),
3201
- prompt_text: z32.string(),
3202
- goal: z32.string().nullable().optional(),
3203
- user_defined_goal: z32.boolean().optional(),
3204
- properties: z32.array(PropertyAssignmentSchema).optional(),
3205
- attack_id: z32.string().nullable().optional(),
3206
- threat: z32.boolean().nullable().optional(),
3207
- attack_outputs: z32.array(CustomAttackOutputSchema).optional(),
3208
- asr: z32.number().nullable().optional(),
3209
- prompt_set_id: z32.string().nullable().optional(),
3210
- prompt_set_name: z32.string().nullable().optional()
3211
- }).passthrough();
3212
- var CustomAttacksListResponseSchema = z32.object({
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: z32.array(z32.unknown()),
3215
- total_attacks: z32.number().int(),
3216
- total_threats: z32.number().int()
3217
- }).passthrough();
3218
- var RiskLevelSchema = z32.object({
3219
- risk_rating: z32.string(),
3220
- total: z32.number().int(),
3221
- targets_by_type: z32.array(CountByNameSchema).optional()
3222
- }).passthrough();
3223
- var ScanStatisticsResponseSchema = z32.object({
3224
- total_scans: z32.number().int(),
3225
- targets_scanned: z32.number().int(),
3226
- targets_scanned_by_type: z32.array(CountByNameSchema).optional(),
3227
- scan_status: z32.array(CountByNameSchema).optional(),
3228
- risk_profile: z32.array(RiskLevelSchema).optional()
3229
- }).passthrough();
3230
- var ScoreTrendSeriesSchema = z32.object({
3231
- label: z32.string(),
3232
- data: z32.array(z32.number().nullable())
3233
- }).passthrough();
3234
- var ScoreTrendResponseSchema = z32.object({
3235
- labels: z32.array(z32.string()),
3236
- series: z32.array(ScoreTrendSeriesSchema)
3237
- }).passthrough();
3238
- var SentimentRequestSchema = z32.object({
3239
- job_id: z32.string(),
3240
- up_vote: z32.boolean().optional(),
3241
- down_vote: z32.boolean().optional()
3242
- }).passthrough();
3243
- var SentimentResponseSchema = z32.object({
3244
- job_id: z32.string(),
3245
- up_vote: z32.boolean().optional(),
3246
- down_vote: z32.boolean().optional()
3247
- }).passthrough();
3248
- var QuotaDetailsSchema = z32.object({
3249
- allocated: z32.number().int(),
3250
- unlimited: z32.boolean(),
3251
- consumed: z32.number().int()
3252
- }).passthrough();
3253
- var QuotaSummarySchema = z32.object({
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 = z32.object({
3259
- created_at: z32.string(),
3260
- updated_at: z32.string(),
3261
- job_id: z32.string().nullable().optional(),
3262
- target_id: z32.string().nullable().optional(),
3263
- target_version: z32.number().int().nullable().optional(),
3264
- attack_id: z32.string().nullable().optional(),
3265
- error_type: z32.string().nullable().optional(),
3266
- error_source: z32.string().nullable().optional(),
3267
- error_message: z32.string().nullable().optional(),
3268
- target_object: z32.record(z32.unknown()).nullable().optional(),
3269
- extra_info: z32.record(z32.unknown()).nullable().optional(),
3270
- version: z32.number().int().optional()
3271
- }).passthrough();
3272
- var ErrorLogListResponseSchema = z32.object({ pagination: RedTeamPaginationSchema, data: z32.array(ErrorLogSchema) }).passthrough();
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: z32.string(),
3275
- description: z32.string().nullable().optional(),
3276
- target_type: z32.string().nullable().optional(),
3277
- connection_type: z32.string().nullable().optional(),
3278
- api_endpoint_type: z32.string().nullable().optional(),
3279
- response_mode: z32.string().nullable().optional(),
3280
- connection_params: z32.union([RestConnectionParamsSchema, StreamingConnectionParamsSchema]).nullable().optional(),
3281
- session_supported: z32.boolean().optional(),
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: z32.record(z32.unknown()).nullable().optional(),
3286
- network_broker_channel_uuid: z32.string().nullable().optional()
3362
+ extra_info: z33.record(z33.unknown()).nullable().optional(),
3363
+ network_broker_channel_uuid: z33.string().nullable().optional()
3287
3364
  };
3288
- var TargetCreateRequestSchema = z32.object(TargetRequestBaseFields).strict();
3289
- var TargetUpdateRequestSchema = z32.object(TargetRequestBaseFields).strict();
3290
- var TargetContextUpdateSchema = z32.object({
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 = z32.object({
3295
- uuid: z32.string(),
3296
- tsg_id: z32.string(),
3297
- name: z32.string(),
3298
- status: z32.unknown(),
3299
- active: z32.boolean(),
3300
- validated: z32.boolean(),
3301
- created_at: z32.string(),
3302
- updated_at: z32.string(),
3303
- description: z32.unknown().optional(),
3304
- target_type: z32.unknown().optional(),
3305
- connection_type: z32.unknown().optional(),
3306
- api_endpoint_type: z32.unknown().optional(),
3307
- response_mode: z32.unknown().optional(),
3308
- session_supported: z32.boolean().optional(),
3309
- extra_info: z32.unknown().optional(),
3310
- version: z32.unknown().optional(),
3311
- secret_version: z32.unknown().optional(),
3312
- created_by_user_id: z32.unknown().optional(),
3313
- updated_by_user_id: z32.unknown().optional(),
3314
- target_metadata: z32.unknown().optional(),
3315
- target_background: z32.unknown().optional(),
3316
- profiling_status: z32.unknown().optional(),
3317
- additional_context: z32.unknown().optional(),
3318
- auth_type: z32.string().nullable().optional()
3319
- }).passthrough();
3320
- var TargetListItemSchema = z32.object({
3321
- uuid: z32.string(),
3322
- tsg_id: z32.string(),
3323
- name: z32.string(),
3324
- status: z32.unknown(),
3325
- active: z32.boolean(),
3326
- validated: z32.boolean(),
3327
- created_at: z32.string(),
3328
- updated_at: z32.string(),
3329
- description: z32.unknown().optional(),
3330
- target_type: z32.unknown().optional(),
3331
- connection_type: z32.unknown().optional(),
3332
- api_endpoint_type: z32.unknown().optional(),
3333
- response_mode: z32.unknown().optional(),
3334
- session_supported: z32.boolean().optional(),
3335
- extra_info: z32.unknown().optional(),
3336
- version: z32.unknown().optional(),
3337
- secret_version: z32.unknown().optional(),
3338
- created_by_user_id: z32.unknown().optional(),
3339
- updated_by_user_id: z32.unknown().optional(),
3340
- auth_type: z32.string().nullable().optional()
3341
- }).passthrough();
3342
- var TargetListSchema = z32.object({ pagination: RedTeamPaginationSchema, data: z32.array(TargetListItemSchema).optional() }).passthrough();
3343
- var TargetProbeRequestSchema = z32.object({
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: z32.string().nullable().optional(),
3346
- probe_fields: z32.array(z32.string()).nullable().optional()
3422
+ uuid: z33.string().nullable().optional(),
3423
+ probe_fields: z33.array(z33.string()).nullable().optional()
3347
3424
  }).strict();
3348
- var TargetAuthValidationRequestSchema = z32.object({
3349
- auth_type: z32.string(),
3350
- auth_config: z32.unknown(),
3351
- target_id: z32.string().nullable().optional(),
3352
- network_broker_channel_uuid: z32.string().nullable().optional()
3353
- }).passthrough();
3354
- var TargetAuthValidationResponseSchema = z32.object({
3355
- validated: z32.boolean(),
3356
- token_preview: z32.string().nullable().optional(),
3357
- expires_in: z32.number().int().nullable().optional()
3358
- }).passthrough();
3359
- var TargetProfileResponseSchema = z32.object({
3360
- target_id: z32.string(),
3361
- target_version: z32.number().int(),
3362
- status: z32.string(),
3363
- profiling_status: z32.unknown().optional(),
3364
- target_background: z32.unknown().optional(),
3365
- additional_context: z32.unknown().optional(),
3366
- ai_generated_fields: z32.unknown().optional(),
3367
- other_details: z32.unknown().optional()
3368
- }).passthrough();
3369
- var TargetTemplateCollectionSchema = z32.object({
3370
- OPENAI: z32.record(z32.unknown()),
3371
- HUGGING_FACE: z32.record(z32.unknown()),
3372
- DATABRICKS: z32.record(z32.unknown()),
3373
- BEDROCK: z32.record(z32.unknown()),
3374
- REST: z32.record(z32.unknown()),
3375
- STREAMING: z32.record(z32.unknown()),
3376
- WEBSOCKET: z32.record(z32.unknown())
3377
- }).passthrough();
3378
- var BaseResponseSchema = z32.object({
3379
- message: z32.string(),
3380
- status: z32.number().int()
3381
- }).passthrough();
3382
- var PromptSetStatsSchema = z32.object({
3383
- total_prompts: z32.number().int(),
3384
- active_prompts: z32.number().int(),
3385
- inactive_prompts: z32.number().int(),
3386
- failed_prompts: z32.number().int().optional(),
3387
- validation_prompts: z32.number().int().optional()
3388
- }).passthrough();
3389
- var CustomPromptSetCreateRequestSchema = z32.object({
3390
- name: z32.string(),
3391
- description: z32.unknown().optional(),
3392
- property_names: z32.array(z32.string()).optional()
3393
- }).passthrough();
3394
- var CustomPromptSetUpdateRequestSchema = z32.object({
3395
- name: z32.unknown().optional(),
3396
- description: z32.unknown().optional(),
3397
- archive: z32.unknown().optional(),
3398
- property_names: z32.unknown().optional()
3399
- }).passthrough();
3400
- var CustomPromptSetArchiveRequestSchema = z32.object({ archive: z32.boolean() }).passthrough();
3401
- var CustomPromptSetResponseSchema = z32.object({
3402
- uuid: z32.string(),
3403
- name: z32.string(),
3404
- active: z32.boolean(),
3405
- archive: z32.boolean(),
3406
- status: z32.string(),
3407
- created_at: z32.string(),
3408
- updated_at: z32.string(),
3409
- description: z32.unknown().optional(),
3410
- property_names: z32.array(z32.string()).optional(),
3411
- properties: z32.array(z32.unknown()).optional(),
3412
- stats: z32.unknown().optional(),
3413
- extra_info: z32.unknown().optional(),
3414
- version: z32.unknown().optional(),
3415
- created_by_user_id: z32.unknown().optional(),
3416
- updated_by_user_id: z32.unknown().optional()
3417
- }).passthrough();
3418
- var CustomPromptSetListItemSchema = z32.object({
3419
- uuid: z32.string(),
3420
- name: z32.string(),
3421
- active: z32.boolean(),
3422
- archive: z32.boolean(),
3423
- status: z32.string(),
3424
- created_at: z32.string(),
3425
- updated_at: z32.string(),
3426
- description: z32.unknown().optional(),
3427
- property_names: z32.array(z32.string()).optional(),
3428
- stats: z32.unknown().optional(),
3429
- created_by_user_id: z32.unknown().optional()
3430
- }).passthrough();
3431
- var CustomPromptSetListSchema = z32.object({
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: z32.array(CustomPromptSetListItemSchema).optional()
3434
- }).passthrough();
3435
- var CustomPromptSetReferenceSchema = z32.object({
3436
- uuid: z32.string(),
3437
- name: z32.string(),
3438
- status: z32.string(),
3439
- active: z32.boolean(),
3440
- tsg_id: z32.string(),
3441
- created_at: z32.string(),
3442
- updated_at: z32.string(),
3443
- version: z32.unknown().optional()
3444
- }).passthrough();
3445
- var CustomPromptSetListActiveSchema = z32.object({ data: z32.array(CustomPromptSetReferenceSchema).optional() }).passthrough();
3446
- var CustomPromptSetVersionInfoSchema = z32.object({
3447
- uuid: z32.string(),
3448
- status: z32.string(),
3449
- is_latest: z32.boolean(),
3450
- version: z32.string().nullable().optional(),
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: z32.string().nullable().optional()
3453
- }).passthrough();
3454
- var CustomPromptCreateRequestSchema = z32.object({
3455
- prompt: z32.string(),
3456
- prompt_set_id: z32.string(),
3457
- goal: z32.unknown().optional(),
3458
- properties: z32.unknown().optional()
3459
- }).passthrough();
3460
- var CustomPromptUpdateRequestSchema = z32.object({
3461
- prompt: z32.unknown().optional(),
3462
- goal: z32.unknown().optional(),
3463
- properties: z32.unknown().optional()
3464
- }).passthrough();
3465
- var CustomPromptResponseSchema = z32.object({
3466
- uuid: z32.string(),
3467
- prompt: z32.string(),
3468
- user_defined_goal: z32.boolean(),
3469
- status: z32.string(),
3470
- active: z32.boolean(),
3471
- prompt_set_id: z32.string(),
3472
- created_at: z32.string(),
3473
- updated_at: z32.string(),
3474
- goal: z32.unknown().optional(),
3475
- properties: z32.unknown().optional(),
3476
- property_assignments: z32.array(z32.unknown()).optional(),
3477
- detector_category: z32.unknown().optional(),
3478
- severity: z32.unknown().optional(),
3479
- extra_info: z32.unknown().optional()
3480
- }).passthrough();
3481
- var CustomPromptListItemSchema = z32.object({
3482
- uuid: z32.string(),
3483
- prompt: z32.string(),
3484
- user_defined_goal: z32.boolean(),
3485
- status: z32.string(),
3486
- active: z32.boolean(),
3487
- created_at: z32.string(),
3488
- updated_at: z32.string(),
3489
- goal: z32.unknown().optional(),
3490
- properties: z32.unknown().optional()
3491
- }).passthrough();
3492
- var CustomPromptListSchema = z32.object({
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: z32.array(CustomPromptListItemSchema).optional()
3495
- }).passthrough();
3496
- var PropertyNameCreateRequestSchema = z32.object({ name: z32.string() }).passthrough();
3497
- var PropertyValueCreateRequestSchema = z32.object({
3498
- property_name: z32.string(),
3499
- property_value: z32.string()
3500
- }).passthrough();
3501
- var PropertyDefinitionSchema = z32.object({
3502
- property_name: z32.string(),
3503
- created_at: z32.string()
3504
- }).passthrough();
3505
- var PropertyNamesListResponseSchema = z32.object({ data: z32.array(z32.string()).optional() }).passthrough();
3506
- var PropertyValuesResponseSchema = z32.object({
3507
- name: z32.string(),
3508
- values: z32.array(z32.string()).optional()
3509
- }).passthrough();
3510
- var PropertyValuesMultipleResponseSchema = z32.object({ data: z32.record(z32.array(z32.string())).optional() }).passthrough();
3511
- var DashboardOverviewResponseSchema = z32.object({
3512
- total_targets: z32.number().int(),
3513
- targets_by_type: z32.array(CountByNameSchema).optional()
3514
- }).passthrough();
3515
- var EulaAcceptRequestSchema = z32.object({
3516
- eula_content: z32.string(),
3517
- accepted_at: z32.string().nullable().optional()
3518
- }).passthrough();
3519
- var EulaContentResponseSchema = z32.object({
3520
- content: z32.string()
3521
- }).passthrough();
3522
- var EulaResponseSchema = z32.object({
3523
- uuid: z32.string().nullable().optional(),
3524
- is_accepted: z32.boolean(),
3525
- accepted_at: z32.string().nullable().optional(),
3526
- accepted_by_user_id: z32.string().nullable().optional()
3527
- }).passthrough();
3528
- var DeviceInstanceSchema = z32.object({
3529
- app_id: z32.string(),
3530
- region: z32.string(),
3531
- tenant_id: z32.string(),
3532
- tsg_id: z32.string()
3533
- }).passthrough();
3534
- var DeviceLicenseSchema = z32.object({
3535
- authorizationCode: z32.string().optional(),
3536
- expirationDate: z32.string().optional(),
3537
- licensePanDbIdentification: z32.string().optional(),
3538
- partNumber: z32.string().optional(),
3539
- serialNumber: z32.string().optional(),
3540
- subtypeName: z32.string().optional(),
3541
- registrationDate: z32.string().optional()
3542
- }).passthrough();
3543
- var DeviceSchema = z32.object({
3544
- serial_number: z32.string(),
3545
- model: z32.string().optional(),
3546
- sku: z32.string().optional(),
3547
- device_type: z32.string().optional(),
3548
- device_name: z32.string().optional(),
3549
- tsg_id: z32.string().optional(),
3550
- support_account_id: z32.string().optional(),
3551
- asset_type: z32.string().optional(),
3552
- licenses: z32.array(DeviceLicenseSchema).optional()
3553
- }).passthrough();
3554
- var DeviceStatusSchema = z32.object({
3555
- status: z32.string(),
3556
- error: z32.string().optional(),
3557
- serial_number: z32.string().optional()
3558
- }).passthrough();
3559
- var DeviceRequestSchema = z32.object({
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: z32.string().optional(),
3562
- devices: z32.array(DeviceSchema).optional()
3563
- }).passthrough();
3564
- var DeviceResponseSchema = z32.object({
3565
- devices: z32.array(DeviceStatusSchema).optional(),
3566
- status: z32.string().optional()
3567
- }).passthrough();
3568
- var DeploymentProfileAttributeSchema = z32.object({
3569
- quantity: z32.number().optional(),
3570
- unit_of_measure: z32.string().optional()
3571
- }).passthrough();
3572
- var DeploymentProfileRequestSchema = z32.object({
3573
- dAuthCode: z32.string().optional(),
3574
- deploymentProfileId: z32.string().optional(),
3575
- license_expiration: z32.string().optional(),
3576
- profileName: z32.string().optional(),
3577
- subType: z32.string().optional(),
3578
- subscriptions: z32.string().optional(),
3579
- type: z32.string().optional(),
3580
- aveTextRecord: z32.number().default(0),
3581
- attributes: z32.array(DeploymentProfileAttributeSchema).optional()
3582
- }).passthrough();
3583
- var InstanceExtraDetailsSchema = z32.object({
3584
- deployment_profiles: z32.array(DeploymentProfileRequestSchema).optional(),
3585
- airs_shared_by_tsg: z32.string().optional(),
3586
- airs_unshared_dps: z32.string().optional()
3587
- }).passthrough();
3588
- var InstanceRequestSchema = z32.object({
3589
- tsg_id: z32.string(),
3590
- tenant_id: z32.string(),
3591
- app_id: z32.string(),
3592
- region: z32.string(),
3593
- support_account_id: z32.string().optional(),
3594
- support_account_name: z32.string().optional(),
3595
- created_by: z32.string().optional(),
3596
- internal: z32.boolean().optional(),
3597
- tenant_instance_name: z32.string().optional(),
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: z32.boolean().optional(),
3600
- platform_region: z32.string().optional(),
3601
- csp_tenant_id: z32.string().optional(),
3602
- tsg_instances: z32.unknown().optional()
3603
- }).passthrough();
3604
- var InstanceResponseSchema = z32.object({
3605
- tsg_id: z32.string(),
3606
- tenant_id: z32.string().optional(),
3607
- app_id: z32.string().optional(),
3608
- is_success: z32.boolean().optional()
3609
- }).passthrough();
3610
- var InstanceGetResponseSchema = z32.object({
3611
- tsg_id: z32.string(),
3612
- tenant_id: z32.string(),
3613
- app_id: z32.string(),
3614
- region: z32.string(),
3615
- support_account_id: z32.string().optional(),
3616
- support_account_name: z32.string().optional(),
3617
- created_by: z32.string().optional(),
3618
- internal: z32.boolean().optional(),
3619
- tenant_instance_name: z32.string().optional(),
3620
- deployment_profiles: z32.array(DeploymentProfileRequestSchema).optional()
3621
- }).passthrough();
3622
- var RegistryCredentialsSchema = z32.object({
3623
- token: z32.string(),
3624
- expiry: z32.string()
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 z33 } from "zod";
3650
- var OAuthTokenResponseSchema = z33.object({
3651
- access_token: z33.string(),
3652
- token_type: z33.string().optional(),
3653
- expires_in: z33.number(),
3654
- scope: z33.string().optional()
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 The deleted customer app.
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 app = await mgmt.customerApps.delete('myapp', 'user@example.com');
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: CustomerAppSchema,
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 z34 } from "zod";
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: z34.string(),
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 z35 } from "zod";
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: z35.array(CategoryModelSchema),
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 z36 } from "zod";
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: z36.unknown(),
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: z36.unknown(),
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 z37 } from "zod";
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: z37.array(PromptDetailResponseSchema),
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: z37.array(CustomAttackOutputSchema),
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: z37.array(PropertyStatisticSchema),
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 z38 } from "zod";
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: z38.record(z38.unknown()),
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,