@zinn-digital/sdk 0.1.1844 → 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 +60 -2
- package/package.json +1 -1
|
@@ -1188,7 +1188,7 @@ export interface paths {
|
|
|
1188
1188
|
*
|
|
1189
1189
|
* ⛔ **A nil return is still required** — three consecutive missed returns is exclusion from the scheme plus a two-year quarantine — so an empty period answers `is_nil: true` rather than an empty list the caller might render as "nothing to do".
|
|
1190
1190
|
*
|
|
1191
|
-
* Non-Union OSS is filed in **euro**, converted at the **ECB rate on the last day of the period
|
|
1191
|
+
* Non-Union OSS is filed in **euro**, converted at the **ECB rate on the last day of the period** (Art. 366). `rate_date` is the date the ECB actually **published** those rates, which is the next publication day after `period_end` whenever the quarter ends on a weekend or a holiday — every 31 December, and roughly half of all quarters (Art. 366(2), forward, never backward). A currency the ECB does not publish converts at the European Commission's InforEuro rate for the period-end month. Cite `rate_date`, never the period end.
|
|
1192
1192
|
*/
|
|
1193
1193
|
get: operations["getTaxReturn"];
|
|
1194
1194
|
put?: never;
|
|
@@ -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?: {
|
|
@@ -117213,7 +117235,7 @@ export interface components {
|
|
|
117213
117235
|
period_start: string;
|
|
117214
117236
|
/**
|
|
117215
117237
|
* Format: date
|
|
117216
|
-
* @description OSS: the date the ECB **published** the rate used for the period's last day — the next publication day when that day has none (Art.
|
|
117238
|
+
* @description OSS: the date the ECB **published** the rate used for the period's last day — the next publication day when that day has none (Art. 366(2), forward). UK: the first day of the latest HMRC month used; each source row carries its own date. `null` when every supply was already in the filing currency and nothing was converted.
|
|
117217
117239
|
*/
|
|
117218
117240
|
rate_date?: string | null;
|
|
117219
117241
|
/** @description Which tables produced the rates, named so a figure on a filed return is attributable, e.g. `frankfurter:ecb+inforeuro:monthly:2026-12` (OSS) or `hmrc:monthly:2026-10..2026-12` (UK). `exact:no-conversion-required` where nothing was converted. */
|
|
@@ -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>",
|