@zinn-digital/sdk 0.1.1481 → 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.
|
@@ -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",
|
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>",
|