@desplega.ai/agent-swarm 1.152.2 → 1.153.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/README.md +1 -1
- package/dist/{acp-adapter-pfeje2v5.js → acp-adapter-ahmjxhek.js} +4 -4
- package/dist/{actions-0sttc7f5.js → actions-jzrfpkmn.js} +30 -26
- package/dist/{anthropic-messages-2y8nktar.js → anthropic-messages-9vqsbznt.js} +112 -84
- package/dist/{app-p8teva95.js → app-03na2vwb.js} +9 -6
- package/dist/{assistant-r45jnsrt.js → assistant-hfkxvhgt.js} +31 -27
- package/dist/{azure-openai-responses-f38x2avq.js → azure-openai-responses-04qwdwfq.js} +27 -13
- package/dist/{boot-reembed-je26h5y7.js → boot-reembed-c98xrad3.js} +8 -6
- package/dist/{boot-reembed-1qmybsd4.js → boot-reembed-zt3qm9xn.js} +9 -7
- package/dist/{boot-scrub-logs-gte3h1mm.js → boot-scrub-logs-jcqd8ksj.js} +6 -4
- package/dist/{claude-adapter-csc1mzka.js → claude-adapter-mgryg8g3.js} +17 -15
- package/dist/{claude-managed-adapter-dsmkcrjy.js → claude-managed-adapter-ea2aga6w.js} +3 -3
- package/dist/{claude-sdk-session-fcd6f078.js → claude-sdk-session-jjf4zss1.js} +17 -15
- package/dist/{cli-r2fpe7cx.js → cli-00w2c66p.js} +61 -55
- package/dist/{cli-fm4ytsdk.js → cli-0d9nbqxf.js} +1 -1
- package/dist/cli-0x5qzvkg.js +4279 -0
- package/dist/{cli-d3p82erb.js → cli-18amys3y.js} +9 -9
- package/dist/{cli-wbyk465z.js → cli-1hwnb4hc.js} +1 -1
- package/dist/{cli-xw7vak96.js → cli-3bcmp015.js} +5 -5
- package/dist/cli-3er6gcsn.js +1849 -0
- package/dist/{cli-c4eeb5q2.js → cli-5b6b62tz.js} +1 -1
- package/dist/{cli-4ahpr4sw.js → cli-5mbmvxnn.js} +5 -5
- package/dist/{cli-xy1cchaf.js → cli-5taqtpze.js} +235 -8
- package/dist/{cli-fmy65jdn.js → cli-6ks9xf1n.js} +7 -5
- package/dist/cli-7g9s78jf.js +2827 -0
- package/dist/{cli-jew3jda5.js → cli-7pnz2v6s.js} +2 -2
- package/dist/{cli-r84ctdxn.js → cli-83wkg402.js} +2 -2
- package/dist/{cli-jvy9qgjs.js → cli-a9scg8sv.js} +4 -4
- package/dist/{cli-4yc5d8fk.js → cli-avkd6mqv.js} +50 -0
- package/dist/{cli-ht5rs63n.js → cli-b2g6mzjc.js} +15 -6
- package/dist/{cli-jbmc0r7r.js → cli-bw0dfwkr.js} +1 -1
- package/dist/{cli-8wrympd7.js → cli-bzr0ftht.js} +26 -7
- package/dist/{cli-wpv5rgg2.js → cli-cdq08v3r.js} +2 -2
- package/dist/cli-cgj4hc12.js +18902 -0
- package/dist/cli-d6hk10xx.js +14075 -0
- package/dist/{cli-zvgj5zg8.js → cli-djvxhnc4.js} +31 -3324
- package/dist/{cli-s25avqg9.js → cli-e781c6f9.js} +1 -0
- package/dist/{cli-3bpzj8me.js → cli-eazstkad.js} +2 -2
- package/dist/{cli-s2qjdd6z.js → cli-eetrvv91.js} +1 -1
- package/dist/cli-h38x0qhg.js +6912 -0
- package/dist/{cli-9xvdm3bx.js → cli-h60qfasa.js} +742 -278
- package/dist/{pi-mono-adapter-jcqt71cg.js → cli-ja7mrygn.js} +67343 -101083
- package/dist/{cli-j8dggbcr.js → cli-k0g1sjzm.js} +23 -31
- package/dist/{cli-gphgnvpf.js → cli-m04pt18h.js} +2 -2
- package/dist/{cli-rgvp6r2x.js → cli-mcnhgnn1.js} +193 -4
- package/dist/{cli-j4nv2wqy.js → cli-mzgyhxbe.js} +10 -4
- package/dist/{cli-qn042eh7.js → cli-n0q9b7j4.js} +46 -1870
- package/dist/cli-n7h1kqpf.js +29 -0
- package/dist/{cli-ckz5t2hb.js → cli-nq0kgyxe.js} +5 -5
- package/dist/{cli-z3wkng35.js → cli-qrqhc31j.js} +151 -125
- package/dist/{cli-56h18ng2.js → cli-r8tdds6s.js} +1 -1
- package/dist/{cli-ch38q5z4.js → cli-rj7de4b2.js} +6788 -2541
- package/dist/{cli-qd65dvr6.js → cli-s5s1f2yn.js} +56 -40
- package/dist/{cli-kj76p1ez.js → cli-scwq51gn.js} +13 -7
- package/dist/{cli-2nnd56zt.js → cli-tdh4hjr2.js} +3 -2
- package/dist/{cli-c2mk1kgf.js → cli-v4en75c5.js} +8 -1
- package/dist/{cli-b9dd0h3k.js → cli-vw03hg5t.js} +3 -2
- package/dist/{cli-zvkq5csn.js → cli-ybpp1srm.js} +6 -6
- package/dist/cli-yn0a417a.js +4069 -0
- package/dist/{cli-gpqcs935.js → cli-ysc1kbet.js} +2 -2
- package/dist/{cli-zfzznn7c.js → cli-ytxs7mn1.js} +26 -2
- package/dist/cli-zcsyfw2z.js +3335 -0
- package/dist/{cli-4j8k1m4w.js → cli-zt1227k1.js} +1162 -192
- package/dist/cli-zy5w9gpt.js +230 -0
- package/dist/cli.js +26 -34
- package/dist/{codex-adapter-fxmpsabw.js → codex-adapter-8548daap.js} +12 -11
- package/dist/{codex-session-runner-rr1e47ea.js → codex-session-runner-2dad8p4x.js} +12 -11
- package/dist/{commands-0f5rxz51.js → commands-355dbpa8.js} +6 -4
- package/dist/{db-r3jxf3wy.js → db-4jjvwz1s.js} +6 -4
- package/dist/{dispatcher-06vph6q4.js → dispatcher-ca590nkz.js} +29 -25
- package/dist/dsh-adapter-rgvj6ykp.js +19 -0
- package/dist/{e2b-413b8t4v.js → e2b-93x1k0j5.js} +6 -7
- package/dist/{google-generative-ai-ndjmj5fa.js → google-generative-ai-xtw7tggr.js} +33 -73
- package/dist/{google-vertex-fr665tqs.js → google-vertex-zdqpms6n.js} +38 -68
- package/dist/{handlers-0hgtc910.js → handlers-2y6dqpvf.js} +32 -28
- package/dist/{hook-9kvrv1er.js → hook-0s8knepr.js} +11 -9
- package/dist/{hook-fbfhkat3.js → hook-k0gec254.js} +12 -10
- package/dist/{http-xbyx8k5j.js → http-jp2nb4zw.js} +300 -237
- package/dist/{index-tfsdxyv6.js → index-0wzg3sp3.js} +39 -24
- package/dist/{index-rnyahfn5.js → index-3mq6ce93.js} +29 -25
- package/dist/{index-jsw3aynb.js → index-42s7eezq.js} +29 -25
- package/dist/{cli-pdz9qde4.js → index-9ch1n761.js} +10 -11
- package/dist/{index-gpfn1741.js → index-b56xkbc7.js} +8 -6
- package/dist/{index-66xz5e9j.js → index-h5gs261z.js} +521 -9
- package/dist/{index-2sp0384z.js → index-kkeftv5h.js} +738 -21
- package/dist/{index-sgk50mbg.js → index-s37dbevy.js} +30 -26
- package/dist/index-w097eg0x.js +5 -0
- package/dist/jiti-loader-b4837mtm.js +34 -0
- package/dist/jiti-static-loader-q2g5ds0y.js +31267 -0
- package/dist/{keepalive-s3xpr7sw.js → keepalive-9pfw7t02.js} +8 -6
- package/dist/{lead-rq4n5r16.js → lead-7vcmcdq4.js} +44 -39
- package/dist/{maintenance-f0atj1ab.js → maintenance-x277jbpd.js} +9 -7
- package/dist/{mistral-conversations-qhr84ph3.js → mistral-conversations-zx0kn554.js} +24 -18
- package/dist/{node-x1g4v0pq.js → node-5qtycf6a.js} +16 -11
- package/dist/{oauth-refresh-sweep-q0t3bxre.js → oauth-refresh-sweep-5fwa7th2.js} +7 -5
- package/dist/{onboard-br5j1kch.js → onboard-17sv0f51.js} +103 -35
- package/dist/{openai-codex-responses-wy6a43wd.js → openai-codex-responses-4vjqzvjp.js} +33 -27
- package/dist/{openai-completions-32rdwmze.js → openai-completions-pxsmym7g.js} +52 -64
- package/dist/{openai-responses-6xwf7bzg.js → openai-responses-tmn0rqp0.js} +23 -24
- package/dist/{opencode-adapter-28axqa09.js → opencode-adapter-qbmv4tpy.js} +6 -6
- package/dist/{otel-impl-vdqge2nt.js → otel-impl-srjy4be4.js} +4 -4
- package/dist/{pi-messages-b1mbr6gp.js → pi-messages-txpjj39q.js} +3 -3
- package/dist/pi-mono-adapter-946a0sdd.js +1316 -0
- package/dist/{pricing-refresh-hb3691fd.js → pricing-refresh-vetcm563.js} +8 -6
- package/dist/{rbac-roles-jh280k9g.js → rbac-roles-cfzgr6r1.js} +8 -6
- package/dist/{rbac-roles-t78xt39b.js → rbac-roles-cmxaddmy.js} +7 -5
- package/dist/{render-v2-7p8r2ymg.js → render-v2-f9hzff72.js} +9 -6
- package/dist/{seed-pricing-hf889enh.js → seed-pricing-jggk6rsy.js} +7 -5
- package/dist/{setup-w6mb03jv.js → setup-8mfceb9t.js} +4 -5
- package/dist/virtual-modules-ax661xp0.js +54 -0
- package/dist/{work-objects-nt8gy1kj.js → work-objects-vdsdcczj.js} +32 -28
- package/dist/{worker-dwy617t0.js → worker-cd0nhyv1.js} +44 -39
- package/openapi.json +36 -14
- package/package.json +6 -6
- package/src/be/automation-preflight.ts +6 -4
- package/src/be/extensions/db.ts +35 -4
- package/src/be/models-catalog.ts +2 -0
- package/src/be/modelsdev-cache.json +213 -0
- package/src/be/rbac-audit.ts +2 -0
- package/src/be/seed-pricing.ts +3 -1
- package/src/be/swarm-config-guard.ts +1 -0
- package/src/commands/onboard/compose-generator.ts +6 -1
- package/src/commands/onboard/env-generator.ts +6 -1
- package/src/commands/onboard/manifest.ts +1 -0
- package/src/commands/onboard/steps/integration-slack.tsx +56 -16
- package/src/commands/onboard/steps/review.tsx +5 -0
- package/src/commands/onboard/types.ts +6 -0
- package/src/commands/onboard.tsx +5 -1
- package/src/commands/provider-credentials.ts +14 -2
- package/src/extensions/lifecycle.ts +15 -21
- package/src/http/agents.ts +2 -2
- package/src/http/config.ts +1 -1
- package/src/http/core.ts +5 -3
- package/src/http/extensions.ts +108 -34
- package/src/http/status.ts +22 -10
- package/src/prompts/base-prompt.ts +15 -7
- package/src/providers/claude-managed-models.ts +8 -0
- package/src/providers/codex-models.ts +15 -1
- package/src/providers/dsh-adapter.ts +248 -0
- package/src/providers/index.ts +5 -1
- package/src/providers/modelsdev-reasoning.json +50 -0
- package/src/rbac/legacy-policy.ts +15 -1
- package/src/rbac/types.ts +2 -0
- package/src/server.ts +7 -1
- package/src/slack/app.ts +32 -10
- package/src/slack/config.ts +29 -0
- package/src/telemetry.ts +2 -3
- package/src/tests/agents-harness-provider.test.ts +19 -0
- package/src/tests/agents-list-model-display.test.ts +60 -1
- package/src/tests/base-prompt.test.ts +25 -0
- package/src/tests/claude-managed-adapter.test.ts +6 -0
- package/src/tests/codex-gpt6-release.test.ts +97 -0
- package/src/tests/config-api-only-keys.test.ts +9 -0
- package/src/tests/context-window.test.ts +1 -0
- package/src/tests/dsh-adapter.test.ts +276 -0
- package/src/tests/e2e-nightly-report.test.ts +3 -3
- package/src/tests/e2e-redact.test.ts +2 -0
- package/src/tests/env-flag.test.ts +6 -0
- package/src/tests/extensions-db.test.ts +41 -0
- package/src/tests/extensions-http.test.ts +148 -4
- package/src/tests/extensions-lifecycle.test.ts +18 -0
- package/src/tests/extensions-mcp-tools.test.ts +9 -5
- package/src/tests/internal-ai/complete-structured.test.ts +32 -9
- package/src/tests/internal-ai/credentials.test.ts +4 -4
- package/src/tests/internal-ai/models.test.ts +20 -0
- package/src/tests/migration-046-budgets.test.ts +2 -0
- package/src/tests/model-control.test.ts +2 -2
- package/src/tests/onboard-compose.test.ts +14 -0
- package/src/tests/onboard-env.test.ts +17 -0
- package/src/tests/onboard-manifest.test.ts +12 -0
- package/src/tests/opus-5-5-registry.test.ts +48 -0
- package/src/tests/pricing-refresh.test.ts +1 -1
- package/src/tests/pricing-routes.test.ts +15 -3
- package/src/tests/provider-registration.test.ts +5 -2
- package/src/tests/rbac-admission-e2e.test.ts +54 -0
- package/src/tests/rbac-e2e-helpers.ts +2 -0
- package/src/tests/rbac-engine.test.ts +32 -0
- package/src/tests/rbac-wire-e2e.test.ts +33 -0
- package/src/tests/reasoning-effort.test.ts +8 -0
- package/src/tests/reload-config.test.ts +33 -0
- package/src/tests/session-costs-model-key-normalize.test.ts +1 -0
- package/src/tests/slack-config.test.ts +136 -0
- package/src/tests/slack-mode-lifecycle.test.ts +69 -0
- package/src/tests/status.test.ts +22 -2
- package/src/tests/task-tool-preload-mcp.test.ts +3 -1
- package/src/tests/telemetry-init.test.ts +18 -0
- package/src/tests/workflow-llm.test.ts +3 -3
- package/src/tools/extension-common.ts +4 -0
- package/src/tools/extension-install.ts +1 -1
- package/src/tools/extension-list.ts +4 -3
- package/src/types.ts +17 -8
- package/src/utils/context-window.ts +1 -0
- package/src/utils/credentials.ts +8 -0
- package/src/utils/internal-ai/complete-structured.ts +8 -0
- package/src/utils/internal-ai/models.ts +5 -5
- package/templates/schedules/daily-status-report/content.md +25 -12
- package/templates/schedules/daily-workflow-health-audit/content.md +1 -1
- package/templates/skills/swarm-extensions/content.md +9 -5
- package/dist/cli-4wppfkcm.js +0 -16384
- package/dist/cli-55qrx3q8.js +0 -6041
- package/dist/cli-cg4vnyh4.js +0 -305
- package/dist/cli-jyetr64j.js +0 -52
- package/dist/cli-pp9ax9pa.js +0 -520
- package/dist/cli-qa66qaf0.js +0 -6076
- package/dist/cli-qghpvca2.js +0 -590
- package/dist/cli-rembwgt8.js +0 -861
- package/dist/cli-tcvj7j2r.js +0 -1971
- package/dist/cli-vfcth11k.js +0 -36
- package/dist/cli-w1d1bgkk.js +0 -1422
- package/dist/cli-y6x0gqtg.js +0 -5977
- package/dist/es5-tj3tn4jj.js +0 -844
- package/dist/index-1kq5hw2p.js +0 -467
- package/dist/index-1p8wdstt.js +0 -7
- package/dist/index-8fdjzb2f.js +0 -100
- package/dist/index-bxmwzbgw.js +0 -365
- package/dist/index-nzerxd5z.js +0 -7
- package/dist/index-pyymnzat.js +0 -1168
- package/dist/index-qv6atbab.js +0 -619
- package/dist/index-rja32qa7.js +0 -801
- package/dist/index-tzg5srfp.js +0 -211
- package/dist/index-vhncw983.js +0 -90
- package/dist/index-xk036zsk.js +0 -859
- package/dist/index-zyazbzcb.js +0 -6
- package/dist/{claude-managed-setup-48dwg9bv.js → claude-managed-setup-f5pmsyrp.js} +3 -3
|
@@ -271,7 +271,7 @@ var sleep = (ms, signal) => new Promise((resolve) => {
|
|
|
271
271
|
});
|
|
272
272
|
|
|
273
273
|
// node_modules/@earendil-works/pi-ai/node_modules/@anthropic-ai/sdk/version.mjs
|
|
274
|
-
var VERSION = "0.
|
|
274
|
+
var VERSION = "0.124.0";
|
|
275
275
|
|
|
276
276
|
// node_modules/@earendil-works/pi-ai/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs
|
|
277
277
|
var isRunningInBrowser = () => {
|
|
@@ -1919,8 +1919,8 @@ async function* iterSSEChunks(iterator) {
|
|
|
1919
1919
|
data = newData;
|
|
1920
1920
|
let patternIndex;
|
|
1921
1921
|
while ((patternIndex = findDoubleNewlineIndex(data)) !== -1) {
|
|
1922
|
-
yield data.
|
|
1923
|
-
data = data.
|
|
1922
|
+
yield data.subarray(0, patternIndex);
|
|
1923
|
+
data = data.subarray(patternIndex);
|
|
1924
1924
|
}
|
|
1925
1925
|
}
|
|
1926
1926
|
if (data.length > 0) {
|
|
@@ -2600,22 +2600,28 @@ var path = /* @__PURE__ */ createPathTagFunction(encodeURIPath);
|
|
|
2600
2600
|
// node_modules/@earendil-works/pi-ai/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.mjs
|
|
2601
2601
|
class DeploymentRuns extends APIResource {
|
|
2602
2602
|
retrieve(deploymentRunID, params = {}, options) {
|
|
2603
|
-
const { betas } = params ?? {};
|
|
2603
|
+
const { betas, workspace_id } = params ?? {};
|
|
2604
2604
|
return this._client.get(path`/v1/deployment_runs/${deploymentRunID}?beta=true`, {
|
|
2605
2605
|
...options,
|
|
2606
2606
|
headers: buildHeaders([
|
|
2607
|
-
{
|
|
2607
|
+
{
|
|
2608
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
2609
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
2610
|
+
},
|
|
2608
2611
|
options?.headers
|
|
2609
2612
|
])
|
|
2610
2613
|
});
|
|
2611
2614
|
}
|
|
2612
2615
|
list(params = {}, options) {
|
|
2613
|
-
const { betas, ...query2 } = params ?? {};
|
|
2616
|
+
const { betas, workspace_id, ...query2 } = params ?? {};
|
|
2614
2617
|
return this._client.getAPIList("/v1/deployment_runs?beta=true", PageCursor, {
|
|
2615
2618
|
query: query2,
|
|
2616
2619
|
...options,
|
|
2617
2620
|
headers: buildHeaders([
|
|
2618
|
-
{
|
|
2621
|
+
{
|
|
2622
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
2623
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
2624
|
+
},
|
|
2619
2625
|
options?.headers
|
|
2620
2626
|
])
|
|
2621
2627
|
});
|
|
@@ -2625,84 +2631,108 @@ class DeploymentRuns extends APIResource {
|
|
|
2625
2631
|
// node_modules/@earendil-works/pi-ai/node_modules/@anthropic-ai/sdk/resources/beta/deployments.mjs
|
|
2626
2632
|
class Deployments extends APIResource {
|
|
2627
2633
|
create(params, options) {
|
|
2628
|
-
const { betas, ...body } = params;
|
|
2634
|
+
const { betas, workspace_id, ...body } = params;
|
|
2629
2635
|
return this._client.post("/v1/deployments?beta=true", {
|
|
2630
2636
|
body,
|
|
2631
2637
|
...options,
|
|
2632
2638
|
headers: buildHeaders([
|
|
2633
|
-
{
|
|
2639
|
+
{
|
|
2640
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
2641
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
2642
|
+
},
|
|
2634
2643
|
options?.headers
|
|
2635
2644
|
])
|
|
2636
2645
|
});
|
|
2637
2646
|
}
|
|
2638
2647
|
retrieve(deploymentID, params = {}, options) {
|
|
2639
|
-
const { betas } = params ?? {};
|
|
2648
|
+
const { betas, workspace_id } = params ?? {};
|
|
2640
2649
|
return this._client.get(path`/v1/deployments/${deploymentID}?beta=true`, {
|
|
2641
2650
|
...options,
|
|
2642
2651
|
headers: buildHeaders([
|
|
2643
|
-
{
|
|
2652
|
+
{
|
|
2653
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
2654
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
2655
|
+
},
|
|
2644
2656
|
options?.headers
|
|
2645
2657
|
])
|
|
2646
2658
|
});
|
|
2647
2659
|
}
|
|
2648
2660
|
update(deploymentID, params, options) {
|
|
2649
|
-
const { betas, ...body } = params;
|
|
2661
|
+
const { betas, workspace_id, ...body } = params;
|
|
2650
2662
|
return this._client.post(path`/v1/deployments/${deploymentID}?beta=true`, {
|
|
2651
2663
|
body,
|
|
2652
2664
|
...options,
|
|
2653
2665
|
headers: buildHeaders([
|
|
2654
|
-
{
|
|
2666
|
+
{
|
|
2667
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
2668
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
2669
|
+
},
|
|
2655
2670
|
options?.headers
|
|
2656
2671
|
])
|
|
2657
2672
|
});
|
|
2658
2673
|
}
|
|
2659
2674
|
list(params = {}, options) {
|
|
2660
|
-
const { betas, ...query2 } = params ?? {};
|
|
2675
|
+
const { betas, workspace_id, ...query2 } = params ?? {};
|
|
2661
2676
|
return this._client.getAPIList("/v1/deployments?beta=true", PageCursor, {
|
|
2662
2677
|
query: query2,
|
|
2663
2678
|
...options,
|
|
2664
2679
|
headers: buildHeaders([
|
|
2665
|
-
{
|
|
2680
|
+
{
|
|
2681
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
2682
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
2683
|
+
},
|
|
2666
2684
|
options?.headers
|
|
2667
2685
|
])
|
|
2668
2686
|
});
|
|
2669
2687
|
}
|
|
2670
2688
|
archive(deploymentID, params = {}, options) {
|
|
2671
|
-
const { betas } = params ?? {};
|
|
2689
|
+
const { betas, workspace_id } = params ?? {};
|
|
2672
2690
|
return this._client.post(path`/v1/deployments/${deploymentID}/archive?beta=true`, {
|
|
2673
2691
|
...options,
|
|
2674
2692
|
headers: buildHeaders([
|
|
2675
|
-
{
|
|
2693
|
+
{
|
|
2694
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
2695
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
2696
|
+
},
|
|
2676
2697
|
options?.headers
|
|
2677
2698
|
])
|
|
2678
2699
|
});
|
|
2679
2700
|
}
|
|
2680
2701
|
pause(deploymentID, params = {}, options) {
|
|
2681
|
-
const { betas } = params ?? {};
|
|
2702
|
+
const { betas, workspace_id } = params ?? {};
|
|
2682
2703
|
return this._client.post(path`/v1/deployments/${deploymentID}/pause?beta=true`, {
|
|
2683
2704
|
...options,
|
|
2684
2705
|
headers: buildHeaders([
|
|
2685
|
-
{
|
|
2706
|
+
{
|
|
2707
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
2708
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
2709
|
+
},
|
|
2686
2710
|
options?.headers
|
|
2687
2711
|
])
|
|
2688
2712
|
});
|
|
2689
2713
|
}
|
|
2690
2714
|
run(deploymentID, params = {}, options) {
|
|
2691
|
-
const { betas } = params ?? {};
|
|
2715
|
+
const { betas, workspace_id } = params ?? {};
|
|
2692
2716
|
return this._client.post(path`/v1/deployments/${deploymentID}/run?beta=true`, {
|
|
2693
2717
|
...options,
|
|
2694
2718
|
headers: buildHeaders([
|
|
2695
|
-
{
|
|
2719
|
+
{
|
|
2720
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
2721
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
2722
|
+
},
|
|
2696
2723
|
options?.headers
|
|
2697
2724
|
])
|
|
2698
2725
|
});
|
|
2699
2726
|
}
|
|
2700
2727
|
unpause(deploymentID, params = {}, options) {
|
|
2701
|
-
const { betas } = params ?? {};
|
|
2728
|
+
const { betas, workspace_id } = params ?? {};
|
|
2702
2729
|
return this._client.post(path`/v1/deployments/${deploymentID}/unpause?beta=true`, {
|
|
2703
2730
|
...options,
|
|
2704
2731
|
headers: buildHeaders([
|
|
2705
|
-
{
|
|
2732
|
+
{
|
|
2733
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
2734
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
2735
|
+
},
|
|
2706
2736
|
options?.headers
|
|
2707
2737
|
])
|
|
2708
2738
|
});
|
|
@@ -2712,53 +2742,68 @@ class Deployments extends APIResource {
|
|
|
2712
2742
|
// node_modules/@earendil-works/pi-ai/node_modules/@anthropic-ai/sdk/resources/beta/dreams.mjs
|
|
2713
2743
|
class Dreams extends APIResource {
|
|
2714
2744
|
create(params, options) {
|
|
2715
|
-
const { betas, ...body } = params;
|
|
2745
|
+
const { betas, workspace_id, ...body } = params;
|
|
2716
2746
|
return this._client.post("/v1/dreams?beta=true", {
|
|
2717
2747
|
body,
|
|
2718
2748
|
...options,
|
|
2719
2749
|
headers: buildHeaders([
|
|
2720
|
-
{
|
|
2750
|
+
{
|
|
2751
|
+
"anthropic-beta": [...betas ?? [], "dreaming-2026-04-21"].toString(),
|
|
2752
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
2753
|
+
},
|
|
2721
2754
|
options?.headers
|
|
2722
2755
|
])
|
|
2723
2756
|
});
|
|
2724
2757
|
}
|
|
2725
2758
|
retrieve(dreamID, params = {}, options) {
|
|
2726
|
-
const { betas } = params ?? {};
|
|
2759
|
+
const { betas, workspace_id } = params ?? {};
|
|
2727
2760
|
return this._client.get(path`/v1/dreams/${dreamID}?beta=true`, {
|
|
2728
2761
|
...options,
|
|
2729
2762
|
headers: buildHeaders([
|
|
2730
|
-
{
|
|
2763
|
+
{
|
|
2764
|
+
"anthropic-beta": [...betas ?? [], "dreaming-2026-04-21"].toString(),
|
|
2765
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
2766
|
+
},
|
|
2731
2767
|
options?.headers
|
|
2732
2768
|
])
|
|
2733
2769
|
});
|
|
2734
2770
|
}
|
|
2735
2771
|
list(params = {}, options) {
|
|
2736
|
-
const { betas, ...query2 } = params ?? {};
|
|
2772
|
+
const { betas, workspace_id, ...query2 } = params ?? {};
|
|
2737
2773
|
return this._client.getAPIList("/v1/dreams?beta=true", PageCursor, {
|
|
2738
2774
|
query: query2,
|
|
2739
2775
|
...options,
|
|
2740
2776
|
headers: buildHeaders([
|
|
2741
|
-
{
|
|
2777
|
+
{
|
|
2778
|
+
"anthropic-beta": [...betas ?? [], "dreaming-2026-04-21"].toString(),
|
|
2779
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
2780
|
+
},
|
|
2742
2781
|
options?.headers
|
|
2743
2782
|
])
|
|
2744
2783
|
});
|
|
2745
2784
|
}
|
|
2746
2785
|
archive(dreamID, params = {}, options) {
|
|
2747
|
-
const { betas } = params ?? {};
|
|
2786
|
+
const { betas, workspace_id } = params ?? {};
|
|
2748
2787
|
return this._client.post(path`/v1/dreams/${dreamID}/archive?beta=true`, {
|
|
2749
2788
|
...options,
|
|
2750
2789
|
headers: buildHeaders([
|
|
2751
|
-
{
|
|
2790
|
+
{
|
|
2791
|
+
"anthropic-beta": [...betas ?? [], "dreaming-2026-04-21"].toString(),
|
|
2792
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
2793
|
+
},
|
|
2752
2794
|
options?.headers
|
|
2753
2795
|
])
|
|
2754
2796
|
});
|
|
2755
2797
|
}
|
|
2756
2798
|
cancel(dreamID, params = {}, options) {
|
|
2757
|
-
const { betas } = params ?? {};
|
|
2799
|
+
const { betas, workspace_id } = params ?? {};
|
|
2758
2800
|
return this._client.post(path`/v1/dreams/${dreamID}/cancel?beta=true`, {
|
|
2759
2801
|
...options,
|
|
2760
2802
|
headers: buildHeaders([
|
|
2761
|
-
{
|
|
2803
|
+
{
|
|
2804
|
+
"anthropic-beta": [...betas ?? [], "dreaming-2026-04-21"].toString(),
|
|
2805
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
2806
|
+
},
|
|
2762
2807
|
options?.headers
|
|
2763
2808
|
])
|
|
2764
2809
|
});
|
|
@@ -2817,34 +2862,41 @@ function stainlessHelperHeaderFromFile(file) {
|
|
|
2817
2862
|
// node_modules/@earendil-works/pi-ai/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs
|
|
2818
2863
|
class Files extends APIResource {
|
|
2819
2864
|
list(params = {}, options) {
|
|
2820
|
-
const { betas, ...query2 } = params ?? {};
|
|
2865
|
+
const { betas, workspace_id, ...query2 } = params ?? {};
|
|
2821
2866
|
return this._client.getAPIList("/v1/files?beta=true", PageCursor, {
|
|
2822
2867
|
query: query2,
|
|
2823
2868
|
...options,
|
|
2824
2869
|
headers: buildHeaders([
|
|
2825
|
-
{
|
|
2870
|
+
{
|
|
2871
|
+
...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined,
|
|
2872
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
2873
|
+
},
|
|
2826
2874
|
options?.headers
|
|
2827
2875
|
])
|
|
2828
2876
|
});
|
|
2829
2877
|
}
|
|
2830
2878
|
delete(fileID, params = {}, options) {
|
|
2831
|
-
const { betas } = params ?? {};
|
|
2879
|
+
const { betas, workspace_id } = params ?? {};
|
|
2832
2880
|
return this._client.delete(path`/v1/files/${fileID}?beta=true`, {
|
|
2833
2881
|
...options,
|
|
2834
2882
|
headers: buildHeaders([
|
|
2835
|
-
{
|
|
2883
|
+
{
|
|
2884
|
+
...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined,
|
|
2885
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
2886
|
+
},
|
|
2836
2887
|
options?.headers
|
|
2837
2888
|
])
|
|
2838
2889
|
});
|
|
2839
2890
|
}
|
|
2840
2891
|
download(fileID, params = {}, options) {
|
|
2841
|
-
const { betas } = params ?? {};
|
|
2892
|
+
const { betas, workspace_id } = params ?? {};
|
|
2842
2893
|
return this._client.get(path`/v1/files/${fileID}/content?beta=true`, {
|
|
2843
2894
|
...options,
|
|
2844
2895
|
headers: buildHeaders([
|
|
2845
2896
|
{
|
|
2846
2897
|
Accept: "application/binary",
|
|
2847
|
-
...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined
|
|
2898
|
+
...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined,
|
|
2899
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
2848
2900
|
},
|
|
2849
2901
|
options?.headers
|
|
2850
2902
|
]),
|
|
@@ -2852,22 +2904,28 @@ class Files extends APIResource {
|
|
|
2852
2904
|
});
|
|
2853
2905
|
}
|
|
2854
2906
|
retrieveMetadata(fileID, params = {}, options) {
|
|
2855
|
-
const { betas } = params ?? {};
|
|
2907
|
+
const { betas, workspace_id } = params ?? {};
|
|
2856
2908
|
return this._client.get(path`/v1/files/${fileID}?beta=true`, {
|
|
2857
2909
|
...options,
|
|
2858
2910
|
headers: buildHeaders([
|
|
2859
|
-
{
|
|
2911
|
+
{
|
|
2912
|
+
...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined,
|
|
2913
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
2914
|
+
},
|
|
2860
2915
|
options?.headers
|
|
2861
2916
|
])
|
|
2862
2917
|
});
|
|
2863
2918
|
}
|
|
2864
2919
|
upload(params, options) {
|
|
2865
|
-
const { betas, ...body } = params;
|
|
2920
|
+
const { betas, workspace_id, ...body } = params;
|
|
2866
2921
|
return this._client.post("/v1/files?beta=true", multipartFormRequestOptions({
|
|
2867
2922
|
body,
|
|
2868
2923
|
...options,
|
|
2869
2924
|
headers: buildHeaders([
|
|
2870
|
-
{
|
|
2925
|
+
{
|
|
2926
|
+
...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined,
|
|
2927
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
2928
|
+
},
|
|
2871
2929
|
stainlessHelperHeaderFromFile(body.file),
|
|
2872
2930
|
options?.headers
|
|
2873
2931
|
])
|
|
@@ -2878,22 +2936,28 @@ class Files extends APIResource {
|
|
|
2878
2936
|
// node_modules/@earendil-works/pi-ai/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs
|
|
2879
2937
|
class Models extends APIResource {
|
|
2880
2938
|
retrieve(modelID, params = {}, options) {
|
|
2881
|
-
const { betas } = params ?? {};
|
|
2939
|
+
const { betas, workspace_id } = params ?? {};
|
|
2882
2940
|
return this._client.get(path`/v1/models/${modelID}?beta=true`, {
|
|
2883
2941
|
...options,
|
|
2884
2942
|
headers: buildHeaders([
|
|
2885
|
-
{
|
|
2943
|
+
{
|
|
2944
|
+
...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined,
|
|
2945
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
2946
|
+
},
|
|
2886
2947
|
options?.headers
|
|
2887
2948
|
])
|
|
2888
2949
|
});
|
|
2889
2950
|
}
|
|
2890
2951
|
list(params = {}, options) {
|
|
2891
|
-
const { betas, ...query2 } = params ?? {};
|
|
2952
|
+
const { betas, workspace_id, ...query2 } = params ?? {};
|
|
2892
2953
|
return this._client.getAPIList("/v1/models?beta=true", Page, {
|
|
2893
2954
|
query: query2,
|
|
2894
2955
|
...options,
|
|
2895
2956
|
headers: buildHeaders([
|
|
2896
|
-
{
|
|
2957
|
+
{
|
|
2958
|
+
...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined,
|
|
2959
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
2960
|
+
},
|
|
2897
2961
|
options?.headers
|
|
2898
2962
|
])
|
|
2899
2963
|
});
|
|
@@ -2980,12 +3044,15 @@ class Webhooks extends APIResource {
|
|
|
2980
3044
|
// node_modules/@earendil-works/pi-ai/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.mjs
|
|
2981
3045
|
class Versions extends APIResource {
|
|
2982
3046
|
list(agentID, params = {}, options) {
|
|
2983
|
-
const { betas, ...query2 } = params ?? {};
|
|
3047
|
+
const { betas, workspace_id, ...query2 } = params ?? {};
|
|
2984
3048
|
return this._client.getAPIList(path`/v1/agents/${agentID}/versions?beta=true`, PageCursor, {
|
|
2985
3049
|
query: query2,
|
|
2986
3050
|
...options,
|
|
2987
3051
|
headers: buildHeaders([
|
|
2988
|
-
{
|
|
3052
|
+
{
|
|
3053
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
3054
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
3055
|
+
},
|
|
2989
3056
|
options?.headers
|
|
2990
3057
|
])
|
|
2991
3058
|
});
|
|
@@ -2999,55 +3066,70 @@ class Agents extends APIResource {
|
|
|
2999
3066
|
this.versions = new Versions(this._client);
|
|
3000
3067
|
}
|
|
3001
3068
|
create(params, options) {
|
|
3002
|
-
const { betas, ...body } = params;
|
|
3069
|
+
const { betas, workspace_id, ...body } = params;
|
|
3003
3070
|
return this._client.post("/v1/agents?beta=true", {
|
|
3004
3071
|
body,
|
|
3005
3072
|
...options,
|
|
3006
3073
|
headers: buildHeaders([
|
|
3007
|
-
{
|
|
3074
|
+
{
|
|
3075
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
3076
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
3077
|
+
},
|
|
3008
3078
|
options?.headers
|
|
3009
3079
|
])
|
|
3010
3080
|
});
|
|
3011
3081
|
}
|
|
3012
3082
|
retrieve(agentID, params = {}, options) {
|
|
3013
|
-
const { betas, ...query2 } = params ?? {};
|
|
3083
|
+
const { betas, workspace_id, ...query2 } = params ?? {};
|
|
3014
3084
|
return this._client.get(path`/v1/agents/${agentID}?beta=true`, {
|
|
3015
3085
|
query: query2,
|
|
3016
3086
|
...options,
|
|
3017
3087
|
headers: buildHeaders([
|
|
3018
|
-
{
|
|
3088
|
+
{
|
|
3089
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
3090
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
3091
|
+
},
|
|
3019
3092
|
options?.headers
|
|
3020
3093
|
])
|
|
3021
3094
|
});
|
|
3022
3095
|
}
|
|
3023
3096
|
update(agentID, params, options) {
|
|
3024
|
-
const { betas, ...body } = params;
|
|
3097
|
+
const { betas, workspace_id, ...body } = params;
|
|
3025
3098
|
return this._client.post(path`/v1/agents/${agentID}?beta=true`, {
|
|
3026
3099
|
body,
|
|
3027
3100
|
...options,
|
|
3028
3101
|
headers: buildHeaders([
|
|
3029
|
-
{
|
|
3102
|
+
{
|
|
3103
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
3104
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
3105
|
+
},
|
|
3030
3106
|
options?.headers
|
|
3031
3107
|
])
|
|
3032
3108
|
});
|
|
3033
3109
|
}
|
|
3034
3110
|
list(params = {}, options) {
|
|
3035
|
-
const { betas, ...query2 } = params ?? {};
|
|
3111
|
+
const { betas, workspace_id, ...query2 } = params ?? {};
|
|
3036
3112
|
return this._client.getAPIList("/v1/agents?beta=true", PageCursor, {
|
|
3037
3113
|
query: query2,
|
|
3038
3114
|
...options,
|
|
3039
3115
|
headers: buildHeaders([
|
|
3040
|
-
{
|
|
3116
|
+
{
|
|
3117
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
3118
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
3119
|
+
},
|
|
3041
3120
|
options?.headers
|
|
3042
3121
|
])
|
|
3043
3122
|
});
|
|
3044
3123
|
}
|
|
3045
3124
|
archive(agentID, params = {}, options) {
|
|
3046
|
-
const { betas } = params ?? {};
|
|
3125
|
+
const { betas, workspace_id } = params ?? {};
|
|
3047
3126
|
return this._client.post(path`/v1/agents/${agentID}/archive?beta=true`, {
|
|
3048
3127
|
...options,
|
|
3049
3128
|
headers: buildHeaders([
|
|
3050
|
-
{
|
|
3129
|
+
{
|
|
3130
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
3131
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
3132
|
+
},
|
|
3051
3133
|
options?.headers
|
|
3052
3134
|
])
|
|
3053
3135
|
});
|
|
@@ -3966,7 +4048,7 @@ _EnvironmentWorker_signal = new WeakMap, _EnvironmentWorker_instances = new Weak
|
|
|
3966
4048
|
const ctrl = new AbortController;
|
|
3967
4049
|
const detachExternal = linkAbort(externalSignal, ctrl);
|
|
3968
4050
|
const lease = new Lease(ctrl);
|
|
3969
|
-
const agentToolset = await import("./node-
|
|
4051
|
+
const agentToolset = await import("./node-5qtycf6a.js");
|
|
3970
4052
|
let leaseTtlMs;
|
|
3971
4053
|
let runner;
|
|
3972
4054
|
const heartbeatPromise = heartbeatLoop(sessionClient, work, lease, log2, this.requestOptions, (ttlMs) => {
|
|
@@ -4187,22 +4269,28 @@ async function heartbeatLoop(client, work, lease, logger, requestOptions, onLeas
|
|
|
4187
4269
|
// node_modules/@earendil-works/pi-ai/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.mjs
|
|
4188
4270
|
class Work extends APIResource {
|
|
4189
4271
|
retrieve(workID, params, options) {
|
|
4190
|
-
const { environment_id, betas } = params;
|
|
4272
|
+
const { environment_id, betas, workspace_id } = params;
|
|
4191
4273
|
return this._client.get(path`/v1/environments/${environment_id}/work/${workID}?beta=true`, {
|
|
4192
4274
|
...options,
|
|
4193
4275
|
headers: buildHeaders([
|
|
4194
|
-
{
|
|
4276
|
+
{
|
|
4277
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
4278
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4279
|
+
},
|
|
4195
4280
|
options?.headers
|
|
4196
4281
|
])
|
|
4197
4282
|
});
|
|
4198
4283
|
}
|
|
4199
4284
|
update(workID, params, options) {
|
|
4200
|
-
const { environment_id, betas, ...body } = params;
|
|
4285
|
+
const { environment_id, betas, workspace_id, ...body } = params;
|
|
4201
4286
|
return this._client.post(path`/v1/environments/${environment_id}/work/${workID}?beta=true`, {
|
|
4202
4287
|
body,
|
|
4203
4288
|
...options,
|
|
4204
4289
|
headers: buildHeaders([
|
|
4205
|
-
{
|
|
4290
|
+
{
|
|
4291
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
4292
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4293
|
+
},
|
|
4206
4294
|
options?.headers
|
|
4207
4295
|
])
|
|
4208
4296
|
});
|
|
@@ -4254,22 +4342,28 @@ class Work extends APIResource {
|
|
|
4254
4342
|
});
|
|
4255
4343
|
}
|
|
4256
4344
|
stats(environmentID, params = {}, options) {
|
|
4257
|
-
const { betas } = params ?? {};
|
|
4345
|
+
const { betas, workspace_id } = params ?? {};
|
|
4258
4346
|
return this._client.get(path`/v1/environments/${environmentID}/work/stats?beta=true`, {
|
|
4259
4347
|
...options,
|
|
4260
4348
|
headers: buildHeaders([
|
|
4261
|
-
{
|
|
4349
|
+
{
|
|
4350
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
4351
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4352
|
+
},
|
|
4262
4353
|
options?.headers
|
|
4263
4354
|
])
|
|
4264
4355
|
});
|
|
4265
4356
|
}
|
|
4266
4357
|
stop(workID, params, options) {
|
|
4267
|
-
const { environment_id, betas, ...body } = params;
|
|
4358
|
+
const { environment_id, betas, workspace_id, ...body } = params;
|
|
4268
4359
|
return this._client.post(path`/v1/environments/${environment_id}/work/${workID}/stop?beta=true`, {
|
|
4269
4360
|
body,
|
|
4270
4361
|
...options,
|
|
4271
4362
|
headers: buildHeaders([
|
|
4272
|
-
{
|
|
4363
|
+
{
|
|
4364
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
4365
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4366
|
+
},
|
|
4273
4367
|
options?.headers
|
|
4274
4368
|
])
|
|
4275
4369
|
});
|
|
@@ -4291,64 +4385,82 @@ class Environments extends APIResource {
|
|
|
4291
4385
|
this.work = new Work(this._client);
|
|
4292
4386
|
}
|
|
4293
4387
|
create(params, options) {
|
|
4294
|
-
const { betas, ...body } = params;
|
|
4388
|
+
const { betas, workspace_id, ...body } = params;
|
|
4295
4389
|
return this._client.post("/v1/environments?beta=true", {
|
|
4296
4390
|
body,
|
|
4297
4391
|
...options,
|
|
4298
4392
|
headers: buildHeaders([
|
|
4299
|
-
{
|
|
4393
|
+
{
|
|
4394
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
4395
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4396
|
+
},
|
|
4300
4397
|
options?.headers
|
|
4301
4398
|
])
|
|
4302
4399
|
});
|
|
4303
4400
|
}
|
|
4304
4401
|
retrieve(environmentID, params = {}, options) {
|
|
4305
|
-
const { betas } = params ?? {};
|
|
4402
|
+
const { betas, workspace_id } = params ?? {};
|
|
4306
4403
|
return this._client.get(path`/v1/environments/${environmentID}?beta=true`, {
|
|
4307
4404
|
...options,
|
|
4308
4405
|
headers: buildHeaders([
|
|
4309
|
-
{
|
|
4406
|
+
{
|
|
4407
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
4408
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4409
|
+
},
|
|
4310
4410
|
options?.headers
|
|
4311
4411
|
])
|
|
4312
4412
|
});
|
|
4313
4413
|
}
|
|
4314
4414
|
update(environmentID, params, options) {
|
|
4315
|
-
const { betas, ...body } = params;
|
|
4415
|
+
const { betas, workspace_id, ...body } = params;
|
|
4316
4416
|
return this._client.post(path`/v1/environments/${environmentID}?beta=true`, {
|
|
4317
4417
|
body,
|
|
4318
4418
|
...options,
|
|
4319
4419
|
headers: buildHeaders([
|
|
4320
|
-
{
|
|
4420
|
+
{
|
|
4421
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
4422
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4423
|
+
},
|
|
4321
4424
|
options?.headers
|
|
4322
4425
|
])
|
|
4323
4426
|
});
|
|
4324
4427
|
}
|
|
4325
4428
|
list(params = {}, options) {
|
|
4326
|
-
const { betas, ...query2 } = params ?? {};
|
|
4429
|
+
const { betas, workspace_id, ...query2 } = params ?? {};
|
|
4327
4430
|
return this._client.getAPIList("/v1/environments?beta=true", PageCursor, {
|
|
4328
4431
|
query: query2,
|
|
4329
4432
|
...options,
|
|
4330
4433
|
headers: buildHeaders([
|
|
4331
|
-
{
|
|
4434
|
+
{
|
|
4435
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
4436
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4437
|
+
},
|
|
4332
4438
|
options?.headers
|
|
4333
4439
|
])
|
|
4334
4440
|
});
|
|
4335
4441
|
}
|
|
4336
4442
|
delete(environmentID, params = {}, options) {
|
|
4337
|
-
const { betas } = params ?? {};
|
|
4443
|
+
const { betas, workspace_id } = params ?? {};
|
|
4338
4444
|
return this._client.delete(path`/v1/environments/${environmentID}?beta=true`, {
|
|
4339
4445
|
...options,
|
|
4340
4446
|
headers: buildHeaders([
|
|
4341
|
-
{
|
|
4447
|
+
{
|
|
4448
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
4449
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4450
|
+
},
|
|
4342
4451
|
options?.headers
|
|
4343
4452
|
])
|
|
4344
4453
|
});
|
|
4345
4454
|
}
|
|
4346
4455
|
archive(environmentID, params = {}, options) {
|
|
4347
|
-
const { betas } = params ?? {};
|
|
4456
|
+
const { betas, workspace_id } = params ?? {};
|
|
4348
4457
|
return this._client.post(path`/v1/environments/${environmentID}/archive?beta=true`, {
|
|
4349
4458
|
...options,
|
|
4350
4459
|
headers: buildHeaders([
|
|
4351
|
-
{
|
|
4460
|
+
{
|
|
4461
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
4462
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4463
|
+
},
|
|
4352
4464
|
options?.headers
|
|
4353
4465
|
])
|
|
4354
4466
|
});
|
|
@@ -4359,58 +4471,73 @@ Environments.Work = Work;
|
|
|
4359
4471
|
// node_modules/@earendil-works/pi-ai/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs
|
|
4360
4472
|
class Memories extends APIResource {
|
|
4361
4473
|
create(memoryStoreID, params, options) {
|
|
4362
|
-
const { view, betas, ...body } = params;
|
|
4474
|
+
const { view, betas, workspace_id, ...body } = params;
|
|
4363
4475
|
return this._client.post(path`/v1/memory_stores/${memoryStoreID}/memories?beta=true`, {
|
|
4364
4476
|
query: { view },
|
|
4365
4477
|
body,
|
|
4366
4478
|
...options,
|
|
4367
4479
|
headers: buildHeaders([
|
|
4368
|
-
{
|
|
4480
|
+
{
|
|
4481
|
+
"anthropic-beta": [...betas ?? [], "agent-memory-2026-07-22"].toString(),
|
|
4482
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4483
|
+
},
|
|
4369
4484
|
options?.headers
|
|
4370
4485
|
])
|
|
4371
4486
|
});
|
|
4372
4487
|
}
|
|
4373
4488
|
retrieve(memoryID, params, options) {
|
|
4374
|
-
const { memory_store_id, betas, ...query2 } = params;
|
|
4489
|
+
const { memory_store_id, betas, workspace_id, ...query2 } = params;
|
|
4375
4490
|
return this._client.get(path`/v1/memory_stores/${memory_store_id}/memories/${memoryID}?beta=true`, {
|
|
4376
4491
|
query: query2,
|
|
4377
4492
|
...options,
|
|
4378
4493
|
headers: buildHeaders([
|
|
4379
|
-
{
|
|
4494
|
+
{
|
|
4495
|
+
"anthropic-beta": [...betas ?? [], "agent-memory-2026-07-22"].toString(),
|
|
4496
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4497
|
+
},
|
|
4380
4498
|
options?.headers
|
|
4381
4499
|
])
|
|
4382
4500
|
});
|
|
4383
4501
|
}
|
|
4384
4502
|
update(memoryID, params, options) {
|
|
4385
|
-
const { memory_store_id, view, betas, ...body } = params;
|
|
4503
|
+
const { memory_store_id, view, betas, workspace_id, ...body } = params;
|
|
4386
4504
|
return this._client.post(path`/v1/memory_stores/${memory_store_id}/memories/${memoryID}?beta=true`, {
|
|
4387
4505
|
query: { view },
|
|
4388
4506
|
body,
|
|
4389
4507
|
...options,
|
|
4390
4508
|
headers: buildHeaders([
|
|
4391
|
-
{
|
|
4509
|
+
{
|
|
4510
|
+
"anthropic-beta": [...betas ?? [], "agent-memory-2026-07-22"].toString(),
|
|
4511
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4512
|
+
},
|
|
4392
4513
|
options?.headers
|
|
4393
4514
|
])
|
|
4394
4515
|
});
|
|
4395
4516
|
}
|
|
4396
4517
|
list(memoryStoreID, params = {}, options) {
|
|
4397
|
-
const { betas, ...query2 } = params ?? {};
|
|
4518
|
+
const { betas, workspace_id, ...query2 } = params ?? {};
|
|
4398
4519
|
return this._client.getAPIList(path`/v1/memory_stores/${memoryStoreID}/memories?beta=true`, PageCursor, {
|
|
4399
4520
|
query: query2,
|
|
4400
4521
|
...options,
|
|
4401
4522
|
headers: buildHeaders([
|
|
4402
|
-
{
|
|
4523
|
+
{
|
|
4524
|
+
"anthropic-beta": [...betas ?? [], "agent-memory-2026-07-22"].toString(),
|
|
4525
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4526
|
+
},
|
|
4403
4527
|
options?.headers
|
|
4404
4528
|
])
|
|
4405
4529
|
});
|
|
4406
4530
|
}
|
|
4407
4531
|
delete(memoryID, params, options) {
|
|
4408
|
-
const { memory_store_id, expected_content_sha256, betas } = params;
|
|
4532
|
+
const { memory_store_id, expected_content_sha256, betas, workspace_id } = params;
|
|
4409
4533
|
return this._client.delete(path`/v1/memory_stores/${memory_store_id}/memories/${memoryID}?beta=true`, {
|
|
4410
4534
|
query: { expected_content_sha256 },
|
|
4411
4535
|
...options,
|
|
4412
4536
|
headers: buildHeaders([
|
|
4413
|
-
{
|
|
4537
|
+
{
|
|
4538
|
+
"anthropic-beta": [...betas ?? [], "agent-memory-2026-07-22"].toString(),
|
|
4539
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4540
|
+
},
|
|
4414
4541
|
options?.headers
|
|
4415
4542
|
])
|
|
4416
4543
|
});
|
|
@@ -4420,33 +4547,42 @@ class Memories extends APIResource {
|
|
|
4420
4547
|
// node_modules/@earendil-works/pi-ai/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.mjs
|
|
4421
4548
|
class MemoryVersions extends APIResource {
|
|
4422
4549
|
retrieve(memoryVersionID, params, options) {
|
|
4423
|
-
const { memory_store_id, betas, ...query2 } = params;
|
|
4550
|
+
const { memory_store_id, betas, workspace_id, ...query2 } = params;
|
|
4424
4551
|
return this._client.get(path`/v1/memory_stores/${memory_store_id}/memory_versions/${memoryVersionID}?beta=true`, {
|
|
4425
4552
|
query: query2,
|
|
4426
4553
|
...options,
|
|
4427
4554
|
headers: buildHeaders([
|
|
4428
|
-
{
|
|
4555
|
+
{
|
|
4556
|
+
"anthropic-beta": [...betas ?? [], "agent-memory-2026-07-22"].toString(),
|
|
4557
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4558
|
+
},
|
|
4429
4559
|
options?.headers
|
|
4430
4560
|
])
|
|
4431
4561
|
});
|
|
4432
4562
|
}
|
|
4433
4563
|
list(memoryStoreID, params = {}, options) {
|
|
4434
|
-
const { betas, ...query2 } = params ?? {};
|
|
4564
|
+
const { betas, workspace_id, ...query2 } = params ?? {};
|
|
4435
4565
|
return this._client.getAPIList(path`/v1/memory_stores/${memoryStoreID}/memory_versions?beta=true`, PageCursor, {
|
|
4436
4566
|
query: query2,
|
|
4437
4567
|
...options,
|
|
4438
4568
|
headers: buildHeaders([
|
|
4439
|
-
{
|
|
4569
|
+
{
|
|
4570
|
+
"anthropic-beta": [...betas ?? [], "agent-memory-2026-07-22"].toString(),
|
|
4571
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4572
|
+
},
|
|
4440
4573
|
options?.headers
|
|
4441
4574
|
])
|
|
4442
4575
|
});
|
|
4443
4576
|
}
|
|
4444
4577
|
redact(memoryVersionID, params, options) {
|
|
4445
|
-
const { memory_store_id, betas } = params;
|
|
4578
|
+
const { memory_store_id, betas, workspace_id } = params;
|
|
4446
4579
|
return this._client.post(path`/v1/memory_stores/${memory_store_id}/memory_versions/${memoryVersionID}/redact?beta=true`, {
|
|
4447
4580
|
...options,
|
|
4448
4581
|
headers: buildHeaders([
|
|
4449
|
-
{
|
|
4582
|
+
{
|
|
4583
|
+
"anthropic-beta": [...betas ?? [], "agent-memory-2026-07-22"].toString(),
|
|
4584
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4585
|
+
},
|
|
4450
4586
|
options?.headers
|
|
4451
4587
|
])
|
|
4452
4588
|
});
|
|
@@ -4461,64 +4597,82 @@ class MemoryStores extends APIResource {
|
|
|
4461
4597
|
this.memoryVersions = new MemoryVersions(this._client);
|
|
4462
4598
|
}
|
|
4463
4599
|
create(params, options) {
|
|
4464
|
-
const { betas, ...body } = params;
|
|
4600
|
+
const { betas, workspace_id, ...body } = params;
|
|
4465
4601
|
return this._client.post("/v1/memory_stores?beta=true", {
|
|
4466
4602
|
body,
|
|
4467
4603
|
...options,
|
|
4468
4604
|
headers: buildHeaders([
|
|
4469
|
-
{
|
|
4605
|
+
{
|
|
4606
|
+
"anthropic-beta": [...betas ?? [], "agent-memory-2026-07-22"].toString(),
|
|
4607
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4608
|
+
},
|
|
4470
4609
|
options?.headers
|
|
4471
4610
|
])
|
|
4472
4611
|
});
|
|
4473
4612
|
}
|
|
4474
4613
|
retrieve(memoryStoreID, params = {}, options) {
|
|
4475
|
-
const { betas } = params ?? {};
|
|
4614
|
+
const { betas, workspace_id } = params ?? {};
|
|
4476
4615
|
return this._client.get(path`/v1/memory_stores/${memoryStoreID}?beta=true`, {
|
|
4477
4616
|
...options,
|
|
4478
4617
|
headers: buildHeaders([
|
|
4479
|
-
{
|
|
4618
|
+
{
|
|
4619
|
+
"anthropic-beta": [...betas ?? [], "agent-memory-2026-07-22"].toString(),
|
|
4620
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4621
|
+
},
|
|
4480
4622
|
options?.headers
|
|
4481
4623
|
])
|
|
4482
4624
|
});
|
|
4483
4625
|
}
|
|
4484
4626
|
update(memoryStoreID, params, options) {
|
|
4485
|
-
const { betas, ...body } = params;
|
|
4627
|
+
const { betas, workspace_id, ...body } = params;
|
|
4486
4628
|
return this._client.post(path`/v1/memory_stores/${memoryStoreID}?beta=true`, {
|
|
4487
4629
|
body,
|
|
4488
4630
|
...options,
|
|
4489
4631
|
headers: buildHeaders([
|
|
4490
|
-
{
|
|
4632
|
+
{
|
|
4633
|
+
"anthropic-beta": [...betas ?? [], "agent-memory-2026-07-22"].toString(),
|
|
4634
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4635
|
+
},
|
|
4491
4636
|
options?.headers
|
|
4492
4637
|
])
|
|
4493
4638
|
});
|
|
4494
4639
|
}
|
|
4495
4640
|
list(params = {}, options) {
|
|
4496
|
-
const { betas, ...query2 } = params ?? {};
|
|
4641
|
+
const { betas, workspace_id, ...query2 } = params ?? {};
|
|
4497
4642
|
return this._client.getAPIList("/v1/memory_stores?beta=true", PageCursor, {
|
|
4498
4643
|
query: query2,
|
|
4499
4644
|
...options,
|
|
4500
4645
|
headers: buildHeaders([
|
|
4501
|
-
{
|
|
4646
|
+
{
|
|
4647
|
+
"anthropic-beta": [...betas ?? [], "agent-memory-2026-07-22"].toString(),
|
|
4648
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4649
|
+
},
|
|
4502
4650
|
options?.headers
|
|
4503
4651
|
])
|
|
4504
4652
|
});
|
|
4505
4653
|
}
|
|
4506
4654
|
delete(memoryStoreID, params = {}, options) {
|
|
4507
|
-
const { betas } = params ?? {};
|
|
4655
|
+
const { betas, workspace_id } = params ?? {};
|
|
4508
4656
|
return this._client.delete(path`/v1/memory_stores/${memoryStoreID}?beta=true`, {
|
|
4509
4657
|
...options,
|
|
4510
4658
|
headers: buildHeaders([
|
|
4511
|
-
{
|
|
4659
|
+
{
|
|
4660
|
+
"anthropic-beta": [...betas ?? [], "agent-memory-2026-07-22"].toString(),
|
|
4661
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4662
|
+
},
|
|
4512
4663
|
options?.headers
|
|
4513
4664
|
])
|
|
4514
4665
|
});
|
|
4515
4666
|
}
|
|
4516
4667
|
archive(memoryStoreID, params = {}, options) {
|
|
4517
|
-
const { betas } = params ?? {};
|
|
4668
|
+
const { betas, workspace_id } = params ?? {};
|
|
4518
4669
|
return this._client.post(path`/v1/memory_stores/${memoryStoreID}/archive?beta=true`, {
|
|
4519
4670
|
...options,
|
|
4520
4671
|
headers: buildHeaders([
|
|
4521
|
-
{
|
|
4672
|
+
{
|
|
4673
|
+
"anthropic-beta": [...betas ?? [], "agent-memory-2026-07-22"].toString(),
|
|
4674
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4675
|
+
},
|
|
4522
4676
|
options?.headers
|
|
4523
4677
|
])
|
|
4524
4678
|
});
|
|
@@ -4561,72 +4715,86 @@ class JSONLDecoder {
|
|
|
4561
4715
|
// node_modules/@earendil-works/pi-ai/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs
|
|
4562
4716
|
class Batches extends APIResource {
|
|
4563
4717
|
create(params, options) {
|
|
4564
|
-
const { betas, user_profile_id, ...body } = params;
|
|
4718
|
+
const { betas, user_profile_id, workspace_id, ...body } = params;
|
|
4565
4719
|
return this._client.post("/v1/messages/batches?beta=true", {
|
|
4566
4720
|
body,
|
|
4567
4721
|
...options,
|
|
4568
4722
|
headers: buildHeaders([
|
|
4569
4723
|
{
|
|
4570
4724
|
"anthropic-beta": [...betas ?? [], "message-batches-2024-09-24"].toString(),
|
|
4571
|
-
...user_profile_id != null ? { "anthropic-user-profile-id": user_profile_id } : undefined
|
|
4725
|
+
...user_profile_id != null ? { "anthropic-user-profile-id": user_profile_id } : undefined,
|
|
4726
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4572
4727
|
},
|
|
4573
4728
|
options?.headers
|
|
4574
4729
|
])
|
|
4575
4730
|
});
|
|
4576
4731
|
}
|
|
4577
4732
|
retrieve(messageBatchID, params = {}, options) {
|
|
4578
|
-
const { betas } = params ?? {};
|
|
4733
|
+
const { betas, workspace_id } = params ?? {};
|
|
4579
4734
|
return this._client.get(path`/v1/messages/batches/${messageBatchID}?beta=true`, {
|
|
4580
4735
|
...options,
|
|
4581
4736
|
headers: buildHeaders([
|
|
4582
|
-
{
|
|
4737
|
+
{
|
|
4738
|
+
"anthropic-beta": [...betas ?? [], "message-batches-2024-09-24"].toString(),
|
|
4739
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4740
|
+
},
|
|
4583
4741
|
options?.headers
|
|
4584
4742
|
])
|
|
4585
4743
|
});
|
|
4586
4744
|
}
|
|
4587
4745
|
list(params = {}, options) {
|
|
4588
|
-
const { betas, ...query2 } = params ?? {};
|
|
4746
|
+
const { betas, workspace_id, ...query2 } = params ?? {};
|
|
4589
4747
|
return this._client.getAPIList("/v1/messages/batches?beta=true", Page, {
|
|
4590
4748
|
query: query2,
|
|
4591
4749
|
...options,
|
|
4592
4750
|
headers: buildHeaders([
|
|
4593
|
-
{
|
|
4751
|
+
{
|
|
4752
|
+
"anthropic-beta": [...betas ?? [], "message-batches-2024-09-24"].toString(),
|
|
4753
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4754
|
+
},
|
|
4594
4755
|
options?.headers
|
|
4595
4756
|
])
|
|
4596
4757
|
});
|
|
4597
4758
|
}
|
|
4598
4759
|
delete(messageBatchID, params = {}, options) {
|
|
4599
|
-
const { betas } = params ?? {};
|
|
4760
|
+
const { betas, workspace_id } = params ?? {};
|
|
4600
4761
|
return this._client.delete(path`/v1/messages/batches/${messageBatchID}?beta=true`, {
|
|
4601
4762
|
...options,
|
|
4602
4763
|
headers: buildHeaders([
|
|
4603
|
-
{
|
|
4764
|
+
{
|
|
4765
|
+
"anthropic-beta": [...betas ?? [], "message-batches-2024-09-24"].toString(),
|
|
4766
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4767
|
+
},
|
|
4604
4768
|
options?.headers
|
|
4605
4769
|
])
|
|
4606
4770
|
});
|
|
4607
4771
|
}
|
|
4608
4772
|
cancel(messageBatchID, params = {}, options) {
|
|
4609
|
-
const { betas } = params ?? {};
|
|
4773
|
+
const { betas, workspace_id } = params ?? {};
|
|
4610
4774
|
return this._client.post(path`/v1/messages/batches/${messageBatchID}/cancel?beta=true`, {
|
|
4611
4775
|
...options,
|
|
4612
4776
|
headers: buildHeaders([
|
|
4613
|
-
{
|
|
4777
|
+
{
|
|
4778
|
+
"anthropic-beta": [...betas ?? [], "message-batches-2024-09-24"].toString(),
|
|
4779
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4780
|
+
},
|
|
4614
4781
|
options?.headers
|
|
4615
4782
|
])
|
|
4616
4783
|
});
|
|
4617
4784
|
}
|
|
4618
4785
|
async results(messageBatchID, params = {}, options) {
|
|
4619
|
-
const batch = await this.retrieve(messageBatchID);
|
|
4786
|
+
const batch = await this.retrieve(messageBatchID, params, options);
|
|
4620
4787
|
if (!batch.results_url) {
|
|
4621
4788
|
throw new AnthropicError(`No batch \`results_url\`; Has it finished processing? ${batch.processing_status} - ${batch.id}`);
|
|
4622
4789
|
}
|
|
4623
|
-
const { betas } = params ?? {};
|
|
4790
|
+
const { betas, workspace_id } = params ?? {};
|
|
4624
4791
|
return this._client.get(batch.results_url, {
|
|
4625
4792
|
...options,
|
|
4626
4793
|
headers: buildHeaders([
|
|
4627
4794
|
{
|
|
4628
4795
|
"anthropic-beta": [...betas ?? [], "message-batches-2024-09-24"].toString(),
|
|
4629
|
-
Accept: "application/binary"
|
|
4796
|
+
Accept: "application/binary",
|
|
4797
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4630
4798
|
},
|
|
4631
4799
|
options?.headers
|
|
4632
4800
|
]),
|
|
@@ -5937,7 +6105,7 @@ class Messages extends APIResource {
|
|
|
5937
6105
|
}
|
|
5938
6106
|
create(params, options) {
|
|
5939
6107
|
const modifiedParams = transformOutputFormat(params);
|
|
5940
|
-
const { betas, user_profile_id, ...body } = modifiedParams;
|
|
6108
|
+
const { betas, user_profile_id, workspace_id, ...body } = modifiedParams;
|
|
5941
6109
|
if (body.model in DEPRECATED_MODELS) {
|
|
5942
6110
|
console.warn(`The model '${body.model}' is deprecated and will reach end-of-life on ${DEPRECATED_MODELS[body.model]}
|
|
5943
6111
|
Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more information.`);
|
|
@@ -5958,7 +6126,8 @@ Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resour
|
|
|
5958
6126
|
headers: buildHeaders([
|
|
5959
6127
|
{
|
|
5960
6128
|
...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined,
|
|
5961
|
-
...user_profile_id != null ? { "anthropic-user-profile-id": user_profile_id } : undefined
|
|
6129
|
+
...user_profile_id != null ? { "anthropic-user-profile-id": user_profile_id } : undefined,
|
|
6130
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
5962
6131
|
},
|
|
5963
6132
|
helperHeader2,
|
|
5964
6133
|
options?.headers
|
|
@@ -5981,14 +6150,15 @@ Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resour
|
|
|
5981
6150
|
}
|
|
5982
6151
|
countTokens(params, options) {
|
|
5983
6152
|
const modifiedParams = transformOutputFormat(params);
|
|
5984
|
-
const { betas, user_profile_id, ...body } = modifiedParams;
|
|
6153
|
+
const { betas, user_profile_id, workspace_id, ...body } = modifiedParams;
|
|
5985
6154
|
return this._client.post("/v1/messages/count_tokens?beta=true", {
|
|
5986
6155
|
body,
|
|
5987
6156
|
...options,
|
|
5988
6157
|
headers: buildHeaders([
|
|
5989
6158
|
{
|
|
5990
6159
|
"anthropic-beta": [...betas ?? [], "token-counting-2024-11-01"].toString(),
|
|
5991
|
-
...user_profile_id != null ? { "anthropic-user-profile-id": user_profile_id } : undefined
|
|
6160
|
+
...user_profile_id != null ? { "anthropic-user-profile-id": user_profile_id } : undefined,
|
|
6161
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
5992
6162
|
},
|
|
5993
6163
|
options?.headers
|
|
5994
6164
|
])
|
|
@@ -6546,34 +6716,43 @@ Organization.ComplianceSettings = ComplianceSettings;
|
|
|
6546
6716
|
// node_modules/@earendil-works/pi-ai/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs
|
|
6547
6717
|
class Events extends APIResource {
|
|
6548
6718
|
list(sessionID, params = {}, options) {
|
|
6549
|
-
const { betas, ...query2 } = params ?? {};
|
|
6719
|
+
const { betas, workspace_id, ...query2 } = params ?? {};
|
|
6550
6720
|
return this._client.getAPIList(path`/v1/sessions/${sessionID}/events?beta=true`, PageCursor, {
|
|
6551
6721
|
query: query2,
|
|
6552
6722
|
...options,
|
|
6553
6723
|
headers: buildHeaders([
|
|
6554
|
-
{
|
|
6724
|
+
{
|
|
6725
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
6726
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
6727
|
+
},
|
|
6555
6728
|
options?.headers
|
|
6556
6729
|
])
|
|
6557
6730
|
});
|
|
6558
6731
|
}
|
|
6559
6732
|
send(sessionID, params, options) {
|
|
6560
|
-
const { betas, ...body } = params;
|
|
6733
|
+
const { betas, workspace_id, ...body } = params;
|
|
6561
6734
|
return this._client.post(path`/v1/sessions/${sessionID}/events?beta=true`, {
|
|
6562
6735
|
body,
|
|
6563
6736
|
...options,
|
|
6564
6737
|
headers: buildHeaders([
|
|
6565
|
-
{
|
|
6738
|
+
{
|
|
6739
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
6740
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
6741
|
+
},
|
|
6566
6742
|
options?.headers
|
|
6567
6743
|
])
|
|
6568
6744
|
});
|
|
6569
6745
|
}
|
|
6570
6746
|
stream(sessionID, params = {}, options) {
|
|
6571
|
-
const { betas, ...query2 } = params ?? {};
|
|
6747
|
+
const { betas, workspace_id, ...query2 } = params ?? {};
|
|
6572
6748
|
return this._client.get(path`/v1/sessions/${sessionID}/events/stream?beta=true`, {
|
|
6573
6749
|
query: query2,
|
|
6574
6750
|
...options,
|
|
6575
6751
|
headers: buildHeaders([
|
|
6576
|
-
{
|
|
6752
|
+
{
|
|
6753
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
6754
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
6755
|
+
},
|
|
6577
6756
|
options?.headers
|
|
6578
6757
|
]),
|
|
6579
6758
|
stream: true
|
|
@@ -6588,54 +6767,69 @@ Events.SessionToolRunner = SessionToolRunner;
|
|
|
6588
6767
|
// node_modules/@earendil-works/pi-ai/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.mjs
|
|
6589
6768
|
class Resources extends APIResource {
|
|
6590
6769
|
retrieve(resourceID, params, options) {
|
|
6591
|
-
const { session_id, betas } = params;
|
|
6770
|
+
const { session_id, betas, workspace_id } = params;
|
|
6592
6771
|
return this._client.get(path`/v1/sessions/${session_id}/resources/${resourceID}?beta=true`, {
|
|
6593
6772
|
...options,
|
|
6594
6773
|
headers: buildHeaders([
|
|
6595
|
-
{
|
|
6774
|
+
{
|
|
6775
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
6776
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
6777
|
+
},
|
|
6596
6778
|
options?.headers
|
|
6597
6779
|
])
|
|
6598
6780
|
});
|
|
6599
6781
|
}
|
|
6600
6782
|
update(resourceID, params, options) {
|
|
6601
|
-
const { session_id, betas, ...body } = params;
|
|
6783
|
+
const { session_id, betas, workspace_id, ...body } = params;
|
|
6602
6784
|
return this._client.post(path`/v1/sessions/${session_id}/resources/${resourceID}?beta=true`, {
|
|
6603
6785
|
body,
|
|
6604
6786
|
...options,
|
|
6605
6787
|
headers: buildHeaders([
|
|
6606
|
-
{
|
|
6788
|
+
{
|
|
6789
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
6790
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
6791
|
+
},
|
|
6607
6792
|
options?.headers
|
|
6608
6793
|
])
|
|
6609
6794
|
});
|
|
6610
6795
|
}
|
|
6611
6796
|
list(sessionID, params = {}, options) {
|
|
6612
|
-
const { betas, ...query2 } = params ?? {};
|
|
6797
|
+
const { betas, workspace_id, ...query2 } = params ?? {};
|
|
6613
6798
|
return this._client.getAPIList(path`/v1/sessions/${sessionID}/resources?beta=true`, PageCursor, {
|
|
6614
6799
|
query: query2,
|
|
6615
6800
|
...options,
|
|
6616
6801
|
headers: buildHeaders([
|
|
6617
|
-
{
|
|
6618
|
-
|
|
6619
|
-
|
|
6802
|
+
{
|
|
6803
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
6804
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
6805
|
+
},
|
|
6806
|
+
options?.headers
|
|
6807
|
+
])
|
|
6620
6808
|
});
|
|
6621
6809
|
}
|
|
6622
6810
|
delete(resourceID, params, options) {
|
|
6623
|
-
const { session_id, betas } = params;
|
|
6811
|
+
const { session_id, betas, workspace_id } = params;
|
|
6624
6812
|
return this._client.delete(path`/v1/sessions/${session_id}/resources/${resourceID}?beta=true`, {
|
|
6625
6813
|
...options,
|
|
6626
6814
|
headers: buildHeaders([
|
|
6627
|
-
{
|
|
6815
|
+
{
|
|
6816
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
6817
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
6818
|
+
},
|
|
6628
6819
|
options?.headers
|
|
6629
6820
|
])
|
|
6630
6821
|
});
|
|
6631
6822
|
}
|
|
6632
6823
|
add(sessionID, params, options) {
|
|
6633
|
-
const { betas, ...body } = params;
|
|
6824
|
+
const { betas, workspace_id, ...body } = params;
|
|
6634
6825
|
return this._client.post(path`/v1/sessions/${sessionID}/resources?beta=true`, {
|
|
6635
6826
|
body,
|
|
6636
6827
|
...options,
|
|
6637
6828
|
headers: buildHeaders([
|
|
6638
|
-
{
|
|
6829
|
+
{
|
|
6830
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
6831
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
6832
|
+
},
|
|
6639
6833
|
options?.headers
|
|
6640
6834
|
])
|
|
6641
6835
|
});
|
|
@@ -6645,23 +6839,29 @@ class Resources extends APIResource {
|
|
|
6645
6839
|
// node_modules/@earendil-works/pi-ai/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.mjs
|
|
6646
6840
|
class Events2 extends APIResource {
|
|
6647
6841
|
list(threadID, params, options) {
|
|
6648
|
-
const { session_id, betas, ...query2 } = params;
|
|
6842
|
+
const { session_id, betas, workspace_id, ...query2 } = params;
|
|
6649
6843
|
return this._client.getAPIList(path`/v1/sessions/${session_id}/threads/${threadID}/events?beta=true`, PageCursor, {
|
|
6650
6844
|
query: query2,
|
|
6651
6845
|
...options,
|
|
6652
6846
|
headers: buildHeaders([
|
|
6653
|
-
{
|
|
6847
|
+
{
|
|
6848
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
6849
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
6850
|
+
},
|
|
6654
6851
|
options?.headers
|
|
6655
6852
|
])
|
|
6656
6853
|
});
|
|
6657
6854
|
}
|
|
6658
6855
|
stream(threadID, params, options) {
|
|
6659
|
-
const { session_id, betas, ...query2 } = params;
|
|
6856
|
+
const { session_id, betas, workspace_id, ...query2 } = params;
|
|
6660
6857
|
return this._client.get(path`/v1/sessions/${session_id}/threads/${threadID}/stream?beta=true`, {
|
|
6661
6858
|
query: query2,
|
|
6662
6859
|
...options,
|
|
6663
6860
|
headers: buildHeaders([
|
|
6664
|
-
{
|
|
6861
|
+
{
|
|
6862
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
6863
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
6864
|
+
},
|
|
6665
6865
|
options?.headers
|
|
6666
6866
|
]),
|
|
6667
6867
|
stream: true
|
|
@@ -6676,32 +6876,41 @@ class Threads extends APIResource {
|
|
|
6676
6876
|
this.events = new Events2(this._client);
|
|
6677
6877
|
}
|
|
6678
6878
|
retrieve(threadID, params, options) {
|
|
6679
|
-
const { session_id, betas } = params;
|
|
6879
|
+
const { session_id, betas, workspace_id } = params;
|
|
6680
6880
|
return this._client.get(path`/v1/sessions/${session_id}/threads/${threadID}?beta=true`, {
|
|
6681
6881
|
...options,
|
|
6682
6882
|
headers: buildHeaders([
|
|
6683
|
-
{
|
|
6883
|
+
{
|
|
6884
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
6885
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
6886
|
+
},
|
|
6684
6887
|
options?.headers
|
|
6685
6888
|
])
|
|
6686
6889
|
});
|
|
6687
6890
|
}
|
|
6688
6891
|
list(sessionID, params = {}, options) {
|
|
6689
|
-
const { betas, ...query2 } = params ?? {};
|
|
6892
|
+
const { betas, workspace_id, ...query2 } = params ?? {};
|
|
6690
6893
|
return this._client.getAPIList(path`/v1/sessions/${sessionID}/threads?beta=true`, PageCursor, {
|
|
6691
6894
|
query: query2,
|
|
6692
6895
|
...options,
|
|
6693
6896
|
headers: buildHeaders([
|
|
6694
|
-
{
|
|
6897
|
+
{
|
|
6898
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
6899
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
6900
|
+
},
|
|
6695
6901
|
options?.headers
|
|
6696
6902
|
])
|
|
6697
6903
|
});
|
|
6698
6904
|
}
|
|
6699
6905
|
archive(threadID, params, options) {
|
|
6700
|
-
const { session_id, betas } = params;
|
|
6906
|
+
const { session_id, betas, workspace_id } = params;
|
|
6701
6907
|
return this._client.post(path`/v1/sessions/${session_id}/threads/${threadID}/archive?beta=true`, {
|
|
6702
6908
|
...options,
|
|
6703
6909
|
headers: buildHeaders([
|
|
6704
|
-
{
|
|
6910
|
+
{
|
|
6911
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
6912
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
6913
|
+
},
|
|
6705
6914
|
options?.headers
|
|
6706
6915
|
])
|
|
6707
6916
|
});
|
|
@@ -6718,64 +6927,82 @@ class Sessions extends APIResource {
|
|
|
6718
6927
|
this.threads = new Threads(this._client);
|
|
6719
6928
|
}
|
|
6720
6929
|
create(params, options) {
|
|
6721
|
-
const { betas, ...body } = params;
|
|
6930
|
+
const { betas, workspace_id, ...body } = params;
|
|
6722
6931
|
return this._client.post("/v1/sessions?beta=true", {
|
|
6723
6932
|
body,
|
|
6724
6933
|
...options,
|
|
6725
6934
|
headers: buildHeaders([
|
|
6726
|
-
{
|
|
6935
|
+
{
|
|
6936
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
6937
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
6938
|
+
},
|
|
6727
6939
|
options?.headers
|
|
6728
6940
|
])
|
|
6729
6941
|
});
|
|
6730
6942
|
}
|
|
6731
6943
|
retrieve(sessionID, params = {}, options) {
|
|
6732
|
-
const { betas } = params ?? {};
|
|
6944
|
+
const { betas, workspace_id } = params ?? {};
|
|
6733
6945
|
return this._client.get(path`/v1/sessions/${sessionID}?beta=true`, {
|
|
6734
6946
|
...options,
|
|
6735
6947
|
headers: buildHeaders([
|
|
6736
|
-
{
|
|
6948
|
+
{
|
|
6949
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
6950
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
6951
|
+
},
|
|
6737
6952
|
options?.headers
|
|
6738
6953
|
])
|
|
6739
6954
|
});
|
|
6740
6955
|
}
|
|
6741
6956
|
update(sessionID, params, options) {
|
|
6742
|
-
const { betas, ...body } = params;
|
|
6957
|
+
const { betas, workspace_id, ...body } = params;
|
|
6743
6958
|
return this._client.post(path`/v1/sessions/${sessionID}?beta=true`, {
|
|
6744
6959
|
body,
|
|
6745
6960
|
...options,
|
|
6746
6961
|
headers: buildHeaders([
|
|
6747
|
-
{
|
|
6962
|
+
{
|
|
6963
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
6964
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
6965
|
+
},
|
|
6748
6966
|
options?.headers
|
|
6749
6967
|
])
|
|
6750
6968
|
});
|
|
6751
6969
|
}
|
|
6752
6970
|
list(params = {}, options) {
|
|
6753
|
-
const { betas, ...query2 } = params ?? {};
|
|
6971
|
+
const { betas, workspace_id, ...query2 } = params ?? {};
|
|
6754
6972
|
return this._client.getAPIList("/v1/sessions?beta=true", BidirectionalPageCursor, {
|
|
6755
6973
|
query: query2,
|
|
6756
6974
|
...options,
|
|
6757
6975
|
headers: buildHeaders([
|
|
6758
|
-
{
|
|
6976
|
+
{
|
|
6977
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
6978
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
6979
|
+
},
|
|
6759
6980
|
options?.headers
|
|
6760
6981
|
])
|
|
6761
6982
|
});
|
|
6762
6983
|
}
|
|
6763
6984
|
delete(sessionID, params = {}, options) {
|
|
6764
|
-
const { betas } = params ?? {};
|
|
6985
|
+
const { betas, workspace_id } = params ?? {};
|
|
6765
6986
|
return this._client.delete(path`/v1/sessions/${sessionID}?beta=true`, {
|
|
6766
6987
|
...options,
|
|
6767
6988
|
headers: buildHeaders([
|
|
6768
|
-
{
|
|
6989
|
+
{
|
|
6990
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
6991
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
6992
|
+
},
|
|
6769
6993
|
options?.headers
|
|
6770
6994
|
])
|
|
6771
6995
|
});
|
|
6772
6996
|
}
|
|
6773
6997
|
archive(sessionID, params = {}, options) {
|
|
6774
|
-
const { betas } = params ?? {};
|
|
6998
|
+
const { betas, workspace_id } = params ?? {};
|
|
6775
6999
|
return this._client.post(path`/v1/sessions/${sessionID}/archive?beta=true`, {
|
|
6776
7000
|
...options,
|
|
6777
7001
|
headers: buildHeaders([
|
|
6778
|
-
{
|
|
7002
|
+
{
|
|
7003
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
7004
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7005
|
+
},
|
|
6779
7006
|
options?.headers
|
|
6780
7007
|
])
|
|
6781
7008
|
});
|
|
@@ -6788,55 +7015,68 @@ Sessions.Threads = Threads;
|
|
|
6788
7015
|
// node_modules/@earendil-works/pi-ai/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs
|
|
6789
7016
|
class Versions2 extends APIResource {
|
|
6790
7017
|
create(skillID, params, options) {
|
|
6791
|
-
const { betas, ...body } = params;
|
|
7018
|
+
const { betas, workspace_id, ...body } = params;
|
|
6792
7019
|
return this._client.post(path`/v1/skills/${skillID}/versions?beta=true`, multipartFormRequestOptions({
|
|
6793
7020
|
body,
|
|
6794
7021
|
...options,
|
|
6795
7022
|
headers: buildHeaders([
|
|
6796
|
-
{
|
|
7023
|
+
{
|
|
7024
|
+
...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined,
|
|
7025
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7026
|
+
},
|
|
6797
7027
|
options?.headers
|
|
6798
7028
|
])
|
|
6799
7029
|
}, this._client, false));
|
|
6800
7030
|
}
|
|
6801
7031
|
retrieve(version, params, options) {
|
|
6802
|
-
const { skill_id, betas } = params;
|
|
7032
|
+
const { skill_id, betas, workspace_id } = params;
|
|
6803
7033
|
return this._client.get(path`/v1/skills/${skill_id}/versions/${version}?beta=true`, {
|
|
6804
7034
|
...options,
|
|
6805
7035
|
headers: buildHeaders([
|
|
6806
|
-
{
|
|
7036
|
+
{
|
|
7037
|
+
...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined,
|
|
7038
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7039
|
+
},
|
|
6807
7040
|
options?.headers
|
|
6808
7041
|
])
|
|
6809
7042
|
});
|
|
6810
7043
|
}
|
|
6811
7044
|
list(skillID, params = {}, options) {
|
|
6812
|
-
const { betas, ...query2 } = params ?? {};
|
|
7045
|
+
const { betas, workspace_id, ...query2 } = params ?? {};
|
|
6813
7046
|
return this._client.getAPIList(path`/v1/skills/${skillID}/versions?beta=true`, PageCursor, {
|
|
6814
7047
|
query: query2,
|
|
6815
7048
|
...options,
|
|
6816
7049
|
headers: buildHeaders([
|
|
6817
|
-
{
|
|
7050
|
+
{
|
|
7051
|
+
...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined,
|
|
7052
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7053
|
+
},
|
|
6818
7054
|
options?.headers
|
|
6819
7055
|
])
|
|
6820
7056
|
});
|
|
6821
7057
|
}
|
|
6822
7058
|
delete(version, params, options) {
|
|
6823
|
-
const { skill_id, betas } = params;
|
|
7059
|
+
const { skill_id, betas, workspace_id } = params;
|
|
6824
7060
|
return this._client.delete(path`/v1/skills/${skill_id}/versions/${version}?beta=true`, {
|
|
6825
7061
|
...options,
|
|
6826
7062
|
headers: buildHeaders([
|
|
6827
|
-
{
|
|
7063
|
+
{
|
|
7064
|
+
...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined,
|
|
7065
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7066
|
+
},
|
|
6828
7067
|
options?.headers
|
|
6829
7068
|
])
|
|
6830
7069
|
});
|
|
6831
7070
|
}
|
|
6832
7071
|
download(version, params, options) {
|
|
6833
|
-
const { skill_id, betas } = params;
|
|
7072
|
+
const { skill_id, betas, workspace_id } = params;
|
|
6834
7073
|
return this._client.get(path`/v1/skills/${skill_id}/versions/${version}/content?beta=true`, {
|
|
6835
7074
|
...options,
|
|
6836
7075
|
headers: buildHeaders([
|
|
6837
7076
|
{
|
|
6838
7077
|
Accept: "application/binary",
|
|
6839
|
-
...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined
|
|
7078
|
+
...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined,
|
|
7079
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
6840
7080
|
},
|
|
6841
7081
|
options?.headers
|
|
6842
7082
|
]),
|
|
@@ -6852,43 +7092,55 @@ class Skills extends APIResource {
|
|
|
6852
7092
|
this.versions = new Versions2(this._client);
|
|
6853
7093
|
}
|
|
6854
7094
|
create(params, options) {
|
|
6855
|
-
const { betas, ...body } = params;
|
|
7095
|
+
const { betas, workspace_id, ...body } = params;
|
|
6856
7096
|
return this._client.post("/v1/skills?beta=true", multipartFormRequestOptions({
|
|
6857
7097
|
body,
|
|
6858
7098
|
...options,
|
|
6859
7099
|
headers: buildHeaders([
|
|
6860
|
-
{
|
|
7100
|
+
{
|
|
7101
|
+
...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined,
|
|
7102
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7103
|
+
},
|
|
6861
7104
|
options?.headers
|
|
6862
7105
|
])
|
|
6863
7106
|
}, this._client, false));
|
|
6864
7107
|
}
|
|
6865
7108
|
retrieve(skillID, params = {}, options) {
|
|
6866
|
-
const { betas } = params ?? {};
|
|
7109
|
+
const { betas, workspace_id } = params ?? {};
|
|
6867
7110
|
return this._client.get(path`/v1/skills/${skillID}?beta=true`, {
|
|
6868
7111
|
...options,
|
|
6869
7112
|
headers: buildHeaders([
|
|
6870
|
-
{
|
|
7113
|
+
{
|
|
7114
|
+
...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined,
|
|
7115
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7116
|
+
},
|
|
6871
7117
|
options?.headers
|
|
6872
7118
|
])
|
|
6873
7119
|
});
|
|
6874
7120
|
}
|
|
6875
7121
|
list(params = {}, options) {
|
|
6876
|
-
const { betas, ...query2 } = params ?? {};
|
|
7122
|
+
const { betas, workspace_id, ...query2 } = params ?? {};
|
|
6877
7123
|
return this._client.getAPIList("/v1/skills?beta=true", PageCursor, {
|
|
6878
7124
|
query: query2,
|
|
6879
7125
|
...options,
|
|
6880
7126
|
headers: buildHeaders([
|
|
6881
|
-
{
|
|
7127
|
+
{
|
|
7128
|
+
...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined,
|
|
7129
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7130
|
+
},
|
|
6882
7131
|
options?.headers
|
|
6883
7132
|
])
|
|
6884
7133
|
});
|
|
6885
7134
|
}
|
|
6886
7135
|
delete(skillID, params = {}, options) {
|
|
6887
|
-
const { betas } = params ?? {};
|
|
7136
|
+
const { betas, workspace_id } = params ?? {};
|
|
6888
7137
|
return this._client.delete(path`/v1/skills/${skillID}?beta=true`, {
|
|
6889
7138
|
...options,
|
|
6890
7139
|
headers: buildHeaders([
|
|
6891
|
-
{
|
|
7140
|
+
{
|
|
7141
|
+
...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined,
|
|
7142
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7143
|
+
},
|
|
6892
7144
|
options?.headers
|
|
6893
7145
|
])
|
|
6894
7146
|
});
|
|
@@ -6899,43 +7151,55 @@ Skills.Versions = Versions2;
|
|
|
6899
7151
|
// node_modules/@earendil-works/pi-ai/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.mjs
|
|
6900
7152
|
class Certificates extends APIResource {
|
|
6901
7153
|
create(tunnelID, params, options) {
|
|
6902
|
-
const { betas, ...body } = params;
|
|
7154
|
+
const { betas, workspace_id, ...body } = params;
|
|
6903
7155
|
return this._client.post(path`/v1/tunnels/${tunnelID}/certificates?beta=true`, {
|
|
6904
7156
|
body,
|
|
6905
7157
|
...options,
|
|
6906
7158
|
headers: buildHeaders([
|
|
6907
|
-
{
|
|
7159
|
+
{
|
|
7160
|
+
"anthropic-beta": [...betas ?? [], "mcp-tunnels-2026-06-22"].toString(),
|
|
7161
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7162
|
+
},
|
|
6908
7163
|
options?.headers
|
|
6909
7164
|
])
|
|
6910
7165
|
});
|
|
6911
7166
|
}
|
|
6912
7167
|
retrieve(certificateID, params, options) {
|
|
6913
|
-
const { tunnel_id, betas } = params;
|
|
7168
|
+
const { tunnel_id, betas, workspace_id } = params;
|
|
6914
7169
|
return this._client.get(path`/v1/tunnels/${tunnel_id}/certificates/${certificateID}?beta=true`, {
|
|
6915
7170
|
...options,
|
|
6916
7171
|
headers: buildHeaders([
|
|
6917
|
-
{
|
|
7172
|
+
{
|
|
7173
|
+
"anthropic-beta": [...betas ?? [], "mcp-tunnels-2026-06-22"].toString(),
|
|
7174
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7175
|
+
},
|
|
6918
7176
|
options?.headers
|
|
6919
7177
|
])
|
|
6920
7178
|
});
|
|
6921
7179
|
}
|
|
6922
7180
|
list(tunnelID, params = {}, options) {
|
|
6923
|
-
const { betas, ...query2 } = params ?? {};
|
|
7181
|
+
const { betas, workspace_id, ...query2 } = params ?? {};
|
|
6924
7182
|
return this._client.getAPIList(path`/v1/tunnels/${tunnelID}/certificates?beta=true`, PageCursor, {
|
|
6925
7183
|
query: query2,
|
|
6926
7184
|
...options,
|
|
6927
7185
|
headers: buildHeaders([
|
|
6928
|
-
{
|
|
7186
|
+
{
|
|
7187
|
+
"anthropic-beta": [...betas ?? [], "mcp-tunnels-2026-06-22"].toString(),
|
|
7188
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7189
|
+
},
|
|
6929
7190
|
options?.headers
|
|
6930
7191
|
])
|
|
6931
7192
|
});
|
|
6932
7193
|
}
|
|
6933
7194
|
archive(certificateID, params, options) {
|
|
6934
|
-
const { tunnel_id, betas } = params;
|
|
7195
|
+
const { tunnel_id, betas, workspace_id } = params;
|
|
6935
7196
|
return this._client.post(path`/v1/tunnels/${tunnel_id}/certificates/${certificateID}/archive?beta=true`, {
|
|
6936
7197
|
...options,
|
|
6937
7198
|
headers: buildHeaders([
|
|
6938
|
-
{
|
|
7199
|
+
{
|
|
7200
|
+
"anthropic-beta": [...betas ?? [], "mcp-tunnels-2026-06-22"].toString(),
|
|
7201
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7202
|
+
},
|
|
6939
7203
|
options?.headers
|
|
6940
7204
|
])
|
|
6941
7205
|
});
|
|
@@ -6949,64 +7213,82 @@ class Tunnels extends APIResource {
|
|
|
6949
7213
|
this.certificates = new Certificates(this._client);
|
|
6950
7214
|
}
|
|
6951
7215
|
create(params, options) {
|
|
6952
|
-
const { betas, ...body } = params;
|
|
7216
|
+
const { betas, workspace_id, ...body } = params;
|
|
6953
7217
|
return this._client.post("/v1/tunnels?beta=true", {
|
|
6954
7218
|
body,
|
|
6955
7219
|
...options,
|
|
6956
7220
|
headers: buildHeaders([
|
|
6957
|
-
{
|
|
7221
|
+
{
|
|
7222
|
+
"anthropic-beta": [...betas ?? [], "mcp-tunnels-2026-06-22"].toString(),
|
|
7223
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7224
|
+
},
|
|
6958
7225
|
options?.headers
|
|
6959
7226
|
])
|
|
6960
7227
|
});
|
|
6961
7228
|
}
|
|
6962
7229
|
retrieve(tunnelID, params = {}, options) {
|
|
6963
|
-
const { betas } = params ?? {};
|
|
7230
|
+
const { betas, workspace_id } = params ?? {};
|
|
6964
7231
|
return this._client.get(path`/v1/tunnels/${tunnelID}?beta=true`, {
|
|
6965
7232
|
...options,
|
|
6966
7233
|
headers: buildHeaders([
|
|
6967
|
-
{
|
|
7234
|
+
{
|
|
7235
|
+
"anthropic-beta": [...betas ?? [], "mcp-tunnels-2026-06-22"].toString(),
|
|
7236
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7237
|
+
},
|
|
6968
7238
|
options?.headers
|
|
6969
7239
|
])
|
|
6970
7240
|
});
|
|
6971
7241
|
}
|
|
6972
7242
|
list(params = {}, options) {
|
|
6973
|
-
const { betas, ...query2 } = params ?? {};
|
|
7243
|
+
const { betas, workspace_id, ...query2 } = params ?? {};
|
|
6974
7244
|
return this._client.getAPIList("/v1/tunnels?beta=true", PageCursor, {
|
|
6975
7245
|
query: query2,
|
|
6976
7246
|
...options,
|
|
6977
7247
|
headers: buildHeaders([
|
|
6978
|
-
{
|
|
7248
|
+
{
|
|
7249
|
+
"anthropic-beta": [...betas ?? [], "mcp-tunnels-2026-06-22"].toString(),
|
|
7250
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7251
|
+
},
|
|
6979
7252
|
options?.headers
|
|
6980
7253
|
])
|
|
6981
7254
|
});
|
|
6982
7255
|
}
|
|
6983
7256
|
archive(tunnelID, params = {}, options) {
|
|
6984
|
-
const { betas } = params ?? {};
|
|
7257
|
+
const { betas, workspace_id } = params ?? {};
|
|
6985
7258
|
return this._client.post(path`/v1/tunnels/${tunnelID}/archive?beta=true`, {
|
|
6986
7259
|
...options,
|
|
6987
7260
|
headers: buildHeaders([
|
|
6988
|
-
{
|
|
7261
|
+
{
|
|
7262
|
+
"anthropic-beta": [...betas ?? [], "mcp-tunnels-2026-06-22"].toString(),
|
|
7263
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7264
|
+
},
|
|
6989
7265
|
options?.headers
|
|
6990
7266
|
])
|
|
6991
7267
|
});
|
|
6992
7268
|
}
|
|
6993
7269
|
revealToken(tunnelID, params = {}, options) {
|
|
6994
|
-
const { betas } = params ?? {};
|
|
7270
|
+
const { betas, workspace_id } = params ?? {};
|
|
6995
7271
|
return this._client.post(path`/v1/tunnels/${tunnelID}/reveal_token?beta=true`, {
|
|
6996
7272
|
...options,
|
|
6997
7273
|
headers: buildHeaders([
|
|
6998
|
-
{
|
|
7274
|
+
{
|
|
7275
|
+
"anthropic-beta": [...betas ?? [], "mcp-tunnels-2026-06-22"].toString(),
|
|
7276
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7277
|
+
},
|
|
6999
7278
|
options?.headers
|
|
7000
7279
|
])
|
|
7001
7280
|
});
|
|
7002
7281
|
}
|
|
7003
7282
|
rotateToken(tunnelID, params, options) {
|
|
7004
|
-
const { betas, ...body } = params;
|
|
7283
|
+
const { betas, workspace_id, ...body } = params;
|
|
7005
7284
|
return this._client.post(path`/v1/tunnels/${tunnelID}/rotate_token?beta=true`, {
|
|
7006
7285
|
body,
|
|
7007
7286
|
...options,
|
|
7008
7287
|
headers: buildHeaders([
|
|
7009
|
-
{
|
|
7288
|
+
{
|
|
7289
|
+
"anthropic-beta": [...betas ?? [], "mcp-tunnels-2026-06-22"].toString(),
|
|
7290
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7291
|
+
},
|
|
7010
7292
|
options?.headers
|
|
7011
7293
|
])
|
|
7012
7294
|
});
|
|
@@ -7017,74 +7299,95 @@ Tunnels.Certificates = Certificates;
|
|
|
7017
7299
|
// node_modules/@earendil-works/pi-ai/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs
|
|
7018
7300
|
class Credentials extends APIResource {
|
|
7019
7301
|
create(vaultID, params, options) {
|
|
7020
|
-
const { betas, ...body } = params;
|
|
7302
|
+
const { betas, workspace_id, ...body } = params;
|
|
7021
7303
|
return this._client.post(path`/v1/vaults/${vaultID}/credentials?beta=true`, {
|
|
7022
7304
|
body,
|
|
7023
7305
|
...options,
|
|
7024
7306
|
headers: buildHeaders([
|
|
7025
|
-
{
|
|
7307
|
+
{
|
|
7308
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
7309
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7310
|
+
},
|
|
7026
7311
|
options?.headers
|
|
7027
7312
|
])
|
|
7028
7313
|
});
|
|
7029
7314
|
}
|
|
7030
7315
|
retrieve(credentialID, params, options) {
|
|
7031
|
-
const { vault_id, betas } = params;
|
|
7316
|
+
const { vault_id, betas, workspace_id } = params;
|
|
7032
7317
|
return this._client.get(path`/v1/vaults/${vault_id}/credentials/${credentialID}?beta=true`, {
|
|
7033
7318
|
...options,
|
|
7034
7319
|
headers: buildHeaders([
|
|
7035
|
-
{
|
|
7320
|
+
{
|
|
7321
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
7322
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7323
|
+
},
|
|
7036
7324
|
options?.headers
|
|
7037
7325
|
])
|
|
7038
7326
|
});
|
|
7039
7327
|
}
|
|
7040
7328
|
update(credentialID, params, options) {
|
|
7041
|
-
const { vault_id, betas, ...body } = params;
|
|
7329
|
+
const { vault_id, betas, workspace_id, ...body } = params;
|
|
7042
7330
|
return this._client.post(path`/v1/vaults/${vault_id}/credentials/${credentialID}?beta=true`, {
|
|
7043
7331
|
body,
|
|
7044
7332
|
...options,
|
|
7045
7333
|
headers: buildHeaders([
|
|
7046
|
-
{
|
|
7334
|
+
{
|
|
7335
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
7336
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7337
|
+
},
|
|
7047
7338
|
options?.headers
|
|
7048
7339
|
])
|
|
7049
7340
|
});
|
|
7050
7341
|
}
|
|
7051
7342
|
list(vaultID, params = {}, options) {
|
|
7052
|
-
const { betas, ...query2 } = params ?? {};
|
|
7343
|
+
const { betas, workspace_id, ...query2 } = params ?? {};
|
|
7053
7344
|
return this._client.getAPIList(path`/v1/vaults/${vaultID}/credentials?beta=true`, PageCursor, {
|
|
7054
7345
|
query: query2,
|
|
7055
7346
|
...options,
|
|
7056
7347
|
headers: buildHeaders([
|
|
7057
|
-
{
|
|
7348
|
+
{
|
|
7349
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
7350
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7351
|
+
},
|
|
7058
7352
|
options?.headers
|
|
7059
7353
|
])
|
|
7060
7354
|
});
|
|
7061
7355
|
}
|
|
7062
7356
|
delete(credentialID, params, options) {
|
|
7063
|
-
const { vault_id, betas } = params;
|
|
7357
|
+
const { vault_id, betas, workspace_id } = params;
|
|
7064
7358
|
return this._client.delete(path`/v1/vaults/${vault_id}/credentials/${credentialID}?beta=true`, {
|
|
7065
7359
|
...options,
|
|
7066
7360
|
headers: buildHeaders([
|
|
7067
|
-
{
|
|
7361
|
+
{
|
|
7362
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
7363
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7364
|
+
},
|
|
7068
7365
|
options?.headers
|
|
7069
7366
|
])
|
|
7070
7367
|
});
|
|
7071
7368
|
}
|
|
7072
7369
|
archive(credentialID, params, options) {
|
|
7073
|
-
const { vault_id, betas } = params;
|
|
7370
|
+
const { vault_id, betas, workspace_id } = params;
|
|
7074
7371
|
return this._client.post(path`/v1/vaults/${vault_id}/credentials/${credentialID}/archive?beta=true`, {
|
|
7075
7372
|
...options,
|
|
7076
7373
|
headers: buildHeaders([
|
|
7077
|
-
{
|
|
7374
|
+
{
|
|
7375
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
7376
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7377
|
+
},
|
|
7078
7378
|
options?.headers
|
|
7079
7379
|
])
|
|
7080
7380
|
});
|
|
7081
7381
|
}
|
|
7082
7382
|
mcpOAuthValidate(credentialID, params, options) {
|
|
7083
|
-
const { vault_id, betas } = params;
|
|
7383
|
+
const { vault_id, betas, workspace_id } = params;
|
|
7084
7384
|
return this._client.post(path`/v1/vaults/${vault_id}/credentials/${credentialID}/mcp_oauth_validate?beta=true`, {
|
|
7085
7385
|
...options,
|
|
7086
7386
|
headers: buildHeaders([
|
|
7087
|
-
{
|
|
7387
|
+
{
|
|
7388
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
7389
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7390
|
+
},
|
|
7088
7391
|
options?.headers
|
|
7089
7392
|
])
|
|
7090
7393
|
});
|
|
@@ -7098,64 +7401,82 @@ class Vaults extends APIResource {
|
|
|
7098
7401
|
this.credentials = new Credentials(this._client);
|
|
7099
7402
|
}
|
|
7100
7403
|
create(params, options) {
|
|
7101
|
-
const { betas, ...body } = params;
|
|
7404
|
+
const { betas, workspace_id, ...body } = params;
|
|
7102
7405
|
return this._client.post("/v1/vaults?beta=true", {
|
|
7103
7406
|
body,
|
|
7104
7407
|
...options,
|
|
7105
7408
|
headers: buildHeaders([
|
|
7106
|
-
{
|
|
7409
|
+
{
|
|
7410
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
7411
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7412
|
+
},
|
|
7107
7413
|
options?.headers
|
|
7108
7414
|
])
|
|
7109
7415
|
});
|
|
7110
7416
|
}
|
|
7111
7417
|
retrieve(vaultID, params = {}, options) {
|
|
7112
|
-
const { betas } = params ?? {};
|
|
7418
|
+
const { betas, workspace_id } = params ?? {};
|
|
7113
7419
|
return this._client.get(path`/v1/vaults/${vaultID}?beta=true`, {
|
|
7114
7420
|
...options,
|
|
7115
7421
|
headers: buildHeaders([
|
|
7116
|
-
{
|
|
7422
|
+
{
|
|
7423
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
7424
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7425
|
+
},
|
|
7117
7426
|
options?.headers
|
|
7118
7427
|
])
|
|
7119
7428
|
});
|
|
7120
7429
|
}
|
|
7121
7430
|
update(vaultID, params, options) {
|
|
7122
|
-
const { betas, ...body } = params;
|
|
7431
|
+
const { betas, workspace_id, ...body } = params;
|
|
7123
7432
|
return this._client.post(path`/v1/vaults/${vaultID}?beta=true`, {
|
|
7124
7433
|
body,
|
|
7125
7434
|
...options,
|
|
7126
7435
|
headers: buildHeaders([
|
|
7127
|
-
{
|
|
7436
|
+
{
|
|
7437
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
7438
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7439
|
+
},
|
|
7128
7440
|
options?.headers
|
|
7129
7441
|
])
|
|
7130
7442
|
});
|
|
7131
7443
|
}
|
|
7132
7444
|
list(params = {}, options) {
|
|
7133
|
-
const { betas, ...query2 } = params ?? {};
|
|
7445
|
+
const { betas, workspace_id, ...query2 } = params ?? {};
|
|
7134
7446
|
return this._client.getAPIList("/v1/vaults?beta=true", PageCursor, {
|
|
7135
7447
|
query: query2,
|
|
7136
7448
|
...options,
|
|
7137
7449
|
headers: buildHeaders([
|
|
7138
|
-
{
|
|
7450
|
+
{
|
|
7451
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
7452
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7453
|
+
},
|
|
7139
7454
|
options?.headers
|
|
7140
7455
|
])
|
|
7141
7456
|
});
|
|
7142
7457
|
}
|
|
7143
7458
|
delete(vaultID, params = {}, options) {
|
|
7144
|
-
const { betas } = params ?? {};
|
|
7459
|
+
const { betas, workspace_id } = params ?? {};
|
|
7145
7460
|
return this._client.delete(path`/v1/vaults/${vaultID}?beta=true`, {
|
|
7146
7461
|
...options,
|
|
7147
7462
|
headers: buildHeaders([
|
|
7148
|
-
{
|
|
7463
|
+
{
|
|
7464
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
7465
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7466
|
+
},
|
|
7149
7467
|
options?.headers
|
|
7150
7468
|
])
|
|
7151
7469
|
});
|
|
7152
7470
|
}
|
|
7153
7471
|
archive(vaultID, params = {}, options) {
|
|
7154
|
-
const { betas } = params ?? {};
|
|
7472
|
+
const { betas, workspace_id } = params ?? {};
|
|
7155
7473
|
return this._client.post(path`/v1/vaults/${vaultID}/archive?beta=true`, {
|
|
7156
7474
|
...options,
|
|
7157
7475
|
headers: buildHeaders([
|
|
7158
|
-
{
|
|
7476
|
+
{
|
|
7477
|
+
"anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString(),
|
|
7478
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7479
|
+
},
|
|
7159
7480
|
options?.headers
|
|
7160
7481
|
])
|
|
7161
7482
|
});
|
|
@@ -7204,13 +7525,16 @@ Beta.Organization = Organization;
|
|
|
7204
7525
|
// node_modules/@earendil-works/pi-ai/node_modules/@anthropic-ai/sdk/resources/completions.mjs
|
|
7205
7526
|
class Completions extends APIResource {
|
|
7206
7527
|
create(params, options) {
|
|
7207
|
-
const { betas, ...body } = params;
|
|
7528
|
+
const { betas, workspace_id, ...body } = params;
|
|
7208
7529
|
return this._client.post("/v1/complete", {
|
|
7209
7530
|
body,
|
|
7210
7531
|
timeout: this._client._options.timeout ?? 600000,
|
|
7211
7532
|
...options,
|
|
7212
7533
|
headers: buildHeaders([
|
|
7213
|
-
{
|
|
7534
|
+
{
|
|
7535
|
+
...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined,
|
|
7536
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7537
|
+
},
|
|
7214
7538
|
options?.headers
|
|
7215
7539
|
]),
|
|
7216
7540
|
stream: params.stream ?? false
|
|
@@ -7219,27 +7543,61 @@ class Completions extends APIResource {
|
|
|
7219
7543
|
}
|
|
7220
7544
|
// node_modules/@earendil-works/pi-ai/node_modules/@anthropic-ai/sdk/resources/files.mjs
|
|
7221
7545
|
class Files2 extends APIResource {
|
|
7222
|
-
list(
|
|
7223
|
-
|
|
7546
|
+
list(params = {}, options) {
|
|
7547
|
+
const { workspace_id, ...query2 } = params ?? {};
|
|
7548
|
+
return this._client.getAPIList("/v1/files", PageCursor, {
|
|
7549
|
+
query: query2,
|
|
7550
|
+
...options,
|
|
7551
|
+
headers: buildHeaders([
|
|
7552
|
+
{ ...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined },
|
|
7553
|
+
options?.headers
|
|
7554
|
+
])
|
|
7555
|
+
});
|
|
7224
7556
|
}
|
|
7225
|
-
delete(fileID, options) {
|
|
7226
|
-
|
|
7557
|
+
delete(fileID, params = {}, options) {
|
|
7558
|
+
const { workspace_id } = params ?? {};
|
|
7559
|
+
return this._client.delete(path`/v1/files/${fileID}`, {
|
|
7560
|
+
...options,
|
|
7561
|
+
headers: buildHeaders([
|
|
7562
|
+
{ ...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined },
|
|
7563
|
+
options?.headers
|
|
7564
|
+
])
|
|
7565
|
+
});
|
|
7227
7566
|
}
|
|
7228
|
-
download(fileID, options) {
|
|
7567
|
+
download(fileID, params = {}, options) {
|
|
7568
|
+
const { workspace_id } = params ?? {};
|
|
7229
7569
|
return this._client.get(path`/v1/files/${fileID}/content`, {
|
|
7230
7570
|
...options,
|
|
7231
|
-
headers: buildHeaders([
|
|
7571
|
+
headers: buildHeaders([
|
|
7572
|
+
{
|
|
7573
|
+
Accept: "application/binary",
|
|
7574
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
7575
|
+
},
|
|
7576
|
+
options?.headers
|
|
7577
|
+
]),
|
|
7232
7578
|
__binaryResponse: true
|
|
7233
7579
|
});
|
|
7234
7580
|
}
|
|
7235
|
-
retrieveMetadata(fileID, options) {
|
|
7236
|
-
|
|
7581
|
+
retrieveMetadata(fileID, params = {}, options) {
|
|
7582
|
+
const { workspace_id } = params ?? {};
|
|
7583
|
+
return this._client.get(path`/v1/files/${fileID}`, {
|
|
7584
|
+
...options,
|
|
7585
|
+
headers: buildHeaders([
|
|
7586
|
+
{ ...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined },
|
|
7587
|
+
options?.headers
|
|
7588
|
+
])
|
|
7589
|
+
});
|
|
7237
7590
|
}
|
|
7238
|
-
upload(
|
|
7591
|
+
upload(params, options) {
|
|
7592
|
+
const { workspace_id, ...body } = params;
|
|
7239
7593
|
return this._client.post("/v1/files", multipartFormRequestOptions({
|
|
7240
7594
|
body,
|
|
7241
7595
|
...options,
|
|
7242
|
-
headers: buildHeaders([
|
|
7596
|
+
headers: buildHeaders([
|
|
7597
|
+
{ ...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined },
|
|
7598
|
+
stainlessHelperHeaderFromFile(body.file),
|
|
7599
|
+
options?.headers
|
|
7600
|
+
])
|
|
7243
7601
|
}, this._client));
|
|
7244
7602
|
}
|
|
7245
7603
|
}
|
|
@@ -7846,36 +8204,75 @@ class MessageStream {
|
|
|
7846
8204
|
// node_modules/@earendil-works/pi-ai/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs
|
|
7847
8205
|
class Batches2 extends APIResource {
|
|
7848
8206
|
create(params, options) {
|
|
7849
|
-
const { user_profile_id, ...body } = params;
|
|
8207
|
+
const { user_profile_id, workspace_id, ...body } = params;
|
|
7850
8208
|
return this._client.post("/v1/messages/batches", {
|
|
7851
8209
|
body,
|
|
7852
8210
|
...options,
|
|
7853
8211
|
headers: buildHeaders([
|
|
7854
|
-
{
|
|
8212
|
+
{
|
|
8213
|
+
...user_profile_id != null ? { "anthropic-user-profile-id": user_profile_id } : undefined,
|
|
8214
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
8215
|
+
},
|
|
7855
8216
|
options?.headers
|
|
7856
8217
|
])
|
|
7857
8218
|
});
|
|
7858
8219
|
}
|
|
7859
|
-
retrieve(messageBatchID, options) {
|
|
7860
|
-
|
|
8220
|
+
retrieve(messageBatchID, params = {}, options) {
|
|
8221
|
+
const { workspace_id } = params ?? {};
|
|
8222
|
+
return this._client.get(path`/v1/messages/batches/${messageBatchID}`, {
|
|
8223
|
+
...options,
|
|
8224
|
+
headers: buildHeaders([
|
|
8225
|
+
{ ...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined },
|
|
8226
|
+
options?.headers
|
|
8227
|
+
])
|
|
8228
|
+
});
|
|
7861
8229
|
}
|
|
7862
|
-
list(
|
|
7863
|
-
|
|
8230
|
+
list(params = {}, options) {
|
|
8231
|
+
const { workspace_id, ...query2 } = params ?? {};
|
|
8232
|
+
return this._client.getAPIList("/v1/messages/batches", Page, {
|
|
8233
|
+
query: query2,
|
|
8234
|
+
...options,
|
|
8235
|
+
headers: buildHeaders([
|
|
8236
|
+
{ ...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined },
|
|
8237
|
+
options?.headers
|
|
8238
|
+
])
|
|
8239
|
+
});
|
|
7864
8240
|
}
|
|
7865
|
-
delete(messageBatchID, options) {
|
|
7866
|
-
|
|
8241
|
+
delete(messageBatchID, params = {}, options) {
|
|
8242
|
+
const { workspace_id } = params ?? {};
|
|
8243
|
+
return this._client.delete(path`/v1/messages/batches/${messageBatchID}`, {
|
|
8244
|
+
...options,
|
|
8245
|
+
headers: buildHeaders([
|
|
8246
|
+
{ ...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined },
|
|
8247
|
+
options?.headers
|
|
8248
|
+
])
|
|
8249
|
+
});
|
|
7867
8250
|
}
|
|
7868
|
-
cancel(messageBatchID, options) {
|
|
7869
|
-
|
|
8251
|
+
cancel(messageBatchID, params = {}, options) {
|
|
8252
|
+
const { workspace_id } = params ?? {};
|
|
8253
|
+
return this._client.post(path`/v1/messages/batches/${messageBatchID}/cancel`, {
|
|
8254
|
+
...options,
|
|
8255
|
+
headers: buildHeaders([
|
|
8256
|
+
{ ...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined },
|
|
8257
|
+
options?.headers
|
|
8258
|
+
])
|
|
8259
|
+
});
|
|
7870
8260
|
}
|
|
7871
|
-
async results(messageBatchID, options) {
|
|
7872
|
-
const batch = await this.retrieve(messageBatchID);
|
|
8261
|
+
async results(messageBatchID, params = {}, options) {
|
|
8262
|
+
const batch = await this.retrieve(messageBatchID, params, options);
|
|
7873
8263
|
if (!batch.results_url) {
|
|
7874
8264
|
throw new AnthropicError(`No batch \`results_url\`; Has it finished processing? ${batch.processing_status} - ${batch.id}`);
|
|
7875
8265
|
}
|
|
8266
|
+
const { workspace_id } = params ?? {};
|
|
7876
8267
|
return this._client.get(batch.results_url, {
|
|
7877
8268
|
...options,
|
|
7878
|
-
headers: buildHeaders([
|
|
8269
|
+
headers: buildHeaders([
|
|
8270
|
+
{
|
|
8271
|
+
Accept: "application/binary",
|
|
8272
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
8273
|
+
},
|
|
8274
|
+
options?.headers
|
|
8275
|
+
]),
|
|
7879
8276
|
stream: true,
|
|
7880
8277
|
__binaryResponse: true
|
|
7881
8278
|
})._thenUnwrap((_, props) => JSONLDecoder.fromResponse(props.response, props.controller));
|
|
@@ -7889,7 +8286,7 @@ class Messages2 extends APIResource {
|
|
|
7889
8286
|
this.batches = new Batches2(this._client);
|
|
7890
8287
|
}
|
|
7891
8288
|
create(params, options) {
|
|
7892
|
-
const { user_profile_id, ...body } = params;
|
|
8289
|
+
const { user_profile_id, workspace_id, ...body } = params;
|
|
7893
8290
|
if (body.model in DEPRECATED_MODELS2) {
|
|
7894
8291
|
console.warn(`The model '${body.model}' is deprecated and will reach end-of-life on ${DEPRECATED_MODELS2[body.model]}
|
|
7895
8292
|
Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more information.`);
|
|
@@ -7908,7 +8305,10 @@ Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resour
|
|
|
7908
8305
|
timeout: timeout ?? 600000,
|
|
7909
8306
|
...options,
|
|
7910
8307
|
headers: buildHeaders([
|
|
7911
|
-
{
|
|
8308
|
+
{
|
|
8309
|
+
...user_profile_id != null ? { "anthropic-user-profile-id": user_profile_id } : undefined,
|
|
8310
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
8311
|
+
},
|
|
7912
8312
|
helperHeader2,
|
|
7913
8313
|
options?.headers
|
|
7914
8314
|
]),
|
|
@@ -7922,12 +8322,15 @@ Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resour
|
|
|
7922
8322
|
return MessageStream.createMessage(this, body, options, { logger: this._client.logger ?? console });
|
|
7923
8323
|
}
|
|
7924
8324
|
countTokens(params, options) {
|
|
7925
|
-
const { user_profile_id, ...body } = params;
|
|
8325
|
+
const { user_profile_id, workspace_id, ...body } = params;
|
|
7926
8326
|
return this._client.post("/v1/messages/count_tokens", {
|
|
7927
8327
|
body,
|
|
7928
8328
|
...options,
|
|
7929
8329
|
headers: buildHeaders([
|
|
7930
|
-
{
|
|
8330
|
+
{
|
|
8331
|
+
...user_profile_id != null ? { "anthropic-user-profile-id": user_profile_id } : undefined,
|
|
8332
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
8333
|
+
},
|
|
7931
8334
|
options?.headers
|
|
7932
8335
|
])
|
|
7933
8336
|
});
|
|
@@ -7939,22 +8342,28 @@ Messages2.Batches = Batches2;
|
|
|
7939
8342
|
// node_modules/@earendil-works/pi-ai/node_modules/@anthropic-ai/sdk/resources/models.mjs
|
|
7940
8343
|
class Models2 extends APIResource {
|
|
7941
8344
|
retrieve(modelID, params = {}, options) {
|
|
7942
|
-
const { betas } = params ?? {};
|
|
8345
|
+
const { betas, workspace_id } = params ?? {};
|
|
7943
8346
|
return this._client.get(path`/v1/models/${modelID}`, {
|
|
7944
8347
|
...options,
|
|
7945
8348
|
headers: buildHeaders([
|
|
7946
|
-
{
|
|
8349
|
+
{
|
|
8350
|
+
...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined,
|
|
8351
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
8352
|
+
},
|
|
7947
8353
|
options?.headers
|
|
7948
8354
|
])
|
|
7949
8355
|
});
|
|
7950
8356
|
}
|
|
7951
8357
|
list(params = {}, options) {
|
|
7952
|
-
const { betas, ...query2 } = params ?? {};
|
|
8358
|
+
const { betas, workspace_id, ...query2 } = params ?? {};
|
|
7953
8359
|
return this._client.getAPIList("/v1/models", Page, {
|
|
7954
8360
|
query: query2,
|
|
7955
8361
|
...options,
|
|
7956
8362
|
headers: buildHeaders([
|
|
7957
|
-
{
|
|
8363
|
+
{
|
|
8364
|
+
...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined,
|
|
8365
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
8366
|
+
},
|
|
7958
8367
|
options?.headers
|
|
7959
8368
|
])
|
|
7960
8369
|
});
|
|
@@ -7962,22 +8371,47 @@ class Models2 extends APIResource {
|
|
|
7962
8371
|
}
|
|
7963
8372
|
// node_modules/@earendil-works/pi-ai/node_modules/@anthropic-ai/sdk/resources/skills/versions.mjs
|
|
7964
8373
|
class Versions3 extends APIResource {
|
|
7965
|
-
create(skillID,
|
|
7966
|
-
|
|
8374
|
+
create(skillID, params, options) {
|
|
8375
|
+
const { workspace_id, ...body } = params;
|
|
8376
|
+
return this._client.post(path`/v1/skills/${skillID}/versions`, multipartFormRequestOptions({
|
|
8377
|
+
body,
|
|
8378
|
+
...options,
|
|
8379
|
+
headers: buildHeaders([
|
|
8380
|
+
{ ...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined },
|
|
8381
|
+
options?.headers
|
|
8382
|
+
])
|
|
8383
|
+
}, this._client, false));
|
|
7967
8384
|
}
|
|
7968
8385
|
retrieve(version, params, options) {
|
|
7969
|
-
const { skill_id } = params;
|
|
7970
|
-
return this._client.get(path`/v1/skills/${skill_id}/versions/${version}`,
|
|
8386
|
+
const { skill_id, workspace_id } = params;
|
|
8387
|
+
return this._client.get(path`/v1/skills/${skill_id}/versions/${version}`, {
|
|
8388
|
+
...options,
|
|
8389
|
+
headers: buildHeaders([
|
|
8390
|
+
{ ...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined },
|
|
8391
|
+
options?.headers
|
|
8392
|
+
])
|
|
8393
|
+
});
|
|
7971
8394
|
}
|
|
7972
|
-
list(skillID,
|
|
8395
|
+
list(skillID, params = {}, options) {
|
|
8396
|
+
const { workspace_id, ...query2 } = params ?? {};
|
|
7973
8397
|
return this._client.getAPIList(path`/v1/skills/${skillID}/versions`, PageCursor, {
|
|
7974
8398
|
query: query2,
|
|
7975
|
-
...options
|
|
8399
|
+
...options,
|
|
8400
|
+
headers: buildHeaders([
|
|
8401
|
+
{ ...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined },
|
|
8402
|
+
options?.headers
|
|
8403
|
+
])
|
|
7976
8404
|
});
|
|
7977
8405
|
}
|
|
7978
8406
|
delete(version, params, options) {
|
|
7979
|
-
const { skill_id } = params;
|
|
7980
|
-
return this._client.delete(path`/v1/skills/${skill_id}/versions/${version}`,
|
|
8407
|
+
const { skill_id, workspace_id } = params;
|
|
8408
|
+
return this._client.delete(path`/v1/skills/${skill_id}/versions/${version}`, {
|
|
8409
|
+
...options,
|
|
8410
|
+
headers: buildHeaders([
|
|
8411
|
+
{ ...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined },
|
|
8412
|
+
options?.headers
|
|
8413
|
+
])
|
|
8414
|
+
});
|
|
7981
8415
|
}
|
|
7982
8416
|
}
|
|
7983
8417
|
|
|
@@ -7987,17 +8421,47 @@ class Skills2 extends APIResource {
|
|
|
7987
8421
|
super(...arguments);
|
|
7988
8422
|
this.versions = new Versions3(this._client);
|
|
7989
8423
|
}
|
|
7990
|
-
create(
|
|
7991
|
-
|
|
8424
|
+
create(params, options) {
|
|
8425
|
+
const { workspace_id, ...body } = params;
|
|
8426
|
+
return this._client.post("/v1/skills", multipartFormRequestOptions({
|
|
8427
|
+
body,
|
|
8428
|
+
...options,
|
|
8429
|
+
headers: buildHeaders([
|
|
8430
|
+
{ ...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined },
|
|
8431
|
+
options?.headers
|
|
8432
|
+
])
|
|
8433
|
+
}, this._client, false));
|
|
7992
8434
|
}
|
|
7993
|
-
retrieve(skillID, options) {
|
|
7994
|
-
|
|
8435
|
+
retrieve(skillID, params = {}, options) {
|
|
8436
|
+
const { workspace_id } = params ?? {};
|
|
8437
|
+
return this._client.get(path`/v1/skills/${skillID}`, {
|
|
8438
|
+
...options,
|
|
8439
|
+
headers: buildHeaders([
|
|
8440
|
+
{ ...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined },
|
|
8441
|
+
options?.headers
|
|
8442
|
+
])
|
|
8443
|
+
});
|
|
7995
8444
|
}
|
|
7996
|
-
list(
|
|
7997
|
-
|
|
8445
|
+
list(params = {}, options) {
|
|
8446
|
+
const { workspace_id, ...query2 } = params ?? {};
|
|
8447
|
+
return this._client.getAPIList("/v1/skills", PageCursor, {
|
|
8448
|
+
query: query2,
|
|
8449
|
+
...options,
|
|
8450
|
+
headers: buildHeaders([
|
|
8451
|
+
{ ...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined },
|
|
8452
|
+
options?.headers
|
|
8453
|
+
])
|
|
8454
|
+
});
|
|
7998
8455
|
}
|
|
7999
|
-
delete(skillID, options) {
|
|
8000
|
-
|
|
8456
|
+
delete(skillID, params = {}, options) {
|
|
8457
|
+
const { workspace_id } = params ?? {};
|
|
8458
|
+
return this._client.delete(path`/v1/skills/${skillID}`, {
|
|
8459
|
+
...options,
|
|
8460
|
+
headers: buildHeaders([
|
|
8461
|
+
{ ...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined },
|
|
8462
|
+
options?.headers
|
|
8463
|
+
])
|
|
8464
|
+
});
|
|
8001
8465
|
}
|
|
8002
8466
|
}
|
|
8003
8467
|
Skills2.Versions = Versions3;
|