@zinn-digital/sdk 0.1.1775 → 0.1.1777
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.
|
@@ -33302,6 +33302,8 @@ export interface paths {
|
|
|
33302
33302
|
* **Paginated (issue #466).** Keyset cursor over `(name, type, value, id)`, default page size 50, hard maximum 200. Filtering by product line happens **before** pagination, so a hidden record can never surface on a later page. A client must follow `page.next_cursor` until `page.has_more` is false; reading only the first page reads only the first page.
|
|
33303
33303
|
*
|
|
33304
33304
|
* **Two different 404s, and a client MUST branch on the `code` rather than the status.** `NOT_FOUND` is the ordinary miss — no such domain, or not in your scope. `DNS_NOT_HOSTED` means the domain exists and is yours, but its nameservers point at another DNS provider, so there is no zone here to read. The second is **permanent until the customer re-delegates** and retrying can never succeed; on a Footprint-Free estate, where most names are registered elsewhere and merely pointed at us, it is the normal answer for most domains rather than an edge case. Both carry the identical message, deliberately, so that a caller who may not see the domain cannot tell the two apart by wording.
|
|
33305
|
+
*
|
|
33306
|
+
* **`?not_hosted=empty`** asks for the `DNS_NOT_HOSTED` case as an ordinary answer instead: `200` with `data: []`, `has_more: false` and `hosted: false`. The dashboard sends it because it reads this list on every domain page and whether we host a zone cannot be told from `delegation_state` (a delegated domain can still have no zone here). `NOT_FOUND` is unchanged by it: a domain you cannot see is still a `404`.
|
|
33305
33307
|
*/
|
|
33306
33308
|
get: operations["listDnsRecords"];
|
|
33307
33309
|
put?: never;
|
|
@@ -39913,7 +39915,7 @@ export interface paths {
|
|
|
39913
39915
|
* Record where the signed-in customer came from (the app's landing capture).
|
|
39914
39916
|
* @description The dashboard captures `utm_*`, `ref`, `zd_vid` (the product sites' visit id), the referring host and the landing page BEFORE the sign-in hop, and sends them here on the first signed-in page load. This is the only way an app sign-up can be attributed: self-registration provisions the organization inside authentication, which never sees the landing URL (docs/750). Unknown keys are dropped, values are capped, and the landing page is host and path only.
|
|
39915
39917
|
*
|
|
39916
|
-
* Recorded only against an organization the caller OWNS — a member of someone else's account did not bring it to us — and never under impersonation. The first touch is written once and never overwritten; the last touch is overwritten each time. A capture with nothing attributable (no campaign, affiliate code, visit id or foreign referrer) records nothing and answers `recorded: false, reason: empty` — except the app's DIRECT first visit (`entry: direct`), which is recorded as a first touch only, when the org has none, so the owner's alert reads "Direct" instead of "Unknown"; it never overwrites a source. The app sends that marker once per organization when it has nothing pending (a browser that already reported another account's landing). On an organization more than a day old it records nothing and answers `reason: late`, so an old "Unknown" sign-up is never relabelled "Direct". Before recording a direct marker on an org with no first touch, the engine asks Keycloak for the caller's REGISTER event: the app's register redirect URI carries the campaign (`zd_acq`), so a sign-up finished in another browser (the verify-email link) keeps its source, which is then recorded instead of "Direct".
|
|
39918
|
+
* Recorded only against an organization the caller OWNS — a member of someone else's account did not bring it to us — and never under impersonation. A MEMBER who is not the owner (staff, an invited team member) gets `200` with `recorded: false, reason: not_owner` and nothing is written; `403` only for an organization the caller does not belong to at all. The first touch is written once and never overwritten; the last touch is overwritten each time. A capture with nothing attributable (no campaign, affiliate code, visit id or foreign referrer) records nothing and answers `recorded: false, reason: empty` — except the app's DIRECT first visit (`entry: direct`), which is recorded as a first touch only, when the org has none, so the owner's alert reads "Direct" instead of "Unknown"; it never overwrites a source. The app sends that marker once per organization when it has nothing pending (a browser that already reported another account's landing). On an organization more than a day old it records nothing and answers `reason: late`, so an old "Unknown" sign-up is never relabelled "Direct". Before recording a direct marker on an org with no first touch, the engine asks Keycloak for the caller's REGISTER event: the app's register redirect URI carries the campaign (`zd_acq`), so a sign-up finished in another browser (the verify-email link) keeps its source, which is then recorded instead of "Direct".
|
|
39917
39919
|
*/
|
|
39918
39920
|
post: operations["recordAcquisitionTouch"];
|
|
39919
39921
|
delete?: never;
|
|
@@ -61794,7 +61796,7 @@ export interface components {
|
|
|
61794
61796
|
/** Format: uuid */
|
|
61795
61797
|
org_id?: string;
|
|
61796
61798
|
/** @enum {string} */
|
|
61797
|
-
reason: "" | "empty" | "impersonation" | "late";
|
|
61799
|
+
reason: "" | "empty" | "impersonation" | "late" | "not_owner";
|
|
61798
61800
|
recorded: boolean;
|
|
61799
61801
|
};
|
|
61800
61802
|
/** @description One firing alert, carrying the SENTENCES rather than the label soup. `summary`, `description`, `upgrade` and `runbook` are Alertmanager ANNOTATIONS - they do not exist in PromQL, which is why this reads Alertmanager and not Prometheus. */
|
|
@@ -85161,6 +85163,8 @@ export interface components {
|
|
|
85161
85163
|
/** @description A **page** of a zone's records. This was the platform's last unbounded collection (issue #466): the whole zone came back in one response and the dashboard rendered it unvirtualised, so a 5,000-record zone was 5,000 DOM rows. Walk `page.next_cursor` until `page.has_more` is false — a client that reads only the first page has read only the first page. */
|
|
85162
85164
|
DnsRecordList: {
|
|
85163
85165
|
data: components["schemas"]["DnsRecord"][];
|
|
85166
|
+
/** @description Whether this platform hosts the domain's zone. `false` only on a `?not_hosted=empty` answer, where the empty `data` means "no zone here", not "no records". */
|
|
85167
|
+
hosted?: boolean;
|
|
85164
85168
|
page: components["schemas"]["PageMeta"];
|
|
85165
85169
|
/**
|
|
85166
85170
|
* @description The record types this zone's DNS provider can hold, in a stable order — what an editor should offer. A write of any other type is refused with `422` (`refusal.dns.typeNotSupported`).
|
|
@@ -176713,6 +176717,8 @@ export interface operations {
|
|
|
176713
176717
|
cursor?: components["parameters"]["Cursor"];
|
|
176714
176718
|
/** @description Maximum items to return (page size). */
|
|
176715
176719
|
limit?: components["parameters"]["Limit"];
|
|
176720
|
+
/** @description `empty` answers a domain whose DNS we do not host with an empty page and `hosted: false` instead of the `DNS_NOT_HOSTED` 404. */
|
|
176721
|
+
not_hosted?: "empty";
|
|
176716
176722
|
};
|
|
176717
176723
|
header?: never;
|
|
176718
176724
|
path: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1777",
|
|
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>",
|