@zinn-digital/sdk 0.1.1420 → 0.1.1421

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.
@@ -15687,6 +15687,49 @@ export interface paths {
15687
15687
  patch?: never;
15688
15688
  trace?: never;
15689
15689
  };
15690
+ "/v1/admin/vendor-usage/moz": {
15691
+ parameters: {
15692
+ query?: never;
15693
+ header?: never;
15694
+ path?: never;
15695
+ cookie?: never;
15696
+ };
15697
+ /**
15698
+ * The shared Moz API account's usage, expected figures and plan advice (staff).
15699
+ * @description s1014 MOZ-V2. One Moz account (Growth Medium) serves V1, V2, ZinnHub and launch. An hourly workflow stores a free `quota.lookup` reading; this returns the newest (used / allotted), the daily burn for 14 days and its 7-day average, the projected month-end, each project's EXPECTED monthly rows (a planning figure, never a cap) with what it reported spending (V2's own spend is its call ledger; `used` null = that project has not reported), and an upgrade-or-overage advice computed from the stored plan prices. Requires staff + `platform.seo.manage`.
15700
+ */
15701
+ get: operations["getMozVendorUsage"];
15702
+ put?: never;
15703
+ post?: never;
15704
+ delete?: never;
15705
+ options?: never;
15706
+ head?: never;
15707
+ patch?: never;
15708
+ trace?: never;
15709
+ };
15710
+ "/v1/admin/vendor-usage/moz/caps/{project}": {
15711
+ parameters: {
15712
+ query?: never;
15713
+ header?: never;
15714
+ path: {
15715
+ /** @example v2 */
15716
+ project: string;
15717
+ };
15718
+ cookie?: never;
15719
+ };
15720
+ get?: never;
15721
+ put?: never;
15722
+ post?: never;
15723
+ delete?: never;
15724
+ options?: never;
15725
+ head?: never;
15726
+ /**
15727
+ * Change one project's expected monthly Moz rows (staff).
15728
+ * @description `monthly_rows` 0-5,000,000 and `alert_percent` 1-100. A planning figure only: nothing stops at it (owner, 2026-11-03: every eligible site is measured; the account-wide alerts are the control). Audit-logged with before and after. Requires staff + `platform.seo.manage`.
15729
+ */
15730
+ patch: operations["updateMozProjectCap"];
15731
+ trace?: never;
15732
+ };
15690
15733
  "/v1/admin/visibility": {
15691
15734
  parameters: {
15692
15735
  query?: never;
@@ -87185,6 +87228,65 @@ export interface components {
87185
87228
  step: string | null;
87186
87229
  to_release: string | null;
87187
87230
  };
87231
+ MozProjectCap: {
87232
+ /** @example 80 */
87233
+ alert_percent: number;
87234
+ /** @example V2 */
87235
+ label: string;
87236
+ /** @example 5000 */
87237
+ monthly_rows: number;
87238
+ /** @example v2 */
87239
+ project: string;
87240
+ };
87241
+ /** @description The shared Moz account, as `getMozVendorUsage` reports it (s1014 MOZ-V2). */
87242
+ MozVendorUsage: {
87243
+ advice: {
87244
+ /** @enum {string} */
87245
+ action: "stay" | "upgrade" | "unknown";
87246
+ break_even_rows?: number | null;
87247
+ /** @example USD */
87248
+ currency: string;
87249
+ current_cost_minor?: number | null;
87250
+ plan_key: string;
87251
+ plan_name: string;
87252
+ projected_cost_minor?: number | null;
87253
+ };
87254
+ /** @example 120000 */
87255
+ allotted: number | null;
87256
+ daily: {
87257
+ /** Format: date */
87258
+ day: string;
87259
+ rows: number;
87260
+ }[];
87261
+ daily_burn_avg_7d?: number;
87262
+ period_reset_at?: string | null;
87263
+ plans: {
87264
+ currency: string;
87265
+ is_current: boolean;
87266
+ key: string;
87267
+ monthly_minor: number;
87268
+ name: string;
87269
+ overage_block_rows?: number;
87270
+ overage_minor_per_block?: number | null;
87271
+ rows_included: number;
87272
+ }[];
87273
+ projected_month_end: number | null;
87274
+ projects: {
87275
+ alert_percent: number;
87276
+ label: string;
87277
+ monthly_rows: number;
87278
+ percent: number | null;
87279
+ project: string;
87280
+ used: number | null;
87281
+ }[];
87282
+ read_at: string | null;
87283
+ read_error?: string;
87284
+ read_ok: boolean;
87285
+ spare_rows?: number | null;
87286
+ today_rows?: number;
87287
+ /** @example 4120 */
87288
+ used: number | null;
87289
+ };
87188
87290
  /** @description What one manual sync did. */
87189
87291
  MyXeroSyncRun: {
87190
87292
  connection?: components["schemas"]["XeroConnection"];
@@ -102546,6 +102648,11 @@ export interface components {
102546
102648
  * @example -1
102547
102649
  */
102548
102650
  citation_flow_delta?: number | null;
102651
+ /**
102652
+ * @description s1014 MOZ-V2 (owner 2026-11-03) — Domain Authority by Moz (https://moz.com/), 1-100, free on every LIVE site whatever the plan: first measured 3 days after the site's own domain first reached us, then every 30 days. Null = not measured yet or Moz had no answer — never 0. Any surface showing it credits "Domain Authority by Moz".
102653
+ * @example 24
102654
+ */
102655
+ domain_authority?: number | null;
102549
102656
  /**
102550
102657
  * @description s1006 (owner D42) — Domain Rating by Ahrefs (https://ahrefs.com/), 0-100, on every site whatever the plan: first measured 3 days after the site is added, then monthly. Null = not measured yet or no answer — never 0. Any surface showing it must credit "Domain Rating by Ahrefs" (licence term).
102551
102658
  * @example 37
@@ -102580,6 +102687,13 @@ export interface components {
102580
102687
  * @enum {string}
102581
102688
  */
102582
102689
  index_state: "indexed" | "not_indexed" | "unknown" | "never_checked" | "not_entitled";
102690
+ /** @description When the Moz reading was taken. */
102691
+ moz_measured_at?: string | null;
102692
+ /**
102693
+ * @description Moz Page Authority of the site's homepage, 1-100, from the same reading.
102694
+ * @example 31
102695
+ */
102696
+ page_authority?: number | null;
102583
102697
  /**
102584
102698
  * @description Distinct domains linking here. Null when not supplied; `0` is a measurement.
102585
102699
  * @example 118
@@ -102617,6 +102731,11 @@ export interface components {
102617
102731
  * @enum {string}
102618
102732
  */
102619
102733
  seo_state: "measured" | "not_in_index" | "never_fetched" | "not_entitled";
102734
+ /**
102735
+ * @description Moz Spam Score, 0-100 (percent of sites with similar features Moz found penalised), from the same reading. 0 is a real, good reading; null is unmeasured.
102736
+ * @example 1
102737
+ */
102738
+ spam_score?: number | null;
102620
102739
  /**
102621
102740
  * @description Trust Flow, 0-100. **Null means the provider did not supply it**; `0` means it measured zero. Only present when `seo_state` is `measured`.
102622
102741
  * @example 24
@@ -135470,6 +135589,62 @@ export interface operations {
135470
135589
  429: components["responses"]["TooManyRequests"];
135471
135590
  };
135472
135591
  };
135592
+ getMozVendorUsage: {
135593
+ parameters: {
135594
+ query?: never;
135595
+ header?: never;
135596
+ path?: never;
135597
+ cookie?: never;
135598
+ };
135599
+ requestBody?: never;
135600
+ responses: {
135601
+ /** @description The usage report. */
135602
+ 200: {
135603
+ headers: {
135604
+ [name: string]: unknown;
135605
+ };
135606
+ content: {
135607
+ "application/json": components["schemas"]["MozVendorUsage"];
135608
+ };
135609
+ };
135610
+ 401: components["responses"]["Unauthorized"];
135611
+ 403: components["responses"]["Forbidden"];
135612
+ };
135613
+ };
135614
+ updateMozProjectCap: {
135615
+ parameters: {
135616
+ query?: never;
135617
+ header?: never;
135618
+ path: {
135619
+ /** @example v2 */
135620
+ project: string;
135621
+ };
135622
+ cookie?: never;
135623
+ };
135624
+ requestBody: {
135625
+ content: {
135626
+ "application/json": {
135627
+ alert_percent?: number;
135628
+ monthly_rows?: number;
135629
+ };
135630
+ };
135631
+ };
135632
+ responses: {
135633
+ /** @description The expected figure, as stored. */
135634
+ 200: {
135635
+ headers: {
135636
+ [name: string]: unknown;
135637
+ };
135638
+ content: {
135639
+ "application/json": components["schemas"]["MozProjectCap"];
135640
+ };
135641
+ };
135642
+ 401: components["responses"]["Unauthorized"];
135643
+ 403: components["responses"]["Forbidden"];
135644
+ 404: components["responses"]["NotFound"];
135645
+ 422: components["responses"]["UnprocessableEntity"];
135646
+ };
135647
+ };
135473
135648
  getVisibilitySpend: {
135474
135649
  parameters: {
135475
135650
  query?: never;
@@ -187139,8 +187314,20 @@ export interface operations {
187139
187314
  group?: string;
187140
187315
  /** @description Maximum items to return (page size). */
187141
187316
  limit?: components["parameters"]["Limit"];
187317
+ /** @description Only sites whose newest Moz Domain Authority is at most this. s1014 MOZ-V2. A site Moz has not measured is excluded by any bound on that metric (not measured is never 0). Applied across the whole collection. */
187318
+ max_da?: number;
187319
+ /** @description Only sites whose newest Moz homepage Page Authority is at most this. s1014 MOZ-V2. A site Moz has not measured is excluded by any bound on that metric (not measured is never 0). Applied across the whole collection. */
187320
+ max_pa?: number;
187321
+ /** @description Only sites whose newest Moz Spam Score (percent) is at most this. s1014 MOZ-V2. A site Moz has not measured is excluded by any bound on that metric (not measured is never 0). Applied across the whole collection. */
187322
+ max_spam?: number;
187323
+ /** @description Only sites whose newest Moz Domain Authority is at least this. s1014 MOZ-V2. A site Moz has not measured is excluded by any bound on that metric (not measured is never 0). Applied across the whole collection. */
187324
+ min_da?: number;
187325
+ /** @description Only sites whose newest Moz homepage Page Authority is at least this. s1014 MOZ-V2. A site Moz has not measured is excluded by any bound on that metric (not measured is never 0). Applied across the whole collection. */
187326
+ min_pa?: number;
187327
+ /** @description Only sites whose newest Moz Spam Score (percent) is at least this. s1014 MOZ-V2. A site Moz has not measured is excluded by any bound on that metric (not measured is never 0). Applied across the whole collection. */
187328
+ min_spam?: number;
187142
187329
  /** @description Sort key, optionally `-`-prefixed for descending. Defaults to `-created` (newest first). Sorting is applied across the whole collection and the cursor carries the sort position, so paging a sorted list is exact. An unrecognised key is a 422, never a silent fall back to the default. */
187143
- ordering?: "domain" | "-domain" | "name" | "-name" | "status" | "-status" | "line" | "-line" | "stack" | "-stack" | "region" | "-region" | "plan" | "-plan" | "created" | "-created" | "authority" | "-authority" | "indexed" | "-indexed";
187330
+ ordering?: "domain" | "-domain" | "name" | "-name" | "status" | "-status" | "line" | "-line" | "stack" | "-stack" | "region" | "-region" | "plan" | "-plan" | "created" | "-created" | "authority" | "-authority" | "indexed" | "-indexed" | "da" | "-da" | "pa" | "-pa" | "spam" | "-spam";
187144
187331
  /** @description Restrict to one organization in scope (default — the whole subtree). */
187145
187332
  org_id?: components["schemas"]["Uuid"];
187146
187333
  /** @description Filter by product line code (e.g. `footprint_free`, `mainstream`). */
@@ -197373,6 +197560,18 @@ export interface operations {
197373
197560
  query?: {
197374
197561
  /** @description Restrict to the sites in one site group. */
197375
197562
  group?: string;
197563
+ /** @description Only sites whose newest Moz Domain Authority is at most this, exactly as `listSites` applies it (s1014 MOZ-V2); an unmeasured site is excluded by any bound. */
197564
+ max_da?: number;
197565
+ /** @description Only sites whose newest Moz homepage Page Authority is at most this, exactly as `listSites` applies it (s1014 MOZ-V2); an unmeasured site is excluded by any bound. */
197566
+ max_pa?: number;
197567
+ /** @description Only sites whose newest Moz Spam Score (percent) is at most this, exactly as `listSites` applies it (s1014 MOZ-V2); an unmeasured site is excluded by any bound. */
197568
+ max_spam?: number;
197569
+ /** @description Only sites whose newest Moz Domain Authority is at least this, exactly as `listSites` applies it (s1014 MOZ-V2); an unmeasured site is excluded by any bound. */
197570
+ min_da?: number;
197571
+ /** @description Only sites whose newest Moz homepage Page Authority is at least this, exactly as `listSites` applies it (s1014 MOZ-V2); an unmeasured site is excluded by any bound. */
197572
+ min_pa?: number;
197573
+ /** @description Only sites whose newest Moz Spam Score (percent) is at least this, exactly as `listSites` applies it (s1014 MOZ-V2); an unmeasured site is excluded by any bound. */
197574
+ min_spam?: number;
197376
197575
  /** @description Restrict to one organization in the caller's scope. */
197377
197576
  org_id?: components["schemas"]["Uuid"];
197378
197577
  /** @description Filter by product line code. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1420",
3
+ "version": "0.1.1421",
4
4
  "description": "Typed TypeScript client for the Zinn Digital Platform API, generated from its OpenAPI spec.",
5
5
  "license": "MIT",
6
6
  "author": "Neil Lock \u2014 CEO, Zinn Digital\u00ae Ltd <office@zinndigital.com>",