@zinn-digital/sdk 0.1.1514 → 0.1.1516

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.
@@ -37708,7 +37708,7 @@ export interface paths {
37708
37708
  * Record where the signed-in customer came from (the app's landing capture).
37709
37709
  * @description The dashboard captures `utm_*`, `ref`, `zd_vid` (the product sites' visit id), the referring host and the landing page BEFORE the sign-in hop, and sends them here on the first signed-in page load. This is the only way an app sign-up can be attributed: self-registration provisions the organization inside authentication, which never sees the landing URL (docs/750). Unknown keys are dropped, values are capped, and the landing page is host and path only.
37710
37710
  *
37711
- * Recorded only against an organization the caller OWNS — a member of someone else's account did not bring it to us — and never under impersonation. The first touch is written once and never overwritten; the last touch is overwritten each time. A capture with nothing attributable (no campaign, affiliate code, visit id or foreign referrer) records nothing and answers `recorded: false, reason: empty` — except the app's DIRECT first visit (`entry: direct`), which is recorded as a first touch only, when the org has none, so the owner's alert reads "Direct" instead of "Unknown"; it never overwrites a source.
37711
+ * Recorded only against an organization the caller OWNS — a member of someone else's account did not bring it to us — and never under impersonation. The first touch is written once and never overwritten; the last touch is overwritten each time. A capture with nothing attributable (no campaign, affiliate code, visit id or foreign referrer) records nothing and answers `recorded: false, reason: empty` — except the app's DIRECT first visit (`entry: direct`), which is recorded as a first touch only, when the org has none, so the owner's alert reads "Direct" instead of "Unknown"; it never overwrites a source. The app sends that marker once per organization when it has nothing pending (a browser that already reported another account's landing). On an organization more than a day old it records nothing and answers `reason: late`, so an old "Unknown" sign-up is never relabelled "Direct".
37712
37712
  */
37713
37713
  post: operations["recordAcquisitionTouch"];
37714
37714
  delete?: never;
@@ -58208,7 +58208,7 @@ export interface components {
58208
58208
  /** Format: uuid */
58209
58209
  org_id?: string;
58210
58210
  /** @enum {string} */
58211
- reason: "" | "empty" | "impersonation";
58211
+ reason: "" | "empty" | "impersonation" | "late";
58212
58212
  recorded: boolean;
58213
58213
  };
58214
58214
  /** @description One firing alert, carrying the SENTENCES rather than the label soup. `summary`, `description`, `upgrade` and `runbook` are Alertmanager ANNOTATIONS - they do not exist in PromQL, which is why this reads Alertmanager and not Prometheus. */
@@ -78848,6 +78848,8 @@ export interface components {
78848
78848
  required_permissions: string[];
78849
78849
  /** @description **Alternative** credential forms — render the first and offer the rest. Cloudflare is the live case: a scoped API token, or the account email plus its Global API Key. */
78850
78850
  shapes: components["schemas"]["CredentialField"][][];
78851
+ /** @description The connection targets the customer may pick, default first; `[]` when there is nothing to pick. Cloudflare serves `[cdn, pages]`: `pages` connects the account only to host sites on Cloudflare Pages, so it is judged on `pages_edit` alone and no zone is touched. Send the pick as `ConnectTokenRequest.target`. */
78852
+ targets?: ("cdn" | "pages")[];
78851
78853
  vendor: string;
78852
78854
  };
78853
78855
  ConnectionProviderList: {
@@ -78913,6 +78915,11 @@ export interface components {
78913
78915
  credentials?: {
78914
78916
  [key: string]: string;
78915
78917
  };
78918
+ /**
78919
+ * @description What the credential is connected FOR. Only Cloudflare offers a narrower target: `pages` = host sites on Cloudflare Pages only. The credential is then judged on Cloudflare Pages access alone (`pages_edit`), no zone is listed or written, and `credentials.account_id` is required. Omitted (or `cdn`) = the provider's full check. Cannot be combined with `also_dns`. Other providers ignore it.
78920
+ * @enum {string}
78921
+ */
78922
+ target?: "cdn" | "pages";
78916
78923
  /** @description The provider access token, for the providers whose credential is a single string. Written to Vault, never to a database row, a log line, an audit entry or an error message (CLAUDE.md §2.4). */
78917
78924
  token?: string;
78918
78925
  /** @description Check the credential and return the result without storing anything. */
@@ -93564,6 +93571,10 @@ export interface components {
93564
93571
  detail: string;
93565
93572
  /** @description Required permissions the provider **proved** are absent. Not the unknowns. */
93566
93573
  missing: string[];
93574
+ /** @description The permission keys this target requires, in catalogue order. Every other row is optional for this connection. */
93575
+ required?: string[];
93576
+ /** @description The connection target this report was judged for (`""` = the provider default, `pages` = Cloudflare Pages only). A retest re-judges for the same target. */
93577
+ target?: string;
93567
93578
  /** @description Permissions we could not determine either way. The honest amber set. */
93568
93579
  unverified: string[];
93569
93580
  /** @description Whether we may store and use this credential: alive, with no **proved** absence of anything required. ⛔ Deliberately not "every row passed" — a brand-new account with no zone on it yet has unknowable zone-scoped rows, and blocking on those would make the very first connection impossible. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1514",
3
+ "version": "0.1.1516",
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>",