@zinn-digital/sdk 0.1.1920 → 0.1.1922

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.
@@ -48490,7 +48490,7 @@ export interface paths {
48490
48490
  put?: never;
48491
48491
  /**
48492
48492
  * Connect or re-key your own payment gateway.
48493
- * @description The credentials are checked against the provider with a real authenticated call before anything is stored, then written to Vault — never to a database row, a log line, an audit entry or an error message. With `validate_only` the check runs and nothing is stored, returning 200 **even when the credentials are rejected**, because that is the answer being asked for. Requires `reseller.manage`.
48493
+ * @description The credentials are checked against the provider with a real authenticated call before anything is stored, then written to Vault — never to a database row, a log line, an audit entry or an error message. With `validate_only` the check runs and nothing is stored, returning 200 **even when the credentials are rejected**, because that is the answer being asked for. During an unpaid reseller trial this is refused with a 422 (`refusal.reseller.paidPlanRequired`): taking your clients' money through your own gateway needs a paid reseller plan. Requires `reseller.manage`.
48494
48494
  */
48495
48495
  post: operations["connectResellerGateway"];
48496
48496
  /**
@@ -48714,7 +48714,7 @@ export interface paths {
48714
48714
  put?: never;
48715
48715
  /**
48716
48716
  * Apply to resell Zinn® hosting to your own clients.
48717
- * @description Creates the programme in `pending`; a human at Zinn® activates it. Idempotent — applying twice returns the existing programme with 200 rather than a second row. Requires `reseller.manage`.
48717
+ * @description Open sign-up: creates the programme and, in one transaction, activates it and starts the 14-day reseller trial (no card). An organization already paying for a reseller plan is activated with no trial. When the free-trial abuse check refuses the trial, nothing is activated: the programme stays `pending` for a person at Zinn® to review, and the answer is a 422 with `refusal.trial.alreadyUsedByYouOrCompany`. During an unpaid trial, wholesale pricing, your own payment gateway and client billing need a paid reseller plan. Idempotent — applying twice returns the existing programme with 200 rather than a second row. Requires `reseller.manage`.
48718
48718
  */
48719
48719
  post: operations["applyForResellerProgram"];
48720
48720
  delete?: never;
@@ -105301,11 +105301,21 @@ export interface components {
105301
105301
  id: components["schemas"]["Uuid"];
105302
105302
  /** @description Your own issuing entity for invoices to your clients. */
105303
105303
  legal_entity_id?: components["schemas"]["Uuid"] | null;
105304
+ /**
105305
+ * @description Why a `pending` applicant was not made a reseller at once, so the screen can name the step to take (for example, confirm your e-mail address). `null` unless the status is `pending`.
105306
+ * @enum {string|null}
105307
+ */
105308
+ pending_reason?: "not_top_level" | "org_inactive" | "email_unverified" | null;
105304
105309
  /**
105305
105310
  * @description Set by Zinn®, never by the reseller. `pending` can price but not sell.
105306
105311
  * @enum {string}
105307
105312
  */
105308
105313
  status: "pending" | "active" | "suspended";
105314
+ /**
105315
+ * Format: date-time
105316
+ * @description When this reseller's card-free 14-day trial ends (open sign-up, owner 2026-11-18). `null` when the org never had a reseller trial.
105317
+ */
105318
+ trial_ends_at?: string | null;
105309
105319
  };
105310
105320
  ResellerProgramUpdate: {
105311
105321
  billing_day?: number;
@@ -203661,6 +203671,7 @@ export interface operations {
203661
203671
  };
203662
203672
  401: components["responses"]["Unauthorized"];
203663
203673
  403: components["responses"]["Forbidden"];
203674
+ 422: components["responses"]["UnprocessableEntity"];
203664
203675
  429: components["responses"]["TooManyRequests"];
203665
203676
  };
203666
203677
  };
@@ -221465,6 +221476,8 @@ export interface operations {
221465
221476
  parameters: {
221466
221477
  query?: {
221467
221478
  org_id?: string;
221479
+ /** @description s1014 TRIALBUY (DAY-0334): that product line's live trial (running or ended, not converted). An org may hold a trial on several lines; without this the newest is answered, so an older ended trial had no pay button. */
221480
+ product_line?: string;
221468
221481
  };
221469
221482
  header?: never;
221470
221483
  path?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1920",
3
+ "version": "0.1.1922",
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>",