@zinn-digital/sdk 0.1.1651 → 0.1.1653

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.
@@ -16960,7 +16960,7 @@ export interface paths {
16960
16960
  query?: never;
16961
16961
  header?: never;
16962
16962
  path: {
16963
- action: "approve" | "reject" | "undo" | "allow_again" | "undo_allow_again";
16963
+ action: "approve" | "reject" | "undo" | "allow_again" | "undo_allow_again" | "withdraw";
16964
16964
  change_id: string;
16965
16965
  };
16966
16966
  cookie?: never;
@@ -16968,8 +16968,8 @@ export interface paths {
16968
16968
  get?: never;
16969
16969
  put?: never;
16970
16970
  /**
16971
- * Approve, reject, undo, or allow a rejected change again.
16972
- * @description Gated on `ads.manage`; audit action `ads.change_<action>`. `approve` sends exactly the proposed request to Google in the background (202); a kill switch, the spend ceiling or the organisation's standing can still refuse it (`refused`). When the send meets Google's daily operation allowance the change stays `approved` with `summary.deferred_to` (when it is sent — automatically, by the same workflow), never refused. za-326 r3: an approval does not override a network's learning phase — an automatic change approved while the network says its unit is learning stays `approved` with `summary.learning` (`rule`, `network`) and `summary.deferred_to` (when learning is read again), and is sent once learning ends. `undo` sends the change's inverse (202) — allowed with the kill switch on; an Undo that meets the same allowance leaves the change `applied` with `summary.undo_deferred_to` and is sent after the reset by the same Undo workflow (never recorded as failed), even when that is past the Undo window. A rejection binds the item on Google, Microsoft Ads and X alike. `reject` answers 200. A rejected negative keyword or keyword (same account, text, match type and level) is never proposed or sent again by any producer — the gate refuses it `rejectedBefore`, whether or not it still collides — until `allow_again` (200, a rejected change only, else `notRejected`; leaves `summary.allowed_again` `{by, at}`); `undo_allow_again` (200, else `notAllowedAgain`) puts the rejection back.
16971
+ * Approve, reject, undo, withdraw, or allow a rejected change again.
16972
+ * @description Gated on `ads.manage`; audit action `ads.change_<action>`. `approve` sends exactly the proposed request to Google in the background (202); a kill switch, the spend ceiling or the organisation's standing can still refuse it (`refused`). When the send meets Google's daily operation allowance the change stays `approved` with `summary.deferred_to` (when it is sent — automatically, by the same workflow), never refused. za-326 r3: an approval does not override a network's learning phase — an automatic change approved while the network says its unit is learning stays `approved` with `summary.learning` (`rule`, `network`) and `summary.deferred_to` (when learning is read again), and is sent once learning ends. ZA326-FU: the wait stops — the change is `refused` with `error` `learningUnread` after 4 re-checks in a row that could not read the learning state, or `learningNoEnd` 14 days after the wait began — and `withdraw` (200) takes the person's approval back while it waits (`rejected`, `summary.withdrawn` `{by, at}`, audit action `ads.change_withdraw`; else `notWaitingForLearning`). `undo` sends the change's inverse (202) — allowed with the kill switch on; an Undo that meets the same allowance leaves the change `applied` with `summary.undo_deferred_to` and is sent after the reset by the same Undo workflow (never recorded as failed), even when that is past the Undo window. A rejection binds the item on Google, Microsoft Ads and X alike. `reject` answers 200. A rejected negative keyword or keyword (same account, text, match type and level) is never proposed or sent again by any producer — the gate refuses it `rejectedBefore`, whether or not it still collides — until `allow_again` (200, a rejected change only, else `notRejected`; leaves `summary.allowed_again` `{by, at}`); `undo_allow_again` (200, else `notAllowedAgain`) puts the rejection back.
16973
16973
  */
16974
16974
  post: operations["decideAdsChange"];
16975
16975
  delete?: never;
@@ -56484,6 +56484,50 @@ export interface paths {
56484
56484
  patch?: never;
56485
56485
  trace?: never;
56486
56486
  };
56487
+ "/v1/store-connect/support/tickets": {
56488
+ parameters: {
56489
+ query?: never;
56490
+ header?: never;
56491
+ path?: never;
56492
+ cookie?: never;
56493
+ };
56494
+ /**
56495
+ * This store's support tickets, newest first, with status and support's latest reply.
56496
+ * @description Store token only. Never another store's ticket, even in the same organisation. A page of 50, never a cap: pass `before` = the last `reference` (`next_before`) for older ones. `answered` counts the tickets waiting on the store (the plugin's menu badge).
56497
+ */
56498
+ get: operations["listStoreSupportTickets"];
56499
+ put?: never;
56500
+ /**
56501
+ * Zinn® Order Updates files a support ticket with its store token (docs/1297 §16).
56502
+ * @description Store token only (`Authorization: Bearer zou_…`). Files the ticket in the plugin-support desk tagged `product=zinn-order-updates`, exactly like `createPluginSupportTicket`; the reply address is `email` when given, else the member who approved the store. The ticket is tied to THIS store connection, so only this store lists it. `diagnostics` are kept only with `consent_diagnostics: true` (the plugin shows them in full first). A store that never connected uses `createPluginSupportTicket` with an e-mail address instead.
56503
+ */
56504
+ post: operations["createStoreSupportTicket"];
56505
+ delete?: never;
56506
+ options?: never;
56507
+ head?: never;
56508
+ patch?: never;
56509
+ trace?: never;
56510
+ };
56511
+ "/v1/store-connect/support/tickets/{reference}/replies": {
56512
+ parameters: {
56513
+ query?: never;
56514
+ header?: never;
56515
+ path?: never;
56516
+ cookie?: never;
56517
+ };
56518
+ get?: never;
56519
+ put?: never;
56520
+ /**
56521
+ * The store owner replies to one of this store's tickets from the plugin.
56522
+ * @description Store token only. Another store's ticket is a 404. The ticket returns to `open` (waiting on support); a closed ticket is a 422 with code `TICKET_CLOSED`.
56523
+ */
56524
+ post: operations["replyStoreSupportTicket"];
56525
+ delete?: never;
56526
+ options?: never;
56527
+ head?: never;
56528
+ patch?: never;
56529
+ trace?: never;
56530
+ };
56487
56531
  "/v1/store-connect/token": {
56488
56532
  parameters: {
56489
56533
  query?: never;
@@ -67048,7 +67092,7 @@ export interface components {
67048
67092
  /** @enum {string|null} */
67049
67093
  source: "auto" | "person" | "launch" | null;
67050
67094
  };
67051
- /** @description One change to an ad account. `summary` holds figures (service, operations, resources, values), never sentences. za-326 r3: a change queued (or approved and waiting) while the network says its ad set is learning carries `learning` (`rule`: an `AdsAuditRun` `learning_held` code, `network`: the network's name). A Microsoft website exclusion re-added by the hourly repair (PG2FIX) carries `reason: reapplied_after_concurrent_edit`. An automatic raise (AUTO3) carries `auto_action` (`cap_raise` za-141 · `budget_raise` za-144), `campaign`, `campaign_id`, `from_micros`, `to_micros`, `cpa_micros`, `account_cpa_micros` and `lost_rank` or `lost_budget`, plus za-157's quality gate figures `quality_signal`, `quality_rate` and `quality_account_rate`. A conflicting negative keyword (za-182, `auto_action: negative_conflict`) carries `decision` (`pause_keywords` · `narrow_negative` · `remove_negative` · `move_to_campaigns`, with `keep_campaigns` `id`/`name`), `reasons` (`negative_newer` · `owner_kept` · `shared_list` · `waste_negative` · `keyword_converts` · `keyword_newer` · `keyword_wins` · `list_reaches_sibling`), `negative` (`text`, `match`, `level` campaign · ad_group · list · account, `where`, `resource`), `blocked` (up to 20 keywords: `text`, `match`, `campaign`, `ad_group`, `resource`) and `blocked_count`. A write that would ADD a negative blocking an enabled keyword is refused before it is sent or queued, whoever asked. A new keyword the audit adds (za-81, `auto_action: new_keyword`) carries `keyword`, `campaign`, `campaign_id`, `ad_group`, `clicks`, `conversions`, `est_daily_micros` and `currency`; when approved it is checked for collisions once more as it is sent, and refused (`error` starting `collides:`) when it would take searches from another ad group. A conversion-goal change (za-78, `auto_action: primary_goal`) carries `goal_action` (the conversion action's name), `goal_category`, `goal_primary` (the new flag), `goal_rule` (`outcome_secondary` · `soft_primary`) and `goal_recorded` (its 30-day count); it is approve-first always, and refused (`error` `goalStarves`, figures in `goal_check`: `recording_now`, `recording_after`) when it would leave no primary conversion action that records — whoever approved it; `error` `goalUnreadable` (no `goal_check`) when the account's conversion actions could not be read to check it. za-70: every change on a customer's account that adds a negative keyword or a keyword is replayed by the collision simulator first, and the replay is kept in `collision`: `checked_at`, `unread` (the account could not be read — a collision, never "clean"), `changes` (each `kind` negative · keyword, `text`, `match`, `ad_group`), `collisions` (each `kind` keyword · converted · main · growing · competes · takes, `text`, `campaign`, `ad_group`) with `collisions_total`, `hits` (up to 10 searches of the last 30 days with a click or a conversion it would block or compete for: `term`, `campaign`, `ad_group`, `clicks`, `conversions_milli`) with `hits_total`, `clicks` and `conversions_milli` (totals). A colliding change is never sent by itself: with the connection's `collision_mode` `approve` it waits in the queue, and a person's approval sends it only when a fresh replay finds no collision they were not shown; otherwise, and with `refuse`, it is refused (`error` `collides`). When the account could not be read for the replay (`collision.unread`) an approval, or `refuse`, refuses it `collisionUnread` — nothing established, asked again once the account reads. za-213 (site-to-ad sync for a site hosted with us, `proposed_by: site-sync`): `auto_action: site_sync` is an ad text edit writing a hosted page's new price (`url`, `old_price_minor`, `new_price_minor`, `currency`, integer minor units); `auto_action: site_sync_pause` pauses the ads of a page whose offer ended (`url`). */
67095
+ /** @description One change to an ad account. `summary` holds figures (service, operations, resources, values), never sentences. za-326 r3: a change queued (or approved and waiting) while the network says its ad set is learning carries `learning` (`rule`: an `AdsAuditRun` `learning_held` code, `network`: the network's name; ZA326-FU: `bid_strategy` is the 14-day za-183 freeze, which in an `approve` class queues the change and a person's approval sends it). While it waits it also carries `learning_unread` (re-checks in a row that could not read the learning state) and `learning_since`; all three go when the wait ends (sent, refused, failed, withdrawn) or when the change is queued again and nothing holds it. A withdrawn change carries `withdrawn` (`by`, `at`). A Microsoft website exclusion re-added by the hourly repair (PG2FIX) carries `reason: reapplied_after_concurrent_edit`. An automatic raise (AUTO3) carries `auto_action` (`cap_raise` za-141 · `budget_raise` za-144), `campaign`, `campaign_id`, `from_micros`, `to_micros`, `cpa_micros`, `account_cpa_micros` and `lost_rank` or `lost_budget`, plus za-157's quality gate figures `quality_signal`, `quality_rate` and `quality_account_rate`. A conflicting negative keyword (za-182, `auto_action: negative_conflict`) carries `decision` (`pause_keywords` · `narrow_negative` · `remove_negative` · `move_to_campaigns`, with `keep_campaigns` `id`/`name`), `reasons` (`negative_newer` · `owner_kept` · `shared_list` · `waste_negative` · `keyword_converts` · `keyword_newer` · `keyword_wins` · `list_reaches_sibling`), `negative` (`text`, `match`, `level` campaign · ad_group · list · account, `where`, `resource`), `blocked` (up to 20 keywords: `text`, `match`, `campaign`, `ad_group`, `resource`) and `blocked_count`. A write that would ADD a negative blocking an enabled keyword is refused before it is sent or queued, whoever asked. A new keyword the audit adds (za-81, `auto_action: new_keyword`) carries `keyword`, `campaign`, `campaign_id`, `ad_group`, `clicks`, `conversions`, `est_daily_micros` and `currency`; when approved it is checked for collisions once more as it is sent, and refused (`error` starting `collides:`) when it would take searches from another ad group. A conversion-goal change (za-78, `auto_action: primary_goal`) carries `goal_action` (the conversion action's name), `goal_category`, `goal_primary` (the new flag), `goal_rule` (`outcome_secondary` · `soft_primary`) and `goal_recorded` (its 30-day count); it is approve-first always, and refused (`error` `goalStarves`, figures in `goal_check`: `recording_now`, `recording_after`) when it would leave no primary conversion action that records — whoever approved it; `error` `goalUnreadable` (no `goal_check`) when the account's conversion actions could not be read to check it. za-70: every change on a customer's account that adds a negative keyword or a keyword is replayed by the collision simulator first, and the replay is kept in `collision`: `checked_at`, `unread` (the account could not be read — a collision, never "clean"), `changes` (each `kind` negative · keyword, `text`, `match`, `ad_group`), `collisions` (each `kind` keyword · converted · main · growing · competes · takes, `text`, `campaign`, `ad_group`) with `collisions_total`, `hits` (up to 10 searches of the last 30 days with a click or a conversion it would block or compete for: `term`, `campaign`, `ad_group`, `clicks`, `conversions_milli`) with `hits_total`, `clicks` and `conversions_milli` (totals). A colliding change is never sent by itself: with the connection's `collision_mode` `approve` it waits in the queue, and a person's approval sends it only when a fresh replay finds no collision they were not shown; otherwise, and with `refuse`, it is refused (`error` `collides`). When the account could not be read for the replay (`collision.unread`) an approval, or `refuse`, refuses it `collisionUnread` — nothing established, asked again once the account reads. za-213 (site-to-ad sync for a site hosted with us, `proposed_by: site-sync`): `auto_action: site_sync` is an ad text edit writing a hosted page's new price (`url`, `old_price_minor`, `new_price_minor`, `currency`, integer minor units); `auto_action: site_sync_pause` pauses the ads of a page whose offer ended (`url`). */
67052
67096
  AdsChange: {
67053
67097
  action_class: string;
67054
67098
  /** Format: date-time */
@@ -97282,7 +97326,7 @@ export interface components {
97282
97326
  * @description A product plugin support is offered for. Adding one is a registry entry in `engine/pluginsupport/products.py`, not a new endpoint.
97283
97327
  * @enum {string}
97284
97328
  */
97285
- PluginSupportProduct: "page-builder-sandwich" | "tranzly" | "zinn-seo";
97329
+ PluginSupportProduct: "page-builder-sandwich" | "tranzly" | "zinn-order-updates" | "zinn-seo";
97286
97330
  PluginSupportTicketCreated: {
97287
97331
  /** @enum {string} */
97288
97332
  priority: "normal" | "high";
@@ -111294,6 +111338,56 @@ export interface components {
111294
111338
  StoredVideoList: {
111295
111339
  videos: components["schemas"]["StoredVideo"][];
111296
111340
  };
111341
+ StoreSupportTicket: {
111342
+ /** Format: date-time */
111343
+ created_at: string;
111344
+ /** @enum {string} */
111345
+ kind: "help" | "bug" | "feedback" | "feature_request";
111346
+ /** Format: date-time */
111347
+ last_message_at: string | null;
111348
+ /** @description Support's latest public reply, in the customer's language; null before one. */
111349
+ latest_reply: {
111350
+ /** Format: date-time */
111351
+ at: string;
111352
+ body: string;
111353
+ } | null;
111354
+ /** @example ZT-7KQ3MX */
111355
+ reference: string;
111356
+ /**
111357
+ * @description What the plugin shows (it translates the label).
111358
+ * @enum {string}
111359
+ */
111360
+ state: "waiting_on_us" | "waiting_on_you" | "answered" | "closed";
111361
+ /** @enum {string} */
111362
+ status: "open" | "pending" | "solved" | "closed";
111363
+ subject: string;
111364
+ };
111365
+ StoreSupportTicketInput: {
111366
+ /** @default false */
111367
+ consent_diagnostics: boolean;
111368
+ /** @description The AI answer read first (`deflectPublicSupportQuestion`); stale ids are ignored. */
111369
+ deflection_id?: components["schemas"]["Uuid"] | null;
111370
+ diagnostics?: components["schemas"]["PluginSupportDiagnostics"];
111371
+ /**
111372
+ * Format: email
111373
+ * @description A reply address; default the member who approved the store.
111374
+ */
111375
+ email?: string;
111376
+ /**
111377
+ * @default help
111378
+ * @enum {string}
111379
+ */
111380
+ kind: "help" | "bug" | "feedback" | "feature_request";
111381
+ locale?: string;
111382
+ message: string;
111383
+ name?: string;
111384
+ subject: string;
111385
+ };
111386
+ StoreSupportTicketList: {
111387
+ answered: number;
111388
+ items: components["schemas"]["StoreSupportTicket"][];
111389
+ next_before: string | null;
111390
+ };
111297
111391
  /** @description An organization's subscription to a plan version. It pins the exact version and carries the **captured** price + entitlements — a purchase-time snapshot that later catalog or FX changes never alter (docs/05 §1). */
111298
111392
  Subscription: {
111299
111393
  /** @description What is still owed and what the last payment covered; `null` when nothing is owed. */
@@ -144344,14 +144438,14 @@ export interface operations {
144344
144438
  query?: never;
144345
144439
  header?: never;
144346
144440
  path: {
144347
- action: "approve" | "reject" | "undo" | "allow_again" | "undo_allow_again";
144441
+ action: "approve" | "reject" | "undo" | "allow_again" | "undo_allow_again" | "withdraw";
144348
144442
  change_id: string;
144349
144443
  };
144350
144444
  cookie?: never;
144351
144445
  };
144352
144446
  requestBody?: never;
144353
144447
  responses: {
144354
- /** @description Rejected. */
144448
+ /** @description Rejected, withdrawn, or allowed again. */
144355
144449
  200: {
144356
144450
  headers: {
144357
144451
  [name: string]: unknown;
@@ -209787,6 +209881,89 @@ export interface operations {
209787
209881
  429: components["responses"]["TooManyRequests"];
209788
209882
  };
209789
209883
  };
209884
+ listStoreSupportTickets: {
209885
+ parameters: {
209886
+ query?: {
209887
+ before?: string;
209888
+ };
209889
+ header?: never;
209890
+ path?: never;
209891
+ cookie?: never;
209892
+ };
209893
+ requestBody?: never;
209894
+ responses: {
209895
+ /** @description The tickets. */
209896
+ 200: {
209897
+ headers: {
209898
+ [name: string]: unknown;
209899
+ };
209900
+ content: {
209901
+ "application/json": components["schemas"]["StoreSupportTicketList"];
209902
+ };
209903
+ };
209904
+ 401: components["responses"]["Unauthorized"];
209905
+ 429: components["responses"]["TooManyRequests"];
209906
+ };
209907
+ };
209908
+ createStoreSupportTicket: {
209909
+ parameters: {
209910
+ query?: never;
209911
+ header?: never;
209912
+ path?: never;
209913
+ cookie?: never;
209914
+ };
209915
+ requestBody: {
209916
+ content: {
209917
+ "application/json": components["schemas"]["StoreSupportTicketInput"];
209918
+ };
209919
+ };
209920
+ responses: {
209921
+ /** @description Filed. */
209922
+ 201: {
209923
+ headers: {
209924
+ [name: string]: unknown;
209925
+ };
209926
+ content: {
209927
+ "application/json": components["schemas"]["PluginSupportTicketCreated"];
209928
+ };
209929
+ };
209930
+ 401: components["responses"]["Unauthorized"];
209931
+ 422: components["responses"]["UnprocessableEntity"];
209932
+ 429: components["responses"]["TooManyRequests"];
209933
+ };
209934
+ };
209935
+ replyStoreSupportTicket: {
209936
+ parameters: {
209937
+ query?: never;
209938
+ header?: never;
209939
+ path: {
209940
+ reference: string;
209941
+ };
209942
+ cookie?: never;
209943
+ };
209944
+ requestBody: {
209945
+ content: {
209946
+ "application/json": {
209947
+ message: string;
209948
+ };
209949
+ };
209950
+ };
209951
+ responses: {
209952
+ /** @description The ticket after the reply. */
209953
+ 201: {
209954
+ headers: {
209955
+ [name: string]: unknown;
209956
+ };
209957
+ content: {
209958
+ "application/json": components["schemas"]["StoreSupportTicket"];
209959
+ };
209960
+ };
209961
+ 401: components["responses"]["Unauthorized"];
209962
+ 404: components["responses"]["NotFound"];
209963
+ 422: components["responses"]["UnprocessableEntity"];
209964
+ 429: components["responses"]["TooManyRequests"];
209965
+ };
209966
+ };
209790
209967
  exchangeStoreConnectCode: {
209791
209968
  parameters: {
209792
209969
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1651",
3
+ "version": "0.1.1653",
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>",