@zinn-digital/sdk 0.1.1775 → 0.1.1776
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.
|
@@ -39913,7 +39913,7 @@ export interface paths {
|
|
|
39913
39913
|
* Record where the signed-in customer came from (the app's landing capture).
|
|
39914
39914
|
* @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
39915
|
*
|
|
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".
|
|
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. 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
39917
|
*/
|
|
39918
39918
|
post: operations["recordAcquisitionTouch"];
|
|
39919
39919
|
delete?: never;
|
|
@@ -61794,7 +61794,7 @@ export interface components {
|
|
|
61794
61794
|
/** Format: uuid */
|
|
61795
61795
|
org_id?: string;
|
|
61796
61796
|
/** @enum {string} */
|
|
61797
|
-
reason: "" | "empty" | "impersonation" | "late";
|
|
61797
|
+
reason: "" | "empty" | "impersonation" | "late" | "not_owner";
|
|
61798
61798
|
recorded: boolean;
|
|
61799
61799
|
};
|
|
61800
61800
|
/** @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. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1776",
|
|
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>",
|