@zinn-digital/sdk 0.1.2114 → 0.1.2116

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.
@@ -10364,6 +10364,26 @@ export interface paths {
10364
10364
  patch?: never;
10365
10365
  trace?: never;
10366
10366
  };
10367
+ "/v1/admin/mrr": {
10368
+ parameters: {
10369
+ query?: never;
10370
+ header?: never;
10371
+ path?: never;
10372
+ cookie?: never;
10373
+ };
10374
+ /**
10375
+ * THE monthly recurring revenue — one net total in USD and GBP, with its breakdown.
10376
+ * @description Owner ruling 2026-11-25 (DAY-0024). One definition (`engine/billing/mrr.py`): active, priced, non-comped subscriptions outside a free period, plus scheduled recurring charges, on organisations in good standing; past-due subscriptions and paying ones on suspended or closed organisations are left out and reported in `overdue`; $0 plans, trials and our own, staff and test organisations are left out. Each price is normalised to a month and converted at the stored FX rates (`fx_fetched_at`). Money is integer minor units, net of tax. `usd_minor`/`gbp_minor` are null, with `missing_rates` naming why, when a currency has no stored rate. The admin Overview and Business screens both read this endpoint.
10377
+ */
10378
+ get: operations["getAdminMrr"];
10379
+ put?: never;
10380
+ post?: never;
10381
+ delete?: never;
10382
+ options?: never;
10383
+ head?: never;
10384
+ patch?: never;
10385
+ trace?: never;
10386
+ };
10367
10387
  "/v1/admin/news-pool": {
10368
10388
  parameters: {
10369
10389
  query?: never;
@@ -67616,6 +67636,42 @@ export interface components {
67616
67636
  amount_minor: number;
67617
67637
  currency: components["schemas"]["CurrencyCode"];
67618
67638
  };
67639
+ AdminMrr: {
67640
+ /** Format: date-time */
67641
+ as_of: string;
67642
+ by_currency: {
67643
+ currency: string;
67644
+ monthly_minor: number;
67645
+ }[];
67646
+ by_plan: {
67647
+ count: number;
67648
+ currency: string;
67649
+ interval: string;
67650
+ /** @description Per month */
67651
+ monthly_minor: number;
67652
+ plan: string;
67653
+ /** @description `recurring_charge` for scheduled recurring charges. */
67654
+ product_line: string;
67655
+ usd_minor: number | null;
67656
+ }[];
67657
+ /**
67658
+ * Format: date-time
67659
+ * @description Oldest fetch time among the stored rates used.
67660
+ */
67661
+ fx_fetched_at: string | null;
67662
+ /** @description Net MRR in pence (USD total at the stored GBP rate). */
67663
+ gbp_minor: number | null;
67664
+ missing_rates: string[];
67665
+ overdue: {
67666
+ count: number;
67667
+ usd_minor: number | null;
67668
+ };
67669
+ paying_orgs: number;
67670
+ recurring_charges: number;
67671
+ subscriptions: number;
67672
+ /** @description Net MRR in US cents. */
67673
+ usd_minor: number | null;
67674
+ };
67619
67675
  /** @description One currency's monthly recurring revenue, in integer minor units. ⛔ Never add two of these together: they are different currencies and there is no rate here. Present them side by side, or convert with a rate you state. */
67620
67676
  AdminMrrByCurrency: {
67621
67677
  currency: components["schemas"]["CurrencyCode"];
@@ -95891,6 +95947,8 @@ export interface components {
95891
95947
  /** Format: uuid */
95892
95948
  id: string;
95893
95949
  provider: components["schemas"]["MailProvider"];
95950
+ /** @description The status a customer is shown; see `MailService.shown_status` (P4-066). */
95951
+ shown_status?: string;
95894
95952
  status: components["schemas"]["MailServiceStatus"];
95895
95953
  };
95896
95954
  MailForwarder: {
@@ -96275,6 +96333,16 @@ export interface components {
96275
96333
  /** @description The domain the mailboxes are on. */
96276
96334
  fqdn: string;
96277
96335
  id: components["schemas"]["Uuid"];
96336
+ /**
96337
+ * Format: date-time
96338
+ * @description When `inbound_state` was last measured; `null` = never.
96339
+ */
96340
+ inbound_checked_at?: string | null;
96341
+ /**
96342
+ * @description Whether mail for this domain ARRIVES here, by the domain's own public DNS, checked hourly and on every read of `GET /v1/mail/services/{mailServiceId}/dns-records` (P4-066). `status` is the provisioning state; show an `active` service as working only when this is `verified` (MX, SPF and DKIM all answer with our values). `not_arriving`: the MX is missing or points elsewhere, so no mail reaches the mailboxes; `incomplete`: mail arrives but SPF or DKIM is missing; `unknown`: the domain's nameservers could not be asked (never shown as broken); `unchecked`: not asked yet.
96343
+ * @enum {string}
96344
+ */
96345
+ inbound_state?: "verified" | "not_arriving" | "incomplete" | "unknown" | "unchecked";
96278
96346
  /**
96279
96347
  * @description **This domain uses us for mail and nothing else** — an active mail service on a hostname no website of ours serves.
96280
96348
  *
@@ -96300,6 +96368,8 @@ export interface components {
96300
96368
  provider: components["schemas"]["MailProvider"];
96301
96369
  /** @description The `custom` provider's declared values, served back so the domain screen can show and edit what was declared. `null` on every other provider, whose values are documented and derived rather than stored. */
96302
96370
  provider_config?: components["schemas"]["MailProviderConfig"] | null;
96371
+ /** @description The ONLY status a customer surface renders (P4-066). A non-active service carries its `status` unchanged; an `active` one is `active` only when `inbound_state` is `verified`, else `not_receiving` (MX missing or elsewhere), `records_incomplete` (MX here, SPF/DKIM missing) or `checking` (not yet readable). */
96372
+ shown_status?: string;
96303
96373
  /** @description The site currently serving this domain, or `null` when no site does. **Derived from the hostname, never stored**: mail attaches to a domain and a domain outlives the site on it, so a stored site id would go stale the day a domain moved between sites — and nothing would notice, because mail would keep working. `null` is a normal state (a BYO hostname, or mail kept after its site was deleted), not an error. */
96304
96374
  site?: components["schemas"]["MailServiceSite"] | null;
96305
96375
  status: components["schemas"]["MailServiceStatus"];
@@ -142780,6 +142850,27 @@ export interface operations {
142780
142850
  429: components["responses"]["TooManyRequests"];
142781
142851
  };
142782
142852
  };
142853
+ getAdminMrr: {
142854
+ parameters: {
142855
+ query?: never;
142856
+ header?: never;
142857
+ path?: never;
142858
+ cookie?: never;
142859
+ };
142860
+ requestBody?: never;
142861
+ responses: {
142862
+ /** @description The figure, as of now. */
142863
+ 200: {
142864
+ headers: {
142865
+ [name: string]: unknown;
142866
+ };
142867
+ content: {
142868
+ "application/json": components["schemas"]["AdminMrr"];
142869
+ };
142870
+ };
142871
+ 403: components["responses"]["Forbidden"];
142872
+ };
142873
+ };
142783
142874
  getAdminNewsPool: {
142784
142875
  parameters: {
142785
142876
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.2114",
3
+ "version": "0.1.2116",
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>",