@zinn-digital/sdk 0.1.1853 → 0.1.1855
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.
|
@@ -45378,7 +45378,7 @@ export interface paths {
|
|
|
45378
45378
|
};
|
|
45379
45379
|
/**
|
|
45380
45380
|
* One analytics table as CSV or XLSX from the signed download link the ads_analytics_export MCP tool returns (za-286).
|
|
45381
|
-
* @description Auth model: no session and no bearer header (`security: []`) - the path `token` IS the credential, a signed single-use capability. The view enforces `ads.view` by proxy: the `ads_analytics_export` MCP tool checks `ads.view` on the caller's MCP grant, resolves the caller's organisations exactly as `GET /v1/ads/analytics/export` does (narrowed by `org_id` to that organisation and its clients) and
|
|
45381
|
+
* @description Auth model: no session and no bearer header (`security: []`) - the path `token` IS the credential, a signed single-use capability. The view enforces `ads.view` by proxy: the `ads_analytics_export` MCP tool checks `ads.view` on the caller's MCP grant, resolves the caller's organisations exactly as `GET /v1/ads/analytics/export` does (narrowed by `org_id` to that organisation and its clients) and stores them, with the filters, on a durable row (`AdsExportLink`, tenant-scoped by RLS). The link signs (HMAC, Django signing with its own salt) only that row's id, `table`, `file`, `by`, `locale`, the issuing MCP grant and its organisation, valid for 15 minutes, so its length does not grow with the number of organisations; every signed value must equal the row. The file is the same one `exportAdsAnalyticsTable` streams. Every unusable link - tampered, expired, the MCP grant that minted it revoked since or no longer covering every organisation on the link (its `ads.view` scope removed, or an organisation moved out of its subtree: the whole link is refused, never a smaller file; an organisation added since is never added to it), an organisation no longer in good standing, or a table or filter that no longer parses - answers the same `404` (no oracle). A link is single-use: a second download answers `410`. Every answer, refusals included, carries `Cache-Control: no-store` and `Referrer-Policy: no-referrer`; the token is kept out of access logs, traces and the audit trail. Its own budget (`public_ads_analytics_export_link`, 120 per hour per address, fails closed).
|
|
45382
45382
|
*/
|
|
45383
45383
|
get: operations["downloadAdsAnalyticsExportByLink"];
|
|
45384
45384
|
put?: never;
|
|
@@ -108713,6 +108713,8 @@ export interface components {
|
|
|
108713
108713
|
/** @description The recommended rules, in evaluation order. Bypasses come first. */
|
|
108714
108714
|
rules: components["schemas"]["SiteCdnProfileRule"][];
|
|
108715
108715
|
settings: components["schemas"]["SiteCdnProfileSetting"][];
|
|
108716
|
+
/** @description `true` when the site is served by a parent zone that other sites share (a preview address). Zone-level settings belong to that zone, not to this site: they are never written for it and are not compared, so `settings` is empty and none of them appears in `drifted`. The cache rules are still compared. */
|
|
108717
|
+
settings_shared_zone: boolean;
|
|
108716
108718
|
/** @description Whether this site's CDN can express the profile's zone settings. */
|
|
108717
108719
|
settings_supported: boolean;
|
|
108718
108720
|
site_id: components["schemas"]["Uuid"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1855",
|
|
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>",
|