@zinn-digital/sdk 0.1.1472 → 0.1.1475

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.
@@ -28620,6 +28620,26 @@ export interface paths {
28620
28620
  patch?: never;
28621
28621
  trace?: never;
28622
28622
  };
28623
+ "/v1/compute/offers": {
28624
+ parameters: {
28625
+ query?: never;
28626
+ header?: never;
28627
+ path?: never;
28628
+ cookie?: never;
28629
+ };
28630
+ /**
28631
+ * List the dedicated server-auction machines on sale now, at our price.
28632
+ * @description One-of-a-kind dedicated machines, each priced at quote time from its live measured cost (monthly, USD) beside its one-off setup fee. An offer can be sold to someone else at any second: the list is live, and a basket line holds the quoted figure for `lock_seconds` while the offer stands at the same cost, is re-priced when it changes, and refuses with the sold-out sentence when it is gone. Add one to the basket as a `compute_server` line with `plan_code` `metal_offer`, the offer's `spec` and `zone`. An organisation whose range has no account behind it gets an empty list. Requires `sites.view`.
28633
+ */
28634
+ get: operations["listComputeOffers"];
28635
+ put?: never;
28636
+ post?: never;
28637
+ delete?: never;
28638
+ options?: never;
28639
+ head?: never;
28640
+ patch?: never;
28641
+ trace?: never;
28642
+ };
28623
28643
  "/v1/compute/regions": {
28624
28644
  parameters: {
28625
28645
  query?: never;
@@ -43754,6 +43774,8 @@ export interface paths {
43754
43774
  *
43755
43775
  * Three spam controls fire in order: a fail-closed per-IP and global budget charged **before the body is parsed**, a honeypot field, then Cloudflare Turnstile. The cheapest first, and the one that makes a vendor call last — so a flood cannot turn our anti-abuse check into an outbound traffic amplifier.
43756
43776
  *
43777
+ * An unsolicited sales pitch (link selling, guest posts, outsourced development, lead generation, an offer to acquire our business or partner with us, or a sender already held as one) is refused with `422` and the refusal key `refusal.publicQuote.salesPitchNotWelcome` (owner, 2026-11-04). The row is kept under the staff Spam view with its Release button (`POST /v1/admin/quotes/{id}/not-spam`); no one is mailed and its attachments are not stored. A message that reads like a customer asking about our service (hosting their own sites, a price, a migration) is never refused. A message in any language is judged: one that is not English is read in English first by the support translator (failing open when no translator answers).
43778
+ *
43757
43779
  * ⛔ `multipart/form-data` accepts attachments (a brief, a spec, a screenshot of the error). They are magic-byte verified against an allow-list and are **not servable to anybody** until a malware scan returns clean.
43758
43780
  *
43759
43781
  * ⛔⛔ An attachment refused after the enquiry is written does **not** fail the request. The reply is still `201` with `attachments_refused` set: throwing away a description somebody spent ten minutes on because a file was the wrong type loses the customer and reads, to them, as the form being broken.
@@ -76961,6 +76983,30 @@ export interface components {
76961
76983
  ip: string;
76962
76984
  network_id: components["schemas"]["Uuid"];
76963
76985
  };
76986
+ ComputeOffer: {
76987
+ city: string;
76988
+ currency: string;
76989
+ disk_gb: number | null;
76990
+ /** @description The machine's own hardware lines. */
76991
+ label: string;
76992
+ /** @description Our monthly price, integer minor units of `currency`. */
76993
+ monthly_minor: number;
76994
+ /** @description The plan to order it under. */
76995
+ plan_code: string;
76996
+ /** @description The platform id to send as the order's `provider`. */
76997
+ provider: string;
76998
+ ram_gb: number | null;
76999
+ /** @description The one-off setup fee, passed on at cost, minor units. */
77000
+ setup_minor: number;
77001
+ /** @description The offer's machine token. */
77002
+ spec: string;
77003
+ zone: string;
77004
+ };
77005
+ ComputeOfferList: {
77006
+ data: components["schemas"]["ComputeOffer"][];
77007
+ /** @description How long a basket holds an offer's quoted figure. */
77008
+ lock_seconds: number;
77009
+ };
76964
77010
  /** @description What to do to the machine. */
76965
77011
  ComputePowerRequest: {
76966
77012
  /**
@@ -160868,6 +160914,34 @@ export interface operations {
160868
160914
  503: components["responses"]["ServiceUnavailable"];
160869
160915
  };
160870
160916
  };
160917
+ listComputeOffers: {
160918
+ parameters: {
160919
+ query?: {
160920
+ /** @description The organisation to list for. Required only when the caller belongs to more than one; omitted, it is their own. */
160921
+ org_id?: components["schemas"]["Uuid"];
160922
+ };
160923
+ header?: never;
160924
+ path?: never;
160925
+ cookie?: never;
160926
+ };
160927
+ requestBody?: never;
160928
+ responses: {
160929
+ /** @description The offers on sale now, cheapest first, and the quote lock window. */
160930
+ 200: {
160931
+ headers: {
160932
+ "RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
160933
+ [name: string]: unknown;
160934
+ };
160935
+ content: {
160936
+ "application/json": components["schemas"]["ComputeOfferList"];
160937
+ };
160938
+ };
160939
+ 401: components["responses"]["Unauthorized"];
160940
+ 403: components["responses"]["Forbidden"];
160941
+ 422: components["responses"]["UnprocessableEntity"];
160942
+ 429: components["responses"]["TooManyRequests"];
160943
+ };
160944
+ };
160871
160945
  listComputeRegions: {
160872
160946
  parameters: {
160873
160947
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1472",
3
+ "version": "0.1.1475",
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>",