@zinn-digital/sdk 0.1.1518 → 0.1.1519
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 +332 -1
- package/package.json +1 -1
|
@@ -21776,6 +21776,106 @@ export interface paths {
|
|
|
21776
21776
|
patch?: never;
|
|
21777
21777
|
trace?: never;
|
|
21778
21778
|
};
|
|
21779
|
+
"/v1/ads/zaraz/connections/{connection_id}/install": {
|
|
21780
|
+
parameters: {
|
|
21781
|
+
query?: never;
|
|
21782
|
+
header?: never;
|
|
21783
|
+
path?: never;
|
|
21784
|
+
cookie?: never;
|
|
21785
|
+
};
|
|
21786
|
+
get?: never;
|
|
21787
|
+
put?: never;
|
|
21788
|
+
/**
|
|
21789
|
+
* One-click install - write the tracking hub's tools, triggers and consent into the zone.
|
|
21790
|
+
* @description za-132 (docs/1006 §110). Gated on `ads.manage`; audit action `ads.zaraz_install`. Reads the zone's whole Zaraz configuration, replaces only the `zinn_*` tools and triggers and our two consent purposes from the org's tracking hub (za-126), keeps everything else of the customer's, and writes it back (published when the zone uses the preview workflow). No site code. Networks Zaraz cannot run from a public id are listed in `skipped`. Refusals (422, `refusal.adsconnect.zarazSync.<code>` or `refusal.adsconnect.zaraz.<code>`): `hubEmpty`, `foreignSecrets` (the zone holds secret variables that a write could erase), `consentShape`, `tokenRejected`, `permissionMissing`, `zoneNotFound`, `rateLimited`, `unavailable` (Cloudflare answered 5xx), `unexpected` (our side failed, §2.57), `vaultUnavailable`.
|
|
21791
|
+
*/
|
|
21792
|
+
post: operations["installAdsZaraz"];
|
|
21793
|
+
delete?: never;
|
|
21794
|
+
options?: never;
|
|
21795
|
+
head?: never;
|
|
21796
|
+
patch?: never;
|
|
21797
|
+
trace?: never;
|
|
21798
|
+
};
|
|
21799
|
+
"/v1/ads/zaraz/connections/{connection_id}/sync": {
|
|
21800
|
+
parameters: {
|
|
21801
|
+
query?: never;
|
|
21802
|
+
header?: never;
|
|
21803
|
+
path?: never;
|
|
21804
|
+
cookie?: never;
|
|
21805
|
+
};
|
|
21806
|
+
/**
|
|
21807
|
+
* The zone's sync state - drift against the agreed version and the hub, and the versions.
|
|
21808
|
+
* @description za-133 (docs/1006 §110). Gated on `ads.view`. `drift.state` is `not_installed`, `in_sync`, `edited_in_cloudflare`, `hub_ahead` or `both`, as of `drift_checked_at` (the daily sweep, or a refresh). Versions from the last `undo_days` days can be restored.
|
|
21809
|
+
*/
|
|
21810
|
+
get: operations["getAdsZarazSync"];
|
|
21811
|
+
put?: never;
|
|
21812
|
+
post?: never;
|
|
21813
|
+
delete?: never;
|
|
21814
|
+
options?: never;
|
|
21815
|
+
head?: never;
|
|
21816
|
+
patch?: never;
|
|
21817
|
+
trace?: never;
|
|
21818
|
+
};
|
|
21819
|
+
"/v1/ads/zaraz/connections/{connection_id}/sync/adopt": {
|
|
21820
|
+
parameters: {
|
|
21821
|
+
query?: never;
|
|
21822
|
+
header?: never;
|
|
21823
|
+
path?: never;
|
|
21824
|
+
cookie?: never;
|
|
21825
|
+
};
|
|
21826
|
+
get?: never;
|
|
21827
|
+
put?: never;
|
|
21828
|
+
/**
|
|
21829
|
+
* Keep Cloudflare's version - it becomes the agreed version and its ids go back into the hub.
|
|
21830
|
+
* @description za-133 (docs/1006 §110), the second way of the two-way sync. Gated on `ads.manage`; audit action `ads.zaraz_adopt`. The tag and conversion ids found in the zone's `zinn_*` tools are written into the tracking hub (other hub ids are kept; a tool removed in Cloudflare does not remove its hub id). Refusals: `hubRefused`, `hubUnavailable`, and the token codes.
|
|
21831
|
+
*/
|
|
21832
|
+
post: operations["adoptAdsZarazSync"];
|
|
21833
|
+
delete?: never;
|
|
21834
|
+
options?: never;
|
|
21835
|
+
head?: never;
|
|
21836
|
+
patch?: never;
|
|
21837
|
+
trace?: never;
|
|
21838
|
+
};
|
|
21839
|
+
"/v1/ads/zaraz/connections/{connection_id}/sync/refresh": {
|
|
21840
|
+
parameters: {
|
|
21841
|
+
query?: never;
|
|
21842
|
+
header?: never;
|
|
21843
|
+
path?: never;
|
|
21844
|
+
cookie?: never;
|
|
21845
|
+
};
|
|
21846
|
+
get?: never;
|
|
21847
|
+
put?: never;
|
|
21848
|
+
/**
|
|
21849
|
+
* Read the zone now and compare it (nothing is written to Cloudflare).
|
|
21850
|
+
* @description za-133 (docs/1006 §110). Gated on `ads.manage`. A change found in Cloudflare is recorded as a `seen` version. Refusals as for install (`tokenRejected`, `rateLimited`, ...).
|
|
21851
|
+
*/
|
|
21852
|
+
post: operations["refreshAdsZarazSync"];
|
|
21853
|
+
delete?: never;
|
|
21854
|
+
options?: never;
|
|
21855
|
+
head?: never;
|
|
21856
|
+
patch?: never;
|
|
21857
|
+
trace?: never;
|
|
21858
|
+
};
|
|
21859
|
+
"/v1/ads/zaraz/connections/{connection_id}/versions/{version_id}/restore": {
|
|
21860
|
+
parameters: {
|
|
21861
|
+
query?: never;
|
|
21862
|
+
header?: never;
|
|
21863
|
+
path?: never;
|
|
21864
|
+
cookie?: never;
|
|
21865
|
+
};
|
|
21866
|
+
get?: never;
|
|
21867
|
+
put?: never;
|
|
21868
|
+
/**
|
|
21869
|
+
* Undo - write an earlier version of the zone's Zaraz configuration back (30 days).
|
|
21870
|
+
* @description za-133 (docs/1006 §110). Gated on `ads.manage`; audit action `ads.zaraz_undo`. A version of another connection is 404; one older than 30 days is `undoExpired`; a zone holding secret variables not ours is `foreignSecrets`.
|
|
21871
|
+
*/
|
|
21872
|
+
post: operations["restoreAdsZarazVersion"];
|
|
21873
|
+
delete?: never;
|
|
21874
|
+
options?: never;
|
|
21875
|
+
head?: never;
|
|
21876
|
+
patch?: never;
|
|
21877
|
+
trace?: never;
|
|
21878
|
+
};
|
|
21779
21879
|
"/v1/ads/zaraz/zones": {
|
|
21780
21880
|
parameters: {
|
|
21781
21881
|
query?: never;
|
|
@@ -69814,6 +69914,11 @@ export interface components {
|
|
|
69814
69914
|
/** Format: int64 */
|
|
69815
69915
|
total_budget_micros: number | null;
|
|
69816
69916
|
};
|
|
69917
|
+
AdsZarazActionResult: {
|
|
69918
|
+
drift: components["schemas"]["AdsZarazDrift"];
|
|
69919
|
+
skipped?: components["schemas"]["AdsZarazSkipped"][];
|
|
69920
|
+
version: components["schemas"]["AdsZarazVersion"];
|
|
69921
|
+
};
|
|
69817
69922
|
/** @description A Cloudflare zone connected for Zaraz (za-131). The token is in Vault, never here; `token_hint` is its last four characters. */
|
|
69818
69923
|
AdsZarazConnection: {
|
|
69819
69924
|
account_name: string;
|
|
@@ -69837,6 +69942,67 @@ export interface components {
|
|
|
69837
69942
|
zone_id: string;
|
|
69838
69943
|
zone_name: string;
|
|
69839
69944
|
};
|
|
69945
|
+
AdsZarazDrift: {
|
|
69946
|
+
/** Format: date-time */
|
|
69947
|
+
checked_at?: string;
|
|
69948
|
+
edited?: boolean;
|
|
69949
|
+
/** @description The last daily read's refusal code (empty when it worked). */
|
|
69950
|
+
error?: string;
|
|
69951
|
+
hub_ahead?: boolean;
|
|
69952
|
+
hub_version?: number;
|
|
69953
|
+
installed_hub_version?: number;
|
|
69954
|
+
item_count?: number;
|
|
69955
|
+
items?: components["schemas"]["AdsZarazDriftItem"][];
|
|
69956
|
+
/** @enum {string} */
|
|
69957
|
+
state: "not_installed" | "in_sync" | "edited_in_cloudflare" | "hub_ahead" | "both" | "unknown";
|
|
69958
|
+
};
|
|
69959
|
+
AdsZarazDriftItem: {
|
|
69960
|
+
/** @enum {string} */
|
|
69961
|
+
area: "tool" | "trigger" | "variable" | "consent" | "purpose" | "setting";
|
|
69962
|
+
/** @enum {string} */
|
|
69963
|
+
change: "added" | "removed" | "changed";
|
|
69964
|
+
key: string;
|
|
69965
|
+
/** @description A `zinn_*` part (written by Zinn® Ads). */
|
|
69966
|
+
managed: boolean;
|
|
69967
|
+
name: string;
|
|
69968
|
+
};
|
|
69969
|
+
AdsZarazSkipped: {
|
|
69970
|
+
network: string;
|
|
69971
|
+
/** @enum {string} */
|
|
69972
|
+
reason: "needsServerKey" | "noIdSetting" | "noComponent";
|
|
69973
|
+
};
|
|
69974
|
+
AdsZarazSync: {
|
|
69975
|
+
/** Format: uuid */
|
|
69976
|
+
connection_id: string;
|
|
69977
|
+
consent_on?: boolean;
|
|
69978
|
+
drift: components["schemas"]["AdsZarazDrift"];
|
|
69979
|
+
/** Format: date-time */
|
|
69980
|
+
drift_checked_at?: string | null;
|
|
69981
|
+
hub_version?: number;
|
|
69982
|
+
/** Format: date-time */
|
|
69983
|
+
installed_at?: string | null;
|
|
69984
|
+
networks?: {
|
|
69985
|
+
network: string;
|
|
69986
|
+
tool: string;
|
|
69987
|
+
}[];
|
|
69988
|
+
skipped?: components["schemas"]["AdsZarazSkipped"][];
|
|
69989
|
+
undo_days: number;
|
|
69990
|
+
versions: components["schemas"]["AdsZarazVersion"][];
|
|
69991
|
+
};
|
|
69992
|
+
AdsZarazVersion: {
|
|
69993
|
+
actor?: string;
|
|
69994
|
+
/** Format: date-time */
|
|
69995
|
+
created_at: string;
|
|
69996
|
+
hub_version?: number;
|
|
69997
|
+
/** Format: uuid */
|
|
69998
|
+
id: string;
|
|
69999
|
+
/** @enum {string} */
|
|
70000
|
+
source: "install" | "seen" | "adopt" | "undo";
|
|
70001
|
+
summary?: components["schemas"]["AdsZarazDriftItem"][];
|
|
70002
|
+
tools?: string[];
|
|
70003
|
+
/** @description Inside the 30-day undo window. */
|
|
70004
|
+
undoable: boolean;
|
|
70005
|
+
};
|
|
69840
70006
|
/** @description One Cloudflare zone a Zaraz token reaches (za-131). */
|
|
69841
70007
|
AdsZarazZone: {
|
|
69842
70008
|
account_id: string;
|
|
@@ -110996,7 +111162,7 @@ export interface components {
|
|
|
110996
111162
|
* @example page
|
|
110997
111163
|
* @enum {string}
|
|
110998
111164
|
*/
|
|
110999
|
-
TranslationSurface: "ui" | "page" | "kb" | "meta_title" | "meta_description" | "open_graph" | "schema" | "alt_text" | "breadcrumb" | "sitemap" | "slug" | "notification" | "email" | "sms" | "push" | "image" | "listing_field" | "listing_copy" | "offer" | "site_content" | "survey" | "extra" | "site_panel" | "admin_ui" | "holder_page";
|
|
111165
|
+
TranslationSurface: "ui" | "page" | "kb" | "meta_title" | "meta_description" | "open_graph" | "schema" | "alt_text" | "breadcrumb" | "sitemap" | "slug" | "notification" | "email" | "sms" | "push" | "image" | "listing_field" | "listing_copy" | "offer" | "site_content" | "survey" | "extra" | "site_panel" | "admin_ui" | "holder_page" | "zaraz_consent";
|
|
111000
111166
|
Trial: {
|
|
111001
111167
|
/** @description s1014 APPTRIAL — the app picked at trial start, empty when none was. */
|
|
111002
111168
|
app?: string;
|
|
@@ -150522,6 +150688,171 @@ export interface operations {
|
|
|
150522
150688
|
429: components["responses"]["TooManyRequests"];
|
|
150523
150689
|
};
|
|
150524
150690
|
};
|
|
150691
|
+
installAdsZaraz: {
|
|
150692
|
+
parameters: {
|
|
150693
|
+
query?: {
|
|
150694
|
+
org_id?: string;
|
|
150695
|
+
};
|
|
150696
|
+
header?: never;
|
|
150697
|
+
path: {
|
|
150698
|
+
connection_id: string;
|
|
150699
|
+
};
|
|
150700
|
+
cookie?: never;
|
|
150701
|
+
};
|
|
150702
|
+
requestBody?: {
|
|
150703
|
+
content: {
|
|
150704
|
+
"application/json": {
|
|
150705
|
+
/**
|
|
150706
|
+
* @description Ask visitors for consent with Zaraz's banner (a banner already on stays on).
|
|
150707
|
+
* @default true
|
|
150708
|
+
*/
|
|
150709
|
+
consent?: boolean;
|
|
150710
|
+
};
|
|
150711
|
+
};
|
|
150712
|
+
};
|
|
150713
|
+
responses: {
|
|
150714
|
+
/** @description Installed. */
|
|
150715
|
+
200: {
|
|
150716
|
+
headers: {
|
|
150717
|
+
[name: string]: unknown;
|
|
150718
|
+
};
|
|
150719
|
+
content: {
|
|
150720
|
+
"application/json": {
|
|
150721
|
+
data: components["schemas"]["AdsZarazActionResult"];
|
|
150722
|
+
};
|
|
150723
|
+
};
|
|
150724
|
+
};
|
|
150725
|
+
401: components["responses"]["Unauthorized"];
|
|
150726
|
+
403: components["responses"]["Forbidden"];
|
|
150727
|
+
404: components["responses"]["NotFound"];
|
|
150728
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
150729
|
+
429: components["responses"]["TooManyRequests"];
|
|
150730
|
+
};
|
|
150731
|
+
};
|
|
150732
|
+
getAdsZarazSync: {
|
|
150733
|
+
parameters: {
|
|
150734
|
+
query?: {
|
|
150735
|
+
org_id?: string;
|
|
150736
|
+
};
|
|
150737
|
+
header?: never;
|
|
150738
|
+
path: {
|
|
150739
|
+
connection_id: string;
|
|
150740
|
+
};
|
|
150741
|
+
cookie?: never;
|
|
150742
|
+
};
|
|
150743
|
+
requestBody?: never;
|
|
150744
|
+
responses: {
|
|
150745
|
+
/** @description The sync card. */
|
|
150746
|
+
200: {
|
|
150747
|
+
headers: {
|
|
150748
|
+
[name: string]: unknown;
|
|
150749
|
+
};
|
|
150750
|
+
content: {
|
|
150751
|
+
"application/json": {
|
|
150752
|
+
data: components["schemas"]["AdsZarazSync"];
|
|
150753
|
+
};
|
|
150754
|
+
};
|
|
150755
|
+
};
|
|
150756
|
+
401: components["responses"]["Unauthorized"];
|
|
150757
|
+
403: components["responses"]["Forbidden"];
|
|
150758
|
+
404: components["responses"]["NotFound"];
|
|
150759
|
+
429: components["responses"]["TooManyRequests"];
|
|
150760
|
+
};
|
|
150761
|
+
};
|
|
150762
|
+
adoptAdsZarazSync: {
|
|
150763
|
+
parameters: {
|
|
150764
|
+
query?: {
|
|
150765
|
+
org_id?: string;
|
|
150766
|
+
};
|
|
150767
|
+
header?: never;
|
|
150768
|
+
path: {
|
|
150769
|
+
connection_id: string;
|
|
150770
|
+
};
|
|
150771
|
+
cookie?: never;
|
|
150772
|
+
};
|
|
150773
|
+
requestBody?: never;
|
|
150774
|
+
responses: {
|
|
150775
|
+
/** @description Kept. */
|
|
150776
|
+
200: {
|
|
150777
|
+
headers: {
|
|
150778
|
+
[name: string]: unknown;
|
|
150779
|
+
};
|
|
150780
|
+
content: {
|
|
150781
|
+
"application/json": {
|
|
150782
|
+
data: components["schemas"]["AdsZarazActionResult"];
|
|
150783
|
+
};
|
|
150784
|
+
};
|
|
150785
|
+
};
|
|
150786
|
+
401: components["responses"]["Unauthorized"];
|
|
150787
|
+
403: components["responses"]["Forbidden"];
|
|
150788
|
+
404: components["responses"]["NotFound"];
|
|
150789
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
150790
|
+
429: components["responses"]["TooManyRequests"];
|
|
150791
|
+
};
|
|
150792
|
+
};
|
|
150793
|
+
refreshAdsZarazSync: {
|
|
150794
|
+
parameters: {
|
|
150795
|
+
query?: {
|
|
150796
|
+
org_id?: string;
|
|
150797
|
+
};
|
|
150798
|
+
header?: never;
|
|
150799
|
+
path: {
|
|
150800
|
+
connection_id: string;
|
|
150801
|
+
};
|
|
150802
|
+
cookie?: never;
|
|
150803
|
+
};
|
|
150804
|
+
requestBody?: never;
|
|
150805
|
+
responses: {
|
|
150806
|
+
/** @description The sync card after the read. */
|
|
150807
|
+
200: {
|
|
150808
|
+
headers: {
|
|
150809
|
+
[name: string]: unknown;
|
|
150810
|
+
};
|
|
150811
|
+
content: {
|
|
150812
|
+
"application/json": {
|
|
150813
|
+
data: components["schemas"]["AdsZarazSync"];
|
|
150814
|
+
};
|
|
150815
|
+
};
|
|
150816
|
+
};
|
|
150817
|
+
401: components["responses"]["Unauthorized"];
|
|
150818
|
+
403: components["responses"]["Forbidden"];
|
|
150819
|
+
404: components["responses"]["NotFound"];
|
|
150820
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
150821
|
+
429: components["responses"]["TooManyRequests"];
|
|
150822
|
+
};
|
|
150823
|
+
};
|
|
150824
|
+
restoreAdsZarazVersion: {
|
|
150825
|
+
parameters: {
|
|
150826
|
+
query?: {
|
|
150827
|
+
org_id?: string;
|
|
150828
|
+
};
|
|
150829
|
+
header?: never;
|
|
150830
|
+
path: {
|
|
150831
|
+
connection_id: string;
|
|
150832
|
+
version_id: string;
|
|
150833
|
+
};
|
|
150834
|
+
cookie?: never;
|
|
150835
|
+
};
|
|
150836
|
+
requestBody?: never;
|
|
150837
|
+
responses: {
|
|
150838
|
+
/** @description Restored. */
|
|
150839
|
+
200: {
|
|
150840
|
+
headers: {
|
|
150841
|
+
[name: string]: unknown;
|
|
150842
|
+
};
|
|
150843
|
+
content: {
|
|
150844
|
+
"application/json": {
|
|
150845
|
+
data: components["schemas"]["AdsZarazActionResult"];
|
|
150846
|
+
};
|
|
150847
|
+
};
|
|
150848
|
+
};
|
|
150849
|
+
401: components["responses"]["Unauthorized"];
|
|
150850
|
+
403: components["responses"]["Forbidden"];
|
|
150851
|
+
404: components["responses"]["NotFound"];
|
|
150852
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
150853
|
+
429: components["responses"]["TooManyRequests"];
|
|
150854
|
+
};
|
|
150855
|
+
};
|
|
150525
150856
|
listAdsZarazZones: {
|
|
150526
150857
|
parameters: {
|
|
150527
150858
|
query?: never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1519",
|
|
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>",
|