@zinn-digital/sdk 0.1.1652 → 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.
@@ -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;
@@ -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. */
@@ -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.1652",
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>",