@cdot65/prisma-airs-sdk 0.6.10 → 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.10";
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";