@zinn-digital/sdk 0.1.1722 → 0.1.1725
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 +142 -6
- package/package.json +1 -1
|
@@ -22127,7 +22127,7 @@ export interface paths {
|
|
|
22127
22127
|
};
|
|
22128
22128
|
header?: never;
|
|
22129
22129
|
path: {
|
|
22130
|
-
kind: "meta_capi" | "tiktok_events" | "ga4_mp" | "linkedin_capi" | "pinterest_capi";
|
|
22130
|
+
kind: "meta_capi" | "tiktok_events" | "ga4_mp" | "linkedin_capi" | "pinterest_capi" | "openai_capi";
|
|
22131
22131
|
};
|
|
22132
22132
|
cookie?: never;
|
|
22133
22133
|
};
|
|
@@ -35401,6 +35401,28 @@ export interface paths {
|
|
|
35401
35401
|
patch?: never;
|
|
35402
35402
|
trace?: never;
|
|
35403
35403
|
};
|
|
35404
|
+
"/v1/hosting-code": {
|
|
35405
|
+
parameters: {
|
|
35406
|
+
query?: never;
|
|
35407
|
+
header?: never;
|
|
35408
|
+
path?: never;
|
|
35409
|
+
cookie?: never;
|
|
35410
|
+
};
|
|
35411
|
+
/**
|
|
35412
|
+
* Your personal plugin-licence hosting code — 50% off the first year, if you hold one.
|
|
35413
|
+
* @description Everyone who holds a paid licence for one of our WordPress plugins (Page Builder Sandwich, Tranzly, Zinn® SEO and the other Zinn® Pro plugins) gets ONE personal code for 50% off the first year of the Start or Grow WordPress hosting plan, billed yearly. Renewals are at the normal price. This returns the code held by the e-mail address of your account's owner, admin or billing member, or `offer: null`.
|
|
35414
|
+
*
|
|
35415
|
+
* The code works only for an account signed in with that same address, once, on a new yearly Start or Grow plan, and never together with any other discount on the same line. Requires `billing.view`.
|
|
35416
|
+
*/
|
|
35417
|
+
get: operations["getHostingCode"];
|
|
35418
|
+
put?: never;
|
|
35419
|
+
post?: never;
|
|
35420
|
+
delete?: never;
|
|
35421
|
+
options?: never;
|
|
35422
|
+
head?: never;
|
|
35423
|
+
patch?: never;
|
|
35424
|
+
trace?: never;
|
|
35425
|
+
};
|
|
35404
35426
|
"/v1/hosting/fleet-applications": {
|
|
35405
35427
|
parameters: {
|
|
35406
35428
|
query?: never;
|
|
@@ -60073,6 +60095,28 @@ export interface paths {
|
|
|
60073
60095
|
patch?: never;
|
|
60074
60096
|
trace?: never;
|
|
60075
60097
|
};
|
|
60098
|
+
"/v1/wp/hosting-code": {
|
|
60099
|
+
parameters: {
|
|
60100
|
+
query?: never;
|
|
60101
|
+
header?: never;
|
|
60102
|
+
path?: never;
|
|
60103
|
+
cookie?: never;
|
|
60104
|
+
};
|
|
60105
|
+
get?: never;
|
|
60106
|
+
put?: never;
|
|
60107
|
+
/**
|
|
60108
|
+
* A plugin licence holder's hosting code, asked for from the plugin's wp-admin card.
|
|
60109
|
+
* @description Called by a Zinn® plugin's wp-admin card (Page Builder Sandwich, Tranzly, Zinn® SEO), from inside the site, with the licence id and the licence holder's e-mail address that the plugin's licensing SDK holds. The code is returned only when that licence belongs to a buyer with that address; otherwise `offer` is `null`. Nothing is created here: codes are issued in the background for every paid licence holder.
|
|
60110
|
+
*
|
|
60111
|
+
* No credentials are needed because the code is useless to anyone else: checkout accepts it only for an account signed in with the same e-mail address. Rate limited per IP.
|
|
60112
|
+
*/
|
|
60113
|
+
post: operations["getPluginHostingCode"];
|
|
60114
|
+
delete?: never;
|
|
60115
|
+
options?: never;
|
|
60116
|
+
head?: never;
|
|
60117
|
+
patch?: never;
|
|
60118
|
+
trace?: never;
|
|
60119
|
+
};
|
|
60076
60120
|
"/v1/wp/plugin-update/{siteId}": {
|
|
60077
60121
|
parameters: {
|
|
60078
60122
|
query?: never;
|
|
@@ -72380,7 +72424,7 @@ export interface components {
|
|
|
72380
72424
|
/** @description The key's last four characters (blank when not set). */
|
|
72381
72425
|
hint: string;
|
|
72382
72426
|
/** @enum {string} */
|
|
72383
|
-
kind: "meta_capi" | "tiktok_events" | "ga4_mp" | "linkedin_capi" | "pinterest_capi";
|
|
72427
|
+
kind: "meta_capi" | "tiktok_events" | "ga4_mp" | "linkedin_capi" | "pinterest_capi" | "openai_capi";
|
|
72384
72428
|
network: string;
|
|
72385
72429
|
set: boolean;
|
|
72386
72430
|
/** Format: date-time */
|
|
@@ -72430,7 +72474,7 @@ export interface components {
|
|
|
72430
72474
|
test_mode: boolean;
|
|
72431
72475
|
};
|
|
72432
72476
|
};
|
|
72433
|
-
/** @description Network -> its browser tag id (google_ads, ga4, microsoft_uet, meta_pixel, tiktok_pixel, linkedin_insight, x_pixel, pinterest_tag, amazon_tag). */
|
|
72477
|
+
/** @description Network -> its browser tag id (google_ads, ga4, microsoft_uet, meta_pixel, tiktok_pixel, linkedin_insight, x_pixel, pinterest_tag, amazon_tag, chatgpt_pixel). */
|
|
72434
72478
|
tags: {
|
|
72435
72479
|
[key: string]: string;
|
|
72436
72480
|
};
|
|
@@ -87906,6 +87950,37 @@ export interface components {
|
|
|
87906
87950
|
* @enum {string}
|
|
87907
87951
|
*/
|
|
87908
87952
|
HolderVerificationStatus: "pending_confirmation" | "awaiting_documents" | "under_review" | "changes_requested" | "submitted_to_registrar" | "verified" | "expired" | "cancelled";
|
|
87953
|
+
HostingCodeAnswer: {
|
|
87954
|
+
offer: components["schemas"]["HostingCodeOffer"] | null;
|
|
87955
|
+
/** Format: uuid */
|
|
87956
|
+
org_id: string;
|
|
87957
|
+
};
|
|
87958
|
+
/** @description A plugin licence holder's personal hosting code (50% off the first year). */
|
|
87959
|
+
HostingCodeOffer: {
|
|
87960
|
+
/** Format: uri */
|
|
87961
|
+
checkout_url: string;
|
|
87962
|
+
/** @example ZINNHOST-7KQ4M2XA */
|
|
87963
|
+
code: string;
|
|
87964
|
+
/**
|
|
87965
|
+
* @description The code applies to a plan billed yearly, for its first year only.
|
|
87966
|
+
* @enum {string}
|
|
87967
|
+
*/
|
|
87968
|
+
interval: "annual";
|
|
87969
|
+
/** @example 50 */
|
|
87970
|
+
percent_off: number;
|
|
87971
|
+
/**
|
|
87972
|
+
* @description The hosting plan codes the code applies to.
|
|
87973
|
+
* @example [
|
|
87974
|
+
* "mainstream_start",
|
|
87975
|
+
* "mainstream_grow"
|
|
87976
|
+
* ]
|
|
87977
|
+
*/
|
|
87978
|
+
plans: string[];
|
|
87979
|
+
/** @description `available`, or why it cannot be used now — the coupon refusal reason (`exhausted` once it has been used, `inactive` if it was withdrawn). */
|
|
87980
|
+
status: string;
|
|
87981
|
+
/** @description Whether the code can still be used. */
|
|
87982
|
+
usable: boolean;
|
|
87983
|
+
};
|
|
87909
87984
|
HostingFinderOptions: {
|
|
87910
87985
|
/** @description Application keys our own fleet can install or an active line's policy allows, plus `static` and `none`. Enumerated from the estate so the form cannot ask a question the platform has no answer to. */
|
|
87911
87986
|
cms: string[];
|
|
@@ -98466,6 +98541,15 @@ export interface components {
|
|
|
98466
98541
|
notify_customers?: boolean;
|
|
98467
98542
|
scan_enabled?: boolean;
|
|
98468
98543
|
};
|
|
98544
|
+
PluginHostingCodeAnswer: {
|
|
98545
|
+
offer: components["schemas"]["HostingCodeOffer"] | null;
|
|
98546
|
+
};
|
|
98547
|
+
PluginHostingCodeRequest: {
|
|
98548
|
+
/** Format: email */
|
|
98549
|
+
email: string;
|
|
98550
|
+
/** @description The store licence id. */
|
|
98551
|
+
licence_id: number;
|
|
98552
|
+
};
|
|
98469
98553
|
PluginLanguagePackPublished: {
|
|
98470
98554
|
/** @description False when the same files were already published. */
|
|
98471
98555
|
created: boolean;
|
|
@@ -155917,7 +156001,7 @@ export interface operations {
|
|
|
155917
156001
|
};
|
|
155918
156002
|
header?: never;
|
|
155919
156003
|
path: {
|
|
155920
|
-
kind: "meta_capi" | "tiktok_events" | "ga4_mp" | "linkedin_capi" | "pinterest_capi";
|
|
156004
|
+
kind: "meta_capi" | "tiktok_events" | "ga4_mp" | "linkedin_capi" | "pinterest_capi" | "openai_capi";
|
|
155921
156005
|
};
|
|
155922
156006
|
cookie?: never;
|
|
155923
156007
|
};
|
|
@@ -155927,7 +156011,7 @@ export interface operations {
|
|
|
155927
156011
|
/** @description pinterest_capi only, and required there: the numeric Pinterest ad account id the conversion token belongs to (the Conversions API posts to /ad_accounts/{id}/events). Any other kind refuses it (badAccount). */
|
|
155928
156012
|
account_id?: string;
|
|
155929
156013
|
key: string;
|
|
155930
|
-
/** @description Optional network test code (docs/1006 §122): Meta / TikTok test_event_code, Pinterest test=true, GA4's validation server. Events sent with it appear in the network's test view only and are not counted as conversions. LinkedIn has no test mode and refuses it (badTestCode). */
|
|
156014
|
+
/** @description Optional network test code (docs/1006 §122): Meta / TikTok test_event_code, Pinterest test=true, GA4's validation server, OpenAI validate_only for openai_capi (za-335: any value; OpenAI checks each event and saves none). Events sent with it appear in the network's test view only and are not counted as conversions. LinkedIn has no test mode and refuses it (badTestCode). */
|
|
155931
156015
|
test_code?: string;
|
|
155932
156016
|
};
|
|
155933
156017
|
};
|
|
@@ -155957,7 +156041,7 @@ export interface operations {
|
|
|
155957
156041
|
};
|
|
155958
156042
|
header?: never;
|
|
155959
156043
|
path: {
|
|
155960
|
-
kind: "meta_capi" | "tiktok_events" | "ga4_mp" | "linkedin_capi" | "pinterest_capi";
|
|
156044
|
+
kind: "meta_capi" | "tiktok_events" | "ga4_mp" | "linkedin_capi" | "pinterest_capi" | "openai_capi";
|
|
155961
156045
|
};
|
|
155962
156046
|
cookie?: never;
|
|
155963
156047
|
};
|
|
@@ -178233,6 +178317,32 @@ export interface operations {
|
|
|
178233
178317
|
404: components["responses"]["NotFound"];
|
|
178234
178318
|
};
|
|
178235
178319
|
};
|
|
178320
|
+
getHostingCode: {
|
|
178321
|
+
parameters: {
|
|
178322
|
+
query?: {
|
|
178323
|
+
/** @description The account to read. Required when you belong to more than one. */
|
|
178324
|
+
org_id?: string;
|
|
178325
|
+
};
|
|
178326
|
+
header?: never;
|
|
178327
|
+
path?: never;
|
|
178328
|
+
cookie?: never;
|
|
178329
|
+
};
|
|
178330
|
+
requestBody?: never;
|
|
178331
|
+
responses: {
|
|
178332
|
+
/** @description Your code, or none. */
|
|
178333
|
+
200: {
|
|
178334
|
+
headers: {
|
|
178335
|
+
[name: string]: unknown;
|
|
178336
|
+
};
|
|
178337
|
+
content: {
|
|
178338
|
+
"application/json": components["schemas"]["HostingCodeAnswer"];
|
|
178339
|
+
};
|
|
178340
|
+
};
|
|
178341
|
+
401: components["responses"]["Unauthorized"];
|
|
178342
|
+
403: components["responses"]["Forbidden"];
|
|
178343
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
178344
|
+
};
|
|
178345
|
+
};
|
|
178236
178346
|
listFleetApplications: {
|
|
178237
178347
|
parameters: {
|
|
178238
178348
|
query?: {
|
|
@@ -217663,6 +217773,32 @@ export interface operations {
|
|
|
217663
217773
|
503: components["responses"]["ServiceUnavailable"];
|
|
217664
217774
|
};
|
|
217665
217775
|
};
|
|
217776
|
+
getPluginHostingCode: {
|
|
217777
|
+
parameters: {
|
|
217778
|
+
query?: never;
|
|
217779
|
+
header?: never;
|
|
217780
|
+
path?: never;
|
|
217781
|
+
cookie?: never;
|
|
217782
|
+
};
|
|
217783
|
+
requestBody: {
|
|
217784
|
+
content: {
|
|
217785
|
+
"application/json": components["schemas"]["PluginHostingCodeRequest"];
|
|
217786
|
+
};
|
|
217787
|
+
};
|
|
217788
|
+
responses: {
|
|
217789
|
+
/** @description The holder's code, or none. */
|
|
217790
|
+
200: {
|
|
217791
|
+
headers: {
|
|
217792
|
+
[name: string]: unknown;
|
|
217793
|
+
};
|
|
217794
|
+
content: {
|
|
217795
|
+
"application/json": components["schemas"]["PluginHostingCodeAnswer"];
|
|
217796
|
+
};
|
|
217797
|
+
};
|
|
217798
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
217799
|
+
429: components["responses"]["TooManyRequests"];
|
|
217800
|
+
};
|
|
217801
|
+
};
|
|
217666
217802
|
checkPluginUpdate: {
|
|
217667
217803
|
parameters: {
|
|
217668
217804
|
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.1725",
|
|
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>",
|