@cookiemunch/sdk 0.23.0 → 0.25.0

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/types.d.ts CHANGED
@@ -6,6 +6,15 @@
6
6
  export interface Identity {
7
7
  orgId: string;
8
8
  orgName?: string | null;
9
+ /** The one thing to fix first: the first of `rights.warningDetails` (no mail provider leads). Absent when nothing needs fixing. */
10
+ attention?: {
11
+ code: string;
12
+ message: string;
13
+ fix: string;
14
+ requiredScopes?: string[];
15
+ cbids?: string[];
16
+ system?: string;
17
+ };
9
18
  /** The EFFECTIVE plan — the one every feature gate and limit uses. */
10
19
  plan: string;
11
20
  /**
@@ -129,6 +138,17 @@ export interface HealthRow {
129
138
  by: string;
130
139
  until: number | null;
131
140
  };
141
+ /** `check:subject`, unique in a report: one check run for two connections is two rows with two keys. */
142
+ key: string;
143
+ /** Failing rows: why, in one sentence (the same as `detail`). */
144
+ reason?: string;
145
+ /** Failing rows: who has to act. `you`, `cookiemunch` (send us the `ref`), or a vendor id. */
146
+ fixedBy?: 'you' | 'cookiemunch' | (string & {});
147
+ /** The record the row is about: a connection or a scan. */
148
+ ref?: {
149
+ type: 'executor' | 'scan';
150
+ id: string;
151
+ };
132
152
  lastCheckedAt: number;
133
153
  }
134
154
  export interface IntegrationHealthReport {
@@ -145,6 +165,8 @@ export interface IntegrationHealthReport {
145
165
  notChecked: number;
146
166
  waived: number;
147
167
  };
168
+ /** The finding to fix first, also `checks[0]`: a missing mail provider leads, then the first error, then the first warning. */
169
+ top?: HealthRow;
148
170
  checks: HealthRow[];
149
171
  }
150
172
  /** PUT /v1/integration-health/waivers. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cookiemunch/sdk",
3
- "version": "0.23.0",
3
+ "version": "0.25.0",
4
4
  "description": "Typed REST client for the Cookie Munch Developer API (/v1)",
5
5
  "license": "MIT",
6
6
  "type": "module",