@zinn-digital/sdk 0.1.1772 → 0.1.1775

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.
@@ -48040,6 +48040,26 @@ export interface paths {
48040
48040
  patch?: never;
48041
48041
  trace?: never;
48042
48042
  };
48043
+ "/v1/reseller/plugin-affiliates": {
48044
+ parameters: {
48045
+ query?: never;
48046
+ header?: never;
48047
+ path?: never;
48048
+ cookie?: never;
48049
+ };
48050
+ /**
48051
+ * The Pro-plugin affiliate programmes a reseller can earn commission from.
48052
+ * @description Every active, visible Freemius affiliation programme across our Pro plugins, with the commission Freemius holds today (never a typed figure) and where to apply. Licences sold through these programmes are sold under the Zinn® brand; the reseller earns the commission (owner ruling 2026-11-13, "A: affiliate link"). `complete` is false when a product could not be asked, so a short list is never read as "none". Cached for an hour. 404 when the org has no reseller programme. Requires `reseller.view`.
48053
+ */
48054
+ get: operations["listResellerPluginAffiliates"];
48055
+ put?: never;
48056
+ post?: never;
48057
+ delete?: never;
48058
+ options?: never;
48059
+ head?: never;
48060
+ patch?: never;
48061
+ trace?: never;
48062
+ };
48043
48063
  "/v1/reseller/prices": {
48044
48064
  parameters: {
48045
48065
  query?: never;
@@ -65648,6 +65668,8 @@ export interface components {
65648
65668
  AdminResellerProgram: components["schemas"]["ResellerProgram"] & {
65649
65669
  org_id: components["schemas"]["Uuid"];
65650
65670
  org_name: string;
65671
+ /** @description RESELLMKT1113 (owner 2026-11-13): whether this reseller sees our Pro-plugin affiliate programmes. Default true. Turning it off never claws back commission already earned. Present on the programme and its drill-down, not on table rows. */
65672
+ plugin_affiliates_enabled?: boolean;
65651
65673
  };
65652
65674
  AdminResellerProgramList: {
65653
65675
  data: components["schemas"]["AdminResellerProgramRow"][];
@@ -65678,6 +65700,8 @@ export interface components {
65678
65700
  /** @description Empty means the reseller offers every language we ship. */
65679
65701
  client_locales?: string[];
65680
65702
  client_sell_in_currency?: string;
65703
+ /** @description RESELLMKT1113 (owner 2026-11-13): staff switch for this reseller's Pro-plugin affiliate programmes. Off hides them; commission already earned is never clawed back. */
65704
+ plugin_affiliates_enabled?: boolean;
65681
65705
  /** @enum {string} */
65682
65706
  status?: "pending" | "active" | "suspended";
65683
65707
  };
@@ -103947,6 +103971,29 @@ export interface components {
103947
103971
  gap: boolean;
103948
103972
  manage_route: string;
103949
103973
  };
103974
+ ResellerPluginAffiliateProgramme: {
103975
+ /**
103976
+ * Format: uri
103977
+ * @description The public page that takes an application, or null when there is none yet.
103978
+ */
103979
+ apply_url: string | null;
103980
+ /** @description Percentage points when `commission_type` is `percentage`; otherwise the amount Freemius holds. */
103981
+ commission: number;
103982
+ /** @description Freemius commission type, e.g. `percentage`. */
103983
+ commission_type: string;
103984
+ cookie_days: number | null;
103985
+ /** Format: uri */
103986
+ landing_url: string | null;
103987
+ product_slug: string;
103988
+ product_title: string;
103989
+ };
103990
+ ResellerPluginAffiliates: {
103991
+ /** @description False when at least one product could not be asked; the list may be short. */
103992
+ complete: boolean;
103993
+ /** @description False when Zinn® staff turned the Pro-plugin affiliate programmes off for this reseller (then `programmes` is empty). Commission already earned is never clawed back. */
103994
+ enabled: boolean;
103995
+ programmes: components["schemas"]["ResellerPluginAffiliateProgramme"][];
103996
+ };
103950
103997
  ResellerPrice: {
103951
103998
  /** @description What YOUR client pays, in minor units. */
103952
103999
  amount_minor: number;
@@ -180839,16 +180886,25 @@ export interface operations {
180839
180886
  "application/json": {
180840
180887
  brand: {
180841
180888
  city: string;
180842
- /** @description The legal name exactly as on the IRS record of the EIN. */
180889
+ /** @description The legal name exactly as on the IRS record of the EIN (US), or as on the country's company register (any other country). */
180843
180890
  company_name: string;
180891
+ /**
180892
+ * @description ISO 3166-1 alpha-2 country where the business is registered. A business outside the US registers too. For `US` the EIN, phone, state and ZIP keep their US shapes (400 per field otherwise); elsewhere `ein` is the company registration or tax number, `phone` any E.164 number, and `state` and `postal_code` free text.
180893
+ * @default US
180894
+ */
180895
+ country?: string;
180844
180896
  display_name: string;
180897
+ /** @description US - the 9-digit EIN (`12-3456789` or `123456789`). Elsewhere - the company registration or tax number. */
180845
180898
  ein: string;
180846
180899
  /** Format: email */
180847
180900
  email: string;
180848
180901
  /** @enum {string} */
180849
180902
  entity_type: "PRIVATE_PROFIT" | "PUBLIC_PROFIT" | "NON_PROFIT" | "GOVERNMENT";
180903
+ /** @description E.164. A US brand needs a US number (`+1` then 10 digits). */
180850
180904
  phone: string;
180905
+ /** @description US - a ZIP code. Elsewhere - the postcode. */
180851
180906
  postal_code: string;
180907
+ /** @description US - the 2-letter state. Elsewhere - the region or county. */
180852
180908
  state: string;
180853
180909
  stock_exchange?: string;
180854
180910
  stock_symbol?: string;
@@ -200781,6 +200837,34 @@ export interface operations {
200781
200837
  429: components["responses"]["TooManyRequests"];
200782
200838
  };
200783
200839
  };
200840
+ listResellerPluginAffiliates: {
200841
+ parameters: {
200842
+ query?: {
200843
+ /** @description Which of your organizations this applies to. Required only when you belong to more than one here — otherwise it is inferred, and an id outside your direct memberships is a 404 rather than a 403, so this can never widen scope. */
200844
+ org_id?: components["schemas"]["Uuid"];
200845
+ };
200846
+ header?: never;
200847
+ path?: never;
200848
+ cookie?: never;
200849
+ };
200850
+ requestBody?: never;
200851
+ responses: {
200852
+ /** @description The programmes. */
200853
+ 200: {
200854
+ headers: {
200855
+ "RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
200856
+ [name: string]: unknown;
200857
+ };
200858
+ content: {
200859
+ "application/json": components["schemas"]["ResellerPluginAffiliates"];
200860
+ };
200861
+ };
200862
+ 401: components["responses"]["Unauthorized"];
200863
+ 403: components["responses"]["Forbidden"];
200864
+ 404: components["responses"]["NotFound"];
200865
+ 429: components["responses"]["TooManyRequests"];
200866
+ };
200867
+ };
200784
200868
  listResellerPrices: {
200785
200869
  parameters: {
200786
200870
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1772",
3
+ "version": "0.1.1775",
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>",