@zinn-digital/sdk 0.1.1480 → 0.1.1482
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 +17 -6
- package/package.json +1 -1
|
@@ -12860,7 +12860,7 @@ export interface paths {
|
|
|
12860
12860
|
};
|
|
12861
12861
|
/**
|
|
12862
12862
|
* A ready-to-paste dev-session brief for the gaps rivals opened (staff).
|
|
12863
|
-
* @description Plain text (no tables), grouped by our product: every capability a rival release found in the last `days` added that none of our feature records covers, with the rival, version and changelog link. Empty text when there are no gaps. Requires staff + `ops.deploys.read`.
|
|
12863
|
+
* @description Plain text (no tables), grouped by our product: every capability a rival release found in the last `days` added that none of our feature records covers and no ruling in `docs/plugins-overhaul/rival-gap-rulings.json` closes, with the rival, version and changelog link (a `planned` ruling stays listed, marked "on the backlog"). `open=1` lists every open gap however old, ignoring `days` (docs/989 §3a). Empty text when there are no gaps. Requires staff + `ops.deploys.read`.
|
|
12864
12864
|
*/
|
|
12865
12865
|
get: operations["getRivalGapBrief"];
|
|
12866
12866
|
put?: never;
|
|
@@ -19289,7 +19289,7 @@ export interface paths {
|
|
|
19289
19289
|
put?: never;
|
|
19290
19290
|
/**
|
|
19291
19291
|
* The events API — send real outcomes (sales, trials, leads, sign-ups).
|
|
19292
|
-
* @description Gated on `ads.manage
|
|
19292
|
+
* @description Gated on `ads.manage` or `ads.outcomes.write` (KEYSCOPE — the narrow site-server key: exact-org, never inherited by a sub-account, accepted by this route and `retractAdsOutcomes` and by NO other route); audit action `ads.outcomes_received`. Up to 500 per request (send pages for a back-fill; no limit on pages). Idempotent per `(kind, external_ref)`: the same order twice is stored once, and a later copy that carries a click id the first lacked fills it in. `external_ref` is the order / trial id in YOUR system and is the transaction id every upload carries, so the network never counts one outcome twice. A plain `email` is SHA-256-hashed at the door and dropped. `201` when any was new. `free_listing` is a free sign-up that is not a sale: omit `value_minor` (or send `0` with `currency`) and map it to its own, usually secondary, upload action. `renewal` is a plugin subscription / licence renewed (za-96): it goes to its own secondary action (the plugin feed, `getAdsPluginFeed`), never counted as a new sale. `consent` is stored per conversion and passed to the network exactly as sent; withdraw an outcome with `retractAdsOutcomes`. A long-lived API key (`zdk_…`) holding `ads.outcomes.write` (or `ads.manage`) in the connection's organisation authenticates here. Anything new starts the upload within minutes (the daily run is the safety net).
|
|
19293
19293
|
*/
|
|
19294
19294
|
post: operations["sendAdsOutcomes"];
|
|
19295
19295
|
delete?: never;
|
|
@@ -19311,7 +19311,7 @@ export interface paths {
|
|
|
19311
19311
|
put?: never;
|
|
19312
19312
|
/**
|
|
19313
19313
|
* Withdraw outcomes you sent, by your own id (a full refund).
|
|
19314
|
-
* @description Gated on `ads.manage
|
|
19314
|
+
* @description Gated on `ads.manage` or `ads.outcomes.write` (KEYSCOPE — exact-org, see `sendAdsOutcomes`); audit action `ads.outcomes_retracted`. Up to 500 per request. Each `(kind, external_ref)` is treated exactly like a sale refunded in full (za-122): one not uploaded yet is never uploaded (`withheld`); one already uploaded gets ONE retraction, which the next upload run sends to the network as a conversion adjustment (`retracted`; the run is started now when any was). Idempotent: an outcome withdrawn before, or refunded by its checkout provider, is `already`; an id this connection never received is `not_found`. The adjustment's progress shows on `listAdsTrackingEvents`. Nothing is charged.
|
|
19315
19315
|
*/
|
|
19316
19316
|
post: operations["retractAdsOutcomes"];
|
|
19317
19317
|
delete?: never;
|
|
@@ -72420,7 +72420,7 @@ export interface components {
|
|
|
72420
72420
|
*/
|
|
72421
72421
|
sandbox: boolean;
|
|
72422
72422
|
/**
|
|
72423
|
-
* @description RBAC permission keys to grant. Each must be a permission the caller holds in the target org (a key can never out-scope its creator); an unheld scope is a `403`, an unknown one a `422`. Defaults to an empty list — an inert key you can widen later by replacing it.
|
|
72423
|
+
* @description RBAC permission keys to grant. Each must be a permission the caller holds in the target org (a key can never out-scope its creator); an unheld scope is a `403`, an unknown one a `422`. Defaults to an empty list — an inert key you can widen later by replacing it. Scopes apply to the key's org and every sub-account under it, EXCEPT the exact-org scopes, which reach the key's own org only: `ads.outcomes.write` (send and retract conversion outcomes — `sendAdsOutcomes`, `retractAdsOutcomes` — and nothing else; a caller holding `ads.manage` in the org may grant it).
|
|
72424
72424
|
* @default []
|
|
72425
72425
|
* @example [
|
|
72426
72426
|
* "sites.view",
|
|
@@ -97809,6 +97809,13 @@ export interface components {
|
|
|
97809
97809
|
feature_title: string;
|
|
97810
97810
|
/** @description Our product it competes with. */
|
|
97811
97811
|
product: string;
|
|
97812
|
+
/**
|
|
97813
|
+
* @description OUR ruling on a "we lack it" item (docs/989 §3a), absent when there is none. built / have_it / not_applicable close the gap; planned keeps it open.
|
|
97814
|
+
* @enum {string}
|
|
97815
|
+
*/
|
|
97816
|
+
ruling?: "built" | "have_it" | "not_applicable" | "planned";
|
|
97817
|
+
/** @description Why */
|
|
97818
|
+
ruling_reason?: string;
|
|
97812
97819
|
/** @description The new capability */
|
|
97813
97820
|
text: string;
|
|
97814
97821
|
};
|
|
@@ -97841,7 +97848,7 @@ export interface components {
|
|
|
97841
97848
|
emailed: boolean;
|
|
97842
97849
|
/** Format: date-time */
|
|
97843
97850
|
found_at: string;
|
|
97844
|
-
/** @description
|
|
97851
|
+
/** @description Open gaps: capabilities we lack that no ruling has closed. */
|
|
97845
97852
|
gap_count: number;
|
|
97846
97853
|
/** Format: uuid */
|
|
97847
97854
|
id: string;
|
|
@@ -133826,6 +133833,8 @@ export interface operations {
|
|
|
133826
133833
|
parameters: {
|
|
133827
133834
|
query?: {
|
|
133828
133835
|
days?: number;
|
|
133836
|
+
/** @description `1` = every gap still open, however old (`days` is ignored). */
|
|
133837
|
+
open?: "0" | "1";
|
|
133829
133838
|
product?: string;
|
|
133830
133839
|
};
|
|
133831
133840
|
header?: never;
|
|
@@ -133843,7 +133852,9 @@ export interface operations {
|
|
|
133843
133852
|
"application/json": {
|
|
133844
133853
|
data: {
|
|
133845
133854
|
days: number;
|
|
133846
|
-
/** @description
|
|
133855
|
+
/** @description True when `open=1` (every open gap, any age). */
|
|
133856
|
+
open: boolean;
|
|
133857
|
+
/** @description Releases with open gaps it covers. */
|
|
133847
133858
|
releases: number;
|
|
133848
133859
|
text: string;
|
|
133849
133860
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1482",
|
|
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>",
|