@deepraxis/cli 0.1.0-dev.7ee6a7d → 0.1.0-dev.95813a3
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 +21 -4
- package/dist/praxis.js +749 -34
- package/package.json +1 -1
package/COMMANDS.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Generated by `bun run commands`. DO NOT EDIT.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
365 HTTP operations; 367 commands including aliases.
|
|
6
6
|
|
|
7
7
|
Environment: `PRAXIS_ENV=develop|production` (dev package defaults to `develop`; stable package defaults to `production`). No `--env` option.
|
|
8
8
|
|
|
@@ -27,6 +27,8 @@ Handwritten commands: `login`, `logout`, `whoami`, `org list`, `org switch <orga
|
|
|
27
27
|
| `praxis agent computer file get-content` | `agent.computers.files.retrieveContent` | GET `/agent/v1/computers/{computer_id}/files/content` | `--computer`, `--path` |
|
|
28
28
|
| `praxis agent computer file list` | `agent.computers.files.list` | GET `/agent/v1/computers/{computer_id}/files` | `--computer`, `--path` |
|
|
29
29
|
| `praxis agent computer get <computer_id>` | `agent.computers.retrieve` | GET `/agent/v1/computers/{computer_id}` | |
|
|
30
|
+
| `praxis agent computer lease delete <lease_id>` | `agent.computers.leases.delete` | DELETE `/agent/v1/computers/{computer_id}/leases/{lease_id}` | `--computer` |
|
|
31
|
+
| `praxis agent computer lease renew create` | `agent.computers.leases.renew.create` | POST `/agent/v1/computers/{computer_id}/leases/{lease_id}/renew` | `--computer`, `--lease` |
|
|
30
32
|
| `praxis agent computer list` | `agent.computers.list` | GET `/agent/v1/computers` | `--param-limit`, `--page` |
|
|
31
33
|
| `praxis agent computer update <computer_id>` | `agent.computers.update` | POST `/agent/v1/computers/{computer_id}` | `--name` |
|
|
32
34
|
| `praxis agent create` | `agent.agents.create` | POST `/agent/v1/agents` | `--name`, `--description`, `--system`, `--kind`, `--computer-id`, `--subagent-model` |
|
|
@@ -40,9 +42,19 @@ Handwritten commands: `login`, `logout`, `whoami`, `org list`, `org switch <orga
|
|
|
40
42
|
| `praxis agent deployment update <deployment_id>` | `agent.deployments.update` | POST `/agent/v1/deployments/{deployment_id}` | `--description`, `--environment-id`, `--name`, `--vault-ids` |
|
|
41
43
|
| `praxis agent deployment-run get <deployment_run_id>` | `agent.deploymentRuns.retrieve` | GET `/agent/v1/deployment_runs/{deployment_run_id}` | |
|
|
42
44
|
| `praxis agent deployment-run list` | `agent.deploymentRuns.list` | GET `/agent/v1/deployment_runs` | `--created-at-gt`, `--created-at-gte`, `--created-at-lt`, `--created-at-lte`, `--deployment-id`, `--has-error`, `--trigger-type`, `--param-limit`, `--page` |
|
|
43
|
-
| `praxis agent embed
|
|
45
|
+
| `praxis agent embed exchange create` | `agent.embed.exchange.create` | POST `/agent/v1/embed/exchange` | `--code` |
|
|
46
|
+
| `praxis agent embed get-appearance` | `agent.embed.retrieveAppearance` | GET `/agent/v1/embed/appearance` | |
|
|
47
|
+
| `praxis agent embed-token anonymous create` | `agent.embedTokens.anonymous.create` | POST `/agent/v1/embed_tokens/anonymous` | `--publishable-key`, `--visitor-secret` |
|
|
48
|
+
| `praxis agent embed-token create` | `agent.embedTokens.create` | POST `/agent/v1/embed_tokens` | `--hosted`, `--agent`, `--param-version`, `--external-user-id`, `--ttl-seconds`, `--budget-cents`, `--allowed-origins` |
|
|
44
49
|
| `praxis agent embed-token list` | `agent.embedTokens.list` | GET `/agent/v1/embed_tokens` | `--agent-id`, `--external-user-id`, `--param-limit`, `--page` |
|
|
45
50
|
| `praxis agent embed-token revoke create` | `agent.embedTokens.revoke.create` | POST `/agent/v1/embed_tokens/{id}/revoke` | `--embed-token` |
|
|
51
|
+
| `praxis agent end-user block create` | `agent.agents.endUsers.block.create` | POST `/agent/v1/agents/{agent_id}/end_users/{external_user_id}/block` | `--agent`, `--end-user` |
|
|
52
|
+
| `praxis agent end-user delete <external_user_id>` | `agent.agents.endUsers.delete` | DELETE `/agent/v1/agents/{agent_id}/end_users/{external_user_id}` | `--agent`, `--confirm` |
|
|
53
|
+
| `praxis agent end-user get <external_user_id>` | `agent.agents.endUsers.retrieve` | GET `/agent/v1/agents/{agent_id}/end_users/{external_user_id}` | `--agent` |
|
|
54
|
+
| `praxis agent end-user get-deletion <external_user_id>` | `agent.agents.endUsers.retrieveDeletion` | GET `/agent/v1/agents/{agent_id}/end_users/{external_user_id}/deletion` | `--agent` |
|
|
55
|
+
| `praxis agent end-user list` | `agent.agents.endUsers.list` | GET `/agent/v1/agents/{agent_id}/end_users` | `--agent`, `--param-limit`, `--page`, `--q` |
|
|
56
|
+
| `praxis agent end-user revoke-token create` | `agent.agents.endUsers.revokeTokens.create` | POST `/agent/v1/agents/{agent_id}/end_users/{external_user_id}/revoke_tokens` | `--agent`, `--end-user` |
|
|
57
|
+
| `praxis agent end-user unblock create` | `agent.agents.endUsers.unblock.create` | POST `/agent/v1/agents/{agent_id}/end_users/{external_user_id}/unblock` | `--agent`, `--end-user` |
|
|
46
58
|
| `praxis agent environment archive <environment_id>` | `agent.environments.archive` | POST `/agent/v1/environments/{environment_id}/archive` | |
|
|
47
59
|
| `praxis agent environment create` | `agent.environments.create` | POST `/agent/v1/environments` | `--name`, `--description`, `--scope` |
|
|
48
60
|
| `praxis agent environment get <environment_id>` | `agent.environments.retrieve` | GET `/agent/v1/environments/{environment_id}` | |
|
|
@@ -64,7 +76,7 @@ Handwritten commands: `login`, `logout`, `whoami`, `org list`, `org switch <orga
|
|
|
64
76
|
| `praxis agent session get <session_id>` | `agent.sessions.retrieve` | GET `/agent/v1/sessions/{session_id}` | |
|
|
65
77
|
| `praxis agent session get-compact <operation_id>` | `agent.sessions.retrieveCompact` | GET `/agent/v1/sessions/{session_id}/compact/{operation_id}` | `--session` |
|
|
66
78
|
| `praxis agent session get-context <session_id>` | `agent.sessions.retrieveContext` | GET `/agent/v1/sessions/{session_id}/context` | |
|
|
67
|
-
| `praxis agent session list` | `agent.sessions.list` | GET `/agent/v1/sessions` | `--agent-id`, `--agent-version`, `--created-at-gt`, `--created-at-gte`, `--created-at-lt`, `--created-at-lte`, `--deployment-id`, `--include-archived`, `--memory-store-id`, `--order`, `--statuses`, `--param-limit`, `--page` |
|
|
79
|
+
| `praxis agent session list` | `agent.sessions.list` | GET `/agent/v1/sessions` | `--agent-id`, `--agent-version`, `--created-at-gt`, `--created-at-gte`, `--created-at-lt`, `--created-at-lte`, `--deployment-id`, `--include-archived`, `--memory-store-id`, `--order`, `--statuses`, `--param-limit`, `--page`, `--external-user-id`, `--source` |
|
|
68
80
|
| `praxis agent session resource create` | `agent.sessions.resources.create` | POST `/agent/v1/sessions/{session_id}/resources` | `--session`, `--type`, `--file-id`, `--mount-path` |
|
|
69
81
|
| `praxis agent session resource delete <resource_id>` | `agent.sessions.resources.delete` | DELETE `/agent/v1/sessions/{session_id}/resources/{resource_id}` | `--session`, `--query-session-id` |
|
|
70
82
|
| `praxis agent session resource get <resource_id>` | `agent.sessions.resources.retrieve` | GET `/agent/v1/sessions/{session_id}/resources/{resource_id}` | `--session`, `--query-session-id` |
|
|
@@ -305,7 +317,12 @@ Handwritten commands: `login`, `logout`, `whoami`, `org list`, `org switch <orga
|
|
|
305
317
|
| `praxis organization cost list` | `organization.costs.list` | GET `/organization/v1/costs` | `--starting-at`, `--ending-at`, `--bucket-width`, `--time-zone`, `--group-by`, `--page` |
|
|
306
318
|
| `praxis organization event get <id>` | `organization.events.retrieve` | GET `/organization/v1/events/{id}` | |
|
|
307
319
|
| `praxis organization event list` | `organization.events.list` | GET `/organization/v1/events` | `--starting-at`, `--ending-at`, `--param-limit`, `--page` |
|
|
308
|
-
| `praxis organization feedback
|
|
320
|
+
| `praxis organization feedback count list` | `organization.feedback.counts.list` | GET `/organization/v1/feedback/counts` | |
|
|
321
|
+
| `praxis organization feedback create` | `organization.feedback.create` | POST `/organization/v1/feedback` | `--message`, `--contact-email`, `--name`, `--url`, `--associated-event-id`, `--title`, `--type`, `--source` |
|
|
322
|
+
| `praxis organization feedback get <id>` | `organization.feedback.retrieve` | GET `/organization/v1/feedback/{id}` | |
|
|
323
|
+
| `praxis organization feedback list` | `organization.feedback.list` | GET `/organization/v1/feedback` | `--phase`, `--query`, `--param-limit`, `--page` |
|
|
324
|
+
| `praxis organization feedback message create` | `organization.feedback.messages.create` | POST `/organization/v1/feedback/{id}/messages` | `--feedback`, `--body` |
|
|
325
|
+
| `praxis organization feedback message list` | `organization.feedback.messages.list` | GET `/organization/v1/feedback/{id}/messages` | `--feedback`, `--param-limit`, `--page` |
|
|
309
326
|
| `praxis organization usage list` | `organization.usage.list` | GET `/organization/v1/usage` | `--starting-at`, `--ending-at`, `--bucket-width`, `--time-zone`, `--group-by`, `--page` |
|
|
310
327
|
| `praxis sandbox command run <sandbox_id>` | `sandbox.sandboxes.commands.run` | POST `/sandbox/v1/sandboxes/{sandbox_id}/commands` | `--cmd`, `--cwd`, `--timeout-ms` |
|
|
311
328
|
| `praxis sandbox connect <sandboxID>` | `sandbox.sandboxes.connect` | POST `/sandbox/v1/sandboxes/{sandboxID}/connect` | `--timeout`, `--memory` |
|
package/dist/praxis.js
CHANGED
|
@@ -68,7 +68,7 @@ var operations = [
|
|
|
68
68
|
resource: "agent.agents",
|
|
69
69
|
method: "create",
|
|
70
70
|
summary: "Create agent",
|
|
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
|
|
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 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",
|
|
74
74
|
streaming: "no",
|
|
@@ -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",
|
|
@@ -215,7 +215,7 @@ across all toolsets allowed.`
|
|
|
215
215
|
resource: "agent.agents",
|
|
216
216
|
method: "update",
|
|
217
217
|
summary: "Update agent",
|
|
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
|
|
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 return 400; use the native skill tool for available runtime skills.",
|
|
219
219
|
http: "POST",
|
|
220
220
|
path: "/agent/v1/agents/{agent_id}",
|
|
221
221
|
streaming: "no",
|
|
@@ -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",
|
|
@@ -369,6 +369,189 @@ current version; omit to apply the update unconditionally.`
|
|
|
369
369
|
],
|
|
370
370
|
query: []
|
|
371
371
|
},
|
|
372
|
+
{
|
|
373
|
+
resource: "agent.agents.endUsers",
|
|
374
|
+
method: "list",
|
|
375
|
+
summary: "List End Users",
|
|
376
|
+
description: `List users who have sessions or token issuance history on a service agent.
|
|
377
|
+
|
|
378
|
+
Ordered by last_active_at and external_user_id descending. q is a case-sensitive literal prefix, including underscores. limit is 1–100, default 20. Reuse next_page with the same organization, agent, q and limit. Preemptively blocked users without history do not appear. End-user credentials and inaccessible or personal agents return 404.`,
|
|
379
|
+
http: "GET",
|
|
380
|
+
path: "/agent/v1/agents/{agent_id}/end_users",
|
|
381
|
+
streaming: "no",
|
|
382
|
+
pagination: false,
|
|
383
|
+
pathParams: [
|
|
384
|
+
{
|
|
385
|
+
name: "agent_id",
|
|
386
|
+
sdkName: "agent_id"
|
|
387
|
+
}
|
|
388
|
+
],
|
|
389
|
+
query: [
|
|
390
|
+
{
|
|
391
|
+
name: "limit",
|
|
392
|
+
type: "integer",
|
|
393
|
+
required: false,
|
|
394
|
+
description: "Maximum users per page; defaults to 20."
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
name: "page",
|
|
398
|
+
type: "string",
|
|
399
|
+
required: false,
|
|
400
|
+
description: "next_page from the previous response with the same agent, q and limit."
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
name: "q",
|
|
404
|
+
type: "string",
|
|
405
|
+
required: false,
|
|
406
|
+
description: "Case-sensitive literal prefix of external_user_id; omit or use an empty string for all users."
|
|
407
|
+
}
|
|
408
|
+
]
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
resource: "agent.agents.endUsers",
|
|
412
|
+
method: "delete",
|
|
413
|
+
summary: "Delete end-user data",
|
|
414
|
+
description: `Delete a host application's end-user data from one service agent after explicit confirmation.
|
|
415
|
+
|
|
416
|
+
Develop only. Set confirm to the exact external_user_id; missing or mismatched confirmation returns 400. Returns 202 with a pending task id, not completion. Poll the deletion endpoint. Concurrent requests reuse the unfinished task; retry DELETE after failure to resume it. Tokens are revoked and the user is blocked before a seven-day recovery snapshot is verified. Sessions including child sessions, conversation data, grants and feedback are then removed. A pre-existing block remains; a temporary block is removed on success. Attachment metadata is recorded and File attachments are retained. No charge is introduced by this operation. Example: DELETE /agent/v1/agents/agent_example/end_users/customer_123?confirm=customer_123.`,
|
|
417
|
+
http: "DELETE",
|
|
418
|
+
path: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}",
|
|
419
|
+
streaming: "no",
|
|
420
|
+
pagination: false,
|
|
421
|
+
pathParams: [
|
|
422
|
+
{
|
|
423
|
+
name: "agent_id",
|
|
424
|
+
sdkName: "agent_id"
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
name: "external_user_id",
|
|
428
|
+
sdkName: "external_user_id"
|
|
429
|
+
}
|
|
430
|
+
],
|
|
431
|
+
query: [
|
|
432
|
+
{
|
|
433
|
+
name: "confirm",
|
|
434
|
+
type: "string",
|
|
435
|
+
required: true,
|
|
436
|
+
description: "Must exactly equal the external_user_id path parameter to confirm destructive deletion."
|
|
437
|
+
}
|
|
438
|
+
]
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
resource: "agent.agents.endUsers",
|
|
442
|
+
method: "retrieve",
|
|
443
|
+
summary: "Get End User",
|
|
444
|
+
description: `Inspect one end user and their twenty most recently updated sessions.
|
|
445
|
+
|
|
446
|
+
Use external_user_id from listing or your host application. Users without session or issuance history return 404, including preemptively blocked users. End-user credentials and inaccessible or personal agents return 404.`,
|
|
447
|
+
http: "GET",
|
|
448
|
+
path: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}",
|
|
449
|
+
streaming: "no",
|
|
450
|
+
pagination: false,
|
|
451
|
+
pathParams: [
|
|
452
|
+
{
|
|
453
|
+
name: "agent_id",
|
|
454
|
+
sdkName: "agent_id"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
name: "external_user_id",
|
|
458
|
+
sdkName: "external_user_id"
|
|
459
|
+
}
|
|
460
|
+
],
|
|
461
|
+
query: []
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
resource: "agent.agents.endUsers.block",
|
|
465
|
+
method: "create",
|
|
466
|
+
summary: "Block End User",
|
|
467
|
+
description: `Block token issuance and session creation, then revoke existing tokens for an end user.
|
|
468
|
+
|
|
469
|
+
May block a user before any history exists; timestamps are then null and counts and cost are zero. Requires an embed policy, otherwise returns 409 with setup guidance. Deduplicates the policy blocklist and retains its 1000-user maximum. If revocation returns 502, the user remains blocked; retry to finish revocation. Repeats keep the user blocked and revoke any remaining grants. End-user credentials and inaccessible or personal agents return 404.`,
|
|
470
|
+
http: "POST",
|
|
471
|
+
path: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/block",
|
|
472
|
+
streaming: "no",
|
|
473
|
+
pagination: false,
|
|
474
|
+
pathParams: [
|
|
475
|
+
{
|
|
476
|
+
name: "agent_id",
|
|
477
|
+
sdkName: "agent_id"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
name: "external_user_id",
|
|
481
|
+
sdkName: "external_user_id"
|
|
482
|
+
}
|
|
483
|
+
],
|
|
484
|
+
query: []
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
resource: "agent.agents.endUsers",
|
|
488
|
+
method: "retrieveDeletion",
|
|
489
|
+
summary: "Get end-user deletion",
|
|
490
|
+
description: `Poll the latest deletion task for an end user, including after the user data has been removed.
|
|
491
|
+
|
|
492
|
+
Use the same agent_id and external_user_id as the confirmed DELETE. Status is pending, snapshotting, deleting, done or failed. Counts are empty until a verified snapshot exists. A failed task remains blocked and resumes when DELETE is retried with matching confirmation. snapshot_key is an operator recovery reference retained for seven days, not a public download URL. End-user credentials, inaccessible or personal agents, and missing tasks return 404. This read does not create a task or charge usage.`,
|
|
493
|
+
http: "GET",
|
|
494
|
+
path: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/deletion",
|
|
495
|
+
streaming: "no",
|
|
496
|
+
pagination: false,
|
|
497
|
+
pathParams: [
|
|
498
|
+
{
|
|
499
|
+
name: "agent_id",
|
|
500
|
+
sdkName: "agent_id"
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
name: "external_user_id",
|
|
504
|
+
sdkName: "external_user_id"
|
|
505
|
+
}
|
|
506
|
+
],
|
|
507
|
+
query: []
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
resource: "agent.agents.endUsers.revokeTokens",
|
|
511
|
+
method: "create",
|
|
512
|
+
summary: "Revoke End User Tokens",
|
|
513
|
+
description: `Revoke all issued tokens for an end user and terminate their open embed streams.
|
|
514
|
+
|
|
515
|
+
Revokes credentials before marking grants revoked. Upstream failure returns 502 without changing grant revocation timestamps. Returns the count of newly revoked grants; a repeat without new grants returns zero. Does not block future issuance. End-user credentials and inaccessible or personal agents return 404.`,
|
|
516
|
+
http: "POST",
|
|
517
|
+
path: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/revoke_tokens",
|
|
518
|
+
streaming: "no",
|
|
519
|
+
pagination: false,
|
|
520
|
+
pathParams: [
|
|
521
|
+
{
|
|
522
|
+
name: "agent_id",
|
|
523
|
+
sdkName: "agent_id"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
name: "external_user_id",
|
|
527
|
+
sdkName: "external_user_id"
|
|
528
|
+
}
|
|
529
|
+
],
|
|
530
|
+
query: []
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
resource: "agent.agents.endUsers.unblock",
|
|
534
|
+
method: "create",
|
|
535
|
+
summary: "Unblock End User",
|
|
536
|
+
description: `Allow an end user to receive new tokens and create new sessions again.
|
|
537
|
+
|
|
538
|
+
Removes the user from the blocklist; previously revoked tokens stay revoked. Idempotent. Requires an embed policy, otherwise returns 409 with setup guidance. Returns null timestamps and zero counts and cost when no session or issuance history exists. End-user credentials and inaccessible or personal agents return 404.`,
|
|
539
|
+
http: "POST",
|
|
540
|
+
path: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/unblock",
|
|
541
|
+
streaming: "no",
|
|
542
|
+
pagination: false,
|
|
543
|
+
pathParams: [
|
|
544
|
+
{
|
|
545
|
+
name: "agent_id",
|
|
546
|
+
sdkName: "agent_id"
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
name: "external_user_id",
|
|
550
|
+
sdkName: "external_user_id"
|
|
551
|
+
}
|
|
552
|
+
],
|
|
553
|
+
query: []
|
|
554
|
+
},
|
|
372
555
|
{
|
|
373
556
|
resource: "agent.agents.versions",
|
|
374
557
|
method: "list",
|
|
@@ -580,7 +763,7 @@ Own-face superset: Managed Agents has no persistent Computer attachment director
|
|
|
580
763
|
summary: "Connect computer",
|
|
581
764
|
description: `Resume the computer and issue a sandbox connection.
|
|
582
765
|
|
|
583
|
-
Own-face extension: Managed Agents has no persistent Computer connection. Returns the public SDK sandbox_id, envd_access_token and template_id. Archived computers remain accessible; foreign or absent computers return 404. Never cache credentials.`,
|
|
766
|
+
Own-face extension: Managed Agents has no persistent Computer connection. Returns the public SDK sandbox_id, envd_access_token and template_id, plus the machine tier the computer is on now (light or heavy) and the lease that keeps it there (lease_id, lease_expires_at; lease_id is null when no lease exists). Keep the lease while the connection stays open: renew it about every 20 seconds (POST .../leases/{lease_id}/renew) and release it on close (DELETE .../leases/{lease_id}). An unrenewed lease simply expires, and the full machine is reclaimed only after that. Archived computers remain accessible; foreign or absent computers return 404. Never cache credentials.`,
|
|
584
767
|
http: "POST",
|
|
585
768
|
path: "/agent/v1/computers/{computer_id}/connect",
|
|
586
769
|
streaming: "no",
|
|
@@ -645,6 +828,52 @@ Praxis extension: MA only has session-scoped temporary containers and memory_sto
|
|
|
645
828
|
}
|
|
646
829
|
]
|
|
647
830
|
},
|
|
831
|
+
{
|
|
832
|
+
resource: "agent.computers.leases",
|
|
833
|
+
method: "delete",
|
|
834
|
+
summary: "Release computer lease",
|
|
835
|
+
description: `Give the lease back when a connection closes so the full machine can be reclaimed without waiting for it to expire.
|
|
836
|
+
|
|
837
|
+
Own-face extension. Idempotent: an unknown or already released lease succeeds as well. Foreign or absent computers return 404.`,
|
|
838
|
+
http: "DELETE",
|
|
839
|
+
path: "/agent/v1/computers/{computer_id}/leases/{lease_id}",
|
|
840
|
+
streaming: "no",
|
|
841
|
+
pagination: false,
|
|
842
|
+
pathParams: [
|
|
843
|
+
{
|
|
844
|
+
name: "computer_id",
|
|
845
|
+
sdkName: "computer_id"
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
name: "lease_id",
|
|
849
|
+
sdkName: "lease_id"
|
|
850
|
+
}
|
|
851
|
+
],
|
|
852
|
+
query: []
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
resource: "agent.computers.leases.renew",
|
|
856
|
+
method: "create",
|
|
857
|
+
summary: "Renew computer lease",
|
|
858
|
+
description: `Extend the lease a connection holds so the full machine stays in service while the connection is open.
|
|
859
|
+
|
|
860
|
+
Own-face extension. A lease that is no longer valid (released, expired, or the computer moved to another machine) returns 409 LEASE_STALE; call connect again for a new connection and lease. Foreign or absent computers return 404.`,
|
|
861
|
+
http: "POST",
|
|
862
|
+
path: "/agent/v1/computers/{computer_id}/leases/{lease_id}/renew",
|
|
863
|
+
streaming: "no",
|
|
864
|
+
pagination: false,
|
|
865
|
+
pathParams: [
|
|
866
|
+
{
|
|
867
|
+
name: "computer_id",
|
|
868
|
+
sdkName: "computer_id"
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
name: "lease_id",
|
|
872
|
+
sdkName: "lease_id"
|
|
873
|
+
}
|
|
874
|
+
],
|
|
875
|
+
query: []
|
|
876
|
+
},
|
|
648
877
|
{
|
|
649
878
|
resource: "agent.deploymentRuns",
|
|
650
879
|
method: "list",
|
|
@@ -1074,6 +1303,43 @@ null to clear. Maximum 50.`
|
|
|
1074
1303
|
],
|
|
1075
1304
|
query: []
|
|
1076
1305
|
},
|
|
1306
|
+
{
|
|
1307
|
+
resource: "agent.embed",
|
|
1308
|
+
method: "retrieveAppearance",
|
|
1309
|
+
summary: "Read chat appearance",
|
|
1310
|
+
description: "Load saved appearance for an iframe or Hosted chat page. Supply an end-user embed token as Bearer authorization, or a console-issued publishable key in Praxis-Publishable-Key before anonymous token issuance. The credential selects the agent; identity_number and agent_id query parameters are rejected with 400. Missing appearance returns an empty object. Kit option names retain camelCase. Responses are private and cacheable for 60 seconds. Component hosts configure Kit in their own code instead.",
|
|
1311
|
+
http: "GET",
|
|
1312
|
+
path: "/agent/v1/embed/appearance",
|
|
1313
|
+
streaming: "no",
|
|
1314
|
+
pagination: false,
|
|
1315
|
+
pathParams: [],
|
|
1316
|
+
query: []
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
resource: "agent.embed.exchange",
|
|
1320
|
+
method: "create",
|
|
1321
|
+
summary: "Exchange Hosted Code",
|
|
1322
|
+
description: `Redeem a single-use hosted link credential for an end-user token.
|
|
1323
|
+
|
|
1324
|
+
Read code from the c fragment parameter of hosted_url returned by embed token creation with hosted true, then remove the fragment before exchanging. No Authorization header is required; the code authenticates this request. The code expires after 60 seconds and is consumed atomically on exchange, so concurrent attempts have only one winner. Expired, used and unknown codes return the same 404 body. Keep the token in memory and return to the host website for a fresh link when it expires; exchange cannot refresh it. Requests are IP limited per minute using the anonymous entrypoint budget (default 20). Example body is {"code":"<code from hosted_url>"}.`,
|
|
1325
|
+
http: "POST",
|
|
1326
|
+
path: "/agent/v1/embed/exchange",
|
|
1327
|
+
streaming: "no",
|
|
1328
|
+
pagination: false,
|
|
1329
|
+
pathParams: [],
|
|
1330
|
+
query: [],
|
|
1331
|
+
body: {
|
|
1332
|
+
required: true,
|
|
1333
|
+
fields: [
|
|
1334
|
+
{
|
|
1335
|
+
name: "code",
|
|
1336
|
+
type: "string",
|
|
1337
|
+
required: true,
|
|
1338
|
+
description: "Single-use credential from the c fragment parameter of hosted_url returned by embed token creation. Valid for 60 seconds."
|
|
1339
|
+
}
|
|
1340
|
+
]
|
|
1341
|
+
}
|
|
1342
|
+
},
|
|
1077
1343
|
{
|
|
1078
1344
|
resource: "agent.embedTokens",
|
|
1079
1345
|
method: "list",
|
|
@@ -1119,7 +1385,7 @@ Includes expired and revoked grants; returns neither token nor token_id. Sorts b
|
|
|
1119
1385
|
summary: "Create Embed Token",
|
|
1120
1386
|
description: `Issue a short-lived credential on your backend for an end user of a service agent.
|
|
1121
1387
|
|
|
1122
|
-
Requires an active service agent in your organization with an embed policy. Pins the requested version or the latest version and snapshots the policy environment, vaults and resources; metadata comes from the request. Blocked users cannot receive tokens. Keep your API key on the backend and pass only the returned token to the frontend. Every call creates a new grant; issuance is not idempotent.
|
|
1388
|
+
Requires an active service agent in your organization with an embed policy. Pins the requested version or the latest version and snapshots the policy environment, vaults and resources; metadata comes from the request. Blocked users cannot receive tokens. Keep your API key on the backend and pass only the returned token to the frontend. Every call creates a new grant; issuance is not idempotent. Set hosted to true to also receive hosted_url; redirect the user there within 60 seconds. The agent must have an identity_number. The URL fragment contains a single-use exchange credential, not the token. Omit hosted or set false for ordinary token issuance.`,
|
|
1123
1389
|
http: "POST",
|
|
1124
1390
|
path: "/agent/v1/embed_tokens",
|
|
1125
1391
|
streaming: "no",
|
|
@@ -1129,6 +1395,12 @@ Requires an active service agent in your organization with an embed policy. Pins
|
|
|
1129
1395
|
body: {
|
|
1130
1396
|
required: true,
|
|
1131
1397
|
fields: [
|
|
1398
|
+
{
|
|
1399
|
+
name: "hosted",
|
|
1400
|
+
type: "boolean",
|
|
1401
|
+
required: false,
|
|
1402
|
+
description: "Set true to also return a hosted chat URL with a single-use credential valid for 60 seconds. Defaults to false; the agent must have an identity_number."
|
|
1403
|
+
},
|
|
1132
1404
|
{
|
|
1133
1405
|
name: "agent",
|
|
1134
1406
|
type: "string",
|
|
@@ -1188,6 +1460,37 @@ Requires an active service agent in your organization with an embed policy. Pins
|
|
|
1188
1460
|
]
|
|
1189
1461
|
}
|
|
1190
1462
|
},
|
|
1463
|
+
{
|
|
1464
|
+
resource: "agent.embedTokens.anonymous",
|
|
1465
|
+
method: "create",
|
|
1466
|
+
summary: "Issue anonymous visitor token",
|
|
1467
|
+
description: `Obtain a short-lived embedding token for a visitor without an account using the agent owner's publishable key.
|
|
1468
|
+
|
|
1469
|
+
No Authorization header is required. Send the browser Origin allowed by the agent policy. Save a returned visitor_secret and reuse it for refreshes; only new visitors receive one. Unknown secrets create new visitors, and extra fields including visitor_id return 400. Issuance uses the key creator's organization membership, the key session budget and the smaller of the policy TTL maximum and 3600 seconds. IP requests are limited per minute (default 20); UTC daily session and spending caps are checked across the key's primary sessions created that day. Token issuance itself does not create a session or charge usage; subsequent sessions bill the host organization. Example body: {"publishable_key":"pk_praxis_example"}.`,
|
|
1470
|
+
http: "POST",
|
|
1471
|
+
path: "/agent/v1/embed_tokens/anonymous",
|
|
1472
|
+
streaming: "no",
|
|
1473
|
+
pagination: false,
|
|
1474
|
+
pathParams: [],
|
|
1475
|
+
query: [],
|
|
1476
|
+
body: {
|
|
1477
|
+
required: true,
|
|
1478
|
+
fields: [
|
|
1479
|
+
{
|
|
1480
|
+
name: "publishable_key",
|
|
1481
|
+
type: "string",
|
|
1482
|
+
required: true,
|
|
1483
|
+
description: "Public key created by the service agent owner; safe to include in browser code."
|
|
1484
|
+
},
|
|
1485
|
+
{
|
|
1486
|
+
name: "visitor_secret",
|
|
1487
|
+
type: "string",
|
|
1488
|
+
required: false,
|
|
1489
|
+
description: "Secret returned by a previous anonymous issuance for this key. Omit for a new visitor; an unknown secret creates a new visitor."
|
|
1490
|
+
}
|
|
1491
|
+
]
|
|
1492
|
+
}
|
|
1493
|
+
},
|
|
1191
1494
|
{
|
|
1192
1495
|
resource: "agent.embedTokens.revoke",
|
|
1193
1496
|
method: "create",
|
|
@@ -1492,6 +1795,25 @@ owning account only.`
|
|
|
1492
1795
|
type: "string",
|
|
1493
1796
|
required: false,
|
|
1494
1797
|
description: "Opaque pagination cursor: pass the next_page value of the previous response unchanged. Omit it for the first page. A cursor from a different query or a malformed one returns 400."
|
|
1798
|
+
},
|
|
1799
|
+
{
|
|
1800
|
+
name: "external_user_id",
|
|
1801
|
+
type: "string",
|
|
1802
|
+
required: false,
|
|
1803
|
+
description: "Filter by an exact end-user identifier (1–128 characters: A-Z, a-z, 0-9, underscore, dot, colon, at sign or hyphen). Keep this filter unchanged when following page."
|
|
1804
|
+
},
|
|
1805
|
+
{
|
|
1806
|
+
name: "source",
|
|
1807
|
+
type: "string",
|
|
1808
|
+
enum: [
|
|
1809
|
+
"kit",
|
|
1810
|
+
"iframe",
|
|
1811
|
+
"hosted",
|
|
1812
|
+
"api",
|
|
1813
|
+
"automation"
|
|
1814
|
+
],
|
|
1815
|
+
required: false,
|
|
1816
|
+
description: "Filter by session origin: kit, iframe, hosted, api or automation. Keep this filter unchanged when following page."
|
|
1495
1817
|
}
|
|
1496
1818
|
]
|
|
1497
1819
|
},
|
|
@@ -1499,7 +1821,7 @@ owning account only.`
|
|
|
1499
1821
|
resource: "agent.sessions",
|
|
1500
1822
|
method: "create",
|
|
1501
1823
|
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|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.`,
|
|
1824
|
+
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.`,
|
|
1503
1825
|
http: "POST",
|
|
1504
1826
|
path: "/agent/v1/sessions",
|
|
1505
1827
|
streaming: "no",
|
|
@@ -1872,7 +2194,7 @@ Praxis extension available only on /agent/v1, following Claude Agent SDK getCont
|
|
|
1872
2194
|
resource: "agent.sessions.events",
|
|
1873
2195
|
method: "list",
|
|
1874
2196
|
summary: "List session events",
|
|
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.",
|
|
2197
|
+
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 or client custom tool results (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.",
|
|
1876
2198
|
http: "GET",
|
|
1877
2199
|
path: "/agent/v1/sessions/{session_id}/events",
|
|
1878
2200
|
streaming: "no",
|
|
@@ -1943,7 +2265,7 @@ Praxis extension available only on /agent/v1, following Claude Agent SDK getCont
|
|
|
1943
2265
|
resource: "agent.sessions.events",
|
|
1944
2266
|
method: "send",
|
|
1945
2267
|
summary: "Send session events",
|
|
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.',
|
|
2268
|
+
description: 'Attach optional praxis_context={items:[{name,value}]} to user.message for untrusted page context on this turn only (maximum 32 items, 4096 UTF-8 JSON bytes). /anthropic/v1 rejects this field. 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.custom_tool_result to return a custom tool result, 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. Both faces accept user.custom_tool_result with custom_tool_use_id from agent.custom_tool_use.id or the requires_action stop_reason.event_ids. Unlike Anthropic, result content accepts only text blocks (omit it for an empty array). Omitted or null is_error means false. The server routes child calls by id; session_thread_id is rejected in this input. Unknown call ids return 400; duplicate results or calls no longer waiting return 409.',
|
|
1947
2269
|
http: "POST",
|
|
1948
2270
|
path: "/agent/v1/sessions/{session_id}/events",
|
|
1949
2271
|
streaming: "no",
|
|
@@ -11668,33 +11990,70 @@ for more details.`
|
|
|
11668
11990
|
},
|
|
11669
11991
|
{
|
|
11670
11992
|
resource: "organization.feedback",
|
|
11671
|
-
method: "
|
|
11672
|
-
summary: "
|
|
11673
|
-
description:
|
|
11674
|
-
http: "
|
|
11993
|
+
method: "list",
|
|
11994
|
+
summary: "List your organization's feedback",
|
|
11995
|
+
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.",
|
|
11996
|
+
http: "GET",
|
|
11675
11997
|
path: "/organization/v1/feedback",
|
|
11676
11998
|
streaming: "no",
|
|
11677
11999
|
pagination: false,
|
|
11678
12000
|
pathParams: [],
|
|
11679
|
-
query: [
|
|
11680
|
-
|
|
11681
|
-
|
|
11682
|
-
|
|
11683
|
-
|
|
11684
|
-
|
|
11685
|
-
|
|
11686
|
-
|
|
11687
|
-
|
|
11688
|
-
|
|
11689
|
-
|
|
11690
|
-
|
|
11691
|
-
|
|
11692
|
-
|
|
11693
|
-
|
|
11694
|
-
|
|
11695
|
-
|
|
11696
|
-
|
|
11697
|
-
|
|
12001
|
+
query: [
|
|
12002
|
+
{
|
|
12003
|
+
name: "phase",
|
|
12004
|
+
type: "string",
|
|
12005
|
+
required: false,
|
|
12006
|
+
description: "Only feedback in these phases: a comma-separated list of open, awaiting_customer, in_progress, resolved or closed, for example open,in_progress; see the phase field of a feedback for what each means."
|
|
12007
|
+
},
|
|
12008
|
+
{
|
|
12009
|
+
name: "query",
|
|
12010
|
+
type: "string",
|
|
12011
|
+
required: false,
|
|
12012
|
+
description: "Case-insensitive text matched against titles and message bodies."
|
|
12013
|
+
},
|
|
12014
|
+
{
|
|
12015
|
+
name: "limit",
|
|
12016
|
+
type: "integer",
|
|
12017
|
+
required: false,
|
|
12018
|
+
description: "Items per page, 1 to 100."
|
|
12019
|
+
},
|
|
12020
|
+
{
|
|
12021
|
+
name: "page",
|
|
12022
|
+
type: "string",
|
|
12023
|
+
required: false,
|
|
12024
|
+
description: "Opaque cursor from next_page of the previous response."
|
|
12025
|
+
}
|
|
12026
|
+
]
|
|
12027
|
+
},
|
|
12028
|
+
{
|
|
12029
|
+
resource: "organization.feedback",
|
|
12030
|
+
method: "create",
|
|
12031
|
+
summary: "Report a problem with the Praxis platform",
|
|
12032
|
+
description: `Report a problem with the Praxis platform when an API fails, documentation is unclear, or a capability is missing. AI callers in codemode should include the original error text in message, the X-Request-Id or error event ID in associated_event_id, and relevant session, agent, model, or request IDs in contexts. Continue the user's task after reporting. Each successful call stores feedback and returns its id; repeated calls create separate reports. The authenticated principal determines the reporter; any reporter supplied in the body is ignored. Machine tokens force source to codemode. Requires a valid API key, Console session, or machine token. Minimal body: {"message":"The API documentation does not explain this error."}.`,
|
|
12033
|
+
http: "POST",
|
|
12034
|
+
path: "/organization/v1/feedback",
|
|
12035
|
+
streaming: "no",
|
|
12036
|
+
pagination: false,
|
|
12037
|
+
pathParams: [],
|
|
12038
|
+
query: [],
|
|
12039
|
+
body: {
|
|
12040
|
+
required: true,
|
|
12041
|
+
fields: [
|
|
12042
|
+
{
|
|
12043
|
+
name: "message",
|
|
12044
|
+
type: "string",
|
|
12045
|
+
required: true,
|
|
12046
|
+
description: "Problem description and original error text; at most 4096 Unicode code points."
|
|
12047
|
+
},
|
|
12048
|
+
{
|
|
12049
|
+
name: "contact_email",
|
|
12050
|
+
type: "string",
|
|
12051
|
+
required: false,
|
|
12052
|
+
description: "Optional email address for follow-up about this report."
|
|
12053
|
+
},
|
|
12054
|
+
{
|
|
12055
|
+
name: "name",
|
|
12056
|
+
type: "string",
|
|
11698
12057
|
required: false,
|
|
11699
12058
|
description: "Optional display name of the person submitting feedback."
|
|
11700
12059
|
},
|
|
@@ -11710,6 +12069,18 @@ for more details.`
|
|
|
11710
12069
|
required: false,
|
|
11711
12070
|
description: "X-Request-Id from the failed response or the related error event ID."
|
|
11712
12071
|
},
|
|
12072
|
+
{
|
|
12073
|
+
name: "title",
|
|
12074
|
+
type: "string",
|
|
12075
|
+
required: false,
|
|
12076
|
+
description: "Short summary shown in the feedback list; at most 200 Unicode code points."
|
|
12077
|
+
},
|
|
12078
|
+
{
|
|
12079
|
+
name: "type",
|
|
12080
|
+
type: "string",
|
|
12081
|
+
required: false,
|
|
12082
|
+
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."
|
|
12083
|
+
},
|
|
11713
12084
|
{
|
|
11714
12085
|
name: "tags",
|
|
11715
12086
|
type: "object",
|
|
@@ -11742,6 +12113,100 @@ for more details.`
|
|
|
11742
12113
|
]
|
|
11743
12114
|
}
|
|
11744
12115
|
},
|
|
12116
|
+
{
|
|
12117
|
+
resource: "organization.feedback.counts",
|
|
12118
|
+
method: "list",
|
|
12119
|
+
summary: "Count your organization's feedback by phase",
|
|
12120
|
+
description: "How many of your organization's feedback are in each phase, for status tabs. Counts never include another organization's feedback.",
|
|
12121
|
+
http: "GET",
|
|
12122
|
+
path: "/organization/v1/feedback/counts",
|
|
12123
|
+
streaming: "no",
|
|
12124
|
+
pagination: false,
|
|
12125
|
+
pathParams: [],
|
|
12126
|
+
query: []
|
|
12127
|
+
},
|
|
12128
|
+
{
|
|
12129
|
+
resource: "organization.feedback",
|
|
12130
|
+
method: "retrieve",
|
|
12131
|
+
summary: "Get one of your organization's feedback",
|
|
12132
|
+
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.",
|
|
12133
|
+
http: "GET",
|
|
12134
|
+
path: "/organization/v1/feedback/{id}",
|
|
12135
|
+
streaming: "no",
|
|
12136
|
+
pagination: false,
|
|
12137
|
+
pathParams: [
|
|
12138
|
+
{
|
|
12139
|
+
name: "id",
|
|
12140
|
+
sdkName: "id"
|
|
12141
|
+
}
|
|
12142
|
+
],
|
|
12143
|
+
query: []
|
|
12144
|
+
},
|
|
12145
|
+
{
|
|
12146
|
+
resource: "organization.feedback.messages",
|
|
12147
|
+
method: "list",
|
|
12148
|
+
summary: "List the messages of a feedback",
|
|
12149
|
+
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.",
|
|
12150
|
+
http: "GET",
|
|
12151
|
+
path: "/organization/v1/feedback/{id}/messages",
|
|
12152
|
+
streaming: "no",
|
|
12153
|
+
pagination: false,
|
|
12154
|
+
pathParams: [
|
|
12155
|
+
{
|
|
12156
|
+
name: "id",
|
|
12157
|
+
sdkName: "id"
|
|
12158
|
+
}
|
|
12159
|
+
],
|
|
12160
|
+
query: [
|
|
12161
|
+
{
|
|
12162
|
+
name: "limit",
|
|
12163
|
+
type: "integer",
|
|
12164
|
+
required: false,
|
|
12165
|
+
description: "Items per page, 1 to 100."
|
|
12166
|
+
},
|
|
12167
|
+
{
|
|
12168
|
+
name: "page",
|
|
12169
|
+
type: "string",
|
|
12170
|
+
required: false,
|
|
12171
|
+
description: "Opaque cursor from next_page of the previous response."
|
|
12172
|
+
}
|
|
12173
|
+
]
|
|
12174
|
+
},
|
|
12175
|
+
{
|
|
12176
|
+
resource: "organization.feedback.messages",
|
|
12177
|
+
method: "create",
|
|
12178
|
+
summary: "Reply on a feedback",
|
|
12179
|
+
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.",
|
|
12180
|
+
http: "POST",
|
|
12181
|
+
path: "/organization/v1/feedback/{id}/messages",
|
|
12182
|
+
streaming: "no",
|
|
12183
|
+
pagination: false,
|
|
12184
|
+
pathParams: [
|
|
12185
|
+
{
|
|
12186
|
+
name: "id",
|
|
12187
|
+
sdkName: "id"
|
|
12188
|
+
}
|
|
12189
|
+
],
|
|
12190
|
+
query: [],
|
|
12191
|
+
body: {
|
|
12192
|
+
required: true,
|
|
12193
|
+
fields: [
|
|
12194
|
+
{
|
|
12195
|
+
name: "body",
|
|
12196
|
+
type: "string",
|
|
12197
|
+
required: true,
|
|
12198
|
+
description: "Markdown text; at most 4096 Unicode code points."
|
|
12199
|
+
},
|
|
12200
|
+
{
|
|
12201
|
+
name: "attachments",
|
|
12202
|
+
type: "array",
|
|
12203
|
+
itemType: "object",
|
|
12204
|
+
required: false,
|
|
12205
|
+
description: "Up to five attachments; decoded bytes must not exceed 10 MiB each or 20 MiB in total."
|
|
12206
|
+
}
|
|
12207
|
+
]
|
|
12208
|
+
}
|
|
12209
|
+
},
|
|
11745
12210
|
{
|
|
11746
12211
|
resource: "organization.usage",
|
|
11747
12212
|
method: "list",
|
|
@@ -14994,6 +15459,113 @@ var setRunFeedback = (options) => (options.client ?? client).post({
|
|
|
14994
15459
|
...options.headers
|
|
14995
15460
|
}
|
|
14996
15461
|
});
|
|
15462
|
+
var listEndUsers = (options) => (options.client ?? client).get({
|
|
15463
|
+
security: [{
|
|
15464
|
+
key: "BearerAuth",
|
|
15465
|
+
scheme: "bearer",
|
|
15466
|
+
type: "http"
|
|
15467
|
+
}, {
|
|
15468
|
+
key: "ApiKeyAuth",
|
|
15469
|
+
name: "X-API-Key",
|
|
15470
|
+
type: "apiKey"
|
|
15471
|
+
}],
|
|
15472
|
+
url: "/agent/v1/agents/{agent_id}/end_users",
|
|
15473
|
+
...options
|
|
15474
|
+
});
|
|
15475
|
+
var deleteEndUser = (options) => (options.client ?? client).delete({
|
|
15476
|
+
security: [{
|
|
15477
|
+
key: "BearerAuth",
|
|
15478
|
+
scheme: "bearer",
|
|
15479
|
+
type: "http"
|
|
15480
|
+
}, {
|
|
15481
|
+
key: "ApiKeyAuth",
|
|
15482
|
+
name: "X-API-Key",
|
|
15483
|
+
type: "apiKey"
|
|
15484
|
+
}],
|
|
15485
|
+
url: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}",
|
|
15486
|
+
...options
|
|
15487
|
+
});
|
|
15488
|
+
var getEndUser = (options) => (options.client ?? client).get({
|
|
15489
|
+
security: [{
|
|
15490
|
+
key: "BearerAuth",
|
|
15491
|
+
scheme: "bearer",
|
|
15492
|
+
type: "http"
|
|
15493
|
+
}, {
|
|
15494
|
+
key: "ApiKeyAuth",
|
|
15495
|
+
name: "X-API-Key",
|
|
15496
|
+
type: "apiKey"
|
|
15497
|
+
}],
|
|
15498
|
+
url: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}",
|
|
15499
|
+
...options
|
|
15500
|
+
});
|
|
15501
|
+
var getEndUserDeletion = (options) => (options.client ?? client).get({
|
|
15502
|
+
security: [{
|
|
15503
|
+
key: "BearerAuth",
|
|
15504
|
+
scheme: "bearer",
|
|
15505
|
+
type: "http"
|
|
15506
|
+
}, {
|
|
15507
|
+
key: "ApiKeyAuth",
|
|
15508
|
+
name: "X-API-Key",
|
|
15509
|
+
type: "apiKey"
|
|
15510
|
+
}],
|
|
15511
|
+
url: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/deletion",
|
|
15512
|
+
...options
|
|
15513
|
+
});
|
|
15514
|
+
var revokeEndUserTokens = (options) => (options.client ?? client).post({
|
|
15515
|
+
security: [{
|
|
15516
|
+
key: "BearerAuth",
|
|
15517
|
+
scheme: "bearer",
|
|
15518
|
+
type: "http"
|
|
15519
|
+
}, {
|
|
15520
|
+
key: "ApiKeyAuth",
|
|
15521
|
+
name: "X-API-Key",
|
|
15522
|
+
type: "apiKey"
|
|
15523
|
+
}],
|
|
15524
|
+
url: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/revoke_tokens",
|
|
15525
|
+
...options
|
|
15526
|
+
});
|
|
15527
|
+
var blockEndUser = (options) => (options.client ?? client).post({
|
|
15528
|
+
security: [{
|
|
15529
|
+
key: "BearerAuth",
|
|
15530
|
+
scheme: "bearer",
|
|
15531
|
+
type: "http"
|
|
15532
|
+
}, {
|
|
15533
|
+
key: "ApiKeyAuth",
|
|
15534
|
+
name: "X-API-Key",
|
|
15535
|
+
type: "apiKey"
|
|
15536
|
+
}],
|
|
15537
|
+
url: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/block",
|
|
15538
|
+
...options
|
|
15539
|
+
});
|
|
15540
|
+
var unblockEndUser = (options) => (options.client ?? client).post({
|
|
15541
|
+
security: [{
|
|
15542
|
+
key: "BearerAuth",
|
|
15543
|
+
scheme: "bearer",
|
|
15544
|
+
type: "http"
|
|
15545
|
+
}, {
|
|
15546
|
+
key: "ApiKeyAuth",
|
|
15547
|
+
name: "X-API-Key",
|
|
15548
|
+
type: "apiKey"
|
|
15549
|
+
}],
|
|
15550
|
+
url: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/unblock",
|
|
15551
|
+
...options
|
|
15552
|
+
});
|
|
15553
|
+
var exchangeEmbedCode = (options) => (options.client ?? client).post({
|
|
15554
|
+
url: "/agent/v1/embed/exchange",
|
|
15555
|
+
...options,
|
|
15556
|
+
headers: {
|
|
15557
|
+
"Content-Type": "application/json",
|
|
15558
|
+
...options.headers
|
|
15559
|
+
}
|
|
15560
|
+
});
|
|
15561
|
+
var createAnonymousEmbedToken = (options) => (options.client ?? client).post({
|
|
15562
|
+
url: "/agent/v1/embed_tokens/anonymous",
|
|
15563
|
+
...options,
|
|
15564
|
+
headers: {
|
|
15565
|
+
"Content-Type": "application/json",
|
|
15566
|
+
...options.headers
|
|
15567
|
+
}
|
|
15568
|
+
});
|
|
14997
15569
|
var listEmbedTokens = (options) => (options?.client ?? client).get({
|
|
14998
15570
|
security: [{
|
|
14999
15571
|
key: "BearerAuth",
|
|
@@ -15180,6 +15752,32 @@ var connectComputer = (options) => (options.client ?? client).post({
|
|
|
15180
15752
|
url: "/agent/v1/computers/{computer_id}/connect",
|
|
15181
15753
|
...options
|
|
15182
15754
|
});
|
|
15755
|
+
var renewComputerLease = (options) => (options.client ?? client).post({
|
|
15756
|
+
security: [{
|
|
15757
|
+
key: "BearerAuth",
|
|
15758
|
+
scheme: "bearer",
|
|
15759
|
+
type: "http"
|
|
15760
|
+
}, {
|
|
15761
|
+
key: "ApiKeyAuth",
|
|
15762
|
+
name: "X-API-Key",
|
|
15763
|
+
type: "apiKey"
|
|
15764
|
+
}],
|
|
15765
|
+
url: "/agent/v1/computers/{computer_id}/leases/{lease_id}/renew",
|
|
15766
|
+
...options
|
|
15767
|
+
});
|
|
15768
|
+
var releaseComputerLease = (options) => (options.client ?? client).delete({
|
|
15769
|
+
security: [{
|
|
15770
|
+
key: "BearerAuth",
|
|
15771
|
+
scheme: "bearer",
|
|
15772
|
+
type: "http"
|
|
15773
|
+
}, {
|
|
15774
|
+
key: "ApiKeyAuth",
|
|
15775
|
+
name: "X-API-Key",
|
|
15776
|
+
type: "apiKey"
|
|
15777
|
+
}],
|
|
15778
|
+
url: "/agent/v1/computers/{computer_id}/leases/{lease_id}",
|
|
15779
|
+
...options
|
|
15780
|
+
});
|
|
15183
15781
|
var listToolsets = (options) => (options?.client ?? client).get({
|
|
15184
15782
|
security: [{
|
|
15185
15783
|
key: "BearerAuth",
|
|
@@ -15305,6 +15903,15 @@ var listSessionCompactions = (options) => (options.client ?? client).get({
|
|
|
15305
15903
|
url: "/agent/v1/sessions/{session_id}/compactions",
|
|
15306
15904
|
...options
|
|
15307
15905
|
});
|
|
15906
|
+
var getEmbedAppearance = (options) => (options?.client ?? client).get({
|
|
15907
|
+
security: [{
|
|
15908
|
+
key: "BearerAuth",
|
|
15909
|
+
scheme: "bearer",
|
|
15910
|
+
type: "http"
|
|
15911
|
+
}, { name: "Praxis-Publishable-Key", type: "apiKey" }],
|
|
15912
|
+
url: "/agent/v1/embed/appearance",
|
|
15913
|
+
...options
|
|
15914
|
+
});
|
|
15308
15915
|
var createAudioSpeech = (options) => (options.client ?? client).post({
|
|
15309
15916
|
security: [{
|
|
15310
15917
|
key: "BearerAuth",
|
|
@@ -16043,6 +16650,19 @@ var countResponseInputTokens = (options) => (options.client ?? client).post({
|
|
|
16043
16650
|
...options.headers
|
|
16044
16651
|
}
|
|
16045
16652
|
});
|
|
16653
|
+
var listOrganizationFeedback = (options) => (options?.client ?? client).get({
|
|
16654
|
+
security: [{
|
|
16655
|
+
key: "BearerAuth",
|
|
16656
|
+
scheme: "bearer",
|
|
16657
|
+
type: "http"
|
|
16658
|
+
}, {
|
|
16659
|
+
key: "ApiKeyAuth",
|
|
16660
|
+
name: "X-API-Key",
|
|
16661
|
+
type: "apiKey"
|
|
16662
|
+
}],
|
|
16663
|
+
url: "/organization/v1/feedback",
|
|
16664
|
+
...options
|
|
16665
|
+
});
|
|
16046
16666
|
var createOrganizationFeedback = (options) => (options.client ?? client).post({
|
|
16047
16667
|
security: [{
|
|
16048
16668
|
key: "BearerAuth",
|
|
@@ -16060,6 +16680,62 @@ var createOrganizationFeedback = (options) => (options.client ?? client).post({
|
|
|
16060
16680
|
...options.headers
|
|
16061
16681
|
}
|
|
16062
16682
|
});
|
|
16683
|
+
var getOrganizationFeedbackCounts = (options) => (options?.client ?? client).get({
|
|
16684
|
+
security: [{
|
|
16685
|
+
key: "BearerAuth",
|
|
16686
|
+
scheme: "bearer",
|
|
16687
|
+
type: "http"
|
|
16688
|
+
}, {
|
|
16689
|
+
key: "ApiKeyAuth",
|
|
16690
|
+
name: "X-API-Key",
|
|
16691
|
+
type: "apiKey"
|
|
16692
|
+
}],
|
|
16693
|
+
url: "/organization/v1/feedback/counts",
|
|
16694
|
+
...options
|
|
16695
|
+
});
|
|
16696
|
+
var getOrganizationFeedback = (options) => (options.client ?? client).get({
|
|
16697
|
+
security: [{
|
|
16698
|
+
key: "BearerAuth",
|
|
16699
|
+
scheme: "bearer",
|
|
16700
|
+
type: "http"
|
|
16701
|
+
}, {
|
|
16702
|
+
key: "ApiKeyAuth",
|
|
16703
|
+
name: "X-API-Key",
|
|
16704
|
+
type: "apiKey"
|
|
16705
|
+
}],
|
|
16706
|
+
url: "/organization/v1/feedback/{id}",
|
|
16707
|
+
...options
|
|
16708
|
+
});
|
|
16709
|
+
var listOrganizationFeedbackMessages = (options) => (options.client ?? client).get({
|
|
16710
|
+
security: [{
|
|
16711
|
+
key: "BearerAuth",
|
|
16712
|
+
scheme: "bearer",
|
|
16713
|
+
type: "http"
|
|
16714
|
+
}, {
|
|
16715
|
+
key: "ApiKeyAuth",
|
|
16716
|
+
name: "X-API-Key",
|
|
16717
|
+
type: "apiKey"
|
|
16718
|
+
}],
|
|
16719
|
+
url: "/organization/v1/feedback/{id}/messages",
|
|
16720
|
+
...options
|
|
16721
|
+
});
|
|
16722
|
+
var createOrganizationFeedbackMessage = (options) => (options.client ?? client).post({
|
|
16723
|
+
security: [{
|
|
16724
|
+
key: "BearerAuth",
|
|
16725
|
+
scheme: "bearer",
|
|
16726
|
+
type: "http"
|
|
16727
|
+
}, {
|
|
16728
|
+
key: "ApiKeyAuth",
|
|
16729
|
+
name: "X-API-Key",
|
|
16730
|
+
type: "apiKey"
|
|
16731
|
+
}],
|
|
16732
|
+
url: "/organization/v1/feedback/{id}/messages",
|
|
16733
|
+
...options,
|
|
16734
|
+
headers: {
|
|
16735
|
+
"Content-Type": "application/json",
|
|
16736
|
+
...options.headers
|
|
16737
|
+
}
|
|
16738
|
+
});
|
|
16063
16739
|
var listOrganizationCosts = (options) => (options.client ?? client).get({
|
|
16064
16740
|
security: [{
|
|
16065
16741
|
key: "BearerAuth",
|
|
@@ -19812,6 +20488,21 @@ function createAgent(transport) {
|
|
|
19812
20488
|
agents: {
|
|
19813
20489
|
archive: bind(transport, agentsArchive),
|
|
19814
20490
|
create: bind(transport, agentsCreate),
|
|
20491
|
+
endUsers: {
|
|
20492
|
+
block: {
|
|
20493
|
+
create: bind(transport, blockEndUser)
|
|
20494
|
+
},
|
|
20495
|
+
delete: bind(transport, deleteEndUser),
|
|
20496
|
+
list: bind(transport, listEndUsers),
|
|
20497
|
+
retrieve: bind(transport, getEndUser),
|
|
20498
|
+
retrieveDeletion: bind(transport, getEndUserDeletion),
|
|
20499
|
+
revokeTokens: {
|
|
20500
|
+
create: bind(transport, revokeEndUserTokens)
|
|
20501
|
+
},
|
|
20502
|
+
unblock: {
|
|
20503
|
+
create: bind(transport, unblockEndUser)
|
|
20504
|
+
}
|
|
20505
|
+
},
|
|
19815
20506
|
list: bind(transport, agentsList),
|
|
19816
20507
|
retrieve: bind(transport, agentsRetrieve),
|
|
19817
20508
|
update: bind(transport, agentsUpdate),
|
|
@@ -19831,6 +20522,12 @@ function createAgent(transport) {
|
|
|
19831
20522
|
list: bind(transport, computersFilesList),
|
|
19832
20523
|
retrieveContent: bind(transport, computersFilesContent)
|
|
19833
20524
|
},
|
|
20525
|
+
leases: {
|
|
20526
|
+
delete: bind(transport, releaseComputerLease),
|
|
20527
|
+
renew: {
|
|
20528
|
+
create: bind(transport, renewComputerLease)
|
|
20529
|
+
}
|
|
20530
|
+
},
|
|
19834
20531
|
list: bind(transport, computersList),
|
|
19835
20532
|
retrieve: bind(transport, computersRetrieve),
|
|
19836
20533
|
update: bind(transport, computersUpdate)
|
|
@@ -19853,7 +20550,16 @@ function createAgent(transport) {
|
|
|
19853
20550
|
},
|
|
19854
20551
|
update: bind(transport, deploymentsUpdate)
|
|
19855
20552
|
},
|
|
20553
|
+
embed: {
|
|
20554
|
+
exchange: {
|
|
20555
|
+
create: bind(transport, exchangeEmbedCode)
|
|
20556
|
+
},
|
|
20557
|
+
retrieveAppearance: bind(transport, getEmbedAppearance)
|
|
20558
|
+
},
|
|
19856
20559
|
embedTokens: {
|
|
20560
|
+
anonymous: {
|
|
20561
|
+
create: bind(transport, createAnonymousEmbedToken)
|
|
20562
|
+
},
|
|
19857
20563
|
create: bind(transport, createEmbedToken),
|
|
19858
20564
|
list: bind(transport, listEmbedTokens),
|
|
19859
20565
|
revoke: {
|
|
@@ -20375,7 +21081,16 @@ function createOrganization(transport) {
|
|
|
20375
21081
|
retrieve: bind(transport, getOrganizationEvent)
|
|
20376
21082
|
},
|
|
20377
21083
|
feedback: {
|
|
20378
|
-
|
|
21084
|
+
counts: {
|
|
21085
|
+
list: bind(transport, getOrganizationFeedbackCounts)
|
|
21086
|
+
},
|
|
21087
|
+
create: bind(transport, createOrganizationFeedback),
|
|
21088
|
+
list: bind(transport, listOrganizationFeedback),
|
|
21089
|
+
messages: {
|
|
21090
|
+
create: bind(transport, createOrganizationFeedbackMessage),
|
|
21091
|
+
list: bind(transport, listOrganizationFeedbackMessages)
|
|
21092
|
+
},
|
|
21093
|
+
retrieve: bind(transport, getOrganizationFeedback)
|
|
20379
21094
|
},
|
|
20380
21095
|
usage: {
|
|
20381
21096
|
list: bind(transport, listOrganizationUsage)
|
|
@@ -22565,7 +23280,7 @@ function startProgress(ctx, write = (text) => writeOutput({ stderr: text })) {
|
|
|
22565
23280
|
}
|
|
22566
23281
|
|
|
22567
23282
|
// src/main.ts
|
|
22568
|
-
var version = "0.1.0-dev.
|
|
23283
|
+
var version = "0.1.0-dev.95813a3";
|
|
22569
23284
|
var commands = commandTree(operations);
|
|
22570
23285
|
var manual = [["login"], ["logout"], ["whoami"], ["org", "list"], ["org", "switch"], ["api"], ["skill"]];
|
|
22571
23286
|
function route(argv) {
|