@zinn-digital/sdk 0.1.1830 → 0.1.1832

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.
@@ -80582,6 +80582,8 @@ export interface components {
80582
80582
  * Which addons a cart may buy is validated against **its own plan line**, not against anything the client says: eligibility is a fact about the basket (`Extra.product_lines`), so a PBN-only service cannot be bought on a mainstream basket by asking nicely.
80583
80583
  */
80584
80584
  extra_code?: string;
80585
+ /** @description LOCALPRES1114 (docs/1343). Only on a `local_presence_addon` line bought on its own: the HELD order line (same org, same `domain_name`) the registry refused for a non-local owner. Paying the add-on releases that line and retries it at once. */
80586
+ held_line_id?: string | null;
80585
80587
  /**
80586
80588
  * @description How often a plan-backed line recurs. Defaults to `monthly`.
80587
80589
  *
@@ -98778,11 +98780,21 @@ export interface components {
98778
98780
  availability_token?: string;
98779
98781
  fqdn: string;
98780
98782
  /**
98781
- * @description What the line buys. Absent means a registration.
98783
+ * Format: uuid
98784
+ * @description With `kind: local_presence_addon` only: the `line_id` of this customer's held order line.
98785
+ */
98786
+ held_line_id?: string;
98787
+ /**
98788
+ * @description What the line buys. Absent means a registration. `local_presence_addon` buys the registry's local presence (trustee) service for a name already ordered and HELD because the registry wants an owner in its own country (`lines[].waiting_for_local_presence` on `getPartnerDomainOrder`): name that line in `held_line_id`. Its years are the held line's; paying for it releases the held registration.
98782
98789
  * @default domain_register
98783
98790
  * @enum {string}
98784
98791
  */
98785
- kind: "domain_register" | "domain_transfer";
98792
+ kind: "domain_register" | "domain_transfer" | "local_presence_addon";
98793
+ /**
98794
+ * @description On a registration or transfer: also buy the registry's local presence (trustee) service for this domain, for the same years, so a customer outside the registry's country can own it (`getTldRequirements` -> `local_presence_addon` gives the price, and whether it is for companies only). Refused (`422`) when the customer's owner already qualifies or no service is sold. Promo codes never apply to it.
98795
+ * @default false
98796
+ */
98797
+ local_presence: boolean;
98786
98798
  /**
98787
98799
  * @description Years to register. A transfer must be `1`.
98788
98800
  * @default 1
@@ -99080,8 +99092,15 @@ export interface components {
99080
99092
  domain?: components["schemas"]["PartnerOrderDomain"] | null;
99081
99093
  domain_name: string;
99082
99094
  /** @enum {string} */
99083
- kind: "domain_register" | "domain_transfer";
99095
+ kind: "domain_register" | "domain_transfer" | "local_presence_addon";
99096
+ /**
99097
+ * Format: uuid
99098
+ * @description The order line's id; a `local_presence_addon` item names it as `held_line_id`.
99099
+ */
99100
+ line_id: string;
99084
99101
  period_years: number;
99102
+ /** @description `true` when the registry refused the owner as not local and the line is held: place a domain order with a `local_presence_addon` item naming this `line_id` to release it. */
99103
+ waiting_for_local_presence: boolean;
99085
99104
  };
99086
99105
  PartnerOwnPluginBuilds: {
99087
99106
  builds: {
@@ -103323,6 +103342,8 @@ export interface components {
103323
103342
  idn_supported: boolean;
103324
103343
  /** @description Priced live per name by the registry, so the table price is indicative. */
103325
103344
  is_premium: boolean;
103345
+ /** @description A paid registry trustee (local-presence service) is sold for this extension: the registrar offers one AND a priced row exists. `false` means no trustee may be claimed on a page about it; `requires_local_presence` alone does not mean one can be bought. */
103346
+ local_presence_available: boolean;
103326
103347
  max_years: number;
103327
103348
  min_years: number;
103328
103349
  /** @description Ranking key — higher is more popular, 0 is unranked. Never a claim. */
@@ -105807,7 +105828,7 @@ export interface components {
105807
105828
  * behind both doors, so it is not a second purchase path — only a second door.
105808
105829
  * @enum {string}
105809
105830
  */
105810
- SellableLineKind: "domain_register" | "domain_transfer" | "domain_renew" | "domain_restore" | "hosting_plan" | "privacy_addon" | "marketplace_package" | "aged_domain" | "compute_server" | "managed_database" | "boards_plan" | "extra";
105831
+ SellableLineKind: "domain_register" | "domain_transfer" | "domain_renew" | "domain_restore" | "hosting_plan" | "privacy_addon" | "marketplace_package" | "aged_domain" | "compute_server" | "managed_database" | "boards_plan" | "extra" | "local_presence_addon";
105811
105832
  SellableListingType: {
105812
105833
  archetype: string;
105813
105834
  /** @description How many fields this kind of Zinn® will ask for. Derived from the schema on read rather than stored, so it cannot drift from the form the seller then sees. */
@@ -118103,6 +118124,12 @@ export interface components {
118103
118124
  /** @description Basis points on registrar wholesale, or `null` to delete the rule. Required and nullable rather than optional: "absent" and "null" meaning different things on a form where the user cleared a box is how a reset button silently does nothing. */
118104
118125
  margin_bps: number | null;
118105
118126
  };
118127
+ TldLocalPresenceAddon: {
118128
+ /** @description The registry's trustee serves only a company owner, never a person. */
118129
+ company_only: boolean;
118130
+ /** @description The add-on's price for one year, tax excluded, in the requested currency. */
118131
+ per_year: components["schemas"]["MoneyAmount"];
118132
+ };
118106
118133
  /** @description Flat registrar pricing for one TLD in the caller's display currency. Integer minor units + ISO-4217 code (CLAUDE.md §2.8 — money is never a float). All four money fields share one currency by construction. */
118107
118134
  TldPrice: {
118108
118135
  currency: components["schemas"]["CurrencyCode"];
@@ -118160,12 +118187,16 @@ export interface components {
118160
118187
  full_name_required: boolean;
118161
118188
  /** @description False when the registry's requirements could not be read — checkout then refuses the extension rather than selling it on a guess. */
118162
118189
  known: boolean;
118190
+ /** @description LOCALPRES1114 (docs/1343). The paid local-presence (trustee) add-on, when the registrar sells one for this extension and a priced row exists: buy it as a cart line of kind `local_presence_addon` beside the domain (same term) when checkout refuses the owner with `country_not_eligible`. Priced per year; never discounted by a promo code. Null when no trustee is sold. */
118191
+ local_presence_addon?: components["schemas"]["TldLocalPresenceAddon"] | null;
118163
118192
  /** @description A free local-presence service is used for a registrant outside `countries`. */
118164
118193
  local_presence_service: boolean;
118165
118194
  /** @description Why an extension cannot be ordered online (`documents_required`, `registry_token_required`, `professional_licence_required`, `registry_closed_to_new_registrations`, `local_presence_required`, …), or empty. */
118166
118195
  manual_reason: string;
118167
118196
  /** @description False for an extension sold only by hand. */
118168
118197
  orderable: boolean;
118198
+ /** @description Countries the registry demands the OWNER have an address in (ISO 3166-1 alpha-2), enforced on a register and on a transfer that replaces the holder; empty when there is no such demand. */
118199
+ owner_local?: string[];
118169
118200
  /** @description When that documentation was last updated. */
118170
118201
  source_updated: string;
118171
118202
  /** @description The registrar's documentation the rule was read from. */
@@ -199199,6 +199230,8 @@ export interface operations {
199199
199230
  getTldRequirements: {
199200
199231
  parameters: {
199201
199232
  query: {
199233
+ /** @description ISO 4217 code the `local_presence_addon.per_year` price is quoted in; USD when absent or malformed. */
199234
+ currency?: string;
199202
199235
  op?: "register" | "transfer";
199203
199236
  /** @description Comma-separated extensions without the dot (`es,it,com.au`), at most 50. */
199204
199237
  tlds: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1830",
3
+ "version": "0.1.1832",
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>",