@zinn-digital/sdk 0.1.1362 → 0.1.1366

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.
@@ -45873,6 +45873,56 @@ export interface paths {
45873
45873
  patch?: never;
45874
45874
  trace?: never;
45875
45875
  };
45876
+ "/v1/sites/{siteId}/app-auto-update": {
45877
+ parameters: {
45878
+ query?: never;
45879
+ header?: never;
45880
+ path: {
45881
+ /** @description Site ID (UUIDv7). */
45882
+ siteId: components["parameters"]["SiteId"];
45883
+ };
45884
+ cookie?: never;
45885
+ };
45886
+ /**
45887
+ * Read a site's automatic app updates add-on and its window.
45888
+ * @description The paid automatic-updates add-on for the app the site runs (`wordpress_auto_updates` or `woocommerce_auto_updates`, USD 29 a year per site; s1014 row 41): whether it is on sale and on, its price in the caller's currency, the renewal, the quiet window and the last run. Each run updates WordPress core, plugins and themes in the window, takes a safety backup first and rolls back to it when the homepage breaks. A held plugin version is never applied. Buy it through `purchaseExtra` with `site_id`. Requires `sites.view`.
45889
+ */
45890
+ get: operations["getSiteAppAutoUpdate"];
45891
+ /**
45892
+ * Turn automatic app updates on or off and choose the window.
45893
+ * @description Sets the quiet window (`window_weekday` 0 = Monday to 6 = Sunday, or null for every day; `window_hour` 0-23; an IANA `timezone`). Turning it on needs the add-on on this site (`422 refusal.appAutoUpdate.notOnSite`); a bad hour, weekday or time zone is `422`. Requires `sites.view` and `hosting.applications.manage`.
45894
+ */
45895
+ put: operations["updateSiteAppAutoUpdate"];
45896
+ post?: never;
45897
+ delete?: never;
45898
+ options?: never;
45899
+ head?: never;
45900
+ patch?: never;
45901
+ trace?: never;
45902
+ };
45903
+ "/v1/sites/{siteId}/app-auto-update/stop": {
45904
+ parameters: {
45905
+ query?: never;
45906
+ header?: never;
45907
+ path: {
45908
+ /** @description Site ID (UUIDv7). */
45909
+ siteId: components["parameters"]["SiteId"];
45910
+ };
45911
+ cookie?: never;
45912
+ };
45913
+ get?: never;
45914
+ put?: never;
45915
+ /**
45916
+ * Stop a site's automatic app updates renewing.
45917
+ * @description Stops the yearly renewal of the site's automatic app updates add-on. Updates keep running until the day before the renewal date and are not refunded. A site without the add-on is `422 refusal.appAutoUpdate.notOnSite`. Requires `sites.view` and `billing.payment.manage`.
45918
+ */
45919
+ post: operations["stopSiteAppAutoUpdate"];
45920
+ delete?: never;
45921
+ options?: never;
45922
+ head?: never;
45923
+ patch?: never;
45924
+ trace?: never;
45925
+ };
45876
45926
  "/v1/sites/{siteId}/app/previews/{previewId}": {
45877
45927
  parameters: {
45878
45928
  query?: never;
@@ -66487,8 +66537,7 @@ export interface components {
66487
66537
  registration_number?: string;
66488
66538
  };
66489
66539
  Agent: {
66490
- /** @enum {string} */
66491
- app: "openclaw" | "hermes" | "paperclip" | "activepieces";
66540
+ app: components["schemas"]["AgentAppCode"];
66492
66541
  /** Format: date-time */
66493
66542
  created_at: string | null;
66494
66543
  /** Format: uuid */
@@ -66507,8 +66556,7 @@ export interface components {
66507
66556
  provisioned_at: string | null;
66508
66557
  resources: components["schemas"]["AgentResources"];
66509
66558
  spent_period_micros: number;
66510
- /** @enum {string} */
66511
- status: "provisioning" | "running" | "suspended" | "failed" | "deleting" | "deleted";
66559
+ status: components["schemas"]["AgentRunState"];
66512
66560
  status_detail: string;
66513
66561
  /** @enum {string} */
66514
66562
  suspend_reason: "" | "standing" | "customer" | "ended" | "staff";
@@ -66554,6 +66602,11 @@ export interface components {
66554
66602
  upstream: string;
66555
66603
  version: string;
66556
66604
  };
66605
+ /**
66606
+ * @description The app an agent runs. One named component so a generator never derives the name `AgentApp` from `Agent.app`, which collides with the `AgentApp` catalogue object below.
66607
+ * @enum {string}
66608
+ */
66609
+ AgentAppCode: "openclaw" | "hermes" | "paperclip" | "activepieces";
66557
66610
  /** @description One action's earned authority (docs/133 D3). ⛔ Authority is per ACTION, never for the agent as a whole — "the agent is trusted" is not a state that exists. */
66558
66611
  AgentCapability: {
66559
66612
  action: string;
@@ -66761,6 +66814,11 @@ export interface components {
66761
66814
  /** @enum {integer} */
66762
66815
  rung: 1 | 2 | 3;
66763
66816
  };
66817
+ /**
66818
+ * @description Where a hosted agent is in its life. A named component because a generator would otherwise derive `AgentStatus` from `Agent.status`, which collides with the `AgentStatus` capability object.
66819
+ * @enum {string}
66820
+ */
66821
+ AgentRunState: "provisioning" | "running" | "suspended" | "failed" | "deleting" | "deleted";
66764
66822
  AgentSlot: {
66765
66823
  ai_credit_monthly_micros: number;
66766
66824
  /** Format: date-time */
@@ -95484,6 +95542,46 @@ export interface components {
95484
95542
  total_ms: number;
95485
95543
  transaction: string;
95486
95544
  };
95545
+ /** @description The paid automatic app updates add-on for one site (s1014 row 41): the code that applies (`wordpress_auto_updates` or `woocommerce_auto_updates`), the window and the last run's outcome. */
95546
+ SiteAppAutoUpdate: {
95547
+ /** @description Whether the add-on is on and in good standing now. */
95548
+ active: boolean;
95549
+ /**
95550
+ * @description The app the add-on serves on this site, or null when none is sold for it.
95551
+ * @enum {string|null}
95552
+ */
95553
+ app_key: "wordpress" | "woocommerce" | null;
95554
+ can_buy: boolean;
95555
+ /** @description The catalogue code to buy (`<app_key>_auto_updates`). */
95556
+ code: string | null;
95557
+ enabled: boolean;
95558
+ /** Format: date */
95559
+ ends_on: string | null;
95560
+ /** @description What the last run changed, or why it was rolled back. */
95561
+ last_detail: string | null;
95562
+ /** @enum {string|null} */
95563
+ last_outcome: "updated" | "current" | "rolled_back" | "failed" | null;
95564
+ /** Format: date-time */
95565
+ last_run_at: string | null;
95566
+ /** Format: date-time */
95567
+ next_window_at: string | null;
95568
+ /** @description Whether the add-on is on sale to this organisation. */
95569
+ offered: boolean;
95570
+ /** @description The yearly price in the caller's currency, or null when not on sale. */
95571
+ price: components["schemas"]["MoneyAmount"] | null;
95572
+ /** Format: uuid */
95573
+ purchase_id: string | null;
95574
+ /** @description Why it cannot be bought right now, or null. */
95575
+ refusal: string | null;
95576
+ /** Format: date */
95577
+ renews_on: string | null;
95578
+ /** Format: uuid */
95579
+ site_id: string;
95580
+ timezone: string;
95581
+ window_hour: number;
95582
+ /** @description 0 = Monday to 6 = Sunday; null = every day. */
95583
+ window_weekday: number | null;
95584
+ };
95487
95585
  SiteBackup: {
95488
95586
  /** Format: date-time */
95489
95587
  created_at: string;
@@ -103788,6 +103886,8 @@ export interface components {
103788
103886
  /** @description The caller's own handle, echoed back. ⛔ Must be **unique** within the request — the response is matched by `ref` rather than by position, so duplicates would collapse and render one price for two products. A repeat is a 422 rather than a silent de-duplication. */
103789
103887
  ref: string;
103790
103888
  }[];
103889
+ /** @description Absent means false. Which question is asked. `false` prices a BASKET exactly as its invoice will be rounded (VAT once per rate group, leftover cents by largest remainder), so the totals are what checkout charges: use it for a cart or checkout. `true` prices a LIST of independent items, each rated as its own one-item invoice, so an item shows the same cents whatever else is in the request: use it for a price list or plan table. The totals of a `per_item` quote are a sum of standalone prices, not a basket. Only a literal `true` enables it. */
103890
+ per_item?: boolean;
103791
103891
  };
103792
103892
  /** @description One dated VAT rate for one country and category (docs/34 §2.4). */
103793
103893
  TaxRate: {
@@ -183761,6 +183861,98 @@ export interface operations {
183761
183861
  429: components["responses"]["TooManyRequests"];
183762
183862
  };
183763
183863
  };
183864
+ getSiteAppAutoUpdate: {
183865
+ parameters: {
183866
+ query?: never;
183867
+ header?: never;
183868
+ path: {
183869
+ /** @description Site ID (UUIDv7). */
183870
+ siteId: components["parameters"]["SiteId"];
183871
+ };
183872
+ cookie?: never;
183873
+ };
183874
+ requestBody?: never;
183875
+ responses: {
183876
+ /** @description The site's automatic app updates state. */
183877
+ 200: {
183878
+ headers: {
183879
+ [name: string]: unknown;
183880
+ };
183881
+ content: {
183882
+ "application/json": components["schemas"]["SiteAppAutoUpdate"];
183883
+ };
183884
+ };
183885
+ 401: components["responses"]["Unauthorized"];
183886
+ 403: components["responses"]["Forbidden"];
183887
+ 404: components["responses"]["NotFound"];
183888
+ 429: components["responses"]["TooManyRequests"];
183889
+ };
183890
+ };
183891
+ updateSiteAppAutoUpdate: {
183892
+ parameters: {
183893
+ query?: never;
183894
+ header?: never;
183895
+ path: {
183896
+ /** @description Site ID (UUIDv7). */
183897
+ siteId: components["parameters"]["SiteId"];
183898
+ };
183899
+ cookie?: never;
183900
+ };
183901
+ requestBody: {
183902
+ content: {
183903
+ "application/json": {
183904
+ enabled: boolean;
183905
+ timezone: string;
183906
+ window_hour: number;
183907
+ window_weekday?: number | null;
183908
+ };
183909
+ };
183910
+ };
183911
+ responses: {
183912
+ /** @description The site's automatic app updates state after the change. */
183913
+ 200: {
183914
+ headers: {
183915
+ [name: string]: unknown;
183916
+ };
183917
+ content: {
183918
+ "application/json": components["schemas"]["SiteAppAutoUpdate"];
183919
+ };
183920
+ };
183921
+ 401: components["responses"]["Unauthorized"];
183922
+ 403: components["responses"]["Forbidden"];
183923
+ 404: components["responses"]["NotFound"];
183924
+ 422: components["responses"]["UnprocessableEntity"];
183925
+ 429: components["responses"]["TooManyRequests"];
183926
+ };
183927
+ };
183928
+ stopSiteAppAutoUpdate: {
183929
+ parameters: {
183930
+ query?: never;
183931
+ header?: never;
183932
+ path: {
183933
+ /** @description Site ID (UUIDv7). */
183934
+ siteId: components["parameters"]["SiteId"];
183935
+ };
183936
+ cookie?: never;
183937
+ };
183938
+ requestBody?: never;
183939
+ responses: {
183940
+ /** @description The renewal is stopped; the state after the change. */
183941
+ 200: {
183942
+ headers: {
183943
+ [name: string]: unknown;
183944
+ };
183945
+ content: {
183946
+ "application/json": components["schemas"]["SiteAppAutoUpdate"];
183947
+ };
183948
+ };
183949
+ 401: components["responses"]["Unauthorized"];
183950
+ 403: components["responses"]["Forbidden"];
183951
+ 404: components["responses"]["NotFound"];
183952
+ 422: components["responses"]["UnprocessableEntity"];
183953
+ 429: components["responses"]["TooManyRequests"];
183954
+ };
183955
+ };
183764
183956
  deleteSiteAppPreview: {
183765
183957
  parameters: {
183766
183958
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1362",
3
+ "version": "0.1.1366",
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>",