@desplega.ai/agent-swarm 2.4.4 → 2.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{acp-adapter-thq04adh.js → acp-adapter-2wdkktv6.js} +1 -1
- package/dist/{actions-j6ywh6x5.js → actions-c40ebcm4.js} +18 -18
- package/dist/{amp-adapter-k8b5xmj8.js → amp-adapter-wb67m95z.js} +2 -2
- package/dist/{app-rb7vc02s.js → app-353vre8g.js} +3 -3
- package/dist/{assistant-ftta1zjf.js → assistant-sj1njh23.js} +21 -21
- package/dist/{boot-reembed-srp6v6af.js → boot-reembed-b9c3az3c.js} +1 -1
- package/dist/{boot-reembed-xns7h5h9.js → boot-reembed-qdkvxeem.js} +1 -1
- package/dist/{boot-scrub-sweep-3qqrh2mz.js → boot-scrub-sweep-m3wh8eks.js} +2 -2
- package/dist/{boot-seeds-9ks8hce7.js → boot-seeds-j2273s54.js} +4 -4
- package/dist/{claude-adapter-k5ksyres.js → claude-adapter-m7q0a085.js} +2 -2
- package/dist/{claude-managed-adapter-h2y889ge.js → claude-managed-adapter-5ptb6tzs.js} +2 -2
- package/dist/{claude-managed-setup-n5a5eqks.js → claude-managed-setup-smrqk5j5.js} +3 -3
- package/dist/{claude-sdk-session-2j3j4kwn.js → claude-sdk-session-38xnz21e.js} +8284 -8267
- package/dist/{cli-cynvc9fj.js → cli-018r4jq6.js} +5 -5
- package/dist/{cli-9fhkkpj5.js → cli-1f3qzw6y.js} +1 -1
- package/dist/{cli-dqb4n629.js → cli-1sp861s4.js} +7 -7
- package/dist/{cli-gqvh8d8a.js → cli-1syn2xy1.js} +10 -10
- package/dist/{cli-qkhc5aqy.js → cli-37j04k05.js} +11 -11
- package/dist/{cli-1d70crsy.js → cli-3a45zcgm.js} +1 -1
- package/dist/{cli-t7cyef5g.js → cli-43x64hv3.js} +4 -4
- package/dist/{cli-hj3debgw.js → cli-4zfqgjc5.js} +2 -2
- package/dist/{cli-55qmbp6z.js → cli-7c9qs530.js} +1 -1
- package/dist/{cli-9qtjfd60.js → cli-848hxdwj.js} +1 -1
- package/dist/{cli-pccfmtb5.js → cli-94gwyg7m.js} +7 -7
- package/dist/{cli-51y09c6p.js → cli-9hstj09h.js} +5 -5
- package/dist/{cli-zrwpctp4.js → cli-9yqgm9nd.js} +22 -22
- package/dist/{cli-esxerzg7.js → cli-a92r1127.js} +1 -1
- package/dist/{cli-b8k7epj1.js → cli-be2161h1.js} +7 -7
- package/dist/{cli-xc27fwzg.js → cli-bnes4z6b.js} +2 -2
- package/dist/{cli-zrk6jxv8.js → cli-cxxe61f6.js} +1 -1
- package/dist/{cli-amyhm3gj.js → cli-dk44dxec.js} +1 -1
- package/dist/{cli-nc35pxb7.js → cli-eww120g8.js} +1 -0
- package/dist/{cli-a0kcty51.js → cli-f01h25yt.js} +1 -1
- package/dist/{cli-82d3nkc3.js → cli-f0g3pgvf.js} +1 -1
- package/dist/{cli-1ephgwnq.js → cli-ftc1g5tj.js} +2 -2
- package/dist/{cli-2v045xyf.js → cli-fv5hepyy.js} +3 -3
- package/dist/{cli-bnz0r3kc.js → cli-g35m2xwm.js} +4 -4
- package/dist/{cli-qje9k2nh.js → cli-g9ypd5en.js} +12 -2
- package/dist/{cli-w6nadkh4.js → cli-j99azg3g.js} +3 -3
- package/dist/{cli-er83cjbn.js → cli-k8g16gz3.js} +416 -116
- package/dist/{cli-4dg55wsk.js → cli-kpw04va0.js} +1 -1
- package/dist/{cli-3cgngyd8.js → cli-ms85309d.js} +33 -15
- package/dist/{cli-v3yr2gbg.js → cli-n72rg53p.js} +1471 -635
- package/dist/{cli-37yb7307.js → cli-p14m2cnp.js} +1 -1
- package/dist/{cli-2zqpkvtt.js → cli-qfxc84gh.js} +1 -1
- package/dist/{cli-44159k28.js → cli-qwhy2qma.js} +1 -1
- package/dist/{cli-2y91wnbh.js → cli-st8aw1m6.js} +221 -9
- package/dist/{cli-vq97g1jq.js → cli-tw4p90jb.js} +92 -192
- package/dist/{cli-te6b5wvg.js → cli-v0yrfmdh.js} +1 -1
- package/dist/{cli-xj0re5tm.js → cli-v8fjakwf.js} +1 -1
- package/dist/{cli-p20r8w42.js → cli-wt0jf9hm.js} +215 -80
- package/dist/{cli-q6r7t299.js → cli-xpa64rek.js} +33 -11
- package/dist/{cli-vdm20wej.js → cli-z7d29rw9.js} +2 -2
- package/dist/cli.js +19 -19
- package/dist/{codex-adapter-968xwfy7.js → codex-adapter-tn6k5mkg.js} +1 -1
- package/dist/{codex-session-runner-ht4z99fa.js → codex-session-runner-7vjt7jbw.js} +1 -1
- package/dist/{commands-pcymaeg9.js → commands-t7rz9146.js} +2 -2
- package/dist/{controller-fpjyk46r.js → controller-m2jasma5.js} +2 -2
- package/dist/{controllers-connect-mwzx1fh6.js → controllers-connect-9ftpex99.js} +19 -19
- package/dist/{cursor-adapter-cp4s2e2f.js → cursor-adapter-mjv79e4z.js} +1 -1
- package/dist/{db-xsjg9jqq.js → db-6sfrn9g3.js} +1 -1
- package/dist/{db-sgd12bt9.js → db-rn673r06.js} +3 -3
- package/dist/{dispatcher-x0jfw2c9.js → dispatcher-c155xz0p.js} +17 -17
- package/dist/{dsh-adapter-jrq7ma7h.js → dsh-adapter-3mmszc1x.js} +1 -1
- package/dist/{external-channel-8njj4h3b.js → external-channel-35k6tkv8.js} +2 -2
- package/dist/{grok-adapter-kkr97v2f.js → grok-adapter-tfrq7tg1.js} +2 -2
- package/dist/handlers-7gw64dxw.js +39 -0
- package/dist/{heartbeat-wd03zhn0.js → heartbeat-dyg4npkp.js} +20 -20
- package/dist/{hook-f0vghj42.js → hook-drspbwpe.js} +1 -1
- package/dist/{hook-xzj2ts2p.js → hook-x26b31bg.js} +1 -1
- package/dist/{http-4hwxv62p.js → http-pk972xyw.js} +355 -216
- package/dist/{index-ww2vznkp.js → index-arytgj5q.js} +1 -1
- package/dist/{index-hg0x2cdv.js → index-bgdyvcnv.js} +17 -17
- package/dist/{index-c4ykd0f1.js → index-dr94zbnh.js} +13348 -11611
- package/dist/{index-gdh8jrdm.js → index-gabbcdn2.js} +17 -17
- package/dist/{index-97q4xn03.js → index-jwxkkex2.js} +129 -75
- package/dist/index-tfb26zhy.js +41 -0
- package/dist/{keepalive-hrh7xnr9.js → keepalive-7yrng7px.js} +3 -3
- package/dist/{lead-ee8vazz2.js → lead-7e02z839.js} +29 -29
- package/dist/{maintenance-e8wnwnqx.js → maintenance-e6cemdqt.js} +1 -1
- package/dist/{node-3v3f08f7.js → node-de6akczr.js} +10 -9
- package/dist/{oauth-refresh-sweep-zm0yj4sj.js → oauth-refresh-sweep-yw3xdbcj.js} +2 -2
- package/dist/{onboard-dtwcq603.js → onboard-0a9y5yrc.js} +2 -2
- package/dist/{otel-impl-w3fbhpn0.js → otel-impl-trjpkfb7.js} +1 -1
- package/dist/{pricing-refresh-j38dehfs.js → pricing-refresh-d2b5my0y.js} +3 -3
- package/dist/{rbac-roles-ejxx9b35.js → rbac-roles-hey3yv9d.js} +2 -2
- package/dist/{rbac-roles-ae8yttq4.js → rbac-roles-nxh5ahwk.js} +1 -1
- package/dist/{registry-rxw10xzg.js → registry-ajhexe44.js} +1 -1
- package/dist/{render-v2-n16n0phe.js → render-v2-rr3p2atg.js} +3 -3
- package/dist/{resume-z0fgjc38.js → resume-2efkf1s1.js} +5 -5
- package/dist/{session-access-cv3mq6mc.js → session-access-s2mttxpw.js} +4 -4
- package/dist/{setup-mafhj3yt.js → setup-vypma5yt.js} +1 -1
- package/dist/{work-objects-8b86mgjp.js → work-objects-rvhckdkp.js} +20 -20
- package/dist/{worker-16s75hm5.js → worker-5snytpbd.js} +29 -29
- package/openapi.json +9 -2
- package/package.json +7 -7
- package/src/apps/catalog.generated.json +206 -4
- package/src/apps/page-validator.ts +13 -1
- package/src/be/chunking.ts +42 -9
- package/src/be/db/tasks/draft-text.ts +15 -0
- package/src/be/db/tasks/read.ts +14 -1
- package/src/be/db.ts +5 -1
- package/src/be/memory/index-content.ts +36 -17
- package/src/be/memory/providers/openai-embedding.ts +115 -61
- package/src/be/memory/providers/sqlite-store.ts +69 -23
- package/src/be/memory/reranker.ts +31 -1
- package/src/be/memory/search-candidates.ts +47 -0
- package/src/be/memory/types.ts +14 -0
- package/src/be/scripts/typecheck.ts +2 -0
- package/src/be/seed-scripts/catalog/heartbeat-jev-gate.ts +106 -54
- package/src/be/seed-scripts/index.ts +2 -2
- package/src/be/swarm-config-guard.ts +24 -1
- package/src/be/task-attachment-store.ts +30 -0
- package/src/extensions/catalog.generated.json +4 -4
- package/src/extensions/contract-types.generated.ts +1 -1
- package/src/extensions/contract.ts +7 -0
- package/src/fs/provider.ts +13 -1
- package/src/heartbeat/heartbeat.ts +31 -11
- package/src/http/fs.ts +54 -34
- package/src/http/mcp-body.ts +37 -0
- package/src/http/mcp-user.ts +3 -5
- package/src/http/mcp.ts +6 -7
- package/src/http/memory.ts +26 -15
- package/src/http/page-proxy.ts +61 -5
- package/src/http/pages-public.ts +27 -44
- package/src/http/pages.ts +4 -4
- package/src/http/script-runs.ts +2 -0
- package/src/http/users.ts +12 -1
- package/src/integrations/chat-sdk/adapters.ts +7 -3
- package/src/integrations/chat-sdk/attachments.ts +90 -12
- package/src/integrations/chat-sdk/facts.ts +120 -0
- package/src/integrations/chat-sdk/inbound.ts +156 -8
- package/src/integrations/chat-sdk/limits.ts +24 -0
- package/src/integrations/chat-sdk/outbound-files.ts +186 -0
- package/src/integrations/chat-sdk/outbound.ts +234 -4
- package/src/integrations/chat-sdk/relay.ts +4 -1
- package/src/integrations/chat-sdk/router.ts +28 -2
- package/src/integrations/chat-sdk/steering.ts +9 -0
- package/src/integrations/chat-sdk/templates.ts +14 -0
- package/src/integrations/chat-sdk/thread-buffer.ts +4 -0
- package/src/mcp-limits.ts +20 -0
- package/src/pages/browser-sdk.ts +8 -3
- package/src/pages/feedback-overlay.ts +1 -1
- package/src/providers/amp-adapter.ts +1 -1
- package/src/providers/codex-adapter.ts +106 -119
- package/src/providers/codex-agents-md.ts +35 -229
- package/src/providers/cursor-adapter.ts +1 -1
- package/src/realtime/transport.ts +1 -2
- package/src/script-workflows/workflow-ctx.ts +1 -0
- package/src/scripts-runtime/types/stdlib.d.ts +2 -0
- package/src/scripts-runtime/types/swarm-extension.d.ts +8 -0
- package/src/scripts-runtime/types/swarm-sdk.d.ts +2 -0
- package/src/server-user.ts +2 -0
- package/src/server.ts +2 -0
- package/src/slack/assistant.ts +2 -2
- package/src/slack/files.ts +2 -0
- package/src/slack/handlers.ts +4 -4
- package/src/slack/inbound-files.ts +39 -6
- package/src/slack/thread-buffer.ts +2 -1
- package/src/tasks/task-terminal-effects.ts +21 -17
- package/src/tests/apps-card-grid.test.ts +197 -0
- package/src/tests/apps-catalog-additions.test.ts +120 -0
- package/src/tests/apps-tree.test.ts +129 -0
- package/src/tests/chat-sdk-attachments-reply.test.ts +52 -0
- package/src/tests/chat-sdk-config.test.ts +11 -0
- package/src/tests/chat-sdk-facts.test.ts +23 -0
- package/src/tests/chat-sdk-inbound.test.ts +558 -4
- package/src/tests/chat-sdk-outbound-files.test.ts +652 -0
- package/src/tests/codex-adapter.test.ts +167 -242
- package/src/tests/config-api-only-keys.test.ts +9 -0
- package/src/tests/cors-allowlist.test.ts +1 -1
- package/src/tests/extensions-example-slack-reply-gate.test.ts +262 -91
- package/src/tests/heartbeat-checklist.test.ts +33 -0
- package/src/tests/heartbeat-jev-gate-credentials.test.ts +44 -0
- package/src/tests/heartbeat-jev-gate.test.ts +242 -1
- package/src/tests/kv-page-proxy.test.ts +91 -5
- package/src/tests/launch-password-rejection.test.ts +2 -2
- package/src/tests/mcp-input-caps.test.ts +294 -0
- package/src/tests/memory-chunked-search-starvation.test.ts +200 -0
- package/src/tests/memory-embedding-input-cap.test.ts +114 -0
- package/src/tests/memory.test.ts +14 -0
- package/src/tests/page-guest-session.test.ts +19 -8
- package/src/tests/page-proxy-authed.test.ts +1 -1
- package/src/tests/page-proxy.test.ts +17 -10
- package/src/tests/page-session.test.ts +102 -1
- package/src/tests/pages-authed-mode.test.ts +82 -12
- package/src/tests/pages-password-mode.test.ts +5 -5
- package/src/tests/realtime-transport.test.ts +13 -7
- package/src/tests/script-runs-http.test.ts +84 -0
- package/src/tests/scripts-http.test.ts +10 -1
- package/src/tests/swarm-config-export-to-env.test.ts +22 -3
- package/src/tests/task-audio-transcription.test.ts +299 -0
- package/src/tests/task-completion-memory-chunking.test.ts +434 -0
- package/src/tests/task-terminal-secret-scrub.test.ts +6 -1
- package/src/tests/transcription.test.ts +299 -0
- package/src/tests/workflow-system-one-decision-providers.test.ts +98 -1
- package/src/tests/workflow-system-one-decision.test.ts +2 -1
- package/src/tools/chat-access.ts +10 -0
- package/src/tools/chat-post.ts +31 -11
- package/src/tools/chat-reply.ts +32 -10
- package/src/tools/memory-search.ts +3 -1
- package/src/tools/system-one-decide.ts +17 -4
- package/src/types.ts +6 -0
- package/src/utils/config-env-export.ts +3 -1
- package/src/utils/page-session.ts +133 -20
- package/src/utils/transcription.ts +246 -0
- package/src/workflows/executors/system-one-decision.ts +28 -7
- package/src/workflows/executors/system-one-providers.ts +39 -4
- package/templates/extensions/slack-reply-gate/README.md +24 -22
- package/templates/extensions/slack-reply-gate/hooks.ts +146 -95
- package/templates/extensions/slack-reply-gate/manifest.json +2 -2
- package/templates/skills/apps/SKILL.md +28 -6
- package/templates/skills/apps/content.md +28 -6
- package/templates/skills/chat-sdk/content.md +6 -2
- package/templates/skills/code-quality/content.md +2 -1
- package/templates/skills/heartbeat-runbook/content.md +5 -5
- package/templates/skills/pages/content.md +6 -4
- package/templates/skills/swarm-scripts/SKILL.md +2 -2
- package/templates/skills/swarm-scripts/content.md +2 -2
- package/dist/handlers-0pvee9nw.js +0 -39
- package/dist/index-thm0y6a8.js +0 -41
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
ToolError,
|
|
44
44
|
checkMemorySyncInterval,
|
|
45
45
|
promiseWithResolvers
|
|
46
|
-
} from "./cli-
|
|
46
|
+
} from "./cli-848hxdwj.js";
|
|
47
47
|
import {
|
|
48
48
|
require_src
|
|
49
49
|
} from "./cli-dv97kdzv.js";
|
|
@@ -70,7 +70,7 @@ var sleep = (ms, signal) => new Promise((resolve) => {
|
|
|
70
70
|
});
|
|
71
71
|
|
|
72
72
|
// node_modules/@anthropic-ai/sdk/version.mjs
|
|
73
|
-
var VERSION = "0.
|
|
73
|
+
var VERSION = "0.137.0";
|
|
74
74
|
|
|
75
75
|
// node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs
|
|
76
76
|
var isRunningInBrowser = () => {
|
|
@@ -412,16 +412,19 @@ var Stream = /* @__PURE__ */ (() => {
|
|
|
412
412
|
let done = false;
|
|
413
413
|
try {
|
|
414
414
|
for await (const sse of _iterSSEMessages(response, controller)) {
|
|
415
|
-
if (sse.event === "
|
|
416
|
-
|
|
417
|
-
yield JSON.parse(sse.data);
|
|
418
|
-
} catch (e) {
|
|
419
|
-
logger.error(`Could not parse message into JSON:`, sse.data);
|
|
420
|
-
logger.error(`From chunk:`, sse.raw);
|
|
421
|
-
throw e;
|
|
422
|
-
}
|
|
415
|
+
if (sse.event === "ping") {
|
|
416
|
+
continue;
|
|
423
417
|
}
|
|
424
|
-
if (sse.event ===
|
|
418
|
+
if (sse.event === null) {
|
|
419
|
+
continue;
|
|
420
|
+
}
|
|
421
|
+
if (sse.event === "error") {
|
|
422
|
+
const body = safeJSON(sse.data) ?? sse.data;
|
|
423
|
+
const type = body?.error?.type;
|
|
424
|
+
throw new APIError(undefined, body, undefined, response.headers, type);
|
|
425
|
+
} else {
|
|
426
|
+
if (!sse.data)
|
|
427
|
+
continue;
|
|
425
428
|
try {
|
|
426
429
|
yield JSON.parse(sse.data);
|
|
427
430
|
} catch (e) {
|
|
@@ -430,14 +433,6 @@ var Stream = /* @__PURE__ */ (() => {
|
|
|
430
433
|
throw e;
|
|
431
434
|
}
|
|
432
435
|
}
|
|
433
|
-
if (sse.event === "ping") {
|
|
434
|
-
continue;
|
|
435
|
-
}
|
|
436
|
-
if (sse.event === "error") {
|
|
437
|
-
const body = safeJSON(sse.data) ?? sse.data;
|
|
438
|
-
const type = body?.error?.type;
|
|
439
|
-
throw new APIError(undefined, body, undefined, response.headers, type);
|
|
440
|
-
}
|
|
441
436
|
}
|
|
442
437
|
done = true;
|
|
443
438
|
} catch (e) {
|
|
@@ -3295,6 +3290,38 @@ class BidirectionalPageCursor extends AbstractPage {
|
|
|
3295
3290
|
}
|
|
3296
3291
|
}
|
|
3297
3292
|
|
|
3293
|
+
class ReportPageCursor extends AbstractPage {
|
|
3294
|
+
constructor(client, response, body, options) {
|
|
3295
|
+
super(client, response, body, options);
|
|
3296
|
+
this.data = body.data || [];
|
|
3297
|
+
this.next_page = body.next_page || null;
|
|
3298
|
+
this.has_more = body.has_more || false;
|
|
3299
|
+
this.data_refreshed_at = body.data_refreshed_at || null;
|
|
3300
|
+
}
|
|
3301
|
+
getPaginatedItems() {
|
|
3302
|
+
return this.data ?? [];
|
|
3303
|
+
}
|
|
3304
|
+
hasNextPage() {
|
|
3305
|
+
if (this.has_more === false) {
|
|
3306
|
+
return false;
|
|
3307
|
+
}
|
|
3308
|
+
return this.nextPageRequestOptions() != null;
|
|
3309
|
+
}
|
|
3310
|
+
nextPageRequestOptions() {
|
|
3311
|
+
const cursor = this.next_page;
|
|
3312
|
+
if (!cursor) {
|
|
3313
|
+
return null;
|
|
3314
|
+
}
|
|
3315
|
+
return {
|
|
3316
|
+
...this.options,
|
|
3317
|
+
query: {
|
|
3318
|
+
...maybeObj(this.options.query),
|
|
3319
|
+
page: cursor
|
|
3320
|
+
}
|
|
3321
|
+
};
|
|
3322
|
+
}
|
|
3323
|
+
}
|
|
3324
|
+
|
|
3298
3325
|
// node_modules/@anthropic-ai/sdk/internal/to-file.mjs
|
|
3299
3326
|
var isBlobLike = (value) => value != null && typeof value === "object" && typeof value.size === "number" && typeof value.type === "string" && typeof value.text === "function" && typeof value.slice === "function" && typeof value.arrayBuffer === "function";
|
|
3300
3327
|
var isFileLike = (value) => value != null && typeof value === "object" && typeof value.name === "string" && typeof value.lastModified === "number" && isBlobLike(value);
|
|
@@ -4983,98 +5010,6 @@ class Models extends APIResource {
|
|
|
4983
5010
|
}
|
|
4984
5011
|
}
|
|
4985
5012
|
|
|
4986
|
-
// node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.mjs
|
|
4987
|
-
class UserProfiles extends APIResource {
|
|
4988
|
-
create(params, options) {
|
|
4989
|
-
const { betas, workspace_id, ...body } = params;
|
|
4990
|
-
return this._client.post("/v1/user_profiles?beta=true", {
|
|
4991
|
-
body,
|
|
4992
|
-
...options,
|
|
4993
|
-
headers: buildHeaders([
|
|
4994
|
-
{
|
|
4995
|
-
"anthropic-beta": [...betas ?? [], "user-profiles-2026-08-18"].toString(),
|
|
4996
|
-
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
4997
|
-
},
|
|
4998
|
-
options?.headers
|
|
4999
|
-
]),
|
|
5000
|
-
__span: startApiCallSpan(this._client, "anthropic.user_profiles.create", options, {
|
|
5001
|
-
route: "/v1/user_profiles",
|
|
5002
|
-
createdIDAttribute: "anthropic.user_profile.id"
|
|
5003
|
-
})
|
|
5004
|
-
});
|
|
5005
|
-
}
|
|
5006
|
-
retrieve(userProfileID, params = {}, options) {
|
|
5007
|
-
const { betas, workspace_id } = params ?? {};
|
|
5008
|
-
return this._client.get(path`/v1/user_profiles/${userProfileID}?beta=true`, {
|
|
5009
|
-
...options,
|
|
5010
|
-
headers: buildHeaders([
|
|
5011
|
-
{
|
|
5012
|
-
"anthropic-beta": [...betas ?? [], "user-profiles-2026-08-18"].toString(),
|
|
5013
|
-
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
5014
|
-
},
|
|
5015
|
-
options?.headers
|
|
5016
|
-
]),
|
|
5017
|
-
__span: startApiCallSpan(this._client, "anthropic.user_profiles.retrieve", options, {
|
|
5018
|
-
route: "/v1/user_profiles/{user_profile_id}",
|
|
5019
|
-
attributes: { "anthropic.user_profile.id": userProfileID }
|
|
5020
|
-
})
|
|
5021
|
-
});
|
|
5022
|
-
}
|
|
5023
|
-
update(userProfileID, params, options) {
|
|
5024
|
-
const { betas, workspace_id, ...body } = params;
|
|
5025
|
-
return this._client.post(path`/v1/user_profiles/${userProfileID}?beta=true`, {
|
|
5026
|
-
body,
|
|
5027
|
-
...options,
|
|
5028
|
-
headers: buildHeaders([
|
|
5029
|
-
{
|
|
5030
|
-
"anthropic-beta": [...betas ?? [], "user-profiles-2026-08-18"].toString(),
|
|
5031
|
-
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
5032
|
-
},
|
|
5033
|
-
options?.headers
|
|
5034
|
-
]),
|
|
5035
|
-
__span: startApiCallSpan(this._client, "anthropic.user_profiles.update", options, {
|
|
5036
|
-
route: "/v1/user_profiles/{user_profile_id}",
|
|
5037
|
-
attributes: { "anthropic.user_profile.id": userProfileID }
|
|
5038
|
-
})
|
|
5039
|
-
});
|
|
5040
|
-
}
|
|
5041
|
-
list(params = {}, options) {
|
|
5042
|
-
const { betas, workspace_id, ...query } = params ?? {};
|
|
5043
|
-
return this._client.getAPIList("/v1/user_profiles?beta=true", PageCursor, {
|
|
5044
|
-
query,
|
|
5045
|
-
...options,
|
|
5046
|
-
headers: buildHeaders([
|
|
5047
|
-
{
|
|
5048
|
-
"anthropic-beta": [...betas ?? [], "user-profiles-2026-08-18"].toString(),
|
|
5049
|
-
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
5050
|
-
},
|
|
5051
|
-
options?.headers
|
|
5052
|
-
]),
|
|
5053
|
-
__span: startApiCallSpan(this._client, "anthropic.user_profiles.list", options, {
|
|
5054
|
-
route: "/v1/user_profiles",
|
|
5055
|
-
queryParams: ["limit", "order", "order_by", "page"]
|
|
5056
|
-
})
|
|
5057
|
-
});
|
|
5058
|
-
}
|
|
5059
|
-
createEnrollmentURL(userProfileID, params = {}, options) {
|
|
5060
|
-
const { betas, workspace_id } = params ?? {};
|
|
5061
|
-
return this._client.post(path`/v1/user_profiles/${userProfileID}/enrollment_url?beta=true`, {
|
|
5062
|
-
...options,
|
|
5063
|
-
headers: buildHeaders([
|
|
5064
|
-
{
|
|
5065
|
-
"anthropic-beta": [...betas ?? [], "user-profiles-2026-08-18"].toString(),
|
|
5066
|
-
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
5067
|
-
},
|
|
5068
|
-
options?.headers
|
|
5069
|
-
]),
|
|
5070
|
-
__span: startApiCallSpan(this._client, "anthropic.user_profiles.create_enrollment_url", options, {
|
|
5071
|
-
route: "/v1/user_profiles/{user_profile_id}/enrollment_url",
|
|
5072
|
-
attributes: { "anthropic.user_profile.id": userProfileID }
|
|
5073
|
-
})
|
|
5074
|
-
});
|
|
5075
|
-
}
|
|
5076
|
-
}
|
|
5077
|
-
|
|
5078
5013
|
// node_modules/@anthropic-ai/sdk/resources/beta/webhooks.mjs
|
|
5079
5014
|
var import_standardwebhooks = __toESM(require_dist3(), 1);
|
|
5080
5015
|
|
|
@@ -6227,7 +6162,7 @@ var EnvironmentWorker = /* @__PURE__ */ (() => {
|
|
|
6227
6162
|
const ctrl = new AbortController;
|
|
6228
6163
|
const detachExternal = linkAbort(externalSignal, ctrl);
|
|
6229
6164
|
const lease = new Lease(ctrl);
|
|
6230
|
-
const agentToolset = await import("./node-
|
|
6165
|
+
const agentToolset = await import("./node-de6akczr.js");
|
|
6231
6166
|
let leaseTtlMs;
|
|
6232
6167
|
let runner;
|
|
6233
6168
|
const heartbeatPromise = heartbeatLoop(sessionClient, work, lease, log, this.requestOptions, (ttlMs) => {
|
|
@@ -8239,6 +8174,97 @@ class Users extends APIResource {
|
|
|
8239
8174
|
}
|
|
8240
8175
|
}
|
|
8241
8176
|
|
|
8177
|
+
// node_modules/@anthropic-ai/sdk/resources/beta/organization/webhooks.mjs
|
|
8178
|
+
class Webhooks2 extends APIResource {
|
|
8179
|
+
create(params, options) {
|
|
8180
|
+
const { betas, ...body } = params;
|
|
8181
|
+
return this._client.post("/v1/organizations/webhooks?beta=true", {
|
|
8182
|
+
body,
|
|
8183
|
+
...options,
|
|
8184
|
+
headers: buildHeaders([
|
|
8185
|
+
{ "anthropic-beta": [...betas ?? [], "webhooks-2026-10-07"].toString() },
|
|
8186
|
+
options?.headers
|
|
8187
|
+
]),
|
|
8188
|
+
__span: startApiCallSpan(this._client, "anthropic.organization.webhooks.create", options, {
|
|
8189
|
+
route: "/v1/organizations/webhooks",
|
|
8190
|
+
createdIDAttribute: "anthropic.organization.webhook.id"
|
|
8191
|
+
})
|
|
8192
|
+
});
|
|
8193
|
+
}
|
|
8194
|
+
retrieve(webhookEndpointID, params = {}, options) {
|
|
8195
|
+
const { betas } = params ?? {};
|
|
8196
|
+
return this._client.get(path`/v1/organizations/webhooks/${webhookEndpointID}?beta=true`, {
|
|
8197
|
+
...options,
|
|
8198
|
+
headers: buildHeaders([
|
|
8199
|
+
{ "anthropic-beta": [...betas ?? [], "webhooks-2026-10-07"].toString() },
|
|
8200
|
+
options?.headers
|
|
8201
|
+
]),
|
|
8202
|
+
__span: startApiCallSpan(this._client, "anthropic.organization.webhooks.retrieve", options, {
|
|
8203
|
+
route: "/v1/organizations/webhooks/{webhook_endpoint_id}",
|
|
8204
|
+
attributes: { "anthropic.organization.webhook.id": webhookEndpointID }
|
|
8205
|
+
})
|
|
8206
|
+
});
|
|
8207
|
+
}
|
|
8208
|
+
update(webhookEndpointID, params, options) {
|
|
8209
|
+
const { betas, ...body } = params;
|
|
8210
|
+
return this._client.post(path`/v1/organizations/webhooks/${webhookEndpointID}?beta=true`, {
|
|
8211
|
+
body,
|
|
8212
|
+
...options,
|
|
8213
|
+
headers: buildHeaders([
|
|
8214
|
+
{ "anthropic-beta": [...betas ?? [], "webhooks-2026-10-07"].toString() },
|
|
8215
|
+
options?.headers
|
|
8216
|
+
]),
|
|
8217
|
+
__span: startApiCallSpan(this._client, "anthropic.organization.webhooks.update", options, {
|
|
8218
|
+
route: "/v1/organizations/webhooks/{webhook_endpoint_id}",
|
|
8219
|
+
attributes: { "anthropic.organization.webhook.id": webhookEndpointID }
|
|
8220
|
+
})
|
|
8221
|
+
});
|
|
8222
|
+
}
|
|
8223
|
+
list(params = {}, options) {
|
|
8224
|
+
const { betas, ...query } = params ?? {};
|
|
8225
|
+
return this._client.getAPIList("/v1/organizations/webhooks?beta=true", Page, {
|
|
8226
|
+
query,
|
|
8227
|
+
...options,
|
|
8228
|
+
headers: buildHeaders([
|
|
8229
|
+
{ "anthropic-beta": [...betas ?? [], "webhooks-2026-10-07"].toString() },
|
|
8230
|
+
options?.headers
|
|
8231
|
+
]),
|
|
8232
|
+
__span: startApiCallSpan(this._client, "anthropic.organization.webhooks.list", options, {
|
|
8233
|
+
route: "/v1/organizations/webhooks",
|
|
8234
|
+
queryParams: ["after_id", "before_id", "limit", "order"]
|
|
8235
|
+
})
|
|
8236
|
+
});
|
|
8237
|
+
}
|
|
8238
|
+
delete(webhookEndpointID, params = {}, options) {
|
|
8239
|
+
const { betas } = params ?? {};
|
|
8240
|
+
return this._client.delete(path`/v1/organizations/webhooks/${webhookEndpointID}?beta=true`, {
|
|
8241
|
+
...options,
|
|
8242
|
+
headers: buildHeaders([
|
|
8243
|
+
{ "anthropic-beta": [...betas ?? [], "webhooks-2026-10-07"].toString() },
|
|
8244
|
+
options?.headers
|
|
8245
|
+
]),
|
|
8246
|
+
__span: startApiCallSpan(this._client, "anthropic.organization.webhooks.delete", options, {
|
|
8247
|
+
route: "/v1/organizations/webhooks/{webhook_endpoint_id}",
|
|
8248
|
+
attributes: { "anthropic.organization.webhook.id": webhookEndpointID }
|
|
8249
|
+
})
|
|
8250
|
+
});
|
|
8251
|
+
}
|
|
8252
|
+
regenerateSigningSecret(webhookEndpointID, params = {}, options) {
|
|
8253
|
+
const { betas } = params ?? {};
|
|
8254
|
+
return this._client.post(path`/v1/organizations/webhooks/${webhookEndpointID}/regenerate_signing_secret?beta=true`, {
|
|
8255
|
+
...options,
|
|
8256
|
+
headers: buildHeaders([
|
|
8257
|
+
{ "anthropic-beta": [...betas ?? [], "webhooks-2026-10-07"].toString() },
|
|
8258
|
+
options?.headers
|
|
8259
|
+
]),
|
|
8260
|
+
__span: startApiCallSpan(this._client, "anthropic.organization.webhooks.regenerate_signing_secret", options, {
|
|
8261
|
+
route: "/v1/organizations/webhooks/{webhook_endpoint_id}/regenerate_signing_secret",
|
|
8262
|
+
attributes: { "anthropic.organization.webhook.id": webhookEndpointID }
|
|
8263
|
+
})
|
|
8264
|
+
});
|
|
8265
|
+
}
|
|
8266
|
+
}
|
|
8267
|
+
|
|
8242
8268
|
// node_modules/@anthropic-ai/sdk/resources/beta/organization/analytics/artifacts.mjs
|
|
8243
8269
|
class Artifacts extends APIResource {
|
|
8244
8270
|
list(query, options) {
|
|
@@ -8281,7 +8307,7 @@ class Connectors extends APIResource {
|
|
|
8281
8307
|
// node_modules/@anthropic-ai/sdk/resources/beta/organization/analytics/cost-report.mjs
|
|
8282
8308
|
class CostReport extends APIResource {
|
|
8283
8309
|
list(query, options) {
|
|
8284
|
-
return this._client.getAPIList("/v1/organizations/analytics/cost_report?beta=true",
|
|
8310
|
+
return this._client.getAPIList("/v1/organizations/analytics/cost_report?beta=true", ReportPageCursor, {
|
|
8285
8311
|
query,
|
|
8286
8312
|
...options,
|
|
8287
8313
|
__span: startApiCallSpan(this._client, "anthropic.organization.analytics.cost_report.list", options, {
|
|
@@ -8376,7 +8402,7 @@ class Summaries extends APIResource {
|
|
|
8376
8402
|
// node_modules/@anthropic-ai/sdk/resources/beta/organization/analytics/usage-report.mjs
|
|
8377
8403
|
class UsageReport extends APIResource {
|
|
8378
8404
|
list(query, options) {
|
|
8379
|
-
return this._client.getAPIList("/v1/organizations/analytics/usage_report?beta=true",
|
|
8405
|
+
return this._client.getAPIList("/v1/organizations/analytics/usage_report?beta=true", ReportPageCursor, {
|
|
8380
8406
|
query,
|
|
8381
8407
|
...options,
|
|
8382
8408
|
__span: startApiCallSpan(this._client, "anthropic.organization.analytics.usage_report.list", options, {
|
|
@@ -8407,7 +8433,7 @@ class UsageReport extends APIResource {
|
|
|
8407
8433
|
// node_modules/@anthropic-ai/sdk/resources/beta/organization/analytics/user-cost-report.mjs
|
|
8408
8434
|
class UserCostReport extends APIResource {
|
|
8409
8435
|
list(query, options) {
|
|
8410
|
-
return this._client.getAPIList("/v1/organizations/analytics/user_cost_report?beta=true",
|
|
8436
|
+
return this._client.getAPIList("/v1/organizations/analytics/user_cost_report?beta=true", ReportPageCursor, {
|
|
8411
8437
|
query,
|
|
8412
8438
|
...options,
|
|
8413
8439
|
__span: startApiCallSpan(this._client, "anthropic.organization.analytics.user_cost_report.list", options, {
|
|
@@ -8441,7 +8467,7 @@ class UserCostReport extends APIResource {
|
|
|
8441
8467
|
// node_modules/@anthropic-ai/sdk/resources/beta/organization/analytics/user-usage-report.mjs
|
|
8442
8468
|
class UserUsageReport extends APIResource {
|
|
8443
8469
|
list(query, options) {
|
|
8444
|
-
return this._client.getAPIList("/v1/organizations/analytics/user_usage_report?beta=true",
|
|
8470
|
+
return this._client.getAPIList("/v1/organizations/analytics/user_usage_report?beta=true", ReportPageCursor, {
|
|
8445
8471
|
query,
|
|
8446
8472
|
...options,
|
|
8447
8473
|
__span: startApiCallSpan(this._client, "anthropic.organization.analytics.user_usage_report.list", options, {
|
|
@@ -9694,6 +9720,20 @@ class Members2 extends APIResource {
|
|
|
9694
9720
|
|
|
9695
9721
|
// node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/rate-limits.mjs
|
|
9696
9722
|
class RateLimits2 extends APIResource {
|
|
9723
|
+
update(rateLimitID, params, options) {
|
|
9724
|
+
const { workspace_id, ...body } = params;
|
|
9725
|
+
return this._client.post(path`/v1/organizations/workspaces/${workspace_id}/rate_limits/${rateLimitID}?beta=true`, {
|
|
9726
|
+
body,
|
|
9727
|
+
...options,
|
|
9728
|
+
__span: startApiCallSpan(this._client, "anthropic.organization.workspaces.rate_limits.update", options, {
|
|
9729
|
+
route: "/v1/organizations/workspaces/{workspace_id}/rate_limits/{rate_limit_id}",
|
|
9730
|
+
attributes: {
|
|
9731
|
+
"anthropic.organization.workspace.id": workspace_id,
|
|
9732
|
+
"anthropic.organization.workspace.rate_limit.id": rateLimitID
|
|
9733
|
+
}
|
|
9734
|
+
})
|
|
9735
|
+
});
|
|
9736
|
+
}
|
|
9697
9737
|
list(workspaceID, query = {}, options) {
|
|
9698
9738
|
return this._client.getAPIList(path`/v1/organizations/workspaces/${workspaceID}/rate_limits?beta=true`, PageCursor, {
|
|
9699
9739
|
query,
|
|
@@ -9886,6 +9926,7 @@ var Organization = /* @__PURE__ */ (() => {
|
|
|
9886
9926
|
this.plugins = new Plugins2(this._client);
|
|
9887
9927
|
this.pluginMarketplaces = new PluginMarketplaces(this._client);
|
|
9888
9928
|
this.telemetryDestinations = new TelemetryDestinations(this._client);
|
|
9929
|
+
this.webhooks = new Webhooks2(this._client);
|
|
9889
9930
|
}
|
|
9890
9931
|
retrieve(options) {
|
|
9891
9932
|
return this._client.get("/v1/organizations/me?beta=true", {
|
|
@@ -9912,6 +9953,7 @@ var Organization = /* @__PURE__ */ (() => {
|
|
|
9912
9953
|
Organization.Plugins = Plugins2;
|
|
9913
9954
|
Organization.PluginMarketplaces = PluginMarketplaces;
|
|
9914
9955
|
Organization.TelemetryDestinations = TelemetryDestinations;
|
|
9956
|
+
Organization.Webhooks = Webhooks2;
|
|
9915
9957
|
return Organization;
|
|
9916
9958
|
})();
|
|
9917
9959
|
|
|
@@ -10709,6 +10751,145 @@ var Tunnels = /* @__PURE__ */ (() => {
|
|
|
10709
10751
|
return Tunnels;
|
|
10710
10752
|
})();
|
|
10711
10753
|
|
|
10754
|
+
// node_modules/@anthropic-ai/sdk/resources/beta/user-profiles/action-urls.mjs
|
|
10755
|
+
class ActionURLs extends APIResource {
|
|
10756
|
+
create(userProfileID, params, options) {
|
|
10757
|
+
const { betas, workspace_id, ...body } = params;
|
|
10758
|
+
return this._client.post(path`/v1/user_profiles/${userProfileID}/action_urls?beta=true`, {
|
|
10759
|
+
body,
|
|
10760
|
+
...options,
|
|
10761
|
+
headers: buildHeaders([
|
|
10762
|
+
{
|
|
10763
|
+
"anthropic-beta": [...betas ?? [], "user-profiles-2026-08-18"].toString(),
|
|
10764
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
10765
|
+
},
|
|
10766
|
+
options?.headers
|
|
10767
|
+
]),
|
|
10768
|
+
__span: startApiCallSpan(this._client, "anthropic.user_profiles.action_urls.create", options, {
|
|
10769
|
+
route: "/v1/user_profiles/{user_profile_id}/action_urls",
|
|
10770
|
+
attributes: { "anthropic.user_profile.id": userProfileID }
|
|
10771
|
+
})
|
|
10772
|
+
});
|
|
10773
|
+
}
|
|
10774
|
+
}
|
|
10775
|
+
|
|
10776
|
+
// node_modules/@anthropic-ai/sdk/resources/beta/user-profiles/user-profiles.mjs
|
|
10777
|
+
var UserProfiles = /* @__PURE__ */ (() => {
|
|
10778
|
+
class UserProfiles extends APIResource {
|
|
10779
|
+
constructor() {
|
|
10780
|
+
super(...arguments);
|
|
10781
|
+
this.actionURLs = new ActionURLs(this._client);
|
|
10782
|
+
}
|
|
10783
|
+
create(params, options) {
|
|
10784
|
+
const { betas, workspace_id, ...body } = params;
|
|
10785
|
+
return this._client.post("/v1/user_profiles?beta=true", {
|
|
10786
|
+
body,
|
|
10787
|
+
...options,
|
|
10788
|
+
headers: buildHeaders([
|
|
10789
|
+
{
|
|
10790
|
+
"anthropic-beta": [...betas ?? [], "user-profiles-2026-08-18"].toString(),
|
|
10791
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
10792
|
+
},
|
|
10793
|
+
options?.headers
|
|
10794
|
+
]),
|
|
10795
|
+
__span: startApiCallSpan(this._client, "anthropic.user_profiles.create", options, {
|
|
10796
|
+
route: "/v1/user_profiles",
|
|
10797
|
+
createdIDAttribute: "anthropic.user_profile.id"
|
|
10798
|
+
})
|
|
10799
|
+
});
|
|
10800
|
+
}
|
|
10801
|
+
retrieve(userProfileID, params = {}, options) {
|
|
10802
|
+
const { betas, workspace_id } = params ?? {};
|
|
10803
|
+
return this._client.get(path`/v1/user_profiles/${userProfileID}?beta=true`, {
|
|
10804
|
+
...options,
|
|
10805
|
+
headers: buildHeaders([
|
|
10806
|
+
{
|
|
10807
|
+
"anthropic-beta": [...betas ?? [], "user-profiles-2026-08-18"].toString(),
|
|
10808
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
10809
|
+
},
|
|
10810
|
+
options?.headers
|
|
10811
|
+
]),
|
|
10812
|
+
__span: startApiCallSpan(this._client, "anthropic.user_profiles.retrieve", options, {
|
|
10813
|
+
route: "/v1/user_profiles/{user_profile_id}",
|
|
10814
|
+
attributes: { "anthropic.user_profile.id": userProfileID }
|
|
10815
|
+
})
|
|
10816
|
+
});
|
|
10817
|
+
}
|
|
10818
|
+
update(userProfileID, params, options) {
|
|
10819
|
+
const { betas, workspace_id, ...body } = params;
|
|
10820
|
+
return this._client.post(path`/v1/user_profiles/${userProfileID}?beta=true`, {
|
|
10821
|
+
body,
|
|
10822
|
+
...options,
|
|
10823
|
+
headers: buildHeaders([
|
|
10824
|
+
{
|
|
10825
|
+
"anthropic-beta": [...betas ?? [], "user-profiles-2026-08-18"].toString(),
|
|
10826
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
10827
|
+
},
|
|
10828
|
+
options?.headers
|
|
10829
|
+
]),
|
|
10830
|
+
__span: startApiCallSpan(this._client, "anthropic.user_profiles.update", options, {
|
|
10831
|
+
route: "/v1/user_profiles/{user_profile_id}",
|
|
10832
|
+
attributes: { "anthropic.user_profile.id": userProfileID }
|
|
10833
|
+
})
|
|
10834
|
+
});
|
|
10835
|
+
}
|
|
10836
|
+
list(params = {}, options) {
|
|
10837
|
+
const { betas, workspace_id, ...query } = params ?? {};
|
|
10838
|
+
return this._client.getAPIList("/v1/user_profiles?beta=true", PageCursor, {
|
|
10839
|
+
query,
|
|
10840
|
+
...options,
|
|
10841
|
+
headers: buildHeaders([
|
|
10842
|
+
{
|
|
10843
|
+
"anthropic-beta": [...betas ?? [], "user-profiles-2026-08-18"].toString(),
|
|
10844
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
10845
|
+
},
|
|
10846
|
+
options?.headers
|
|
10847
|
+
]),
|
|
10848
|
+
__span: startApiCallSpan(this._client, "anthropic.user_profiles.list", options, {
|
|
10849
|
+
route: "/v1/user_profiles",
|
|
10850
|
+
queryParams: ["limit", "order", "order_by", "page"]
|
|
10851
|
+
})
|
|
10852
|
+
});
|
|
10853
|
+
}
|
|
10854
|
+
delete(userProfileID, params = {}, options) {
|
|
10855
|
+
const { betas, workspace_id } = params ?? {};
|
|
10856
|
+
return this._client.delete(path`/v1/user_profiles/${userProfileID}?beta=true`, {
|
|
10857
|
+
...options,
|
|
10858
|
+
headers: buildHeaders([
|
|
10859
|
+
{
|
|
10860
|
+
"anthropic-beta": [...betas ?? [], "user-profiles-2026-08-18"].toString(),
|
|
10861
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
10862
|
+
},
|
|
10863
|
+
options?.headers
|
|
10864
|
+
]),
|
|
10865
|
+
__span: startApiCallSpan(this._client, "anthropic.user_profiles.delete", options, {
|
|
10866
|
+
route: "/v1/user_profiles/{user_profile_id}",
|
|
10867
|
+
attributes: { "anthropic.user_profile.id": userProfileID }
|
|
10868
|
+
})
|
|
10869
|
+
});
|
|
10870
|
+
}
|
|
10871
|
+
createEnrollmentURL(userProfileID, params = {}, options) {
|
|
10872
|
+
const { betas, workspace_id } = params ?? {};
|
|
10873
|
+
return this._client.post(path`/v1/user_profiles/${userProfileID}/enrollment_url?beta=true`, {
|
|
10874
|
+
...options,
|
|
10875
|
+
headers: buildHeaders([
|
|
10876
|
+
{
|
|
10877
|
+
"anthropic-beta": [...betas ?? [], "user-profiles-2026-08-18"].toString(),
|
|
10878
|
+
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
10879
|
+
},
|
|
10880
|
+
options?.headers
|
|
10881
|
+
]),
|
|
10882
|
+
__span: startApiCallSpan(this._client, "anthropic.user_profiles.create_enrollment_url", options, {
|
|
10883
|
+
route: "/v1/user_profiles/{user_profile_id}/enrollment_url",
|
|
10884
|
+
attributes: { "anthropic.user_profile.id": userProfileID }
|
|
10885
|
+
})
|
|
10886
|
+
});
|
|
10887
|
+
}
|
|
10888
|
+
}
|
|
10889
|
+
UserProfiles.ActionURLs = ActionURLs;
|
|
10890
|
+
return UserProfiles;
|
|
10891
|
+
})();
|
|
10892
|
+
|
|
10712
10893
|
// node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs
|
|
10713
10894
|
class Credentials extends APIResource {
|
|
10714
10895
|
create(vaultID, params, options) {
|
|
@@ -12566,6 +12747,20 @@ class Members3 extends APIResource {
|
|
|
12566
12747
|
|
|
12567
12748
|
// node_modules/@anthropic-ai/sdk/resources/organization/workspaces/rate-limits.mjs
|
|
12568
12749
|
class RateLimits4 extends APIResource {
|
|
12750
|
+
update(rateLimitID, params, options) {
|
|
12751
|
+
const { workspace_id, ...body } = params;
|
|
12752
|
+
return this._client.post(path`/v1/organizations/workspaces/${workspace_id}/rate_limits/${rateLimitID}`, {
|
|
12753
|
+
body,
|
|
12754
|
+
...options,
|
|
12755
|
+
__span: startApiCallSpan(this._client, "anthropic.organization.workspaces.rate_limits.update", options, {
|
|
12756
|
+
route: "/v1/organizations/workspaces/{workspace_id}/rate_limits/{rate_limit_id}",
|
|
12757
|
+
attributes: {
|
|
12758
|
+
"anthropic.organization.workspace.id": workspace_id,
|
|
12759
|
+
"anthropic.organization.workspace.rate_limit.id": rateLimitID
|
|
12760
|
+
}
|
|
12761
|
+
})
|
|
12762
|
+
});
|
|
12763
|
+
}
|
|
12569
12764
|
list(workspaceID, query = {}, options) {
|
|
12570
12765
|
return this._client.getAPIList(path`/v1/organizations/workspaces/${workspaceID}/rate_limits`, PageCursor, {
|
|
12571
12766
|
query,
|
|
@@ -12878,6 +13073,109 @@ var Skills3 = /* @__PURE__ */ (() => {
|
|
|
12878
13073
|
Skills.Versions = Versions4;
|
|
12879
13074
|
return Skills;
|
|
12880
13075
|
})();
|
|
13076
|
+
// node_modules/@anthropic-ai/sdk/resources/user-profiles/action-urls.mjs
|
|
13077
|
+
class ActionURLs2 extends APIResource {
|
|
13078
|
+
create(userProfileID, params, options) {
|
|
13079
|
+
const { workspace_id, ...body } = params;
|
|
13080
|
+
return this._client.post(path`/v1/user_profiles/${userProfileID}/action_urls`, {
|
|
13081
|
+
body,
|
|
13082
|
+
...options,
|
|
13083
|
+
headers: buildHeaders([
|
|
13084
|
+
{ ...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined },
|
|
13085
|
+
options?.headers
|
|
13086
|
+
]),
|
|
13087
|
+
__span: startApiCallSpan(this._client, "anthropic.user_profiles.action_urls.create", options, {
|
|
13088
|
+
route: "/v1/user_profiles/{user_profile_id}/action_urls",
|
|
13089
|
+
attributes: { "anthropic.user_profile.id": userProfileID }
|
|
13090
|
+
})
|
|
13091
|
+
});
|
|
13092
|
+
}
|
|
13093
|
+
}
|
|
13094
|
+
|
|
13095
|
+
// node_modules/@anthropic-ai/sdk/resources/user-profiles/user-profiles.mjs
|
|
13096
|
+
var UserProfiles2 = /* @__PURE__ */ (() => {
|
|
13097
|
+
class UserProfiles extends APIResource {
|
|
13098
|
+
constructor() {
|
|
13099
|
+
super(...arguments);
|
|
13100
|
+
this.actionURLs = new ActionURLs2(this._client);
|
|
13101
|
+
}
|
|
13102
|
+
create(params, options) {
|
|
13103
|
+
const { workspace_id, ...body } = params;
|
|
13104
|
+
return this._client.post("/v1/user_profiles", {
|
|
13105
|
+
body,
|
|
13106
|
+
...options,
|
|
13107
|
+
headers: buildHeaders([
|
|
13108
|
+
{ ...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined },
|
|
13109
|
+
options?.headers
|
|
13110
|
+
]),
|
|
13111
|
+
__span: startApiCallSpan(this._client, "anthropic.user_profiles.create", options, {
|
|
13112
|
+
route: "/v1/user_profiles",
|
|
13113
|
+
createdIDAttribute: "anthropic.user_profile.id"
|
|
13114
|
+
})
|
|
13115
|
+
});
|
|
13116
|
+
}
|
|
13117
|
+
retrieve(userProfileID, params = {}, options) {
|
|
13118
|
+
const { workspace_id } = params ?? {};
|
|
13119
|
+
return this._client.get(path`/v1/user_profiles/${userProfileID}`, {
|
|
13120
|
+
...options,
|
|
13121
|
+
headers: buildHeaders([
|
|
13122
|
+
{ ...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined },
|
|
13123
|
+
options?.headers
|
|
13124
|
+
]),
|
|
13125
|
+
__span: startApiCallSpan(this._client, "anthropic.user_profiles.retrieve", options, {
|
|
13126
|
+
route: "/v1/user_profiles/{user_profile_id}",
|
|
13127
|
+
attributes: { "anthropic.user_profile.id": userProfileID }
|
|
13128
|
+
})
|
|
13129
|
+
});
|
|
13130
|
+
}
|
|
13131
|
+
update(userProfileID, params, options) {
|
|
13132
|
+
const { workspace_id, ...body } = params;
|
|
13133
|
+
return this._client.post(path`/v1/user_profiles/${userProfileID}`, {
|
|
13134
|
+
body,
|
|
13135
|
+
...options,
|
|
13136
|
+
headers: buildHeaders([
|
|
13137
|
+
{ ...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined },
|
|
13138
|
+
options?.headers
|
|
13139
|
+
]),
|
|
13140
|
+
__span: startApiCallSpan(this._client, "anthropic.user_profiles.update", options, {
|
|
13141
|
+
route: "/v1/user_profiles/{user_profile_id}",
|
|
13142
|
+
attributes: { "anthropic.user_profile.id": userProfileID }
|
|
13143
|
+
})
|
|
13144
|
+
});
|
|
13145
|
+
}
|
|
13146
|
+
list(params = {}, options) {
|
|
13147
|
+
const { workspace_id, ...query } = params ?? {};
|
|
13148
|
+
return this._client.getAPIList("/v1/user_profiles", PageCursor, {
|
|
13149
|
+
query,
|
|
13150
|
+
...options,
|
|
13151
|
+
headers: buildHeaders([
|
|
13152
|
+
{ ...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined },
|
|
13153
|
+
options?.headers
|
|
13154
|
+
]),
|
|
13155
|
+
__span: startApiCallSpan(this._client, "anthropic.user_profiles.list", options, {
|
|
13156
|
+
route: "/v1/user_profiles",
|
|
13157
|
+
queryParams: ["limit", "order", "order_by", "page"]
|
|
13158
|
+
})
|
|
13159
|
+
});
|
|
13160
|
+
}
|
|
13161
|
+
delete(userProfileID, params = {}, options) {
|
|
13162
|
+
const { workspace_id } = params ?? {};
|
|
13163
|
+
return this._client.delete(path`/v1/user_profiles/${userProfileID}`, {
|
|
13164
|
+
...options,
|
|
13165
|
+
headers: buildHeaders([
|
|
13166
|
+
{ ...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined },
|
|
13167
|
+
options?.headers
|
|
13168
|
+
]),
|
|
13169
|
+
__span: startApiCallSpan(this._client, "anthropic.user_profiles.delete", options, {
|
|
13170
|
+
route: "/v1/user_profiles/{user_profile_id}",
|
|
13171
|
+
attributes: { "anthropic.user_profile.id": userProfileID }
|
|
13172
|
+
})
|
|
13173
|
+
});
|
|
13174
|
+
}
|
|
13175
|
+
}
|
|
13176
|
+
UserProfiles.ActionURLs = ActionURLs2;
|
|
13177
|
+
return UserProfiles;
|
|
13178
|
+
})();
|
|
12881
13179
|
// node_modules/@anthropic-ai/sdk/client.mjs
|
|
12882
13180
|
var _BaseAnthropic_instances;
|
|
12883
13181
|
var _a;
|
|
@@ -13578,6 +13876,7 @@ var Anthropic = /* @__PURE__ */ (() => {
|
|
|
13578
13876
|
this.models = new Models2(this);
|
|
13579
13877
|
this.files = new Files2(this);
|
|
13580
13878
|
this.skills = new Skills3(this);
|
|
13879
|
+
this.userProfiles = new UserProfiles2(this);
|
|
13581
13880
|
this.organization = new Organization2(this);
|
|
13582
13881
|
this.beta = new Beta(this);
|
|
13583
13882
|
}
|
|
@@ -13587,6 +13886,7 @@ var Anthropic = /* @__PURE__ */ (() => {
|
|
|
13587
13886
|
Anthropic.Models = Models2;
|
|
13588
13887
|
Anthropic.Files = Files2;
|
|
13589
13888
|
Anthropic.Skills = Skills3;
|
|
13889
|
+
Anthropic.UserProfiles = UserProfiles2;
|
|
13590
13890
|
Anthropic.Organization = Organization2;
|
|
13591
13891
|
Anthropic.Beta = Beta;
|
|
13592
13892
|
return Anthropic;
|