@zinn-digital/sdk 0.1.1847 → 0.1.1848
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.
- package/dist/generated/schema.d.ts +58 -0
- package/package.json +1 -1
|
@@ -45367,6 +45367,28 @@ export interface paths {
|
|
|
45367
45367
|
patch?: never;
|
|
45368
45368
|
trace?: never;
|
|
45369
45369
|
};
|
|
45370
|
+
"/v1/public/ads/analytics/export/{token}": {
|
|
45371
|
+
parameters: {
|
|
45372
|
+
query?: never;
|
|
45373
|
+
header?: never;
|
|
45374
|
+
path: {
|
|
45375
|
+
token: string;
|
|
45376
|
+
};
|
|
45377
|
+
cookie?: never;
|
|
45378
|
+
};
|
|
45379
|
+
/**
|
|
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).
|
|
45382
|
+
*/
|
|
45383
|
+
get: operations["downloadAdsAnalyticsExportByLink"];
|
|
45384
|
+
put?: never;
|
|
45385
|
+
post?: never;
|
|
45386
|
+
delete?: never;
|
|
45387
|
+
options?: never;
|
|
45388
|
+
head?: never;
|
|
45389
|
+
patch?: never;
|
|
45390
|
+
trace?: never;
|
|
45391
|
+
};
|
|
45370
45392
|
"/v1/public/ads/call-numbers/{pool_key}": {
|
|
45371
45393
|
parameters: {
|
|
45372
45394
|
query?: {
|
|
@@ -198008,6 +198030,42 @@ export interface operations {
|
|
|
198008
198030
|
429: components["responses"]["TooManyRequests"];
|
|
198009
198031
|
};
|
|
198010
198032
|
};
|
|
198033
|
+
downloadAdsAnalyticsExportByLink: {
|
|
198034
|
+
parameters: {
|
|
198035
|
+
query?: never;
|
|
198036
|
+
header?: never;
|
|
198037
|
+
path: {
|
|
198038
|
+
token: string;
|
|
198039
|
+
};
|
|
198040
|
+
cookie?: never;
|
|
198041
|
+
};
|
|
198042
|
+
requestBody?: never;
|
|
198043
|
+
responses: {
|
|
198044
|
+
/** @description The file, as an attachment. */
|
|
198045
|
+
200: {
|
|
198046
|
+
headers: {
|
|
198047
|
+
"Cache-Control"?: "no-store";
|
|
198048
|
+
"Referrer-Policy"?: "no-referrer";
|
|
198049
|
+
[name: string]: unknown;
|
|
198050
|
+
};
|
|
198051
|
+
content: {
|
|
198052
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": string;
|
|
198053
|
+
"text/csv": string;
|
|
198054
|
+
};
|
|
198055
|
+
};
|
|
198056
|
+
404: components["responses"]["NotFound"];
|
|
198057
|
+
/** @description The link was already downloaded once; it is single-use. Ask the AI assistant for a new one. */
|
|
198058
|
+
410: {
|
|
198059
|
+
headers: {
|
|
198060
|
+
[name: string]: unknown;
|
|
198061
|
+
};
|
|
198062
|
+
content: {
|
|
198063
|
+
"application/json": components["schemas"]["Error"];
|
|
198064
|
+
};
|
|
198065
|
+
};
|
|
198066
|
+
429: components["responses"]["TooManyRequests"];
|
|
198067
|
+
};
|
|
198068
|
+
};
|
|
198011
198069
|
getAdsCallPoolNumber: {
|
|
198012
198070
|
parameters: {
|
|
198013
198071
|
query?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1848",
|
|
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>",
|