@cdot65/prisma-airs-sdk 0.6.9 → 0.6.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -80,6 +80,9 @@ const client = new ModelSecurityClient(); // falls back to PANW_MGMT_* env vars
80
80
  const scans = await client.scans.list({ limit: 10 });
81
81
  const groups = await client.securityGroups.list();
82
82
  const rules = await client.securityRules.list();
83
+
84
+ // PyPI integration auth
85
+ const pypiAuth = await client.getPyPIAuth();
83
86
  ```
84
87
 
85
88
  ### AI Red Teaming — Automated Testing (OAuth2)
@@ -93,6 +96,13 @@ const client = new RedTeamClient(); // falls back to PANW_MGMT_* env vars
93
96
  const scans = await client.scans.list({ limit: 5 });
94
97
  const targets = await client.targets.list();
95
98
  const categories = await client.scans.getCategories();
99
+
100
+ // 7 convenience methods on the top-level client
101
+ const stats = await client.getScanStatistics();
102
+ const trend = await client.getScoreTrend('target-uuid');
103
+ const quota = await client.getQuota();
104
+ const errors = await client.getErrorLogs('job-uuid');
105
+ const dashboard = await client.getDashboardOverview();
96
106
  ```
97
107
 
98
108
  ## Authentication
@@ -138,7 +148,7 @@ Full documentation at **[cdot65.github.io/prisma-airs-sdk](https://cdot65.github
138
148
  ```bash
139
149
  npm install
140
150
  npm run build # tsup (CJS + ESM + .d.ts)
141
- npm run test # vitest (829 tests, 99%+ coverage)
151
+ npm run test # vitest (876 tests, 99%+ coverage)
142
152
  npm run lint # eslint
143
153
  npm run typecheck # tsc --noEmit
144
154
  ```
package/dist/index.cjs CHANGED
@@ -445,7 +445,7 @@ var MAX_NUMBER_OF_BATCH_SCAN_OBJECTS = 5;
445
445
  var MAX_CONNECTION_POOL_SIZE = 100;
446
446
  var MAX_NUMBER_OF_RETRIES = 5;
447
447
  var HTTP_FORCE_RETRY_STATUS_CODES = [500, 502, 503, 504];
448
- var SDK_VERSION = "0.6.9";
448
+ var SDK_VERSION = "0.6.11";
449
449
  var USER_AGENT = `PAN-AIRS/${SDK_VERSION}-typescript-sdk`;
450
450
  var DEFAULT_MGMT_ENDPOINT = "https://api.sase.paloaltonetworks.com/aisec";
451
451
  var DEFAULT_TOKEN_ENDPOINT = "https://auth.apps.paloaltonetworks.com/oauth2/access_token";
@@ -1394,7 +1394,8 @@ var TopicArraySchema = import_zod16.z.object({
1394
1394
  var ModelProtectionItemSchema = import_zod16.z.object({
1395
1395
  name: import_zod16.z.string(),
1396
1396
  action: import_zod16.z.string(),
1397
- "topic-list": import_zod16.z.array(TopicArraySchema).optional()
1397
+ "topic-list": import_zod16.z.array(TopicArraySchema).optional(),
1398
+ options: import_zod16.z.array(import_zod16.z.unknown()).optional()
1398
1399
  }).passthrough();
1399
1400
  var AgentProtectionItemSchema = import_zod16.z.object({
1400
1401
  name: import_zod16.z.string(),
@@ -1408,6 +1409,7 @@ var DlpDataProfilePolicySchema = import_zod16.z.object({
1408
1409
  uuid: import_zod16.z.string(),
1409
1410
  id: import_zod16.z.string().optional(),
1410
1411
  version: import_zod16.z.string().optional(),
1412
+ description: import_zod16.z.string().optional(),
1411
1413
  rule1: DlpRuleSchema.optional(),
1412
1414
  rule2: DlpRuleSchema.optional(),
1413
1415
  "log-severity": import_zod16.z.string().optional(),
@@ -1434,6 +1436,8 @@ var PolicySchema = import_zod16.z.object({
1434
1436
  var SecurityProfileSchema = import_zod16.z.object({
1435
1437
  profile_id: import_zod16.z.string().optional(),
1436
1438
  profile_name: import_zod16.z.string(),
1439
+ csp_id: import_zod16.z.string().optional(),
1440
+ tsg_id: import_zod16.z.string().optional(),
1437
1441
  revision: import_zod16.z.number().optional(),
1438
1442
  active: import_zod16.z.boolean().optional(),
1439
1443
  policy: PolicySchema.optional(),
@@ -1444,6 +1448,8 @@ var SecurityProfileSchema = import_zod16.z.object({
1444
1448
  var CreateSecurityProfileRequestSchema = import_zod16.z.object({
1445
1449
  profile_id: import_zod16.z.string().optional(),
1446
1450
  profile_name: import_zod16.z.string(),
1451
+ csp_id: import_zod16.z.string().optional(),
1452
+ tsg_id: import_zod16.z.string().optional(),
1447
1453
  revision: import_zod16.z.number().optional(),
1448
1454
  active: import_zod16.z.boolean().optional(),
1449
1455
  policy: PolicySchema.optional(),