@zinn-digital/sdk 0.1.1932 → 0.1.1936
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 +16 -0
- package/package.json +1 -1
|
@@ -40673,6 +40673,8 @@ export interface paths {
|
|
|
40673
40673
|
* An offload writing to **our** storage answers `422` with `code: FEATURE_NOT_INCLUDED` and no URLs once the organisation no longer holds a plan that includes object storage — checked on every request, because a plugin token outlives the plan that paid for it (D26223). An offload writing to the customer's own bucket is unaffected.
|
|
40674
40674
|
*
|
|
40675
40675
|
* **Hard cap.** When the plan states `object_storage_overage_cap_gb` and the latest complete measurement of the organisation's storage on our buckets has reached the allowance plus that cap, this answers `422` with `code: STORAGE_CAP_REACHED`, no URLs, and `refusal: {key: refusal.objectstorage.storageCapReached, params: {limitGb}}`. Nothing stored is touched: reads and deletes continue. An upgrade lifts it at once.
|
|
40676
|
+
*
|
|
40677
|
+
* **Issue-time ledger.** On a capped plan, every URL issued on our storage reserves its stated size, and the reservation is held until a complete usage measurement that started after the URL expired has counted whatever it uploaded (never released by the clock alone). A batch is refused with the same `STORAGE_CAP_REACHED` answer when the last measurement plus every held reservation plus this batch would cross the limit; the body then also carries `reasons`: the cap refusal followed by `refusal.objectstorage.uploadSpaceFreesAfterCheck` (space held for recent uploads frees after the next usage check). Each size is signed into its URL: storage refuses a body of any other length. On a capped plan a batch WITHOUT `sizes` (a plugin older than 1.7.0) is always refused, whatever the room left, with `code: STORAGE_CAP_REACHED` and `refusal: {key: refusal.objectstorage.updatePluginForCap}`, so every URL a capped plan is issued is length-bound. Uncapped plans (old plugins included) and a customer's own bucket are unaffected.
|
|
40676
40678
|
*/
|
|
40677
40679
|
post: operations["createMediaOffloadUploads"];
|
|
40678
40680
|
delete?: never;
|
|
@@ -121851,6 +121853,11 @@ export interface components {
|
|
|
121851
121853
|
crypto_variance_account_code: string;
|
|
121852
121854
|
/** @description Where gateway fees post. `404` (Bank Fees) — an **expense**, which is why fees can never be a sales-invoice line. */
|
|
121853
121855
|
fee_account_code: string;
|
|
121856
|
+
/**
|
|
121857
|
+
* Format: date
|
|
121858
|
+
* @description DAY-0308 (docs/311 §21): D, the first UTC day whose daily PayPal USD document is paid from its clearing account (`clearing_account_ids["PAYPAL:USD"]`). A day before D was matched by hand and is never paid by code. `null` means the route pays nothing. Never before `2026-11-01` (the hard floor; no PayPal USD document dated before it is ever paid by code, daily or monthly).
|
|
121859
|
+
*/
|
|
121860
|
+
paypal_usd_from: string | null;
|
|
121854
121861
|
/** @description ⛔ **Where the lines will ACTUALLY post** — the field above, or `fee_account_code` when it is empty. Read-only, and returned beside the raw value rather than instead of it: a screen showing only the raw value renders an empty box beside a live export posting to `404`, and one showing only this cannot tell an operator whether that is a deliberate override or the default following along behind them. */
|
|
121855
121862
|
resolved_crypto_variance_account_code: string;
|
|
121856
121863
|
/** @description Nominal code every sales line posts to. `200` (Sales) in the live Xero. */
|
|
@@ -121879,9 +121886,16 @@ export interface components {
|
|
|
121879
121886
|
clearing_account_ids?: {
|
|
121880
121887
|
[key: string]: string;
|
|
121881
121888
|
};
|
|
121889
|
+
/** @description Required as `true` to move `paypal_usd_from` earlier. Ignored otherwise. Never stored. */
|
|
121890
|
+
confirm_backdate?: boolean;
|
|
121882
121891
|
/** @description ⭐ An empty string is a real edit, not a no-op: it clears an override and returns the variance to following `fee_account_code`. */
|
|
121883
121892
|
crypto_variance_account_code?: string;
|
|
121884
121893
|
fee_account_code?: string;
|
|
121894
|
+
/**
|
|
121895
|
+
* Format: date
|
|
121896
|
+
* @description D for the PayPal USD clearing route (`YYYY-MM-DD`, or `null` to pay nothing). A date before `2026-11-01` is always refused with 422 `refusal.accounting.paypalUsdFromBeforeFloor` (first set or change, with or without `confirm_backdate`): nothing dated before that day is ever paid from the clearing. Setting it the first time, moving it later or clearing it is allowed. Moving it EARLIER makes every day in between payable on the next run that covers it, so it is refused with 422 `refusal.accounting.paypalUsdFromBackdate` unless `confirm_backdate` is `true`; a confirmed backdate is audit-logged with the old and the new date.
|
|
121897
|
+
*/
|
|
121898
|
+
paypal_usd_from?: string | null;
|
|
121885
121899
|
revenue_account_code?: string;
|
|
121886
121900
|
tax_rate_map?: {
|
|
121887
121901
|
[key: string]: string;
|
|
@@ -191254,6 +191268,8 @@ export interface operations {
|
|
|
191254
191268
|
"application/json": {
|
|
191255
191269
|
keys: string[];
|
|
191256
191270
|
plugin_version?: string;
|
|
191271
|
+
/** @description Optional. The byte size of each key, in key order (one per key, else a validation `422`). Each size is signed into its upload URL as `content-length`. */
|
|
191272
|
+
sizes?: number[];
|
|
191257
191273
|
};
|
|
191258
191274
|
};
|
|
191259
191275
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1936",
|
|
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>",
|