@zinn-digital/sdk 0.1.1773 → 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.
- package/dist/generated/schema.d.ts +77 -2
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -48040,6 +48040,26 @@ export interface paths {
|
|
|
48040
48040
|
patch?: never;
|
|
48041
48041
|
trace?: never;
|
|
48042
48042
|
};
|
|
48043
|
+
"/v1/reseller/plugin-affiliates": {
|
|
48044
|
+
parameters: {
|
|
48045
|
+
query?: never;
|
|
48046
|
+
header?: never;
|
|
48047
|
+
path?: never;
|
|
48048
|
+
cookie?: never;
|
|
48049
|
+
};
|
|
48050
|
+
/**
|
|
48051
|
+
* The Pro-plugin affiliate programmes a reseller can earn commission from.
|
|
48052
|
+
* @description Every active, visible Freemius affiliation programme across our Pro plugins, with the commission Freemius holds today (never a typed figure) and where to apply. Licences sold through these programmes are sold under the Zinn® brand; the reseller earns the commission (owner ruling 2026-11-13, "A: affiliate link"). `complete` is false when a product could not be asked, so a short list is never read as "none". Cached for an hour. 404 when the org has no reseller programme. Requires `reseller.view`.
|
|
48053
|
+
*/
|
|
48054
|
+
get: operations["listResellerPluginAffiliates"];
|
|
48055
|
+
put?: never;
|
|
48056
|
+
post?: never;
|
|
48057
|
+
delete?: never;
|
|
48058
|
+
options?: never;
|
|
48059
|
+
head?: never;
|
|
48060
|
+
patch?: never;
|
|
48061
|
+
trace?: never;
|
|
48062
|
+
};
|
|
48043
48063
|
"/v1/reseller/prices": {
|
|
48044
48064
|
parameters: {
|
|
48045
48065
|
query?: never;
|
|
@@ -61774,7 +61794,7 @@ export interface components {
|
|
|
61774
61794
|
/** Format: uuid */
|
|
61775
61795
|
org_id?: string;
|
|
61776
61796
|
/** @enum {string} */
|
|
61777
|
-
reason: "" | "empty" | "impersonation" | "late";
|
|
61797
|
+
reason: "" | "empty" | "impersonation" | "late" | "not_owner";
|
|
61778
61798
|
recorded: boolean;
|
|
61779
61799
|
};
|
|
61780
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. */
|
|
@@ -65648,6 +65668,8 @@ export interface components {
|
|
|
65648
65668
|
AdminResellerProgram: components["schemas"]["ResellerProgram"] & {
|
|
65649
65669
|
org_id: components["schemas"]["Uuid"];
|
|
65650
65670
|
org_name: string;
|
|
65671
|
+
/** @description RESELLMKT1113 (owner 2026-11-13): whether this reseller sees our Pro-plugin affiliate programmes. Default true. Turning it off never claws back commission already earned. Present on the programme and its drill-down, not on table rows. */
|
|
65672
|
+
plugin_affiliates_enabled?: boolean;
|
|
65651
65673
|
};
|
|
65652
65674
|
AdminResellerProgramList: {
|
|
65653
65675
|
data: components["schemas"]["AdminResellerProgramRow"][];
|
|
@@ -65678,6 +65700,8 @@ export interface components {
|
|
|
65678
65700
|
/** @description Empty means the reseller offers every language we ship. */
|
|
65679
65701
|
client_locales?: string[];
|
|
65680
65702
|
client_sell_in_currency?: string;
|
|
65703
|
+
/** @description RESELLMKT1113 (owner 2026-11-13): staff switch for this reseller's Pro-plugin affiliate programmes. Off hides them; commission already earned is never clawed back. */
|
|
65704
|
+
plugin_affiliates_enabled?: boolean;
|
|
65681
65705
|
/** @enum {string} */
|
|
65682
65706
|
status?: "pending" | "active" | "suspended";
|
|
65683
65707
|
};
|
|
@@ -103947,6 +103971,29 @@ export interface components {
|
|
|
103947
103971
|
gap: boolean;
|
|
103948
103972
|
manage_route: string;
|
|
103949
103973
|
};
|
|
103974
|
+
ResellerPluginAffiliateProgramme: {
|
|
103975
|
+
/**
|
|
103976
|
+
* Format: uri
|
|
103977
|
+
* @description The public page that takes an application, or null when there is none yet.
|
|
103978
|
+
*/
|
|
103979
|
+
apply_url: string | null;
|
|
103980
|
+
/** @description Percentage points when `commission_type` is `percentage`; otherwise the amount Freemius holds. */
|
|
103981
|
+
commission: number;
|
|
103982
|
+
/** @description Freemius commission type, e.g. `percentage`. */
|
|
103983
|
+
commission_type: string;
|
|
103984
|
+
cookie_days: number | null;
|
|
103985
|
+
/** Format: uri */
|
|
103986
|
+
landing_url: string | null;
|
|
103987
|
+
product_slug: string;
|
|
103988
|
+
product_title: string;
|
|
103989
|
+
};
|
|
103990
|
+
ResellerPluginAffiliates: {
|
|
103991
|
+
/** @description False when at least one product could not be asked; the list may be short. */
|
|
103992
|
+
complete: boolean;
|
|
103993
|
+
/** @description False when Zinn® staff turned the Pro-plugin affiliate programmes off for this reseller (then `programmes` is empty). Commission already earned is never clawed back. */
|
|
103994
|
+
enabled: boolean;
|
|
103995
|
+
programmes: components["schemas"]["ResellerPluginAffiliateProgramme"][];
|
|
103996
|
+
};
|
|
103950
103997
|
ResellerPrice: {
|
|
103951
103998
|
/** @description What YOUR client pays, in minor units. */
|
|
103952
103999
|
amount_minor: number;
|
|
@@ -200790,6 +200837,34 @@ export interface operations {
|
|
|
200790
200837
|
429: components["responses"]["TooManyRequests"];
|
|
200791
200838
|
};
|
|
200792
200839
|
};
|
|
200840
|
+
listResellerPluginAffiliates: {
|
|
200841
|
+
parameters: {
|
|
200842
|
+
query?: {
|
|
200843
|
+
/** @description Which of your organizations this applies to. Required only when you belong to more than one here — otherwise it is inferred, and an id outside your direct memberships is a 404 rather than a 403, so this can never widen scope. */
|
|
200844
|
+
org_id?: components["schemas"]["Uuid"];
|
|
200845
|
+
};
|
|
200846
|
+
header?: never;
|
|
200847
|
+
path?: never;
|
|
200848
|
+
cookie?: never;
|
|
200849
|
+
};
|
|
200850
|
+
requestBody?: never;
|
|
200851
|
+
responses: {
|
|
200852
|
+
/** @description The programmes. */
|
|
200853
|
+
200: {
|
|
200854
|
+
headers: {
|
|
200855
|
+
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
200856
|
+
[name: string]: unknown;
|
|
200857
|
+
};
|
|
200858
|
+
content: {
|
|
200859
|
+
"application/json": components["schemas"]["ResellerPluginAffiliates"];
|
|
200860
|
+
};
|
|
200861
|
+
};
|
|
200862
|
+
401: components["responses"]["Unauthorized"];
|
|
200863
|
+
403: components["responses"]["Forbidden"];
|
|
200864
|
+
404: components["responses"]["NotFound"];
|
|
200865
|
+
429: components["responses"]["TooManyRequests"];
|
|
200866
|
+
};
|
|
200867
|
+
};
|
|
200793
200868
|
listResellerPrices: {
|
|
200794
200869
|
parameters: {
|
|
200795
200870
|
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.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>",
|