@deepraxis/cli 0.1.0-dev.98b03cc → 0.1.0-dev.9d9e2b6
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/COMMANDS.md +374 -0
- package/LICENSE +202 -67
- package/README.md +200 -36
- package/dist/praxis.js +437 -46
- package/package.json +22 -13
package/dist/praxis.js
CHANGED
|
@@ -10,7 +10,7 @@ var operations = [
|
|
|
10
10
|
{
|
|
11
11
|
resource: "agent.agents",
|
|
12
12
|
method: "list",
|
|
13
|
-
summary: "",
|
|
13
|
+
summary: "List agents",
|
|
14
14
|
description: "List the agents of the workspace behind your API key, newest first, in pages of at most 100 (default 20). Use it to find an agent id before creating a session; to read one agent use agents.retrieve, to see its history use agents.versions.list. Archived agents are hidden unless include_archived is true. Filter kind=personal for durable-computer agents or kind=service for per-session environments. Pass next_page from the response as page to read the next page; a null next_page means the end.",
|
|
15
15
|
http: "GET",
|
|
16
16
|
path: "/agent/v1/agents",
|
|
@@ -67,7 +67,7 @@ var operations = [
|
|
|
67
67
|
{
|
|
68
68
|
resource: "agent.agents",
|
|
69
69
|
method: "create",
|
|
70
|
-
summary: "",
|
|
70
|
+
summary: "Create agent",
|
|
71
71
|
description: 'Create a reusable agent definition, then pass its returned id to sessions.create to start a conversation. The definition includes model, system prompt, tools, MCP servers and an optional multiagent roster. It is saved as version 1; real updates create new versions. Unlike Anthropic Managed Agents, nonempty skills attachments and custom tool entries return 400; the native skill tool is separate from the skills field. Use tools: [{type: "agent_toolset_20260401"}] for built-in tools including codemode, skill and agent; inspect toolsets.list for names and schemas, and keep bash enabled for native additions. To offer only some tools, set default_config: {enabled: false} and list the tools to keep in configs, e.g. tools: [{type: "agent_toolset_20260401", default_config: {enabled: false}, configs: [{name: "codemode", enabled: true}, {name: "bash", enabled: true, permission_policy: {type: "always_ask"}}]}]; every tool not listed, including todo_write, enter_plan_mode, ask_user_question and goal_read, follows default_config, and the response echoes it. codemode runs through bash, so enabling codemode while bash is disabled returns 400. Optional mcp_toolset entries pair with mcp_servers. model accepts platform model IDs such as deepseek-flash, not only the Claude IDs in the protocol examples. model.settings.reasoning sets default thinking; other extra model controls return 400. Example: {"name":"helper","model":{"id":"deepseek-flash"},"tools":[{"type":"agent_toolset_20260401"}]}.',
|
|
72
72
|
http: "POST",
|
|
73
73
|
path: "/agent/v1/agents",
|
|
@@ -101,7 +101,7 @@ var operations = [
|
|
|
101
101
|
type: "array",
|
|
102
102
|
itemType: "object",
|
|
103
103
|
required: false,
|
|
104
|
-
description: "
|
|
104
|
+
description: "Praxis extension: HTTP, SSE or trusted stdio MCP servers paired with mcp_toolset entries and saved with the agent version."
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
name: "metadata",
|
|
@@ -190,7 +190,7 @@ across all toolsets allowed.`
|
|
|
190
190
|
{
|
|
191
191
|
resource: "agent.agents",
|
|
192
192
|
method: "retrieve",
|
|
193
|
-
summary: "",
|
|
193
|
+
summary: "Get agent",
|
|
194
194
|
description: "Read one agent by id, at its latest version or, with version, at a specific earlier version. The response lists every native tool with its resolved configuration in one agent_toolset_20260401 entry, so it can be sent back unchanged to agents.update. Use agents.versions.list to enumerate versions.",
|
|
195
195
|
http: "GET",
|
|
196
196
|
path: "/agent/v1/agents/{agent_id}",
|
|
@@ -214,7 +214,7 @@ across all toolsets allowed.`
|
|
|
214
214
|
{
|
|
215
215
|
resource: "agent.agents",
|
|
216
216
|
method: "update",
|
|
217
|
-
summary: "",
|
|
217
|
+
summary: "Update agent",
|
|
218
218
|
description: "Update an agent. Send the current version in the body for optimistic concurrency: a stale version returns 409, and an update that changes nothing keeps the version number. Any real change saves a new version; existing sessions keep the version they were created with. Omitted fields keep their value. multiagent takes null or a coordinator roster; subagent_model keeps its value when omitted and is cleared by null. Archived agents cannot be updated. Unlike Anthropic Managed Agents, nonempty skills attachments and custom tools return 400; use the native skill tool for available runtime skills.",
|
|
219
219
|
http: "POST",
|
|
220
220
|
path: "/agent/v1/agents/{agent_id}",
|
|
@@ -241,7 +241,7 @@ across all toolsets allowed.`
|
|
|
241
241
|
type: "array",
|
|
242
242
|
itemType: "object",
|
|
243
243
|
required: false,
|
|
244
|
-
description: "
|
|
244
|
+
description: "Praxis extension: HTTP, SSE or trusted stdio MCP servers paired with mcp_toolset entries and saved with the agent version."
|
|
245
245
|
},
|
|
246
246
|
{
|
|
247
247
|
name: "metadata",
|
|
@@ -355,7 +355,7 @@ current version; omit to apply the update unconditionally.`
|
|
|
355
355
|
{
|
|
356
356
|
resource: "agent.agents",
|
|
357
357
|
method: "archive",
|
|
358
|
-
summary: "",
|
|
358
|
+
summary: "Archive agent",
|
|
359
359
|
description: "Archive an agent so it can no longer be updated and no new session can be created from it (AGENT_ARCHIVED). The agent and all of its versions stay readable. Use it to retire an agent you no longer want to run; it does not delete anything.",
|
|
360
360
|
http: "POST",
|
|
361
361
|
path: "/agent/v1/agents/{agent_id}/archive",
|
|
@@ -372,7 +372,7 @@ current version; omit to apply the update unconditionally.`
|
|
|
372
372
|
{
|
|
373
373
|
resource: "agent.agents.versions",
|
|
374
374
|
method: "list",
|
|
375
|
-
summary: "",
|
|
375
|
+
summary: "List agent versions",
|
|
376
376
|
description: "List the saved versions of one agent, in pages of at most 100 (default 20). Each item is the full agent definition at that version, so you can compare what changed between versions. Use agents.retrieve with version to read a single one; agent_id comes from agents.list or agents.create.",
|
|
377
377
|
http: "GET",
|
|
378
378
|
path: "/agent/v1/agents/{agent_id}/versions",
|
|
@@ -648,7 +648,7 @@ Praxis extension: MA only has session-scoped temporary containers and memory_sto
|
|
|
648
648
|
{
|
|
649
649
|
resource: "agent.deploymentRuns",
|
|
650
650
|
method: "list",
|
|
651
|
-
summary: "",
|
|
651
|
+
summary: "List deployment runs",
|
|
652
652
|
description: "List deployment runs newest first. Filter by deployment_id, has_error, trigger_type (manual or schedule) and created_at[gt|gte|lt|lte]. The default limit is 20, maximum 100; pass next_page as page with the same filters to continue. Each record identifies the resolved agent version and either its session or creation error.",
|
|
653
653
|
http: "GET",
|
|
654
654
|
path: "/agent/v1/deployment_runs",
|
|
@@ -723,7 +723,7 @@ Praxis extension: MA only has session-scoped temporary containers and memory_sto
|
|
|
723
723
|
{
|
|
724
724
|
resource: "agent.deploymentRuns",
|
|
725
725
|
method: "retrieve",
|
|
726
|
-
summary: "",
|
|
726
|
+
summary: "Get deployment run",
|
|
727
727
|
description: "Read a deployment run by the drun_ id returned by deployments.run or deployment_runs.list. Exactly one of session_id and error is non-null. Scheduled runs include scheduled_at in trigger_context. Foreign or absent ids return 404.",
|
|
728
728
|
http: "GET",
|
|
729
729
|
path: "/agent/v1/deployment_runs/{deployment_run_id}",
|
|
@@ -740,7 +740,7 @@ Praxis extension: MA only has session-scoped temporary containers and memory_sto
|
|
|
740
740
|
{
|
|
741
741
|
resource: "agent.deployments",
|
|
742
742
|
method: "list",
|
|
743
|
-
summary: "",
|
|
743
|
+
summary: "List deployments",
|
|
744
744
|
description: "List stored deployments newest first. Filter by agent_id, status, or inclusive created_at bounds; status and include_archived cannot be combined, even when include_archived is false. The default limit is 20, maximum 100; pass next_page as page to continue. Archived deployments are hidden by default. Schedules show up to five future wall-clock occurrences, also while paused; archived schedules show none.",
|
|
745
745
|
http: "GET",
|
|
746
746
|
path: "/agent/v1/deployments",
|
|
@@ -804,8 +804,8 @@ archived).`
|
|
|
804
804
|
{
|
|
805
805
|
resource: "agent.deployments",
|
|
806
806
|
method: "create",
|
|
807
|
-
summary: "",
|
|
808
|
-
description: "Freeze session parameters as a deployment; this operation does not open a session. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for personal agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources
|
|
807
|
+
summary: "Create deployment",
|
|
808
|
+
description: "Freeze session parameters as a deployment; this operation does not open a session. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for personal agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Active schedules run every minute when due; session creation errors pause the deployment. Unsupported tools, mcp_servers, system and skills overrides return 400.",
|
|
809
809
|
http: "POST",
|
|
810
810
|
path: "/agent/v1/deployments",
|
|
811
811
|
streaming: "no",
|
|
@@ -894,7 +894,7 @@ created from this deployment. Maximum 50.`
|
|
|
894
894
|
{
|
|
895
895
|
resource: "agent.deployments",
|
|
896
896
|
method: "retrieve",
|
|
897
|
-
summary: "",
|
|
897
|
+
summary: "Get deployment",
|
|
898
898
|
description: "Read a stored deployment by its depl_ id from deployments.create or deployments.list. The agent reference has a concrete version; own-face overrides are echoed unchanged. This read recomputes upcoming schedule times and does not execute the deployment. Foreign or absent ids return 404.",
|
|
899
899
|
http: "GET",
|
|
900
900
|
path: "/agent/v1/deployments/{deployment_id}",
|
|
@@ -911,7 +911,7 @@ created from this deployment. Maximum 50.`
|
|
|
911
911
|
{
|
|
912
912
|
resource: "agent.deployments",
|
|
913
913
|
method: "update",
|
|
914
|
-
summary: "",
|
|
914
|
+
summary: "Update deployment",
|
|
915
915
|
description: "Partially update a deployment. Omitted fields keep their values; a supplied agent id re-pins the latest version, or supply a versioned reference. Metadata merges string values and deletes keys set to null. Null clears schedule, resources and description; name, environment_id and initial_events cannot be cleared. Archived deployments return 409. Overrides apply to new sessions; updating a schedule recalculates its next occurrence.",
|
|
916
916
|
http: "POST",
|
|
917
917
|
path: "/agent/v1/deployments/{deployment_id}",
|
|
@@ -1009,7 +1009,7 @@ null to clear. Maximum 50.`
|
|
|
1009
1009
|
{
|
|
1010
1010
|
resource: "agent.deployments",
|
|
1011
1011
|
method: "archive",
|
|
1012
|
-
summary: "",
|
|
1012
|
+
summary: "Archive deployment",
|
|
1013
1013
|
description: "Archive a deployment by its depl_ id. Repeated calls are idempotent; archived deployments remain readable and have no upcoming schedule times. Subsequent update, pause and unpause calls return 409. This operation does not create a deployment run.",
|
|
1014
1014
|
http: "POST",
|
|
1015
1015
|
path: "/agent/v1/deployments/{deployment_id}/archive",
|
|
@@ -1026,7 +1026,7 @@ null to clear. Maximum 50.`
|
|
|
1026
1026
|
{
|
|
1027
1027
|
resource: "agent.deployments",
|
|
1028
1028
|
method: "pause",
|
|
1029
|
-
summary: "",
|
|
1029
|
+
summary: "Pause deployment",
|
|
1030
1030
|
description: "Pause an active deployment and set paused_reason to {type: manual}. Repeated pause calls are idempotent; archived deployments return 409. Upcoming schedule times remain visible while paused; no run is executed.",
|
|
1031
1031
|
http: "POST",
|
|
1032
1032
|
path: "/agent/v1/deployments/{deployment_id}/pause",
|
|
@@ -1043,7 +1043,7 @@ null to clear. Maximum 50.`
|
|
|
1043
1043
|
{
|
|
1044
1044
|
resource: "agent.deployments.run",
|
|
1045
1045
|
method: "create",
|
|
1046
|
-
summary: "",
|
|
1046
|
+
summary: "Run deployment",
|
|
1047
1047
|
description: "Create one session from an active deployment using its pinned agent version and stored parameters. Pass the depl_ id from deployments.create or deployments.list; no request body is needed. Returns a drun_ record with exactly one of session_id or error populated. Creation errors automatically pause the deployment; paused or archived deployments return 409 without a run. Unlike the own face, the compatible face rejects computer targets with 400.",
|
|
1048
1048
|
http: "POST",
|
|
1049
1049
|
path: "/agent/v1/deployments/{deployment_id}/run",
|
|
@@ -1060,7 +1060,7 @@ null to clear. Maximum 50.`
|
|
|
1060
1060
|
{
|
|
1061
1061
|
resource: "agent.deployments.unpause",
|
|
1062
1062
|
method: "create",
|
|
1063
|
-
summary: "",
|
|
1063
|
+
summary: "Unpause deployment",
|
|
1064
1064
|
description: "Resume a paused deployment and clear paused_reason. Repeated unpause calls on an active deployment are idempotent; archived deployments return 409. This operation changes resource state only and does not execute a run.",
|
|
1065
1065
|
http: "POST",
|
|
1066
1066
|
path: "/agent/v1/deployments/{deployment_id}/unpause",
|
|
@@ -1074,6 +1074,45 @@ null to clear. Maximum 50.`
|
|
|
1074
1074
|
],
|
|
1075
1075
|
query: []
|
|
1076
1076
|
},
|
|
1077
|
+
{
|
|
1078
|
+
resource: "agent.embedTokens",
|
|
1079
|
+
method: "list",
|
|
1080
|
+
summary: "List Embed Tokens",
|
|
1081
|
+
description: `List embed token issuance records in your organization.
|
|
1082
|
+
|
|
1083
|
+
Includes expired and revoked grants; returns neither token nor token_id. Sorts by created_at, then grant id, both descending. agent_id accepts agent_ or agt_; external_user_id matches exactly. limit is 1–100 (default 20). Reuse next_page as page with the same filters and organization; a mismatch returns 400. End-user credentials return 404.`,
|
|
1084
|
+
http: "GET",
|
|
1085
|
+
path: "/agent/v1/embed_tokens",
|
|
1086
|
+
streaming: "no",
|
|
1087
|
+
pagination: false,
|
|
1088
|
+
pathParams: [],
|
|
1089
|
+
query: [
|
|
1090
|
+
{
|
|
1091
|
+
name: "agent_id",
|
|
1092
|
+
type: "string",
|
|
1093
|
+
required: false,
|
|
1094
|
+
description: "Filter by service agent identifier (agent_ or agt_ prefix)."
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
name: "external_user_id",
|
|
1098
|
+
type: "string",
|
|
1099
|
+
required: false,
|
|
1100
|
+
description: "Exact host user identifier supplied at issuance."
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
name: "limit",
|
|
1104
|
+
type: "integer",
|
|
1105
|
+
required: false,
|
|
1106
|
+
description: "Maximum records per page; defaults to 20."
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
name: "page",
|
|
1110
|
+
type: "string",
|
|
1111
|
+
required: false,
|
|
1112
|
+
description: "next_page from a previous response with the same filters."
|
|
1113
|
+
}
|
|
1114
|
+
]
|
|
1115
|
+
},
|
|
1077
1116
|
{
|
|
1078
1117
|
resource: "agent.embedTokens",
|
|
1079
1118
|
method: "create",
|
|
@@ -1149,10 +1188,29 @@ Requires an active service agent in your organization with an embed policy. Pins
|
|
|
1149
1188
|
]
|
|
1150
1189
|
}
|
|
1151
1190
|
},
|
|
1191
|
+
{
|
|
1192
|
+
resource: "agent.embedTokens.revoke",
|
|
1193
|
+
method: "create",
|
|
1194
|
+
summary: "Revoke Embed Token",
|
|
1195
|
+
description: `Revoke an embed token and close its open event streams.
|
|
1196
|
+
|
|
1197
|
+
Use an id from issuance or listing. Revokes the credential before setting revoked_at; upstream failure leaves it unset. Streams receive session.error (EMBED_TOKEN_REVOKED), then close immediately; other credentials are unaffected. Idempotent; repeats return the original revoked record without another revocation or audit. Missing or foreign grants and end-user credentials return 404.`,
|
|
1198
|
+
http: "POST",
|
|
1199
|
+
path: "/agent/v1/embed_tokens/{id}/revoke",
|
|
1200
|
+
streaming: "no",
|
|
1201
|
+
pagination: false,
|
|
1202
|
+
pathParams: [
|
|
1203
|
+
{
|
|
1204
|
+
name: "id",
|
|
1205
|
+
sdkName: "id"
|
|
1206
|
+
}
|
|
1207
|
+
],
|
|
1208
|
+
query: []
|
|
1209
|
+
},
|
|
1152
1210
|
{
|
|
1153
1211
|
resource: "agent.environments",
|
|
1154
1212
|
method: "list",
|
|
1155
|
-
summary: "",
|
|
1213
|
+
summary: "List environments",
|
|
1156
1214
|
description: "List execution environments: the built-in recipes and the tenant-owned cloud environments that a session can run in. Archived environments are hidden unless include_archived is true. Pages hold at most 100 items (default 20); pass next_page as page to continue. Use the returned id as environment_id when creating a session.",
|
|
1157
1215
|
http: "GET",
|
|
1158
1216
|
path: "/agent/v1/environments",
|
|
@@ -1187,7 +1245,7 @@ Requires an active service agent in your organization with an embed policy. Pins
|
|
|
1187
1245
|
{
|
|
1188
1246
|
resource: "agent.environments",
|
|
1189
1247
|
method: "create",
|
|
1190
|
-
summary: "",
|
|
1248
|
+
summary: "Create environment",
|
|
1191
1249
|
description: "Create a tenant-owned cloud environment: a sandbox recipe (packages to install and networking policy) that sessions can select through environment_id. Package installation happens when the session's sandbox is created; a failed install terminates that session with ENVIRONMENT_PACKAGE_INSTALL_FAILED. Limited networking is applied at sandbox creation. Unlike Anthropic Managed Agents, self_hosted environments, scope and cross-session package caching are not supported.",
|
|
1192
1250
|
http: "POST",
|
|
1193
1251
|
path: "/agent/v1/environments",
|
|
@@ -1241,7 +1299,7 @@ rejected. If not specified, defaults based on organization type.`
|
|
|
1241
1299
|
{
|
|
1242
1300
|
resource: "agent.environments",
|
|
1243
1301
|
method: "retrieve",
|
|
1244
|
-
summary: "",
|
|
1302
|
+
summary: "Get environment",
|
|
1245
1303
|
description: "Read one environment's configuration and status by id. Built-in environments are readable but never editable; tenant-owned ones can be updated or archived. environment_id comes from environments.list or environments.create.",
|
|
1246
1304
|
http: "GET",
|
|
1247
1305
|
path: "/agent/v1/environments/{environment_id}",
|
|
@@ -1258,7 +1316,7 @@ rejected. If not specified, defaults based on organization type.`
|
|
|
1258
1316
|
{
|
|
1259
1317
|
resource: "agent.environments",
|
|
1260
1318
|
method: "update",
|
|
1261
|
-
summary: "",
|
|
1319
|
+
summary: "Update environment",
|
|
1262
1320
|
description: "Update the configuration of a tenant-owned cloud environment. Built-in environments are read-only. Package installation and limited networking are applied when a session's sandbox is created. Omitted fields keep their value.",
|
|
1263
1321
|
http: "POST",
|
|
1264
1322
|
path: "/agent/v1/environments/{environment_id}",
|
|
@@ -1317,7 +1375,7 @@ owning account only.`
|
|
|
1317
1375
|
{
|
|
1318
1376
|
resource: "agent.environments",
|
|
1319
1377
|
method: "archive",
|
|
1320
|
-
summary: "",
|
|
1378
|
+
summary: "Archive environment",
|
|
1321
1379
|
description: "Soft-archive a tenant-owned cloud environment so it can no longer be used to create new sessions. Built-in environments are read-only and cannot be archived.",
|
|
1322
1380
|
http: "POST",
|
|
1323
1381
|
path: "/agent/v1/environments/{environment_id}/archive",
|
|
@@ -1334,7 +1392,7 @@ owning account only.`
|
|
|
1334
1392
|
{
|
|
1335
1393
|
resource: "agent.sessions",
|
|
1336
1394
|
method: "list",
|
|
1337
|
-
summary: "",
|
|
1395
|
+
summary: "List sessions",
|
|
1338
1396
|
description: "List sessions of the workspace behind your API key, newest first, in pages of at most 100 (default 20). Unlike Anthropic Managed Agents, only limit, page, agent_id and deployment_id are honored; the other filters declared here (agent_version, created_at ranges, memory_store_id, include_archived, order, statuses) are not supported and return 400. Use the returned id with sessions.retrieve or sessions.events.list; pass next_page as page for the next page.",
|
|
1339
1397
|
http: "GET",
|
|
1340
1398
|
path: "/agent/v1/sessions",
|
|
@@ -1440,8 +1498,8 @@ owning account only.`
|
|
|
1440
1498
|
{
|
|
1441
1499
|
resource: "agent.sessions",
|
|
1442
1500
|
method: "create",
|
|
1443
|
-
summary: "",
|
|
1444
|
-
description: `Create a session: one conversation with an agent, running on a machine. Pass agent as an agent id (latest version) or {id, version, type:"agent"}. Unlike Anthropic Managed Agents, omit environment_id to get a light machine, unless computer_id (explicit, or the agent's default) selects a Computer; pass environment_id for a sandbox recipe. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Inline agent overrides
|
|
1501
|
+
summary: "Create session",
|
|
1502
|
+
description: `Create a session: one conversation with an agent, running on a machine. Pass agent as an agent id (latest version) or {id, version, type:"agent"}. Unlike Anthropic Managed Agents, omit environment_id to get a light machine, unless computer_id (explicit, or the agent's default) selects a Computer; pass environment_id for a sandbox recipe. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Inline agent overrides are not supported. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Omitted budget defaults to USD 20; null removes the limit, and a limit object uses a positive integer string of USD cents. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion.`,
|
|
1445
1503
|
http: "POST",
|
|
1446
1504
|
path: "/agent/v1/sessions",
|
|
1447
1505
|
streaming: "no",
|
|
@@ -1544,7 +1602,7 @@ offsets ("+08:00") and unknown names return 400. Never stored in
|
|
|
1544
1602
|
{
|
|
1545
1603
|
resource: "agent.sessions",
|
|
1546
1604
|
method: "retrieve",
|
|
1547
|
-
summary: "",
|
|
1605
|
+
summary: "Get session",
|
|
1548
1606
|
description: "Read one session by id: its agent snapshot, status, model and thinking selection, resources, title, metadata and, for a fork, forked_from. Use it to poll status; to read what happened use sessions.events.list. This response does not include a machine object or sandbox id. With no environment_id or Computer selected at creation, the session starts on a light machine; no environment lookup or provisioning is needed for a codemode calculation.",
|
|
1549
1607
|
http: "GET",
|
|
1550
1608
|
path: "/agent/v1/sessions/{session_id}",
|
|
@@ -1561,8 +1619,8 @@ offsets ("+08:00") and unknown names return 400. Never stored in
|
|
|
1561
1619
|
{
|
|
1562
1620
|
resource: "agent.sessions",
|
|
1563
1621
|
method: "update",
|
|
1564
|
-
summary: "",
|
|
1565
|
-
description: "Update a session's title, metadata, model or thinking selection. metadata follows patch semantics: a string value sets the key, null deletes it, a null metadata clears all keys, untouched keys stay. model must be allowed by the session's agent version; thinking is {effort} or null (null restores inheritance); a model-only change clears a session thinking that the new model does not support, and combined changes are validated against the new model, with the previous selection kept on a 400. Changes apply from the next turn, not to a turn already running. Agent overrides
|
|
1622
|
+
summary: "Update session",
|
|
1623
|
+
description: "Update a session's title, metadata, model or thinking selection. metadata follows patch semantics: a string value sets the key, null deletes it, a null metadata clears all keys, untouched keys stay. model must be allowed by the session's agent version; thinking is {effort} or null (null restores inheritance); a model-only change clears a session thinking that the new model does not support, and combined changes are validated against the new model, with the previous selection kept on a 400. Changes apply from the next turn, not to a turn already running. Agent overrides are not supported (400 naming the field). Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. A budget limit must exceed consumed cost; null removes it permanently for this session. Updating an archived session returns 409.",
|
|
1566
1624
|
http: "POST",
|
|
1567
1625
|
path: "/agent/v1/sessions/{session_id}",
|
|
1568
1626
|
streaming: "no",
|
|
@@ -1627,7 +1685,7 @@ delete it. Omit the field to preserve.`
|
|
|
1627
1685
|
{
|
|
1628
1686
|
resource: "agent.sessions",
|
|
1629
1687
|
method: "archive",
|
|
1630
|
-
summary: "",
|
|
1688
|
+
summary: "Archive session",
|
|
1631
1689
|
description: "Archive a session. An archived session refuses new messages with 400 invalid_request_error, while its details and event history stay readable. Archiving again is idempotent and archived_at keeps the first archive time. Use it when a conversation is finished; it does not delete anything.",
|
|
1632
1690
|
http: "POST",
|
|
1633
1691
|
path: "/agent/v1/sessions/{session_id}/archive",
|
|
@@ -1813,7 +1871,7 @@ Praxis extension available only on /agent/v1, following Claude Agent SDK getCont
|
|
|
1813
1871
|
{
|
|
1814
1872
|
resource: "agent.sessions.events",
|
|
1815
1873
|
method: "list",
|
|
1816
|
-
summary: "",
|
|
1874
|
+
summary: "List session events",
|
|
1817
1875
|
description: "Read the event history of a session as a page of events, oldest first by default (order=desc for newest first). Use it after sending a message to collect the reply, to find tool calls that wait for approval (session.status_idle with stop_reason requires_action lists their event_ids), or to audit a run; to follow a running session live use sessions.events.stream instead. Filter by types and by a created_at range on processed_at; pages hold at most 100 events (default 20) and next_page continues. A failed run emits session.error before session.status_terminated. Native history also includes user.steer, user.withdraw, system.notification, session.forked, session.goal_changed and session.goal_verification; these are not accepted by the /anthropic/v1 event-type filter.",
|
|
1818
1876
|
http: "GET",
|
|
1819
1877
|
path: "/agent/v1/sessions/{session_id}/events",
|
|
@@ -1884,7 +1942,7 @@ Praxis extension available only on /agent/v1, following Claude Agent SDK getCont
|
|
|
1884
1942
|
{
|
|
1885
1943
|
resource: "agent.sessions.events",
|
|
1886
1944
|
method: "send",
|
|
1887
|
-
summary: "",
|
|
1945
|
+
summary: "Send session events",
|
|
1888
1946
|
description: 'Send events to a session: user.message (exactly one nonempty text block), user.interrupt, user.tool_confirmation to allow or deny a pending tool call, user.steer to inject a queued user.message into a turn that is still running, and user.withdraw to retract a queued message. The response only acknowledges the inputs; read replies with sessions.events.list or sessions.events.stream. A message sent while the session waits for tool approval is queued (processed_at null) and runs in order after the approval is resolved. Archived sessions reject new messages. To approve, read a pending agent.tool_use or agent.mcp_tool_use event and send {type: "user.tool_confirmation", tool_use_id: <that event id>, result: "allow"} (or deny); include session_thread_id for a child approval. Native confirmations also accept updated_permissions, answers and annotations, which /anthropic/v1 rejects.',
|
|
1889
1947
|
http: "POST",
|
|
1890
1948
|
path: "/agent/v1/sessions/{session_id}/events",
|
|
@@ -1913,7 +1971,7 @@ Praxis extension available only on /agent/v1, following Claude Agent SDK getCont
|
|
|
1913
1971
|
{
|
|
1914
1972
|
resource: "agent.sessions.events",
|
|
1915
1973
|
method: "stream",
|
|
1916
|
-
summary: "",
|
|
1974
|
+
summary: "Stream session events",
|
|
1917
1975
|
description: "Open a Server-Sent Events stream of a session's events in real time. Use it to show a reply as it is produced; to read past events use sessions.events.list. Send a message through sessions.events.send in another request while the stream is open. Closing the stream only drops your subscription and does not stop the agent. Pass event_deltas[]=agent.message, agent.thinking or agent.tool_use to also receive event_start / event_delta previews before the final event.",
|
|
1918
1976
|
http: "GET",
|
|
1919
1977
|
path: "/agent/v1/sessions/{session_id}/events/stream",
|
|
@@ -1972,7 +2030,7 @@ Available only on /agent/v1. Use the message_id field from own-face events, not
|
|
|
1972
2030
|
{
|
|
1973
2031
|
resource: "agent.sessions.resources",
|
|
1974
2032
|
method: "list",
|
|
1975
|
-
summary: "",
|
|
2033
|
+
summary: "List session resources",
|
|
1976
2034
|
description: "List the extra resources (file references) attached to a session, oldest first, at most 1000 per page (default 1000). Use the returned id with sessions.resources.retrieve or sessions.resources.delete; next_page continues a truncated list.",
|
|
1977
2035
|
http: "GET",
|
|
1978
2036
|
path: "/agent/v1/sessions/{session_id}/resources",
|
|
@@ -2002,7 +2060,7 @@ Available only on /agent/v1. Use the message_id field from own-face events, not
|
|
|
2002
2060
|
{
|
|
2003
2061
|
resource: "agent.sessions.resources",
|
|
2004
2062
|
method: "create",
|
|
2005
|
-
summary: "",
|
|
2063
|
+
summary: "Add session resource",
|
|
2006
2064
|
description: "Attach a file resource to a session by file_id, up to 500 per session. The file must exist and belong to your tenant. It is mounted under /mnt/session/uploads/<file_id> unless mount_path is given; custom paths are rooted there and parent traversal is rejected. File content is immutable through this API, and synchronizing it into a running sandbox is not implemented in this version.",
|
|
2007
2065
|
http: "POST",
|
|
2008
2066
|
path: "/agent/v1/sessions/{session_id}/resources",
|
|
@@ -2046,7 +2104,7 @@ Available only on /agent/v1. Use the message_id field from own-face events, not
|
|
|
2046
2104
|
{
|
|
2047
2105
|
resource: "agent.sessions.resources",
|
|
2048
2106
|
method: "delete",
|
|
2049
|
-
summary: "",
|
|
2107
|
+
summary: "Delete session resource",
|
|
2050
2108
|
description: "Detach a resource from a session. Only the reference is removed; the underlying file is not deleted. The response is {id, type: session_resource_deleted}. resource_id comes from sessions.resources.list or the add call.",
|
|
2051
2109
|
http: "DELETE",
|
|
2052
2110
|
path: "/agent/v1/sessions/{session_id}/resources/{resource_id}",
|
|
@@ -2075,7 +2133,7 @@ Available only on /agent/v1. Use the message_id field from own-face events, not
|
|
|
2075
2133
|
{
|
|
2076
2134
|
resource: "agent.sessions.resources",
|
|
2077
2135
|
method: "retrieve",
|
|
2078
|
-
summary: "",
|
|
2136
|
+
summary: "Get session resource",
|
|
2079
2137
|
description: "Read one resource attached to a session: its type, file_id, mount_path and timestamps. resource_id comes from sessions.resources.list or sessions.resources.add.",
|
|
2080
2138
|
http: "GET",
|
|
2081
2139
|
path: "/agent/v1/sessions/{session_id}/resources/{resource_id}",
|
|
@@ -2101,10 +2159,77 @@ Available only on /agent/v1. Use the message_id field from own-face events, not
|
|
|
2101
2159
|
}
|
|
2102
2160
|
]
|
|
2103
2161
|
},
|
|
2162
|
+
{
|
|
2163
|
+
resource: "agent.sessions.runs",
|
|
2164
|
+
method: "deleteFeedback",
|
|
2165
|
+
summary: "Delete Run Feedback",
|
|
2166
|
+
description: `Remove the rating and comment for a run.
|
|
2167
|
+
|
|
2168
|
+
Own-face extension. Use the session id from session creation or listing and the run_id from its events. Requires a readable session and a run belonging to it. Idempotent; returns 204 even when no feedback exists. End users can delete feedback only for their own sessions. Does not delete the run or messages, enter model context, or start another run.`,
|
|
2169
|
+
http: "DELETE",
|
|
2170
|
+
path: "/agent/v1/sessions/{session_id}/runs/{run_id}/feedback",
|
|
2171
|
+
streaming: "no",
|
|
2172
|
+
pagination: false,
|
|
2173
|
+
pathParams: [
|
|
2174
|
+
{
|
|
2175
|
+
name: "session_id",
|
|
2176
|
+
sdkName: "session_id"
|
|
2177
|
+
},
|
|
2178
|
+
{
|
|
2179
|
+
name: "run_id",
|
|
2180
|
+
sdkName: "run_id"
|
|
2181
|
+
}
|
|
2182
|
+
],
|
|
2183
|
+
query: []
|
|
2184
|
+
},
|
|
2185
|
+
{
|
|
2186
|
+
resource: "agent.sessions.runs.feedback",
|
|
2187
|
+
method: "create",
|
|
2188
|
+
summary: "Set Run Feedback",
|
|
2189
|
+
description: `Submit thumbs up or thumbs down for a run, with an optional comment.
|
|
2190
|
+
|
|
2191
|
+
Own-face extension. Use a readable session and a run_id from its events. Each submission replaces the previous rating and comment; omitted or null comment clears it, while created_at is preserved. Comments allow at most 2000 Unicode characters. End users can submit only for their own sessions. Feedback never enters model context or starts a run. For example, submit {"rating":"positive","comment":"Helpful"}. POST follows Managed Agents resource update conventions; the resource remains unique per session and run.`,
|
|
2192
|
+
http: "POST",
|
|
2193
|
+
path: "/agent/v1/sessions/{session_id}/runs/{run_id}/feedback",
|
|
2194
|
+
streaming: "no",
|
|
2195
|
+
pagination: false,
|
|
2196
|
+
pathParams: [
|
|
2197
|
+
{
|
|
2198
|
+
name: "session_id",
|
|
2199
|
+
sdkName: "session_id"
|
|
2200
|
+
},
|
|
2201
|
+
{
|
|
2202
|
+
name: "run_id",
|
|
2203
|
+
sdkName: "run_id"
|
|
2204
|
+
}
|
|
2205
|
+
],
|
|
2206
|
+
query: [],
|
|
2207
|
+
body: {
|
|
2208
|
+
required: true,
|
|
2209
|
+
fields: [
|
|
2210
|
+
{
|
|
2211
|
+
name: "rating",
|
|
2212
|
+
type: "string",
|
|
2213
|
+
enum: [
|
|
2214
|
+
"positive",
|
|
2215
|
+
"negative"
|
|
2216
|
+
],
|
|
2217
|
+
required: true,
|
|
2218
|
+
description: "positive means thumbs up; negative means thumbs down for this run."
|
|
2219
|
+
},
|
|
2220
|
+
{
|
|
2221
|
+
name: "comment",
|
|
2222
|
+
type: "string",
|
|
2223
|
+
required: false,
|
|
2224
|
+
description: "Optional comment, at most 2000 Unicode characters. Omit or send null to clear the previous comment."
|
|
2225
|
+
}
|
|
2226
|
+
]
|
|
2227
|
+
}
|
|
2228
|
+
},
|
|
2104
2229
|
{
|
|
2105
2230
|
resource: "agent.sessions.threads",
|
|
2106
2231
|
method: "list",
|
|
2107
|
-
summary: "",
|
|
2232
|
+
summary: "List session threads",
|
|
2108
2233
|
description: "List the execution threads of a session: the primary thread plus every child thread started by subagents or advisors, in created_at order. Child threads reference the primary through parent_thread_id. Pages hold at most 100 threads (default 20). Use a thread id with sessions.threads.retrieve, sessions.threads.events.list or sessions.threads.events.stream.",
|
|
2109
2234
|
http: "GET",
|
|
2110
2235
|
path: "/agent/v1/sessions/{session_id}/threads",
|
|
@@ -2134,7 +2259,7 @@ Available only on /agent/v1. Use the message_id field from own-face events, not
|
|
|
2134
2259
|
{
|
|
2135
2260
|
resource: "agent.sessions.threads",
|
|
2136
2261
|
method: "retrieve",
|
|
2137
|
-
summary: "",
|
|
2262
|
+
summary: "Get session thread",
|
|
2138
2263
|
description: "Read one execution thread of a session, field for field the same as its list item. Thread ids that are unknown, malformed or belong to another session all return 404, so existence is not revealed. thread_id comes from sessions.threads.list or from the session_thread_id of a session.thread_created event.",
|
|
2139
2264
|
http: "GET",
|
|
2140
2265
|
path: "/agent/v1/sessions/{session_id}/threads/{thread_id}",
|
|
@@ -2163,7 +2288,7 @@ Available only on /agent/v1. Use the message_id field from own-face events, not
|
|
|
2163
2288
|
{
|
|
2164
2289
|
resource: "agent.sessions.threads",
|
|
2165
2290
|
method: "archive",
|
|
2166
|
-
summary: "",
|
|
2291
|
+
summary: "Archive session thread",
|
|
2167
2292
|
description: "Archive one execution thread. Archiving the primary thread archives the session; archiving a child archives only that child, leaving the parent and its siblings untouched. An archived child has status terminated and archived_at set, receives no new events and keeps its history readable.",
|
|
2168
2293
|
http: "POST",
|
|
2169
2294
|
path: "/agent/v1/sessions/{session_id}/threads/{thread_id}/archive",
|
|
@@ -2192,7 +2317,7 @@ Available only on /agent/v1. Use the message_id field from own-face events, not
|
|
|
2192
2317
|
{
|
|
2193
2318
|
resource: "agent.sessions.threads.events",
|
|
2194
2319
|
method: "list",
|
|
2195
|
-
summary: "",
|
|
2320
|
+
summary: "List session thread events",
|
|
2196
2321
|
description: "Read the event history of one execution thread: the session itself for the primary thread, or the child session for a child thread. It accepts the same filters, ordering and paging as sessions.events.list and returns the same data + next_page envelope. Child approvals carry session_thread_id so you can route a confirmation to the owning thread.",
|
|
2197
2322
|
http: "GET",
|
|
2198
2323
|
path: "/agent/v1/sessions/{session_id}/threads/{thread_id}/events",
|
|
@@ -2233,7 +2358,7 @@ Available only on /agent/v1. Use the message_id field from own-face events, not
|
|
|
2233
2358
|
{
|
|
2234
2359
|
resource: "agent.sessions.threads",
|
|
2235
2360
|
method: "stream",
|
|
2236
|
-
summary: "",
|
|
2361
|
+
summary: "Stream session thread events",
|
|
2237
2362
|
description: "Open a Server-Sent Events stream of one execution thread's live events, using the same implementation as sessions.events.stream; a read-only WebSocket is also available on this path. The parent session stream additionally carries child creation, status and message events. Pass event_deltas[]=agent.message, agent.thinking or agent.tool_use for incremental previews.",
|
|
2238
2363
|
http: "GET",
|
|
2239
2364
|
path: "/agent/v1/sessions/{session_id}/threads/{thread_id}/stream",
|
|
@@ -11541,6 +11666,50 @@ for more details.`
|
|
|
11541
11666
|
],
|
|
11542
11667
|
query: []
|
|
11543
11668
|
},
|
|
11669
|
+
{
|
|
11670
|
+
resource: "organization.feedback",
|
|
11671
|
+
method: "list",
|
|
11672
|
+
summary: "List your organization's feedback",
|
|
11673
|
+
description: "Feedback submitted by your organization, newest first, with phase and unread state. Filter by phase and search titles and message text (case-insensitive). Page with next_page. Requires a valid API key, Console session, or machine token of the organization.",
|
|
11674
|
+
http: "GET",
|
|
11675
|
+
path: "/organization/v1/feedback",
|
|
11676
|
+
streaming: "no",
|
|
11677
|
+
pagination: false,
|
|
11678
|
+
pathParams: [],
|
|
11679
|
+
query: [
|
|
11680
|
+
{
|
|
11681
|
+
name: "phase",
|
|
11682
|
+
type: "string",
|
|
11683
|
+
enum: [
|
|
11684
|
+
"open",
|
|
11685
|
+
"awaiting_customer",
|
|
11686
|
+
"in_progress",
|
|
11687
|
+
"resolved",
|
|
11688
|
+
"closed"
|
|
11689
|
+
],
|
|
11690
|
+
required: false,
|
|
11691
|
+
description: "Only feedback in this phase: open, awaiting_customer, in_progress, resolved or closed; see the phase field of a feedback for what each means."
|
|
11692
|
+
},
|
|
11693
|
+
{
|
|
11694
|
+
name: "query",
|
|
11695
|
+
type: "string",
|
|
11696
|
+
required: false,
|
|
11697
|
+
description: "Case-insensitive text matched against titles and message bodies."
|
|
11698
|
+
},
|
|
11699
|
+
{
|
|
11700
|
+
name: "limit",
|
|
11701
|
+
type: "integer",
|
|
11702
|
+
required: false,
|
|
11703
|
+
description: "Items per page, 1 to 100."
|
|
11704
|
+
},
|
|
11705
|
+
{
|
|
11706
|
+
name: "page",
|
|
11707
|
+
type: "string",
|
|
11708
|
+
required: false,
|
|
11709
|
+
description: "Opaque cursor from next_page of the previous response."
|
|
11710
|
+
}
|
|
11711
|
+
]
|
|
11712
|
+
},
|
|
11544
11713
|
{
|
|
11545
11714
|
resource: "organization.feedback",
|
|
11546
11715
|
method: "create",
|
|
@@ -11585,6 +11754,18 @@ for more details.`
|
|
|
11585
11754
|
required: false,
|
|
11586
11755
|
description: "X-Request-Id from the failed response or the related error event ID."
|
|
11587
11756
|
},
|
|
11757
|
+
{
|
|
11758
|
+
name: "title",
|
|
11759
|
+
type: "string",
|
|
11760
|
+
required: false,
|
|
11761
|
+
description: "Short summary shown in the feedback list; at most 200 Unicode code points."
|
|
11762
|
+
},
|
|
11763
|
+
{
|
|
11764
|
+
name: "type",
|
|
11765
|
+
type: "string",
|
|
11766
|
+
required: false,
|
|
11767
|
+
description: "Feedback type key enabled in the help settings, such as issue, suggestion, billing or other. Unknown or disabled keys are rejected with INVALID_PARAMS."
|
|
11768
|
+
},
|
|
11588
11769
|
{
|
|
11589
11770
|
name: "tags",
|
|
11590
11771
|
type: "object",
|
|
@@ -11617,6 +11798,88 @@ for more details.`
|
|
|
11617
11798
|
]
|
|
11618
11799
|
}
|
|
11619
11800
|
},
|
|
11801
|
+
{
|
|
11802
|
+
resource: "organization.feedback",
|
|
11803
|
+
method: "retrieve",
|
|
11804
|
+
summary: "Get one of your organization's feedback",
|
|
11805
|
+
description: "Read one feedback submitted by your organization with its current phase and first-response timing. Another organization's feedback answers 404 FEEDBACK_NOT_FOUND exactly like a missing one.",
|
|
11806
|
+
http: "GET",
|
|
11807
|
+
path: "/organization/v1/feedback/{id}",
|
|
11808
|
+
streaming: "no",
|
|
11809
|
+
pagination: false,
|
|
11810
|
+
pathParams: [
|
|
11811
|
+
{
|
|
11812
|
+
name: "id",
|
|
11813
|
+
sdkName: "id"
|
|
11814
|
+
}
|
|
11815
|
+
],
|
|
11816
|
+
query: []
|
|
11817
|
+
},
|
|
11818
|
+
{
|
|
11819
|
+
resource: "organization.feedback.messages",
|
|
11820
|
+
method: "list",
|
|
11821
|
+
summary: "List the messages of a feedback",
|
|
11822
|
+
description: "The conversation of one feedback in time order: your messages, support replies and system events. Internal support notes are never returned. Page with next_page.",
|
|
11823
|
+
http: "GET",
|
|
11824
|
+
path: "/organization/v1/feedback/{id}/messages",
|
|
11825
|
+
streaming: "no",
|
|
11826
|
+
pagination: false,
|
|
11827
|
+
pathParams: [
|
|
11828
|
+
{
|
|
11829
|
+
name: "id",
|
|
11830
|
+
sdkName: "id"
|
|
11831
|
+
}
|
|
11832
|
+
],
|
|
11833
|
+
query: [
|
|
11834
|
+
{
|
|
11835
|
+
name: "limit",
|
|
11836
|
+
type: "integer",
|
|
11837
|
+
required: false,
|
|
11838
|
+
description: "Items per page, 1 to 100."
|
|
11839
|
+
},
|
|
11840
|
+
{
|
|
11841
|
+
name: "page",
|
|
11842
|
+
type: "string",
|
|
11843
|
+
required: false,
|
|
11844
|
+
description: "Opaque cursor from next_page of the previous response."
|
|
11845
|
+
}
|
|
11846
|
+
]
|
|
11847
|
+
},
|
|
11848
|
+
{
|
|
11849
|
+
resource: "organization.feedback.messages",
|
|
11850
|
+
method: "create",
|
|
11851
|
+
summary: "Reply on a feedback",
|
|
11852
|
+
description: "Add your message to a feedback conversation, for example to answer a question from support. A reply while the phase is awaiting_customer moves it to in_progress and notifies support.",
|
|
11853
|
+
http: "POST",
|
|
11854
|
+
path: "/organization/v1/feedback/{id}/messages",
|
|
11855
|
+
streaming: "no",
|
|
11856
|
+
pagination: false,
|
|
11857
|
+
pathParams: [
|
|
11858
|
+
{
|
|
11859
|
+
name: "id",
|
|
11860
|
+
sdkName: "id"
|
|
11861
|
+
}
|
|
11862
|
+
],
|
|
11863
|
+
query: [],
|
|
11864
|
+
body: {
|
|
11865
|
+
required: true,
|
|
11866
|
+
fields: [
|
|
11867
|
+
{
|
|
11868
|
+
name: "body",
|
|
11869
|
+
type: "string",
|
|
11870
|
+
required: true,
|
|
11871
|
+
description: "Markdown text; at most 4096 Unicode code points."
|
|
11872
|
+
},
|
|
11873
|
+
{
|
|
11874
|
+
name: "attachments",
|
|
11875
|
+
type: "array",
|
|
11876
|
+
itemType: "object",
|
|
11877
|
+
required: false,
|
|
11878
|
+
description: "Up to five attachments; decoded bytes must not exceed 10 MiB each or 20 MiB in total."
|
|
11879
|
+
}
|
|
11880
|
+
]
|
|
11881
|
+
}
|
|
11882
|
+
},
|
|
11620
11883
|
{
|
|
11621
11884
|
resource: "organization.usage",
|
|
11622
11885
|
method: "list",
|
|
@@ -14839,6 +15102,49 @@ var createClient = (config = {}) => {
|
|
|
14839
15102
|
var client = createClient(createConfig({ baseUrl: "https://api.deepraxis.com" }));
|
|
14840
15103
|
|
|
14841
15104
|
// ../../packages/sdk/typescript/src/generated/sdk.gen.ts
|
|
15105
|
+
var deleteRunFeedback = (options) => (options.client ?? client).delete({
|
|
15106
|
+
security: [{
|
|
15107
|
+
key: "BearerAuth",
|
|
15108
|
+
scheme: "bearer",
|
|
15109
|
+
type: "http"
|
|
15110
|
+
}, {
|
|
15111
|
+
key: "ApiKeyAuth",
|
|
15112
|
+
name: "X-API-Key",
|
|
15113
|
+
type: "apiKey"
|
|
15114
|
+
}],
|
|
15115
|
+
url: "/agent/v1/sessions/{session_id}/runs/{run_id}/feedback",
|
|
15116
|
+
...options
|
|
15117
|
+
});
|
|
15118
|
+
var setRunFeedback = (options) => (options.client ?? client).post({
|
|
15119
|
+
security: [{
|
|
15120
|
+
key: "BearerAuth",
|
|
15121
|
+
scheme: "bearer",
|
|
15122
|
+
type: "http"
|
|
15123
|
+
}, {
|
|
15124
|
+
key: "ApiKeyAuth",
|
|
15125
|
+
name: "X-API-Key",
|
|
15126
|
+
type: "apiKey"
|
|
15127
|
+
}],
|
|
15128
|
+
url: "/agent/v1/sessions/{session_id}/runs/{run_id}/feedback",
|
|
15129
|
+
...options,
|
|
15130
|
+
headers: {
|
|
15131
|
+
"Content-Type": "application/json",
|
|
15132
|
+
...options.headers
|
|
15133
|
+
}
|
|
15134
|
+
});
|
|
15135
|
+
var listEmbedTokens = (options) => (options?.client ?? client).get({
|
|
15136
|
+
security: [{
|
|
15137
|
+
key: "BearerAuth",
|
|
15138
|
+
scheme: "bearer",
|
|
15139
|
+
type: "http"
|
|
15140
|
+
}, {
|
|
15141
|
+
key: "ApiKeyAuth",
|
|
15142
|
+
name: "X-API-Key",
|
|
15143
|
+
type: "apiKey"
|
|
15144
|
+
}],
|
|
15145
|
+
url: "/agent/v1/embed_tokens",
|
|
15146
|
+
...options
|
|
15147
|
+
});
|
|
14842
15148
|
var createEmbedToken = (options) => (options.client ?? client).post({
|
|
14843
15149
|
security: [{
|
|
14844
15150
|
key: "BearerAuth",
|
|
@@ -14856,6 +15162,19 @@ var createEmbedToken = (options) => (options.client ?? client).post({
|
|
|
14856
15162
|
...options.headers
|
|
14857
15163
|
}
|
|
14858
15164
|
});
|
|
15165
|
+
var revokeEmbedToken = (options) => (options.client ?? client).post({
|
|
15166
|
+
security: [{
|
|
15167
|
+
key: "BearerAuth",
|
|
15168
|
+
scheme: "bearer",
|
|
15169
|
+
type: "http"
|
|
15170
|
+
}, {
|
|
15171
|
+
key: "ApiKeyAuth",
|
|
15172
|
+
name: "X-API-Key",
|
|
15173
|
+
type: "apiKey"
|
|
15174
|
+
}],
|
|
15175
|
+
url: "/agent/v1/embed_tokens/{id}/revoke",
|
|
15176
|
+
...options
|
|
15177
|
+
});
|
|
14859
15178
|
var computersList = (options) => (options?.client ?? client).get({
|
|
14860
15179
|
security: [{
|
|
14861
15180
|
key: "BearerAuth",
|
|
@@ -15862,6 +16181,19 @@ var countResponseInputTokens = (options) => (options.client ?? client).post({
|
|
|
15862
16181
|
...options.headers
|
|
15863
16182
|
}
|
|
15864
16183
|
});
|
|
16184
|
+
var listOrganizationFeedback = (options) => (options?.client ?? client).get({
|
|
16185
|
+
security: [{
|
|
16186
|
+
key: "BearerAuth",
|
|
16187
|
+
scheme: "bearer",
|
|
16188
|
+
type: "http"
|
|
16189
|
+
}, {
|
|
16190
|
+
key: "ApiKeyAuth",
|
|
16191
|
+
name: "X-API-Key",
|
|
16192
|
+
type: "apiKey"
|
|
16193
|
+
}],
|
|
16194
|
+
url: "/organization/v1/feedback",
|
|
16195
|
+
...options
|
|
16196
|
+
});
|
|
15865
16197
|
var createOrganizationFeedback = (options) => (options.client ?? client).post({
|
|
15866
16198
|
security: [{
|
|
15867
16199
|
key: "BearerAuth",
|
|
@@ -15879,6 +16211,49 @@ var createOrganizationFeedback = (options) => (options.client ?? client).post({
|
|
|
15879
16211
|
...options.headers
|
|
15880
16212
|
}
|
|
15881
16213
|
});
|
|
16214
|
+
var getOrganizationFeedback = (options) => (options.client ?? client).get({
|
|
16215
|
+
security: [{
|
|
16216
|
+
key: "BearerAuth",
|
|
16217
|
+
scheme: "bearer",
|
|
16218
|
+
type: "http"
|
|
16219
|
+
}, {
|
|
16220
|
+
key: "ApiKeyAuth",
|
|
16221
|
+
name: "X-API-Key",
|
|
16222
|
+
type: "apiKey"
|
|
16223
|
+
}],
|
|
16224
|
+
url: "/organization/v1/feedback/{id}",
|
|
16225
|
+
...options
|
|
16226
|
+
});
|
|
16227
|
+
var listOrganizationFeedbackMessages = (options) => (options.client ?? client).get({
|
|
16228
|
+
security: [{
|
|
16229
|
+
key: "BearerAuth",
|
|
16230
|
+
scheme: "bearer",
|
|
16231
|
+
type: "http"
|
|
16232
|
+
}, {
|
|
16233
|
+
key: "ApiKeyAuth",
|
|
16234
|
+
name: "X-API-Key",
|
|
16235
|
+
type: "apiKey"
|
|
16236
|
+
}],
|
|
16237
|
+
url: "/organization/v1/feedback/{id}/messages",
|
|
16238
|
+
...options
|
|
16239
|
+
});
|
|
16240
|
+
var createOrganizationFeedbackMessage = (options) => (options.client ?? client).post({
|
|
16241
|
+
security: [{
|
|
16242
|
+
key: "BearerAuth",
|
|
16243
|
+
scheme: "bearer",
|
|
16244
|
+
type: "http"
|
|
16245
|
+
}, {
|
|
16246
|
+
key: "ApiKeyAuth",
|
|
16247
|
+
name: "X-API-Key",
|
|
16248
|
+
type: "apiKey"
|
|
16249
|
+
}],
|
|
16250
|
+
url: "/organization/v1/feedback/{id}/messages",
|
|
16251
|
+
...options,
|
|
16252
|
+
headers: {
|
|
16253
|
+
"Content-Type": "application/json",
|
|
16254
|
+
...options.headers
|
|
16255
|
+
}
|
|
16256
|
+
});
|
|
15882
16257
|
var listOrganizationCosts = (options) => (options.client ?? client).get({
|
|
15883
16258
|
security: [{
|
|
15884
16259
|
key: "BearerAuth",
|
|
@@ -19673,7 +20048,11 @@ function createAgent(transport) {
|
|
|
19673
20048
|
update: bind(transport, deploymentsUpdate)
|
|
19674
20049
|
},
|
|
19675
20050
|
embedTokens: {
|
|
19676
|
-
create: bind(transport, createEmbedToken)
|
|
20051
|
+
create: bind(transport, createEmbedToken),
|
|
20052
|
+
list: bind(transport, listEmbedTokens),
|
|
20053
|
+
revoke: {
|
|
20054
|
+
create: bind(transport, revokeEmbedToken)
|
|
20055
|
+
}
|
|
19677
20056
|
},
|
|
19678
20057
|
environments: {
|
|
19679
20058
|
archive: bind(transport, environmentsArchive),
|
|
@@ -19710,6 +20089,12 @@ function createAgent(transport) {
|
|
|
19710
20089
|
retrieve: bind(transport, sessionsRetrieve),
|
|
19711
20090
|
retrieveCompact: bind(transport, getSessionCompaction),
|
|
19712
20091
|
retrieveContext: bind(transport, getSessionContext),
|
|
20092
|
+
runs: {
|
|
20093
|
+
deleteFeedback: bind(transport, deleteRunFeedback),
|
|
20094
|
+
feedback: {
|
|
20095
|
+
create: bind(transport, setRunFeedback)
|
|
20096
|
+
}
|
|
20097
|
+
},
|
|
19713
20098
|
threads: {
|
|
19714
20099
|
archive: bind(transport, aliasOperation(sessionsThreadsArchive, { query: { session_id: "query_session_id" } })),
|
|
19715
20100
|
events: {
|
|
@@ -20184,7 +20569,13 @@ function createOrganization(transport) {
|
|
|
20184
20569
|
retrieve: bind(transport, getOrganizationEvent)
|
|
20185
20570
|
},
|
|
20186
20571
|
feedback: {
|
|
20187
|
-
create: bind(transport, createOrganizationFeedback)
|
|
20572
|
+
create: bind(transport, createOrganizationFeedback),
|
|
20573
|
+
list: bind(transport, listOrganizationFeedback),
|
|
20574
|
+
messages: {
|
|
20575
|
+
create: bind(transport, createOrganizationFeedbackMessage),
|
|
20576
|
+
list: bind(transport, listOrganizationFeedbackMessages)
|
|
20577
|
+
},
|
|
20578
|
+
retrieve: bind(transport, getOrganizationFeedback)
|
|
20188
20579
|
},
|
|
20189
20580
|
usage: {
|
|
20190
20581
|
list: bind(transport, listOrganizationUsage)
|
|
@@ -22374,7 +22765,7 @@ function startProgress(ctx, write = (text) => writeOutput({ stderr: text })) {
|
|
|
22374
22765
|
}
|
|
22375
22766
|
|
|
22376
22767
|
// src/main.ts
|
|
22377
|
-
var version = "0.1.0-dev.
|
|
22768
|
+
var version = "0.1.0-dev.9d9e2b6";
|
|
22378
22769
|
var commands = commandTree(operations);
|
|
22379
22770
|
var manual = [["login"], ["logout"], ["whoami"], ["org", "list"], ["org", "switch"], ["api"], ["skill"]];
|
|
22380
22771
|
function route(argv) {
|