@zinn-digital/sdk 0.1.1979 → 0.1.1980
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.
- package/dist/generated/schema.d.ts +90 -0
- package/package.json +1 -1
|
@@ -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} */
|
|
@@ -126525,6 +126581,40 @@ export interface operations {
|
|
|
126525
126581
|
422: components["responses"]["UnprocessableEntity"];
|
|
126526
126582
|
};
|
|
126527
126583
|
};
|
|
126584
|
+
getAdminActivity: {
|
|
126585
|
+
parameters: {
|
|
126586
|
+
query?: {
|
|
126587
|
+
/** @description One of the response's `groups`. */
|
|
126588
|
+
group?: string;
|
|
126589
|
+
hours?: "1" | "24" | "168";
|
|
126590
|
+
/** @description One of the response's `kinds[].kind`. */
|
|
126591
|
+
kind?: string;
|
|
126592
|
+
org?: string;
|
|
126593
|
+
/** @description The previous response's cursor. */
|
|
126594
|
+
since?: string;
|
|
126595
|
+
};
|
|
126596
|
+
header?: never;
|
|
126597
|
+
path?: never;
|
|
126598
|
+
cookie?: never;
|
|
126599
|
+
};
|
|
126600
|
+
requestBody?: never;
|
|
126601
|
+
responses: {
|
|
126602
|
+
/** @description Counts and items. */
|
|
126603
|
+
200: {
|
|
126604
|
+
headers: {
|
|
126605
|
+
[name: string]: unknown;
|
|
126606
|
+
};
|
|
126607
|
+
content: {
|
|
126608
|
+
"application/json": {
|
|
126609
|
+
data: components["schemas"]["AdminActivity"];
|
|
126610
|
+
};
|
|
126611
|
+
};
|
|
126612
|
+
};
|
|
126613
|
+
401: components["responses"]["Unauthorized"];
|
|
126614
|
+
403: components["responses"]["Forbidden"];
|
|
126615
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
126616
|
+
};
|
|
126617
|
+
};
|
|
126528
126618
|
resolveAdminActors: {
|
|
126529
126619
|
parameters: {
|
|
126530
126620
|
query?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1980",
|
|
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>",
|