@zinn-digital/sdk 0.1.1459 → 0.1.1462

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.
@@ -20288,6 +20288,28 @@ export interface paths {
20288
20288
  patch?: never;
20289
20289
  trace?: never;
20290
20290
  };
20291
+ "/v1/ads/connections/{connection_id}/warm-start/end": {
20292
+ parameters: {
20293
+ query?: never;
20294
+ header?: never;
20295
+ path: {
20296
+ connection_id: string;
20297
+ };
20298
+ cookie?: never;
20299
+ };
20300
+ get?: never;
20301
+ put?: never;
20302
+ /**
20303
+ * End a new ad account's learning period early.
20304
+ * @description za-264. Gated on `ads.manage`; audit action `ads.warm_start_end`. A new Google connection learns for 14 days (`warm_start_until`): its automatic changes are proposed for a person, and no bid-strategy switch is made by itself. Ending it sends the automatic changes by themselves from now on, each with its Undo. Refuses `notInWarmStart` when the account is not learning. Returns the connection.
20305
+ */
20306
+ post: operations["endAdsWarmStart"];
20307
+ delete?: never;
20308
+ options?: never;
20309
+ head?: never;
20310
+ patch?: never;
20311
+ trace?: never;
20312
+ };
20291
20313
  "/v1/ads/connections/{connection_id}/x/campaigns": {
20292
20314
  parameters: {
20293
20315
  query?: never;
@@ -56737,6 +56759,53 @@ export interface paths {
56737
56759
  patch?: never;
56738
56760
  trace?: never;
56739
56761
  };
56762
+ "/v1/wordpress/sets": {
56763
+ parameters: {
56764
+ query?: never;
56765
+ header?: never;
56766
+ path?: never;
56767
+ cookie?: never;
56768
+ };
56769
+ /**
56770
+ * List the caller's saved WordPress plugin/theme sets.
56771
+ * @description A set is a named list of WordPress.org plugin slugs plus an optional theme that a customer saves once and installs on any number of their sites (Softaculous / Plesk "sets" parity, docs/1135 §Sets). Applying a set is the existing bulk-job flow (`plugin_install`, `theme_install`), so a set is never a cheaper door than picking the same plugins by hand. Postgres only, no vendor call. Requires `sites.view`.
56772
+ */
56773
+ get: operations["listWordPressSets"];
56774
+ put?: never;
56775
+ /**
56776
+ * Save a new WordPress plugin/theme set.
56777
+ * @description ⛔ A slug is **refused, never sanitised**: letters, digits, hyphens and underscores, never a leading hyphen (a wp-cli flag). Slugs are lower-cased and de-duplicated in order. A set holds at most 50 plugins, an org at most 100 sets, names are unique per org, and a set must hold at least one plugin or a theme. The org is the one the request names (`org_id` body field or `X-Zinn-Org`), else the caller's only org. Requires `sites.view` and `sites.panel_access`.
56778
+ */
56779
+ post: operations["createWordPressSet"];
56780
+ delete?: never;
56781
+ options?: never;
56782
+ head?: never;
56783
+ patch?: never;
56784
+ trace?: never;
56785
+ };
56786
+ "/v1/wordpress/sets/{setId}": {
56787
+ parameters: {
56788
+ query?: never;
56789
+ header?: never;
56790
+ path: {
56791
+ setId: string;
56792
+ };
56793
+ cookie?: never;
56794
+ };
56795
+ get?: never;
56796
+ put?: never;
56797
+ post?: never;
56798
+ /** Delete a saved set. Sites it was applied to keep their plugins. */
56799
+ delete: operations["deleteWordPressSet"];
56800
+ options?: never;
56801
+ head?: never;
56802
+ /**
56803
+ * Change a saved set. Only the fields sent change.
56804
+ * @description Same validation as `createWordPressSet`. Another org's set is a `404`, never a `403`. Requires `sites.view` and `sites.panel_access`.
56805
+ */
56806
+ patch: operations["updateWordPressSet"];
56807
+ trace?: never;
56808
+ };
56740
56809
  "/v1/wordpress/sites": {
56741
56810
  parameters: {
56742
56811
  query?: never;
@@ -62994,6 +63063,11 @@ export interface components {
62994
63063
  tidy_paused_mode: "auto" | "suggest";
62995
63064
  /** @description DMAPI2: show "reconnect to enable conversion uploads" — a live Google connection whose grant lacks `auth/datamanager` while Connect asks for that scope. Signing in again and picking the same account replaces its token. */
62996
63065
  uploads_need_reconnect: boolean;
63066
+ /**
63067
+ * Format: date-time
63068
+ * @description za-264: the end of a NEW Google connection's learning period (14 days from connect; `null` for an account connected before za-264, or one whose learning was ended). Until then an automatic bid, budget, pause or keyword change is proposed for a person instead of sent (a person's approval still sends it); a guarded automatic negative still applies by itself (owner rule); and no bid-strategy switch is proposed or sent by itself. End it early with `endAdsWarmStart`.
63069
+ */
63070
+ warm_start_until: string | null;
62997
63071
  /**
62998
63072
  * Format: int64
62999
63073
  * @description WASTEFIX r3 (za-79, owner 2026-10-30 "they should be able to edit all things like this with their own values and we honour it") — the spend, in minor units of the account currency, after which a search that never converted counts as waste (blocked or suggested). null = the recommended value, what one conversion costs on this account (`AdsAutopilot.own_values.waste_threshold_recommended_minor`), the default.
@@ -111305,6 +111379,29 @@ export interface components {
111305
111379
  password: string;
111306
111380
  user_id: string;
111307
111381
  };
111382
+ /** @description A customer-owned, named list of plugin slugs plus an optional theme. */
111383
+ WordPressSet: {
111384
+ /** Format: date-time */
111385
+ created_at: string;
111386
+ /** Format: uuid */
111387
+ id: string;
111388
+ name: string;
111389
+ /** Format: uuid */
111390
+ org_id: string;
111391
+ /** @description WordPress.org plugin directory names, in the order saved. */
111392
+ plugins: string[];
111393
+ /** @description A WordPress.org theme directory name, or empty for a plugins-only set. */
111394
+ theme: string;
111395
+ /** Format: date-time */
111396
+ updated_at: string;
111397
+ };
111398
+ WordPressSetWrite: {
111399
+ name?: string;
111400
+ /** Format: uuid */
111401
+ org_id?: string;
111402
+ plugins?: string[];
111403
+ theme?: string;
111404
+ };
111308
111405
  /** @description ⛔⛔ **There is no `password` property and there cannot be one.** WordPress stores a hash, so no plaintext exists on our side or theirs. A customer copies the username from here; a password is *minted* by `rotateWordPressAdminPassword`. */
111309
111406
  WordPressSiteCredentials: {
111310
111407
  admin_url: string;
@@ -145875,6 +145972,33 @@ export interface operations {
145875
145972
  429: components["responses"]["TooManyRequests"];
145876
145973
  };
145877
145974
  };
145975
+ endAdsWarmStart: {
145976
+ parameters: {
145977
+ query?: never;
145978
+ header?: never;
145979
+ path: {
145980
+ connection_id: string;
145981
+ };
145982
+ cookie?: never;
145983
+ };
145984
+ requestBody?: never;
145985
+ responses: {
145986
+ /** @description The connection, `warm_start_until` now null. */
145987
+ 200: {
145988
+ headers: {
145989
+ [name: string]: unknown;
145990
+ };
145991
+ content: {
145992
+ "application/json": components["schemas"]["AdsAccountConnection"];
145993
+ };
145994
+ };
145995
+ 401: components["responses"]["Unauthorized"];
145996
+ 403: components["responses"]["Forbidden"];
145997
+ 404: components["responses"]["NotFound"];
145998
+ 422: components["responses"]["UnprocessableEntity"];
145999
+ 429: components["responses"]["TooManyRequests"];
146000
+ };
146001
+ };
145878
146002
  listAdsXCampaigns: {
145879
146003
  parameters: {
145880
146004
  query?: never;
@@ -205010,6 +205134,117 @@ export interface operations {
205010
205134
  429: components["responses"]["TooManyRequests"];
205011
205135
  };
205012
205136
  };
205137
+ listWordPressSets: {
205138
+ parameters: {
205139
+ query?: {
205140
+ /** @description Narrow to one org in the caller's scope (also the `X-Zinn-Org` header). */
205141
+ org_id?: string;
205142
+ };
205143
+ header?: never;
205144
+ path?: never;
205145
+ cookie?: never;
205146
+ };
205147
+ requestBody?: never;
205148
+ responses: {
205149
+ /** @description The sets in scope, by name. */
205150
+ 200: {
205151
+ headers: {
205152
+ [name: string]: unknown;
205153
+ };
205154
+ content: {
205155
+ "application/json": {
205156
+ data: components["schemas"]["WordPressSet"][];
205157
+ };
205158
+ };
205159
+ };
205160
+ 401: components["responses"]["Unauthorized"];
205161
+ 403: components["responses"]["Forbidden"];
205162
+ 429: components["responses"]["TooManyRequests"];
205163
+ };
205164
+ };
205165
+ createWordPressSet: {
205166
+ parameters: {
205167
+ query?: never;
205168
+ header?: never;
205169
+ path?: never;
205170
+ cookie?: never;
205171
+ };
205172
+ requestBody: {
205173
+ content: {
205174
+ "application/json": components["schemas"]["WordPressSetWrite"];
205175
+ };
205176
+ };
205177
+ responses: {
205178
+ /** @description The saved set. */
205179
+ 201: {
205180
+ headers: {
205181
+ [name: string]: unknown;
205182
+ };
205183
+ content: {
205184
+ "application/json": components["schemas"]["WordPressSet"];
205185
+ };
205186
+ };
205187
+ 401: components["responses"]["Unauthorized"];
205188
+ 403: components["responses"]["Forbidden"];
205189
+ 422: components["responses"]["UnprocessableEntity"];
205190
+ 429: components["responses"]["TooManyRequests"];
205191
+ };
205192
+ };
205193
+ deleteWordPressSet: {
205194
+ parameters: {
205195
+ query?: never;
205196
+ header?: never;
205197
+ path: {
205198
+ setId: string;
205199
+ };
205200
+ cookie?: never;
205201
+ };
205202
+ requestBody?: never;
205203
+ responses: {
205204
+ /** @description Deleted. */
205205
+ 204: {
205206
+ headers: {
205207
+ [name: string]: unknown;
205208
+ };
205209
+ content?: never;
205210
+ };
205211
+ 401: components["responses"]["Unauthorized"];
205212
+ 403: components["responses"]["Forbidden"];
205213
+ 404: components["responses"]["NotFound"];
205214
+ 429: components["responses"]["TooManyRequests"];
205215
+ };
205216
+ };
205217
+ updateWordPressSet: {
205218
+ parameters: {
205219
+ query?: never;
205220
+ header?: never;
205221
+ path: {
205222
+ setId: string;
205223
+ };
205224
+ cookie?: never;
205225
+ };
205226
+ requestBody: {
205227
+ content: {
205228
+ "application/json": components["schemas"]["WordPressSetWrite"];
205229
+ };
205230
+ };
205231
+ responses: {
205232
+ /** @description The changed set. */
205233
+ 200: {
205234
+ headers: {
205235
+ [name: string]: unknown;
205236
+ };
205237
+ content: {
205238
+ "application/json": components["schemas"]["WordPressSet"];
205239
+ };
205240
+ };
205241
+ 401: components["responses"]["Unauthorized"];
205242
+ 403: components["responses"]["Forbidden"];
205243
+ 404: components["responses"]["NotFound"];
205244
+ 422: components["responses"]["UnprocessableEntity"];
205245
+ 429: components["responses"]["TooManyRequests"];
205246
+ };
205247
+ };
205013
205248
  listWordPressSites: {
205014
205249
  parameters: {
205015
205250
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1459",
3
+ "version": "0.1.1462",
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>",