@zinn-digital/sdk 0.1.1588 → 0.1.1590

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.
@@ -38338,6 +38338,8 @@ export interface paths {
38338
38338
  * ⛔ Not idempotent, and it does not pretend to be — a retry is refused by the hostname uniqueness constraint, which is a clean conflict rather than a second site.
38339
38339
  *
38340
38340
  * Requires **both** `sites.create` and `hosting.import.manage`: it spends a site slot *and* connects to a third party's production server, and a principal holding one of those powers must not acquire the other by coming through this door.
38341
+ *
38342
+ * ⚖️ **A full plan does not refuse a migration** (row 1107#13, owner 2026-11-07: *"better that than refusing the migration in"*). With no free site slot the site is still created and migrated, then **frozen** (served, but read-only, no cron, no mail) with the `site_slots_frozen` notice; an upgrade or a deleted site unfreezes it within about ten minutes. The oldest such sites get any free room first. The slot refusal stands only past the hard cap of `max(10 × the plan's sites, sites + 9)`, and an organization with no plan on the line is still refused.
38341
38343
  */
38342
38344
  post: operations["createMigrationWithSite"];
38343
38345
  delete?: never;
@@ -40776,7 +40778,7 @@ export interface paths {
40776
40778
  *
40777
40779
  * **The site.** It is created in the customer's organization on the plan named by `subscription_id`, on `domain`, with `app` (a key from `getPartnerCapabilities` `site_moves.plans[].apps`). Or pass `replace_site_id` — one of `listPartnerHostingSlots` `replaceable_sites` — to import into that empty site and move it onto `domain` instead of taking a new slot. `domain` may be the replaced site's own name (an `empty_starter` is built on the customer's real domain); that is not `domain_in_use`. A replaced `empty_starter` that has content on it when the move starts fails with `replace_site_not_empty`, and nothing on it is touched. The domain's DNS is never touched: it keeps pointing where it points until you repoint it, and it may stay in your (or your customer's) Cloudflare for good. A subdomain whose apex is somebody else's live site is fine.
40778
40780
  *
40779
- * **Refusals** (`422`, `details[0].code`): `no_free_slot`, `subscription_not_found`, `app_not_supported_by_plan`, `plan_cannot_import`, `domain_invalid`, `domain_in_use`, `archive_url_invalid`, `archive_checksum_invalid`, `replace_site_not_replaceable`, `move_already_running`, `idempotency_key_required`, `moves_not_open`, `no_capacity`, `dns_invalid`, `not_linked`. There is **no size limit** (D28455): room is made for a large archive, and the move is slower, never refused.
40781
+ * **Refusals** (`422`, `details[0].code`): `no_free_slot`, `subscription_not_found`, `app_not_supported_by_plan`, `plan_cannot_import`, `domain_invalid`, `domain_in_use`, `archive_url_invalid`, `archive_checksum_invalid`, `replace_site_not_replaceable`, `move_already_running`, `idempotency_key_required`, `moves_not_open`, `no_capacity`, `dns_invalid`, `not_linked`. There is **no size limit** (D28455): room is made for a large archive, and the move is slower, never refused. ⚖️ **A full plan does not refuse a move** (row 1107#13, owner 2026-11-07): the site lands past the plan's site limit and is **frozen** (served, but read-only, no cron, no mail) until the customer upgrades or frees a slot, when it unfreezes by itself within about ten minutes (the quota sweep). `no_free_slot` is returned only past the hard cap of `max(10 × the plan's sites, sites + 9)`.
40780
40782
  *
40781
40783
  * **DNS (contract v2).** `dns` says where the zone is held and who changes it: with `auto_switch: true` YOU repoint the record when the move reaches `step: ready_to_switch` (then call go-live); otherwise the customer is shown and e-mailed the exact records, the change is detected automatically, and the move goes live on its own. A retry with the same `Idempotency-Key` returns the same move. Requires `partner.domains`.
40782
40784
  */
@@ -64650,7 +64652,7 @@ export interface components {
64650
64652
  };
64651
64653
  AdsAnalyticsBreakdown: components["schemas"]["AdsAnalyticsFrame"] & {
64652
64654
  /** @enum {string} */
64653
- by: "network" | "connection" | "campaign" | "country" | "device" | "offering";
64655
+ by: "network" | "connection" | "campaign" | "country" | "device" | "offering" | "client";
64654
64656
  limit: number;
64655
64657
  offset: number;
64656
64658
  rows: components["schemas"]["AdsAnalyticsRow"][];
@@ -65033,6 +65035,8 @@ export interface components {
65033
65035
  offering_id?: string | null;
65034
65036
  /** Format: uuid */
65035
65037
  org_id?: string;
65038
+ /** @description za-287: a `by=client` row that is the agency's OWN accounts (not a client's). */
65039
+ own?: boolean;
65036
65040
  previous: components["schemas"]["AdsAnalyticsFigures"] | null;
65037
65041
  spark_cost_micros: number[];
65038
65042
  };
@@ -69354,7 +69358,7 @@ export interface components {
69354
69358
  AdsSavedViewCadence: "" | "daily" | "weekly" | "monthly";
69355
69359
  AdsSavedViewChart: {
69356
69360
  /** @enum {string} */
69357
- board?: "network" | "connection" | "campaign" | "country" | "device" | "offering";
69361
+ board?: "network" | "connection" | "campaign" | "country" | "device" | "offering" | "client";
69358
69362
  /** @enum {string} */
69359
69363
  metric?: "cost" | "value" | "roas" | "conversions" | "cpa" | "ctr" | "cpc" | "clicks" | "impressions" | "convRate";
69360
69364
  };
@@ -69370,6 +69374,7 @@ export interface components {
69370
69374
  /** @description The `/ads/analytics` filters, exactly the analytics API's query parameters (only those set). */
69371
69375
  AdsSavedViewParams: {
69372
69376
  campaign?: string;
69377
+ client?: string;
69373
69378
  /** @enum {string} */
69374
69379
  compare?: "previous" | "year" | "none";
69375
69380
  connection?: string;
@@ -115338,6 +115343,8 @@ export interface components {
115338
115343
  ActiveOrg: string;
115339
115344
  /** @description Comma-separated `<connection_id>:<campaign_id>` tokens. */
115340
115345
  AdsAnalyticsCampaign: string;
115346
+ /** @description za-287: comma-separated client organisation ids. The read narrows to each client and its own clients, so an agency sees the same screen for one client. A client the caller cannot view is a 404 (`refusal.adsconnect.noSuchOrg`), never an empty answer. */
115347
+ AdsAnalyticsClient: string;
115341
115348
  AdsAnalyticsCompare: "previous" | "year" | "none";
115342
115349
  /** @description Comma-separated ad-account connection ids. */
115343
115350
  AdsAnalyticsConnection: string;
@@ -141021,9 +141028,11 @@ export interface operations {
141021
141028
  getAdsAnalyticsBreakdown: {
141022
141029
  parameters: {
141023
141030
  query?: {
141024
- by?: "network" | "connection" | "campaign" | "country" | "device" | "offering";
141031
+ by?: "network" | "connection" | "campaign" | "country" | "device" | "offering" | "client";
141025
141032
  /** @description Comma-separated `<connection_id>:<campaign_id>` tokens. */
141026
141033
  campaign?: components["parameters"]["AdsAnalyticsCampaign"];
141034
+ /** @description za-287: comma-separated client organisation ids. The read narrows to each client and its own clients, so an agency sees the same screen for one client. A client the caller cannot view is a 404 (`refusal.adsconnect.noSuchOrg`), never an empty answer. */
141035
+ client?: components["parameters"]["AdsAnalyticsClient"];
141027
141036
  compare?: components["parameters"]["AdsAnalyticsCompare"];
141028
141037
  /** @description Comma-separated ad-account connection ids. */
141029
141038
  connection?: components["parameters"]["AdsAnalyticsConnection"];
@@ -141074,9 +141083,11 @@ export interface operations {
141074
141083
  exportAdsAnalyticsTable: {
141075
141084
  parameters: {
141076
141085
  query?: {
141077
- by?: "network" | "connection" | "campaign" | "country" | "device" | "offering";
141086
+ by?: "network" | "connection" | "campaign" | "country" | "device" | "offering" | "client";
141078
141087
  /** @description Comma-separated `<connection_id>:<campaign_id>` tokens. */
141079
141088
  campaign?: components["parameters"]["AdsAnalyticsCampaign"];
141089
+ /** @description za-287: comma-separated client organisation ids. The read narrows to each client and its own clients, so an agency sees the same screen for one client. A client the caller cannot view is a 404 (`refusal.adsconnect.noSuchOrg`), never an empty answer. */
141090
+ client?: components["parameters"]["AdsAnalyticsClient"];
141080
141091
  compare?: components["parameters"]["AdsAnalyticsCompare"];
141081
141092
  /** @description Comma-separated ad-account connection ids. */
141082
141093
  connection?: components["parameters"]["AdsAnalyticsConnection"];
@@ -141129,6 +141140,8 @@ export interface operations {
141129
141140
  query?: {
141130
141141
  /** @description Comma-separated `<connection_id>:<campaign_id>` tokens. */
141131
141142
  campaign?: components["parameters"]["AdsAnalyticsCampaign"];
141143
+ /** @description za-287: comma-separated client organisation ids. The read narrows to each client and its own clients, so an agency sees the same screen for one client. A client the caller cannot view is a 404 (`refusal.adsconnect.noSuchOrg`), never an empty answer. */
141144
+ client?: components["parameters"]["AdsAnalyticsClient"];
141132
141145
  compare?: components["parameters"]["AdsAnalyticsCompare"];
141133
141146
  /** @description Comma-separated ad-account connection ids. */
141134
141147
  connection?: components["parameters"]["AdsAnalyticsConnection"];
@@ -141179,6 +141192,8 @@ export interface operations {
141179
141192
  query?: {
141180
141193
  /** @description Comma-separated `<connection_id>:<campaign_id>` tokens. */
141181
141194
  campaign?: components["parameters"]["AdsAnalyticsCampaign"];
141195
+ /** @description za-287: comma-separated client organisation ids. The read narrows to each client and its own clients, so an agency sees the same screen for one client. A client the caller cannot view is a 404 (`refusal.adsconnect.noSuchOrg`), never an empty answer. */
141196
+ client?: components["parameters"]["AdsAnalyticsClient"];
141182
141197
  compare?: components["parameters"]["AdsAnalyticsCompare"];
141183
141198
  /** @description Comma-separated ad-account connection ids. */
141184
141199
  connection?: components["parameters"]["AdsAnalyticsConnection"];
@@ -141229,6 +141244,8 @@ export interface operations {
141229
141244
  query?: {
141230
141245
  /** @description Comma-separated `<connection_id>:<campaign_id>` tokens. */
141231
141246
  campaign?: components["parameters"]["AdsAnalyticsCampaign"];
141247
+ /** @description za-287: comma-separated client organisation ids. The read narrows to each client and its own clients, so an agency sees the same screen for one client. A client the caller cannot view is a 404 (`refusal.adsconnect.noSuchOrg`), never an empty answer. */
141248
+ client?: components["parameters"]["AdsAnalyticsClient"];
141232
141249
  compare?: components["parameters"]["AdsAnalyticsCompare"];
141233
141250
  /** @description Comma-separated ad-account connection ids. */
141234
141251
  connection?: components["parameters"]["AdsAnalyticsConnection"];
@@ -141279,6 +141296,8 @@ export interface operations {
141279
141296
  query?: {
141280
141297
  /** @description Comma-separated `<connection_id>:<campaign_id>` tokens. */
141281
141298
  campaign?: components["parameters"]["AdsAnalyticsCampaign"];
141299
+ /** @description za-287: comma-separated client organisation ids. The read narrows to each client and its own clients, so an agency sees the same screen for one client. A client the caller cannot view is a 404 (`refusal.adsconnect.noSuchOrg`), never an empty answer. */
141300
+ client?: components["parameters"]["AdsAnalyticsClient"];
141282
141301
  compare?: components["parameters"]["AdsAnalyticsCompare"];
141283
141302
  /** @description Comma-separated ad-account connection ids. */
141284
141303
  connection?: components["parameters"]["AdsAnalyticsConnection"];
@@ -141329,6 +141348,8 @@ export interface operations {
141329
141348
  query?: {
141330
141349
  /** @description Comma-separated `<connection_id>:<campaign_id>` tokens. */
141331
141350
  campaign?: components["parameters"]["AdsAnalyticsCampaign"];
141351
+ /** @description za-287: comma-separated client organisation ids. The read narrows to each client and its own clients, so an agency sees the same screen for one client. A client the caller cannot view is a 404 (`refusal.adsconnect.noSuchOrg`), never an empty answer. */
141352
+ client?: components["parameters"]["AdsAnalyticsClient"];
141332
141353
  compare?: components["parameters"]["AdsAnalyticsCompare"];
141333
141354
  /** @description Comma-separated ad-account connection ids. */
141334
141355
  connection?: components["parameters"]["AdsAnalyticsConnection"];
@@ -141383,6 +141404,8 @@ export interface operations {
141383
141404
  query?: {
141384
141405
  /** @description Comma-separated `<connection_id>:<campaign_id>` tokens. */
141385
141406
  campaign?: components["parameters"]["AdsAnalyticsCampaign"];
141407
+ /** @description za-287: comma-separated client organisation ids. The read narrows to each client and its own clients, so an agency sees the same screen for one client. A client the caller cannot view is a 404 (`refusal.adsconnect.noSuchOrg`), never an empty answer. */
141408
+ client?: components["parameters"]["AdsAnalyticsClient"];
141386
141409
  compare?: components["parameters"]["AdsAnalyticsCompare"];
141387
141410
  /** @description Comma-separated ad-account connection ids. */
141388
141411
  connection?: components["parameters"]["AdsAnalyticsConnection"];
@@ -141441,6 +141464,8 @@ export interface operations {
141441
141464
  query?: {
141442
141465
  /** @description Comma-separated `<connection_id>:<campaign_id>` tokens. */
141443
141466
  campaign?: components["parameters"]["AdsAnalyticsCampaign"];
141467
+ /** @description za-287: comma-separated client organisation ids. The read narrows to each client and its own clients, so an agency sees the same screen for one client. A client the caller cannot view is a 404 (`refusal.adsconnect.noSuchOrg`), never an empty answer. */
141468
+ client?: components["parameters"]["AdsAnalyticsClient"];
141444
141469
  compare?: components["parameters"]["AdsAnalyticsCompare"];
141445
141470
  /** @description Comma-separated ad-account connection ids. */
141446
141471
  connection?: components["parameters"]["AdsAnalyticsConnection"];
@@ -141491,6 +141516,8 @@ export interface operations {
141491
141516
  query?: {
141492
141517
  /** @description Comma-separated `<connection_id>:<campaign_id>` tokens. */
141493
141518
  campaign?: components["parameters"]["AdsAnalyticsCampaign"];
141519
+ /** @description za-287: comma-separated client organisation ids. The read narrows to each client and its own clients, so an agency sees the same screen for one client. A client the caller cannot view is a 404 (`refusal.adsconnect.noSuchOrg`), never an empty answer. */
141520
+ client?: components["parameters"]["AdsAnalyticsClient"];
141494
141521
  compare?: components["parameters"]["AdsAnalyticsCompare"];
141495
141522
  /** @description Comma-separated ad-account connection ids. */
141496
141523
  connection?: components["parameters"]["AdsAnalyticsConnection"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1588",
3
+ "version": "0.1.1590",
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>",