@cookiemunch/sdk 0.12.1 → 0.13.1

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 CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  Every published release, newest first. Dates are the day the version was cut.
4
4
 
5
+ ## 0.13.1 (2026-11-02)
6
+
7
+ - Added: `connectExecutor(…, { verify: 'defer' })` and on `upsertExecutor`; `state: 'awaiting_first_probe'` on `DsarExecutor`.
8
+
9
+ ## 0.13.0 (2026-11-02)
10
+
11
+ - Added: `fulfillment.upsertExecutor(input)`: `PUT /v1/dsar/executors`, create or update the connection for a system from the create body.
12
+ - Changed: `updateExecutor` accepts the create-time fields; unchanged ones are no-ops, a changed one is `409 immutable_field` with `fields`.
13
+
5
14
  ## 0.12.1 (2026-11-02)
6
15
 
7
16
  - Added: `host`, `steps` and `effect` on each `DsarCreateDryRun.plan` entry: what that system would do.
package/dist/index.cjs CHANGED
@@ -465,7 +465,7 @@ async function exchangeOperatorToken(input) {
465
465
  }
466
466
 
467
467
  // src/index.ts
468
- var SDK_VERSION = "0.12.1";
468
+ var SDK_VERSION = "0.13.1";
469
469
  var CookieMunchApiError = class extends Error {
470
470
  constructor(status, message, code, body) {
471
471
  super(message);
@@ -803,8 +803,9 @@ function createCookieMunch(opts) {
803
803
  reportTask: (taskId, ok, error) => request("POST", `/dsar/agent/tasks/${enc(taskId)}/result`, { ok, ...error !== void 0 ? { error } : {} }),
804
804
  executors: (o) => get(`/dsar/executors${metaQs(o)}`),
805
805
  executor: (id) => get(`/dsar/executors/${enc(id)}`),
806
- connectExecutor: (input, o) => request("POST", `/dsar/executors${qs({ verify: o?.verify ? o.verify === "warn" ? "warn" : "1" : void 0 })}`, input),
806
+ connectExecutor: (input, o) => request("POST", `/dsar/executors${qs({ verify: o?.verify === true ? "1" : o?.verify })}`, input),
807
807
  updateExecutor: (id, patch) => request("PATCH", `/dsar/executors/${enc(id)}`, patch),
808
+ upsertExecutor: (input, o) => request("PUT", `/dsar/executors${qs({ verify: o?.verify === true ? "1" : o?.verify })}`, input),
808
809
  dryRunConnectExecutor: (input) => request("POST", "/dsar/executors?dryRun=1", input),
809
810
  executorPresets: () => get("/dsar/executors/presets"),
810
811
  upgradeExecutorPreset: (id, input = {}) => request("POST", `/dsar/executors/${enc(id)}/upgrade-preset`, input),