@zinn-digital/sdk 0.1.2000 → 0.1.2002

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.
@@ -4862,7 +4862,7 @@ export interface paths {
4862
4862
  put?: never;
4863
4863
  /**
4864
4864
  * Grant an org mid-cycle free days or account credit (staff, audit-logged).
4865
- * @description One endpoint for the mid-cycle grants. `kind: "days"` adds `days` free days to the org's live subscription (or `subscription_id`) — refused (422, `refusal.admin.grantDaysWhileOwing`) on a subscription that owes billing periods, because moving the paid-through date would forgive that debt silently (s1014 R40 GAP-9); `kind: "restore_owing"` ("restore now, still owed") brings a subscription that owes periods back NOW: it records ONE debt for exactly the owed span at the captured price, moves the paid-through date to the end of that span, sets it active, cancels the unpaid renewal orders the span covered and restores the services; the next order for the subscription carries the debt and pays it first (`reason` required; engine rail only; audit-logged `billing.subscription.restore_while_owing`); `kind: "credit"` grants `amount_minor` + `currency` account credit (an immutable, positive ledger entry). Requires staff + `billing.entitlement.manage`.
4865
+ * @description One endpoint for the mid-cycle grants. `kind: "days"` adds `days` free days to the org's live subscription (or `subscription_id`) — refused (422, `refusal.admin.grantDaysWhileOwing`) on a subscription that owes billing periods, because moving the paid-through date would forgive that debt silently (s1014 R40 GAP-9); `kind: "restore_owing"` ("restore now, still owed") brings a subscription that owes periods back NOW: it records ONE debt for exactly the owed span at the captured price, moves the paid-through date to the end of that span, sets it active, cancels the unpaid renewal orders the span covered and restores the services; the next order for the subscription carries the debt and pays it first (`reason` required; engine rail only; audit-logged `billing.subscription.restore_while_owing`); `kind: "credit"` grants `amount_minor` + `currency` account credit (an immutable, positive ledger entry). Requires staff + `billing.entitlement.manage`. A `kind: "credit"` grant is replay-safe (CREDITFIX-1121): with an `Idempotency-Key` header the same key never grants twice; without one, an identical grant to the same org by the same staff member within 60 seconds is treated as the same grant (the same grant from a different staff member is a second grant). A duplicate writes no second ledger row, audit entry or e-mail.
4866
4866
  */
4867
4867
  post: operations["grantSubscription"];
4868
4868
  delete?: never;
@@ -132158,7 +132158,10 @@ export interface operations {
132158
132158
  grantSubscription: {
132159
132159
  parameters: {
132160
132160
  query?: never;
132161
- header?: never;
132161
+ header?: {
132162
+ /** @description Optional client key for a `kind: "credit"` grant; a repeat with the same key returns without granting again (stored as `admin-credit-grant:<org>:<key>`, first 150 characters). */
132163
+ "Idempotency-Key"?: string;
132164
+ };
132162
132165
  path: {
132163
132166
  /** @description Organization ID (UUIDv7). */
132164
132167
  orgId: components["parameters"]["OrgId"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.2000",
3
+ "version": "0.1.2002",
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>",