@cdot65/prisma-airs-sdk 0.17.0 → 0.19.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 CHANGED
@@ -56,6 +56,28 @@ console.log(result.action); // "allow" | "block"
56
56
 
57
57
  That's the API-key scanning path. The OAuth2 clients (`ManagementClient`, `ModelSecurityClient`, `RedTeamClient`, `AIGatewayClient`), authentication setup, error handling, and runnable examples are all covered in the documentation.
58
58
 
59
+ ## Complete list reads
60
+
61
+ List endpoints still return their native page envelopes through `list()`. For workflows that need
62
+ the complete result set, the OAuth resource clients also provide all-page helpers:
63
+
64
+ ```ts
65
+ const profiles = await management.profiles.listAll({ latest: true });
66
+ const models = await modelSecurity.models.listAllModels({ search_query: 'llama' });
67
+ const targets = await redTeam.targets.listAll({ status: 'READY' });
68
+ const patterns = await management.dlp.dataPatterns.listAll({ status: 'active' });
69
+ ```
70
+
71
+ All-page helpers preserve resource filters and normalize the APIs' different pagination dialects
72
+ (`offset`/`limit`, `skip`/`limit`, and Spring `page`/`size`). They collect at most 10,000 records by
73
+ default as runaway-pagination protection. Pass `{ max: 500 }` for a smaller bound or `{ max: 0 }`
74
+ to remove the bound. Low-level consumers can compose the exported `paginate()` async generator and
75
+ `collectAll()` helper for endpoints without a resource-specific convenience method.
76
+
77
+ Profile and topic reads are revision-aware: `profiles.list({ latest: true })` delegates revision
78
+ selection to the service, while `topics.list({ latestOnly: true })` groups all pages by topic name
79
+ and returns the highest revision. `getByName()` returns the highest revision for both resources.
80
+
59
81
  ## AI Gateway
60
82
 
61
83
  `AIGatewayClient` covers the SCM-managed Prisma AIRS **AI Gateway** — runtime telemetry and configuration across two planes behind one credential set: a data plane (`/ai_gw/v2`, telemetry + workspace-scoped config) and an admin plane (`/ai_gw/admin/v2`, organisation-level config). Twelve sub-clients: `telemetry`, `workspaces`, `configs`, `guardrails`, `providers`, `apiKeys` (data plane) and `integrations`, `mcpIntegrations`, `deployments`, `plugins`, `organisations`, `auditLogs` (admin plane).