@cookiemunch/sdk 0.34.0 → 0.35.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/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.34.0";
23
+ export declare const SDK_VERSION = "0.35.0";
24
24
  export interface CookieMunchOptions {
25
25
  apiKey: string;
26
26
  /** "https://api.cookiemunch.net" — the /v1 prefix is appended automatically. */
@@ -3703,6 +3703,8 @@ export interface CookieMunchClient {
3703
3703
  task(requestId: string, taskId: string): Promise<DsarTask>;
3704
3704
  /** Approve an erasure awaiting approval: it is sent now. Audited with your key. 409 when it is not waiting. */
3705
3705
  approveTask(requestId: string, taskId: string): Promise<DsarTask>;
3706
+ /** Send a failed task again once its system is fixed: a new request upstream; an erasure needing approval waits for it again. 409 unless failed and the request in progress. Audited. */
3707
+ retryTask(requestId: string, taskId: string): Promise<DsarTask>;
3706
3708
  /** Reject an erasure awaiting approval: nothing is sent and the task fails with `reason`. Audited. */
3707
3709
  rejectTask(requestId: string, taskId: string, opts?: {
3708
3710
  reason?: string;
package/dist/index.js CHANGED
@@ -89,7 +89,7 @@ async function exchangeOperatorToken(input) {
89
89
  }
90
90
 
91
91
  // src/index.ts
92
- var SDK_VERSION = "0.34.0";
92
+ var SDK_VERSION = "0.35.0";
93
93
  var CookieMunchApiError = class extends Error {
94
94
  constructor(status, message, code, body) {
95
95
  super(message);
@@ -457,6 +457,7 @@ function createCookieMunch(opts) {
457
457
  taskExport: (requestId, taskId) => get(`/dsar/${enc(requestId)}/tasks/${enc(taskId)}/export`),
458
458
  task: (requestId, taskId) => get(`/dsar/${enc(requestId)}/tasks/${enc(taskId)}`),
459
459
  approveTask: (requestId, taskId) => request("POST", `/dsar/${enc(requestId)}/tasks/${enc(taskId)}/approve`),
460
+ retryTask: (requestId, taskId) => request("POST", `/dsar/${enc(requestId)}/tasks/${enc(taskId)}/retry`),
460
461
  rejectTask: (requestId, taskId, o = {}) => request("POST", `/dsar/${enc(requestId)}/tasks/${enc(taskId)}/reject`, o.reason !== void 0 ? { reason: o.reason } : {}),
461
462
  testExecutor: (id, input) => request("POST", `/dsar/executors/${enc(id)}/test`, input),
462
463
  recheckExecutor: (id) => request("POST", `/dsar/executors/${enc(id)}/recheck`),