@cdot65/prisma-airs-sdk 0.6.10 → 0.7.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/README.md +16 -2
- package/dist/index.cjs +515 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2174 -118
- package/dist/index.d.ts +2174 -118
- package/dist/index.js +482 -12
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
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)
|
|
@@ -89,10 +92,21 @@ import { RedTeamClient } from '@cdot65/prisma-airs-sdk';
|
|
|
89
92
|
|
|
90
93
|
const client = new RedTeamClient(); // falls back to PANW_MGMT_* env vars
|
|
91
94
|
|
|
92
|
-
//
|
|
95
|
+
// 7 sub-clients: scans, reports, customAttackReports, targets, customAttacks, eula, instances
|
|
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
|
+
// EULA + instance management
|
|
101
|
+
const eulaStatus = await client.eula.getStatus();
|
|
102
|
+
const templates = await client.targets.getTargetTemplates();
|
|
103
|
+
|
|
104
|
+
// 7 convenience methods on the top-level client
|
|
105
|
+
const stats = await client.getScanStatistics();
|
|
106
|
+
const trend = await client.getScoreTrend('target-uuid');
|
|
107
|
+
const quota = await client.getQuota();
|
|
108
|
+
const errors = await client.getErrorLogs('job-uuid');
|
|
109
|
+
const dashboard = await client.getDashboardOverview();
|
|
96
110
|
```
|
|
97
111
|
|
|
98
112
|
## Authentication
|
|
@@ -138,7 +152,7 @@ Full documentation at **[cdot65.github.io/prisma-airs-sdk](https://cdot65.github
|
|
|
138
152
|
```bash
|
|
139
153
|
npm install
|
|
140
154
|
npm run build # tsup (CJS + ESM + .d.ts)
|
|
141
|
-
npm run test # vitest (
|
|
155
|
+
npm run test # vitest (970 tests, 99%+ coverage)
|
|
142
156
|
npm run lint # eslint
|
|
143
157
|
npm run typecheck # tsc --noEmit
|
|
144
158
|
```
|