@zinn-digital/sdk 0.1.1979 → 0.1.1981

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.
@@ -1586,6 +1586,26 @@ export interface paths {
1586
1586
  patch?: never;
1587
1587
  trace?: never;
1588
1588
  };
1589
+ "/v1/admin/activity": {
1590
+ parameters: {
1591
+ query?: never;
1592
+ header?: never;
1593
+ path?: never;
1594
+ cookie?: never;
1595
+ };
1596
+ /**
1597
+ * Activity — what customers are doing in the app, newest first, with counts per kind.
1598
+ * @description Owner 2026-11-22. Servers ordered/built/failed/deleted/resized/moved, panels enrolled or failed, sites added/deleted/moved to a server, migrations in (started/finished/failed), sign-ups, trials (started/converted/expired/cancelled), first payments, domains registered or transferred, plan changes and cancellations, bans and flags. Read from the event ledger, the audit trail and the import jobs; our own and test organisations are excluded. Each item carries the org id, plan, trial yes/no, product line and an admin link — ids only. The same reader feeds the hourly owner e-mail. Requires staff + `customer.view`.
1599
+ */
1600
+ get: operations["getAdminActivity"];
1601
+ put?: never;
1602
+ post?: never;
1603
+ delete?: never;
1604
+ options?: never;
1605
+ head?: never;
1606
+ patch?: never;
1607
+ trace?: never;
1608
+ };
1589
1609
  "/v1/admin/actors": {
1590
1610
  parameters: {
1591
1611
  query?: never;
@@ -63456,6 +63476,42 @@ export interface components {
63456
63476
  data: components["schemas"]["AdminAbuseMatch"][];
63457
63477
  page: components["schemas"]["PageMeta"];
63458
63478
  };
63479
+ AdminActivity: {
63480
+ counts: {
63481
+ count: number;
63482
+ group: string;
63483
+ kind: string;
63484
+ }[];
63485
+ /**
63486
+ * Format: date-time
63487
+ * @description Send back as `since` on the next poll.
63488
+ */
63489
+ cursor: string;
63490
+ groups: string[];
63491
+ items: components["schemas"]["AdminActivityItem"][];
63492
+ kinds: {
63493
+ group: string;
63494
+ kind: string;
63495
+ }[];
63496
+ poll_seconds: number;
63497
+ };
63498
+ AdminActivityItem: {
63499
+ admin_link: string;
63500
+ /** Format: date-time */
63501
+ at: string;
63502
+ group: string;
63503
+ id: string;
63504
+ kind: string;
63505
+ /** Format: uuid */
63506
+ org_id: string | null;
63507
+ plan: string;
63508
+ product_line: string;
63509
+ /** @description The subject's id, e.g. `server:<uuid>`. */
63510
+ ref: string;
63511
+ trial: boolean;
63512
+ /** @description Already alerted instantly (bans, flags, abuse). */
63513
+ urgent: boolean;
63514
+ };
63459
63515
  /** @description One accountable-actor reference, resolved. `kind` is the field that carries the distinction the screen needs and `label` alone cannot: `user`, `apikey` and `org` mean the reference resolved and `label` names it; `system` means the value was never an id (`workflow`, `system`) and `label` repeats it verbatim; `unknown` means it IS an id and no row matches it — a deleted colleague, a revoked key, an id from another environment. An unresolvable reference is returned as an `unknown` ROW and is never omitted, because a screen that renders nothing where an actor exists reads as "nobody did this". */
63460
63516
  AdminActor: {
63461
63517
  /** @enum {string} */
@@ -93455,9 +93511,11 @@ export interface components {
93455
93511
  * @description Where the allowance came from. `domain` means **the domain itself grants it** — it is registered with us or was transferred in, so its mailboxes are free whatever the organization's hosting plan says (owner ruling 2026-08-16). That value can only appear when the request supplied `fqdn`, because it is a fact about one hostname rather than about the organization.
93456
93512
  *
93457
93513
  * `free` is the **last** answer, reached only when the plan and the domain have both declined: mailboxes on our own relay cost storage rather than a per-seat licence, so they are given rather than sold. It is deliberately last — a free tier that won would silently shrink a large paid mailbox to the free quota, invisibly, because mail would go on working. It appears only where our own relay actually serves the mail; where an upstream platform bills us per account there is nothing free to give, and the organization resolves to no allowance at all.
93514
+ *
93515
+ * `staff_arranged` is a staff grant on a custom plan. `own_server` means the domain's site is on **the customer's own managed server** and its mail runs ON that server: included, no mailbox ceiling (`mailbox_limit` -1) and no per-mailbox cap, never billed (owner ruling 2026-11-22). It is checked first and needs `fqdn`.
93458
93516
  * @enum {string}
93459
93517
  */
93460
- source: "staff" | "subscription" | "trial" | "domain" | "free" | "none";
93518
+ source: "staff" | "subscription" | "trial" | "domain" | "free" | "staff_arranged" | "own_server" | "none";
93461
93519
  };
93462
93520
  /** @description One mailbox. Never carries a password — see `MailboxCreated`. */
93463
93521
  Mailbox: {
@@ -109105,6 +109163,11 @@ export interface components {
109105
109163
  * @example bunnycdn
109106
109164
  */
109107
109165
  cdn_vendor?: string;
109166
+ /**
109167
+ * Format: uuid
109168
+ * @description The customer's own server (`GET /v1/compute/servers/{serverId}`) this site runs on, or null for a site on shared hosting. On a managed server the site's email runs on that server (included, unlimited mailboxes, spam filtering), and staging and clones are built on it too.
109169
+ */
109170
+ compute_server_id?: string | null;
109108
109171
  /** Format: date-time */
109109
109172
  created_at: string;
109110
109173
  /**
@@ -126525,6 +126588,40 @@ export interface operations {
126525
126588
  422: components["responses"]["UnprocessableEntity"];
126526
126589
  };
126527
126590
  };
126591
+ getAdminActivity: {
126592
+ parameters: {
126593
+ query?: {
126594
+ /** @description One of the response's `groups`. */
126595
+ group?: string;
126596
+ hours?: "1" | "24" | "168";
126597
+ /** @description One of the response's `kinds[].kind`. */
126598
+ kind?: string;
126599
+ org?: string;
126600
+ /** @description The previous response's cursor. */
126601
+ since?: string;
126602
+ };
126603
+ header?: never;
126604
+ path?: never;
126605
+ cookie?: never;
126606
+ };
126607
+ requestBody?: never;
126608
+ responses: {
126609
+ /** @description Counts and items. */
126610
+ 200: {
126611
+ headers: {
126612
+ [name: string]: unknown;
126613
+ };
126614
+ content: {
126615
+ "application/json": {
126616
+ data: components["schemas"]["AdminActivity"];
126617
+ };
126618
+ };
126619
+ };
126620
+ 401: components["responses"]["Unauthorized"];
126621
+ 403: components["responses"]["Forbidden"];
126622
+ 422: components["responses"]["UnprocessableEntity"];
126623
+ };
126624
+ };
126528
126625
  resolveAdminActors: {
126529
126626
  parameters: {
126530
126627
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1979",
3
+ "version": "0.1.1981",
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>",