@myapihq/sdk 1.3.2 → 1.3.5

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/hq.ts +8 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@myapihq/sdk",
3
3
  "license": "Apache-2.0",
4
- "version": "1.3.2",
4
+ "version": "1.3.5",
5
5
  "description": "TypeScript SDK for the MyAPI ecosystem",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
package/src/hq.ts CHANGED
@@ -285,7 +285,14 @@ export interface DoctorIssue {
285
285
  severity: DoctorSeverity;
286
286
  scope: string; // logical scope, e.g. 'funnel/<slug>'
287
287
  entity?: DoctorEntityRef;
288
- category?: string; // 'reference_integrity' | 'orphan' | 'activity' | 'security' | 'billing' | 'network'
288
+ // Open string do not exhaustively switch on it. Backend categories,
289
+ // per the OpenAPI schema: 'reference_integrity' | 'orphan' | 'activity' |
290
+ // 'security' | 'billing' | 'internal'. The backend may also emit
291
+ // slash-namespaced subcategories (e.g. 'security/spf', 'security/dmarc');
292
+ // if you branch on category, match the parent by splitting on the first
293
+ // '/'. The CLI's local augmentation adds one more category not in the
294
+ // schema: 'network' (the DNS + HTTP reachability probes).
295
+ category?: string;
289
296
  message: string;
290
297
  hint?: string;
291
298
  }