@desplega.ai/agent-swarm 2.5.3 → 2.6.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 +2 -2
- package/dist/{acp-adapter-gr2fcyyj.js → acp-adapter-dgfakfpw.js} +9 -9
- package/dist/{actions-wv766ghf.js → actions-fbqma8aa.js} +21 -21
- package/dist/{amp-adapter-speb906t.js → amp-adapter-en0jy6hs.js} +4 -4
- package/dist/{app-ag29n14f.js → app-k8a5cgpp.js} +3 -3
- package/dist/{assistant-3x8bz3eg.js → assistant-a16433gr.js} +30 -26
- package/dist/{boot-reembed-jsmfrpzf.js → boot-reembed-6c1sjfnr.js} +1 -1
- package/dist/{boot-reembed-5b3d2eea.js → boot-reembed-f4nn561n.js} +1 -1
- package/dist/{boot-scrub-sweep-s73gerxy.js → boot-scrub-sweep-d4w9gajf.js} +4 -4
- package/dist/{boot-seeds-5zmax2wr.js → boot-seeds-9bmkspyw.js} +4 -4
- package/dist/{claude-adapter-hswdnm3t.js → claude-adapter-nys1kjxa.js} +9 -9
- package/dist/{claude-managed-adapter-cvbzj1h6.js → claude-managed-adapter-55207973.js} +3 -3
- package/dist/{claude-managed-setup-3k8m3hhc.js → claude-managed-setup-3cm35gey.js} +11 -4
- package/dist/{claude-sdk-session-fkbyk66x.js → claude-sdk-session-nw5yd8cp.js} +9313 -9260
- package/dist/{cli-210xd1f4.js → cli-03gg9pd1.js} +4 -4
- package/dist/{cli-kxpfx2xr.js → cli-0z1xjzwa.js} +2 -2
- package/dist/cli-1tem6ns9.js +894 -0
- package/dist/{cli-25j01dpj.js → cli-24j1jeeb.js} +3 -3
- package/dist/{cli-ta8bd7th.js → cli-2sjhpsns.js} +2 -2
- package/dist/{cli-p859hcc8.js → cli-39aet655.js} +2 -2
- package/dist/{cli-g1cw7xtt.js → cli-39rrw8yp.js} +1 -1
- package/dist/{cli-e2ar4bp1.js → cli-3aqd4jaa.js} +121 -47
- package/dist/{cli-jjznk3f7.js → cli-3fwqy71j.js} +69 -35
- package/dist/{cli-p9rafdrb.js → cli-3gfvmzht.js} +7 -7
- package/dist/{cli-03vpq45j.js → cli-3ndmpxxv.js} +2 -2
- package/dist/{cli-aecdcr77.js → cli-4hxrf0p4.js} +228 -74
- package/dist/{cli-mz9afxxf.js → cli-4rf0f5vg.js} +15 -3
- package/dist/{cli-qzme5949.js → cli-5rj83bam.js} +284 -202
- package/dist/{cli-fsdprwrg.js → cli-5sckpqcx.js} +2 -2
- package/dist/{cli-cz5nmdxt.js → cli-683y0b3a.js} +2 -2
- package/dist/{cli-3ngdk5te.js → cli-6y51ryva.js} +2 -2
- package/dist/{cli-n4c8e3s5.js → cli-708wdy32.js} +1 -1
- package/dist/{cli-pasyvjmm.js → cli-737pyqxr.js} +1 -1
- package/dist/{cli-gx4rm0qx.js → cli-7enjwya9.js} +1 -1
- package/dist/{cli-6x9ma5w5.js → cli-803188pb.js} +1 -1
- package/dist/{cli-avdvgcay.js → cli-9abdgn5t.js} +28 -9
- package/dist/{cli-99xgw26r.js → cli-a2rr0fmg.js} +1 -1
- package/dist/{cli-e5bxnjps.js → cli-a34pr3w1.js} +7 -7
- package/dist/{cli-502eqv93.js → cli-abkm71vr.js} +1 -1
- package/dist/{cli-mmhj8vd7.js → cli-ag2yrnt5.js} +11 -2
- package/dist/{cli-n45mr7zh.js → cli-aj8djyqt.js} +5 -5
- package/dist/{cli-1fc85mvt.js → cli-art7c1zh.js} +5 -5
- package/dist/{cli-40jsnrjm.js → cli-az25fn5f.js} +10 -8
- package/dist/{cli-9s05422w.js → cli-bqztfyve.js} +1 -1
- package/dist/{cli-bn0rewsy.js → cli-c081bj3b.js} +2 -2
- package/dist/{cli-svrj71pg.js → cli-c2habvsf.js} +12 -12
- package/dist/{cli-s49hpn37.js → cli-ca6banwz.js} +85 -19
- package/dist/{cli-hhxjnjzs.js → cli-cz37jqss.js} +12 -10
- package/dist/{cli-6n8axjv1.js → cli-d2dpf95n.js} +2 -2
- package/dist/{cli-tx00c0h6.js → cli-dqygeeh5.js} +17 -1
- package/dist/{cli-z21whrrg.js → cli-emhjcj2y.js} +17 -17
- package/dist/{cli-e8jyq7d8.js → cli-esakngh8.js} +7 -3
- package/dist/{cli-ha9rmwgq.js → cli-fb8m699c.js} +2 -2
- package/dist/{cli-35gtk1p6.js → cli-ffvsj2qw.js} +44 -13
- package/dist/{cli-ce0ak9ms.js → cli-g20jjwt4.js} +26 -26
- package/dist/{cli-kxawjrxg.js → cli-g8ka5j4j.js} +772 -194
- package/dist/{cli-vwn81jbs.js → cli-gf95q3bm.js} +5 -5
- package/dist/{cli-s53vp709.js → cli-gnsb1zxa.js} +2 -2
- package/dist/{cli-nwyw3zhg.js → cli-gxee0bqa.js} +1 -1
- package/dist/{cli-gpv60278.js → cli-hfeb68z4.js} +7 -7
- package/dist/{cli-0ebey9hg.js → cli-j6rktc91.js} +1 -1
- package/dist/{cli-ewm3pwbq.js → cli-k21gx5ht.js} +46 -23
- package/dist/{cli-egjggehm.js → cli-kf4jree9.js} +2 -2
- package/dist/{cli-dabehxhp.js → cli-kt907da6.js} +1 -1
- package/dist/{cli-p0rzjkya.js → cli-m5a9m0ak.js} +32 -13
- package/dist/{cli-fzcn3d87.js → cli-m70bajzr.js} +3 -3
- package/dist/{cli-w1zwctj2.js → cli-mtnj4fwa.js} +11 -5
- package/dist/{cli-gpsz7g88.js → cli-mvjz5an3.js} +16 -12
- package/dist/{cli-hcpj2xqz.js → cli-n7asmce6.js} +225 -3
- package/dist/{cli-y561h5a9.js → cli-nn6vx2mq.js} +5 -5
- package/dist/cli-nq677csy.js +140 -0
- package/dist/{cli-a5ebc95n.js → cli-pfk92eqz.js} +18 -15
- package/dist/{cli-p6zs9h4y.js → cli-rr7zx19j.js} +767 -249
- package/dist/{cli-qgf8emrn.js → cli-sqma6vw1.js} +10 -7
- package/dist/{cli-0xk505e8.js → cli-sxgtf5fw.js} +1 -1
- package/dist/{cli-nzfnt2gs.js → cli-tf1n0r0b.js} +1 -1
- package/dist/{cli-qqzmjxkf.js → cli-v49fkghp.js} +11 -6
- package/dist/{cli-x77gen2p.js → cli-w2656ka1.js} +7 -7
- package/dist/{cli-5kqnemen.js → cli-yvy48785.js} +1 -1
- package/dist/{cli-8s5wx3nz.js → cli-zqne1qcj.js} +44 -17
- package/dist/cli.js +22 -22
- package/dist/{codex-adapter-n8ka66vf.js → codex-adapter-d95q4qsn.js} +7 -7
- package/dist/{codex-hook-e2he7aca.js → codex-hook-brpnycn5.js} +1 -1
- package/dist/{codex-login-rn7c5gxt.js → codex-login-8cg0vhf2.js} +1 -1
- package/dist/{codex-session-runner-fsebts37.js → codex-session-runner-gdwd8h0c.js} +8 -8
- package/dist/{commands-t04rt2pc.js → commands-jqmgk54b.js} +2 -2
- package/dist/{controller-rgna04r2.js → controller-z3jq589f.js} +30 -4
- package/dist/{controllers-connect-bqm1rtft.js → controllers-connect-r2za39ef.js} +23 -23
- package/dist/{cursor-adapter-swr2k95y.js → cursor-adapter-4mr4jgkw.js} +2 -3
- package/dist/{db-a4m7haw0.js → db-ppv2tze7.js} +3 -3
- package/dist/{db-24ck09xy.js → db-w36wwb5g.js} +4 -2
- package/dist/{devin-adapter-4ycy4vrf.js → devin-adapter-byen2cxt.js} +1 -1
- package/dist/{dispatcher-nwf9ss0q.js → dispatcher-pv5h77vf.js} +20 -20
- package/dist/{docker-nfy2gc8t.js → docker-fdzyewpz.js} +4 -4
- package/dist/{dsh-adapter-kpdnhjst.js → dsh-adapter-d4pdpb3r.js} +2 -3
- package/dist/{e2b-9gkdhm3c.js → e2b-222hsajc.js} +2 -2
- package/dist/{e2b-cjtf8k1z.js → e2b-fn3zacvt.js} +2 -2
- package/dist/{easter-egg-3d-e4qv8dxj.js → easter-egg-3d-4sp4dvmc.js} +1 -1
- package/dist/{event-bus-3z78ep5n.js → event-bus-pghg8hqy.js} +1 -1
- package/dist/{execute-0xpz8950.js → execute-jev839y1.js} +1 -1
- package/dist/{external-channel-j1e2p34p.js → external-channel-y6nkzhnn.js} +2 -2
- package/dist/{grok-adapter-qtjz0whk.js → grok-adapter-t08b9ntm.js} +10 -10
- package/dist/handlers-eqsnmv95.js +41 -0
- package/dist/{heartbeat-vtesda5d.js → heartbeat-vn31xwdk.js} +23 -23
- package/dist/{hook-b2hhj6rd.js → hook-6d0zbvvt.js} +6 -5
- package/dist/{hook-8wqaszda.js → hook-cpjs8q51.js} +13 -7
- package/dist/{http-mxcqhhcs.js → http-9c6medda.js} +1085 -136
- package/dist/{index-spwxjgay.js → index-38t35h0n.js} +20 -20
- package/dist/{index-1r8wfpzs.js → index-g6k9tctj.js} +1 -1
- package/dist/{index-srg522m6.js → index-k0yt1tvq.js} +20 -20
- package/dist/{index-31ceyf42.js → index-pkma1yf8.js} +1 -1
- package/dist/{index-n1vbvta9.js → index-qhjf2htm.js} +29 -24
- package/dist/index-yqgbfgaj.js +43 -0
- package/dist/{keepalive-dsd8rtgx.js → keepalive-em0117bp.js} +4 -4
- package/dist/lead-23e7z59t.js +79 -0
- package/dist/{maintenance-jqmqwnet.js → maintenance-kbme3qy9.js} +1 -1
- package/dist/{oauth-refresh-sweep-q2c3bnvm.js → oauth-refresh-sweep-xysj4yse.js} +3 -3
- package/dist/{onboard-w4yd7s8t.js → onboard-p6q0vz97.js} +3 -3
- package/dist/{opencode-adapter-9tppvxar.js → opencode-adapter-esv3k9yn.js} +7 -7
- package/dist/{otel-impl-f36byzbd.js → otel-impl-54qhqh1z.js} +2 -2
- package/dist/{pi-mono-adapter-tqsge1ay.js → pi-mono-adapter-mymbwhj0.js} +41 -14
- package/dist/{pricing-refresh-xvak5p4v.js → pricing-refresh-yb75wv33.js} +3 -3
- package/dist/{rbac-roles-gfn30fb8.js → rbac-roles-1vp2mw4p.js} +2 -2
- package/dist/{rbac-roles-682k2mt5.js → rbac-roles-dexhc9x8.js} +1 -1
- package/dist/render-v2-tjay5hhf.js +16 -0
- package/dist/{resume-2dvq348g.js → resume-8ayf37g5.js} +11 -9
- package/dist/{runtime-bt5pkpm1.js → runtime-hqe5cqcd.js} +1 -1
- package/dist/{session-access-7f21ekq9.js → session-access-fdhp987s.js} +4 -4
- package/dist/session-source-backfill-qgtc86z1.js +110 -0
- package/dist/{setup-epffxtbk.js → setup-4rrmqcq3.js} +1 -1
- package/dist/{virtual-modules-mnfbh5mr.js → virtual-modules-52km00d6.js} +2 -2
- package/dist/{work-objects-xz1a5rqk.js → work-objects-p28fgd70.js} +23 -23
- package/dist/worker-e3w7vye1.js +79 -0
- package/dist/{x-pbpezr0s.js → x-wxrzvzx8.js} +2 -2
- package/openapi.json +1323 -16
- package/package.json +5 -5
- package/plugin/commands/create-pr.md +2 -2
- package/plugin/pi-skills/create-pr/SKILL.md +2 -2
- package/src/assets/source-key.ts +95 -0
- package/src/be/db/api-keys.ts +80 -0
- package/src/be/db/approvals.ts +48 -0
- package/src/be/db/session-labels.ts +28 -0
- package/src/be/db/session-moves.ts +5 -6
- package/src/be/db/session-tree.ts +153 -14
- package/src/be/db/tasks/read.ts +11 -0
- package/src/be/db/tasks/write.ts +21 -6
- package/src/be/db/workflow-idempotency.ts +183 -0
- package/src/be/db/workflow-runs.ts +500 -7
- package/src/be/db-retention.ts +61 -6
- package/src/be/db.ts +126 -131
- package/src/be/memory/providers/openai-embedding.ts +5 -1
- package/src/be/migrations/242_workflow_idempotency_keys.sql +40 -0
- package/src/be/migrations/244_api_key_validation.sql +4 -0
- package/src/be/onboarding.ts +4 -0
- package/src/be/scripts/typecheck.ts +1 -1
- package/src/be/sealed-json.ts +1 -0
- package/src/be/seed-scripts/catalog/compound-insights.inline.ts +2 -2
- package/src/be/seed-scripts/catalog/compound-insights.ts +2 -2
- package/src/be/seed-skills/bundled-files.generated.json +1 -1
- package/src/be/session-source-backfill.ts +163 -0
- package/src/be/sql-connections.ts +7 -1
- package/src/be/swarm-config-guard.ts +3 -0
- package/src/be/users.ts +9 -0
- package/src/comb/review-batch.ts +28 -1
- package/src/comb/templates.ts +7 -2
- package/src/commands/claude-managed-setup.ts +7 -1
- package/src/commands/controller.ts +33 -0
- package/src/commands/credential-refresh.ts +76 -1
- package/src/commands/credential-wait.ts +2 -2
- package/src/commands/provider-credentials.ts +210 -170
- package/src/commands/runner.ts +31 -6
- package/src/extensions/apply-task-create.ts +64 -11
- package/src/extensions/contract-types.generated.ts +1 -1
- package/src/extensions/contract.ts +30 -0
- package/src/extensions/dispatcher.ts +4 -0
- package/src/extensions/post-bridge.ts +8 -0
- package/src/hooks/context-bound-note.ts +196 -0
- package/src/hooks/hook.ts +12 -0
- package/src/http/all-routes.ts +2 -0
- package/src/http/api-keys.ts +53 -0
- package/src/http/assets.ts +15 -0
- package/src/http/codex-oauth-accounts.ts +191 -0
- package/src/http/comb.ts +15 -2
- package/src/http/config.ts +49 -17
- package/src/http/core.ts +6 -0
- package/src/http/fleet-benchmark.ts +5 -2
- package/src/http/idempotency-key.ts +117 -0
- package/src/http/index.ts +11 -0
- package/src/http/integrations.ts +5 -1
- package/src/http/kv.ts +8 -3
- package/src/http/onboarding.ts +6 -1
- package/src/http/pool-keys.ts +354 -0
- package/src/http/sessions.ts +37 -12
- package/src/http/stats.ts +1 -0
- package/src/http/status.ts +26 -12
- package/src/http/tasks.ts +3 -0
- package/src/http/used-by.ts +7 -2
- package/src/http/workflows.ts +207 -33
- package/src/integrations/chat-sdk/inbound.ts +27 -0
- package/src/kv-reserved-namespaces.ts +19 -0
- package/src/prompts/context-bound-note.ts +48 -0
- package/src/prompts/session-templates.ts +25 -1
- package/src/providers/acp-targets.ts +1 -1
- package/src/providers/amp-adapter.ts +30 -8
- package/src/providers/claude-adapter.ts +34 -5
- package/src/providers/claude-managed-adapter.ts +42 -9
- package/src/providers/claude-sdk-session.ts +10 -0
- package/src/providers/claude-session-events.ts +13 -0
- package/src/providers/codex-adapter.ts +83 -11
- package/src/providers/opencode-adapter.ts +18 -0
- package/src/providers/pi-mono-adapter.ts +35 -0
- package/src/runtime-providers/docker.ts +6 -2
- package/src/scheduler/scheduler.ts +3 -2
- package/src/scripts-runtime/swarm-sdk.ts +7 -1
- package/src/scripts-runtime/types/stdlib.d.ts +1 -1
- package/src/scripts-runtime/types/swarm-extension.d.ts +52 -8
- package/src/scripts-runtime/types/swarm-sdk.d.ts +1 -1
- package/src/slack/assistant.ts +7 -0
- package/src/slack/channel-labels.ts +74 -0
- package/src/slack/handlers.ts +8 -0
- package/src/slack/inbound-files.ts +5 -2
- package/src/slack/thread-buffer.ts +4 -0
- package/src/tasks/sibling-awareness.ts +12 -3
- package/src/telemetry-context.ts +5 -6
- package/src/telemetry-identity.ts +3 -3
- package/src/tests/amp-adapter.test.ts +97 -0
- package/src/tests/api-keys-validation.test.ts +170 -0
- package/src/tests/approval-requests.test.ts +10 -7
- package/src/tests/approval-sweeps.test.ts +12 -6
- package/src/tests/base-prompt.test.ts +1 -1
- package/src/tests/claude-hook-output.test.ts +79 -1
- package/src/tests/claude-managed-adapter.test.ts +321 -0
- package/src/tests/claude-routes-e2e.test.ts +7 -2
- package/src/tests/codex-adapter.test.ts +163 -0
- package/src/tests/codex-credential-pools.test.ts +120 -0
- package/src/tests/codex-gateway-route.test.ts +165 -0
- package/src/tests/codex-oauth-accounts.test.ts +357 -0
- package/src/tests/comb-review-batch.test.ts +63 -2
- package/src/tests/config-pool-keys.test.ts +533 -0
- package/src/tests/context-bound-note.test.ts +269 -0
- package/src/tests/credential-check.test.ts +290 -2
- package/src/tests/credential-refresh.test.ts +172 -1
- package/src/tests/db-retention.test.ts +9 -3
- package/src/tests/db-task-read-contract.test.ts +1 -0
- package/src/tests/db-task-write-contract.test.ts +1 -3
- package/src/tests/docs-index-footprint.test.js +3 -3
- package/src/tests/extensions-pre-task.test.ts +325 -0
- package/src/tests/fetch-resolved-env.test.ts +17 -0
- package/src/tests/fixtures/extensions/record-blocks/hooks.ts +10 -0
- package/src/tests/fixtures/extensions/record-blocks/manifest.json +7 -0
- package/src/tests/fixtures/extensions/record-task-create/hooks.ts +9 -0
- package/src/tests/fixtures/extensions/record-task-create/manifest.json +7 -0
- package/src/tests/fixtures/fake-amp.ts +22 -8
- package/src/tests/fixtures/held-template-render.ts +42 -0
- package/src/tests/fixtures/workflow-idempotency-trigger.child.ts +73 -0
- package/src/tests/fleet-benchmark.test.ts +8 -0
- package/src/tests/get-workflow-run-tool.test.ts +98 -0
- package/src/tests/integrations-http.test.ts +32 -2
- package/src/tests/internal-ai/complete-structured.test.ts +37 -1
- package/src/tests/internal-ai/credentials.test.ts +23 -0
- package/src/tests/kv-http.test.ts +32 -0
- package/src/tests/kv-tool.test.ts +25 -0
- package/src/tests/multi-runtime-registration.test.ts +12 -12
- package/src/tests/onboarding.test.ts +108 -1
- package/src/tests/openai-embedding-credentials.test.ts +35 -0
- package/src/tests/openapi-route-headers.test.ts +2 -0
- package/src/tests/opencode-adapter.test.ts +134 -0
- package/src/tests/openrouter-attribution-call-sites.test.ts +2 -2
- package/src/tests/org-website.test.ts +36 -0
- package/src/tests/pi-mono-adapter.test.ts +105 -0
- package/src/tests/prompt-template-session.test.ts +4 -3
- package/src/tests/provider-key-probes.test.ts +181 -0
- package/src/tests/rbac-e2e-helpers.test.ts +88 -1
- package/src/tests/rbac-e2e-helpers.ts +36 -11
- package/src/tests/runner-push-delivery.test.ts +25 -0
- package/src/tests/runtime-controller-liveness.test.ts +133 -0
- package/src/tests/runtime-providers-docker.test.ts +2 -0
- package/src/tests/script-connections.test.ts +5 -0
- package/src/tests/script-run-config-scope.test.ts +91 -3
- package/src/tests/script-runs-retention.test.ts +212 -0
- package/src/tests/sdk-allowlist.test.ts +39 -0
- package/src/tests/session-logs.test.ts +70 -0
- package/src/tests/session-source-backfill.test.ts +429 -0
- package/src/tests/session-source-keys.test.ts +236 -0
- package/src/tests/session-source-labels.test.ts +419 -0
- package/src/tests/sessions-detail-batch.test.ts +2 -0
- package/src/tests/sessions-move.test.ts +131 -0
- package/src/tests/sessions-tree.test.ts +336 -2
- package/src/tests/slack-inbound-files.test.ts +103 -23
- package/src/tests/status.test.ts +101 -18
- package/src/tests/tasks-workflow-run-filter.test.ts +146 -0
- package/src/tests/test-net.ts +31 -0
- package/src/tests/transcription.test.ts +8 -0
- package/src/tests/used-by-route.test.ts +11 -0
- package/src/tests/workflow-cascade-cancel.test.ts +1341 -0
- package/src/tests/workflow-foreach-supersede-retry.test.ts +488 -0
- package/src/tests/workflow-http-v2.test.ts +131 -0
- package/src/tests/workflow-idempotency.test.ts +915 -0
- package/src/tests/workflow-step-order.test.ts +92 -0
- package/src/tests/workflow-sub-workflow.test.ts +30 -0
- package/src/tools/get-tasks.ts +8 -0
- package/src/tools/kv/kv-read-auth.ts +4 -2
- package/src/tools/task-action.ts +1 -1
- package/src/tools/workflows/cancel-workflow-run.ts +1 -1
- package/src/tools/workflows/get-workflow-run.ts +14 -4
- package/src/types.ts +24 -0
- package/src/utils/company-profile.ts +51 -1
- package/src/utils/context-window.ts +8 -6
- package/src/utils/credentials.ts +5 -2
- package/src/utils/internal-ai/complete-structured.ts +5 -0
- package/src/utils/internal-ai/credentials.ts +4 -3
- package/src/utils/provider-key-probes.ts +328 -0
- package/src/utils/transcription.ts +4 -1
- package/src/workflows/approval-cancel.ts +15 -13
- package/src/workflows/approval-notifications.ts +5 -1
- package/src/workflows/checkpoint.ts +6 -3
- package/src/workflows/engine.ts +30 -8
- package/src/workflows/executors/foreach.ts +2 -2
- package/src/workflows/executors/sub-workflow.ts +8 -1
- package/src/workflows/foreach-driver.ts +10 -3
- package/src/workflows/foreach-join.ts +29 -6
- package/src/workflows/recovery.ts +6 -1
- package/src/workflows/resume.ts +168 -56
- package/src/workflows/retry-poller.ts +49 -3
- package/src/workflows/task-step-routing.ts +29 -7
- package/templates/ai-toolbox.manifest.json +8 -8
- package/templates/community/open-prompt-showreel/PLAYBOOK.md +5 -6
- package/templates/community/open-prompt-showreel/lead-prompt.md +1 -1
- package/templates/community/open-prompt-showreel/skills/open-prompt-showreel/SKILL.md +4 -4
- package/templates/skills/agent-browser/SKILL.md +4 -4
- package/templates/skills/agent-browser/content.md +4 -4
- package/templates/skills/code-quality/config.json +1 -1
- package/templates/skills/code-quality/content.md +2 -2
- package/templates/skills/delegate-work/content.md +29 -25
- package/templates/skills/delegate-work/files/scripts/codex-exec.sh +5 -5
- package/templates/skills/qa/content.md +2 -2
- package/templates/skills/researching/content.md +4 -0
- package/templates/skills/swarm-scripts/SKILL.md +1 -0
- package/templates/skills/swarm-scripts/content.md +1 -0
- package/templates/skills/work-on-task/SKILL.md +1 -1
- package/templates/skills/work-on-task/content.md +1 -1
- package/dist/cli-7421jzsw.js +0 -84
- package/dist/cli-e45e4m6b.js +0 -413
- package/dist/cli-zw88zjba.js +0 -307
- package/dist/handlers-19xr6dnz.js +0 -41
- package/dist/index-kw2mmat7.js +0 -43
- package/dist/lead-zyerk1x2.js +0 -79
- package/dist/render-v2-hgytz8nn.js +0 -12
- package/dist/worker-42t8emjt.js +0 -79
|
@@ -71,7 +71,7 @@ var sleep = (ms, signal) => new Promise((resolve) => {
|
|
|
71
71
|
});
|
|
72
72
|
|
|
73
73
|
// node_modules/@anthropic-ai/sdk/version.mjs
|
|
74
|
-
var VERSION = "1.
|
|
74
|
+
var VERSION = "1.3.0";
|
|
75
75
|
|
|
76
76
|
// node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs
|
|
77
77
|
var isRunningInBrowser = () => {
|
|
@@ -4589,7 +4589,7 @@ var MODELS_TO_WARN_WITH_THINKING_ENABLED = ["claude-mythos-preview", "claude-opu
|
|
|
4589
4589
|
class DeploymentRuns extends APIResource {
|
|
4590
4590
|
retrieve(deploymentRunID, params = {}, options) {
|
|
4591
4591
|
const { betas, workspace_id } = params ?? {};
|
|
4592
|
-
return this._client.get(path`/v1/deployment_runs/${deploymentRunID}
|
|
4592
|
+
return this._client.get(path`/v1/deployment_runs/${deploymentRunID}`, {
|
|
4593
4593
|
...options,
|
|
4594
4594
|
headers: buildHeaders([
|
|
4595
4595
|
{
|
|
@@ -4598,6 +4598,7 @@ class DeploymentRuns extends APIResource {
|
|
|
4598
4598
|
},
|
|
4599
4599
|
options?.headers
|
|
4600
4600
|
]),
|
|
4601
|
+
__qualifiers: { beta: "true" },
|
|
4601
4602
|
__span: startApiCallSpan(this._client, "anthropic.deployment_runs.retrieve", options, {
|
|
4602
4603
|
route: "/v1/deployment_runs/{deployment_run_id}",
|
|
4603
4604
|
attributes: { "anthropic.deployment_run.id": deploymentRunID }
|
|
@@ -4606,7 +4607,7 @@ class DeploymentRuns extends APIResource {
|
|
|
4606
4607
|
}
|
|
4607
4608
|
list(params = {}, options) {
|
|
4608
4609
|
const { betas, workspace_id, ...query } = params ?? {};
|
|
4609
|
-
return this._client.getAPIList("/v1/deployment_runs
|
|
4610
|
+
return this._client.getAPIList("/v1/deployment_runs", PageCursor, {
|
|
4610
4611
|
query,
|
|
4611
4612
|
...options,
|
|
4612
4613
|
headers: buildHeaders([
|
|
@@ -4616,6 +4617,7 @@ class DeploymentRuns extends APIResource {
|
|
|
4616
4617
|
},
|
|
4617
4618
|
options?.headers
|
|
4618
4619
|
]),
|
|
4620
|
+
__qualifiers: { beta: "true" },
|
|
4619
4621
|
__span: startApiCallSpan(this._client, "anthropic.deployment_runs.list", options, {
|
|
4620
4622
|
route: "/v1/deployment_runs",
|
|
4621
4623
|
queryParams: [
|
|
@@ -4638,7 +4640,7 @@ class DeploymentRuns extends APIResource {
|
|
|
4638
4640
|
class Deployments extends APIResource {
|
|
4639
4641
|
create(params, options) {
|
|
4640
4642
|
const { betas, workspace_id, ...body } = params;
|
|
4641
|
-
return this._client.post("/v1/deployments
|
|
4643
|
+
return this._client.post("/v1/deployments", {
|
|
4642
4644
|
body,
|
|
4643
4645
|
...options,
|
|
4644
4646
|
headers: buildHeaders([
|
|
@@ -4648,6 +4650,7 @@ class Deployments extends APIResource {
|
|
|
4648
4650
|
},
|
|
4649
4651
|
options?.headers
|
|
4650
4652
|
]),
|
|
4653
|
+
__qualifiers: { beta: "true" },
|
|
4651
4654
|
__span: startApiCallSpan(this._client, "anthropic.deployments.create", options, {
|
|
4652
4655
|
route: "/v1/deployments",
|
|
4653
4656
|
createdIDAttribute: "anthropic.deployment.id"
|
|
@@ -4656,7 +4659,7 @@ class Deployments extends APIResource {
|
|
|
4656
4659
|
}
|
|
4657
4660
|
retrieve(deploymentID, params = {}, options) {
|
|
4658
4661
|
const { betas, workspace_id } = params ?? {};
|
|
4659
|
-
return this._client.get(path`/v1/deployments/${deploymentID}
|
|
4662
|
+
return this._client.get(path`/v1/deployments/${deploymentID}`, {
|
|
4660
4663
|
...options,
|
|
4661
4664
|
headers: buildHeaders([
|
|
4662
4665
|
{
|
|
@@ -4665,6 +4668,7 @@ class Deployments extends APIResource {
|
|
|
4665
4668
|
},
|
|
4666
4669
|
options?.headers
|
|
4667
4670
|
]),
|
|
4671
|
+
__qualifiers: { beta: "true" },
|
|
4668
4672
|
__span: startApiCallSpan(this._client, "anthropic.deployments.retrieve", options, {
|
|
4669
4673
|
route: "/v1/deployments/{deployment_id}",
|
|
4670
4674
|
attributes: { "anthropic.deployment.id": deploymentID }
|
|
@@ -4673,7 +4677,7 @@ class Deployments extends APIResource {
|
|
|
4673
4677
|
}
|
|
4674
4678
|
update(deploymentID, params, options) {
|
|
4675
4679
|
const { betas, workspace_id, ...body } = params;
|
|
4676
|
-
return this._client.post(path`/v1/deployments/${deploymentID}
|
|
4680
|
+
return this._client.post(path`/v1/deployments/${deploymentID}`, {
|
|
4677
4681
|
body,
|
|
4678
4682
|
...options,
|
|
4679
4683
|
headers: buildHeaders([
|
|
@@ -4683,6 +4687,7 @@ class Deployments extends APIResource {
|
|
|
4683
4687
|
},
|
|
4684
4688
|
options?.headers
|
|
4685
4689
|
]),
|
|
4690
|
+
__qualifiers: { beta: "true" },
|
|
4686
4691
|
__span: startApiCallSpan(this._client, "anthropic.deployments.update", options, {
|
|
4687
4692
|
route: "/v1/deployments/{deployment_id}",
|
|
4688
4693
|
attributes: { "anthropic.deployment.id": deploymentID }
|
|
@@ -4691,7 +4696,7 @@ class Deployments extends APIResource {
|
|
|
4691
4696
|
}
|
|
4692
4697
|
list(params = {}, options) {
|
|
4693
4698
|
const { betas, workspace_id, ...query } = params ?? {};
|
|
4694
|
-
return this._client.getAPIList("/v1/deployments
|
|
4699
|
+
return this._client.getAPIList("/v1/deployments", PageCursor, {
|
|
4695
4700
|
query,
|
|
4696
4701
|
...options,
|
|
4697
4702
|
headers: buildHeaders([
|
|
@@ -4701,6 +4706,7 @@ class Deployments extends APIResource {
|
|
|
4701
4706
|
},
|
|
4702
4707
|
options?.headers
|
|
4703
4708
|
]),
|
|
4709
|
+
__qualifiers: { beta: "true" },
|
|
4704
4710
|
__span: startApiCallSpan(this._client, "anthropic.deployments.list", options, {
|
|
4705
4711
|
route: "/v1/deployments",
|
|
4706
4712
|
queryParams: [
|
|
@@ -4717,7 +4723,7 @@ class Deployments extends APIResource {
|
|
|
4717
4723
|
}
|
|
4718
4724
|
archive(deploymentID, params = {}, options) {
|
|
4719
4725
|
const { betas, workspace_id } = params ?? {};
|
|
4720
|
-
return this._client.post(path`/v1/deployments/${deploymentID}/archive
|
|
4726
|
+
return this._client.post(path`/v1/deployments/${deploymentID}/archive`, {
|
|
4721
4727
|
...options,
|
|
4722
4728
|
headers: buildHeaders([
|
|
4723
4729
|
{
|
|
@@ -4726,6 +4732,7 @@ class Deployments extends APIResource {
|
|
|
4726
4732
|
},
|
|
4727
4733
|
options?.headers
|
|
4728
4734
|
]),
|
|
4735
|
+
__qualifiers: { beta: "true" },
|
|
4729
4736
|
__span: startApiCallSpan(this._client, "anthropic.deployments.archive", options, {
|
|
4730
4737
|
route: "/v1/deployments/{deployment_id}/archive",
|
|
4731
4738
|
attributes: { "anthropic.deployment.id": deploymentID }
|
|
@@ -4734,7 +4741,7 @@ class Deployments extends APIResource {
|
|
|
4734
4741
|
}
|
|
4735
4742
|
pause(deploymentID, params = {}, options) {
|
|
4736
4743
|
const { betas, workspace_id } = params ?? {};
|
|
4737
|
-
return this._client.post(path`/v1/deployments/${deploymentID}/pause
|
|
4744
|
+
return this._client.post(path`/v1/deployments/${deploymentID}/pause`, {
|
|
4738
4745
|
...options,
|
|
4739
4746
|
headers: buildHeaders([
|
|
4740
4747
|
{
|
|
@@ -4743,6 +4750,7 @@ class Deployments extends APIResource {
|
|
|
4743
4750
|
},
|
|
4744
4751
|
options?.headers
|
|
4745
4752
|
]),
|
|
4753
|
+
__qualifiers: { beta: "true" },
|
|
4746
4754
|
__span: startApiCallSpan(this._client, "anthropic.deployments.pause", options, {
|
|
4747
4755
|
route: "/v1/deployments/{deployment_id}/pause",
|
|
4748
4756
|
attributes: { "anthropic.deployment.id": deploymentID }
|
|
@@ -4751,7 +4759,7 @@ class Deployments extends APIResource {
|
|
|
4751
4759
|
}
|
|
4752
4760
|
run(deploymentID, params = {}, options) {
|
|
4753
4761
|
const { betas, workspace_id } = params ?? {};
|
|
4754
|
-
return this._client.post(path`/v1/deployments/${deploymentID}/run
|
|
4762
|
+
return this._client.post(path`/v1/deployments/${deploymentID}/run`, {
|
|
4755
4763
|
...options,
|
|
4756
4764
|
headers: buildHeaders([
|
|
4757
4765
|
{
|
|
@@ -4760,6 +4768,7 @@ class Deployments extends APIResource {
|
|
|
4760
4768
|
},
|
|
4761
4769
|
options?.headers
|
|
4762
4770
|
]),
|
|
4771
|
+
__qualifiers: { beta: "true" },
|
|
4763
4772
|
__span: startApiCallSpan(this._client, "anthropic.deployments.run", options, {
|
|
4764
4773
|
route: "/v1/deployments/{deployment_id}/run",
|
|
4765
4774
|
attributes: { "anthropic.deployment.id": deploymentID }
|
|
@@ -4768,7 +4777,7 @@ class Deployments extends APIResource {
|
|
|
4768
4777
|
}
|
|
4769
4778
|
unpause(deploymentID, params = {}, options) {
|
|
4770
4779
|
const { betas, workspace_id } = params ?? {};
|
|
4771
|
-
return this._client.post(path`/v1/deployments/${deploymentID}/unpause
|
|
4780
|
+
return this._client.post(path`/v1/deployments/${deploymentID}/unpause`, {
|
|
4772
4781
|
...options,
|
|
4773
4782
|
headers: buildHeaders([
|
|
4774
4783
|
{
|
|
@@ -4777,6 +4786,7 @@ class Deployments extends APIResource {
|
|
|
4777
4786
|
},
|
|
4778
4787
|
options?.headers
|
|
4779
4788
|
]),
|
|
4789
|
+
__qualifiers: { beta: "true" },
|
|
4780
4790
|
__span: startApiCallSpan(this._client, "anthropic.deployments.unpause", options, {
|
|
4781
4791
|
route: "/v1/deployments/{deployment_id}/unpause",
|
|
4782
4792
|
attributes: { "anthropic.deployment.id": deploymentID }
|
|
@@ -4789,7 +4799,7 @@ class Deployments extends APIResource {
|
|
|
4789
4799
|
class Dreams extends APIResource {
|
|
4790
4800
|
create(params, options) {
|
|
4791
4801
|
const { betas, workspace_id, ...body } = params;
|
|
4792
|
-
return this._client.post("/v1/dreams
|
|
4802
|
+
return this._client.post("/v1/dreams", {
|
|
4793
4803
|
body,
|
|
4794
4804
|
...options,
|
|
4795
4805
|
headers: buildHeaders([
|
|
@@ -4799,6 +4809,7 @@ class Dreams extends APIResource {
|
|
|
4799
4809
|
},
|
|
4800
4810
|
options?.headers
|
|
4801
4811
|
]),
|
|
4812
|
+
__qualifiers: { beta: "true" },
|
|
4802
4813
|
__span: startApiCallSpan(this._client, "anthropic.dreams.create", options, {
|
|
4803
4814
|
route: "/v1/dreams",
|
|
4804
4815
|
createdIDAttribute: "anthropic.dream.id"
|
|
@@ -4807,7 +4818,7 @@ class Dreams extends APIResource {
|
|
|
4807
4818
|
}
|
|
4808
4819
|
retrieve(dreamID, params = {}, options) {
|
|
4809
4820
|
const { betas, workspace_id } = params ?? {};
|
|
4810
|
-
return this._client.get(path`/v1/dreams/${dreamID}
|
|
4821
|
+
return this._client.get(path`/v1/dreams/${dreamID}`, {
|
|
4811
4822
|
...options,
|
|
4812
4823
|
headers: buildHeaders([
|
|
4813
4824
|
{
|
|
@@ -4816,6 +4827,7 @@ class Dreams extends APIResource {
|
|
|
4816
4827
|
},
|
|
4817
4828
|
options?.headers
|
|
4818
4829
|
]),
|
|
4830
|
+
__qualifiers: { beta: "true" },
|
|
4819
4831
|
__span: startApiCallSpan(this._client, "anthropic.dreams.retrieve", options, {
|
|
4820
4832
|
route: "/v1/dreams/{dream_id}",
|
|
4821
4833
|
attributes: { "anthropic.dream.id": dreamID }
|
|
@@ -4824,7 +4836,7 @@ class Dreams extends APIResource {
|
|
|
4824
4836
|
}
|
|
4825
4837
|
list(params = {}, options) {
|
|
4826
4838
|
const { betas, workspace_id, ...query } = params ?? {};
|
|
4827
|
-
return this._client.getAPIList("/v1/dreams
|
|
4839
|
+
return this._client.getAPIList("/v1/dreams", PageCursor, {
|
|
4828
4840
|
query,
|
|
4829
4841
|
...options,
|
|
4830
4842
|
headers: buildHeaders([
|
|
@@ -4834,6 +4846,7 @@ class Dreams extends APIResource {
|
|
|
4834
4846
|
},
|
|
4835
4847
|
options?.headers
|
|
4836
4848
|
]),
|
|
4849
|
+
__qualifiers: { beta: "true" },
|
|
4837
4850
|
__span: startApiCallSpan(this._client, "anthropic.dreams.list", options, {
|
|
4838
4851
|
route: "/v1/dreams",
|
|
4839
4852
|
queryParams: ["created_at[gt]", "created_at[lt]", "include_archived", "limit", "page", "statuses"]
|
|
@@ -4842,7 +4855,7 @@ class Dreams extends APIResource {
|
|
|
4842
4855
|
}
|
|
4843
4856
|
archive(dreamID, params = {}, options) {
|
|
4844
4857
|
const { betas, workspace_id } = params ?? {};
|
|
4845
|
-
return this._client.post(path`/v1/dreams/${dreamID}/archive
|
|
4858
|
+
return this._client.post(path`/v1/dreams/${dreamID}/archive`, {
|
|
4846
4859
|
...options,
|
|
4847
4860
|
headers: buildHeaders([
|
|
4848
4861
|
{
|
|
@@ -4851,6 +4864,7 @@ class Dreams extends APIResource {
|
|
|
4851
4864
|
},
|
|
4852
4865
|
options?.headers
|
|
4853
4866
|
]),
|
|
4867
|
+
__qualifiers: { beta: "true" },
|
|
4854
4868
|
__span: startApiCallSpan(this._client, "anthropic.dreams.archive", options, {
|
|
4855
4869
|
route: "/v1/dreams/{dream_id}/archive",
|
|
4856
4870
|
attributes: { "anthropic.dream.id": dreamID }
|
|
@@ -4859,7 +4873,7 @@ class Dreams extends APIResource {
|
|
|
4859
4873
|
}
|
|
4860
4874
|
cancel(dreamID, params = {}, options) {
|
|
4861
4875
|
const { betas, workspace_id } = params ?? {};
|
|
4862
|
-
return this._client.post(path`/v1/dreams/${dreamID}/cancel
|
|
4876
|
+
return this._client.post(path`/v1/dreams/${dreamID}/cancel`, {
|
|
4863
4877
|
...options,
|
|
4864
4878
|
headers: buildHeaders([
|
|
4865
4879
|
{
|
|
@@ -4868,6 +4882,7 @@ class Dreams extends APIResource {
|
|
|
4868
4882
|
},
|
|
4869
4883
|
options?.headers
|
|
4870
4884
|
]),
|
|
4885
|
+
__qualifiers: { beta: "true" },
|
|
4871
4886
|
__span: startApiCallSpan(this._client, "anthropic.dreams.cancel", options, {
|
|
4872
4887
|
route: "/v1/dreams/{dream_id}/cancel",
|
|
4873
4888
|
attributes: { "anthropic.dream.id": dreamID }
|
|
@@ -4880,7 +4895,7 @@ class Dreams extends APIResource {
|
|
|
4880
4895
|
class Files extends APIResource {
|
|
4881
4896
|
list(params = {}, options) {
|
|
4882
4897
|
const { betas, workspace_id, ...query } = params ?? {};
|
|
4883
|
-
return this._client.getAPIList("/v1/files
|
|
4898
|
+
return this._client.getAPIList("/v1/files", PageCursor, {
|
|
4884
4899
|
query,
|
|
4885
4900
|
...options,
|
|
4886
4901
|
headers: buildHeaders([
|
|
@@ -4890,6 +4905,7 @@ class Files extends APIResource {
|
|
|
4890
4905
|
},
|
|
4891
4906
|
options?.headers
|
|
4892
4907
|
]),
|
|
4908
|
+
__qualifiers: { beta: "true" },
|
|
4893
4909
|
__span: startApiCallSpan(this._client, "anthropic.files.list", options, {
|
|
4894
4910
|
route: "/v1/files",
|
|
4895
4911
|
queryParams: ["ids", "limit", "page", "scope_id"]
|
|
@@ -4898,7 +4914,7 @@ class Files extends APIResource {
|
|
|
4898
4914
|
}
|
|
4899
4915
|
delete(fileID, params = {}, options) {
|
|
4900
4916
|
const { betas, workspace_id } = params ?? {};
|
|
4901
|
-
return this._client.delete(path`/v1/files/${fileID}
|
|
4917
|
+
return this._client.delete(path`/v1/files/${fileID}`, {
|
|
4902
4918
|
...options,
|
|
4903
4919
|
headers: buildHeaders([
|
|
4904
4920
|
{
|
|
@@ -4907,6 +4923,7 @@ class Files extends APIResource {
|
|
|
4907
4923
|
},
|
|
4908
4924
|
options?.headers
|
|
4909
4925
|
]),
|
|
4926
|
+
__qualifiers: { beta: "true" },
|
|
4910
4927
|
__span: startApiCallSpan(this._client, "anthropic.files.delete", options, {
|
|
4911
4928
|
route: "/v1/files/{file_id}",
|
|
4912
4929
|
attributes: { "anthropic.file.id": fileID }
|
|
@@ -4915,7 +4932,7 @@ class Files extends APIResource {
|
|
|
4915
4932
|
}
|
|
4916
4933
|
download(fileID, params = {}, options) {
|
|
4917
4934
|
const { betas, workspace_id } = params ?? {};
|
|
4918
|
-
return this._client.get(path`/v1/files/${fileID}/content
|
|
4935
|
+
return this._client.get(path`/v1/files/${fileID}/content`, {
|
|
4919
4936
|
...options,
|
|
4920
4937
|
headers: buildHeaders([
|
|
4921
4938
|
{
|
|
@@ -4925,6 +4942,7 @@ class Files extends APIResource {
|
|
|
4925
4942
|
},
|
|
4926
4943
|
options?.headers
|
|
4927
4944
|
]),
|
|
4945
|
+
__qualifiers: { beta: "true" },
|
|
4928
4946
|
__binaryResponse: true,
|
|
4929
4947
|
__span: startApiCallSpan(this._client, "anthropic.files.download", options, {
|
|
4930
4948
|
route: "/v1/files/{file_id}/content",
|
|
@@ -4934,7 +4952,7 @@ class Files extends APIResource {
|
|
|
4934
4952
|
}
|
|
4935
4953
|
retrieveMetadata(fileID, params = {}, options) {
|
|
4936
4954
|
const { betas, workspace_id } = params ?? {};
|
|
4937
|
-
return this._client.get(path`/v1/files/${fileID}
|
|
4955
|
+
return this._client.get(path`/v1/files/${fileID}`, {
|
|
4938
4956
|
...options,
|
|
4939
4957
|
headers: buildHeaders([
|
|
4940
4958
|
{
|
|
@@ -4943,6 +4961,7 @@ class Files extends APIResource {
|
|
|
4943
4961
|
},
|
|
4944
4962
|
options?.headers
|
|
4945
4963
|
]),
|
|
4964
|
+
__qualifiers: { beta: "true" },
|
|
4946
4965
|
__span: startApiCallSpan(this._client, "anthropic.files.retrieve_metadata", options, {
|
|
4947
4966
|
route: "/v1/files/{file_id}",
|
|
4948
4967
|
attributes: { "anthropic.file.id": fileID }
|
|
@@ -4951,7 +4970,7 @@ class Files extends APIResource {
|
|
|
4951
4970
|
}
|
|
4952
4971
|
upload(params, options) {
|
|
4953
4972
|
const { betas, workspace_id, ...body } = params;
|
|
4954
|
-
return this._client.post("/v1/files
|
|
4973
|
+
return this._client.post("/v1/files", multipartFormRequestOptions({
|
|
4955
4974
|
body,
|
|
4956
4975
|
...options,
|
|
4957
4976
|
headers: buildHeaders([
|
|
@@ -4962,6 +4981,7 @@ class Files extends APIResource {
|
|
|
4962
4981
|
stainlessHelperHeaderFromFile(body.file),
|
|
4963
4982
|
options?.headers
|
|
4964
4983
|
]),
|
|
4984
|
+
__qualifiers: { beta: "true" },
|
|
4965
4985
|
__span: startApiCallSpan(this._client, "anthropic.files.upload", options, {
|
|
4966
4986
|
route: "/v1/files",
|
|
4967
4987
|
createdIDAttribute: "anthropic.file.id"
|
|
@@ -4974,7 +4994,7 @@ class Files extends APIResource {
|
|
|
4974
4994
|
class Models extends APIResource {
|
|
4975
4995
|
retrieve(modelID, params = {}, options) {
|
|
4976
4996
|
const { betas, workspace_id } = params ?? {};
|
|
4977
|
-
return this._client.get(path`/v1/models/${modelID}
|
|
4997
|
+
return this._client.get(path`/v1/models/${modelID}`, {
|
|
4978
4998
|
...options,
|
|
4979
4999
|
headers: buildHeaders([
|
|
4980
5000
|
{
|
|
@@ -4983,6 +5003,7 @@ class Models extends APIResource {
|
|
|
4983
5003
|
},
|
|
4984
5004
|
options?.headers
|
|
4985
5005
|
]),
|
|
5006
|
+
__qualifiers: { beta: "true" },
|
|
4986
5007
|
__span: startApiCallSpan(this._client, "anthropic.models.retrieve", options, {
|
|
4987
5008
|
route: "/v1/models/{model_id}",
|
|
4988
5009
|
attributes: { "anthropic.model.id": modelID }
|
|
@@ -4991,7 +5012,7 @@ class Models extends APIResource {
|
|
|
4991
5012
|
}
|
|
4992
5013
|
list(params = {}, options) {
|
|
4993
5014
|
const { betas, workspace_id, ...query } = params ?? {};
|
|
4994
|
-
return this._client.getAPIList("/v1/models
|
|
5015
|
+
return this._client.getAPIList("/v1/models", Page, {
|
|
4995
5016
|
query,
|
|
4996
5017
|
...options,
|
|
4997
5018
|
headers: buildHeaders([
|
|
@@ -5001,6 +5022,7 @@ class Models extends APIResource {
|
|
|
5001
5022
|
},
|
|
5002
5023
|
options?.headers
|
|
5003
5024
|
]),
|
|
5025
|
+
__qualifiers: { beta: "true" },
|
|
5004
5026
|
__span: startApiCallSpan(this._client, "anthropic.models.list", options, {
|
|
5005
5027
|
route: "/v1/models",
|
|
5006
5028
|
queryParams: ["after_id", "before_id", "lifecycle", "limit"]
|
|
@@ -5033,7 +5055,7 @@ class Webhooks extends APIResource {
|
|
|
5033
5055
|
class Versions extends APIResource {
|
|
5034
5056
|
list(agentID, params = {}, options) {
|
|
5035
5057
|
const { betas, workspace_id, ...query } = params ?? {};
|
|
5036
|
-
return this._client.getAPIList(path`/v1/agents/${agentID}/versions
|
|
5058
|
+
return this._client.getAPIList(path`/v1/agents/${agentID}/versions`, PageCursor, {
|
|
5037
5059
|
query,
|
|
5038
5060
|
...options,
|
|
5039
5061
|
headers: buildHeaders([
|
|
@@ -5043,6 +5065,7 @@ class Versions extends APIResource {
|
|
|
5043
5065
|
},
|
|
5044
5066
|
options?.headers
|
|
5045
5067
|
]),
|
|
5068
|
+
__qualifiers: { beta: "true" },
|
|
5046
5069
|
__span: startApiCallSpan(this._client, "anthropic.agents.versions.list", options, {
|
|
5047
5070
|
route: "/v1/agents/{agent_id}/versions",
|
|
5048
5071
|
queryParams: ["limit", "page"],
|
|
@@ -5061,7 +5084,7 @@ var Agents = /* @__PURE__ */ (() => {
|
|
|
5061
5084
|
}
|
|
5062
5085
|
create(params, options) {
|
|
5063
5086
|
const { betas, workspace_id, ...body } = params;
|
|
5064
|
-
return this._client.post("/v1/agents
|
|
5087
|
+
return this._client.post("/v1/agents", {
|
|
5065
5088
|
body,
|
|
5066
5089
|
...options,
|
|
5067
5090
|
headers: buildHeaders([
|
|
@@ -5071,6 +5094,7 @@ var Agents = /* @__PURE__ */ (() => {
|
|
|
5071
5094
|
},
|
|
5072
5095
|
options?.headers
|
|
5073
5096
|
]),
|
|
5097
|
+
__qualifiers: { beta: "true" },
|
|
5074
5098
|
__span: startApiCallSpan(this._client, "anthropic.agents.create", options, {
|
|
5075
5099
|
route: "/v1/agents",
|
|
5076
5100
|
createdIDAttribute: "gen_ai.agent.id"
|
|
@@ -5079,7 +5103,7 @@ var Agents = /* @__PURE__ */ (() => {
|
|
|
5079
5103
|
}
|
|
5080
5104
|
retrieve(agentID, params = {}, options) {
|
|
5081
5105
|
const { betas, workspace_id, ...query } = params ?? {};
|
|
5082
|
-
return this._client.get(path`/v1/agents/${agentID}
|
|
5106
|
+
return this._client.get(path`/v1/agents/${agentID}`, {
|
|
5083
5107
|
query,
|
|
5084
5108
|
...options,
|
|
5085
5109
|
headers: buildHeaders([
|
|
@@ -5089,6 +5113,7 @@ var Agents = /* @__PURE__ */ (() => {
|
|
|
5089
5113
|
},
|
|
5090
5114
|
options?.headers
|
|
5091
5115
|
]),
|
|
5116
|
+
__qualifiers: { beta: "true" },
|
|
5092
5117
|
__span: startApiCallSpan(this._client, "anthropic.agents.retrieve", options, {
|
|
5093
5118
|
route: "/v1/agents/{agent_id}",
|
|
5094
5119
|
queryParams: ["version"],
|
|
@@ -5098,7 +5123,7 @@ var Agents = /* @__PURE__ */ (() => {
|
|
|
5098
5123
|
}
|
|
5099
5124
|
update(agentID, params, options) {
|
|
5100
5125
|
const { betas, workspace_id, ...body } = params;
|
|
5101
|
-
return this._client.post(path`/v1/agents/${agentID}
|
|
5126
|
+
return this._client.post(path`/v1/agents/${agentID}`, {
|
|
5102
5127
|
body,
|
|
5103
5128
|
...options,
|
|
5104
5129
|
headers: buildHeaders([
|
|
@@ -5108,6 +5133,7 @@ var Agents = /* @__PURE__ */ (() => {
|
|
|
5108
5133
|
},
|
|
5109
5134
|
options?.headers
|
|
5110
5135
|
]),
|
|
5136
|
+
__qualifiers: { beta: "true" },
|
|
5111
5137
|
__span: startApiCallSpan(this._client, "anthropic.agents.update", options, {
|
|
5112
5138
|
route: "/v1/agents/{agent_id}",
|
|
5113
5139
|
attributes: { "gen_ai.agent.id": agentID }
|
|
@@ -5116,7 +5142,7 @@ var Agents = /* @__PURE__ */ (() => {
|
|
|
5116
5142
|
}
|
|
5117
5143
|
list(params = {}, options) {
|
|
5118
5144
|
const { betas, workspace_id, ...query } = params ?? {};
|
|
5119
|
-
return this._client.getAPIList("/v1/agents
|
|
5145
|
+
return this._client.getAPIList("/v1/agents", PageCursor, {
|
|
5120
5146
|
query,
|
|
5121
5147
|
...options,
|
|
5122
5148
|
headers: buildHeaders([
|
|
@@ -5126,6 +5152,7 @@ var Agents = /* @__PURE__ */ (() => {
|
|
|
5126
5152
|
},
|
|
5127
5153
|
options?.headers
|
|
5128
5154
|
]),
|
|
5155
|
+
__qualifiers: { beta: "true" },
|
|
5129
5156
|
__span: startApiCallSpan(this._client, "anthropic.agents.list", options, {
|
|
5130
5157
|
route: "/v1/agents",
|
|
5131
5158
|
queryParams: ["created_at[gte]", "created_at[lte]", "include_archived", "limit", "page"]
|
|
@@ -5134,7 +5161,7 @@ var Agents = /* @__PURE__ */ (() => {
|
|
|
5134
5161
|
}
|
|
5135
5162
|
archive(agentID, params = {}, options) {
|
|
5136
5163
|
const { betas, workspace_id } = params ?? {};
|
|
5137
|
-
return this._client.post(path`/v1/agents/${agentID}/archive
|
|
5164
|
+
return this._client.post(path`/v1/agents/${agentID}/archive`, {
|
|
5138
5165
|
...options,
|
|
5139
5166
|
headers: buildHeaders([
|
|
5140
5167
|
{
|
|
@@ -5143,6 +5170,7 @@ var Agents = /* @__PURE__ */ (() => {
|
|
|
5143
5170
|
},
|
|
5144
5171
|
options?.headers
|
|
5145
5172
|
]),
|
|
5173
|
+
__qualifiers: { beta: "true" },
|
|
5146
5174
|
__span: startApiCallSpan(this._client, "anthropic.agents.archive", options, {
|
|
5147
5175
|
route: "/v1/agents/{agent_id}/archive",
|
|
5148
5176
|
attributes: { "gen_ai.agent.id": agentID }
|
|
@@ -6395,7 +6423,7 @@ var Work = /* @__PURE__ */ (() => {
|
|
|
6395
6423
|
class Work extends APIResource {
|
|
6396
6424
|
retrieve(workID, params, options) {
|
|
6397
6425
|
const { environment_id, betas, workspace_id } = params;
|
|
6398
|
-
return this._client.get(path`/v1/environments/${environment_id}/work/${workID}
|
|
6426
|
+
return this._client.get(path`/v1/environments/${environment_id}/work/${workID}`, {
|
|
6399
6427
|
...options,
|
|
6400
6428
|
headers: buildHeaders([
|
|
6401
6429
|
{
|
|
@@ -6404,6 +6432,7 @@ var Work = /* @__PURE__ */ (() => {
|
|
|
6404
6432
|
},
|
|
6405
6433
|
options?.headers
|
|
6406
6434
|
]),
|
|
6435
|
+
__qualifiers: { beta: "true" },
|
|
6407
6436
|
__span: startApiCallSpan(this._client, "anthropic.environments.work.retrieve", options, {
|
|
6408
6437
|
route: "/v1/environments/{environment_id}/work/{work_id}",
|
|
6409
6438
|
attributes: { "anthropic.environment.id": environment_id, "anthropic.environment.work.id": workID }
|
|
@@ -6412,7 +6441,7 @@ var Work = /* @__PURE__ */ (() => {
|
|
|
6412
6441
|
}
|
|
6413
6442
|
update(workID, params, options) {
|
|
6414
6443
|
const { environment_id, betas, workspace_id, ...body } = params;
|
|
6415
|
-
return this._client.post(path`/v1/environments/${environment_id}/work/${workID}
|
|
6444
|
+
return this._client.post(path`/v1/environments/${environment_id}/work/${workID}`, {
|
|
6416
6445
|
body,
|
|
6417
6446
|
...options,
|
|
6418
6447
|
headers: buildHeaders([
|
|
@@ -6422,6 +6451,7 @@ var Work = /* @__PURE__ */ (() => {
|
|
|
6422
6451
|
},
|
|
6423
6452
|
options?.headers
|
|
6424
6453
|
]),
|
|
6454
|
+
__qualifiers: { beta: "true" },
|
|
6425
6455
|
__span: startApiCallSpan(this._client, "anthropic.environments.work.update", options, {
|
|
6426
6456
|
route: "/v1/environments/{environment_id}/work/{work_id}",
|
|
6427
6457
|
attributes: { "anthropic.environment.id": environment_id, "anthropic.environment.work.id": workID }
|
|
@@ -6430,13 +6460,14 @@ var Work = /* @__PURE__ */ (() => {
|
|
|
6430
6460
|
}
|
|
6431
6461
|
list(environmentID, params = {}, options) {
|
|
6432
6462
|
const { betas, ...query } = params ?? {};
|
|
6433
|
-
return this._client.getAPIList(path`/v1/environments/${environmentID}/work
|
|
6463
|
+
return this._client.getAPIList(path`/v1/environments/${environmentID}/work`, PageCursor, {
|
|
6434
6464
|
query,
|
|
6435
6465
|
...options,
|
|
6436
6466
|
headers: buildHeaders([
|
|
6437
6467
|
{ "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
|
|
6438
6468
|
options?.headers
|
|
6439
6469
|
]),
|
|
6470
|
+
__qualifiers: { beta: "true" },
|
|
6440
6471
|
__span: startApiCallSpan(this._client, "anthropic.environments.work.list", options, {
|
|
6441
6472
|
route: "/v1/environments/{environment_id}/work",
|
|
6442
6473
|
queryParams: ["limit", "page"],
|
|
@@ -6446,12 +6477,13 @@ var Work = /* @__PURE__ */ (() => {
|
|
|
6446
6477
|
}
|
|
6447
6478
|
ack(workID, params, options) {
|
|
6448
6479
|
const { environment_id, betas } = params;
|
|
6449
|
-
return this._client.post(path`/v1/environments/${environment_id}/work/${workID}/ack
|
|
6480
|
+
return this._client.post(path`/v1/environments/${environment_id}/work/${workID}/ack`, {
|
|
6450
6481
|
...options,
|
|
6451
6482
|
headers: buildHeaders([
|
|
6452
6483
|
{ "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
|
|
6453
6484
|
options?.headers
|
|
6454
6485
|
]),
|
|
6486
|
+
__qualifiers: { beta: "true" },
|
|
6455
6487
|
__span: startApiCallSpan(this._client, "anthropic.environments.work.ack", options, {
|
|
6456
6488
|
route: "/v1/environments/{environment_id}/work/{work_id}/ack",
|
|
6457
6489
|
attributes: { "anthropic.environment.id": environment_id, "anthropic.environment.work.id": workID }
|
|
@@ -6460,13 +6492,14 @@ var Work = /* @__PURE__ */ (() => {
|
|
|
6460
6492
|
}
|
|
6461
6493
|
heartbeat(workID, params, options) {
|
|
6462
6494
|
const { environment_id, desired_ttl_seconds, expected_last_heartbeat, betas } = params;
|
|
6463
|
-
return this._client.post(path`/v1/environments/${environment_id}/work/${workID}/heartbeat
|
|
6495
|
+
return this._client.post(path`/v1/environments/${environment_id}/work/${workID}/heartbeat`, {
|
|
6464
6496
|
query: { desired_ttl_seconds, expected_last_heartbeat },
|
|
6465
6497
|
...options,
|
|
6466
6498
|
headers: buildHeaders([
|
|
6467
6499
|
{ "anthropic-beta": [...betas ?? [], "managed-agents-2026-04-01"].toString() },
|
|
6468
6500
|
options?.headers
|
|
6469
6501
|
]),
|
|
6502
|
+
__qualifiers: { beta: "true" },
|
|
6470
6503
|
__span: startApiCallSpan(this._client, "anthropic.environments.work.heartbeat", options, {
|
|
6471
6504
|
route: "/v1/environments/{environment_id}/work/{work_id}/heartbeat",
|
|
6472
6505
|
queryParams: ["desired_ttl_seconds", "expected_last_heartbeat"],
|
|
@@ -6476,7 +6509,7 @@ var Work = /* @__PURE__ */ (() => {
|
|
|
6476
6509
|
}
|
|
6477
6510
|
poll(environmentID, params = {}, options) {
|
|
6478
6511
|
const { betas, "Anthropic-Worker-ID": anthropicWorkerID, ...query } = params ?? {};
|
|
6479
|
-
return this._client.get(path`/v1/environments/${environmentID}/work/poll
|
|
6512
|
+
return this._client.get(path`/v1/environments/${environmentID}/work/poll`, {
|
|
6480
6513
|
query,
|
|
6481
6514
|
...options,
|
|
6482
6515
|
headers: buildHeaders([
|
|
@@ -6486,6 +6519,7 @@ var Work = /* @__PURE__ */ (() => {
|
|
|
6486
6519
|
},
|
|
6487
6520
|
options?.headers
|
|
6488
6521
|
]),
|
|
6522
|
+
__qualifiers: { beta: "true" },
|
|
6489
6523
|
__span: startApiCallSpan(this._client, "anthropic.environments.work.poll", options, {
|
|
6490
6524
|
route: "/v1/environments/{environment_id}/work/poll",
|
|
6491
6525
|
queryParams: ["block_ms", "reclaim_older_than_ms"],
|
|
@@ -6495,7 +6529,7 @@ var Work = /* @__PURE__ */ (() => {
|
|
|
6495
6529
|
}
|
|
6496
6530
|
stats(environmentID, params = {}, options) {
|
|
6497
6531
|
const { betas, workspace_id } = params ?? {};
|
|
6498
|
-
return this._client.get(path`/v1/environments/${environmentID}/work/stats
|
|
6532
|
+
return this._client.get(path`/v1/environments/${environmentID}/work/stats`, {
|
|
6499
6533
|
...options,
|
|
6500
6534
|
headers: buildHeaders([
|
|
6501
6535
|
{
|
|
@@ -6504,6 +6538,7 @@ var Work = /* @__PURE__ */ (() => {
|
|
|
6504
6538
|
},
|
|
6505
6539
|
options?.headers
|
|
6506
6540
|
]),
|
|
6541
|
+
__qualifiers: { beta: "true" },
|
|
6507
6542
|
__span: startApiCallSpan(this._client, "anthropic.environments.work.stats", options, {
|
|
6508
6543
|
route: "/v1/environments/{environment_id}/work/stats",
|
|
6509
6544
|
attributes: { "anthropic.environment.id": environmentID }
|
|
@@ -6512,7 +6547,7 @@ var Work = /* @__PURE__ */ (() => {
|
|
|
6512
6547
|
}
|
|
6513
6548
|
stop(workID, params, options) {
|
|
6514
6549
|
const { environment_id, betas, workspace_id, ...body } = params;
|
|
6515
|
-
return this._client.post(path`/v1/environments/${environment_id}/work/${workID}/stop
|
|
6550
|
+
return this._client.post(path`/v1/environments/${environment_id}/work/${workID}/stop`, {
|
|
6516
6551
|
body,
|
|
6517
6552
|
...options,
|
|
6518
6553
|
headers: buildHeaders([
|
|
@@ -6522,6 +6557,7 @@ var Work = /* @__PURE__ */ (() => {
|
|
|
6522
6557
|
},
|
|
6523
6558
|
options?.headers
|
|
6524
6559
|
]),
|
|
6560
|
+
__qualifiers: { beta: "true" },
|
|
6525
6561
|
__span: startApiCallSpan(this._client, "anthropic.environments.work.stop", options, {
|
|
6526
6562
|
route: "/v1/environments/{environment_id}/work/{work_id}/stop",
|
|
6527
6563
|
attributes: { "anthropic.environment.id": environment_id, "anthropic.environment.work.id": workID }
|
|
@@ -6549,7 +6585,7 @@ var Environments = /* @__PURE__ */ (() => {
|
|
|
6549
6585
|
}
|
|
6550
6586
|
create(params, options) {
|
|
6551
6587
|
const { betas, workspace_id, ...body } = params;
|
|
6552
|
-
return this._client.post("/v1/environments
|
|
6588
|
+
return this._client.post("/v1/environments", {
|
|
6553
6589
|
body,
|
|
6554
6590
|
...options,
|
|
6555
6591
|
headers: buildHeaders([
|
|
@@ -6559,6 +6595,7 @@ var Environments = /* @__PURE__ */ (() => {
|
|
|
6559
6595
|
},
|
|
6560
6596
|
options?.headers
|
|
6561
6597
|
]),
|
|
6598
|
+
__qualifiers: { beta: "true" },
|
|
6562
6599
|
__span: startApiCallSpan(this._client, "anthropic.environments.create", options, {
|
|
6563
6600
|
route: "/v1/environments",
|
|
6564
6601
|
createdIDAttribute: "anthropic.environment.id"
|
|
@@ -6567,7 +6604,7 @@ var Environments = /* @__PURE__ */ (() => {
|
|
|
6567
6604
|
}
|
|
6568
6605
|
retrieve(environmentID, params = {}, options) {
|
|
6569
6606
|
const { betas, workspace_id } = params ?? {};
|
|
6570
|
-
return this._client.get(path`/v1/environments/${environmentID}
|
|
6607
|
+
return this._client.get(path`/v1/environments/${environmentID}`, {
|
|
6571
6608
|
...options,
|
|
6572
6609
|
headers: buildHeaders([
|
|
6573
6610
|
{
|
|
@@ -6576,6 +6613,7 @@ var Environments = /* @__PURE__ */ (() => {
|
|
|
6576
6613
|
},
|
|
6577
6614
|
options?.headers
|
|
6578
6615
|
]),
|
|
6616
|
+
__qualifiers: { beta: "true" },
|
|
6579
6617
|
__span: startApiCallSpan(this._client, "anthropic.environments.retrieve", options, {
|
|
6580
6618
|
route: "/v1/environments/{environment_id}",
|
|
6581
6619
|
attributes: { "anthropic.environment.id": environmentID }
|
|
@@ -6584,7 +6622,7 @@ var Environments = /* @__PURE__ */ (() => {
|
|
|
6584
6622
|
}
|
|
6585
6623
|
update(environmentID, params, options) {
|
|
6586
6624
|
const { betas, workspace_id, ...body } = params;
|
|
6587
|
-
return this._client.post(path`/v1/environments/${environmentID}
|
|
6625
|
+
return this._client.post(path`/v1/environments/${environmentID}`, {
|
|
6588
6626
|
body,
|
|
6589
6627
|
...options,
|
|
6590
6628
|
headers: buildHeaders([
|
|
@@ -6594,6 +6632,7 @@ var Environments = /* @__PURE__ */ (() => {
|
|
|
6594
6632
|
},
|
|
6595
6633
|
options?.headers
|
|
6596
6634
|
]),
|
|
6635
|
+
__qualifiers: { beta: "true" },
|
|
6597
6636
|
__span: startApiCallSpan(this._client, "anthropic.environments.update", options, {
|
|
6598
6637
|
route: "/v1/environments/{environment_id}",
|
|
6599
6638
|
attributes: { "anthropic.environment.id": environmentID }
|
|
@@ -6602,7 +6641,7 @@ var Environments = /* @__PURE__ */ (() => {
|
|
|
6602
6641
|
}
|
|
6603
6642
|
list(params = {}, options) {
|
|
6604
6643
|
const { betas, workspace_id, ...query } = params ?? {};
|
|
6605
|
-
return this._client.getAPIList("/v1/environments
|
|
6644
|
+
return this._client.getAPIList("/v1/environments", PageCursor, {
|
|
6606
6645
|
query,
|
|
6607
6646
|
...options,
|
|
6608
6647
|
headers: buildHeaders([
|
|
@@ -6612,6 +6651,7 @@ var Environments = /* @__PURE__ */ (() => {
|
|
|
6612
6651
|
},
|
|
6613
6652
|
options?.headers
|
|
6614
6653
|
]),
|
|
6654
|
+
__qualifiers: { beta: "true" },
|
|
6615
6655
|
__span: startApiCallSpan(this._client, "anthropic.environments.list", options, {
|
|
6616
6656
|
route: "/v1/environments",
|
|
6617
6657
|
queryParams: ["include_archived", "limit", "page"]
|
|
@@ -6620,7 +6660,7 @@ var Environments = /* @__PURE__ */ (() => {
|
|
|
6620
6660
|
}
|
|
6621
6661
|
delete(environmentID, params = {}, options) {
|
|
6622
6662
|
const { betas, workspace_id } = params ?? {};
|
|
6623
|
-
return this._client.delete(path`/v1/environments/${environmentID}
|
|
6663
|
+
return this._client.delete(path`/v1/environments/${environmentID}`, {
|
|
6624
6664
|
...options,
|
|
6625
6665
|
headers: buildHeaders([
|
|
6626
6666
|
{
|
|
@@ -6629,6 +6669,7 @@ var Environments = /* @__PURE__ */ (() => {
|
|
|
6629
6669
|
},
|
|
6630
6670
|
options?.headers
|
|
6631
6671
|
]),
|
|
6672
|
+
__qualifiers: { beta: "true" },
|
|
6632
6673
|
__span: startApiCallSpan(this._client, "anthropic.environments.delete", options, {
|
|
6633
6674
|
route: "/v1/environments/{environment_id}",
|
|
6634
6675
|
attributes: { "anthropic.environment.id": environmentID }
|
|
@@ -6637,7 +6678,7 @@ var Environments = /* @__PURE__ */ (() => {
|
|
|
6637
6678
|
}
|
|
6638
6679
|
archive(environmentID, params = {}, options) {
|
|
6639
6680
|
const { betas, workspace_id } = params ?? {};
|
|
6640
|
-
return this._client.post(path`/v1/environments/${environmentID}/archive
|
|
6681
|
+
return this._client.post(path`/v1/environments/${environmentID}/archive`, {
|
|
6641
6682
|
...options,
|
|
6642
6683
|
headers: buildHeaders([
|
|
6643
6684
|
{
|
|
@@ -6646,6 +6687,7 @@ var Environments = /* @__PURE__ */ (() => {
|
|
|
6646
6687
|
},
|
|
6647
6688
|
options?.headers
|
|
6648
6689
|
]),
|
|
6690
|
+
__qualifiers: { beta: "true" },
|
|
6649
6691
|
__span: startApiCallSpan(this._client, "anthropic.environments.archive", options, {
|
|
6650
6692
|
route: "/v1/environments/{environment_id}/archive",
|
|
6651
6693
|
attributes: { "anthropic.environment.id": environmentID }
|
|
@@ -6661,7 +6703,7 @@ var Environments = /* @__PURE__ */ (() => {
|
|
|
6661
6703
|
class Memories extends APIResource {
|
|
6662
6704
|
create(memoryStoreID, params, options) {
|
|
6663
6705
|
const { view, betas, workspace_id, ...body } = params;
|
|
6664
|
-
return this._client.post(path`/v1/memory_stores/${memoryStoreID}/memories
|
|
6706
|
+
return this._client.post(path`/v1/memory_stores/${memoryStoreID}/memories`, {
|
|
6665
6707
|
query: { view },
|
|
6666
6708
|
body,
|
|
6667
6709
|
...options,
|
|
@@ -6672,6 +6714,7 @@ class Memories extends APIResource {
|
|
|
6672
6714
|
},
|
|
6673
6715
|
options?.headers
|
|
6674
6716
|
]),
|
|
6717
|
+
__qualifiers: { beta: "true" },
|
|
6675
6718
|
__span: startApiCallSpan(this._client, "anthropic.memory_stores.memories.create", options, {
|
|
6676
6719
|
route: "/v1/memory_stores/{memory_store_id}/memories",
|
|
6677
6720
|
queryParams: ["view"],
|
|
@@ -6682,7 +6725,7 @@ class Memories extends APIResource {
|
|
|
6682
6725
|
}
|
|
6683
6726
|
retrieve(memoryID, params, options) {
|
|
6684
6727
|
const { memory_store_id, betas, workspace_id, ...query } = params;
|
|
6685
|
-
return this._client.get(path`/v1/memory_stores/${memory_store_id}/memories/${memoryID}
|
|
6728
|
+
return this._client.get(path`/v1/memory_stores/${memory_store_id}/memories/${memoryID}`, {
|
|
6686
6729
|
query,
|
|
6687
6730
|
...options,
|
|
6688
6731
|
headers: buildHeaders([
|
|
@@ -6692,6 +6735,7 @@ class Memories extends APIResource {
|
|
|
6692
6735
|
},
|
|
6693
6736
|
options?.headers
|
|
6694
6737
|
]),
|
|
6738
|
+
__qualifiers: { beta: "true" },
|
|
6695
6739
|
__span: startApiCallSpan(this._client, "anthropic.memory_stores.memories.retrieve", options, {
|
|
6696
6740
|
route: "/v1/memory_stores/{memory_store_id}/memories/{memory_id}",
|
|
6697
6741
|
queryParams: ["view"],
|
|
@@ -6701,7 +6745,7 @@ class Memories extends APIResource {
|
|
|
6701
6745
|
}
|
|
6702
6746
|
update(memoryID, params, options) {
|
|
6703
6747
|
const { memory_store_id, view, betas, workspace_id, ...body } = params;
|
|
6704
|
-
return this._client.post(path`/v1/memory_stores/${memory_store_id}/memories/${memoryID}
|
|
6748
|
+
return this._client.post(path`/v1/memory_stores/${memory_store_id}/memories/${memoryID}`, {
|
|
6705
6749
|
query: { view },
|
|
6706
6750
|
body,
|
|
6707
6751
|
...options,
|
|
@@ -6712,6 +6756,7 @@ class Memories extends APIResource {
|
|
|
6712
6756
|
},
|
|
6713
6757
|
options?.headers
|
|
6714
6758
|
]),
|
|
6759
|
+
__qualifiers: { beta: "true" },
|
|
6715
6760
|
__span: startApiCallSpan(this._client, "anthropic.memory_stores.memories.update", options, {
|
|
6716
6761
|
route: "/v1/memory_stores/{memory_store_id}/memories/{memory_id}",
|
|
6717
6762
|
queryParams: ["view"],
|
|
@@ -6721,7 +6766,7 @@ class Memories extends APIResource {
|
|
|
6721
6766
|
}
|
|
6722
6767
|
list(memoryStoreID, params = {}, options) {
|
|
6723
6768
|
const { betas, workspace_id, ...query } = params ?? {};
|
|
6724
|
-
return this._client.getAPIList(path`/v1/memory_stores/${memoryStoreID}/memories
|
|
6769
|
+
return this._client.getAPIList(path`/v1/memory_stores/${memoryStoreID}/memories`, PageCursor, {
|
|
6725
6770
|
query,
|
|
6726
6771
|
...options,
|
|
6727
6772
|
headers: buildHeaders([
|
|
@@ -6731,6 +6776,7 @@ class Memories extends APIResource {
|
|
|
6731
6776
|
},
|
|
6732
6777
|
options?.headers
|
|
6733
6778
|
]),
|
|
6779
|
+
__qualifiers: { beta: "true" },
|
|
6734
6780
|
__span: startApiCallSpan(this._client, "anthropic.memory_stores.memories.list", options, {
|
|
6735
6781
|
route: "/v1/memory_stores/{memory_store_id}/memories",
|
|
6736
6782
|
queryParams: ["depth", "limit", "page", "path_prefix", "view"],
|
|
@@ -6741,7 +6787,7 @@ class Memories extends APIResource {
|
|
|
6741
6787
|
}
|
|
6742
6788
|
delete(memoryID, params, options) {
|
|
6743
6789
|
const { memory_store_id, expected_content_sha256, betas, workspace_id } = params;
|
|
6744
|
-
return this._client.delete(path`/v1/memory_stores/${memory_store_id}/memories/${memoryID}
|
|
6790
|
+
return this._client.delete(path`/v1/memory_stores/${memory_store_id}/memories/${memoryID}`, {
|
|
6745
6791
|
query: { expected_content_sha256 },
|
|
6746
6792
|
...options,
|
|
6747
6793
|
headers: buildHeaders([
|
|
@@ -6751,6 +6797,7 @@ class Memories extends APIResource {
|
|
|
6751
6797
|
},
|
|
6752
6798
|
options?.headers
|
|
6753
6799
|
]),
|
|
6800
|
+
__qualifiers: { beta: "true" },
|
|
6754
6801
|
__span: startApiCallSpan(this._client, "anthropic.memory_stores.memories.delete", options, {
|
|
6755
6802
|
route: "/v1/memory_stores/{memory_store_id}/memories/{memory_id}",
|
|
6756
6803
|
queryParams: ["expected_content_sha256"],
|
|
@@ -6764,7 +6811,7 @@ class Memories extends APIResource {
|
|
|
6764
6811
|
class MemoryVersions extends APIResource {
|
|
6765
6812
|
retrieve(memoryVersionID, params, options) {
|
|
6766
6813
|
const { memory_store_id, betas, workspace_id, ...query } = params;
|
|
6767
|
-
return this._client.get(path`/v1/memory_stores/${memory_store_id}/memory_versions/${memoryVersionID}
|
|
6814
|
+
return this._client.get(path`/v1/memory_stores/${memory_store_id}/memory_versions/${memoryVersionID}`, {
|
|
6768
6815
|
query,
|
|
6769
6816
|
...options,
|
|
6770
6817
|
headers: buildHeaders([
|
|
@@ -6774,6 +6821,7 @@ class MemoryVersions extends APIResource {
|
|
|
6774
6821
|
},
|
|
6775
6822
|
options?.headers
|
|
6776
6823
|
]),
|
|
6824
|
+
__qualifiers: { beta: "true" },
|
|
6777
6825
|
__span: startApiCallSpan(this._client, "anthropic.memory_stores.memory_versions.retrieve", options, {
|
|
6778
6826
|
route: "/v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}",
|
|
6779
6827
|
queryParams: ["view"],
|
|
@@ -6786,7 +6834,7 @@ class MemoryVersions extends APIResource {
|
|
|
6786
6834
|
}
|
|
6787
6835
|
list(memoryStoreID, params = {}, options) {
|
|
6788
6836
|
const { betas, workspace_id, ...query } = params ?? {};
|
|
6789
|
-
return this._client.getAPIList(path`/v1/memory_stores/${memoryStoreID}/memory_versions
|
|
6837
|
+
return this._client.getAPIList(path`/v1/memory_stores/${memoryStoreID}/memory_versions`, PageCursor, {
|
|
6790
6838
|
query,
|
|
6791
6839
|
...options,
|
|
6792
6840
|
headers: buildHeaders([
|
|
@@ -6796,6 +6844,7 @@ class MemoryVersions extends APIResource {
|
|
|
6796
6844
|
},
|
|
6797
6845
|
options?.headers
|
|
6798
6846
|
]),
|
|
6847
|
+
__qualifiers: { beta: "true" },
|
|
6799
6848
|
__span: startApiCallSpan(this._client, "anthropic.memory_stores.memory_versions.list", options, {
|
|
6800
6849
|
route: "/v1/memory_stores/{memory_store_id}/memory_versions",
|
|
6801
6850
|
queryParams: [
|
|
@@ -6816,7 +6865,7 @@ class MemoryVersions extends APIResource {
|
|
|
6816
6865
|
}
|
|
6817
6866
|
redact(memoryVersionID, params, options) {
|
|
6818
6867
|
const { memory_store_id, betas, workspace_id } = params;
|
|
6819
|
-
return this._client.post(path`/v1/memory_stores/${memory_store_id}/memory_versions/${memoryVersionID}/redact
|
|
6868
|
+
return this._client.post(path`/v1/memory_stores/${memory_store_id}/memory_versions/${memoryVersionID}/redact`, {
|
|
6820
6869
|
...options,
|
|
6821
6870
|
headers: buildHeaders([
|
|
6822
6871
|
{
|
|
@@ -6825,6 +6874,7 @@ class MemoryVersions extends APIResource {
|
|
|
6825
6874
|
},
|
|
6826
6875
|
options?.headers
|
|
6827
6876
|
]),
|
|
6877
|
+
__qualifiers: { beta: "true" },
|
|
6828
6878
|
__span: startApiCallSpan(this._client, "anthropic.memory_stores.memory_versions.redact", options, {
|
|
6829
6879
|
route: "/v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}/redact",
|
|
6830
6880
|
attributes: {
|
|
@@ -6846,7 +6896,7 @@ var MemoryStores = /* @__PURE__ */ (() => {
|
|
|
6846
6896
|
}
|
|
6847
6897
|
create(params, options) {
|
|
6848
6898
|
const { betas, workspace_id, ...body } = params;
|
|
6849
|
-
return this._client.post("/v1/memory_stores
|
|
6899
|
+
return this._client.post("/v1/memory_stores", {
|
|
6850
6900
|
body,
|
|
6851
6901
|
...options,
|
|
6852
6902
|
headers: buildHeaders([
|
|
@@ -6856,6 +6906,7 @@ var MemoryStores = /* @__PURE__ */ (() => {
|
|
|
6856
6906
|
},
|
|
6857
6907
|
options?.headers
|
|
6858
6908
|
]),
|
|
6909
|
+
__qualifiers: { beta: "true" },
|
|
6859
6910
|
__span: startApiCallSpan(this._client, "anthropic.memory_stores.create", options, {
|
|
6860
6911
|
route: "/v1/memory_stores",
|
|
6861
6912
|
createdIDAttribute: "gen_ai.memory.store.id"
|
|
@@ -6864,7 +6915,7 @@ var MemoryStores = /* @__PURE__ */ (() => {
|
|
|
6864
6915
|
}
|
|
6865
6916
|
retrieve(memoryStoreID, params = {}, options) {
|
|
6866
6917
|
const { betas, workspace_id } = params ?? {};
|
|
6867
|
-
return this._client.get(path`/v1/memory_stores/${memoryStoreID}
|
|
6918
|
+
return this._client.get(path`/v1/memory_stores/${memoryStoreID}`, {
|
|
6868
6919
|
...options,
|
|
6869
6920
|
headers: buildHeaders([
|
|
6870
6921
|
{
|
|
@@ -6873,6 +6924,7 @@ var MemoryStores = /* @__PURE__ */ (() => {
|
|
|
6873
6924
|
},
|
|
6874
6925
|
options?.headers
|
|
6875
6926
|
]),
|
|
6927
|
+
__qualifiers: { beta: "true" },
|
|
6876
6928
|
__span: startApiCallSpan(this._client, "anthropic.memory_stores.retrieve", options, {
|
|
6877
6929
|
route: "/v1/memory_stores/{memory_store_id}",
|
|
6878
6930
|
attributes: { "gen_ai.memory.store.id": memoryStoreID }
|
|
@@ -6881,7 +6933,7 @@ var MemoryStores = /* @__PURE__ */ (() => {
|
|
|
6881
6933
|
}
|
|
6882
6934
|
update(memoryStoreID, params, options) {
|
|
6883
6935
|
const { betas, workspace_id, ...body } = params;
|
|
6884
|
-
return this._client.post(path`/v1/memory_stores/${memoryStoreID}
|
|
6936
|
+
return this._client.post(path`/v1/memory_stores/${memoryStoreID}`, {
|
|
6885
6937
|
body,
|
|
6886
6938
|
...options,
|
|
6887
6939
|
headers: buildHeaders([
|
|
@@ -6891,6 +6943,7 @@ var MemoryStores = /* @__PURE__ */ (() => {
|
|
|
6891
6943
|
},
|
|
6892
6944
|
options?.headers
|
|
6893
6945
|
]),
|
|
6946
|
+
__qualifiers: { beta: "true" },
|
|
6894
6947
|
__span: startApiCallSpan(this._client, "anthropic.memory_stores.update", options, {
|
|
6895
6948
|
route: "/v1/memory_stores/{memory_store_id}",
|
|
6896
6949
|
attributes: { "gen_ai.memory.store.id": memoryStoreID }
|
|
@@ -6899,7 +6952,7 @@ var MemoryStores = /* @__PURE__ */ (() => {
|
|
|
6899
6952
|
}
|
|
6900
6953
|
list(params = {}, options) {
|
|
6901
6954
|
const { betas, workspace_id, ...query } = params ?? {};
|
|
6902
|
-
return this._client.getAPIList("/v1/memory_stores
|
|
6955
|
+
return this._client.getAPIList("/v1/memory_stores", PageCursor, {
|
|
6903
6956
|
query,
|
|
6904
6957
|
...options,
|
|
6905
6958
|
headers: buildHeaders([
|
|
@@ -6909,6 +6962,7 @@ var MemoryStores = /* @__PURE__ */ (() => {
|
|
|
6909
6962
|
},
|
|
6910
6963
|
options?.headers
|
|
6911
6964
|
]),
|
|
6965
|
+
__qualifiers: { beta: "true" },
|
|
6912
6966
|
__span: startApiCallSpan(this._client, "anthropic.memory_stores.list", options, {
|
|
6913
6967
|
route: "/v1/memory_stores",
|
|
6914
6968
|
queryParams: ["created_at[gte]", "created_at[lte]", "include_archived", "limit", "page"]
|
|
@@ -6917,7 +6971,7 @@ var MemoryStores = /* @__PURE__ */ (() => {
|
|
|
6917
6971
|
}
|
|
6918
6972
|
delete(memoryStoreID, params = {}, options) {
|
|
6919
6973
|
const { betas, workspace_id } = params ?? {};
|
|
6920
|
-
return this._client.delete(path`/v1/memory_stores/${memoryStoreID}
|
|
6974
|
+
return this._client.delete(path`/v1/memory_stores/${memoryStoreID}`, {
|
|
6921
6975
|
...options,
|
|
6922
6976
|
headers: buildHeaders([
|
|
6923
6977
|
{
|
|
@@ -6926,6 +6980,7 @@ var MemoryStores = /* @__PURE__ */ (() => {
|
|
|
6926
6980
|
},
|
|
6927
6981
|
options?.headers
|
|
6928
6982
|
]),
|
|
6983
|
+
__qualifiers: { beta: "true" },
|
|
6929
6984
|
__span: startApiCallSpan(this._client, "anthropic.memory_stores.delete", options, {
|
|
6930
6985
|
route: "/v1/memory_stores/{memory_store_id}",
|
|
6931
6986
|
attributes: { "gen_ai.memory.store.id": memoryStoreID }
|
|
@@ -6934,7 +6989,7 @@ var MemoryStores = /* @__PURE__ */ (() => {
|
|
|
6934
6989
|
}
|
|
6935
6990
|
archive(memoryStoreID, params = {}, options) {
|
|
6936
6991
|
const { betas, workspace_id } = params ?? {};
|
|
6937
|
-
return this._client.post(path`/v1/memory_stores/${memoryStoreID}/archive
|
|
6992
|
+
return this._client.post(path`/v1/memory_stores/${memoryStoreID}/archive`, {
|
|
6938
6993
|
...options,
|
|
6939
6994
|
headers: buildHeaders([
|
|
6940
6995
|
{
|
|
@@ -6943,6 +6998,7 @@ var MemoryStores = /* @__PURE__ */ (() => {
|
|
|
6943
6998
|
},
|
|
6944
6999
|
options?.headers
|
|
6945
7000
|
]),
|
|
7001
|
+
__qualifiers: { beta: "true" },
|
|
6946
7002
|
__span: startApiCallSpan(this._client, "anthropic.memory_stores.archive", options, {
|
|
6947
7003
|
route: "/v1/memory_stores/{memory_store_id}/archive",
|
|
6948
7004
|
attributes: { "gen_ai.memory.store.id": memoryStoreID }
|
|
@@ -6959,7 +7015,7 @@ var MemoryStores = /* @__PURE__ */ (() => {
|
|
|
6959
7015
|
class Batches2 extends APIResource {
|
|
6960
7016
|
create(params, options) {
|
|
6961
7017
|
const { betas, user_profile_id, workspace_id, ...body } = params;
|
|
6962
|
-
return this._client.post("/v1/messages/batches
|
|
7018
|
+
return this._client.post("/v1/messages/batches", {
|
|
6963
7019
|
body,
|
|
6964
7020
|
...options,
|
|
6965
7021
|
headers: buildHeaders([
|
|
@@ -6970,6 +7026,7 @@ class Batches2 extends APIResource {
|
|
|
6970
7026
|
},
|
|
6971
7027
|
options?.headers
|
|
6972
7028
|
]),
|
|
7029
|
+
__qualifiers: { beta: "true" },
|
|
6973
7030
|
__span: startApiCallSpan(this._client, "anthropic.messages.batches.create", options, {
|
|
6974
7031
|
route: "/v1/messages/batches",
|
|
6975
7032
|
attributes: { "anthropic.message.batch.request_count": body.requests?.length },
|
|
@@ -6979,7 +7036,7 @@ class Batches2 extends APIResource {
|
|
|
6979
7036
|
}
|
|
6980
7037
|
retrieve(messageBatchID, params = {}, options) {
|
|
6981
7038
|
const { betas, workspace_id } = params ?? {};
|
|
6982
|
-
return this._client.get(path`/v1/messages/batches/${messageBatchID}
|
|
7039
|
+
return this._client.get(path`/v1/messages/batches/${messageBatchID}`, {
|
|
6983
7040
|
...options,
|
|
6984
7041
|
headers: buildHeaders([
|
|
6985
7042
|
{
|
|
@@ -6988,6 +7045,7 @@ class Batches2 extends APIResource {
|
|
|
6988
7045
|
},
|
|
6989
7046
|
options?.headers
|
|
6990
7047
|
]),
|
|
7048
|
+
__qualifiers: { beta: "true" },
|
|
6991
7049
|
__span: startApiCallSpan(this._client, "anthropic.messages.batches.retrieve", options, {
|
|
6992
7050
|
route: "/v1/messages/batches/{message_batch_id}",
|
|
6993
7051
|
attributes: { "anthropic.message.batch.id": messageBatchID }
|
|
@@ -6996,7 +7054,7 @@ class Batches2 extends APIResource {
|
|
|
6996
7054
|
}
|
|
6997
7055
|
list(params = {}, options) {
|
|
6998
7056
|
const { betas, workspace_id, ...query } = params ?? {};
|
|
6999
|
-
return this._client.getAPIList("/v1/messages/batches
|
|
7057
|
+
return this._client.getAPIList("/v1/messages/batches", Page, {
|
|
7000
7058
|
query,
|
|
7001
7059
|
...options,
|
|
7002
7060
|
headers: buildHeaders([
|
|
@@ -7006,6 +7064,7 @@ class Batches2 extends APIResource {
|
|
|
7006
7064
|
},
|
|
7007
7065
|
options?.headers
|
|
7008
7066
|
]),
|
|
7067
|
+
__qualifiers: { beta: "true" },
|
|
7009
7068
|
__span: startApiCallSpan(this._client, "anthropic.messages.batches.list", options, {
|
|
7010
7069
|
route: "/v1/messages/batches",
|
|
7011
7070
|
queryParams: ["after_id", "before_id", "limit"]
|
|
@@ -7014,7 +7073,7 @@ class Batches2 extends APIResource {
|
|
|
7014
7073
|
}
|
|
7015
7074
|
delete(messageBatchID, params = {}, options) {
|
|
7016
7075
|
const { betas, workspace_id } = params ?? {};
|
|
7017
|
-
return this._client.delete(path`/v1/messages/batches/${messageBatchID}
|
|
7076
|
+
return this._client.delete(path`/v1/messages/batches/${messageBatchID}`, {
|
|
7018
7077
|
...options,
|
|
7019
7078
|
headers: buildHeaders([
|
|
7020
7079
|
{
|
|
@@ -7023,6 +7082,7 @@ class Batches2 extends APIResource {
|
|
|
7023
7082
|
},
|
|
7024
7083
|
options?.headers
|
|
7025
7084
|
]),
|
|
7085
|
+
__qualifiers: { beta: "true" },
|
|
7026
7086
|
__span: startApiCallSpan(this._client, "anthropic.messages.batches.delete", options, {
|
|
7027
7087
|
route: "/v1/messages/batches/{message_batch_id}",
|
|
7028
7088
|
attributes: { "anthropic.message.batch.id": messageBatchID }
|
|
@@ -7031,7 +7091,7 @@ class Batches2 extends APIResource {
|
|
|
7031
7091
|
}
|
|
7032
7092
|
cancel(messageBatchID, params = {}, options) {
|
|
7033
7093
|
const { betas, workspace_id } = params ?? {};
|
|
7034
|
-
return this._client.post(path`/v1/messages/batches/${messageBatchID}/cancel
|
|
7094
|
+
return this._client.post(path`/v1/messages/batches/${messageBatchID}/cancel`, {
|
|
7035
7095
|
...options,
|
|
7036
7096
|
headers: buildHeaders([
|
|
7037
7097
|
{
|
|
@@ -7040,6 +7100,7 @@ class Batches2 extends APIResource {
|
|
|
7040
7100
|
},
|
|
7041
7101
|
options?.headers
|
|
7042
7102
|
]),
|
|
7103
|
+
__qualifiers: { beta: "true" },
|
|
7043
7104
|
__span: startApiCallSpan(this._client, "anthropic.messages.batches.cancel", options, {
|
|
7044
7105
|
route: "/v1/messages/batches/{message_batch_id}/cancel",
|
|
7045
7106
|
attributes: { "anthropic.message.batch.id": messageBatchID }
|
|
@@ -7063,6 +7124,7 @@ class Batches2 extends APIResource {
|
|
|
7063
7124
|
options?.headers
|
|
7064
7125
|
]),
|
|
7065
7126
|
stream: true,
|
|
7127
|
+
__qualifiers: { beta: "true" },
|
|
7066
7128
|
__binaryResponse: true,
|
|
7067
7129
|
__span: startApiCallSpan(this._client, "anthropic.messages.batches.results", options, {
|
|
7068
7130
|
route: "/v1/messages/batches/{message_batch_id}/results",
|
|
@@ -7909,8 +7971,9 @@ async function runToolsetMember(toolset, toolUse, options = {}) {
|
|
|
7909
7971
|
// node_modules/@anthropic-ai/sdk/resources/beta/organization/api-keys.mjs
|
|
7910
7972
|
class APIKeys extends APIResource {
|
|
7911
7973
|
retrieve(apiKeyID, options) {
|
|
7912
|
-
return this._client.get(path`/v1/organizations/api_keys/${apiKeyID}
|
|
7974
|
+
return this._client.get(path`/v1/organizations/api_keys/${apiKeyID}`, {
|
|
7913
7975
|
...options,
|
|
7976
|
+
__qualifiers: { beta: "true" },
|
|
7914
7977
|
__span: startApiCallSpan(this._client, "anthropic.organization.api_keys.retrieve", options, {
|
|
7915
7978
|
route: "/v1/organizations/api_keys/{api_key_id}",
|
|
7916
7979
|
attributes: { "anthropic.organization.api_key.id": apiKeyID }
|
|
@@ -7918,9 +7981,10 @@ class APIKeys extends APIResource {
|
|
|
7918
7981
|
});
|
|
7919
7982
|
}
|
|
7920
7983
|
update(apiKeyID, body, options) {
|
|
7921
|
-
return this._client.post(path`/v1/organizations/api_keys/${apiKeyID}
|
|
7984
|
+
return this._client.post(path`/v1/organizations/api_keys/${apiKeyID}`, {
|
|
7922
7985
|
body,
|
|
7923
7986
|
...options,
|
|
7987
|
+
__qualifiers: { beta: "true" },
|
|
7924
7988
|
__span: startApiCallSpan(this._client, "anthropic.organization.api_keys.update", options, {
|
|
7925
7989
|
route: "/v1/organizations/api_keys/{api_key_id}",
|
|
7926
7990
|
attributes: { "anthropic.organization.api_key.id": apiKeyID }
|
|
@@ -7928,9 +7992,10 @@ class APIKeys extends APIResource {
|
|
|
7928
7992
|
});
|
|
7929
7993
|
}
|
|
7930
7994
|
list(query = {}, options) {
|
|
7931
|
-
return this._client.getAPIList("/v1/organizations/api_keys
|
|
7995
|
+
return this._client.getAPIList("/v1/organizations/api_keys", Page, {
|
|
7932
7996
|
query,
|
|
7933
7997
|
...options,
|
|
7998
|
+
__qualifiers: { beta: "true" },
|
|
7934
7999
|
__span: startApiCallSpan(this._client, "anthropic.organization.api_keys.list", options, {
|
|
7935
8000
|
route: "/v1/organizations/api_keys",
|
|
7936
8001
|
queryParams: ["after_id", "before_id", "created_by_user_id", "limit", "status", "workspace_id"]
|
|
@@ -7942,17 +8007,19 @@ class APIKeys extends APIResource {
|
|
|
7942
8007
|
// node_modules/@anthropic-ai/sdk/resources/beta/organization/compliance-settings.mjs
|
|
7943
8008
|
class ComplianceSettings extends APIResource {
|
|
7944
8009
|
retrieve(options) {
|
|
7945
|
-
return this._client.get("/v1/organizations/compliance_settings
|
|
8010
|
+
return this._client.get("/v1/organizations/compliance_settings", {
|
|
7946
8011
|
...options,
|
|
8012
|
+
__qualifiers: { beta: "true" },
|
|
7947
8013
|
__span: startApiCallSpan(this._client, "anthropic.organization.compliance_settings.retrieve", options, {
|
|
7948
8014
|
route: "/v1/organizations/compliance_settings"
|
|
7949
8015
|
})
|
|
7950
8016
|
});
|
|
7951
8017
|
}
|
|
7952
8018
|
update(body, options) {
|
|
7953
|
-
return this._client.post("/v1/organizations/compliance_settings
|
|
8019
|
+
return this._client.post("/v1/organizations/compliance_settings", {
|
|
7954
8020
|
body,
|
|
7955
8021
|
...options,
|
|
8022
|
+
__qualifiers: { beta: "true" },
|
|
7956
8023
|
__span: startApiCallSpan(this._client, "anthropic.organization.compliance_settings.update", options, {
|
|
7957
8024
|
route: "/v1/organizations/compliance_settings"
|
|
7958
8025
|
})
|
|
@@ -7963,9 +8030,10 @@ class ComplianceSettings extends APIResource {
|
|
|
7963
8030
|
// node_modules/@anthropic-ai/sdk/resources/beta/organization/external-keys.mjs
|
|
7964
8031
|
class ExternalKeys extends APIResource {
|
|
7965
8032
|
create(body, options) {
|
|
7966
|
-
return this._client.post("/v1/organizations/external_keys
|
|
8033
|
+
return this._client.post("/v1/organizations/external_keys", {
|
|
7967
8034
|
body,
|
|
7968
8035
|
...options,
|
|
8036
|
+
__qualifiers: { beta: "true" },
|
|
7969
8037
|
__span: startApiCallSpan(this._client, "anthropic.organization.external_keys.create", options, {
|
|
7970
8038
|
route: "/v1/organizations/external_keys",
|
|
7971
8039
|
createdIDAttribute: "anthropic.organization.external_key.id"
|
|
@@ -7973,8 +8041,9 @@ class ExternalKeys extends APIResource {
|
|
|
7973
8041
|
});
|
|
7974
8042
|
}
|
|
7975
8043
|
retrieve(externalKeyID, options) {
|
|
7976
|
-
return this._client.get(path`/v1/organizations/external_keys/${externalKeyID}
|
|
8044
|
+
return this._client.get(path`/v1/organizations/external_keys/${externalKeyID}`, {
|
|
7977
8045
|
...options,
|
|
8046
|
+
__qualifiers: { beta: "true" },
|
|
7978
8047
|
__span: startApiCallSpan(this._client, "anthropic.organization.external_keys.retrieve", options, {
|
|
7979
8048
|
route: "/v1/organizations/external_keys/{external_key_id}",
|
|
7980
8049
|
attributes: { "anthropic.organization.external_key.id": externalKeyID }
|
|
@@ -7982,9 +8051,10 @@ class ExternalKeys extends APIResource {
|
|
|
7982
8051
|
});
|
|
7983
8052
|
}
|
|
7984
8053
|
update(externalKeyID, body, options) {
|
|
7985
|
-
return this._client.post(path`/v1/organizations/external_keys/${externalKeyID}
|
|
8054
|
+
return this._client.post(path`/v1/organizations/external_keys/${externalKeyID}`, {
|
|
7986
8055
|
body,
|
|
7987
8056
|
...options,
|
|
8057
|
+
__qualifiers: { beta: "true" },
|
|
7988
8058
|
__span: startApiCallSpan(this._client, "anthropic.organization.external_keys.update", options, {
|
|
7989
8059
|
route: "/v1/organizations/external_keys/{external_key_id}",
|
|
7990
8060
|
attributes: { "anthropic.organization.external_key.id": externalKeyID }
|
|
@@ -7992,9 +8062,10 @@ class ExternalKeys extends APIResource {
|
|
|
7992
8062
|
});
|
|
7993
8063
|
}
|
|
7994
8064
|
list(query = {}, options) {
|
|
7995
|
-
return this._client.getAPIList("/v1/organizations/external_keys
|
|
8065
|
+
return this._client.getAPIList("/v1/organizations/external_keys", PageCursor, {
|
|
7996
8066
|
query,
|
|
7997
8067
|
...options,
|
|
8068
|
+
__qualifiers: { beta: "true" },
|
|
7998
8069
|
__span: startApiCallSpan(this._client, "anthropic.organization.external_keys.list", options, {
|
|
7999
8070
|
route: "/v1/organizations/external_keys",
|
|
8000
8071
|
queryParams: ["limit", "page"]
|
|
@@ -8002,8 +8073,9 @@ class ExternalKeys extends APIResource {
|
|
|
8002
8073
|
});
|
|
8003
8074
|
}
|
|
8004
8075
|
delete(externalKeyID, options) {
|
|
8005
|
-
return this._client.delete(path`/v1/organizations/external_keys/${externalKeyID}
|
|
8076
|
+
return this._client.delete(path`/v1/organizations/external_keys/${externalKeyID}`, {
|
|
8006
8077
|
...options,
|
|
8078
|
+
__qualifiers: { beta: "true" },
|
|
8007
8079
|
__span: startApiCallSpan(this._client, "anthropic.organization.external_keys.delete", options, {
|
|
8008
8080
|
route: "/v1/organizations/external_keys/{external_key_id}",
|
|
8009
8081
|
attributes: { "anthropic.organization.external_key.id": externalKeyID }
|
|
@@ -8011,8 +8083,9 @@ class ExternalKeys extends APIResource {
|
|
|
8011
8083
|
});
|
|
8012
8084
|
}
|
|
8013
8085
|
validate(externalKeyID, options) {
|
|
8014
|
-
return this._client.post(path`/v1/organizations/external_keys/${externalKeyID}/validate
|
|
8086
|
+
return this._client.post(path`/v1/organizations/external_keys/${externalKeyID}/validate`, {
|
|
8015
8087
|
...options,
|
|
8088
|
+
__qualifiers: { beta: "true" },
|
|
8016
8089
|
__span: startApiCallSpan(this._client, "anthropic.organization.external_keys.validate", options, {
|
|
8017
8090
|
route: "/v1/organizations/external_keys/{external_key_id}/validate",
|
|
8018
8091
|
attributes: { "anthropic.organization.external_key.id": externalKeyID }
|
|
@@ -8024,9 +8097,10 @@ class ExternalKeys extends APIResource {
|
|
|
8024
8097
|
// node_modules/@anthropic-ai/sdk/resources/beta/organization/invites.mjs
|
|
8025
8098
|
class Invites extends APIResource {
|
|
8026
8099
|
create(body, options) {
|
|
8027
|
-
return this._client.post("/v1/organizations/invites
|
|
8100
|
+
return this._client.post("/v1/organizations/invites", {
|
|
8028
8101
|
body,
|
|
8029
8102
|
...options,
|
|
8103
|
+
__qualifiers: { beta: "true" },
|
|
8030
8104
|
__span: startApiCallSpan(this._client, "anthropic.organization.invites.create", options, {
|
|
8031
8105
|
route: "/v1/organizations/invites",
|
|
8032
8106
|
createdIDAttribute: "anthropic.organization.invite.id"
|
|
@@ -8034,8 +8108,9 @@ class Invites extends APIResource {
|
|
|
8034
8108
|
});
|
|
8035
8109
|
}
|
|
8036
8110
|
retrieve(inviteID, options) {
|
|
8037
|
-
return this._client.get(path`/v1/organizations/invites/${inviteID}
|
|
8111
|
+
return this._client.get(path`/v1/organizations/invites/${inviteID}`, {
|
|
8038
8112
|
...options,
|
|
8113
|
+
__qualifiers: { beta: "true" },
|
|
8039
8114
|
__span: startApiCallSpan(this._client, "anthropic.organization.invites.retrieve", options, {
|
|
8040
8115
|
route: "/v1/organizations/invites/{invite_id}",
|
|
8041
8116
|
attributes: { "anthropic.organization.invite.id": inviteID }
|
|
@@ -8043,9 +8118,10 @@ class Invites extends APIResource {
|
|
|
8043
8118
|
});
|
|
8044
8119
|
}
|
|
8045
8120
|
list(query = {}, options) {
|
|
8046
|
-
return this._client.getAPIList("/v1/organizations/invites
|
|
8121
|
+
return this._client.getAPIList("/v1/organizations/invites", Page, {
|
|
8047
8122
|
query,
|
|
8048
8123
|
...options,
|
|
8124
|
+
__qualifiers: { beta: "true" },
|
|
8049
8125
|
__span: startApiCallSpan(this._client, "anthropic.organization.invites.list", options, {
|
|
8050
8126
|
route: "/v1/organizations/invites",
|
|
8051
8127
|
queryParams: ["after_id", "before_id", "email", "limit", "roles", "statuses"]
|
|
@@ -8053,8 +8129,9 @@ class Invites extends APIResource {
|
|
|
8053
8129
|
});
|
|
8054
8130
|
}
|
|
8055
8131
|
delete(inviteID, options) {
|
|
8056
|
-
return this._client.delete(path`/v1/organizations/invites/${inviteID}
|
|
8132
|
+
return this._client.delete(path`/v1/organizations/invites/${inviteID}`, {
|
|
8057
8133
|
...options,
|
|
8134
|
+
__qualifiers: { beta: "true" },
|
|
8058
8135
|
__span: startApiCallSpan(this._client, "anthropic.organization.invites.delete", options, {
|
|
8059
8136
|
route: "/v1/organizations/invites/{invite_id}",
|
|
8060
8137
|
attributes: { "anthropic.organization.invite.id": inviteID }
|
|
@@ -8067,13 +8144,14 @@ class Invites extends APIResource {
|
|
|
8067
8144
|
class PluginMarketplaces extends APIResource {
|
|
8068
8145
|
retrieve(marketplaceID, params = {}, options) {
|
|
8069
8146
|
const { betas, ...query } = params ?? {};
|
|
8070
|
-
return this._client.get(path`/v1/organizations/plugin_marketplaces/${marketplaceID}
|
|
8147
|
+
return this._client.get(path`/v1/organizations/plugin_marketplaces/${marketplaceID}`, {
|
|
8071
8148
|
query,
|
|
8072
8149
|
...options,
|
|
8073
8150
|
headers: buildHeaders([
|
|
8074
8151
|
{ "anthropic-beta": [...betas ?? [], "ce-plugins-2026-09-01"].toString() },
|
|
8075
8152
|
options?.headers
|
|
8076
8153
|
]),
|
|
8154
|
+
__qualifiers: { beta: "true" },
|
|
8077
8155
|
__span: startApiCallSpan(this._client, "anthropic.organization.plugin_marketplaces.retrieve", options, {
|
|
8078
8156
|
route: "/v1/organizations/plugin_marketplaces/{marketplace_id}",
|
|
8079
8157
|
queryParams: ["organization_id"],
|
|
@@ -8083,13 +8161,14 @@ class PluginMarketplaces extends APIResource {
|
|
|
8083
8161
|
}
|
|
8084
8162
|
update(marketplaceID, params, options) {
|
|
8085
8163
|
const { betas, ...body } = params;
|
|
8086
|
-
return this._client.post(path`/v1/organizations/plugin_marketplaces/${marketplaceID}
|
|
8164
|
+
return this._client.post(path`/v1/organizations/plugin_marketplaces/${marketplaceID}`, {
|
|
8087
8165
|
body,
|
|
8088
8166
|
...options,
|
|
8089
8167
|
headers: buildHeaders([
|
|
8090
8168
|
{ "anthropic-beta": [...betas ?? [], "ce-plugins-2026-09-01"].toString() },
|
|
8091
8169
|
options?.headers
|
|
8092
8170
|
]),
|
|
8171
|
+
__qualifiers: { beta: "true" },
|
|
8093
8172
|
__span: startApiCallSpan(this._client, "anthropic.organization.plugin_marketplaces.update", options, {
|
|
8094
8173
|
route: "/v1/organizations/plugin_marketplaces/{marketplace_id}",
|
|
8095
8174
|
attributes: { "anthropic.organization.plugin_marketplace.id": marketplaceID }
|
|
@@ -8098,13 +8177,14 @@ class PluginMarketplaces extends APIResource {
|
|
|
8098
8177
|
}
|
|
8099
8178
|
list(params = {}, options) {
|
|
8100
8179
|
const { betas, ...query } = params ?? {};
|
|
8101
|
-
return this._client.getAPIList("/v1/organizations/plugin_marketplaces
|
|
8180
|
+
return this._client.getAPIList("/v1/organizations/plugin_marketplaces", PageCursor, {
|
|
8102
8181
|
query,
|
|
8103
8182
|
...options,
|
|
8104
8183
|
headers: buildHeaders([
|
|
8105
8184
|
{ "anthropic-beta": [...betas ?? [], "ce-plugins-2026-09-01"].toString() },
|
|
8106
8185
|
options?.headers
|
|
8107
8186
|
]),
|
|
8187
|
+
__qualifiers: { beta: "true" },
|
|
8108
8188
|
__span: startApiCallSpan(this._client, "anthropic.organization.plugin_marketplaces.list", options, {
|
|
8109
8189
|
route: "/v1/organizations/plugin_marketplaces",
|
|
8110
8190
|
queryParams: ["limit", "organization_id", "owner_type", "page", "source"]
|
|
@@ -8113,25 +8193,27 @@ class PluginMarketplaces extends APIResource {
|
|
|
8113
8193
|
}
|
|
8114
8194
|
validateArchive(params, options) {
|
|
8115
8195
|
const { betas, ...body } = params;
|
|
8116
|
-
return this._client.post("/v1/organizations/plugin_marketplaces/validate_archive
|
|
8196
|
+
return this._client.post("/v1/organizations/plugin_marketplaces/validate_archive", multipartFormRequestOptions({
|
|
8117
8197
|
body,
|
|
8118
8198
|
...options,
|
|
8119
8199
|
headers: buildHeaders([
|
|
8120
8200
|
{ "anthropic-beta": [...betas ?? [], "ce-plugins-2026-09-01"].toString() },
|
|
8121
8201
|
options?.headers
|
|
8122
8202
|
]),
|
|
8203
|
+
__qualifiers: { beta: "true" },
|
|
8123
8204
|
__span: startApiCallSpan(this._client, "anthropic.organization.plugin_marketplaces.validate_archive", options, { route: "/v1/organizations/plugin_marketplaces/validate_archive" })
|
|
8124
8205
|
}, this._client));
|
|
8125
8206
|
}
|
|
8126
8207
|
validateRepository(params, options) {
|
|
8127
8208
|
const { betas, ...body } = params;
|
|
8128
|
-
return this._client.post("/v1/organizations/plugin_marketplaces/validate_repository
|
|
8209
|
+
return this._client.post("/v1/organizations/plugin_marketplaces/validate_repository", {
|
|
8129
8210
|
body,
|
|
8130
8211
|
...options,
|
|
8131
8212
|
headers: buildHeaders([
|
|
8132
8213
|
{ "anthropic-beta": [...betas ?? [], "ce-plugins-2026-09-01"].toString() },
|
|
8133
8214
|
options?.headers
|
|
8134
8215
|
]),
|
|
8216
|
+
__qualifiers: { beta: "true" },
|
|
8135
8217
|
__span: startApiCallSpan(this._client, "anthropic.organization.plugin_marketplaces.validate_repository", options, { route: "/v1/organizations/plugin_marketplaces/validate_repository" })
|
|
8136
8218
|
});
|
|
8137
8219
|
}
|
|
@@ -8140,9 +8222,10 @@ class PluginMarketplaces extends APIResource {
|
|
|
8140
8222
|
// node_modules/@anthropic-ai/sdk/resources/beta/organization/rate-limits.mjs
|
|
8141
8223
|
class RateLimits extends APIResource {
|
|
8142
8224
|
list(query = {}, options) {
|
|
8143
|
-
return this._client.getAPIList("/v1/organizations/rate_limits
|
|
8225
|
+
return this._client.getAPIList("/v1/organizations/rate_limits", PageCursor, {
|
|
8144
8226
|
query,
|
|
8145
8227
|
...options,
|
|
8228
|
+
__qualifiers: { beta: "true" },
|
|
8146
8229
|
__span: startApiCallSpan(this._client, "anthropic.organization.rate_limits.list", options, {
|
|
8147
8230
|
route: "/v1/organizations/rate_limits",
|
|
8148
8231
|
queryParams: ["group_type", "limit", "model", "page"]
|
|
@@ -8154,8 +8237,9 @@ class RateLimits extends APIResource {
|
|
|
8154
8237
|
// node_modules/@anthropic-ai/sdk/resources/beta/organization/users.mjs
|
|
8155
8238
|
class Users extends APIResource {
|
|
8156
8239
|
retrieve(userID, options) {
|
|
8157
|
-
return this._client.get(path`/v1/organizations/users/${userID}
|
|
8240
|
+
return this._client.get(path`/v1/organizations/users/${userID}`, {
|
|
8158
8241
|
...options,
|
|
8242
|
+
__qualifiers: { beta: "true" },
|
|
8159
8243
|
__span: startApiCallSpan(this._client, "anthropic.organization.users.retrieve", options, {
|
|
8160
8244
|
route: "/v1/organizations/users/{user_id}",
|
|
8161
8245
|
attributes: { "anthropic.organization.user.id": userID }
|
|
@@ -8163,9 +8247,10 @@ class Users extends APIResource {
|
|
|
8163
8247
|
});
|
|
8164
8248
|
}
|
|
8165
8249
|
update(userID, body, options) {
|
|
8166
|
-
return this._client.post(path`/v1/organizations/users/${userID}
|
|
8250
|
+
return this._client.post(path`/v1/organizations/users/${userID}`, {
|
|
8167
8251
|
body,
|
|
8168
8252
|
...options,
|
|
8253
|
+
__qualifiers: { beta: "true" },
|
|
8169
8254
|
__span: startApiCallSpan(this._client, "anthropic.organization.users.update", options, {
|
|
8170
8255
|
route: "/v1/organizations/users/{user_id}",
|
|
8171
8256
|
attributes: { "anthropic.organization.user.id": userID }
|
|
@@ -8173,9 +8258,10 @@ class Users extends APIResource {
|
|
|
8173
8258
|
});
|
|
8174
8259
|
}
|
|
8175
8260
|
list(query = {}, options) {
|
|
8176
|
-
return this._client.getAPIList("/v1/organizations/users
|
|
8261
|
+
return this._client.getAPIList("/v1/organizations/users", Page, {
|
|
8177
8262
|
query,
|
|
8178
8263
|
...options,
|
|
8264
|
+
__qualifiers: { beta: "true" },
|
|
8179
8265
|
__span: startApiCallSpan(this._client, "anthropic.organization.users.list", options, {
|
|
8180
8266
|
route: "/v1/organizations/users",
|
|
8181
8267
|
queryParams: ["after_id", "before_id", "email", "limit", "roles"]
|
|
@@ -8183,8 +8269,9 @@ class Users extends APIResource {
|
|
|
8183
8269
|
});
|
|
8184
8270
|
}
|
|
8185
8271
|
remove(userID, options) {
|
|
8186
|
-
return this._client.delete(path`/v1/organizations/users/${userID}
|
|
8272
|
+
return this._client.delete(path`/v1/organizations/users/${userID}`, {
|
|
8187
8273
|
...options,
|
|
8274
|
+
__qualifiers: { beta: "true" },
|
|
8188
8275
|
__span: startApiCallSpan(this._client, "anthropic.organization.users.remove", options, {
|
|
8189
8276
|
route: "/v1/organizations/users/{user_id}",
|
|
8190
8277
|
attributes: { "anthropic.organization.user.id": userID }
|
|
@@ -8197,13 +8284,14 @@ class Users extends APIResource {
|
|
|
8197
8284
|
class Webhooks2 extends APIResource {
|
|
8198
8285
|
create(params, options) {
|
|
8199
8286
|
const { betas, ...body } = params;
|
|
8200
|
-
return this._client.post("/v1/organizations/webhooks
|
|
8287
|
+
return this._client.post("/v1/organizations/webhooks", {
|
|
8201
8288
|
body,
|
|
8202
8289
|
...options,
|
|
8203
8290
|
headers: buildHeaders([
|
|
8204
8291
|
{ "anthropic-beta": [...betas ?? [], "webhooks-2026-10-07"].toString() },
|
|
8205
8292
|
options?.headers
|
|
8206
8293
|
]),
|
|
8294
|
+
__qualifiers: { beta: "true" },
|
|
8207
8295
|
__span: startApiCallSpan(this._client, "anthropic.organization.webhooks.create", options, {
|
|
8208
8296
|
route: "/v1/organizations/webhooks",
|
|
8209
8297
|
createdIDAttribute: "anthropic.organization.webhook.id"
|
|
@@ -8212,12 +8300,13 @@ class Webhooks2 extends APIResource {
|
|
|
8212
8300
|
}
|
|
8213
8301
|
retrieve(webhookEndpointID, params = {}, options) {
|
|
8214
8302
|
const { betas } = params ?? {};
|
|
8215
|
-
return this._client.get(path`/v1/organizations/webhooks/${webhookEndpointID}
|
|
8303
|
+
return this._client.get(path`/v1/organizations/webhooks/${webhookEndpointID}`, {
|
|
8216
8304
|
...options,
|
|
8217
8305
|
headers: buildHeaders([
|
|
8218
8306
|
{ "anthropic-beta": [...betas ?? [], "webhooks-2026-10-07"].toString() },
|
|
8219
8307
|
options?.headers
|
|
8220
8308
|
]),
|
|
8309
|
+
__qualifiers: { beta: "true" },
|
|
8221
8310
|
__span: startApiCallSpan(this._client, "anthropic.organization.webhooks.retrieve", options, {
|
|
8222
8311
|
route: "/v1/organizations/webhooks/{webhook_endpoint_id}",
|
|
8223
8312
|
attributes: { "anthropic.organization.webhook.id": webhookEndpointID }
|
|
@@ -8226,13 +8315,14 @@ class Webhooks2 extends APIResource {
|
|
|
8226
8315
|
}
|
|
8227
8316
|
update(webhookEndpointID, params, options) {
|
|
8228
8317
|
const { betas, ...body } = params;
|
|
8229
|
-
return this._client.post(path`/v1/organizations/webhooks/${webhookEndpointID}
|
|
8318
|
+
return this._client.post(path`/v1/organizations/webhooks/${webhookEndpointID}`, {
|
|
8230
8319
|
body,
|
|
8231
8320
|
...options,
|
|
8232
8321
|
headers: buildHeaders([
|
|
8233
8322
|
{ "anthropic-beta": [...betas ?? [], "webhooks-2026-10-07"].toString() },
|
|
8234
8323
|
options?.headers
|
|
8235
8324
|
]),
|
|
8325
|
+
__qualifiers: { beta: "true" },
|
|
8236
8326
|
__span: startApiCallSpan(this._client, "anthropic.organization.webhooks.update", options, {
|
|
8237
8327
|
route: "/v1/organizations/webhooks/{webhook_endpoint_id}",
|
|
8238
8328
|
attributes: { "anthropic.organization.webhook.id": webhookEndpointID }
|
|
@@ -8241,13 +8331,14 @@ class Webhooks2 extends APIResource {
|
|
|
8241
8331
|
}
|
|
8242
8332
|
list(params = {}, options) {
|
|
8243
8333
|
const { betas, ...query } = params ?? {};
|
|
8244
|
-
return this._client.getAPIList("/v1/organizations/webhooks
|
|
8334
|
+
return this._client.getAPIList("/v1/organizations/webhooks", Page, {
|
|
8245
8335
|
query,
|
|
8246
8336
|
...options,
|
|
8247
8337
|
headers: buildHeaders([
|
|
8248
8338
|
{ "anthropic-beta": [...betas ?? [], "webhooks-2026-10-07"].toString() },
|
|
8249
8339
|
options?.headers
|
|
8250
8340
|
]),
|
|
8341
|
+
__qualifiers: { beta: "true" },
|
|
8251
8342
|
__span: startApiCallSpan(this._client, "anthropic.organization.webhooks.list", options, {
|
|
8252
8343
|
route: "/v1/organizations/webhooks",
|
|
8253
8344
|
queryParams: ["after_id", "before_id", "limit", "order"]
|
|
@@ -8256,12 +8347,13 @@ class Webhooks2 extends APIResource {
|
|
|
8256
8347
|
}
|
|
8257
8348
|
delete(webhookEndpointID, params = {}, options) {
|
|
8258
8349
|
const { betas } = params ?? {};
|
|
8259
|
-
return this._client.delete(path`/v1/organizations/webhooks/${webhookEndpointID}
|
|
8350
|
+
return this._client.delete(path`/v1/organizations/webhooks/${webhookEndpointID}`, {
|
|
8260
8351
|
...options,
|
|
8261
8352
|
headers: buildHeaders([
|
|
8262
8353
|
{ "anthropic-beta": [...betas ?? [], "webhooks-2026-10-07"].toString() },
|
|
8263
8354
|
options?.headers
|
|
8264
8355
|
]),
|
|
8356
|
+
__qualifiers: { beta: "true" },
|
|
8265
8357
|
__span: startApiCallSpan(this._client, "anthropic.organization.webhooks.delete", options, {
|
|
8266
8358
|
route: "/v1/organizations/webhooks/{webhook_endpoint_id}",
|
|
8267
8359
|
attributes: { "anthropic.organization.webhook.id": webhookEndpointID }
|
|
@@ -8270,12 +8362,13 @@ class Webhooks2 extends APIResource {
|
|
|
8270
8362
|
}
|
|
8271
8363
|
regenerateSigningSecret(webhookEndpointID, params = {}, options) {
|
|
8272
8364
|
const { betas } = params ?? {};
|
|
8273
|
-
return this._client.post(path`/v1/organizations/webhooks/${webhookEndpointID}/regenerate_signing_secret
|
|
8365
|
+
return this._client.post(path`/v1/organizations/webhooks/${webhookEndpointID}/regenerate_signing_secret`, {
|
|
8274
8366
|
...options,
|
|
8275
8367
|
headers: buildHeaders([
|
|
8276
8368
|
{ "anthropic-beta": [...betas ?? [], "webhooks-2026-10-07"].toString() },
|
|
8277
8369
|
options?.headers
|
|
8278
8370
|
]),
|
|
8371
|
+
__qualifiers: { beta: "true" },
|
|
8279
8372
|
__span: startApiCallSpan(this._client, "anthropic.organization.webhooks.regenerate_signing_secret", options, {
|
|
8280
8373
|
route: "/v1/organizations/webhooks/{webhook_endpoint_id}/regenerate_signing_secret",
|
|
8281
8374
|
attributes: { "anthropic.organization.webhook.id": webhookEndpointID }
|
|
@@ -8287,9 +8380,10 @@ class Webhooks2 extends APIResource {
|
|
|
8287
8380
|
// node_modules/@anthropic-ai/sdk/resources/beta/organization/analytics/artifacts.mjs
|
|
8288
8381
|
class Artifacts extends APIResource {
|
|
8289
8382
|
list(query, options) {
|
|
8290
|
-
return this._client.getAPIList("/v1/organizations/analytics/artifacts
|
|
8383
|
+
return this._client.getAPIList("/v1/organizations/analytics/artifacts", PageCursor, {
|
|
8291
8384
|
query,
|
|
8292
8385
|
...options,
|
|
8386
|
+
__qualifiers: { beta: "true" },
|
|
8293
8387
|
__span: startApiCallSpan(this._client, "anthropic.organization.analytics.artifacts.list", options, {
|
|
8294
8388
|
route: "/v1/organizations/analytics/artifacts",
|
|
8295
8389
|
queryParams: ["date", "filter", "group_by", "limit", "page"]
|
|
@@ -8301,9 +8395,10 @@ class Artifacts extends APIResource {
|
|
|
8301
8395
|
// node_modules/@anthropic-ai/sdk/resources/beta/organization/analytics/connectors.mjs
|
|
8302
8396
|
class Connectors extends APIResource {
|
|
8303
8397
|
list(query = {}, options) {
|
|
8304
|
-
return this._client.getAPIList("/v1/organizations/analytics/connectors
|
|
8398
|
+
return this._client.getAPIList("/v1/organizations/analytics/connectors", PageCursor, {
|
|
8305
8399
|
query,
|
|
8306
8400
|
...options,
|
|
8401
|
+
__qualifiers: { beta: "true" },
|
|
8307
8402
|
__span: startApiCallSpan(this._client, "anthropic.organization.analytics.connectors.list", options, {
|
|
8308
8403
|
route: "/v1/organizations/analytics/connectors",
|
|
8309
8404
|
queryParams: [
|
|
@@ -8327,13 +8422,14 @@ class Connectors extends APIResource {
|
|
|
8327
8422
|
class Cost extends APIResource {
|
|
8328
8423
|
list(params, options) {
|
|
8329
8424
|
const { betas, ...query } = params;
|
|
8330
|
-
return this._client.getAPIList("/v1/organizations/analytics/cost
|
|
8425
|
+
return this._client.getAPIList("/v1/organizations/analytics/cost", ReportPageCursor, {
|
|
8331
8426
|
query,
|
|
8332
8427
|
...options,
|
|
8333
8428
|
headers: buildHeaders([
|
|
8334
8429
|
{ "anthropic-beta": [...betas ?? [], "analytics-usage-cost-2026-08-24"].toString() },
|
|
8335
8430
|
options?.headers
|
|
8336
8431
|
]),
|
|
8432
|
+
__qualifiers: { beta: "true" },
|
|
8337
8433
|
__span: startApiCallSpan(this._client, "anthropic.organization.analytics.cost.list", options, {
|
|
8338
8434
|
route: "/v1/organizations/analytics/cost",
|
|
8339
8435
|
queryParams: [
|
|
@@ -8374,9 +8470,10 @@ class Cost extends APIResource {
|
|
|
8374
8470
|
// node_modules/@anthropic-ai/sdk/resources/beta/organization/analytics/cost-report.mjs
|
|
8375
8471
|
class CostReport extends APIResource {
|
|
8376
8472
|
list(query, options) {
|
|
8377
|
-
return this._client.getAPIList("/v1/organizations/analytics/cost_report
|
|
8473
|
+
return this._client.getAPIList("/v1/organizations/analytics/cost_report", ReportPageCursor, {
|
|
8378
8474
|
query,
|
|
8379
8475
|
...options,
|
|
8476
|
+
__qualifiers: { beta: "true" },
|
|
8380
8477
|
__span: startApiCallSpan(this._client, "anthropic.organization.analytics.cost_report.list", options, {
|
|
8381
8478
|
route: "/v1/organizations/analytics/cost_report",
|
|
8382
8479
|
queryParams: [
|
|
@@ -8405,9 +8502,10 @@ class CostReport extends APIResource {
|
|
|
8405
8502
|
// node_modules/@anthropic-ai/sdk/resources/beta/organization/analytics/plugins.mjs
|
|
8406
8503
|
class Plugins extends APIResource {
|
|
8407
8504
|
list(query = {}, options) {
|
|
8408
|
-
return this._client.getAPIList("/v1/organizations/analytics/plugins
|
|
8505
|
+
return this._client.getAPIList("/v1/organizations/analytics/plugins", PageCursor, {
|
|
8409
8506
|
query,
|
|
8410
8507
|
...options,
|
|
8508
|
+
__qualifiers: { beta: "true" },
|
|
8411
8509
|
__span: startApiCallSpan(this._client, "anthropic.organization.analytics.plugins.list", options, {
|
|
8412
8510
|
route: "/v1/organizations/analytics/plugins",
|
|
8413
8511
|
queryParams: [
|
|
@@ -8430,9 +8528,10 @@ class Plugins extends APIResource {
|
|
|
8430
8528
|
// node_modules/@anthropic-ai/sdk/resources/beta/organization/analytics/skills.mjs
|
|
8431
8529
|
class Skills extends APIResource {
|
|
8432
8530
|
list(query = {}, options) {
|
|
8433
|
-
return this._client.getAPIList("/v1/organizations/analytics/skills
|
|
8531
|
+
return this._client.getAPIList("/v1/organizations/analytics/skills", PageCursor, {
|
|
8434
8532
|
query,
|
|
8435
8533
|
...options,
|
|
8534
|
+
__qualifiers: { beta: "true" },
|
|
8436
8535
|
__span: startApiCallSpan(this._client, "anthropic.organization.analytics.skills.list", options, {
|
|
8437
8536
|
route: "/v1/organizations/analytics/skills",
|
|
8438
8537
|
queryParams: [
|
|
@@ -8455,9 +8554,10 @@ class Skills extends APIResource {
|
|
|
8455
8554
|
// node_modules/@anthropic-ai/sdk/resources/beta/organization/analytics/summaries.mjs
|
|
8456
8555
|
class Summaries extends APIResource {
|
|
8457
8556
|
list(query, options) {
|
|
8458
|
-
return this._client.getAPIList("/v1/organizations/analytics/summaries
|
|
8557
|
+
return this._client.getAPIList("/v1/organizations/analytics/summaries", PageCursor, {
|
|
8459
8558
|
query,
|
|
8460
8559
|
...options,
|
|
8560
|
+
__qualifiers: { beta: "true" },
|
|
8461
8561
|
__span: startApiCallSpan(this._client, "anthropic.organization.analytics.summaries.list", options, {
|
|
8462
8562
|
route: "/v1/organizations/analytics/summaries",
|
|
8463
8563
|
queryParams: ["ending_date", "filter", "limit", "page", "starting_date"]
|
|
@@ -8470,13 +8570,14 @@ class Summaries extends APIResource {
|
|
|
8470
8570
|
class Usage extends APIResource {
|
|
8471
8571
|
list(params, options) {
|
|
8472
8572
|
const { betas, ...query } = params;
|
|
8473
|
-
return this._client.getAPIList("/v1/organizations/analytics/usage
|
|
8573
|
+
return this._client.getAPIList("/v1/organizations/analytics/usage", ReportPageCursor, {
|
|
8474
8574
|
query,
|
|
8475
8575
|
...options,
|
|
8476
8576
|
headers: buildHeaders([
|
|
8477
8577
|
{ "anthropic-beta": [...betas ?? [], "analytics-usage-cost-2026-08-24"].toString() },
|
|
8478
8578
|
options?.headers
|
|
8479
8579
|
]),
|
|
8580
|
+
__qualifiers: { beta: "true" },
|
|
8480
8581
|
__span: startApiCallSpan(this._client, "anthropic.organization.analytics.usage.list", options, {
|
|
8481
8582
|
route: "/v1/organizations/analytics/usage",
|
|
8482
8583
|
queryParams: [
|
|
@@ -8517,9 +8618,10 @@ class Usage extends APIResource {
|
|
|
8517
8618
|
// node_modules/@anthropic-ai/sdk/resources/beta/organization/analytics/usage-report.mjs
|
|
8518
8619
|
class UsageReport extends APIResource {
|
|
8519
8620
|
list(query, options) {
|
|
8520
|
-
return this._client.getAPIList("/v1/organizations/analytics/usage_report
|
|
8621
|
+
return this._client.getAPIList("/v1/organizations/analytics/usage_report", ReportPageCursor, {
|
|
8521
8622
|
query,
|
|
8522
8623
|
...options,
|
|
8624
|
+
__qualifiers: { beta: "true" },
|
|
8523
8625
|
__span: startApiCallSpan(this._client, "anthropic.organization.analytics.usage_report.list", options, {
|
|
8524
8626
|
route: "/v1/organizations/analytics/usage_report",
|
|
8525
8627
|
queryParams: [
|
|
@@ -8548,9 +8650,10 @@ class UsageReport extends APIResource {
|
|
|
8548
8650
|
// node_modules/@anthropic-ai/sdk/resources/beta/organization/analytics/user-cost-report.mjs
|
|
8549
8651
|
class UserCostReport extends APIResource {
|
|
8550
8652
|
list(query, options) {
|
|
8551
|
-
return this._client.getAPIList("/v1/organizations/analytics/user_cost_report
|
|
8653
|
+
return this._client.getAPIList("/v1/organizations/analytics/user_cost_report", ReportPageCursor, {
|
|
8552
8654
|
query,
|
|
8553
8655
|
...options,
|
|
8656
|
+
__qualifiers: { beta: "true" },
|
|
8554
8657
|
__span: startApiCallSpan(this._client, "anthropic.organization.analytics.user_cost_report.list", options, {
|
|
8555
8658
|
route: "/v1/organizations/analytics/user_cost_report",
|
|
8556
8659
|
queryParams: [
|
|
@@ -8582,9 +8685,10 @@ class UserCostReport extends APIResource {
|
|
|
8582
8685
|
// node_modules/@anthropic-ai/sdk/resources/beta/organization/analytics/user-usage-report.mjs
|
|
8583
8686
|
class UserUsageReport extends APIResource {
|
|
8584
8687
|
list(query, options) {
|
|
8585
|
-
return this._client.getAPIList("/v1/organizations/analytics/user_usage_report
|
|
8688
|
+
return this._client.getAPIList("/v1/organizations/analytics/user_usage_report", ReportPageCursor, {
|
|
8586
8689
|
query,
|
|
8587
8690
|
...options,
|
|
8691
|
+
__qualifiers: { beta: "true" },
|
|
8588
8692
|
__span: startApiCallSpan(this._client, "anthropic.organization.analytics.user_usage_report.list", options, {
|
|
8589
8693
|
route: "/v1/organizations/analytics/user_usage_report",
|
|
8590
8694
|
queryParams: [
|
|
@@ -8616,9 +8720,10 @@ class UserUsageReport extends APIResource {
|
|
|
8616
8720
|
// node_modules/@anthropic-ai/sdk/resources/beta/organization/analytics/users.mjs
|
|
8617
8721
|
class Users2 extends APIResource {
|
|
8618
8722
|
list(query = {}, options) {
|
|
8619
|
-
return this._client.getAPIList("/v1/organizations/analytics/users
|
|
8723
|
+
return this._client.getAPIList("/v1/organizations/analytics/users", PageCursor, {
|
|
8620
8724
|
query,
|
|
8621
8725
|
...options,
|
|
8726
|
+
__qualifiers: { beta: "true" },
|
|
8622
8727
|
__span: startApiCallSpan(this._client, "anthropic.organization.analytics.users.list", options, {
|
|
8623
8728
|
route: "/v1/organizations/analytics/users",
|
|
8624
8729
|
queryParams: [
|
|
@@ -8641,9 +8746,10 @@ class Users2 extends APIResource {
|
|
|
8641
8746
|
// node_modules/@anthropic-ai/sdk/resources/beta/organization/analytics/apps/chat/projects.mjs
|
|
8642
8747
|
class Projects extends APIResource {
|
|
8643
8748
|
list(query = {}, options) {
|
|
8644
|
-
return this._client.getAPIList("/v1/organizations/analytics/apps/chat/projects
|
|
8749
|
+
return this._client.getAPIList("/v1/organizations/analytics/apps/chat/projects", PageCursor, {
|
|
8645
8750
|
query,
|
|
8646
8751
|
...options,
|
|
8752
|
+
__qualifiers: { beta: "true" },
|
|
8647
8753
|
__span: startApiCallSpan(this._client, "anthropic.organization.analytics.apps.chat.projects.list", options, {
|
|
8648
8754
|
route: "/v1/organizations/analytics/apps/chat/projects",
|
|
8649
8755
|
queryParams: [
|
|
@@ -8722,17 +8828,287 @@ var Analytics = /* @__PURE__ */ (() => {
|
|
|
8722
8828
|
return Analytics;
|
|
8723
8829
|
})();
|
|
8724
8830
|
|
|
8831
|
+
// node_modules/@anthropic-ai/sdk/resources/beta/organization/claude-tag/slack-channels.mjs
|
|
8832
|
+
class SlackChannels extends APIResource {
|
|
8833
|
+
create(params, options) {
|
|
8834
|
+
const { betas, ...body } = params;
|
|
8835
|
+
return this._client.post("/v1/organizations/claude_tag/slack_channels", {
|
|
8836
|
+
body,
|
|
8837
|
+
...options,
|
|
8838
|
+
headers: buildHeaders([
|
|
8839
|
+
{ "anthropic-beta": [...betas ?? [], "experimental-claude-tag-2026-10-21"].toString() },
|
|
8840
|
+
options?.headers
|
|
8841
|
+
]),
|
|
8842
|
+
__qualifiers: { beta: "true" },
|
|
8843
|
+
__span: startApiCallSpan(this._client, "anthropic.organization.claude_tag.slack_channels.create", options, {
|
|
8844
|
+
route: "/v1/organizations/claude_tag/slack_channels",
|
|
8845
|
+
createdIDAttribute: "anthropic.organization.claude_tag.slack_channel.id"
|
|
8846
|
+
})
|
|
8847
|
+
});
|
|
8848
|
+
}
|
|
8849
|
+
retrieve(id, params = {}, options) {
|
|
8850
|
+
const { betas, ...query } = params ?? {};
|
|
8851
|
+
return this._client.get(path`/v1/organizations/claude_tag/slack_channels/${id}`, {
|
|
8852
|
+
query,
|
|
8853
|
+
...options,
|
|
8854
|
+
headers: buildHeaders([
|
|
8855
|
+
{ "anthropic-beta": [...betas ?? [], "experimental-claude-tag-2026-10-21"].toString() },
|
|
8856
|
+
options?.headers
|
|
8857
|
+
]),
|
|
8858
|
+
__qualifiers: { beta: "true" },
|
|
8859
|
+
__span: startApiCallSpan(this._client, "anthropic.organization.claude_tag.slack_channels.retrieve", options, {
|
|
8860
|
+
route: "/v1/organizations/claude_tag/slack_channels/{id}",
|
|
8861
|
+
queryParams: ["include_inherited"],
|
|
8862
|
+
attributes: { "anthropic.organization.claude_tag.slack_channel.id": id }
|
|
8863
|
+
})
|
|
8864
|
+
});
|
|
8865
|
+
}
|
|
8866
|
+
update(id, params, options) {
|
|
8867
|
+
const { betas, ...body } = params;
|
|
8868
|
+
return this._client.post(path`/v1/organizations/claude_tag/slack_channels/${id}`, {
|
|
8869
|
+
body,
|
|
8870
|
+
...options,
|
|
8871
|
+
headers: buildHeaders([
|
|
8872
|
+
{ "anthropic-beta": [...betas ?? [], "experimental-claude-tag-2026-10-21"].toString() },
|
|
8873
|
+
options?.headers
|
|
8874
|
+
]),
|
|
8875
|
+
__qualifiers: { beta: "true" },
|
|
8876
|
+
__span: startApiCallSpan(this._client, "anthropic.organization.claude_tag.slack_channels.update", options, {
|
|
8877
|
+
route: "/v1/organizations/claude_tag/slack_channels/{id}",
|
|
8878
|
+
attributes: { "anthropic.organization.claude_tag.slack_channel.id": id }
|
|
8879
|
+
})
|
|
8880
|
+
});
|
|
8881
|
+
}
|
|
8882
|
+
list(params, options) {
|
|
8883
|
+
const { betas, ...query } = params;
|
|
8884
|
+
return this._client.getAPIList("/v1/organizations/claude_tag/slack_channels", PageCursor, {
|
|
8885
|
+
query,
|
|
8886
|
+
...options,
|
|
8887
|
+
headers: buildHeaders([
|
|
8888
|
+
{ "anthropic-beta": [...betas ?? [], "experimental-claude-tag-2026-10-21"].toString() },
|
|
8889
|
+
options?.headers
|
|
8890
|
+
]),
|
|
8891
|
+
__qualifiers: { beta: "true" },
|
|
8892
|
+
__span: startApiCallSpan(this._client, "anthropic.organization.claude_tag.slack_channels.list", options, {
|
|
8893
|
+
route: "/v1/organizations/claude_tag/slack_channels",
|
|
8894
|
+
queryParams: ["include_inherited", "limit", "page", "slack_channel_id", "slack_workspace_id"]
|
|
8895
|
+
})
|
|
8896
|
+
});
|
|
8897
|
+
}
|
|
8898
|
+
delete(id, params = {}, options) {
|
|
8899
|
+
const { betas } = params ?? {};
|
|
8900
|
+
return this._client.delete(path`/v1/organizations/claude_tag/slack_channels/${id}`, {
|
|
8901
|
+
...options,
|
|
8902
|
+
headers: buildHeaders([
|
|
8903
|
+
{ "anthropic-beta": [...betas ?? [], "experimental-claude-tag-2026-10-21"].toString() },
|
|
8904
|
+
options?.headers
|
|
8905
|
+
]),
|
|
8906
|
+
__qualifiers: { beta: "true" },
|
|
8907
|
+
__span: startApiCallSpan(this._client, "anthropic.organization.claude_tag.slack_channels.delete", options, {
|
|
8908
|
+
route: "/v1/organizations/claude_tag/slack_channels/{id}",
|
|
8909
|
+
attributes: { "anthropic.organization.claude_tag.slack_channel.id": id }
|
|
8910
|
+
})
|
|
8911
|
+
});
|
|
8912
|
+
}
|
|
8913
|
+
}
|
|
8914
|
+
|
|
8915
|
+
// node_modules/@anthropic-ai/sdk/resources/beta/organization/claude-tag/slack-workspaces.mjs
|
|
8916
|
+
class SlackWorkspaces extends APIResource {
|
|
8917
|
+
retrieve(id, params = {}, options) {
|
|
8918
|
+
const { betas, ...query } = params ?? {};
|
|
8919
|
+
return this._client.get(path`/v1/organizations/claude_tag/slack_workspaces/${id}`, {
|
|
8920
|
+
query,
|
|
8921
|
+
...options,
|
|
8922
|
+
headers: buildHeaders([
|
|
8923
|
+
{ "anthropic-beta": [...betas ?? [], "experimental-claude-tag-2026-10-21"].toString() },
|
|
8924
|
+
options?.headers
|
|
8925
|
+
]),
|
|
8926
|
+
__qualifiers: { beta: "true" },
|
|
8927
|
+
__span: startApiCallSpan(this._client, "anthropic.organization.claude_tag.slack_workspaces.retrieve", options, {
|
|
8928
|
+
route: "/v1/organizations/claude_tag/slack_workspaces/{id}",
|
|
8929
|
+
queryParams: ["include_inherited"],
|
|
8930
|
+
attributes: { "anthropic.organization.claude_tag.slack_workspace.id": id }
|
|
8931
|
+
})
|
|
8932
|
+
});
|
|
8933
|
+
}
|
|
8934
|
+
update(id, params, options) {
|
|
8935
|
+
const { betas, ...body } = params;
|
|
8936
|
+
return this._client.post(path`/v1/organizations/claude_tag/slack_workspaces/${id}`, {
|
|
8937
|
+
body,
|
|
8938
|
+
...options,
|
|
8939
|
+
headers: buildHeaders([
|
|
8940
|
+
{ "anthropic-beta": [...betas ?? [], "experimental-claude-tag-2026-10-21"].toString() },
|
|
8941
|
+
options?.headers
|
|
8942
|
+
]),
|
|
8943
|
+
__qualifiers: { beta: "true" },
|
|
8944
|
+
__span: startApiCallSpan(this._client, "anthropic.organization.claude_tag.slack_workspaces.update", options, {
|
|
8945
|
+
route: "/v1/organizations/claude_tag/slack_workspaces/{id}",
|
|
8946
|
+
attributes: { "anthropic.organization.claude_tag.slack_workspace.id": id }
|
|
8947
|
+
})
|
|
8948
|
+
});
|
|
8949
|
+
}
|
|
8950
|
+
list(params = {}, options) {
|
|
8951
|
+
const { betas, ...query } = params ?? {};
|
|
8952
|
+
return this._client.getAPIList("/v1/organizations/claude_tag/slack_workspaces", PageCursor, {
|
|
8953
|
+
query,
|
|
8954
|
+
...options,
|
|
8955
|
+
headers: buildHeaders([
|
|
8956
|
+
{ "anthropic-beta": [...betas ?? [], "experimental-claude-tag-2026-10-21"].toString() },
|
|
8957
|
+
options?.headers
|
|
8958
|
+
]),
|
|
8959
|
+
__qualifiers: { beta: "true" },
|
|
8960
|
+
__span: startApiCallSpan(this._client, "anthropic.organization.claude_tag.slack_workspaces.list", options, {
|
|
8961
|
+
route: "/v1/organizations/claude_tag/slack_workspaces",
|
|
8962
|
+
queryParams: ["include_inherited", "limit", "page", "slack_workspace_id"]
|
|
8963
|
+
})
|
|
8964
|
+
});
|
|
8965
|
+
}
|
|
8966
|
+
}
|
|
8967
|
+
|
|
8968
|
+
// node_modules/@anthropic-ai/sdk/resources/beta/organization/claude-tag/bundles/targets.mjs
|
|
8969
|
+
class Targets extends APIResource {
|
|
8970
|
+
create(bundleID, params, options) {
|
|
8971
|
+
const { target, betas } = params;
|
|
8972
|
+
return this._client.post(path`/v1/organizations/claude_tag/bundles/${bundleID}/targets`, {
|
|
8973
|
+
body: target,
|
|
8974
|
+
...options,
|
|
8975
|
+
headers: buildHeaders([
|
|
8976
|
+
{ "anthropic-beta": [...betas ?? [], "experimental-claude-tag-2026-10-21"].toString() },
|
|
8977
|
+
options?.headers
|
|
8978
|
+
]),
|
|
8979
|
+
__qualifiers: { beta: "true" },
|
|
8980
|
+
__span: startApiCallSpan(this._client, "anthropic.organization.claude_tag.bundles.targets.create", options, {
|
|
8981
|
+
route: "/v1/organizations/claude_tag/bundles/{bundle_id}/targets",
|
|
8982
|
+
attributes: { "anthropic.organization.claude_tag.bundle.id": bundleID }
|
|
8983
|
+
})
|
|
8984
|
+
});
|
|
8985
|
+
}
|
|
8986
|
+
retrieve(targetID, params, options) {
|
|
8987
|
+
const { bundle_id, betas } = params;
|
|
8988
|
+
return this._client.get(path`/v1/organizations/claude_tag/bundles/${bundle_id}/targets/${targetID}`, {
|
|
8989
|
+
...options,
|
|
8990
|
+
headers: buildHeaders([
|
|
8991
|
+
{ "anthropic-beta": [...betas ?? [], "experimental-claude-tag-2026-10-21"].toString() },
|
|
8992
|
+
options?.headers
|
|
8993
|
+
]),
|
|
8994
|
+
__qualifiers: { beta: "true" },
|
|
8995
|
+
__span: startApiCallSpan(this._client, "anthropic.organization.claude_tag.bundles.targets.retrieve", options, {
|
|
8996
|
+
route: "/v1/organizations/claude_tag/bundles/{bundle_id}/targets/{target_id}",
|
|
8997
|
+
attributes: {
|
|
8998
|
+
"anthropic.organization.claude_tag.bundle.id": bundle_id,
|
|
8999
|
+
"anthropic.organization.claude_tag.bundle.target.id": targetID
|
|
9000
|
+
}
|
|
9001
|
+
})
|
|
9002
|
+
});
|
|
9003
|
+
}
|
|
9004
|
+
list(bundleID, params = {}, options) {
|
|
9005
|
+
const { betas, ...query } = params ?? {};
|
|
9006
|
+
return this._client.getAPIList(path`/v1/organizations/claude_tag/bundles/${bundleID}/targets`, PageCursor, {
|
|
9007
|
+
query,
|
|
9008
|
+
...options,
|
|
9009
|
+
headers: buildHeaders([
|
|
9010
|
+
{ "anthropic-beta": [...betas ?? [], "experimental-claude-tag-2026-10-21"].toString() },
|
|
9011
|
+
options?.headers
|
|
9012
|
+
]),
|
|
9013
|
+
__qualifiers: { beta: "true" },
|
|
9014
|
+
__span: startApiCallSpan(this._client, "anthropic.organization.claude_tag.bundles.targets.list", options, {
|
|
9015
|
+
route: "/v1/organizations/claude_tag/bundles/{bundle_id}/targets",
|
|
9016
|
+
queryParams: ["limit", "page"],
|
|
9017
|
+
attributes: { "anthropic.organization.claude_tag.bundle.id": bundleID }
|
|
9018
|
+
})
|
|
9019
|
+
});
|
|
9020
|
+
}
|
|
9021
|
+
delete(targetID, params, options) {
|
|
9022
|
+
const { bundle_id, betas } = params;
|
|
9023
|
+
return this._client.delete(path`/v1/organizations/claude_tag/bundles/${bundle_id}/targets/${targetID}`, {
|
|
9024
|
+
...options,
|
|
9025
|
+
headers: buildHeaders([
|
|
9026
|
+
{ "anthropic-beta": [...betas ?? [], "experimental-claude-tag-2026-10-21"].toString() },
|
|
9027
|
+
options?.headers
|
|
9028
|
+
]),
|
|
9029
|
+
__qualifiers: { beta: "true" },
|
|
9030
|
+
__span: startApiCallSpan(this._client, "anthropic.organization.claude_tag.bundles.targets.delete", options, {
|
|
9031
|
+
route: "/v1/organizations/claude_tag/bundles/{bundle_id}/targets/{target_id}",
|
|
9032
|
+
attributes: {
|
|
9033
|
+
"anthropic.organization.claude_tag.bundle.id": bundle_id,
|
|
9034
|
+
"anthropic.organization.claude_tag.bundle.target.id": targetID
|
|
9035
|
+
}
|
|
9036
|
+
})
|
|
9037
|
+
});
|
|
9038
|
+
}
|
|
9039
|
+
}
|
|
9040
|
+
|
|
9041
|
+
// node_modules/@anthropic-ai/sdk/resources/beta/organization/claude-tag/bundles/bundles.mjs
|
|
9042
|
+
var Bundles = /* @__PURE__ */ (() => {
|
|
9043
|
+
class Bundles extends APIResource {
|
|
9044
|
+
constructor() {
|
|
9045
|
+
super(...arguments);
|
|
9046
|
+
this.targets = new Targets(this._client);
|
|
9047
|
+
}
|
|
9048
|
+
retrieve(bundleID, params = {}, options) {
|
|
9049
|
+
const { betas } = params ?? {};
|
|
9050
|
+
return this._client.get(path`/v1/organizations/claude_tag/bundles/${bundleID}`, {
|
|
9051
|
+
...options,
|
|
9052
|
+
headers: buildHeaders([
|
|
9053
|
+
{ "anthropic-beta": [...betas ?? [], "experimental-claude-tag-2026-10-21"].toString() },
|
|
9054
|
+
options?.headers
|
|
9055
|
+
]),
|
|
9056
|
+
__qualifiers: { beta: "true" },
|
|
9057
|
+
__span: startApiCallSpan(this._client, "anthropic.organization.claude_tag.bundles.retrieve", options, {
|
|
9058
|
+
route: "/v1/organizations/claude_tag/bundles/{bundle_id}",
|
|
9059
|
+
attributes: { "anthropic.organization.claude_tag.bundle.id": bundleID }
|
|
9060
|
+
})
|
|
9061
|
+
});
|
|
9062
|
+
}
|
|
9063
|
+
list(params = {}, options) {
|
|
9064
|
+
const { betas, ...query } = params ?? {};
|
|
9065
|
+
return this._client.getAPIList("/v1/organizations/claude_tag/bundles", PageCursor, {
|
|
9066
|
+
query,
|
|
9067
|
+
...options,
|
|
9068
|
+
headers: buildHeaders([
|
|
9069
|
+
{ "anthropic-beta": [...betas ?? [], "experimental-claude-tag-2026-10-21"].toString() },
|
|
9070
|
+
options?.headers
|
|
9071
|
+
]),
|
|
9072
|
+
__qualifiers: { beta: "true" },
|
|
9073
|
+
__span: startApiCallSpan(this._client, "anthropic.organization.claude_tag.bundles.list", options, {
|
|
9074
|
+
route: "/v1/organizations/claude_tag/bundles",
|
|
9075
|
+
queryParams: ["limit", "page"]
|
|
9076
|
+
})
|
|
9077
|
+
});
|
|
9078
|
+
}
|
|
9079
|
+
}
|
|
9080
|
+
Bundles.Targets = Targets;
|
|
9081
|
+
return Bundles;
|
|
9082
|
+
})();
|
|
9083
|
+
|
|
9084
|
+
// node_modules/@anthropic-ai/sdk/resources/beta/organization/claude-tag/claude-tag.mjs
|
|
9085
|
+
var ClaudeTag = /* @__PURE__ */ (() => {
|
|
9086
|
+
class ClaudeTag extends APIResource {
|
|
9087
|
+
constructor() {
|
|
9088
|
+
super(...arguments);
|
|
9089
|
+
this.slackChannels = new SlackChannels(this._client);
|
|
9090
|
+
this.slackWorkspaces = new SlackWorkspaces(this._client);
|
|
9091
|
+
this.bundles = new Bundles(this._client);
|
|
9092
|
+
}
|
|
9093
|
+
}
|
|
9094
|
+
ClaudeTag.SlackChannels = SlackChannels;
|
|
9095
|
+
ClaudeTag.SlackWorkspaces = SlackWorkspaces;
|
|
9096
|
+
ClaudeTag.Bundles = Bundles;
|
|
9097
|
+
return ClaudeTag;
|
|
9098
|
+
})();
|
|
9099
|
+
|
|
8725
9100
|
// node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/issuers.mjs
|
|
8726
9101
|
class Issuers extends APIResource {
|
|
8727
9102
|
create(params, options) {
|
|
8728
9103
|
const { betas, ...body } = params;
|
|
8729
|
-
return this._client.post("/v1/organizations/federation_issuers
|
|
9104
|
+
return this._client.post("/v1/organizations/federation_issuers", {
|
|
8730
9105
|
body,
|
|
8731
9106
|
...options,
|
|
8732
9107
|
headers: buildHeaders([
|
|
8733
9108
|
{ ...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined },
|
|
8734
9109
|
options?.headers
|
|
8735
9110
|
]),
|
|
9111
|
+
__qualifiers: { beta: "true" },
|
|
8736
9112
|
__span: startApiCallSpan(this._client, "anthropic.organization.federation.issuers.create", options, {
|
|
8737
9113
|
route: "/v1/organizations/federation_issuers",
|
|
8738
9114
|
createdIDAttribute: "anthropic.organization.federation_issuer.id"
|
|
@@ -8741,12 +9117,13 @@ class Issuers extends APIResource {
|
|
|
8741
9117
|
}
|
|
8742
9118
|
retrieve(federationIssuerID, params = {}, options) {
|
|
8743
9119
|
const { betas } = params ?? {};
|
|
8744
|
-
return this._client.get(path`/v1/organizations/federation_issuers/${federationIssuerID}
|
|
9120
|
+
return this._client.get(path`/v1/organizations/federation_issuers/${federationIssuerID}`, {
|
|
8745
9121
|
...options,
|
|
8746
9122
|
headers: buildHeaders([
|
|
8747
9123
|
{ ...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined },
|
|
8748
9124
|
options?.headers
|
|
8749
9125
|
]),
|
|
9126
|
+
__qualifiers: { beta: "true" },
|
|
8750
9127
|
__span: startApiCallSpan(this._client, "anthropic.organization.federation.issuers.retrieve", options, {
|
|
8751
9128
|
route: "/v1/organizations/federation_issuers/{federation_issuer_id}",
|
|
8752
9129
|
attributes: { "anthropic.organization.federation_issuer.id": federationIssuerID }
|
|
@@ -8755,13 +9132,14 @@ class Issuers extends APIResource {
|
|
|
8755
9132
|
}
|
|
8756
9133
|
update(federationIssuerID, params, options) {
|
|
8757
9134
|
const { betas, ...body } = params;
|
|
8758
|
-
return this._client.post(path`/v1/organizations/federation_issuers/${federationIssuerID}
|
|
9135
|
+
return this._client.post(path`/v1/organizations/federation_issuers/${federationIssuerID}`, {
|
|
8759
9136
|
body,
|
|
8760
9137
|
...options,
|
|
8761
9138
|
headers: buildHeaders([
|
|
8762
9139
|
{ ...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined },
|
|
8763
9140
|
options?.headers
|
|
8764
9141
|
]),
|
|
9142
|
+
__qualifiers: { beta: "true" },
|
|
8765
9143
|
__span: startApiCallSpan(this._client, "anthropic.organization.federation.issuers.update", options, {
|
|
8766
9144
|
route: "/v1/organizations/federation_issuers/{federation_issuer_id}",
|
|
8767
9145
|
attributes: { "anthropic.organization.federation_issuer.id": federationIssuerID }
|
|
@@ -8770,13 +9148,14 @@ class Issuers extends APIResource {
|
|
|
8770
9148
|
}
|
|
8771
9149
|
list(params = {}, options) {
|
|
8772
9150
|
const { betas, ...query } = params ?? {};
|
|
8773
|
-
return this._client.getAPIList("/v1/organizations/federation_issuers
|
|
9151
|
+
return this._client.getAPIList("/v1/organizations/federation_issuers", PageCursor, {
|
|
8774
9152
|
query,
|
|
8775
9153
|
...options,
|
|
8776
9154
|
headers: buildHeaders([
|
|
8777
9155
|
{ ...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined },
|
|
8778
9156
|
options?.headers
|
|
8779
9157
|
]),
|
|
9158
|
+
__qualifiers: { beta: "true" },
|
|
8780
9159
|
__span: startApiCallSpan(this._client, "anthropic.organization.federation.issuers.list", options, {
|
|
8781
9160
|
route: "/v1/organizations/federation_issuers",
|
|
8782
9161
|
queryParams: ["include_archived", "limit", "page"]
|
|
@@ -8785,12 +9164,13 @@ class Issuers extends APIResource {
|
|
|
8785
9164
|
}
|
|
8786
9165
|
archive(federationIssuerID, params = {}, options) {
|
|
8787
9166
|
const { betas } = params ?? {};
|
|
8788
|
-
return this._client.post(path`/v1/organizations/federation_issuers/${federationIssuerID}/archive
|
|
9167
|
+
return this._client.post(path`/v1/organizations/federation_issuers/${federationIssuerID}/archive`, {
|
|
8789
9168
|
...options,
|
|
8790
9169
|
headers: buildHeaders([
|
|
8791
9170
|
{ ...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined },
|
|
8792
9171
|
options?.headers
|
|
8793
9172
|
]),
|
|
9173
|
+
__qualifiers: { beta: "true" },
|
|
8794
9174
|
__span: startApiCallSpan(this._client, "anthropic.organization.federation.issuers.archive", options, {
|
|
8795
9175
|
route: "/v1/organizations/federation_issuers/{federation_issuer_id}/archive",
|
|
8796
9176
|
attributes: { "anthropic.organization.federation_issuer.id": federationIssuerID }
|
|
@@ -8803,13 +9183,14 @@ class Issuers extends APIResource {
|
|
|
8803
9183
|
class Workspaces extends APIResource {
|
|
8804
9184
|
list(federationRuleID, params = {}, options) {
|
|
8805
9185
|
const { betas, ...query } = params ?? {};
|
|
8806
|
-
return this._client.getAPIList(path`/v1/organizations/federation_rules/${federationRuleID}/workspaces
|
|
9186
|
+
return this._client.getAPIList(path`/v1/organizations/federation_rules/${federationRuleID}/workspaces`, PageCursor, {
|
|
8807
9187
|
query,
|
|
8808
9188
|
...options,
|
|
8809
9189
|
headers: buildHeaders([
|
|
8810
9190
|
{ ...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined },
|
|
8811
9191
|
options?.headers
|
|
8812
9192
|
]),
|
|
9193
|
+
__qualifiers: { beta: "true" },
|
|
8813
9194
|
__span: startApiCallSpan(this._client, "anthropic.organization.federation.rules.workspaces.list", options, {
|
|
8814
9195
|
route: "/v1/organizations/federation_rules/{federation_rule_id}/workspaces",
|
|
8815
9196
|
queryParams: ["limit", "page"],
|
|
@@ -8819,13 +9200,14 @@ class Workspaces extends APIResource {
|
|
|
8819
9200
|
}
|
|
8820
9201
|
add(federationRuleID, params, options) {
|
|
8821
9202
|
const { betas, ...body } = params;
|
|
8822
|
-
return this._client.post(path`/v1/organizations/federation_rules/${federationRuleID}/workspaces
|
|
9203
|
+
return this._client.post(path`/v1/organizations/federation_rules/${federationRuleID}/workspaces`, {
|
|
8823
9204
|
body,
|
|
8824
9205
|
...options,
|
|
8825
9206
|
headers: buildHeaders([
|
|
8826
9207
|
{ ...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined },
|
|
8827
9208
|
options?.headers
|
|
8828
9209
|
]),
|
|
9210
|
+
__qualifiers: { beta: "true" },
|
|
8829
9211
|
__span: startApiCallSpan(this._client, "anthropic.organization.federation.rules.workspaces.add", options, {
|
|
8830
9212
|
route: "/v1/organizations/federation_rules/{federation_rule_id}/workspaces",
|
|
8831
9213
|
attributes: { "anthropic.organization.federation_rule.id": federationRuleID },
|
|
@@ -8836,12 +9218,13 @@ class Workspaces extends APIResource {
|
|
|
8836
9218
|
}
|
|
8837
9219
|
remove(workspaceID, params, options) {
|
|
8838
9220
|
const { federation_rule_id, betas } = params;
|
|
8839
|
-
return this._client.delete(path`/v1/organizations/federation_rules/${federation_rule_id}/workspaces/${workspaceID}
|
|
9221
|
+
return this._client.delete(path`/v1/organizations/federation_rules/${federation_rule_id}/workspaces/${workspaceID}`, {
|
|
8840
9222
|
...options,
|
|
8841
9223
|
headers: buildHeaders([
|
|
8842
9224
|
{ ...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined },
|
|
8843
9225
|
options?.headers
|
|
8844
9226
|
]),
|
|
9227
|
+
__qualifiers: { beta: "true" },
|
|
8845
9228
|
__span: startApiCallSpan(this._client, "anthropic.organization.federation.rules.workspaces.remove", options, {
|
|
8846
9229
|
route: "/v1/organizations/federation_rules/{federation_rule_id}/workspaces/{workspace_id}",
|
|
8847
9230
|
attributes: {
|
|
@@ -8862,13 +9245,14 @@ var Rules = /* @__PURE__ */ (() => {
|
|
|
8862
9245
|
}
|
|
8863
9246
|
create(params, options) {
|
|
8864
9247
|
const { betas, ...body } = params;
|
|
8865
|
-
return this._client.post("/v1/organizations/federation_rules
|
|
9248
|
+
return this._client.post("/v1/organizations/federation_rules", {
|
|
8866
9249
|
body,
|
|
8867
9250
|
...options,
|
|
8868
9251
|
headers: buildHeaders([
|
|
8869
9252
|
{ ...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined },
|
|
8870
9253
|
options?.headers
|
|
8871
9254
|
]),
|
|
9255
|
+
__qualifiers: { beta: "true" },
|
|
8872
9256
|
__span: startApiCallSpan(this._client, "anthropic.organization.federation.rules.create", options, {
|
|
8873
9257
|
route: "/v1/organizations/federation_rules",
|
|
8874
9258
|
createdIDAttribute: "anthropic.organization.federation_rule.id"
|
|
@@ -8877,12 +9261,13 @@ var Rules = /* @__PURE__ */ (() => {
|
|
|
8877
9261
|
}
|
|
8878
9262
|
retrieve(federationRuleID, params = {}, options) {
|
|
8879
9263
|
const { betas } = params ?? {};
|
|
8880
|
-
return this._client.get(path`/v1/organizations/federation_rules/${federationRuleID}
|
|
9264
|
+
return this._client.get(path`/v1/organizations/federation_rules/${federationRuleID}`, {
|
|
8881
9265
|
...options,
|
|
8882
9266
|
headers: buildHeaders([
|
|
8883
9267
|
{ ...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined },
|
|
8884
9268
|
options?.headers
|
|
8885
9269
|
]),
|
|
9270
|
+
__qualifiers: { beta: "true" },
|
|
8886
9271
|
__span: startApiCallSpan(this._client, "anthropic.organization.federation.rules.retrieve", options, {
|
|
8887
9272
|
route: "/v1/organizations/federation_rules/{federation_rule_id}",
|
|
8888
9273
|
attributes: { "anthropic.organization.federation_rule.id": federationRuleID }
|
|
@@ -8891,13 +9276,14 @@ var Rules = /* @__PURE__ */ (() => {
|
|
|
8891
9276
|
}
|
|
8892
9277
|
update(federationRuleID, params, options) {
|
|
8893
9278
|
const { betas, ...body } = params;
|
|
8894
|
-
return this._client.post(path`/v1/organizations/federation_rules/${federationRuleID}
|
|
9279
|
+
return this._client.post(path`/v1/organizations/federation_rules/${federationRuleID}`, {
|
|
8895
9280
|
body,
|
|
8896
9281
|
...options,
|
|
8897
9282
|
headers: buildHeaders([
|
|
8898
9283
|
{ ...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined },
|
|
8899
9284
|
options?.headers
|
|
8900
9285
|
]),
|
|
9286
|
+
__qualifiers: { beta: "true" },
|
|
8901
9287
|
__span: startApiCallSpan(this._client, "anthropic.organization.federation.rules.update", options, {
|
|
8902
9288
|
route: "/v1/organizations/federation_rules/{federation_rule_id}",
|
|
8903
9289
|
attributes: { "anthropic.organization.federation_rule.id": federationRuleID }
|
|
@@ -8906,13 +9292,14 @@ var Rules = /* @__PURE__ */ (() => {
|
|
|
8906
9292
|
}
|
|
8907
9293
|
list(params = {}, options) {
|
|
8908
9294
|
const { betas, ...query } = params ?? {};
|
|
8909
|
-
return this._client.getAPIList("/v1/organizations/federation_rules
|
|
9295
|
+
return this._client.getAPIList("/v1/organizations/federation_rules", PageCursor, {
|
|
8910
9296
|
query,
|
|
8911
9297
|
...options,
|
|
8912
9298
|
headers: buildHeaders([
|
|
8913
9299
|
{ ...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined },
|
|
8914
9300
|
options?.headers
|
|
8915
9301
|
]),
|
|
9302
|
+
__qualifiers: { beta: "true" },
|
|
8916
9303
|
__span: startApiCallSpan(this._client, "anthropic.organization.federation.rules.list", options, {
|
|
8917
9304
|
route: "/v1/organizations/federation_rules",
|
|
8918
9305
|
queryParams: ["include_archived", "issuer_id", "limit", "page"]
|
|
@@ -8921,12 +9308,13 @@ var Rules = /* @__PURE__ */ (() => {
|
|
|
8921
9308
|
}
|
|
8922
9309
|
archive(federationRuleID, params = {}, options) {
|
|
8923
9310
|
const { betas } = params ?? {};
|
|
8924
|
-
return this._client.post(path`/v1/organizations/federation_rules/${federationRuleID}/archive
|
|
9311
|
+
return this._client.post(path`/v1/organizations/federation_rules/${federationRuleID}/archive`, {
|
|
8925
9312
|
...options,
|
|
8926
9313
|
headers: buildHeaders([
|
|
8927
9314
|
{ ...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined },
|
|
8928
9315
|
options?.headers
|
|
8929
9316
|
]),
|
|
9317
|
+
__qualifiers: { beta: "true" },
|
|
8930
9318
|
__span: startApiCallSpan(this._client, "anthropic.organization.federation.rules.archive", options, {
|
|
8931
9319
|
route: "/v1/organizations/federation_rules/{federation_rule_id}/archive",
|
|
8932
9320
|
attributes: { "anthropic.organization.federation_rule.id": federationRuleID }
|
|
@@ -8956,13 +9344,14 @@ var Federation = /* @__PURE__ */ (() => {
|
|
|
8956
9344
|
class InstallationSettings extends APIResource {
|
|
8957
9345
|
list(pluginID, params = {}, options) {
|
|
8958
9346
|
const { betas, ...query } = params ?? {};
|
|
8959
|
-
return this._client.getAPIList(path`/v1/organizations/plugins/${pluginID}/installation_settings
|
|
9347
|
+
return this._client.getAPIList(path`/v1/organizations/plugins/${pluginID}/installation_settings`, PageCursor, {
|
|
8960
9348
|
query,
|
|
8961
9349
|
...options,
|
|
8962
9350
|
headers: buildHeaders([
|
|
8963
9351
|
{ "anthropic-beta": [...betas ?? [], "ce-plugins-2026-09-01"].toString() },
|
|
8964
9352
|
options?.headers
|
|
8965
9353
|
]),
|
|
9354
|
+
__qualifiers: { beta: "true" },
|
|
8966
9355
|
__span: startApiCallSpan(this._client, "anthropic.organization.plugins.installation_settings.list", options, {
|
|
8967
9356
|
route: "/v1/organizations/plugins/{plugin_id}/installation_settings",
|
|
8968
9357
|
queryParams: ["limit", "organization_id", "page", "target_type"],
|
|
@@ -8972,12 +9361,13 @@ class InstallationSettings extends APIResource {
|
|
|
8972
9361
|
}
|
|
8973
9362
|
remove(target, params, options) {
|
|
8974
9363
|
const { plugin_id, betas } = params;
|
|
8975
|
-
return this._client.delete(path`/v1/organizations/plugins/${plugin_id}/installation_settings/${target}
|
|
9364
|
+
return this._client.delete(path`/v1/organizations/plugins/${plugin_id}/installation_settings/${target}`, {
|
|
8976
9365
|
...options,
|
|
8977
9366
|
headers: buildHeaders([
|
|
8978
9367
|
{ "anthropic-beta": [...betas ?? [], "ce-plugins-2026-09-01"].toString() },
|
|
8979
9368
|
options?.headers
|
|
8980
9369
|
]),
|
|
9370
|
+
__qualifiers: { beta: "true" },
|
|
8981
9371
|
__span: startApiCallSpan(this._client, "anthropic.organization.plugins.installation_settings.remove", options, {
|
|
8982
9372
|
route: "/v1/organizations/plugins/{plugin_id}/installation_settings/{target}",
|
|
8983
9373
|
attributes: {
|
|
@@ -8989,13 +9379,14 @@ class InstallationSettings extends APIResource {
|
|
|
8989
9379
|
}
|
|
8990
9380
|
set(target, params, options) {
|
|
8991
9381
|
const { plugin_id, betas, ...body } = params;
|
|
8992
|
-
return this._client.post(path`/v1/organizations/plugins/${plugin_id}/installation_settings/${target}
|
|
9382
|
+
return this._client.post(path`/v1/organizations/plugins/${plugin_id}/installation_settings/${target}`, {
|
|
8993
9383
|
body,
|
|
8994
9384
|
...options,
|
|
8995
9385
|
headers: buildHeaders([
|
|
8996
9386
|
{ "anthropic-beta": [...betas ?? [], "ce-plugins-2026-09-01"].toString() },
|
|
8997
9387
|
options?.headers
|
|
8998
9388
|
]),
|
|
9389
|
+
__qualifiers: { beta: "true" },
|
|
8999
9390
|
__span: startApiCallSpan(this._client, "anthropic.organization.plugins.installation_settings.set", options, {
|
|
9000
9391
|
route: "/v1/organizations/plugins/{plugin_id}/installation_settings/{target}",
|
|
9001
9392
|
attributes: {
|
|
@@ -9011,13 +9402,14 @@ class InstallationSettings extends APIResource {
|
|
|
9011
9402
|
class Shares extends APIResource {
|
|
9012
9403
|
list(pluginID, params = {}, options) {
|
|
9013
9404
|
const { betas, ...query } = params ?? {};
|
|
9014
|
-
return this._client.getAPIList(path`/v1/organizations/plugins/${pluginID}/shares
|
|
9405
|
+
return this._client.getAPIList(path`/v1/organizations/plugins/${pluginID}/shares`, PageCursor, {
|
|
9015
9406
|
query,
|
|
9016
9407
|
...options,
|
|
9017
9408
|
headers: buildHeaders([
|
|
9018
9409
|
{ "anthropic-beta": [...betas ?? [], "ce-plugins-2026-09-01"].toString() },
|
|
9019
9410
|
options?.headers
|
|
9020
9411
|
]),
|
|
9412
|
+
__qualifiers: { beta: "true" },
|
|
9021
9413
|
__span: startApiCallSpan(this._client, "anthropic.organization.plugins.shares.list", options, {
|
|
9022
9414
|
route: "/v1/organizations/plugins/{plugin_id}/shares",
|
|
9023
9415
|
queryParams: ["limit", "organization_id", "page", "target_type"],
|
|
@@ -9031,13 +9423,14 @@ class Shares extends APIResource {
|
|
|
9031
9423
|
class Versions2 extends APIResource {
|
|
9032
9424
|
create(pluginID, params, options) {
|
|
9033
9425
|
const { betas, ...body } = params;
|
|
9034
|
-
return this._client.post(path`/v1/organizations/plugins/${pluginID}/versions
|
|
9426
|
+
return this._client.post(path`/v1/organizations/plugins/${pluginID}/versions`, multipartFormRequestOptions({
|
|
9035
9427
|
body,
|
|
9036
9428
|
...options,
|
|
9037
9429
|
headers: buildHeaders([
|
|
9038
9430
|
{ "anthropic-beta": [...betas ?? [], "ce-plugins-2026-09-01"].toString() },
|
|
9039
9431
|
options?.headers
|
|
9040
9432
|
]),
|
|
9433
|
+
__qualifiers: { beta: "true" },
|
|
9041
9434
|
__span: startApiCallSpan(this._client, "anthropic.organization.plugins.versions.create", options, {
|
|
9042
9435
|
route: "/v1/organizations/plugins/{plugin_id}/versions",
|
|
9043
9436
|
attributes: { "anthropic.organization.plugin.id": pluginID },
|
|
@@ -9047,13 +9440,14 @@ class Versions2 extends APIResource {
|
|
|
9047
9440
|
}
|
|
9048
9441
|
retrieve(version, params, options) {
|
|
9049
9442
|
const { plugin_id, betas, ...query } = params;
|
|
9050
|
-
return this._client.get(path`/v1/organizations/plugins/${plugin_id}/versions/${version}
|
|
9443
|
+
return this._client.get(path`/v1/organizations/plugins/${plugin_id}/versions/${version}`, {
|
|
9051
9444
|
query,
|
|
9052
9445
|
...options,
|
|
9053
9446
|
headers: buildHeaders([
|
|
9054
9447
|
{ "anthropic-beta": [...betas ?? [], "ce-plugins-2026-09-01"].toString() },
|
|
9055
9448
|
options?.headers
|
|
9056
9449
|
]),
|
|
9450
|
+
__qualifiers: { beta: "true" },
|
|
9057
9451
|
__span: startApiCallSpan(this._client, "anthropic.organization.plugins.versions.retrieve", options, {
|
|
9058
9452
|
route: "/v1/organizations/plugins/{plugin_id}/versions/{version}",
|
|
9059
9453
|
queryParams: ["organization_id"],
|
|
@@ -9066,13 +9460,14 @@ class Versions2 extends APIResource {
|
|
|
9066
9460
|
}
|
|
9067
9461
|
list(pluginID, params = {}, options) {
|
|
9068
9462
|
const { betas, ...query } = params ?? {};
|
|
9069
|
-
return this._client.getAPIList(path`/v1/organizations/plugins/${pluginID}/versions
|
|
9463
|
+
return this._client.getAPIList(path`/v1/organizations/plugins/${pluginID}/versions`, PageCursor, {
|
|
9070
9464
|
query,
|
|
9071
9465
|
...options,
|
|
9072
9466
|
headers: buildHeaders([
|
|
9073
9467
|
{ "anthropic-beta": [...betas ?? [], "ce-plugins-2026-09-01"].toString() },
|
|
9074
9468
|
options?.headers
|
|
9075
9469
|
]),
|
|
9470
|
+
__qualifiers: { beta: "true" },
|
|
9076
9471
|
__span: startApiCallSpan(this._client, "anthropic.organization.plugins.versions.list", options, {
|
|
9077
9472
|
route: "/v1/organizations/plugins/{plugin_id}/versions",
|
|
9078
9473
|
queryParams: ["limit", "organization_id", "page"],
|
|
@@ -9082,7 +9477,7 @@ class Versions2 extends APIResource {
|
|
|
9082
9477
|
}
|
|
9083
9478
|
download(version, params, options) {
|
|
9084
9479
|
const { plugin_id, betas, ...query } = params;
|
|
9085
|
-
return this._client.get(path`/v1/organizations/plugins/${plugin_id}/versions/${version}/content
|
|
9480
|
+
return this._client.get(path`/v1/organizations/plugins/${plugin_id}/versions/${version}/content`, {
|
|
9086
9481
|
query,
|
|
9087
9482
|
...options,
|
|
9088
9483
|
headers: buildHeaders([
|
|
@@ -9092,6 +9487,7 @@ class Versions2 extends APIResource {
|
|
|
9092
9487
|
},
|
|
9093
9488
|
options?.headers
|
|
9094
9489
|
]),
|
|
9490
|
+
__qualifiers: { beta: "true" },
|
|
9095
9491
|
__binaryResponse: true,
|
|
9096
9492
|
__span: startApiCallSpan(this._client, "anthropic.organization.plugins.versions.download", options, {
|
|
9097
9493
|
route: "/v1/organizations/plugins/{plugin_id}/versions/{version}/content",
|
|
@@ -9116,13 +9512,14 @@ var Plugins2 = /* @__PURE__ */ (() => {
|
|
|
9116
9512
|
}
|
|
9117
9513
|
create(params, options) {
|
|
9118
9514
|
const { betas, ...body } = params;
|
|
9119
|
-
return this._client.post("/v1/organizations/plugins
|
|
9515
|
+
return this._client.post("/v1/organizations/plugins", multipartFormRequestOptions({
|
|
9120
9516
|
body,
|
|
9121
9517
|
...options,
|
|
9122
9518
|
headers: buildHeaders([
|
|
9123
9519
|
{ "anthropic-beta": [...betas ?? [], "ce-plugins-2026-09-01"].toString() },
|
|
9124
9520
|
options?.headers
|
|
9125
9521
|
]),
|
|
9522
|
+
__qualifiers: { beta: "true" },
|
|
9126
9523
|
__span: startApiCallSpan(this._client, "anthropic.organization.plugins.create", options, {
|
|
9127
9524
|
route: "/v1/organizations/plugins",
|
|
9128
9525
|
createdIDAttribute: "anthropic.organization.plugin.id"
|
|
@@ -9131,13 +9528,14 @@ var Plugins2 = /* @__PURE__ */ (() => {
|
|
|
9131
9528
|
}
|
|
9132
9529
|
retrieve(pluginID, params = {}, options) {
|
|
9133
9530
|
const { betas, ...query } = params ?? {};
|
|
9134
|
-
return this._client.get(path`/v1/organizations/plugins/${pluginID}
|
|
9531
|
+
return this._client.get(path`/v1/organizations/plugins/${pluginID}`, {
|
|
9135
9532
|
query,
|
|
9136
9533
|
...options,
|
|
9137
9534
|
headers: buildHeaders([
|
|
9138
9535
|
{ "anthropic-beta": [...betas ?? [], "ce-plugins-2026-09-01"].toString() },
|
|
9139
9536
|
options?.headers
|
|
9140
9537
|
]),
|
|
9538
|
+
__qualifiers: { beta: "true" },
|
|
9141
9539
|
__span: startApiCallSpan(this._client, "anthropic.organization.plugins.retrieve", options, {
|
|
9142
9540
|
route: "/v1/organizations/plugins/{plugin_id}",
|
|
9143
9541
|
queryParams: ["organization_id"],
|
|
@@ -9147,13 +9545,14 @@ var Plugins2 = /* @__PURE__ */ (() => {
|
|
|
9147
9545
|
}
|
|
9148
9546
|
update(pluginID, params, options) {
|
|
9149
9547
|
const { betas, ...body } = params;
|
|
9150
|
-
return this._client.post(path`/v1/organizations/plugins/${pluginID}
|
|
9548
|
+
return this._client.post(path`/v1/organizations/plugins/${pluginID}`, {
|
|
9151
9549
|
body,
|
|
9152
9550
|
...options,
|
|
9153
9551
|
headers: buildHeaders([
|
|
9154
9552
|
{ "anthropic-beta": [...betas ?? [], "ce-plugins-2026-09-01"].toString() },
|
|
9155
9553
|
options?.headers
|
|
9156
9554
|
]),
|
|
9555
|
+
__qualifiers: { beta: "true" },
|
|
9157
9556
|
__span: startApiCallSpan(this._client, "anthropic.organization.plugins.update", options, {
|
|
9158
9557
|
route: "/v1/organizations/plugins/{plugin_id}",
|
|
9159
9558
|
attributes: { "anthropic.organization.plugin.id": pluginID }
|
|
@@ -9162,13 +9561,14 @@ var Plugins2 = /* @__PURE__ */ (() => {
|
|
|
9162
9561
|
}
|
|
9163
9562
|
list(params = {}, options) {
|
|
9164
9563
|
const { betas, ...query } = params ?? {};
|
|
9165
|
-
return this._client.getAPIList("/v1/organizations/plugins
|
|
9564
|
+
return this._client.getAPIList("/v1/organizations/plugins", PageCursor, {
|
|
9166
9565
|
query,
|
|
9167
9566
|
...options,
|
|
9168
9567
|
headers: buildHeaders([
|
|
9169
9568
|
{ "anthropic-beta": [...betas ?? [], "ce-plugins-2026-09-01"].toString() },
|
|
9170
9569
|
options?.headers
|
|
9171
9570
|
]),
|
|
9571
|
+
__qualifiers: { beta: "true" },
|
|
9172
9572
|
__span: startApiCallSpan(this._client, "anthropic.organization.plugins.list", options, {
|
|
9173
9573
|
route: "/v1/organizations/plugins",
|
|
9174
9574
|
queryParams: [
|
|
@@ -9188,12 +9588,13 @@ var Plugins2 = /* @__PURE__ */ (() => {
|
|
|
9188
9588
|
}
|
|
9189
9589
|
delete(pluginID, params = {}, options) {
|
|
9190
9590
|
const { betas } = params ?? {};
|
|
9191
|
-
return this._client.delete(path`/v1/organizations/plugins/${pluginID}
|
|
9591
|
+
return this._client.delete(path`/v1/organizations/plugins/${pluginID}`, {
|
|
9192
9592
|
...options,
|
|
9193
9593
|
headers: buildHeaders([
|
|
9194
9594
|
{ "anthropic-beta": [...betas ?? [], "ce-plugins-2026-09-01"].toString() },
|
|
9195
9595
|
options?.headers
|
|
9196
9596
|
]),
|
|
9597
|
+
__qualifiers: { beta: "true" },
|
|
9197
9598
|
__span: startApiCallSpan(this._client, "anthropic.organization.plugins.delete", options, {
|
|
9198
9599
|
route: "/v1/organizations/plugins/{plugin_id}",
|
|
9199
9600
|
attributes: { "anthropic.organization.plugin.id": pluginID }
|
|
@@ -9210,9 +9611,10 @@ var Plugins2 = /* @__PURE__ */ (() => {
|
|
|
9210
9611
|
// node_modules/@anthropic-ai/sdk/resources/beta/organization/rbac-groups/members.mjs
|
|
9211
9612
|
class Members extends APIResource {
|
|
9212
9613
|
list(rbacGroupID, query = {}, options) {
|
|
9213
|
-
return this._client.getAPIList(path`/v1/organizations/rbac_groups/${rbacGroupID}/members
|
|
9614
|
+
return this._client.getAPIList(path`/v1/organizations/rbac_groups/${rbacGroupID}/members`, PageCursor, {
|
|
9214
9615
|
query,
|
|
9215
9616
|
...options,
|
|
9617
|
+
__qualifiers: { beta: "true" },
|
|
9216
9618
|
__span: startApiCallSpan(this._client, "anthropic.organization.rbac_groups.members.list", options, {
|
|
9217
9619
|
route: "/v1/organizations/rbac_groups/{rbac_group_id}/members",
|
|
9218
9620
|
queryParams: ["limit", "page"],
|
|
@@ -9221,9 +9623,10 @@ class Members extends APIResource {
|
|
|
9221
9623
|
});
|
|
9222
9624
|
}
|
|
9223
9625
|
add(rbacGroupID, body, options) {
|
|
9224
|
-
return this._client.post(path`/v1/organizations/rbac_groups/${rbacGroupID}/members
|
|
9626
|
+
return this._client.post(path`/v1/organizations/rbac_groups/${rbacGroupID}/members`, {
|
|
9225
9627
|
body,
|
|
9226
9628
|
...options,
|
|
9629
|
+
__qualifiers: { beta: "true" },
|
|
9227
9630
|
__span: startApiCallSpan(this._client, "anthropic.organization.rbac_groups.members.add", options, {
|
|
9228
9631
|
route: "/v1/organizations/rbac_groups/{rbac_group_id}/members",
|
|
9229
9632
|
attributes: { "anthropic.organization.rbac_group.id": rbacGroupID },
|
|
@@ -9234,8 +9637,9 @@ class Members extends APIResource {
|
|
|
9234
9637
|
}
|
|
9235
9638
|
remove(userID, params, options) {
|
|
9236
9639
|
const { rbac_group_id } = params;
|
|
9237
|
-
return this._client.delete(path`/v1/organizations/rbac_groups/${rbac_group_id}/members/${userID}
|
|
9640
|
+
return this._client.delete(path`/v1/organizations/rbac_groups/${rbac_group_id}/members/${userID}`, {
|
|
9238
9641
|
...options,
|
|
9642
|
+
__qualifiers: { beta: "true" },
|
|
9239
9643
|
__span: startApiCallSpan(this._client, "anthropic.organization.rbac_groups.members.remove", options, {
|
|
9240
9644
|
route: "/v1/organizations/rbac_groups/{rbac_group_id}/members/{user_id}",
|
|
9241
9645
|
attributes: {
|
|
@@ -9255,9 +9659,10 @@ var RBACGroups = /* @__PURE__ */ (() => {
|
|
|
9255
9659
|
this.members = new Members(this._client);
|
|
9256
9660
|
}
|
|
9257
9661
|
create(body, options) {
|
|
9258
|
-
return this._client.post("/v1/organizations/rbac_groups
|
|
9662
|
+
return this._client.post("/v1/organizations/rbac_groups", {
|
|
9259
9663
|
body,
|
|
9260
9664
|
...options,
|
|
9665
|
+
__qualifiers: { beta: "true" },
|
|
9261
9666
|
__span: startApiCallSpan(this._client, "anthropic.organization.rbac_groups.create", options, {
|
|
9262
9667
|
route: "/v1/organizations/rbac_groups",
|
|
9263
9668
|
createdIDAttribute: "anthropic.organization.rbac_group.id"
|
|
@@ -9265,8 +9670,9 @@ var RBACGroups = /* @__PURE__ */ (() => {
|
|
|
9265
9670
|
});
|
|
9266
9671
|
}
|
|
9267
9672
|
retrieve(rbacGroupID, options) {
|
|
9268
|
-
return this._client.get(path`/v1/organizations/rbac_groups/${rbacGroupID}
|
|
9673
|
+
return this._client.get(path`/v1/organizations/rbac_groups/${rbacGroupID}`, {
|
|
9269
9674
|
...options,
|
|
9675
|
+
__qualifiers: { beta: "true" },
|
|
9270
9676
|
__span: startApiCallSpan(this._client, "anthropic.organization.rbac_groups.retrieve", options, {
|
|
9271
9677
|
route: "/v1/organizations/rbac_groups/{rbac_group_id}",
|
|
9272
9678
|
attributes: { "anthropic.organization.rbac_group.id": rbacGroupID }
|
|
@@ -9274,9 +9680,10 @@ var RBACGroups = /* @__PURE__ */ (() => {
|
|
|
9274
9680
|
});
|
|
9275
9681
|
}
|
|
9276
9682
|
update(rbacGroupID, body, options) {
|
|
9277
|
-
return this._client.post(path`/v1/organizations/rbac_groups/${rbacGroupID}
|
|
9683
|
+
return this._client.post(path`/v1/organizations/rbac_groups/${rbacGroupID}`, {
|
|
9278
9684
|
body,
|
|
9279
9685
|
...options,
|
|
9686
|
+
__qualifiers: { beta: "true" },
|
|
9280
9687
|
__span: startApiCallSpan(this._client, "anthropic.organization.rbac_groups.update", options, {
|
|
9281
9688
|
route: "/v1/organizations/rbac_groups/{rbac_group_id}",
|
|
9282
9689
|
attributes: { "anthropic.organization.rbac_group.id": rbacGroupID }
|
|
@@ -9284,9 +9691,10 @@ var RBACGroups = /* @__PURE__ */ (() => {
|
|
|
9284
9691
|
});
|
|
9285
9692
|
}
|
|
9286
9693
|
list(query = {}, options) {
|
|
9287
|
-
return this._client.getAPIList("/v1/organizations/rbac_groups
|
|
9694
|
+
return this._client.getAPIList("/v1/organizations/rbac_groups", PageCursor, {
|
|
9288
9695
|
query,
|
|
9289
9696
|
...options,
|
|
9697
|
+
__qualifiers: { beta: "true" },
|
|
9290
9698
|
__span: startApiCallSpan(this._client, "anthropic.organization.rbac_groups.list", options, {
|
|
9291
9699
|
route: "/v1/organizations/rbac_groups",
|
|
9292
9700
|
queryParams: ["limit", "page"]
|
|
@@ -9294,8 +9702,9 @@ var RBACGroups = /* @__PURE__ */ (() => {
|
|
|
9294
9702
|
});
|
|
9295
9703
|
}
|
|
9296
9704
|
delete(rbacGroupID, options) {
|
|
9297
|
-
return this._client.delete(path`/v1/organizations/rbac_groups/${rbacGroupID}
|
|
9705
|
+
return this._client.delete(path`/v1/organizations/rbac_groups/${rbacGroupID}`, {
|
|
9298
9706
|
...options,
|
|
9707
|
+
__qualifiers: { beta: "true" },
|
|
9299
9708
|
__span: startApiCallSpan(this._client, "anthropic.organization.rbac_groups.delete", options, {
|
|
9300
9709
|
route: "/v1/organizations/rbac_groups/{rbac_group_id}",
|
|
9301
9710
|
attributes: { "anthropic.organization.rbac_group.id": rbacGroupID }
|
|
@@ -9310,9 +9719,10 @@ var RBACGroups = /* @__PURE__ */ (() => {
|
|
|
9310
9719
|
// node_modules/@anthropic-ai/sdk/resources/beta/organization/rbac-roles/permissions.mjs
|
|
9311
9720
|
class Permissions extends APIResource {
|
|
9312
9721
|
list(rbacRoleID, query = {}, options) {
|
|
9313
|
-
return this._client.getAPIList(path`/v1/organizations/rbac_roles/${rbacRoleID}/permissions
|
|
9722
|
+
return this._client.getAPIList(path`/v1/organizations/rbac_roles/${rbacRoleID}/permissions`, PageCursor, {
|
|
9314
9723
|
query,
|
|
9315
9724
|
...options,
|
|
9725
|
+
__qualifiers: { beta: "true" },
|
|
9316
9726
|
__span: startApiCallSpan(this._client, "anthropic.organization.rbac_roles.permissions.list", options, {
|
|
9317
9727
|
route: "/v1/organizations/rbac_roles/{rbac_role_id}/permissions",
|
|
9318
9728
|
queryParams: ["limit", "page"],
|
|
@@ -9330,8 +9740,9 @@ var RBACRoles = /* @__PURE__ */ (() => {
|
|
|
9330
9740
|
this.permissions = new Permissions(this._client);
|
|
9331
9741
|
}
|
|
9332
9742
|
retrieve(rbacRoleID, options) {
|
|
9333
|
-
return this._client.get(path`/v1/organizations/rbac_roles/${rbacRoleID}
|
|
9743
|
+
return this._client.get(path`/v1/organizations/rbac_roles/${rbacRoleID}`, {
|
|
9334
9744
|
...options,
|
|
9745
|
+
__qualifiers: { beta: "true" },
|
|
9335
9746
|
__span: startApiCallSpan(this._client, "anthropic.organization.rbac_roles.retrieve", options, {
|
|
9336
9747
|
route: "/v1/organizations/rbac_roles/{rbac_role_id}",
|
|
9337
9748
|
attributes: { "anthropic.organization.rbac_role.id": rbacRoleID }
|
|
@@ -9339,9 +9750,10 @@ var RBACRoles = /* @__PURE__ */ (() => {
|
|
|
9339
9750
|
});
|
|
9340
9751
|
}
|
|
9341
9752
|
list(query = {}, options) {
|
|
9342
|
-
return this._client.getAPIList("/v1/organizations/rbac_roles
|
|
9753
|
+
return this._client.getAPIList("/v1/organizations/rbac_roles", PageCursor, {
|
|
9343
9754
|
query,
|
|
9344
9755
|
...options,
|
|
9756
|
+
__qualifiers: { beta: "true" },
|
|
9345
9757
|
__span: startApiCallSpan(this._client, "anthropic.organization.rbac_roles.list", options, {
|
|
9346
9758
|
route: "/v1/organizations/rbac_roles",
|
|
9347
9759
|
queryParams: ["limit", "page"]
|
|
@@ -9357,13 +9769,14 @@ var RBACRoles = /* @__PURE__ */ (() => {
|
|
|
9357
9769
|
class Workspaces2 extends APIResource {
|
|
9358
9770
|
list(serviceAccountID, params = {}, options) {
|
|
9359
9771
|
const { betas, ...query } = params ?? {};
|
|
9360
|
-
return this._client.getAPIList(path`/v1/organizations/service_accounts/${serviceAccountID}/workspaces
|
|
9772
|
+
return this._client.getAPIList(path`/v1/organizations/service_accounts/${serviceAccountID}/workspaces`, PageCursor, {
|
|
9361
9773
|
query,
|
|
9362
9774
|
...options,
|
|
9363
9775
|
headers: buildHeaders([
|
|
9364
9776
|
{ ...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined },
|
|
9365
9777
|
options?.headers
|
|
9366
9778
|
]),
|
|
9779
|
+
__qualifiers: { beta: "true" },
|
|
9367
9780
|
__span: startApiCallSpan(this._client, "anthropic.organization.service_accounts.workspaces.list", options, {
|
|
9368
9781
|
route: "/v1/organizations/service_accounts/{service_account_id}/workspaces",
|
|
9369
9782
|
queryParams: ["limit", "page"],
|
|
@@ -9373,13 +9786,14 @@ class Workspaces2 extends APIResource {
|
|
|
9373
9786
|
}
|
|
9374
9787
|
add(serviceAccountID, params, options) {
|
|
9375
9788
|
const { betas, ...body } = params;
|
|
9376
|
-
return this._client.post(path`/v1/organizations/service_accounts/${serviceAccountID}/workspaces
|
|
9789
|
+
return this._client.post(path`/v1/organizations/service_accounts/${serviceAccountID}/workspaces`, {
|
|
9377
9790
|
body,
|
|
9378
9791
|
...options,
|
|
9379
9792
|
headers: buildHeaders([
|
|
9380
9793
|
{ ...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined },
|
|
9381
9794
|
options?.headers
|
|
9382
9795
|
]),
|
|
9796
|
+
__qualifiers: { beta: "true" },
|
|
9383
9797
|
__span: startApiCallSpan(this._client, "anthropic.organization.service_accounts.workspaces.add", options, {
|
|
9384
9798
|
route: "/v1/organizations/service_accounts/{service_account_id}/workspaces",
|
|
9385
9799
|
attributes: { "anthropic.organization.service_account.id": serviceAccountID },
|
|
@@ -9390,12 +9804,13 @@ class Workspaces2 extends APIResource {
|
|
|
9390
9804
|
}
|
|
9391
9805
|
remove(workspaceID, params, options) {
|
|
9392
9806
|
const { service_account_id, betas } = params;
|
|
9393
|
-
return this._client.delete(path`/v1/organizations/service_accounts/${service_account_id}/workspaces/${workspaceID}
|
|
9807
|
+
return this._client.delete(path`/v1/organizations/service_accounts/${service_account_id}/workspaces/${workspaceID}`, {
|
|
9394
9808
|
...options,
|
|
9395
9809
|
headers: buildHeaders([
|
|
9396
9810
|
{ ...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined },
|
|
9397
9811
|
options?.headers
|
|
9398
9812
|
]),
|
|
9813
|
+
__qualifiers: { beta: "true" },
|
|
9399
9814
|
__span: startApiCallSpan(this._client, "anthropic.organization.service_accounts.workspaces.remove", options, {
|
|
9400
9815
|
route: "/v1/organizations/service_accounts/{service_account_id}/workspaces/{workspace_id}",
|
|
9401
9816
|
attributes: {
|
|
@@ -9416,13 +9831,14 @@ var ServiceAccounts = /* @__PURE__ */ (() => {
|
|
|
9416
9831
|
}
|
|
9417
9832
|
create(params, options) {
|
|
9418
9833
|
const { betas, ...body } = params;
|
|
9419
|
-
return this._client.post("/v1/organizations/service_accounts
|
|
9834
|
+
return this._client.post("/v1/organizations/service_accounts", {
|
|
9420
9835
|
body,
|
|
9421
9836
|
...options,
|
|
9422
9837
|
headers: buildHeaders([
|
|
9423
9838
|
{ ...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined },
|
|
9424
9839
|
options?.headers
|
|
9425
9840
|
]),
|
|
9841
|
+
__qualifiers: { beta: "true" },
|
|
9426
9842
|
__span: startApiCallSpan(this._client, "anthropic.organization.service_accounts.create", options, {
|
|
9427
9843
|
route: "/v1/organizations/service_accounts",
|
|
9428
9844
|
createdIDAttribute: "anthropic.organization.service_account.id"
|
|
@@ -9431,12 +9847,13 @@ var ServiceAccounts = /* @__PURE__ */ (() => {
|
|
|
9431
9847
|
}
|
|
9432
9848
|
retrieve(serviceAccountID, params = {}, options) {
|
|
9433
9849
|
const { betas } = params ?? {};
|
|
9434
|
-
return this._client.get(path`/v1/organizations/service_accounts/${serviceAccountID}
|
|
9850
|
+
return this._client.get(path`/v1/organizations/service_accounts/${serviceAccountID}`, {
|
|
9435
9851
|
...options,
|
|
9436
9852
|
headers: buildHeaders([
|
|
9437
9853
|
{ ...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined },
|
|
9438
9854
|
options?.headers
|
|
9439
9855
|
]),
|
|
9856
|
+
__qualifiers: { beta: "true" },
|
|
9440
9857
|
__span: startApiCallSpan(this._client, "anthropic.organization.service_accounts.retrieve", options, {
|
|
9441
9858
|
route: "/v1/organizations/service_accounts/{service_account_id}",
|
|
9442
9859
|
attributes: { "anthropic.organization.service_account.id": serviceAccountID }
|
|
@@ -9445,13 +9862,14 @@ var ServiceAccounts = /* @__PURE__ */ (() => {
|
|
|
9445
9862
|
}
|
|
9446
9863
|
update(serviceAccountID, params, options) {
|
|
9447
9864
|
const { betas, ...body } = params;
|
|
9448
|
-
return this._client.post(path`/v1/organizations/service_accounts/${serviceAccountID}
|
|
9865
|
+
return this._client.post(path`/v1/organizations/service_accounts/${serviceAccountID}`, {
|
|
9449
9866
|
body,
|
|
9450
9867
|
...options,
|
|
9451
9868
|
headers: buildHeaders([
|
|
9452
9869
|
{ ...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined },
|
|
9453
9870
|
options?.headers
|
|
9454
9871
|
]),
|
|
9872
|
+
__qualifiers: { beta: "true" },
|
|
9455
9873
|
__span: startApiCallSpan(this._client, "anthropic.organization.service_accounts.update", options, {
|
|
9456
9874
|
route: "/v1/organizations/service_accounts/{service_account_id}",
|
|
9457
9875
|
attributes: { "anthropic.organization.service_account.id": serviceAccountID }
|
|
@@ -9460,13 +9878,14 @@ var ServiceAccounts = /* @__PURE__ */ (() => {
|
|
|
9460
9878
|
}
|
|
9461
9879
|
list(params = {}, options) {
|
|
9462
9880
|
const { betas, ...query } = params ?? {};
|
|
9463
|
-
return this._client.getAPIList("/v1/organizations/service_accounts
|
|
9881
|
+
return this._client.getAPIList("/v1/organizations/service_accounts", PageCursor, {
|
|
9464
9882
|
query,
|
|
9465
9883
|
...options,
|
|
9466
9884
|
headers: buildHeaders([
|
|
9467
9885
|
{ ...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined },
|
|
9468
9886
|
options?.headers
|
|
9469
9887
|
]),
|
|
9888
|
+
__qualifiers: { beta: "true" },
|
|
9470
9889
|
__span: startApiCallSpan(this._client, "anthropic.organization.service_accounts.list", options, {
|
|
9471
9890
|
route: "/v1/organizations/service_accounts",
|
|
9472
9891
|
queryParams: ["include_archived", "limit", "page"]
|
|
@@ -9475,12 +9894,13 @@ var ServiceAccounts = /* @__PURE__ */ (() => {
|
|
|
9475
9894
|
}
|
|
9476
9895
|
archive(serviceAccountID, params = {}, options) {
|
|
9477
9896
|
const { betas } = params ?? {};
|
|
9478
|
-
return this._client.post(path`/v1/organizations/service_accounts/${serviceAccountID}/archive
|
|
9897
|
+
return this._client.post(path`/v1/organizations/service_accounts/${serviceAccountID}/archive`, {
|
|
9479
9898
|
...options,
|
|
9480
9899
|
headers: buildHeaders([
|
|
9481
9900
|
{ ...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined },
|
|
9482
9901
|
options?.headers
|
|
9483
9902
|
]),
|
|
9903
|
+
__qualifiers: { beta: "true" },
|
|
9484
9904
|
__span: startApiCallSpan(this._client, "anthropic.organization.service_accounts.archive", options, {
|
|
9485
9905
|
route: "/v1/organizations/service_accounts/{service_account_id}/archive",
|
|
9486
9906
|
attributes: { "anthropic.organization.service_account.id": serviceAccountID }
|
|
@@ -9495,9 +9915,10 @@ var ServiceAccounts = /* @__PURE__ */ (() => {
|
|
|
9495
9915
|
// node_modules/@anthropic-ai/sdk/resources/beta/organization/spend-limits/effective.mjs
|
|
9496
9916
|
class Effective extends APIResource {
|
|
9497
9917
|
list(query = {}, options) {
|
|
9498
|
-
return this._client.getAPIList("/v1/organizations/spend_limits/effective
|
|
9918
|
+
return this._client.getAPIList("/v1/organizations/spend_limits/effective", PageCursor, {
|
|
9499
9919
|
query,
|
|
9500
9920
|
...options,
|
|
9921
|
+
__qualifiers: { beta: "true" },
|
|
9501
9922
|
__span: startApiCallSpan(this._client, "anthropic.organization.spend_limits.effective.list", options, {
|
|
9502
9923
|
route: "/v1/organizations/spend_limits/effective",
|
|
9503
9924
|
queryParams: ["limit", "page", "period", "user_ids"]
|
|
@@ -9509,8 +9930,9 @@ class Effective extends APIResource {
|
|
|
9509
9930
|
// node_modules/@anthropic-ai/sdk/resources/beta/organization/spend-limits/increase-requests.mjs
|
|
9510
9931
|
class IncreaseRequests extends APIResource {
|
|
9511
9932
|
retrieve(spendLimitIncreaseRequestID, options) {
|
|
9512
|
-
return this._client.get(path`/v1/organizations/spend_limit_increase_requests/${spendLimitIncreaseRequestID}
|
|
9933
|
+
return this._client.get(path`/v1/organizations/spend_limit_increase_requests/${spendLimitIncreaseRequestID}`, {
|
|
9513
9934
|
...options,
|
|
9935
|
+
__qualifiers: { beta: "true" },
|
|
9514
9936
|
__span: startApiCallSpan(this._client, "anthropic.organization.spend_limits.increase_requests.retrieve", options, {
|
|
9515
9937
|
route: "/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}",
|
|
9516
9938
|
attributes: {
|
|
@@ -9520,9 +9942,10 @@ class IncreaseRequests extends APIResource {
|
|
|
9520
9942
|
});
|
|
9521
9943
|
}
|
|
9522
9944
|
list(query = {}, options) {
|
|
9523
|
-
return this._client.getAPIList("/v1/organizations/spend_limit_increase_requests
|
|
9945
|
+
return this._client.getAPIList("/v1/organizations/spend_limit_increase_requests", PageCursor, {
|
|
9524
9946
|
query,
|
|
9525
9947
|
...options,
|
|
9948
|
+
__qualifiers: { beta: "true" },
|
|
9526
9949
|
__span: startApiCallSpan(this._client, "anthropic.organization.spend_limits.increase_requests.list", options, {
|
|
9527
9950
|
route: "/v1/organizations/spend_limit_increase_requests",
|
|
9528
9951
|
queryParams: ["actor_ids", "limit", "page", "status"]
|
|
@@ -9530,9 +9953,10 @@ class IncreaseRequests extends APIResource {
|
|
|
9530
9953
|
});
|
|
9531
9954
|
}
|
|
9532
9955
|
approve(spendLimitIncreaseRequestID, body, options) {
|
|
9533
|
-
return this._client.post(path`/v1/organizations/spend_limit_increase_requests/${spendLimitIncreaseRequestID}/approve
|
|
9956
|
+
return this._client.post(path`/v1/organizations/spend_limit_increase_requests/${spendLimitIncreaseRequestID}/approve`, {
|
|
9534
9957
|
body,
|
|
9535
9958
|
...options,
|
|
9959
|
+
__qualifiers: { beta: "true" },
|
|
9536
9960
|
__span: startApiCallSpan(this._client, "anthropic.organization.spend_limits.increase_requests.approve", options, {
|
|
9537
9961
|
route: "/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}/approve",
|
|
9538
9962
|
attributes: {
|
|
@@ -9542,9 +9966,10 @@ class IncreaseRequests extends APIResource {
|
|
|
9542
9966
|
});
|
|
9543
9967
|
}
|
|
9544
9968
|
deny(spendLimitIncreaseRequestID, body, options) {
|
|
9545
|
-
return this._client.post(path`/v1/organizations/spend_limit_increase_requests/${spendLimitIncreaseRequestID}/deny
|
|
9969
|
+
return this._client.post(path`/v1/organizations/spend_limit_increase_requests/${spendLimitIncreaseRequestID}/deny`, {
|
|
9546
9970
|
body,
|
|
9547
9971
|
...options,
|
|
9972
|
+
__qualifiers: { beta: "true" },
|
|
9548
9973
|
__span: startApiCallSpan(this._client, "anthropic.organization.spend_limits.increase_requests.deny", options, {
|
|
9549
9974
|
route: "/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}/deny",
|
|
9550
9975
|
attributes: {
|
|
@@ -9564,8 +9989,9 @@ var SpendLimits = /* @__PURE__ */ (() => {
|
|
|
9564
9989
|
this.increaseRequests = new IncreaseRequests(this._client);
|
|
9565
9990
|
}
|
|
9566
9991
|
retrieve(spendLimitID, options) {
|
|
9567
|
-
return this._client.get(path`/v1/organizations/spend_limits/${spendLimitID}
|
|
9992
|
+
return this._client.get(path`/v1/organizations/spend_limits/${spendLimitID}`, {
|
|
9568
9993
|
...options,
|
|
9994
|
+
__qualifiers: { beta: "true" },
|
|
9569
9995
|
__span: startApiCallSpan(this._client, "anthropic.organization.spend_limits.retrieve", options, {
|
|
9570
9996
|
route: "/v1/organizations/spend_limits/{spend_limit_id}",
|
|
9571
9997
|
attributes: { "anthropic.organization.spend_limit.id": spendLimitID }
|
|
@@ -9574,13 +10000,14 @@ var SpendLimits = /* @__PURE__ */ (() => {
|
|
|
9574
10000
|
}
|
|
9575
10001
|
list(params = {}, options) {
|
|
9576
10002
|
const { betas, ...query } = params ?? {};
|
|
9577
|
-
return this._client.getAPIList("/v1/organizations/spend_limits
|
|
10003
|
+
return this._client.getAPIList("/v1/organizations/spend_limits", PageCursor, {
|
|
9578
10004
|
query,
|
|
9579
10005
|
...options,
|
|
9580
10006
|
headers: buildHeaders([
|
|
9581
10007
|
{ "anthropic-beta": [...betas ?? [], "spend-limit-reads-2026-09-26"].toString() },
|
|
9582
10008
|
options?.headers
|
|
9583
10009
|
]),
|
|
10010
|
+
__qualifiers: { beta: "true" },
|
|
9584
10011
|
__span: startApiCallSpan(this._client, "anthropic.organization.spend_limits.list", options, {
|
|
9585
10012
|
route: "/v1/organizations/spend_limits",
|
|
9586
10013
|
queryParams: ["limit", "page", "scope_type", "workspace_id"]
|
|
@@ -9588,8 +10015,9 @@ var SpendLimits = /* @__PURE__ */ (() => {
|
|
|
9588
10015
|
});
|
|
9589
10016
|
}
|
|
9590
10017
|
delete(spendLimitID, options) {
|
|
9591
|
-
return this._client.delete(path`/v1/organizations/spend_limits/${spendLimitID}
|
|
10018
|
+
return this._client.delete(path`/v1/organizations/spend_limits/${spendLimitID}`, {
|
|
9592
10019
|
...options,
|
|
10020
|
+
__qualifiers: { beta: "true" },
|
|
9593
10021
|
__span: startApiCallSpan(this._client, "anthropic.organization.spend_limits.delete", options, {
|
|
9594
10022
|
route: "/v1/organizations/spend_limits/{spend_limit_id}",
|
|
9595
10023
|
attributes: { "anthropic.organization.spend_limit.id": spendLimitID }
|
|
@@ -9598,13 +10026,14 @@ var SpendLimits = /* @__PURE__ */ (() => {
|
|
|
9598
10026
|
}
|
|
9599
10027
|
set(params, options) {
|
|
9600
10028
|
const { betas, ...body } = params;
|
|
9601
|
-
return this._client.post("/v1/organizations/spend_limits
|
|
10029
|
+
return this._client.post("/v1/organizations/spend_limits", {
|
|
9602
10030
|
body,
|
|
9603
10031
|
...options,
|
|
9604
10032
|
headers: buildHeaders([
|
|
9605
10033
|
{ ...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined },
|
|
9606
10034
|
options?.headers
|
|
9607
10035
|
]),
|
|
10036
|
+
__qualifiers: { beta: "true" },
|
|
9608
10037
|
__span: startApiCallSpan(this._client, "anthropic.organization.spend_limits.set", options, {
|
|
9609
10038
|
route: "/v1/organizations/spend_limits",
|
|
9610
10039
|
createdIDAttribute: "anthropic.organization.spend_limit.id"
|
|
@@ -9621,13 +10050,14 @@ var SpendLimits = /* @__PURE__ */ (() => {
|
|
|
9621
10050
|
class Workspaces3 extends APIResource {
|
|
9622
10051
|
list(destinationID, params = {}, options) {
|
|
9623
10052
|
const { betas, ...query } = params ?? {};
|
|
9624
|
-
return this._client.getAPIList(path`/v1/organizations/telemetry_destinations/${destinationID}/workspaces
|
|
10053
|
+
return this._client.getAPIList(path`/v1/organizations/telemetry_destinations/${destinationID}/workspaces`, PageCursor, {
|
|
9625
10054
|
query,
|
|
9626
10055
|
...options,
|
|
9627
10056
|
headers: buildHeaders([
|
|
9628
10057
|
{ "anthropic-beta": [...betas ?? [], "telemetry-destinations-2026-08-11"].toString() },
|
|
9629
10058
|
options?.headers
|
|
9630
10059
|
]),
|
|
10060
|
+
__qualifiers: { beta: "true" },
|
|
9631
10061
|
__span: startApiCallSpan(this._client, "anthropic.organization.telemetry_destinations.workspaces.list", options, {
|
|
9632
10062
|
route: "/v1/organizations/telemetry_destinations/{destination_id}/workspaces",
|
|
9633
10063
|
queryParams: ["limit", "page"],
|
|
@@ -9637,12 +10067,13 @@ class Workspaces3 extends APIResource {
|
|
|
9637
10067
|
}
|
|
9638
10068
|
add(workspaceID, params, options) {
|
|
9639
10069
|
const { destination_id, betas } = params;
|
|
9640
|
-
return this._client.post(path`/v1/organizations/telemetry_destinations/${destination_id}/workspaces/${workspaceID}
|
|
10070
|
+
return this._client.post(path`/v1/organizations/telemetry_destinations/${destination_id}/workspaces/${workspaceID}`, {
|
|
9641
10071
|
...options,
|
|
9642
10072
|
headers: buildHeaders([
|
|
9643
10073
|
{ "anthropic-beta": [...betas ?? [], "telemetry-destinations-2026-08-11"].toString() },
|
|
9644
10074
|
options?.headers
|
|
9645
10075
|
]),
|
|
10076
|
+
__qualifiers: { beta: "true" },
|
|
9646
10077
|
__span: startApiCallSpan(this._client, "anthropic.organization.telemetry_destinations.workspaces.add", options, {
|
|
9647
10078
|
route: "/v1/organizations/telemetry_destinations/{destination_id}/workspaces/{workspace_id}",
|
|
9648
10079
|
attributes: {
|
|
@@ -9654,12 +10085,13 @@ class Workspaces3 extends APIResource {
|
|
|
9654
10085
|
}
|
|
9655
10086
|
remove(workspaceID, params, options) {
|
|
9656
10087
|
const { destination_id, betas } = params;
|
|
9657
|
-
return this._client.delete(path`/v1/organizations/telemetry_destinations/${destination_id}/workspaces/${workspaceID}
|
|
10088
|
+
return this._client.delete(path`/v1/organizations/telemetry_destinations/${destination_id}/workspaces/${workspaceID}`, {
|
|
9658
10089
|
...options,
|
|
9659
10090
|
headers: buildHeaders([
|
|
9660
10091
|
{ "anthropic-beta": [...betas ?? [], "telemetry-destinations-2026-08-11"].toString() },
|
|
9661
10092
|
options?.headers
|
|
9662
10093
|
]),
|
|
10094
|
+
__qualifiers: { beta: "true" },
|
|
9663
10095
|
__span: startApiCallSpan(this._client, "anthropic.organization.telemetry_destinations.workspaces.remove", options, {
|
|
9664
10096
|
route: "/v1/organizations/telemetry_destinations/{destination_id}/workspaces/{workspace_id}",
|
|
9665
10097
|
attributes: {
|
|
@@ -9680,13 +10112,14 @@ var TelemetryDestinations = /* @__PURE__ */ (() => {
|
|
|
9680
10112
|
}
|
|
9681
10113
|
create(params, options) {
|
|
9682
10114
|
const { betas, ...body } = params;
|
|
9683
|
-
return this._client.post("/v1/organizations/telemetry_destinations
|
|
10115
|
+
return this._client.post("/v1/organizations/telemetry_destinations", {
|
|
9684
10116
|
body,
|
|
9685
10117
|
...options,
|
|
9686
10118
|
headers: buildHeaders([
|
|
9687
10119
|
{ "anthropic-beta": [...betas ?? [], "telemetry-destinations-2026-08-11"].toString() },
|
|
9688
10120
|
options?.headers
|
|
9689
10121
|
]),
|
|
10122
|
+
__qualifiers: { beta: "true" },
|
|
9690
10123
|
__span: startApiCallSpan(this._client, "anthropic.organization.telemetry_destinations.create", options, {
|
|
9691
10124
|
route: "/v1/organizations/telemetry_destinations",
|
|
9692
10125
|
createdIDAttribute: "anthropic.organization.telemetry_destination.id"
|
|
@@ -9695,12 +10128,13 @@ var TelemetryDestinations = /* @__PURE__ */ (() => {
|
|
|
9695
10128
|
}
|
|
9696
10129
|
retrieve(destinationID, params = {}, options) {
|
|
9697
10130
|
const { betas } = params ?? {};
|
|
9698
|
-
return this._client.get(path`/v1/organizations/telemetry_destinations/${destinationID}
|
|
10131
|
+
return this._client.get(path`/v1/organizations/telemetry_destinations/${destinationID}`, {
|
|
9699
10132
|
...options,
|
|
9700
10133
|
headers: buildHeaders([
|
|
9701
10134
|
{ "anthropic-beta": [...betas ?? [], "telemetry-destinations-2026-08-11"].toString() },
|
|
9702
10135
|
options?.headers
|
|
9703
10136
|
]),
|
|
10137
|
+
__qualifiers: { beta: "true" },
|
|
9704
10138
|
__span: startApiCallSpan(this._client, "anthropic.organization.telemetry_destinations.retrieve", options, {
|
|
9705
10139
|
route: "/v1/organizations/telemetry_destinations/{destination_id}",
|
|
9706
10140
|
attributes: { "anthropic.organization.telemetry_destination.id": destinationID }
|
|
@@ -9709,13 +10143,14 @@ var TelemetryDestinations = /* @__PURE__ */ (() => {
|
|
|
9709
10143
|
}
|
|
9710
10144
|
update(destinationID, params, options) {
|
|
9711
10145
|
const { betas, ...body } = params;
|
|
9712
|
-
return this._client.post(path`/v1/organizations/telemetry_destinations/${destinationID}
|
|
10146
|
+
return this._client.post(path`/v1/organizations/telemetry_destinations/${destinationID}`, {
|
|
9713
10147
|
body,
|
|
9714
10148
|
...options,
|
|
9715
10149
|
headers: buildHeaders([
|
|
9716
10150
|
{ "anthropic-beta": [...betas ?? [], "telemetry-destinations-2026-08-11"].toString() },
|
|
9717
10151
|
options?.headers
|
|
9718
10152
|
]),
|
|
10153
|
+
__qualifiers: { beta: "true" },
|
|
9719
10154
|
__span: startApiCallSpan(this._client, "anthropic.organization.telemetry_destinations.update", options, {
|
|
9720
10155
|
route: "/v1/organizations/telemetry_destinations/{destination_id}",
|
|
9721
10156
|
attributes: { "anthropic.organization.telemetry_destination.id": destinationID }
|
|
@@ -9724,13 +10159,14 @@ var TelemetryDestinations = /* @__PURE__ */ (() => {
|
|
|
9724
10159
|
}
|
|
9725
10160
|
list(params = {}, options) {
|
|
9726
10161
|
const { betas, ...query } = params ?? {};
|
|
9727
|
-
return this._client.getAPIList("/v1/organizations/telemetry_destinations
|
|
10162
|
+
return this._client.getAPIList("/v1/organizations/telemetry_destinations", PageCursor, {
|
|
9728
10163
|
query,
|
|
9729
10164
|
...options,
|
|
9730
10165
|
headers: buildHeaders([
|
|
9731
10166
|
{ "anthropic-beta": [...betas ?? [], "telemetry-destinations-2026-08-11"].toString() },
|
|
9732
10167
|
options?.headers
|
|
9733
10168
|
]),
|
|
10169
|
+
__qualifiers: { beta: "true" },
|
|
9734
10170
|
__span: startApiCallSpan(this._client, "anthropic.organization.telemetry_destinations.list", options, {
|
|
9735
10171
|
route: "/v1/organizations/telemetry_destinations",
|
|
9736
10172
|
queryParams: ["limit", "page", "workspace_ids"]
|
|
@@ -9739,12 +10175,13 @@ var TelemetryDestinations = /* @__PURE__ */ (() => {
|
|
|
9739
10175
|
}
|
|
9740
10176
|
delete(destinationID, params = {}, options) {
|
|
9741
10177
|
const { betas } = params ?? {};
|
|
9742
|
-
return this._client.delete(path`/v1/organizations/telemetry_destinations/${destinationID}
|
|
10178
|
+
return this._client.delete(path`/v1/organizations/telemetry_destinations/${destinationID}`, {
|
|
9743
10179
|
...options,
|
|
9744
10180
|
headers: buildHeaders([
|
|
9745
10181
|
{ "anthropic-beta": [...betas ?? [], "telemetry-destinations-2026-08-11"].toString() },
|
|
9746
10182
|
options?.headers
|
|
9747
10183
|
]),
|
|
10184
|
+
__qualifiers: { beta: "true" },
|
|
9748
10185
|
__span: startApiCallSpan(this._client, "anthropic.organization.telemetry_destinations.delete", options, {
|
|
9749
10186
|
route: "/v1/organizations/telemetry_destinations/{destination_id}",
|
|
9750
10187
|
attributes: { "anthropic.organization.telemetry_destination.id": destinationID }
|
|
@@ -9753,12 +10190,13 @@ var TelemetryDestinations = /* @__PURE__ */ (() => {
|
|
|
9753
10190
|
}
|
|
9754
10191
|
test(destinationID, params = {}, options) {
|
|
9755
10192
|
const { betas } = params ?? {};
|
|
9756
|
-
return this._client.post(path`/v1/organizations/telemetry_destinations/${destinationID}/test
|
|
10193
|
+
return this._client.post(path`/v1/organizations/telemetry_destinations/${destinationID}/test`, {
|
|
9757
10194
|
...options,
|
|
9758
10195
|
headers: buildHeaders([
|
|
9759
10196
|
{ "anthropic-beta": [...betas ?? [], "telemetry-destinations-2026-08-11"].toString() },
|
|
9760
10197
|
options?.headers
|
|
9761
10198
|
]),
|
|
10199
|
+
__qualifiers: { beta: "true" },
|
|
9762
10200
|
__span: startApiCallSpan(this._client, "anthropic.organization.telemetry_destinations.test", options, {
|
|
9763
10201
|
route: "/v1/organizations/telemetry_destinations/{destination_id}/test",
|
|
9764
10202
|
attributes: { "anthropic.organization.telemetry_destination.id": destinationID }
|
|
@@ -9774,8 +10212,9 @@ var TelemetryDestinations = /* @__PURE__ */ (() => {
|
|
|
9774
10212
|
class Members2 extends APIResource {
|
|
9775
10213
|
retrieve(userID, params, options) {
|
|
9776
10214
|
const { workspace_id } = params;
|
|
9777
|
-
return this._client.get(path`/v1/organizations/workspaces/${workspace_id}/members/${userID}
|
|
10215
|
+
return this._client.get(path`/v1/organizations/workspaces/${workspace_id}/members/${userID}`, {
|
|
9778
10216
|
...options,
|
|
10217
|
+
__qualifiers: { beta: "true" },
|
|
9779
10218
|
__span: startApiCallSpan(this._client, "anthropic.organization.workspaces.members.retrieve", options, {
|
|
9780
10219
|
route: "/v1/organizations/workspaces/{workspace_id}/members/{user_id}",
|
|
9781
10220
|
attributes: {
|
|
@@ -9787,9 +10226,10 @@ class Members2 extends APIResource {
|
|
|
9787
10226
|
}
|
|
9788
10227
|
update(userID, params, options) {
|
|
9789
10228
|
const { workspace_id, ...body } = params;
|
|
9790
|
-
return this._client.post(path`/v1/organizations/workspaces/${workspace_id}/members/${userID}
|
|
10229
|
+
return this._client.post(path`/v1/organizations/workspaces/${workspace_id}/members/${userID}`, {
|
|
9791
10230
|
body,
|
|
9792
10231
|
...options,
|
|
10232
|
+
__qualifiers: { beta: "true" },
|
|
9793
10233
|
__span: startApiCallSpan(this._client, "anthropic.organization.workspaces.members.update", options, {
|
|
9794
10234
|
route: "/v1/organizations/workspaces/{workspace_id}/members/{user_id}",
|
|
9795
10235
|
attributes: {
|
|
@@ -9800,9 +10240,10 @@ class Members2 extends APIResource {
|
|
|
9800
10240
|
});
|
|
9801
10241
|
}
|
|
9802
10242
|
list(workspaceID, query = {}, options) {
|
|
9803
|
-
return this._client.getAPIList(path`/v1/organizations/workspaces/${workspaceID}/members
|
|
10243
|
+
return this._client.getAPIList(path`/v1/organizations/workspaces/${workspaceID}/members`, Page, {
|
|
9804
10244
|
query,
|
|
9805
10245
|
...options,
|
|
10246
|
+
__qualifiers: { beta: "true" },
|
|
9806
10247
|
__span: startApiCallSpan(this._client, "anthropic.organization.workspaces.members.list", options, {
|
|
9807
10248
|
route: "/v1/organizations/workspaces/{workspace_id}/members",
|
|
9808
10249
|
queryParams: ["after_id", "before_id", "limit"],
|
|
@@ -9811,9 +10252,10 @@ class Members2 extends APIResource {
|
|
|
9811
10252
|
});
|
|
9812
10253
|
}
|
|
9813
10254
|
add(workspaceID, body, options) {
|
|
9814
|
-
return this._client.post(path`/v1/organizations/workspaces/${workspaceID}/members
|
|
10255
|
+
return this._client.post(path`/v1/organizations/workspaces/${workspaceID}/members`, {
|
|
9815
10256
|
body,
|
|
9816
10257
|
...options,
|
|
10258
|
+
__qualifiers: { beta: "true" },
|
|
9817
10259
|
__span: startApiCallSpan(this._client, "anthropic.organization.workspaces.members.add", options, {
|
|
9818
10260
|
route: "/v1/organizations/workspaces/{workspace_id}/members",
|
|
9819
10261
|
attributes: { "anthropic.organization.workspace.id": workspaceID },
|
|
@@ -9824,8 +10266,9 @@ class Members2 extends APIResource {
|
|
|
9824
10266
|
}
|
|
9825
10267
|
remove(userID, params, options) {
|
|
9826
10268
|
const { workspace_id } = params;
|
|
9827
|
-
return this._client.delete(path`/v1/organizations/workspaces/${workspace_id}/members/${userID}
|
|
10269
|
+
return this._client.delete(path`/v1/organizations/workspaces/${workspace_id}/members/${userID}`, {
|
|
9828
10270
|
...options,
|
|
10271
|
+
__qualifiers: { beta: "true" },
|
|
9829
10272
|
__span: startApiCallSpan(this._client, "anthropic.organization.workspaces.members.remove", options, {
|
|
9830
10273
|
route: "/v1/organizations/workspaces/{workspace_id}/members/{user_id}",
|
|
9831
10274
|
attributes: {
|
|
@@ -9841,9 +10284,10 @@ class Members2 extends APIResource {
|
|
|
9841
10284
|
class RateLimits2 extends APIResource {
|
|
9842
10285
|
update(rateLimitID, params, options) {
|
|
9843
10286
|
const { workspace_id, ...body } = params;
|
|
9844
|
-
return this._client.post(path`/v1/organizations/workspaces/${workspace_id}/rate_limits/${rateLimitID}
|
|
10287
|
+
return this._client.post(path`/v1/organizations/workspaces/${workspace_id}/rate_limits/${rateLimitID}`, {
|
|
9845
10288
|
body,
|
|
9846
10289
|
...options,
|
|
10290
|
+
__qualifiers: { beta: "true" },
|
|
9847
10291
|
__span: startApiCallSpan(this._client, "anthropic.organization.workspaces.rate_limits.update", options, {
|
|
9848
10292
|
route: "/v1/organizations/workspaces/{workspace_id}/rate_limits/{rate_limit_id}",
|
|
9849
10293
|
attributes: {
|
|
@@ -9854,9 +10298,10 @@ class RateLimits2 extends APIResource {
|
|
|
9854
10298
|
});
|
|
9855
10299
|
}
|
|
9856
10300
|
list(workspaceID, query = {}, options) {
|
|
9857
|
-
return this._client.getAPIList(path`/v1/organizations/workspaces/${workspaceID}/rate_limits
|
|
10301
|
+
return this._client.getAPIList(path`/v1/organizations/workspaces/${workspaceID}/rate_limits`, PageCursor, {
|
|
9858
10302
|
query,
|
|
9859
10303
|
...options,
|
|
10304
|
+
__qualifiers: { beta: "true" },
|
|
9860
10305
|
__span: startApiCallSpan(this._client, "anthropic.organization.workspaces.rate_limits.list", options, {
|
|
9861
10306
|
route: "/v1/organizations/workspaces/{workspace_id}/rate_limits",
|
|
9862
10307
|
queryParams: ["group_type", "include_inherited", "limit", "page"],
|
|
@@ -9870,12 +10315,13 @@ class RateLimits2 extends APIResource {
|
|
|
9870
10315
|
class ServiceAccounts2 extends APIResource {
|
|
9871
10316
|
retrieve(serviceAccountID, params, options) {
|
|
9872
10317
|
const { workspace_id, betas } = params;
|
|
9873
|
-
return this._client.get(path`/v1/organizations/workspaces/${workspace_id}/service_accounts/${serviceAccountID}
|
|
10318
|
+
return this._client.get(path`/v1/organizations/workspaces/${workspace_id}/service_accounts/${serviceAccountID}`, {
|
|
9874
10319
|
...options,
|
|
9875
10320
|
headers: buildHeaders([
|
|
9876
10321
|
{ ...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined },
|
|
9877
10322
|
options?.headers
|
|
9878
10323
|
]),
|
|
10324
|
+
__qualifiers: { beta: "true" },
|
|
9879
10325
|
__span: startApiCallSpan(this._client, "anthropic.organization.workspaces.service_accounts.retrieve", options, {
|
|
9880
10326
|
route: "/v1/organizations/workspaces/{workspace_id}/service_accounts/{service_account_id}",
|
|
9881
10327
|
attributes: {
|
|
@@ -9887,13 +10333,14 @@ class ServiceAccounts2 extends APIResource {
|
|
|
9887
10333
|
}
|
|
9888
10334
|
update(serviceAccountID, params, options) {
|
|
9889
10335
|
const { workspace_id, betas, ...body } = params;
|
|
9890
|
-
return this._client.post(path`/v1/organizations/workspaces/${workspace_id}/service_accounts/${serviceAccountID}
|
|
10336
|
+
return this._client.post(path`/v1/organizations/workspaces/${workspace_id}/service_accounts/${serviceAccountID}`, {
|
|
9891
10337
|
body,
|
|
9892
10338
|
...options,
|
|
9893
10339
|
headers: buildHeaders([
|
|
9894
10340
|
{ ...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined },
|
|
9895
10341
|
options?.headers
|
|
9896
10342
|
]),
|
|
10343
|
+
__qualifiers: { beta: "true" },
|
|
9897
10344
|
__span: startApiCallSpan(this._client, "anthropic.organization.workspaces.service_accounts.update", options, {
|
|
9898
10345
|
route: "/v1/organizations/workspaces/{workspace_id}/service_accounts/{service_account_id}",
|
|
9899
10346
|
attributes: {
|
|
@@ -9905,13 +10352,14 @@ class ServiceAccounts2 extends APIResource {
|
|
|
9905
10352
|
}
|
|
9906
10353
|
list(workspaceID, params = {}, options) {
|
|
9907
10354
|
const { betas, ...query } = params ?? {};
|
|
9908
|
-
return this._client.getAPIList(path`/v1/organizations/workspaces/${workspaceID}/service_accounts
|
|
10355
|
+
return this._client.getAPIList(path`/v1/organizations/workspaces/${workspaceID}/service_accounts`, PageCursor, {
|
|
9909
10356
|
query,
|
|
9910
10357
|
...options,
|
|
9911
10358
|
headers: buildHeaders([
|
|
9912
10359
|
{ ...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined },
|
|
9913
10360
|
options?.headers
|
|
9914
10361
|
]),
|
|
10362
|
+
__qualifiers: { beta: "true" },
|
|
9915
10363
|
__span: startApiCallSpan(this._client, "anthropic.organization.workspaces.service_accounts.list", options, {
|
|
9916
10364
|
route: "/v1/organizations/workspaces/{workspace_id}/service_accounts",
|
|
9917
10365
|
queryParams: ["limit", "page"],
|
|
@@ -9921,13 +10369,14 @@ class ServiceAccounts2 extends APIResource {
|
|
|
9921
10369
|
}
|
|
9922
10370
|
add(workspaceID, params, options) {
|
|
9923
10371
|
const { betas, ...body } = params;
|
|
9924
|
-
return this._client.post(path`/v1/organizations/workspaces/${workspaceID}/service_accounts
|
|
10372
|
+
return this._client.post(path`/v1/organizations/workspaces/${workspaceID}/service_accounts`, {
|
|
9925
10373
|
body,
|
|
9926
10374
|
...options,
|
|
9927
10375
|
headers: buildHeaders([
|
|
9928
10376
|
{ ...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined },
|
|
9929
10377
|
options?.headers
|
|
9930
10378
|
]),
|
|
10379
|
+
__qualifiers: { beta: "true" },
|
|
9931
10380
|
__span: startApiCallSpan(this._client, "anthropic.organization.workspaces.service_accounts.add", options, {
|
|
9932
10381
|
route: "/v1/organizations/workspaces/{workspace_id}/service_accounts",
|
|
9933
10382
|
attributes: { "anthropic.organization.workspace.id": workspaceID },
|
|
@@ -9938,12 +10387,13 @@ class ServiceAccounts2 extends APIResource {
|
|
|
9938
10387
|
}
|
|
9939
10388
|
remove(serviceAccountID, params, options) {
|
|
9940
10389
|
const { workspace_id, betas } = params;
|
|
9941
|
-
return this._client.delete(path`/v1/organizations/workspaces/${workspace_id}/service_accounts/${serviceAccountID}
|
|
10390
|
+
return this._client.delete(path`/v1/organizations/workspaces/${workspace_id}/service_accounts/${serviceAccountID}`, {
|
|
9942
10391
|
...options,
|
|
9943
10392
|
headers: buildHeaders([
|
|
9944
10393
|
{ ...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined },
|
|
9945
10394
|
options?.headers
|
|
9946
10395
|
]),
|
|
10396
|
+
__qualifiers: { beta: "true" },
|
|
9947
10397
|
__span: startApiCallSpan(this._client, "anthropic.organization.workspaces.service_accounts.remove", options, {
|
|
9948
10398
|
route: "/v1/organizations/workspaces/{workspace_id}/service_accounts/{service_account_id}",
|
|
9949
10399
|
attributes: {
|
|
@@ -9966,13 +10416,14 @@ var Workspaces4 = /* @__PURE__ */ (() => {
|
|
|
9966
10416
|
}
|
|
9967
10417
|
create(params, options) {
|
|
9968
10418
|
const { betas, ...body } = params;
|
|
9969
|
-
return this._client.post("/v1/organizations/workspaces
|
|
10419
|
+
return this._client.post("/v1/organizations/workspaces", {
|
|
9970
10420
|
body,
|
|
9971
10421
|
...options,
|
|
9972
10422
|
headers: buildHeaders([
|
|
9973
10423
|
{ ...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined },
|
|
9974
10424
|
options?.headers
|
|
9975
10425
|
]),
|
|
10426
|
+
__qualifiers: { beta: "true" },
|
|
9976
10427
|
__span: startApiCallSpan(this._client, "anthropic.organization.workspaces.create", options, {
|
|
9977
10428
|
route: "/v1/organizations/workspaces",
|
|
9978
10429
|
createdIDAttribute: "anthropic.organization.workspace.id"
|
|
@@ -9980,8 +10431,9 @@ var Workspaces4 = /* @__PURE__ */ (() => {
|
|
|
9980
10431
|
});
|
|
9981
10432
|
}
|
|
9982
10433
|
retrieve(workspaceID, options) {
|
|
9983
|
-
return this._client.get(path`/v1/organizations/workspaces/${workspaceID}
|
|
10434
|
+
return this._client.get(path`/v1/organizations/workspaces/${workspaceID}`, {
|
|
9984
10435
|
...options,
|
|
10436
|
+
__qualifiers: { beta: "true" },
|
|
9985
10437
|
__span: startApiCallSpan(this._client, "anthropic.organization.workspaces.retrieve", options, {
|
|
9986
10438
|
route: "/v1/organizations/workspaces/{workspace_id}",
|
|
9987
10439
|
attributes: { "anthropic.organization.workspace.id": workspaceID }
|
|
@@ -9989,9 +10441,10 @@ var Workspaces4 = /* @__PURE__ */ (() => {
|
|
|
9989
10441
|
});
|
|
9990
10442
|
}
|
|
9991
10443
|
update(workspaceID, body, options) {
|
|
9992
|
-
return this._client.post(path`/v1/organizations/workspaces/${workspaceID}
|
|
10444
|
+
return this._client.post(path`/v1/organizations/workspaces/${workspaceID}`, {
|
|
9993
10445
|
body,
|
|
9994
10446
|
...options,
|
|
10447
|
+
__qualifiers: { beta: "true" },
|
|
9995
10448
|
__span: startApiCallSpan(this._client, "anthropic.organization.workspaces.update", options, {
|
|
9996
10449
|
route: "/v1/organizations/workspaces/{workspace_id}",
|
|
9997
10450
|
attributes: { "anthropic.organization.workspace.id": workspaceID }
|
|
@@ -9999,9 +10452,10 @@ var Workspaces4 = /* @__PURE__ */ (() => {
|
|
|
9999
10452
|
});
|
|
10000
10453
|
}
|
|
10001
10454
|
list(query = {}, options) {
|
|
10002
|
-
return this._client.getAPIList("/v1/organizations/workspaces
|
|
10455
|
+
return this._client.getAPIList("/v1/organizations/workspaces", Page, {
|
|
10003
10456
|
query,
|
|
10004
10457
|
...options,
|
|
10458
|
+
__qualifiers: { beta: "true" },
|
|
10005
10459
|
__span: startApiCallSpan(this._client, "anthropic.organization.workspaces.list", options, {
|
|
10006
10460
|
route: "/v1/organizations/workspaces",
|
|
10007
10461
|
queryParams: ["after_id", "before_id", "include_archived", "include_default", "limit"]
|
|
@@ -10009,8 +10463,9 @@ var Workspaces4 = /* @__PURE__ */ (() => {
|
|
|
10009
10463
|
});
|
|
10010
10464
|
}
|
|
10011
10465
|
archive(workspaceID, options) {
|
|
10012
|
-
return this._client.post(path`/v1/organizations/workspaces/${workspaceID}/archive
|
|
10466
|
+
return this._client.post(path`/v1/organizations/workspaces/${workspaceID}/archive`, {
|
|
10013
10467
|
...options,
|
|
10468
|
+
__qualifiers: { beta: "true" },
|
|
10014
10469
|
__span: startApiCallSpan(this._client, "anthropic.organization.workspaces.archive", options, {
|
|
10015
10470
|
route: "/v1/organizations/workspaces/{workspace_id}/archive",
|
|
10016
10471
|
attributes: { "anthropic.organization.workspace.id": workspaceID }
|
|
@@ -10046,10 +10501,12 @@ var Organization = /* @__PURE__ */ (() => {
|
|
|
10046
10501
|
this.pluginMarketplaces = new PluginMarketplaces(this._client);
|
|
10047
10502
|
this.telemetryDestinations = new TelemetryDestinations(this._client);
|
|
10048
10503
|
this.webhooks = new Webhooks2(this._client);
|
|
10504
|
+
this.claudeTag = new ClaudeTag(this._client);
|
|
10049
10505
|
}
|
|
10050
10506
|
retrieve(options) {
|
|
10051
|
-
return this._client.get("/v1/organizations/me
|
|
10507
|
+
return this._client.get("/v1/organizations/me", {
|
|
10052
10508
|
...options,
|
|
10509
|
+
__qualifiers: { beta: "true" },
|
|
10053
10510
|
__span: startApiCallSpan(this._client, "anthropic.organization.retrieve", options, {
|
|
10054
10511
|
route: "/v1/organizations/me"
|
|
10055
10512
|
})
|
|
@@ -10073,6 +10530,7 @@ var Organization = /* @__PURE__ */ (() => {
|
|
|
10073
10530
|
Organization.PluginMarketplaces = PluginMarketplaces;
|
|
10074
10531
|
Organization.TelemetryDestinations = TelemetryDestinations;
|
|
10075
10532
|
Organization.Webhooks = Webhooks2;
|
|
10533
|
+
Organization.ClaudeTag = ClaudeTag;
|
|
10076
10534
|
return Organization;
|
|
10077
10535
|
})();
|
|
10078
10536
|
|
|
@@ -10081,7 +10539,7 @@ var Events = /* @__PURE__ */ (() => {
|
|
|
10081
10539
|
class Events extends APIResource {
|
|
10082
10540
|
list(sessionID, params = {}, options) {
|
|
10083
10541
|
const { betas, workspace_id, ...query } = params ?? {};
|
|
10084
|
-
return this._client.getAPIList(path`/v1/sessions/${sessionID}/events
|
|
10542
|
+
return this._client.getAPIList(path`/v1/sessions/${sessionID}/events`, PageCursor, {
|
|
10085
10543
|
query,
|
|
10086
10544
|
...options,
|
|
10087
10545
|
headers: buildHeaders([
|
|
@@ -10091,6 +10549,7 @@ var Events = /* @__PURE__ */ (() => {
|
|
|
10091
10549
|
},
|
|
10092
10550
|
options?.headers
|
|
10093
10551
|
]),
|
|
10552
|
+
__qualifiers: { beta: "true" },
|
|
10094
10553
|
__span: startApiCallSpan(this._client, "anthropic.sessions.events.list", options, {
|
|
10095
10554
|
route: "/v1/sessions/{session_id}/events",
|
|
10096
10555
|
queryParams: [
|
|
@@ -10109,7 +10568,7 @@ var Events = /* @__PURE__ */ (() => {
|
|
|
10109
10568
|
}
|
|
10110
10569
|
send(sessionID, params, options) {
|
|
10111
10570
|
const { betas, workspace_id, ...body } = params;
|
|
10112
|
-
return this._client.post(path`/v1/sessions/${sessionID}/events
|
|
10571
|
+
return this._client.post(path`/v1/sessions/${sessionID}/events`, {
|
|
10113
10572
|
body,
|
|
10114
10573
|
...options,
|
|
10115
10574
|
headers: buildHeaders([
|
|
@@ -10119,6 +10578,7 @@ var Events = /* @__PURE__ */ (() => {
|
|
|
10119
10578
|
},
|
|
10120
10579
|
options?.headers
|
|
10121
10580
|
]),
|
|
10581
|
+
__qualifiers: { beta: "true" },
|
|
10122
10582
|
__span: startApiCallSpan(this._client, "anthropic.sessions.events.send", options, {
|
|
10123
10583
|
route: "/v1/sessions/{session_id}/events",
|
|
10124
10584
|
attributes: { "anthropic.session.id": sessionID }
|
|
@@ -10127,7 +10587,7 @@ var Events = /* @__PURE__ */ (() => {
|
|
|
10127
10587
|
}
|
|
10128
10588
|
stream(sessionID, params = {}, options) {
|
|
10129
10589
|
const { betas, workspace_id, ...query } = params ?? {};
|
|
10130
|
-
return this._client.get(path`/v1/sessions/${sessionID}/events/stream
|
|
10590
|
+
return this._client.get(path`/v1/sessions/${sessionID}/events/stream`, {
|
|
10131
10591
|
query,
|
|
10132
10592
|
...options,
|
|
10133
10593
|
headers: buildHeaders([
|
|
@@ -10138,6 +10598,7 @@ var Events = /* @__PURE__ */ (() => {
|
|
|
10138
10598
|
options?.headers
|
|
10139
10599
|
]),
|
|
10140
10600
|
stream: true,
|
|
10601
|
+
__qualifiers: { beta: "true" },
|
|
10141
10602
|
__span: startApiCallSpan(this._client, "anthropic.sessions.events.stream", options, {
|
|
10142
10603
|
route: "/v1/sessions/{session_id}/events/stream",
|
|
10143
10604
|
queryParams: ["event_deltas"],
|
|
@@ -10157,7 +10618,7 @@ var Events = /* @__PURE__ */ (() => {
|
|
|
10157
10618
|
class Resources extends APIResource {
|
|
10158
10619
|
retrieve(resourceID, params, options) {
|
|
10159
10620
|
const { session_id, betas, workspace_id } = params;
|
|
10160
|
-
return this._client.get(path`/v1/sessions/${session_id}/resources/${resourceID}
|
|
10621
|
+
return this._client.get(path`/v1/sessions/${session_id}/resources/${resourceID}`, {
|
|
10161
10622
|
...options,
|
|
10162
10623
|
headers: buildHeaders([
|
|
10163
10624
|
{
|
|
@@ -10166,6 +10627,7 @@ class Resources extends APIResource {
|
|
|
10166
10627
|
},
|
|
10167
10628
|
options?.headers
|
|
10168
10629
|
]),
|
|
10630
|
+
__qualifiers: { beta: "true" },
|
|
10169
10631
|
__span: startApiCallSpan(this._client, "anthropic.sessions.resources.retrieve", options, {
|
|
10170
10632
|
route: "/v1/sessions/{session_id}/resources/{resource_id}",
|
|
10171
10633
|
attributes: { "anthropic.session.id": session_id, "anthropic.session.resource.id": resourceID }
|
|
@@ -10174,7 +10636,7 @@ class Resources extends APIResource {
|
|
|
10174
10636
|
}
|
|
10175
10637
|
update(resourceID, params, options) {
|
|
10176
10638
|
const { session_id, betas, workspace_id, ...body } = params;
|
|
10177
|
-
return this._client.post(path`/v1/sessions/${session_id}/resources/${resourceID}
|
|
10639
|
+
return this._client.post(path`/v1/sessions/${session_id}/resources/${resourceID}`, {
|
|
10178
10640
|
body,
|
|
10179
10641
|
...options,
|
|
10180
10642
|
headers: buildHeaders([
|
|
@@ -10184,6 +10646,7 @@ class Resources extends APIResource {
|
|
|
10184
10646
|
},
|
|
10185
10647
|
options?.headers
|
|
10186
10648
|
]),
|
|
10649
|
+
__qualifiers: { beta: "true" },
|
|
10187
10650
|
__span: startApiCallSpan(this._client, "anthropic.sessions.resources.update", options, {
|
|
10188
10651
|
route: "/v1/sessions/{session_id}/resources/{resource_id}",
|
|
10189
10652
|
attributes: { "anthropic.session.id": session_id, "anthropic.session.resource.id": resourceID }
|
|
@@ -10192,7 +10655,7 @@ class Resources extends APIResource {
|
|
|
10192
10655
|
}
|
|
10193
10656
|
list(sessionID, params = {}, options) {
|
|
10194
10657
|
const { betas, workspace_id, ...query } = params ?? {};
|
|
10195
|
-
return this._client.getAPIList(path`/v1/sessions/${sessionID}/resources
|
|
10658
|
+
return this._client.getAPIList(path`/v1/sessions/${sessionID}/resources`, PageCursor, {
|
|
10196
10659
|
query,
|
|
10197
10660
|
...options,
|
|
10198
10661
|
headers: buildHeaders([
|
|
@@ -10202,6 +10665,7 @@ class Resources extends APIResource {
|
|
|
10202
10665
|
},
|
|
10203
10666
|
options?.headers
|
|
10204
10667
|
]),
|
|
10668
|
+
__qualifiers: { beta: "true" },
|
|
10205
10669
|
__span: startApiCallSpan(this._client, "anthropic.sessions.resources.list", options, {
|
|
10206
10670
|
route: "/v1/sessions/{session_id}/resources",
|
|
10207
10671
|
queryParams: ["limit", "page"],
|
|
@@ -10211,7 +10675,7 @@ class Resources extends APIResource {
|
|
|
10211
10675
|
}
|
|
10212
10676
|
delete(resourceID, params, options) {
|
|
10213
10677
|
const { session_id, betas, workspace_id } = params;
|
|
10214
|
-
return this._client.delete(path`/v1/sessions/${session_id}/resources/${resourceID}
|
|
10678
|
+
return this._client.delete(path`/v1/sessions/${session_id}/resources/${resourceID}`, {
|
|
10215
10679
|
...options,
|
|
10216
10680
|
headers: buildHeaders([
|
|
10217
10681
|
{
|
|
@@ -10220,6 +10684,7 @@ class Resources extends APIResource {
|
|
|
10220
10684
|
},
|
|
10221
10685
|
options?.headers
|
|
10222
10686
|
]),
|
|
10687
|
+
__qualifiers: { beta: "true" },
|
|
10223
10688
|
__span: startApiCallSpan(this._client, "anthropic.sessions.resources.delete", options, {
|
|
10224
10689
|
route: "/v1/sessions/{session_id}/resources/{resource_id}",
|
|
10225
10690
|
attributes: { "anthropic.session.id": session_id, "anthropic.session.resource.id": resourceID }
|
|
@@ -10228,7 +10693,7 @@ class Resources extends APIResource {
|
|
|
10228
10693
|
}
|
|
10229
10694
|
add(sessionID, params, options) {
|
|
10230
10695
|
const { betas, workspace_id, ...body } = params;
|
|
10231
|
-
return this._client.post(path`/v1/sessions/${sessionID}/resources
|
|
10696
|
+
return this._client.post(path`/v1/sessions/${sessionID}/resources`, {
|
|
10232
10697
|
body,
|
|
10233
10698
|
...options,
|
|
10234
10699
|
headers: buildHeaders([
|
|
@@ -10238,6 +10703,7 @@ class Resources extends APIResource {
|
|
|
10238
10703
|
},
|
|
10239
10704
|
options?.headers
|
|
10240
10705
|
]),
|
|
10706
|
+
__qualifiers: { beta: "true" },
|
|
10241
10707
|
__span: startApiCallSpan(this._client, "anthropic.sessions.resources.add", options, {
|
|
10242
10708
|
route: "/v1/sessions/{session_id}/resources",
|
|
10243
10709
|
attributes: { "anthropic.session.id": sessionID },
|
|
@@ -10251,7 +10717,7 @@ class Resources extends APIResource {
|
|
|
10251
10717
|
class Events2 extends APIResource {
|
|
10252
10718
|
list(threadID, params, options) {
|
|
10253
10719
|
const { session_id, betas, workspace_id, ...query } = params;
|
|
10254
|
-
return this._client.getAPIList(path`/v1/sessions/${session_id}/threads/${threadID}/events
|
|
10720
|
+
return this._client.getAPIList(path`/v1/sessions/${session_id}/threads/${threadID}/events`, PageCursor, {
|
|
10255
10721
|
query,
|
|
10256
10722
|
...options,
|
|
10257
10723
|
headers: buildHeaders([
|
|
@@ -10261,6 +10727,7 @@ class Events2 extends APIResource {
|
|
|
10261
10727
|
},
|
|
10262
10728
|
options?.headers
|
|
10263
10729
|
]),
|
|
10730
|
+
__qualifiers: { beta: "true" },
|
|
10264
10731
|
__span: startApiCallSpan(this._client, "anthropic.sessions.threads.events.list", options, {
|
|
10265
10732
|
route: "/v1/sessions/{session_id}/threads/{thread_id}/events",
|
|
10266
10733
|
queryParams: ["limit", "page"],
|
|
@@ -10270,7 +10737,7 @@ class Events2 extends APIResource {
|
|
|
10270
10737
|
}
|
|
10271
10738
|
stream(threadID, params, options) {
|
|
10272
10739
|
const { session_id, betas, workspace_id, ...query } = params;
|
|
10273
|
-
return this._client.get(path`/v1/sessions/${session_id}/threads/${threadID}/stream
|
|
10740
|
+
return this._client.get(path`/v1/sessions/${session_id}/threads/${threadID}/stream`, {
|
|
10274
10741
|
query,
|
|
10275
10742
|
...options,
|
|
10276
10743
|
headers: buildHeaders([
|
|
@@ -10281,6 +10748,7 @@ class Events2 extends APIResource {
|
|
|
10281
10748
|
options?.headers
|
|
10282
10749
|
]),
|
|
10283
10750
|
stream: true,
|
|
10751
|
+
__qualifiers: { beta: "true" },
|
|
10284
10752
|
__span: startApiCallSpan(this._client, "anthropic.sessions.threads.events.stream", options, {
|
|
10285
10753
|
route: "/v1/sessions/{session_id}/threads/{thread_id}/stream",
|
|
10286
10754
|
queryParams: ["event_deltas"],
|
|
@@ -10299,7 +10767,7 @@ var Threads = /* @__PURE__ */ (() => {
|
|
|
10299
10767
|
}
|
|
10300
10768
|
retrieve(threadID, params, options) {
|
|
10301
10769
|
const { session_id, betas, workspace_id } = params;
|
|
10302
|
-
return this._client.get(path`/v1/sessions/${session_id}/threads/${threadID}
|
|
10770
|
+
return this._client.get(path`/v1/sessions/${session_id}/threads/${threadID}`, {
|
|
10303
10771
|
...options,
|
|
10304
10772
|
headers: buildHeaders([
|
|
10305
10773
|
{
|
|
@@ -10308,6 +10776,7 @@ var Threads = /* @__PURE__ */ (() => {
|
|
|
10308
10776
|
},
|
|
10309
10777
|
options?.headers
|
|
10310
10778
|
]),
|
|
10779
|
+
__qualifiers: { beta: "true" },
|
|
10311
10780
|
__span: startApiCallSpan(this._client, "anthropic.sessions.threads.retrieve", options, {
|
|
10312
10781
|
route: "/v1/sessions/{session_id}/threads/{thread_id}",
|
|
10313
10782
|
attributes: { "anthropic.session.id": session_id, "anthropic.session.thread.id": threadID }
|
|
@@ -10316,7 +10785,7 @@ var Threads = /* @__PURE__ */ (() => {
|
|
|
10316
10785
|
}
|
|
10317
10786
|
list(sessionID, params = {}, options) {
|
|
10318
10787
|
const { betas, workspace_id, ...query } = params ?? {};
|
|
10319
|
-
return this._client.getAPIList(path`/v1/sessions/${sessionID}/threads
|
|
10788
|
+
return this._client.getAPIList(path`/v1/sessions/${sessionID}/threads`, PageCursor, {
|
|
10320
10789
|
query,
|
|
10321
10790
|
...options,
|
|
10322
10791
|
headers: buildHeaders([
|
|
@@ -10326,6 +10795,7 @@ var Threads = /* @__PURE__ */ (() => {
|
|
|
10326
10795
|
},
|
|
10327
10796
|
options?.headers
|
|
10328
10797
|
]),
|
|
10798
|
+
__qualifiers: { beta: "true" },
|
|
10329
10799
|
__span: startApiCallSpan(this._client, "anthropic.sessions.threads.list", options, {
|
|
10330
10800
|
route: "/v1/sessions/{session_id}/threads",
|
|
10331
10801
|
queryParams: ["limit", "page", "statuses"],
|
|
@@ -10335,7 +10805,7 @@ var Threads = /* @__PURE__ */ (() => {
|
|
|
10335
10805
|
}
|
|
10336
10806
|
archive(threadID, params, options) {
|
|
10337
10807
|
const { session_id, betas, workspace_id } = params;
|
|
10338
|
-
return this._client.post(path`/v1/sessions/${session_id}/threads/${threadID}/archive
|
|
10808
|
+
return this._client.post(path`/v1/sessions/${session_id}/threads/${threadID}/archive`, {
|
|
10339
10809
|
...options,
|
|
10340
10810
|
headers: buildHeaders([
|
|
10341
10811
|
{
|
|
@@ -10344,6 +10814,7 @@ var Threads = /* @__PURE__ */ (() => {
|
|
|
10344
10814
|
},
|
|
10345
10815
|
options?.headers
|
|
10346
10816
|
]),
|
|
10817
|
+
__qualifiers: { beta: "true" },
|
|
10347
10818
|
__span: startApiCallSpan(this._client, "anthropic.sessions.threads.archive", options, {
|
|
10348
10819
|
route: "/v1/sessions/{session_id}/threads/{thread_id}/archive",
|
|
10349
10820
|
attributes: { "anthropic.session.id": session_id, "anthropic.session.thread.id": threadID }
|
|
@@ -10381,10 +10852,11 @@ var Sessions = /* @__PURE__ */ (() => {
|
|
|
10381
10852
|
},
|
|
10382
10853
|
createdIDAttribute: "anthropic.session.id"
|
|
10383
10854
|
});
|
|
10384
|
-
const request = this._client.post("/v1/sessions
|
|
10855
|
+
const request = this._client.post("/v1/sessions", {
|
|
10385
10856
|
body,
|
|
10386
10857
|
...options,
|
|
10387
10858
|
headers,
|
|
10859
|
+
__qualifiers: { beta: "true" },
|
|
10388
10860
|
__span: call
|
|
10389
10861
|
});
|
|
10390
10862
|
return call ? request._thenUnwrap((session) => {
|
|
@@ -10394,7 +10866,7 @@ var Sessions = /* @__PURE__ */ (() => {
|
|
|
10394
10866
|
}
|
|
10395
10867
|
retrieve(sessionID, params = {}, options) {
|
|
10396
10868
|
const { betas, workspace_id } = params ?? {};
|
|
10397
|
-
return this._client.get(path`/v1/sessions/${sessionID}
|
|
10869
|
+
return this._client.get(path`/v1/sessions/${sessionID}`, {
|
|
10398
10870
|
...options,
|
|
10399
10871
|
headers: buildHeaders([
|
|
10400
10872
|
{
|
|
@@ -10403,6 +10875,7 @@ var Sessions = /* @__PURE__ */ (() => {
|
|
|
10403
10875
|
},
|
|
10404
10876
|
options?.headers
|
|
10405
10877
|
]),
|
|
10878
|
+
__qualifiers: { beta: "true" },
|
|
10406
10879
|
__span: startApiCallSpan(this._client, "anthropic.sessions.retrieve", options, {
|
|
10407
10880
|
route: "/v1/sessions/{session_id}",
|
|
10408
10881
|
attributes: { "anthropic.session.id": sessionID }
|
|
@@ -10411,7 +10884,7 @@ var Sessions = /* @__PURE__ */ (() => {
|
|
|
10411
10884
|
}
|
|
10412
10885
|
update(sessionID, params, options) {
|
|
10413
10886
|
const { betas, workspace_id, ...body } = params;
|
|
10414
|
-
return this._client.post(path`/v1/sessions/${sessionID}
|
|
10887
|
+
return this._client.post(path`/v1/sessions/${sessionID}`, {
|
|
10415
10888
|
body,
|
|
10416
10889
|
...options,
|
|
10417
10890
|
headers: buildHeaders([
|
|
@@ -10421,6 +10894,7 @@ var Sessions = /* @__PURE__ */ (() => {
|
|
|
10421
10894
|
},
|
|
10422
10895
|
options?.headers
|
|
10423
10896
|
]),
|
|
10897
|
+
__qualifiers: { beta: "true" },
|
|
10424
10898
|
__span: startApiCallSpan(this._client, "anthropic.sessions.update", options, {
|
|
10425
10899
|
route: "/v1/sessions/{session_id}",
|
|
10426
10900
|
attributes: { "anthropic.session.id": sessionID }
|
|
@@ -10429,7 +10903,7 @@ var Sessions = /* @__PURE__ */ (() => {
|
|
|
10429
10903
|
}
|
|
10430
10904
|
list(params = {}, options) {
|
|
10431
10905
|
const { betas, workspace_id, ...query } = params ?? {};
|
|
10432
|
-
return this._client.getAPIList("/v1/sessions
|
|
10906
|
+
return this._client.getAPIList("/v1/sessions", BidirectionalPageCursor, {
|
|
10433
10907
|
query,
|
|
10434
10908
|
...options,
|
|
10435
10909
|
headers: buildHeaders([
|
|
@@ -10439,6 +10913,7 @@ var Sessions = /* @__PURE__ */ (() => {
|
|
|
10439
10913
|
},
|
|
10440
10914
|
options?.headers
|
|
10441
10915
|
]),
|
|
10916
|
+
__qualifiers: { beta: "true" },
|
|
10442
10917
|
__span: startApiCallSpan(this._client, "anthropic.sessions.list", options, {
|
|
10443
10918
|
route: "/v1/sessions",
|
|
10444
10919
|
queryParams: [
|
|
@@ -10461,7 +10936,7 @@ var Sessions = /* @__PURE__ */ (() => {
|
|
|
10461
10936
|
}
|
|
10462
10937
|
delete(sessionID, params = {}, options) {
|
|
10463
10938
|
const { betas, workspace_id } = params ?? {};
|
|
10464
|
-
return this._client.delete(path`/v1/sessions/${sessionID}
|
|
10939
|
+
return this._client.delete(path`/v1/sessions/${sessionID}`, {
|
|
10465
10940
|
...options,
|
|
10466
10941
|
headers: buildHeaders([
|
|
10467
10942
|
{
|
|
@@ -10470,6 +10945,7 @@ var Sessions = /* @__PURE__ */ (() => {
|
|
|
10470
10945
|
},
|
|
10471
10946
|
options?.headers
|
|
10472
10947
|
]),
|
|
10948
|
+
__qualifiers: { beta: "true" },
|
|
10473
10949
|
__span: startApiCallSpan(this._client, "anthropic.sessions.delete", options, {
|
|
10474
10950
|
route: "/v1/sessions/{session_id}",
|
|
10475
10951
|
attributes: { "anthropic.session.id": sessionID }
|
|
@@ -10478,7 +10954,7 @@ var Sessions = /* @__PURE__ */ (() => {
|
|
|
10478
10954
|
}
|
|
10479
10955
|
archive(sessionID, params = {}, options) {
|
|
10480
10956
|
const { betas, workspace_id } = params ?? {};
|
|
10481
|
-
return this._client.post(path`/v1/sessions/${sessionID}/archive
|
|
10957
|
+
return this._client.post(path`/v1/sessions/${sessionID}/archive`, {
|
|
10482
10958
|
...options,
|
|
10483
10959
|
headers: buildHeaders([
|
|
10484
10960
|
{
|
|
@@ -10487,6 +10963,7 @@ var Sessions = /* @__PURE__ */ (() => {
|
|
|
10487
10963
|
},
|
|
10488
10964
|
options?.headers
|
|
10489
10965
|
]),
|
|
10966
|
+
__qualifiers: { beta: "true" },
|
|
10490
10967
|
__span: startApiCallSpan(this._client, "anthropic.sessions.archive", options, {
|
|
10491
10968
|
route: "/v1/sessions/{session_id}/archive",
|
|
10492
10969
|
attributes: { "anthropic.session.id": sessionID }
|
|
@@ -10504,7 +10981,7 @@ var Sessions = /* @__PURE__ */ (() => {
|
|
|
10504
10981
|
class Versions3 extends APIResource {
|
|
10505
10982
|
create(skillID, params, options) {
|
|
10506
10983
|
const { betas, workspace_id, ...body } = params;
|
|
10507
|
-
return this._client.post(path`/v1/skills/${skillID}/versions
|
|
10984
|
+
return this._client.post(path`/v1/skills/${skillID}/versions`, multipartFormRequestOptions({
|
|
10508
10985
|
body,
|
|
10509
10986
|
...options,
|
|
10510
10987
|
headers: buildHeaders([
|
|
@@ -10514,6 +10991,7 @@ class Versions3 extends APIResource {
|
|
|
10514
10991
|
},
|
|
10515
10992
|
options?.headers
|
|
10516
10993
|
]),
|
|
10994
|
+
__qualifiers: { beta: "true" },
|
|
10517
10995
|
__span: startApiCallSpan(this._client, "anthropic.skills.versions.create", options, {
|
|
10518
10996
|
route: "/v1/skills/{skill_id}/versions",
|
|
10519
10997
|
attributes: { "anthropic.skill.id": skillID },
|
|
@@ -10523,7 +11001,7 @@ class Versions3 extends APIResource {
|
|
|
10523
11001
|
}
|
|
10524
11002
|
retrieve(version, params, options) {
|
|
10525
11003
|
const { skill_id, betas, workspace_id } = params;
|
|
10526
|
-
return this._client.get(path`/v1/skills/${skill_id}/versions/${version}
|
|
11004
|
+
return this._client.get(path`/v1/skills/${skill_id}/versions/${version}`, {
|
|
10527
11005
|
...options,
|
|
10528
11006
|
headers: buildHeaders([
|
|
10529
11007
|
{
|
|
@@ -10532,6 +11010,7 @@ class Versions3 extends APIResource {
|
|
|
10532
11010
|
},
|
|
10533
11011
|
options?.headers
|
|
10534
11012
|
]),
|
|
11013
|
+
__qualifiers: { beta: "true" },
|
|
10535
11014
|
__span: startApiCallSpan(this._client, "anthropic.skills.versions.retrieve", options, {
|
|
10536
11015
|
route: "/v1/skills/{skill_id}/versions/{version}",
|
|
10537
11016
|
attributes: { "anthropic.skill.id": skill_id, "anthropic.skill.version.id": version }
|
|
@@ -10540,7 +11019,7 @@ class Versions3 extends APIResource {
|
|
|
10540
11019
|
}
|
|
10541
11020
|
list(skillID, params = {}, options) {
|
|
10542
11021
|
const { betas, workspace_id, ...query } = params ?? {};
|
|
10543
|
-
return this._client.getAPIList(path`/v1/skills/${skillID}/versions
|
|
11022
|
+
return this._client.getAPIList(path`/v1/skills/${skillID}/versions`, PageCursor, {
|
|
10544
11023
|
query,
|
|
10545
11024
|
...options,
|
|
10546
11025
|
headers: buildHeaders([
|
|
@@ -10550,6 +11029,7 @@ class Versions3 extends APIResource {
|
|
|
10550
11029
|
},
|
|
10551
11030
|
options?.headers
|
|
10552
11031
|
]),
|
|
11032
|
+
__qualifiers: { beta: "true" },
|
|
10553
11033
|
__span: startApiCallSpan(this._client, "anthropic.skills.versions.list", options, {
|
|
10554
11034
|
route: "/v1/skills/{skill_id}/versions",
|
|
10555
11035
|
queryParams: ["limit", "page"],
|
|
@@ -10559,7 +11039,7 @@ class Versions3 extends APIResource {
|
|
|
10559
11039
|
}
|
|
10560
11040
|
delete(version, params, options) {
|
|
10561
11041
|
const { skill_id, betas, workspace_id } = params;
|
|
10562
|
-
return this._client.delete(path`/v1/skills/${skill_id}/versions/${version}
|
|
11042
|
+
return this._client.delete(path`/v1/skills/${skill_id}/versions/${version}`, {
|
|
10563
11043
|
...options,
|
|
10564
11044
|
headers: buildHeaders([
|
|
10565
11045
|
{
|
|
@@ -10568,6 +11048,7 @@ class Versions3 extends APIResource {
|
|
|
10568
11048
|
},
|
|
10569
11049
|
options?.headers
|
|
10570
11050
|
]),
|
|
11051
|
+
__qualifiers: { beta: "true" },
|
|
10571
11052
|
__span: startApiCallSpan(this._client, "anthropic.skills.versions.delete", options, {
|
|
10572
11053
|
route: "/v1/skills/{skill_id}/versions/{version}",
|
|
10573
11054
|
attributes: { "anthropic.skill.id": skill_id, "anthropic.skill.version.id": version }
|
|
@@ -10576,7 +11057,7 @@ class Versions3 extends APIResource {
|
|
|
10576
11057
|
}
|
|
10577
11058
|
download(version, params, options) {
|
|
10578
11059
|
const { skill_id, betas, workspace_id } = params;
|
|
10579
|
-
return this._client.get(path`/v1/skills/${skill_id}/versions/${version}/content
|
|
11060
|
+
return this._client.get(path`/v1/skills/${skill_id}/versions/${version}/content`, {
|
|
10580
11061
|
...options,
|
|
10581
11062
|
headers: buildHeaders([
|
|
10582
11063
|
{
|
|
@@ -10586,6 +11067,7 @@ class Versions3 extends APIResource {
|
|
|
10586
11067
|
},
|
|
10587
11068
|
options?.headers
|
|
10588
11069
|
]),
|
|
11070
|
+
__qualifiers: { beta: "true" },
|
|
10589
11071
|
__binaryResponse: true,
|
|
10590
11072
|
__span: startApiCallSpan(this._client, "anthropic.skills.versions.download", options, {
|
|
10591
11073
|
route: "/v1/skills/{skill_id}/versions/{version}/content",
|
|
@@ -10604,7 +11086,7 @@ var Skills2 = /* @__PURE__ */ (() => {
|
|
|
10604
11086
|
}
|
|
10605
11087
|
create(params, options) {
|
|
10606
11088
|
const { betas, workspace_id, ...body } = params;
|
|
10607
|
-
return this._client.post("/v1/skills
|
|
11089
|
+
return this._client.post("/v1/skills", multipartFormRequestOptions({
|
|
10608
11090
|
body,
|
|
10609
11091
|
...options,
|
|
10610
11092
|
headers: buildHeaders([
|
|
@@ -10614,6 +11096,7 @@ var Skills2 = /* @__PURE__ */ (() => {
|
|
|
10614
11096
|
},
|
|
10615
11097
|
options?.headers
|
|
10616
11098
|
]),
|
|
11099
|
+
__qualifiers: { beta: "true" },
|
|
10617
11100
|
__span: startApiCallSpan(this._client, "anthropic.skills.create", options, {
|
|
10618
11101
|
route: "/v1/skills",
|
|
10619
11102
|
createdIDAttribute: "anthropic.skill.id"
|
|
@@ -10622,7 +11105,7 @@ var Skills2 = /* @__PURE__ */ (() => {
|
|
|
10622
11105
|
}
|
|
10623
11106
|
retrieve(skillID, params = {}, options) {
|
|
10624
11107
|
const { betas, workspace_id } = params ?? {};
|
|
10625
|
-
return this._client.get(path`/v1/skills/${skillID}
|
|
11108
|
+
return this._client.get(path`/v1/skills/${skillID}`, {
|
|
10626
11109
|
...options,
|
|
10627
11110
|
headers: buildHeaders([
|
|
10628
11111
|
{
|
|
@@ -10631,6 +11114,7 @@ var Skills2 = /* @__PURE__ */ (() => {
|
|
|
10631
11114
|
},
|
|
10632
11115
|
options?.headers
|
|
10633
11116
|
]),
|
|
11117
|
+
__qualifiers: { beta: "true" },
|
|
10634
11118
|
__span: startApiCallSpan(this._client, "anthropic.skills.retrieve", options, {
|
|
10635
11119
|
route: "/v1/skills/{skill_id}",
|
|
10636
11120
|
attributes: { "anthropic.skill.id": skillID }
|
|
@@ -10639,7 +11123,7 @@ var Skills2 = /* @__PURE__ */ (() => {
|
|
|
10639
11123
|
}
|
|
10640
11124
|
list(params = {}, options) {
|
|
10641
11125
|
const { betas, workspace_id, ...query } = params ?? {};
|
|
10642
|
-
return this._client.getAPIList("/v1/skills
|
|
11126
|
+
return this._client.getAPIList("/v1/skills", PageCursor, {
|
|
10643
11127
|
query,
|
|
10644
11128
|
...options,
|
|
10645
11129
|
headers: buildHeaders([
|
|
@@ -10649,6 +11133,7 @@ var Skills2 = /* @__PURE__ */ (() => {
|
|
|
10649
11133
|
},
|
|
10650
11134
|
options?.headers
|
|
10651
11135
|
]),
|
|
11136
|
+
__qualifiers: { beta: "true" },
|
|
10652
11137
|
__span: startApiCallSpan(this._client, "anthropic.skills.list", options, {
|
|
10653
11138
|
route: "/v1/skills",
|
|
10654
11139
|
queryParams: ["limit", "page", "source"]
|
|
@@ -10657,7 +11142,7 @@ var Skills2 = /* @__PURE__ */ (() => {
|
|
|
10657
11142
|
}
|
|
10658
11143
|
delete(skillID, params = {}, options) {
|
|
10659
11144
|
const { betas, workspace_id } = params ?? {};
|
|
10660
|
-
return this._client.delete(path`/v1/skills/${skillID}
|
|
11145
|
+
return this._client.delete(path`/v1/skills/${skillID}`, {
|
|
10661
11146
|
...options,
|
|
10662
11147
|
headers: buildHeaders([
|
|
10663
11148
|
{
|
|
@@ -10666,6 +11151,7 @@ var Skills2 = /* @__PURE__ */ (() => {
|
|
|
10666
11151
|
},
|
|
10667
11152
|
options?.headers
|
|
10668
11153
|
]),
|
|
11154
|
+
__qualifiers: { beta: "true" },
|
|
10669
11155
|
__span: startApiCallSpan(this._client, "anthropic.skills.delete", options, {
|
|
10670
11156
|
route: "/v1/skills/{skill_id}",
|
|
10671
11157
|
attributes: { "anthropic.skill.id": skillID }
|
|
@@ -10681,7 +11167,7 @@ var Skills2 = /* @__PURE__ */ (() => {
|
|
|
10681
11167
|
class Certificates extends APIResource {
|
|
10682
11168
|
create(tunnelID, params, options) {
|
|
10683
11169
|
const { betas, workspace_id, ...body } = params;
|
|
10684
|
-
return this._client.post(path`/v1/tunnels/${tunnelID}/certificates
|
|
11170
|
+
return this._client.post(path`/v1/tunnels/${tunnelID}/certificates`, {
|
|
10685
11171
|
body,
|
|
10686
11172
|
...options,
|
|
10687
11173
|
headers: buildHeaders([
|
|
@@ -10691,6 +11177,7 @@ class Certificates extends APIResource {
|
|
|
10691
11177
|
},
|
|
10692
11178
|
options?.headers
|
|
10693
11179
|
]),
|
|
11180
|
+
__qualifiers: { beta: "true" },
|
|
10694
11181
|
__span: startApiCallSpan(this._client, "anthropic.tunnels.certificates.create", options, {
|
|
10695
11182
|
route: "/v1/tunnels/{tunnel_id}/certificates",
|
|
10696
11183
|
attributes: { "anthropic.tunnel.id": tunnelID },
|
|
@@ -10700,7 +11187,7 @@ class Certificates extends APIResource {
|
|
|
10700
11187
|
}
|
|
10701
11188
|
retrieve(certificateID, params, options) {
|
|
10702
11189
|
const { tunnel_id, betas, workspace_id } = params;
|
|
10703
|
-
return this._client.get(path`/v1/tunnels/${tunnel_id}/certificates/${certificateID}
|
|
11190
|
+
return this._client.get(path`/v1/tunnels/${tunnel_id}/certificates/${certificateID}`, {
|
|
10704
11191
|
...options,
|
|
10705
11192
|
headers: buildHeaders([
|
|
10706
11193
|
{
|
|
@@ -10709,6 +11196,7 @@ class Certificates extends APIResource {
|
|
|
10709
11196
|
},
|
|
10710
11197
|
options?.headers
|
|
10711
11198
|
]),
|
|
11199
|
+
__qualifiers: { beta: "true" },
|
|
10712
11200
|
__span: startApiCallSpan(this._client, "anthropic.tunnels.certificates.retrieve", options, {
|
|
10713
11201
|
route: "/v1/tunnels/{tunnel_id}/certificates/{certificate_id}",
|
|
10714
11202
|
attributes: { "anthropic.tunnel.id": tunnel_id, "anthropic.tunnel.certificate.id": certificateID }
|
|
@@ -10717,7 +11205,7 @@ class Certificates extends APIResource {
|
|
|
10717
11205
|
}
|
|
10718
11206
|
list(tunnelID, params = {}, options) {
|
|
10719
11207
|
const { betas, workspace_id, ...query } = params ?? {};
|
|
10720
|
-
return this._client.getAPIList(path`/v1/tunnels/${tunnelID}/certificates
|
|
11208
|
+
return this._client.getAPIList(path`/v1/tunnels/${tunnelID}/certificates`, PageCursor, {
|
|
10721
11209
|
query,
|
|
10722
11210
|
...options,
|
|
10723
11211
|
headers: buildHeaders([
|
|
@@ -10727,6 +11215,7 @@ class Certificates extends APIResource {
|
|
|
10727
11215
|
},
|
|
10728
11216
|
options?.headers
|
|
10729
11217
|
]),
|
|
11218
|
+
__qualifiers: { beta: "true" },
|
|
10730
11219
|
__span: startApiCallSpan(this._client, "anthropic.tunnels.certificates.list", options, {
|
|
10731
11220
|
route: "/v1/tunnels/{tunnel_id}/certificates",
|
|
10732
11221
|
queryParams: ["include_archived", "limit", "page"],
|
|
@@ -10736,7 +11225,7 @@ class Certificates extends APIResource {
|
|
|
10736
11225
|
}
|
|
10737
11226
|
archive(certificateID, params, options) {
|
|
10738
11227
|
const { tunnel_id, betas, workspace_id } = params;
|
|
10739
|
-
return this._client.post(path`/v1/tunnels/${tunnel_id}/certificates/${certificateID}/archive
|
|
11228
|
+
return this._client.post(path`/v1/tunnels/${tunnel_id}/certificates/${certificateID}/archive`, {
|
|
10740
11229
|
...options,
|
|
10741
11230
|
headers: buildHeaders([
|
|
10742
11231
|
{
|
|
@@ -10745,6 +11234,7 @@ class Certificates extends APIResource {
|
|
|
10745
11234
|
},
|
|
10746
11235
|
options?.headers
|
|
10747
11236
|
]),
|
|
11237
|
+
__qualifiers: { beta: "true" },
|
|
10748
11238
|
__span: startApiCallSpan(this._client, "anthropic.tunnels.certificates.archive", options, {
|
|
10749
11239
|
route: "/v1/tunnels/{tunnel_id}/certificates/{certificate_id}/archive",
|
|
10750
11240
|
attributes: { "anthropic.tunnel.id": tunnel_id, "anthropic.tunnel.certificate.id": certificateID }
|
|
@@ -10762,7 +11252,7 @@ var Tunnels = /* @__PURE__ */ (() => {
|
|
|
10762
11252
|
}
|
|
10763
11253
|
create(params, options) {
|
|
10764
11254
|
const { betas, workspace_id, ...body } = params;
|
|
10765
|
-
return this._client.post("/v1/tunnels
|
|
11255
|
+
return this._client.post("/v1/tunnels", {
|
|
10766
11256
|
body,
|
|
10767
11257
|
...options,
|
|
10768
11258
|
headers: buildHeaders([
|
|
@@ -10772,6 +11262,7 @@ var Tunnels = /* @__PURE__ */ (() => {
|
|
|
10772
11262
|
},
|
|
10773
11263
|
options?.headers
|
|
10774
11264
|
]),
|
|
11265
|
+
__qualifiers: { beta: "true" },
|
|
10775
11266
|
__span: startApiCallSpan(this._client, "anthropic.tunnels.create", options, {
|
|
10776
11267
|
route: "/v1/tunnels",
|
|
10777
11268
|
createdIDAttribute: "anthropic.tunnel.id"
|
|
@@ -10780,7 +11271,7 @@ var Tunnels = /* @__PURE__ */ (() => {
|
|
|
10780
11271
|
}
|
|
10781
11272
|
retrieve(tunnelID, params = {}, options) {
|
|
10782
11273
|
const { betas, workspace_id } = params ?? {};
|
|
10783
|
-
return this._client.get(path`/v1/tunnels/${tunnelID}
|
|
11274
|
+
return this._client.get(path`/v1/tunnels/${tunnelID}`, {
|
|
10784
11275
|
...options,
|
|
10785
11276
|
headers: buildHeaders([
|
|
10786
11277
|
{
|
|
@@ -10789,6 +11280,7 @@ var Tunnels = /* @__PURE__ */ (() => {
|
|
|
10789
11280
|
},
|
|
10790
11281
|
options?.headers
|
|
10791
11282
|
]),
|
|
11283
|
+
__qualifiers: { beta: "true" },
|
|
10792
11284
|
__span: startApiCallSpan(this._client, "anthropic.tunnels.retrieve", options, {
|
|
10793
11285
|
route: "/v1/tunnels/{tunnel_id}",
|
|
10794
11286
|
attributes: { "anthropic.tunnel.id": tunnelID }
|
|
@@ -10797,7 +11289,7 @@ var Tunnels = /* @__PURE__ */ (() => {
|
|
|
10797
11289
|
}
|
|
10798
11290
|
list(params = {}, options) {
|
|
10799
11291
|
const { betas, workspace_id, ...query } = params ?? {};
|
|
10800
|
-
return this._client.getAPIList("/v1/tunnels
|
|
11292
|
+
return this._client.getAPIList("/v1/tunnels", PageCursor, {
|
|
10801
11293
|
query,
|
|
10802
11294
|
...options,
|
|
10803
11295
|
headers: buildHeaders([
|
|
@@ -10807,6 +11299,7 @@ var Tunnels = /* @__PURE__ */ (() => {
|
|
|
10807
11299
|
},
|
|
10808
11300
|
options?.headers
|
|
10809
11301
|
]),
|
|
11302
|
+
__qualifiers: { beta: "true" },
|
|
10810
11303
|
__span: startApiCallSpan(this._client, "anthropic.tunnels.list", options, {
|
|
10811
11304
|
route: "/v1/tunnels",
|
|
10812
11305
|
queryParams: ["include_archived", "limit", "page"]
|
|
@@ -10815,7 +11308,7 @@ var Tunnels = /* @__PURE__ */ (() => {
|
|
|
10815
11308
|
}
|
|
10816
11309
|
archive(tunnelID, params = {}, options) {
|
|
10817
11310
|
const { betas, workspace_id } = params ?? {};
|
|
10818
|
-
return this._client.post(path`/v1/tunnels/${tunnelID}/archive
|
|
11311
|
+
return this._client.post(path`/v1/tunnels/${tunnelID}/archive`, {
|
|
10819
11312
|
...options,
|
|
10820
11313
|
headers: buildHeaders([
|
|
10821
11314
|
{
|
|
@@ -10824,6 +11317,7 @@ var Tunnels = /* @__PURE__ */ (() => {
|
|
|
10824
11317
|
},
|
|
10825
11318
|
options?.headers
|
|
10826
11319
|
]),
|
|
11320
|
+
__qualifiers: { beta: "true" },
|
|
10827
11321
|
__span: startApiCallSpan(this._client, "anthropic.tunnels.archive", options, {
|
|
10828
11322
|
route: "/v1/tunnels/{tunnel_id}/archive",
|
|
10829
11323
|
attributes: { "anthropic.tunnel.id": tunnelID }
|
|
@@ -10832,7 +11326,7 @@ var Tunnels = /* @__PURE__ */ (() => {
|
|
|
10832
11326
|
}
|
|
10833
11327
|
revealToken(tunnelID, params = {}, options) {
|
|
10834
11328
|
const { betas, workspace_id } = params ?? {};
|
|
10835
|
-
return this._client.post(path`/v1/tunnels/${tunnelID}/reveal_token
|
|
11329
|
+
return this._client.post(path`/v1/tunnels/${tunnelID}/reveal_token`, {
|
|
10836
11330
|
...options,
|
|
10837
11331
|
headers: buildHeaders([
|
|
10838
11332
|
{
|
|
@@ -10841,6 +11335,7 @@ var Tunnels = /* @__PURE__ */ (() => {
|
|
|
10841
11335
|
},
|
|
10842
11336
|
options?.headers
|
|
10843
11337
|
]),
|
|
11338
|
+
__qualifiers: { beta: "true" },
|
|
10844
11339
|
__span: startApiCallSpan(this._client, "anthropic.tunnels.reveal_token", options, {
|
|
10845
11340
|
route: "/v1/tunnels/{tunnel_id}/reveal_token",
|
|
10846
11341
|
attributes: { "anthropic.tunnel.id": tunnelID }
|
|
@@ -10849,7 +11344,7 @@ var Tunnels = /* @__PURE__ */ (() => {
|
|
|
10849
11344
|
}
|
|
10850
11345
|
rotateToken(tunnelID, params, options) {
|
|
10851
11346
|
const { betas, workspace_id, ...body } = params;
|
|
10852
|
-
return this._client.post(path`/v1/tunnels/${tunnelID}/rotate_token
|
|
11347
|
+
return this._client.post(path`/v1/tunnels/${tunnelID}/rotate_token`, {
|
|
10853
11348
|
body,
|
|
10854
11349
|
...options,
|
|
10855
11350
|
headers: buildHeaders([
|
|
@@ -10859,6 +11354,7 @@ var Tunnels = /* @__PURE__ */ (() => {
|
|
|
10859
11354
|
},
|
|
10860
11355
|
options?.headers
|
|
10861
11356
|
]),
|
|
11357
|
+
__qualifiers: { beta: "true" },
|
|
10862
11358
|
__span: startApiCallSpan(this._client, "anthropic.tunnels.rotate_token", options, {
|
|
10863
11359
|
route: "/v1/tunnels/{tunnel_id}/rotate_token",
|
|
10864
11360
|
attributes: { "anthropic.tunnel.id": tunnelID }
|
|
@@ -10874,7 +11370,7 @@ var Tunnels = /* @__PURE__ */ (() => {
|
|
|
10874
11370
|
class ActionURLs extends APIResource {
|
|
10875
11371
|
create(userProfileID, params, options) {
|
|
10876
11372
|
const { betas, workspace_id, ...body } = params;
|
|
10877
|
-
return this._client.post(path`/v1/user_profiles/${userProfileID}/action_urls
|
|
11373
|
+
return this._client.post(path`/v1/user_profiles/${userProfileID}/action_urls`, {
|
|
10878
11374
|
body,
|
|
10879
11375
|
...options,
|
|
10880
11376
|
headers: buildHeaders([
|
|
@@ -10884,6 +11380,7 @@ class ActionURLs extends APIResource {
|
|
|
10884
11380
|
},
|
|
10885
11381
|
options?.headers
|
|
10886
11382
|
]),
|
|
11383
|
+
__qualifiers: { beta: "true" },
|
|
10887
11384
|
__span: startApiCallSpan(this._client, "anthropic.user_profiles.action_urls.create", options, {
|
|
10888
11385
|
route: "/v1/user_profiles/{user_profile_id}/action_urls",
|
|
10889
11386
|
attributes: { "anthropic.user_profile.id": userProfileID }
|
|
@@ -10901,7 +11398,7 @@ var UserProfiles = /* @__PURE__ */ (() => {
|
|
|
10901
11398
|
}
|
|
10902
11399
|
create(params, options) {
|
|
10903
11400
|
const { betas, workspace_id, ...body } = params;
|
|
10904
|
-
return this._client.post("/v1/user_profiles
|
|
11401
|
+
return this._client.post("/v1/user_profiles", {
|
|
10905
11402
|
body,
|
|
10906
11403
|
...options,
|
|
10907
11404
|
headers: buildHeaders([
|
|
@@ -10911,6 +11408,7 @@ var UserProfiles = /* @__PURE__ */ (() => {
|
|
|
10911
11408
|
},
|
|
10912
11409
|
options?.headers
|
|
10913
11410
|
]),
|
|
11411
|
+
__qualifiers: { beta: "true" },
|
|
10914
11412
|
__span: startApiCallSpan(this._client, "anthropic.user_profiles.create", options, {
|
|
10915
11413
|
route: "/v1/user_profiles",
|
|
10916
11414
|
createdIDAttribute: "anthropic.user_profile.id"
|
|
@@ -10919,7 +11417,7 @@ var UserProfiles = /* @__PURE__ */ (() => {
|
|
|
10919
11417
|
}
|
|
10920
11418
|
retrieve(userProfileID, params = {}, options) {
|
|
10921
11419
|
const { betas, workspace_id } = params ?? {};
|
|
10922
|
-
return this._client.get(path`/v1/user_profiles/${userProfileID}
|
|
11420
|
+
return this._client.get(path`/v1/user_profiles/${userProfileID}`, {
|
|
10923
11421
|
...options,
|
|
10924
11422
|
headers: buildHeaders([
|
|
10925
11423
|
{
|
|
@@ -10928,6 +11426,7 @@ var UserProfiles = /* @__PURE__ */ (() => {
|
|
|
10928
11426
|
},
|
|
10929
11427
|
options?.headers
|
|
10930
11428
|
]),
|
|
11429
|
+
__qualifiers: { beta: "true" },
|
|
10931
11430
|
__span: startApiCallSpan(this._client, "anthropic.user_profiles.retrieve", options, {
|
|
10932
11431
|
route: "/v1/user_profiles/{user_profile_id}",
|
|
10933
11432
|
attributes: { "anthropic.user_profile.id": userProfileID }
|
|
@@ -10936,7 +11435,7 @@ var UserProfiles = /* @__PURE__ */ (() => {
|
|
|
10936
11435
|
}
|
|
10937
11436
|
update(userProfileID, params, options) {
|
|
10938
11437
|
const { betas, workspace_id, ...body } = params;
|
|
10939
|
-
return this._client.post(path`/v1/user_profiles/${userProfileID}
|
|
11438
|
+
return this._client.post(path`/v1/user_profiles/${userProfileID}`, {
|
|
10940
11439
|
body,
|
|
10941
11440
|
...options,
|
|
10942
11441
|
headers: buildHeaders([
|
|
@@ -10946,6 +11445,7 @@ var UserProfiles = /* @__PURE__ */ (() => {
|
|
|
10946
11445
|
},
|
|
10947
11446
|
options?.headers
|
|
10948
11447
|
]),
|
|
11448
|
+
__qualifiers: { beta: "true" },
|
|
10949
11449
|
__span: startApiCallSpan(this._client, "anthropic.user_profiles.update", options, {
|
|
10950
11450
|
route: "/v1/user_profiles/{user_profile_id}",
|
|
10951
11451
|
attributes: { "anthropic.user_profile.id": userProfileID }
|
|
@@ -10954,7 +11454,7 @@ var UserProfiles = /* @__PURE__ */ (() => {
|
|
|
10954
11454
|
}
|
|
10955
11455
|
list(params = {}, options) {
|
|
10956
11456
|
const { betas, workspace_id, ...query } = params ?? {};
|
|
10957
|
-
return this._client.getAPIList("/v1/user_profiles
|
|
11457
|
+
return this._client.getAPIList("/v1/user_profiles", PageCursor, {
|
|
10958
11458
|
query,
|
|
10959
11459
|
...options,
|
|
10960
11460
|
headers: buildHeaders([
|
|
@@ -10964,6 +11464,7 @@ var UserProfiles = /* @__PURE__ */ (() => {
|
|
|
10964
11464
|
},
|
|
10965
11465
|
options?.headers
|
|
10966
11466
|
]),
|
|
11467
|
+
__qualifiers: { beta: "true" },
|
|
10967
11468
|
__span: startApiCallSpan(this._client, "anthropic.user_profiles.list", options, {
|
|
10968
11469
|
route: "/v1/user_profiles",
|
|
10969
11470
|
queryParams: ["limit", "order", "order_by", "page"]
|
|
@@ -10972,7 +11473,7 @@ var UserProfiles = /* @__PURE__ */ (() => {
|
|
|
10972
11473
|
}
|
|
10973
11474
|
delete(userProfileID, params = {}, options) {
|
|
10974
11475
|
const { betas, workspace_id } = params ?? {};
|
|
10975
|
-
return this._client.delete(path`/v1/user_profiles/${userProfileID}
|
|
11476
|
+
return this._client.delete(path`/v1/user_profiles/${userProfileID}`, {
|
|
10976
11477
|
...options,
|
|
10977
11478
|
headers: buildHeaders([
|
|
10978
11479
|
{
|
|
@@ -10981,6 +11482,7 @@ var UserProfiles = /* @__PURE__ */ (() => {
|
|
|
10981
11482
|
},
|
|
10982
11483
|
options?.headers
|
|
10983
11484
|
]),
|
|
11485
|
+
__qualifiers: { beta: "true" },
|
|
10984
11486
|
__span: startApiCallSpan(this._client, "anthropic.user_profiles.delete", options, {
|
|
10985
11487
|
route: "/v1/user_profiles/{user_profile_id}",
|
|
10986
11488
|
attributes: { "anthropic.user_profile.id": userProfileID }
|
|
@@ -10989,7 +11491,7 @@ var UserProfiles = /* @__PURE__ */ (() => {
|
|
|
10989
11491
|
}
|
|
10990
11492
|
createEnrollmentURL(userProfileID, params = {}, options) {
|
|
10991
11493
|
const { betas, workspace_id } = params ?? {};
|
|
10992
|
-
return this._client.post(path`/v1/user_profiles/${userProfileID}/enrollment_url
|
|
11494
|
+
return this._client.post(path`/v1/user_profiles/${userProfileID}/enrollment_url`, {
|
|
10993
11495
|
...options,
|
|
10994
11496
|
headers: buildHeaders([
|
|
10995
11497
|
{
|
|
@@ -10998,6 +11500,7 @@ var UserProfiles = /* @__PURE__ */ (() => {
|
|
|
10998
11500
|
},
|
|
10999
11501
|
options?.headers
|
|
11000
11502
|
]),
|
|
11503
|
+
__qualifiers: { beta: "true" },
|
|
11001
11504
|
__span: startApiCallSpan(this._client, "anthropic.user_profiles.create_enrollment_url", options, {
|
|
11002
11505
|
route: "/v1/user_profiles/{user_profile_id}/enrollment_url",
|
|
11003
11506
|
attributes: { "anthropic.user_profile.id": userProfileID }
|
|
@@ -11013,7 +11516,7 @@ var UserProfiles = /* @__PURE__ */ (() => {
|
|
|
11013
11516
|
class Credentials extends APIResource {
|
|
11014
11517
|
create(vaultID, params, options) {
|
|
11015
11518
|
const { betas, workspace_id, ...body } = params;
|
|
11016
|
-
return this._client.post(path`/v1/vaults/${vaultID}/credentials
|
|
11519
|
+
return this._client.post(path`/v1/vaults/${vaultID}/credentials`, {
|
|
11017
11520
|
body,
|
|
11018
11521
|
...options,
|
|
11019
11522
|
headers: buildHeaders([
|
|
@@ -11023,6 +11526,7 @@ class Credentials extends APIResource {
|
|
|
11023
11526
|
},
|
|
11024
11527
|
options?.headers
|
|
11025
11528
|
]),
|
|
11529
|
+
__qualifiers: { beta: "true" },
|
|
11026
11530
|
__span: startApiCallSpan(this._client, "anthropic.vaults.credentials.create", options, {
|
|
11027
11531
|
route: "/v1/vaults/{vault_id}/credentials",
|
|
11028
11532
|
attributes: { "anthropic.vault.id": vaultID },
|
|
@@ -11032,7 +11536,7 @@ class Credentials extends APIResource {
|
|
|
11032
11536
|
}
|
|
11033
11537
|
retrieve(credentialID, params, options) {
|
|
11034
11538
|
const { vault_id, betas, workspace_id } = params;
|
|
11035
|
-
return this._client.get(path`/v1/vaults/${vault_id}/credentials/${credentialID}
|
|
11539
|
+
return this._client.get(path`/v1/vaults/${vault_id}/credentials/${credentialID}`, {
|
|
11036
11540
|
...options,
|
|
11037
11541
|
headers: buildHeaders([
|
|
11038
11542
|
{
|
|
@@ -11041,6 +11545,7 @@ class Credentials extends APIResource {
|
|
|
11041
11545
|
},
|
|
11042
11546
|
options?.headers
|
|
11043
11547
|
]),
|
|
11548
|
+
__qualifiers: { beta: "true" },
|
|
11044
11549
|
__span: startApiCallSpan(this._client, "anthropic.vaults.credentials.retrieve", options, {
|
|
11045
11550
|
route: "/v1/vaults/{vault_id}/credentials/{credential_id}",
|
|
11046
11551
|
attributes: { "anthropic.vault.id": vault_id, "anthropic.vault.credential.id": credentialID }
|
|
@@ -11049,7 +11554,7 @@ class Credentials extends APIResource {
|
|
|
11049
11554
|
}
|
|
11050
11555
|
update(credentialID, params, options) {
|
|
11051
11556
|
const { vault_id, betas, workspace_id, ...body } = params;
|
|
11052
|
-
return this._client.post(path`/v1/vaults/${vault_id}/credentials/${credentialID}
|
|
11557
|
+
return this._client.post(path`/v1/vaults/${vault_id}/credentials/${credentialID}`, {
|
|
11053
11558
|
body,
|
|
11054
11559
|
...options,
|
|
11055
11560
|
headers: buildHeaders([
|
|
@@ -11059,6 +11564,7 @@ class Credentials extends APIResource {
|
|
|
11059
11564
|
},
|
|
11060
11565
|
options?.headers
|
|
11061
11566
|
]),
|
|
11567
|
+
__qualifiers: { beta: "true" },
|
|
11062
11568
|
__span: startApiCallSpan(this._client, "anthropic.vaults.credentials.update", options, {
|
|
11063
11569
|
route: "/v1/vaults/{vault_id}/credentials/{credential_id}",
|
|
11064
11570
|
attributes: { "anthropic.vault.id": vault_id, "anthropic.vault.credential.id": credentialID }
|
|
@@ -11067,7 +11573,7 @@ class Credentials extends APIResource {
|
|
|
11067
11573
|
}
|
|
11068
11574
|
list(vaultID, params = {}, options) {
|
|
11069
11575
|
const { betas, workspace_id, ...query } = params ?? {};
|
|
11070
|
-
return this._client.getAPIList(path`/v1/vaults/${vaultID}/credentials
|
|
11576
|
+
return this._client.getAPIList(path`/v1/vaults/${vaultID}/credentials`, PageCursor, {
|
|
11071
11577
|
query,
|
|
11072
11578
|
...options,
|
|
11073
11579
|
headers: buildHeaders([
|
|
@@ -11077,6 +11583,7 @@ class Credentials extends APIResource {
|
|
|
11077
11583
|
},
|
|
11078
11584
|
options?.headers
|
|
11079
11585
|
]),
|
|
11586
|
+
__qualifiers: { beta: "true" },
|
|
11080
11587
|
__span: startApiCallSpan(this._client, "anthropic.vaults.credentials.list", options, {
|
|
11081
11588
|
route: "/v1/vaults/{vault_id}/credentials",
|
|
11082
11589
|
queryParams: ["include_archived", "limit", "page"],
|
|
@@ -11086,7 +11593,7 @@ class Credentials extends APIResource {
|
|
|
11086
11593
|
}
|
|
11087
11594
|
delete(credentialID, params, options) {
|
|
11088
11595
|
const { vault_id, betas, workspace_id } = params;
|
|
11089
|
-
return this._client.delete(path`/v1/vaults/${vault_id}/credentials/${credentialID}
|
|
11596
|
+
return this._client.delete(path`/v1/vaults/${vault_id}/credentials/${credentialID}`, {
|
|
11090
11597
|
...options,
|
|
11091
11598
|
headers: buildHeaders([
|
|
11092
11599
|
{
|
|
@@ -11095,6 +11602,7 @@ class Credentials extends APIResource {
|
|
|
11095
11602
|
},
|
|
11096
11603
|
options?.headers
|
|
11097
11604
|
]),
|
|
11605
|
+
__qualifiers: { beta: "true" },
|
|
11098
11606
|
__span: startApiCallSpan(this._client, "anthropic.vaults.credentials.delete", options, {
|
|
11099
11607
|
route: "/v1/vaults/{vault_id}/credentials/{credential_id}",
|
|
11100
11608
|
attributes: { "anthropic.vault.id": vault_id, "anthropic.vault.credential.id": credentialID }
|
|
@@ -11103,7 +11611,7 @@ class Credentials extends APIResource {
|
|
|
11103
11611
|
}
|
|
11104
11612
|
archive(credentialID, params, options) {
|
|
11105
11613
|
const { vault_id, betas, workspace_id } = params;
|
|
11106
|
-
return this._client.post(path`/v1/vaults/${vault_id}/credentials/${credentialID}/archive
|
|
11614
|
+
return this._client.post(path`/v1/vaults/${vault_id}/credentials/${credentialID}/archive`, {
|
|
11107
11615
|
...options,
|
|
11108
11616
|
headers: buildHeaders([
|
|
11109
11617
|
{
|
|
@@ -11112,6 +11620,7 @@ class Credentials extends APIResource {
|
|
|
11112
11620
|
},
|
|
11113
11621
|
options?.headers
|
|
11114
11622
|
]),
|
|
11623
|
+
__qualifiers: { beta: "true" },
|
|
11115
11624
|
__span: startApiCallSpan(this._client, "anthropic.vaults.credentials.archive", options, {
|
|
11116
11625
|
route: "/v1/vaults/{vault_id}/credentials/{credential_id}/archive",
|
|
11117
11626
|
attributes: { "anthropic.vault.id": vault_id, "anthropic.vault.credential.id": credentialID }
|
|
@@ -11120,7 +11629,7 @@ class Credentials extends APIResource {
|
|
|
11120
11629
|
}
|
|
11121
11630
|
mcpOAuthValidate(credentialID, params, options) {
|
|
11122
11631
|
const { vault_id, betas, workspace_id } = params;
|
|
11123
|
-
return this._client.post(path`/v1/vaults/${vault_id}/credentials/${credentialID}/mcp_oauth_validate
|
|
11632
|
+
return this._client.post(path`/v1/vaults/${vault_id}/credentials/${credentialID}/mcp_oauth_validate`, {
|
|
11124
11633
|
...options,
|
|
11125
11634
|
headers: buildHeaders([
|
|
11126
11635
|
{
|
|
@@ -11129,6 +11638,7 @@ class Credentials extends APIResource {
|
|
|
11129
11638
|
},
|
|
11130
11639
|
options?.headers
|
|
11131
11640
|
]),
|
|
11641
|
+
__qualifiers: { beta: "true" },
|
|
11132
11642
|
__span: startApiCallSpan(this._client, "anthropic.vaults.credentials.mcp_oauth_validate", options, {
|
|
11133
11643
|
route: "/v1/vaults/{vault_id}/credentials/{credential_id}/mcp_oauth_validate",
|
|
11134
11644
|
attributes: { "anthropic.vault.id": vault_id, "anthropic.vault.credential.id": credentialID }
|
|
@@ -11146,7 +11656,7 @@ var Vaults = /* @__PURE__ */ (() => {
|
|
|
11146
11656
|
}
|
|
11147
11657
|
create(params, options) {
|
|
11148
11658
|
const { betas, workspace_id, ...body } = params;
|
|
11149
|
-
return this._client.post("/v1/vaults
|
|
11659
|
+
return this._client.post("/v1/vaults", {
|
|
11150
11660
|
body,
|
|
11151
11661
|
...options,
|
|
11152
11662
|
headers: buildHeaders([
|
|
@@ -11156,6 +11666,7 @@ var Vaults = /* @__PURE__ */ (() => {
|
|
|
11156
11666
|
},
|
|
11157
11667
|
options?.headers
|
|
11158
11668
|
]),
|
|
11669
|
+
__qualifiers: { beta: "true" },
|
|
11159
11670
|
__span: startApiCallSpan(this._client, "anthropic.vaults.create", options, {
|
|
11160
11671
|
route: "/v1/vaults",
|
|
11161
11672
|
createdIDAttribute: "anthropic.vault.id"
|
|
@@ -11164,7 +11675,7 @@ var Vaults = /* @__PURE__ */ (() => {
|
|
|
11164
11675
|
}
|
|
11165
11676
|
retrieve(vaultID, params = {}, options) {
|
|
11166
11677
|
const { betas, workspace_id } = params ?? {};
|
|
11167
|
-
return this._client.get(path`/v1/vaults/${vaultID}
|
|
11678
|
+
return this._client.get(path`/v1/vaults/${vaultID}`, {
|
|
11168
11679
|
...options,
|
|
11169
11680
|
headers: buildHeaders([
|
|
11170
11681
|
{
|
|
@@ -11173,6 +11684,7 @@ var Vaults = /* @__PURE__ */ (() => {
|
|
|
11173
11684
|
},
|
|
11174
11685
|
options?.headers
|
|
11175
11686
|
]),
|
|
11687
|
+
__qualifiers: { beta: "true" },
|
|
11176
11688
|
__span: startApiCallSpan(this._client, "anthropic.vaults.retrieve", options, {
|
|
11177
11689
|
route: "/v1/vaults/{vault_id}",
|
|
11178
11690
|
attributes: { "anthropic.vault.id": vaultID }
|
|
@@ -11181,7 +11693,7 @@ var Vaults = /* @__PURE__ */ (() => {
|
|
|
11181
11693
|
}
|
|
11182
11694
|
update(vaultID, params, options) {
|
|
11183
11695
|
const { betas, workspace_id, ...body } = params;
|
|
11184
|
-
return this._client.post(path`/v1/vaults/${vaultID}
|
|
11696
|
+
return this._client.post(path`/v1/vaults/${vaultID}`, {
|
|
11185
11697
|
body,
|
|
11186
11698
|
...options,
|
|
11187
11699
|
headers: buildHeaders([
|
|
@@ -11191,6 +11703,7 @@ var Vaults = /* @__PURE__ */ (() => {
|
|
|
11191
11703
|
},
|
|
11192
11704
|
options?.headers
|
|
11193
11705
|
]),
|
|
11706
|
+
__qualifiers: { beta: "true" },
|
|
11194
11707
|
__span: startApiCallSpan(this._client, "anthropic.vaults.update", options, {
|
|
11195
11708
|
route: "/v1/vaults/{vault_id}",
|
|
11196
11709
|
attributes: { "anthropic.vault.id": vaultID }
|
|
@@ -11199,7 +11712,7 @@ var Vaults = /* @__PURE__ */ (() => {
|
|
|
11199
11712
|
}
|
|
11200
11713
|
list(params = {}, options) {
|
|
11201
11714
|
const { betas, workspace_id, ...query } = params ?? {};
|
|
11202
|
-
return this._client.getAPIList("/v1/vaults
|
|
11715
|
+
return this._client.getAPIList("/v1/vaults", PageCursor, {
|
|
11203
11716
|
query,
|
|
11204
11717
|
...options,
|
|
11205
11718
|
headers: buildHeaders([
|
|
@@ -11209,6 +11722,7 @@ var Vaults = /* @__PURE__ */ (() => {
|
|
|
11209
11722
|
},
|
|
11210
11723
|
options?.headers
|
|
11211
11724
|
]),
|
|
11725
|
+
__qualifiers: { beta: "true" },
|
|
11212
11726
|
__span: startApiCallSpan(this._client, "anthropic.vaults.list", options, {
|
|
11213
11727
|
route: "/v1/vaults",
|
|
11214
11728
|
queryParams: ["include_archived", "limit", "page"]
|
|
@@ -11217,7 +11731,7 @@ var Vaults = /* @__PURE__ */ (() => {
|
|
|
11217
11731
|
}
|
|
11218
11732
|
delete(vaultID, params = {}, options) {
|
|
11219
11733
|
const { betas, workspace_id } = params ?? {};
|
|
11220
|
-
return this._client.delete(path`/v1/vaults/${vaultID}
|
|
11734
|
+
return this._client.delete(path`/v1/vaults/${vaultID}`, {
|
|
11221
11735
|
...options,
|
|
11222
11736
|
headers: buildHeaders([
|
|
11223
11737
|
{
|
|
@@ -11226,6 +11740,7 @@ var Vaults = /* @__PURE__ */ (() => {
|
|
|
11226
11740
|
},
|
|
11227
11741
|
options?.headers
|
|
11228
11742
|
]),
|
|
11743
|
+
__qualifiers: { beta: "true" },
|
|
11229
11744
|
__span: startApiCallSpan(this._client, "anthropic.vaults.delete", options, {
|
|
11230
11745
|
route: "/v1/vaults/{vault_id}",
|
|
11231
11746
|
attributes: { "anthropic.vault.id": vaultID }
|
|
@@ -11234,7 +11749,7 @@ var Vaults = /* @__PURE__ */ (() => {
|
|
|
11234
11749
|
}
|
|
11235
11750
|
archive(vaultID, params = {}, options) {
|
|
11236
11751
|
const { betas, workspace_id } = params ?? {};
|
|
11237
|
-
return this._client.post(path`/v1/vaults/${vaultID}/archive
|
|
11752
|
+
return this._client.post(path`/v1/vaults/${vaultID}/archive`, {
|
|
11238
11753
|
...options,
|
|
11239
11754
|
headers: buildHeaders([
|
|
11240
11755
|
{
|
|
@@ -11243,6 +11758,7 @@ var Vaults = /* @__PURE__ */ (() => {
|
|
|
11243
11758
|
},
|
|
11244
11759
|
options?.headers
|
|
11245
11760
|
]),
|
|
11761
|
+
__qualifiers: { beta: "true" },
|
|
11246
11762
|
__span: startApiCallSpan(this._client, "anthropic.vaults.archive", options, {
|
|
11247
11763
|
route: "/v1/vaults/{vault_id}/archive",
|
|
11248
11764
|
attributes: { "anthropic.vault.id": vaultID }
|
|
@@ -12633,10 +13149,11 @@ Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resour
|
|
|
12633
13149
|
const headers = messagesCreateHeaders2(modifiedParams, options);
|
|
12634
13150
|
const call = this._client._tracer && startApiCallSpan(this._client, "anthropic.messages.create", options, messagesCreateSpanSettings(this._client, body, headers));
|
|
12635
13151
|
recordMessagesCreateRequest(this._client, call, body);
|
|
12636
|
-
const request = this._client.post("/v1/messages
|
|
13152
|
+
const request = this._client.post("/v1/messages", {
|
|
12637
13153
|
body,
|
|
12638
13154
|
timeout: timeout ?? 600000,
|
|
12639
13155
|
...options,
|
|
13156
|
+
__qualifiers: { beta: "true" },
|
|
12640
13157
|
__span: call,
|
|
12641
13158
|
headers,
|
|
12642
13159
|
stream: modifiedParams.stream ?? false
|
|
@@ -12674,9 +13191,10 @@ Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resour
|
|
|
12674
13191
|
route: "/v1/messages/count_tokens",
|
|
12675
13192
|
attributes: { [ATTR_GEN_AI_REQUEST_MODEL]: body.model }
|
|
12676
13193
|
});
|
|
12677
|
-
const request = this._client.post("/v1/messages/count_tokens
|
|
13194
|
+
const request = this._client.post("/v1/messages/count_tokens", {
|
|
12678
13195
|
body,
|
|
12679
13196
|
...options,
|
|
13197
|
+
__qualifiers: { beta: "true" },
|
|
12680
13198
|
__span: call,
|
|
12681
13199
|
headers
|
|
12682
13200
|
});
|
|
@@ -14169,7 +14687,7 @@ new Anthropic({ apiKey, dangerouslyAllowBrowser: true });
|
|
|
14169
14687
|
const defaultTimeout = 10 * 60;
|
|
14170
14688
|
const expectedTimeout = 60 * 60 * maxTokens / 128000;
|
|
14171
14689
|
if (expectedTimeout > defaultTimeout) {
|
|
14172
|
-
throw new AnthropicError("Streaming is required for operations that may take longer than 10 minutes. " + "See https://
|
|
14690
|
+
throw new AnthropicError("Streaming is required for operations that may take longer than 10 minutes. " + "See https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/typescript#streaming-responses for more details");
|
|
14173
14691
|
}
|
|
14174
14692
|
return defaultTimeout * 1000;
|
|
14175
14693
|
}
|
|
@@ -14479,7 +14997,7 @@ new Anthropic({ apiKey, dangerouslyAllowBrowser: true });
|
|
|
14479
14997
|
const defaultTime = 60 * 10 * 1000;
|
|
14480
14998
|
const expectedTime = maxTime * maxTokens / 128000;
|
|
14481
14999
|
if (expectedTime > defaultTime || maxNonstreamingTokens != null && maxTokens > maxNonstreamingTokens) {
|
|
14482
|
-
throw new AnthropicError("Streaming is required for operations that may take longer than 10 minutes. See https://
|
|
15000
|
+
throw new AnthropicError("Streaming is required for operations that may take longer than 10 minutes. See https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/typescript#long-requests for more details");
|
|
14483
15001
|
}
|
|
14484
15002
|
return defaultTime;
|
|
14485
15003
|
}
|