@zinn-digital/sdk 0.1.1854 → 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 signs them (HMAC, Django signing with its own salt), with the filters, `table`, `file`, `by`, `locale`, the issuing MCP grant and its organisation, into a link valid for 15 minutes. Each link is also a durable row (`AdsExportLink`, tenant-scoped by RLS); every signed value must equal that row. The file is the same one `exportAdsAnalyticsTable` streams. Every unusable link - tampered, expired, the MCP grant that minted it revoked since, 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).
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1854",
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>",