@zinn-digital/sdk 0.1.2115 → 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"];
@@ -142794,6 +142850,27 @@ export interface operations {
142794
142850
  429: components["responses"]["TooManyRequests"];
142795
142851
  };
142796
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
+ };
142797
142874
  getAdminNewsPool: {
142798
142875
  parameters: {
142799
142876
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.2115",
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>",