@cookiemunch/sdk 0.17.0 → 0.19.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/CHANGELOG.md +10 -0
- package/LICENSE +21 -0
- package/README.md +4 -0
- package/dist/{chunk-U5OJSPE5.js → chunk-UEFYGHV3.js} +12 -2
- package/dist/chunk-UEFYGHV3.js.map +1 -0
- package/dist/executor-conformance.d.ts +16 -1
- package/dist/index.cjs +12 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +10 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/rights.cjs +58 -2
- package/dist/rights.cjs.map +1 -1
- package/dist/rights.d.ts +21 -0
- package/dist/rights.js +59 -3
- package/dist/rights.js.map +1 -1
- package/dist/types.d.ts +8 -0
- package/package.json +12 -5
- package/dist/chunk-U5OJSPE5.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ import type { ConformanceReport } from './executor-conformance.js';
|
|
|
20
20
|
* This package's version, sent in the default User-Agent. Cloudflare answers a request with
|
|
21
21
|
* no recognisable User-Agent with `403 error code: 1010`; a test pins this to package.json.
|
|
22
22
|
*/
|
|
23
|
-
export declare const SDK_VERSION = "0.
|
|
23
|
+
export declare const SDK_VERSION = "0.19.0";
|
|
24
24
|
export interface CookieMunchOptions {
|
|
25
25
|
apiKey: string;
|
|
26
26
|
/** "https://api.cookiemunch.net" — the /v1 prefix is appended automatically. */
|
|
@@ -2321,7 +2321,11 @@ export interface DsarExecutor {
|
|
|
2321
2321
|
* The last canary health check (hourly, and on `testExecutor(id, { canary: true })`). null
|
|
2322
2322
|
* until the first; cleared when the address, profile or key changes.
|
|
2323
2323
|
*/
|
|
2324
|
-
|
|
2324
|
+
/** `{ status: 'pending' }` while it is registered ahead of its API (`state: 'pending'` on create). */
|
|
2325
|
+
health: ExecutorHealth | {
|
|
2326
|
+
status: 'pending';
|
|
2327
|
+
detail: string;
|
|
2328
|
+
} | null;
|
|
2325
2329
|
/** The preset it was built from; absent when hand-written. */
|
|
2326
2330
|
preset?: ExecutorPresetName;
|
|
2327
2331
|
presetVersion?: number;
|
|
@@ -2351,6 +2355,10 @@ export interface DsarExecutor {
|
|
|
2351
2355
|
completionsUrl?: string;
|
|
2352
2356
|
/** True: its erasures wait (status `awaiting_approval`) for `approveTask` or `rejectTask`. */
|
|
2353
2357
|
requireApproval?: boolean;
|
|
2358
|
+
/** Systems whose tasks must finish first. */
|
|
2359
|
+
runAfter?: string[];
|
|
2360
|
+
/** A sandbox fixture: no system behind it. */
|
|
2361
|
+
fixture?: 'done' | 'no_match';
|
|
2354
2362
|
/** Made with `verify: 'defer'` and no probe has passed yet: not planned into requests, not alerted on. Absent: active. */
|
|
2355
2363
|
state?: 'awaiting_first_probe';
|
|
2356
2364
|
/** The last conformance run (`testExecutor` with `conformance: true`): rule counts and when (epoch ms). Null until one runs. */
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
CONFORMANCE_RULES,
|
|
15
15
|
canaryIdentityFor,
|
|
16
16
|
runExecutorConformance
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-UEFYGHV3.js";
|
|
18
18
|
|
|
19
19
|
// src/webhooks.ts
|
|
20
20
|
import { createHmac, timingSafeEqual } from "crypto";
|
|
@@ -88,7 +88,7 @@ async function exchangeOperatorToken(input) {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
// src/index.ts
|
|
91
|
-
var SDK_VERSION = "0.
|
|
91
|
+
var SDK_VERSION = "0.19.0";
|
|
92
92
|
var CookieMunchApiError = class extends Error {
|
|
93
93
|
constructor(status, message, code, body) {
|
|
94
94
|
super(message);
|