@zinn-digital/sdk 0.1.1757 → 0.1.1760

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.
@@ -9534,6 +9534,26 @@ export interface paths {
9534
9534
  patch?: never;
9535
9535
  trace?: never;
9536
9536
  };
9537
+ "/v1/admin/marketplace/staff-queues": {
9538
+ parameters: {
9539
+ query?: never;
9540
+ header?: never;
9541
+ path?: never;
9542
+ cookie?: never;
9543
+ };
9544
+ /**
9545
+ * How many marketplace items wait on staff, per queue (admin nav badges).
9546
+ * @description SELLERAPPROVE1112 (owner 2026-11-12). One row per queue that needs a person: seller identity checks (`submitted`/`in_review`), payout methods (`pending_review`) and listings (`in_review`). `nav_id` is the admin nav entry the count belongs on. Counts only. The same queues raise one ops alert each (Telegram + e-mail) and appear in the daily summary.
9547
+ */
9548
+ get: operations["listMarketplaceStaffQueues"];
9549
+ put?: never;
9550
+ post?: never;
9551
+ delete?: never;
9552
+ options?: never;
9553
+ head?: never;
9554
+ patch?: never;
9555
+ trace?: never;
9556
+ };
9537
9557
  "/v1/admin/marketplace/valuation-rows": {
9538
9558
  parameters: {
9539
9559
  query?: never;
@@ -60451,6 +60471,30 @@ export interface paths {
60451
60471
  patch?: never;
60452
60472
  trace?: never;
60453
60473
  };
60474
+ "/v1/webhooks/campaigns/whatsapp": {
60475
+ parameters: {
60476
+ query?: never;
60477
+ header?: never;
60478
+ path?: never;
60479
+ cookie?: never;
60480
+ };
60481
+ /**
60482
+ * Meta's webhook verify-token handshake for WhatsApp.
60483
+ * @description **Unauthenticated by design.** With `hub.mode=subscribe` and `hub.verify_token` equal to the token we gave Meta when the app was subscribed, answers `hub.challenge` as plain text; anything else is `403`, and `503` while no token is configured.
60484
+ */
60485
+ get: operations["verifyCampaignsWhatsappWebhook"];
60486
+ put?: never;
60487
+ /**
60488
+ * WhatsApp delivery receipts and STOP replies from Meta.
60489
+ * @description **Unauthenticated by design**: `X-Hub-Signature-256` (`sha256=` + the HMAC-SHA256 of the raw body under the secret of one of our Meta apps) is the authentication — `401` when it is missing or does not verify, `503` while no app secret is configured (never accepted unverified). A verified body is queued for a background run and acknowledged at once; `503` when it cannot be queued (Meta retries). The run records each `statuses[]` entry on the paid WhatsApp message with that id (`delivered` or `read`, both recorded as delivered, or `failed` with Meta's error code; the first receipt stands, so a redelivery is a no-op); a `failed` with code `131050` (the person stopped marketing messages in WhatsApp) opts the number out. A `messages[]` entry whose whole text or quick-reply button is a STOP word (STOP, UNSUBSCRIBE, "Stop promotions", ...) opts the number out of WhatsApp for the account whose connected number it reached (for our own number, every account holding it as a contact); START removes a reply opt-out. Every later WhatsApp send to that number is refused as `suppressed`.
60490
+ */
60491
+ post: operations["receiveCampaignsWhatsappWebhook"];
60492
+ delete?: never;
60493
+ options?: never;
60494
+ head?: never;
60495
+ patch?: never;
60496
+ trace?: never;
60497
+ };
60454
60498
  "/v1/webhooks/demo-budget": {
60455
60499
  parameters: {
60456
60500
  query?: never;
@@ -65973,6 +66017,20 @@ export interface components {
65973
66017
  AdminStaffMailGrantList: {
65974
66018
  data: components["schemas"]["AdminStaffMailGrant"][];
65975
66019
  };
66020
+ AdminStaffQueue: {
66021
+ count: number;
66022
+ /** @enum {string} */
66023
+ key: "seller-verification" | "payout-method-review" | "listing-review";
66024
+ /** @description Operator-facing English description (staff console). */
66025
+ label: string;
66026
+ /** @description The admin nav entry this count belongs on. */
66027
+ nav_id: string;
66028
+ /**
66029
+ * Format: date-time
66030
+ * @description When the longest-waiting item started waiting; null when the queue is empty.
66031
+ */
66032
+ oldest: string | null;
66033
+ };
65976
66034
  AdminSubscription: components["schemas"]["Subscription"] & {
65977
66035
  /** @description Whether this subscription never bills (an open-ended comp / the internal plan). */
65978
66036
  comp_indefinite: boolean;
@@ -135645,6 +135703,30 @@ export interface operations {
135645
135703
  404: components["responses"]["NotFound"];
135646
135704
  };
135647
135705
  };
135706
+ listMarketplaceStaffQueues: {
135707
+ parameters: {
135708
+ query?: never;
135709
+ header?: never;
135710
+ path?: never;
135711
+ cookie?: never;
135712
+ };
135713
+ requestBody?: never;
135714
+ responses: {
135715
+ /** @description The queues. */
135716
+ 200: {
135717
+ headers: {
135718
+ [name: string]: unknown;
135719
+ };
135720
+ content: {
135721
+ "application/json": {
135722
+ data: components["schemas"]["AdminStaffQueue"][];
135723
+ };
135724
+ };
135725
+ };
135726
+ 401: components["responses"]["Unauthorized"];
135727
+ 403: components["responses"]["Forbidden"];
135728
+ };
135729
+ };
135648
135730
  getMarketplaceValuationRows: {
135649
135731
  parameters: {
135650
135732
  query?: never;
@@ -220121,6 +220203,97 @@ export interface operations {
220121
220203
  };
220122
220204
  };
220123
220205
  };
220206
+ verifyCampaignsWhatsappWebhook: {
220207
+ parameters: {
220208
+ query?: {
220209
+ "hub.challenge"?: string;
220210
+ "hub.mode"?: string;
220211
+ "hub.verify_token"?: string;
220212
+ };
220213
+ header?: never;
220214
+ path?: never;
220215
+ cookie?: never;
220216
+ };
220217
+ requestBody?: never;
220218
+ responses: {
220219
+ /** @description The challenge, echoed. */
220220
+ 200: {
220221
+ headers: {
220222
+ [name: string]: unknown;
220223
+ };
220224
+ content: {
220225
+ "text/plain": string;
220226
+ };
220227
+ };
220228
+ /** @description Not our handshake. */
220229
+ 403: {
220230
+ headers: {
220231
+ [name: string]: unknown;
220232
+ };
220233
+ content?: never;
220234
+ };
220235
+ /** @description No verify token is configured. */
220236
+ 503: {
220237
+ headers: {
220238
+ [name: string]: unknown;
220239
+ };
220240
+ content?: never;
220241
+ };
220242
+ };
220243
+ };
220244
+ receiveCampaignsWhatsappWebhook: {
220245
+ parameters: {
220246
+ query?: never;
220247
+ header?: {
220248
+ "X-Hub-Signature-256"?: string;
220249
+ };
220250
+ path?: never;
220251
+ cookie?: never;
220252
+ };
220253
+ requestBody: {
220254
+ content: {
220255
+ "application/json": {
220256
+ [key: string]: unknown;
220257
+ };
220258
+ };
220259
+ };
220260
+ responses: {
220261
+ /** @description Verified and queued. */
220262
+ 200: {
220263
+ headers: {
220264
+ [name: string]: unknown;
220265
+ };
220266
+ content: {
220267
+ "application/json": {
220268
+ ok: boolean;
220269
+ /** @description The background run handling this body. */
220270
+ queued: string;
220271
+ };
220272
+ };
220273
+ };
220274
+ /** @description Not a JSON object. */
220275
+ 400: {
220276
+ headers: {
220277
+ [name: string]: unknown;
220278
+ };
220279
+ content?: never;
220280
+ };
220281
+ /** @description The signature is missing or did not verify. */
220282
+ 401: {
220283
+ headers: {
220284
+ [name: string]: unknown;
220285
+ };
220286
+ content?: never;
220287
+ };
220288
+ /** @description No app secret is configured, or the event could not be queued. */
220289
+ 503: {
220290
+ headers: {
220291
+ [name: string]: unknown;
220292
+ };
220293
+ content?: never;
220294
+ };
220295
+ };
220296
+ };
220124
220297
  reportDemoBudgetExhausted: {
220125
220298
  parameters: {
220126
220299
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1757",
3
+ "version": "0.1.1760",
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>",