@deepraxis/cli 0.1.1-dev.c64b603 → 0.1.1-dev.d775f1e

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.
Files changed (3) hide show
  1. package/COMMANDS.md +1 -14
  2. package/dist/praxis.js +11 -608
  3. 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
- 434 HTTP operations; 436 commands including aliases.
5
+ 421 HTTP operations; 423 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
 
@@ -53,19 +53,6 @@ Handwritten commands: `login`, `logout`, `whoami`, `org list`, `org switch <orga
53
53
  | `praxis agent deployment update <deployment_id>` | `agent.deployments.update` | POST `/agent/v1/deployments/{deployment_id}` | `--description`, `--environment-id`, `--name`, `--vault-ids` |
54
54
  | `praxis agent deployment-run get <deployment_run_id>` | `agent.deploymentRuns.retrieve` | GET `/agent/v1/deployment_runs/{deployment_run_id}` | |
55
55
  | `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` |
56
- | `praxis agent embed exchange create` | `agent.embed.exchange.create` | POST `/agent/v1/embed/exchange` | `--code` |
57
- | `praxis agent embed get-appearance` | `agent.embed.retrieveAppearance` | GET `/agent/v1/embed/appearance` | |
58
- | `praxis agent embed-token anonymous create` | `agent.embedTokens.anonymous.create` | POST `/agent/v1/embed_tokens/anonymous` | `--publishable-key`, `--visitor-secret` |
59
- | `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` |
60
- | `praxis agent embed-token list` | `agent.embedTokens.list` | GET `/agent/v1/embed_tokens` | `--agent-id`, `--external-user-id`, `--param-limit`, `--page` |
61
- | `praxis agent embed-token revoke create` | `agent.embedTokens.revoke.create` | POST `/agent/v1/embed_tokens/{id}/revoke` | `--embed-token` |
62
- | `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` |
63
- | `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` |
64
- | `praxis agent end-user get <external_user_id>` | `agent.agents.endUsers.retrieve` | GET `/agent/v1/agents/{agent_id}/end_users/{external_user_id}` | `--agent` |
65
- | `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` |
66
- | `praxis agent end-user list` | `agent.agents.endUsers.list` | GET `/agent/v1/agents/{agent_id}/end_users` | `--agent`, `--param-limit`, `--page`, `--q` |
67
- | `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` |
68
- | `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` |
69
56
  | `praxis agent environment archive <environment_id>` | `agent.environments.archive` | POST `/agent/v1/environments/{environment_id}/archive` | |
70
57
  | `praxis agent environment create` | `agent.environments.create` | POST `/agent/v1/environments` | `--name`, `--description` |
71
58
  | `praxis agent environment get <environment_id>` | `agent.environments.retrieve` | GET `/agent/v1/environments/{environment_id}` | |
package/dist/praxis.js CHANGED
@@ -113,7 +113,7 @@ var operations = [
113
113
  name: "multiagent",
114
114
  type: "object",
115
115
  required: false,
116
- description: "A coordinator topology: the session's primary thread orchestrates\nwork by spawning session threads, each running an agent drawn from the `agents`\nroster."
116
+ description: `Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.`
117
117
  },
118
118
  {
119
119
  name: "skills",
@@ -234,7 +234,7 @@ across all toolsets allowed.`
234
234
  resource: "agent.agents",
235
235
  method: "retrieve",
236
236
  summary: "Get agent",
237
- description: "Read one agent by id. The top level is the latest saved version, the editable head whose version you send back for optimistic concurrency; after a save with apply false it differs from active_version, and new sessions use active_version, which you read with version=active. With version, read a specific saved 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.",
237
+ description: "Read the agent configuration currently effective for new sessions. By default, version equals active_version and latest_version identifies the newest saved version, including an unapplied save. Use latest_version for optimistic concurrency when updating. Pass version as a positive integer to read that saved version; version=active is equivalent to omission. The response lists every native tool with its resolved configuration in one agent_toolset_20260401 entry, so tools can be sent back unchanged to agents.update. Use agents.versions.list to enumerate saved versions.",
238
238
  http: "GET",
239
239
  path: "/agent/v1/agents/{agent_id}",
240
240
  streaming: "no",
@@ -251,7 +251,7 @@ across all toolsets allowed.`
251
251
  name: "version",
252
252
  type: "number",
253
253
  required: false,
254
- description: "Agent version to read; omit for the latest saved version. An integer of at least 1 (versions are listed by agents.versions.list), or the string active for the version new sessions use."
254
+ description: "Agent version to read. Omit, or send active, for the currently effective version used by new sessions. Send an integer of at least 1 from agents.versions.list to read that saved version. The default response also includes latest_version, the newest saved version number."
255
255
  }
256
256
  ]
257
257
  },
@@ -259,7 +259,7 @@ across all toolsets allowed.`
259
259
  resource: "agent.agents",
260
260
  method: "update",
261
261
  summary: "Update agent",
262
- 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. apply defaults to true and moves active_version to the new version, or to the latest when configuration is unchanged; apply false saves without applying. version_note optionally records up to 280 characters on a newly created version; null means no note, and a note sent when the request changes nothing else returns 400 because a note is stored only with a new version. Existing sessions and tokens keep their version. 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. tools: [] removes every tool, while tools: null returns 400 (tools cannot be null; send [] to remove every tool). On update, omit skills to keep them, send an array to replace them, or send [] or null to clear them. skills attaches uploaded custom skills as [{type: \"custom\", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send \"latest\", to use the skill's newest version when a session starts. type anthropic returns 400.",
262
+ description: "Save configuration changes as a new immutable version. Send latest_version from a default retrieve or update response as the request version for optimistic concurrency; a stale value returns 409. apply defaults to true and makes the new version effective; apply false saves without changing active_version. The response contains the effective configuration, with version equal to active_version and latest_version naming the newest saved version. An unchanged configuration, including a note-only update, is a no-op returning 200 and the current effective version without creating or activating a version. version_note records up to 280 characters only when a configuration change creates a new version; null is equivalent to omission. Use agents.versions.apply to activate an existing saved version. Existing sessions and tokens keep their version. 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. tools: [] removes every tool, while tools: null returns 400 (tools cannot be null; send [] to remove every tool). On update, omit skills to keep them, send an array to replace them, or send [] or null to clear them. skills attaches uploaded custom skills as [{type: \"custom\", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send \"latest\", to use the skill's newest version when a session starts. type anthropic returns 400.",
263
263
  http: "POST",
264
264
  path: "/agent/v1/agents/{agent_id}",
265
265
  streaming: "no",
@@ -306,7 +306,7 @@ to 64 chars each) with values up to 512 chars.`
306
306
  name: "multiagent",
307
307
  type: "object",
308
308
  required: false,
309
- description: "A coordinator topology: the session's primary thread orchestrates\nwork by spawning session threads, each running an agent drawn from the `agents`\nroster."
309
+ description: `Coordinator roster. A bare string agent id is equivalent to {type: "agent", id}; omitting its version pins the referenced agent's current saved version when this roster is saved. {type: "self"} refers to this agent. Specify a concrete version to pin it explicitly.`
310
310
  },
311
311
  {
312
312
  name: "name",
@@ -340,22 +340,19 @@ toolsets allowed.`
340
340
  name: "version",
341
341
  type: "number",
342
342
  required: false,
343
- description: `The agent's current version, used to prevent concurrent overwrites.
344
- Obtain this value from a create or retrieve response. Must be at least 1 if
345
- specified. When supplied, the request fails if it does not match the server's
346
- current version; omit to apply the update unconditionally.`
343
+ description: "Newest saved version used for optimistic concurrency. Obtain latest_version from the default retrieve or update response, or version from versions.list. A stale value returns 409; omit for an unconditional update."
347
344
  },
348
345
  {
349
346
  name: "apply",
350
347
  type: "boolean",
351
348
  required: false,
352
- description: "Defaults to true: apply the newly saved version, or the latest version when configuration is unchanged. Set false to save without changing active_version. Unlike Managed Agents, saving and applying can be separate."
349
+ description: "Defaults to true: apply a newly saved configuration version. Set false to save without changing active_version. An unchanged configuration is a no-op, including note-only updates; use versions.apply to activate a saved version."
353
350
  },
354
351
  {
355
352
  name: "version_note",
356
353
  type: "string",
357
354
  required: false,
358
- description: "Optional change explanation stored as note on the new immutable version, up to 280 characters. Omission or null stores no note. A note sent when nothing else changes returns 400 (nothing to save), because a note is stored only with a new version."
355
+ description: "Optional change explanation, at most 280 characters. Recorded only when a configuration change creates a new immutable version. A note-only update is a no-op returning 200 and the current effective version. Null is equivalent to omission."
359
356
  },
360
357
  {
361
358
  name: "bindings",
@@ -857,202 +854,6 @@ Idempotent. Access tokens revoked while the customer was blocked stay revoked; s
857
854
  ],
858
855
  query: []
859
856
  },
860
- {
861
- resource: "agent.agents.endUsers",
862
- method: "list",
863
- summary: "List End Users",
864
- description: `List users who have sessions or token issuance history on a service agent.
865
-
866
- 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.`,
867
- http: "GET",
868
- path: "/agent/v1/agents/{agent_id}/end_users",
869
- streaming: "no",
870
- pagination: false,
871
- pathParams: [
872
- {
873
- name: "agent_id",
874
- sdkName: "agent_id",
875
- description: "Active service agent identifier from agent creation or listing."
876
- }
877
- ],
878
- query: [
879
- {
880
- name: "limit",
881
- type: "integer",
882
- required: false,
883
- description: "Maximum users per page; defaults to 20."
884
- },
885
- {
886
- name: "page",
887
- type: "string",
888
- required: false,
889
- description: "next_page from the previous response with the same agent, q and limit."
890
- },
891
- {
892
- name: "q",
893
- type: "string",
894
- required: false,
895
- description: "Case-sensitive literal prefix of external_user_id; omit or use an empty string for all users."
896
- }
897
- ]
898
- },
899
- {
900
- resource: "agent.agents.endUsers",
901
- method: "delete",
902
- summary: "Delete end-user data",
903
- description: `Delete a host application's end-user data from one service agent after explicit confirmation.
904
-
905
- 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.`,
906
- http: "DELETE",
907
- path: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}",
908
- streaming: "no",
909
- pagination: false,
910
- pathParams: [
911
- {
912
- name: "agent_id",
913
- sdkName: "agent_id",
914
- description: "Active service agent identifier from agent creation or listing."
915
- },
916
- {
917
- name: "external_user_id",
918
- sdkName: "external_user_id",
919
- description: "Host user identifier supplied at issuance or from end-user listing."
920
- }
921
- ],
922
- query: [
923
- {
924
- name: "confirm",
925
- type: "string",
926
- required: true,
927
- description: "Must exactly equal the external_user_id path parameter to confirm destructive deletion."
928
- }
929
- ]
930
- },
931
- {
932
- resource: "agent.agents.endUsers",
933
- method: "retrieve",
934
- summary: "Get End User",
935
- description: `Inspect one end user and their twenty most recently updated sessions.
936
-
937
- 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.`,
938
- http: "GET",
939
- path: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}",
940
- streaming: "no",
941
- pagination: false,
942
- pathParams: [
943
- {
944
- name: "agent_id",
945
- sdkName: "agent_id",
946
- description: "Active service agent identifier from agent creation or listing."
947
- },
948
- {
949
- name: "external_user_id",
950
- sdkName: "external_user_id",
951
- description: "Host user identifier supplied at issuance or from end-user listing."
952
- }
953
- ],
954
- query: []
955
- },
956
- {
957
- resource: "agent.agents.endUsers.block",
958
- method: "create",
959
- summary: "Block End User",
960
- description: `Block token issuance and session creation, then revoke existing tokens for an end user.
961
-
962
- 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.`,
963
- http: "POST",
964
- path: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/block",
965
- streaming: "no",
966
- pagination: false,
967
- pathParams: [
968
- {
969
- name: "agent_id",
970
- sdkName: "agent_id",
971
- description: "Active service agent identifier from agent creation or listing."
972
- },
973
- {
974
- name: "external_user_id",
975
- sdkName: "external_user_id",
976
- description: "Host user identifier supplied at issuance or from end-user listing."
977
- }
978
- ],
979
- query: []
980
- },
981
- {
982
- resource: "agent.agents.endUsers",
983
- method: "retrieveDeletion",
984
- summary: "Get end-user deletion",
985
- description: `Poll the latest deletion task for an end user, including after the user data has been removed.
986
-
987
- 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.`,
988
- http: "GET",
989
- path: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/deletion",
990
- streaming: "no",
991
- pagination: false,
992
- pathParams: [
993
- {
994
- name: "agent_id",
995
- sdkName: "agent_id",
996
- description: "Active service agent identifier from agent creation or listing."
997
- },
998
- {
999
- name: "external_user_id",
1000
- sdkName: "external_user_id",
1001
- description: "Host user identifier supplied at issuance or from end-user listing."
1002
- }
1003
- ],
1004
- query: []
1005
- },
1006
- {
1007
- resource: "agent.agents.endUsers.revokeTokens",
1008
- method: "create",
1009
- summary: "Revoke End User Tokens",
1010
- description: `Revoke all issued tokens for an end user and terminate their open embed streams.
1011
-
1012
- 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.`,
1013
- http: "POST",
1014
- path: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/revoke_tokens",
1015
- streaming: "no",
1016
- pagination: false,
1017
- pathParams: [
1018
- {
1019
- name: "agent_id",
1020
- sdkName: "agent_id",
1021
- description: "Active service agent identifier from agent creation or listing."
1022
- },
1023
- {
1024
- name: "external_user_id",
1025
- sdkName: "external_user_id",
1026
- description: "Host user identifier supplied at issuance or from end-user listing."
1027
- }
1028
- ],
1029
- query: []
1030
- },
1031
- {
1032
- resource: "agent.agents.endUsers.unblock",
1033
- method: "create",
1034
- summary: "Unblock End User",
1035
- description: `Allow an end user to receive new tokens and create new sessions again.
1036
-
1037
- 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.`,
1038
- http: "POST",
1039
- path: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/unblock",
1040
- streaming: "no",
1041
- pagination: false,
1042
- pathParams: [
1043
- {
1044
- name: "agent_id",
1045
- sdkName: "agent_id",
1046
- description: "Active service agent identifier from agent creation or listing."
1047
- },
1048
- {
1049
- name: "external_user_id",
1050
- sdkName: "external_user_id",
1051
- description: "Host user identifier supplied at issuance or from end-user listing."
1052
- }
1053
- ],
1054
- query: []
1055
- },
1056
857
  {
1057
858
  resource: "agent.agents.unarchive",
1058
859
  method: "create",
@@ -1075,7 +876,7 @@ Removes the user from the blocklist; previously revoked tokens stay revoked. Ide
1075
876
  resource: "agent.agents.versions",
1076
877
  method: "list",
1077
878
  summary: "List agent versions",
1078
- 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. active is true only for the item that new sessions use; active_version on each item is the agent-level value, kept for compatibility. Use agents.retrieve with version to read a single one; agent_id comes from agents.list or agents.create.",
879
+ description: "List the saved versions of one agent in ascending version number, oldest first, in pages of at most 100 (default 20). Each item is the full agent definition at that saved version, so you can compare configurations. active is true only for the item new sessions use. active_version on every item is the same agent-level currently effective version; it is not that item's version. Use agents.retrieve with version to read a single saved version; agent_id comes from agents.list or agents.create. Pass next_page as page to continue.",
1079
880
  http: "GET",
1080
881
  path: "/agent/v1/agents/{agent_id}/versions",
1081
882
  streaming: "no",
@@ -1106,7 +907,7 @@ Removes the user from the blocklist; previously revoked tokens stay revoked. Ide
1106
907
  resource: "agent.agents.versions",
1107
908
  method: "apply",
1108
909
  summary: "Apply Agent Version",
1109
- description: "Apply a version from agents.versions.list by its version number. This idempotent operation changes active_version without creating a version; existing sessions and tokens keep their version. The response is the latest saved agent with its current active_version. Missing versions return 404 Agent version not found; archived agents return 409 Agent is archived. For example, POST /agent/v1/agents/{agent_id}/versions/2/apply with no body.",
910
+ description: "Apply a saved version from agents.versions.list for new sessions and newly issued tokens, without creating a version. Existing sessions and tokens retain their version. The response contains the effective configuration with version equal to active_version and latest_version naming the newest saved version. Missing versions return 404; archived agents return 409. For example, POST /agent/v1/agents/{agent_id}/versions/2/apply with no body.",
1110
911
  http: "POST",
1111
912
  path: "/agent/v1/agents/{agent_id}/versions/{version}/apply",
1112
913
  streaming: "no",
@@ -1883,214 +1684,6 @@ null to clear. Maximum 50.`
1883
1684
  ],
1884
1685
  query: []
1885
1686
  },
1886
- {
1887
- resource: "agent.embed",
1888
- method: "retrieveAppearance",
1889
- summary: "Read chat appearance",
1890
- 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.",
1891
- http: "GET",
1892
- path: "/agent/v1/embed/appearance",
1893
- streaming: "no",
1894
- pagination: false,
1895
- pathParams: [],
1896
- query: []
1897
- },
1898
- {
1899
- resource: "agent.embed.exchange",
1900
- method: "create",
1901
- summary: "Exchange Hosted Code",
1902
- description: `Redeem a single-use hosted link credential for an end-user token.
1903
-
1904
- 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>"}.`,
1905
- http: "POST",
1906
- path: "/agent/v1/embed/exchange",
1907
- streaming: "no",
1908
- pagination: false,
1909
- pathParams: [],
1910
- query: [],
1911
- body: {
1912
- required: true,
1913
- fields: [
1914
- {
1915
- name: "code",
1916
- type: "string",
1917
- required: true,
1918
- description: "Single-use credential from the c fragment parameter of hosted_url returned by embed token creation. Valid for 60 seconds."
1919
- }
1920
- ]
1921
- }
1922
- },
1923
- {
1924
- resource: "agent.embedTokens",
1925
- method: "list",
1926
- summary: "List Embed Tokens",
1927
- description: `List embed token issuance records in your organization.
1928
-
1929
- 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.`,
1930
- http: "GET",
1931
- path: "/agent/v1/embed_tokens",
1932
- streaming: "no",
1933
- pagination: false,
1934
- pathParams: [],
1935
- query: [
1936
- {
1937
- name: "agent_id",
1938
- type: "string",
1939
- required: false,
1940
- description: "Filter by service agent identifier (agent_ or agt_ prefix)."
1941
- },
1942
- {
1943
- name: "external_user_id",
1944
- type: "string",
1945
- required: false,
1946
- description: "Exact host user identifier supplied at issuance."
1947
- },
1948
- {
1949
- name: "limit",
1950
- type: "integer",
1951
- required: false,
1952
- description: "Maximum records per page; defaults to 20."
1953
- },
1954
- {
1955
- name: "page",
1956
- type: "string",
1957
- required: false,
1958
- description: "next_page from a previous response with the same filters."
1959
- }
1960
- ]
1961
- },
1962
- {
1963
- resource: "agent.embedTokens",
1964
- method: "create",
1965
- summary: "Create Embed Token",
1966
- description: `Issue a short-lived credential on your backend for an end user of a service agent.
1967
-
1968
- 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.`,
1969
- http: "POST",
1970
- path: "/agent/v1/embed_tokens",
1971
- streaming: "no",
1972
- pagination: false,
1973
- pathParams: [],
1974
- query: [],
1975
- body: {
1976
- required: true,
1977
- fields: [
1978
- {
1979
- name: "hosted",
1980
- type: "boolean",
1981
- required: false,
1982
- 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."
1983
- },
1984
- {
1985
- name: "agent",
1986
- type: "string",
1987
- required: true,
1988
- description: "Service agent ID or identity_number from agent retrieval; it must belong to your organization and be active."
1989
- },
1990
- {
1991
- name: "version",
1992
- type: "integer",
1993
- required: false,
1994
- description: "Existing agent version to pin. Omit to pin the latest version at issuance."
1995
- },
1996
- {
1997
- name: "external_user_id",
1998
- type: "string",
1999
- required: true,
2000
- description: "Your application's stable end-user identifier, scoped to this organization and agent."
2001
- },
2002
- {
2003
- name: "ttl_seconds",
2004
- type: "integer",
2005
- required: false,
2006
- description: "Token lifetime in seconds. Defaults to the embed policy TTL and cannot exceed its maximum or 3600 seconds."
2007
- },
2008
- {
2009
- name: "budget_cents",
2010
- type: "integer",
2011
- required: false,
2012
- description: "Session budget in cents. Defaults to the embed policy session budget and cannot exceed its maximum."
2013
- },
2014
- {
2015
- name: "system_message",
2016
- type: "array",
2017
- itemType: "object",
2018
- required: false,
2019
- description: "Optional host context as text blocks, limited to 8192 UTF-8 bytes in total."
2020
- },
2021
- {
2022
- name: "agent_override",
2023
- type: "object",
2024
- required: false,
2025
- description: "Optional system prompt override, accepted only when the embed policy allows agent overrides."
2026
- },
2027
- {
2028
- name: "allowed_origins",
2029
- type: "array",
2030
- itemType: "string",
2031
- required: false,
2032
- description: "Optional subset of the policy origin entries, compared exactly. Omit to snapshot every policy origin."
2033
- },
2034
- {
2035
- name: "metadata",
2036
- type: "object",
2037
- required: false,
2038
- description: "Host metadata preserved verbatim; at most 16 keys of 1–64 characters and string values of at most 512 characters. Defaults to an empty object."
2039
- }
2040
- ]
2041
- }
2042
- },
2043
- {
2044
- resource: "agent.embedTokens.anonymous",
2045
- method: "create",
2046
- summary: "Issue anonymous visitor token",
2047
- description: `Obtain a short-lived embedding token for a visitor without an account using the agent owner's publishable key.
2048
-
2049
- 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"}.`,
2050
- http: "POST",
2051
- path: "/agent/v1/embed_tokens/anonymous",
2052
- streaming: "no",
2053
- pagination: false,
2054
- pathParams: [],
2055
- query: [],
2056
- body: {
2057
- required: true,
2058
- fields: [
2059
- {
2060
- name: "publishable_key",
2061
- type: "string",
2062
- required: true,
2063
- description: "Public key created by the service agent owner; safe to include in browser code."
2064
- },
2065
- {
2066
- name: "visitor_secret",
2067
- type: "string",
2068
- required: false,
2069
- description: "Secret returned by a previous anonymous issuance for this key. Omit for a new visitor; an unknown secret creates a new visitor."
2070
- }
2071
- ]
2072
- }
2073
- },
2074
- {
2075
- resource: "agent.embedTokens.revoke",
2076
- method: "create",
2077
- summary: "Revoke Embed Token",
2078
- description: `Revoke an embed token and close its open event streams.
2079
-
2080
- 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.`,
2081
- http: "POST",
2082
- path: "/agent/v1/embed_tokens/{id}/revoke",
2083
- streaming: "no",
2084
- pagination: false,
2085
- pathParams: [
2086
- {
2087
- name: "id",
2088
- sdkName: "id",
2089
- description: "Grant id returned by issuance or listing."
2090
- }
2091
- ],
2092
- query: []
2093
- },
2094
1687
  {
2095
1688
  resource: "agent.environments",
2096
1689
  method: "list",
@@ -18551,97 +18144,6 @@ var setRunFeedback = (options) => (options.client ?? client).post({
18551
18144
  ...options.headers
18552
18145
  }
18553
18146
  });
18554
- var listEndUsers = (options) => (options.client ?? client).get({
18555
- security: [{
18556
- key: "BearerAuth",
18557
- scheme: "bearer",
18558
- type: "http"
18559
- }, {
18560
- key: "ApiKeyAuth",
18561
- name: "X-API-Key",
18562
- type: "apiKey"
18563
- }],
18564
- url: "/agent/v1/agents/{agent_id}/end_users",
18565
- ...options
18566
- });
18567
- var deleteEndUser = (options) => (options.client ?? client).delete({
18568
- security: [{
18569
- key: "BearerAuth",
18570
- scheme: "bearer",
18571
- type: "http"
18572
- }, {
18573
- key: "ApiKeyAuth",
18574
- name: "X-API-Key",
18575
- type: "apiKey"
18576
- }],
18577
- url: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}",
18578
- ...options
18579
- });
18580
- var getEndUser = (options) => (options.client ?? client).get({
18581
- security: [{
18582
- key: "BearerAuth",
18583
- scheme: "bearer",
18584
- type: "http"
18585
- }, {
18586
- key: "ApiKeyAuth",
18587
- name: "X-API-Key",
18588
- type: "apiKey"
18589
- }],
18590
- url: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}",
18591
- ...options
18592
- });
18593
- var getEndUserDeletion = (options) => (options.client ?? client).get({
18594
- security: [{
18595
- key: "BearerAuth",
18596
- scheme: "bearer",
18597
- type: "http"
18598
- }, {
18599
- key: "ApiKeyAuth",
18600
- name: "X-API-Key",
18601
- type: "apiKey"
18602
- }],
18603
- url: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/deletion",
18604
- ...options
18605
- });
18606
- var revokeEndUserTokens = (options) => (options.client ?? client).post({
18607
- security: [{
18608
- key: "BearerAuth",
18609
- scheme: "bearer",
18610
- type: "http"
18611
- }, {
18612
- key: "ApiKeyAuth",
18613
- name: "X-API-Key",
18614
- type: "apiKey"
18615
- }],
18616
- url: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/revoke_tokens",
18617
- ...options
18618
- });
18619
- var blockEndUser = (options) => (options.client ?? client).post({
18620
- security: [{
18621
- key: "BearerAuth",
18622
- scheme: "bearer",
18623
- type: "http"
18624
- }, {
18625
- key: "ApiKeyAuth",
18626
- name: "X-API-Key",
18627
- type: "apiKey"
18628
- }],
18629
- url: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/block",
18630
- ...options
18631
- });
18632
- var unblockEndUser = (options) => (options.client ?? client).post({
18633
- security: [{
18634
- key: "BearerAuth",
18635
- scheme: "bearer",
18636
- type: "http"
18637
- }, {
18638
- key: "ApiKeyAuth",
18639
- name: "X-API-Key",
18640
- type: "apiKey"
18641
- }],
18642
- url: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/unblock",
18643
- ...options
18644
- });
18645
18147
  var listCustomers = (options) => (options.client ?? client).get({
18646
18148
  security: [{
18647
18149
  key: "BearerAuth",
@@ -18797,65 +18299,6 @@ var deleteCurrentCustomerAccessToken = (options) => (options.client ?? client).d
18797
18299
  url: "/agent/v1/agents/{agent_id}/customers/auth/access_tokens/current",
18798
18300
  ...options
18799
18301
  });
18800
- var exchangeEmbedCode = (options) => (options.client ?? client).post({
18801
- url: "/agent/v1/embed/exchange",
18802
- ...options,
18803
- headers: {
18804
- "Content-Type": "application/json",
18805
- ...options.headers
18806
- }
18807
- });
18808
- var createAnonymousEmbedToken = (options) => (options.client ?? client).post({
18809
- url: "/agent/v1/embed_tokens/anonymous",
18810
- ...options,
18811
- headers: {
18812
- "Content-Type": "application/json",
18813
- ...options.headers
18814
- }
18815
- });
18816
- var listEmbedTokens = (options) => (options?.client ?? client).get({
18817
- security: [{
18818
- key: "BearerAuth",
18819
- scheme: "bearer",
18820
- type: "http"
18821
- }, {
18822
- key: "ApiKeyAuth",
18823
- name: "X-API-Key",
18824
- type: "apiKey"
18825
- }],
18826
- url: "/agent/v1/embed_tokens",
18827
- ...options
18828
- });
18829
- var createEmbedToken = (options) => (options.client ?? client).post({
18830
- security: [{
18831
- key: "BearerAuth",
18832
- scheme: "bearer",
18833
- type: "http"
18834
- }, {
18835
- key: "ApiKeyAuth",
18836
- name: "X-API-Key",
18837
- type: "apiKey"
18838
- }],
18839
- url: "/agent/v1/embed_tokens",
18840
- ...options,
18841
- headers: {
18842
- "Content-Type": "application/json",
18843
- ...options.headers
18844
- }
18845
- });
18846
- var revokeEmbedToken = (options) => (options.client ?? client).post({
18847
- security: [{
18848
- key: "BearerAuth",
18849
- scheme: "bearer",
18850
- type: "http"
18851
- }, {
18852
- key: "ApiKeyAuth",
18853
- name: "X-API-Key",
18854
- type: "apiKey"
18855
- }],
18856
- url: "/agent/v1/embed_tokens/{id}/revoke",
18857
- ...options
18858
- });
18859
18302
  var computersList = (options) => (options?.client ?? client).get({
18860
18303
  security: [{
18861
18304
  key: "BearerAuth",
@@ -19154,15 +18597,6 @@ var listSessionCompactions = (options) => (options.client ?? client).get({
19154
18597
  url: "/agent/v1/sessions/{session_id}/compactions",
19155
18598
  ...options
19156
18599
  });
19157
- var getEmbedAppearance = (options) => (options?.client ?? client).get({
19158
- security: [{
19159
- key: "BearerAuth",
19160
- scheme: "bearer",
19161
- type: "http"
19162
- }, { name: "Praxis-Publishable-Key", type: "apiKey" }],
19163
- url: "/agent/v1/embed/appearance",
19164
- ...options
19165
- });
19166
18600
  var createAudioSpeech = (options) => (options.client ?? client).post({
19167
18601
  security: [{
19168
18602
  key: "BearerAuth",
@@ -24540,21 +23974,6 @@ function createAgent(transport) {
24540
23974
  create: bind(transport, unblockCustomer)
24541
23975
  }
24542
23976
  },
24543
- endUsers: {
24544
- block: {
24545
- create: bind(transport, blockEndUser)
24546
- },
24547
- delete: bind(transport, deleteEndUser),
24548
- list: bind(transport, listEndUsers),
24549
- retrieve: bind(transport, getEndUser),
24550
- retrieveDeletion: bind(transport, getEndUserDeletion),
24551
- revokeTokens: {
24552
- create: bind(transport, revokeEndUserTokens)
24553
- },
24554
- unblock: {
24555
- create: bind(transport, unblockEndUser)
24556
- }
24557
- },
24558
23977
  list: bind(transport, agentsList),
24559
23978
  retrieve: bind(transport, agentsRetrieve),
24560
23979
  retrieveAppearance: bind(transport, getAgentAppearance),
@@ -24607,22 +24026,6 @@ function createAgent(transport) {
24607
24026
  },
24608
24027
  update: bind(transport, deploymentsUpdate)
24609
24028
  },
24610
- embed: {
24611
- exchange: {
24612
- create: bind(transport, exchangeEmbedCode)
24613
- },
24614
- retrieveAppearance: bind(transport, getEmbedAppearance)
24615
- },
24616
- embedTokens: {
24617
- anonymous: {
24618
- create: bind(transport, createAnonymousEmbedToken)
24619
- },
24620
- create: bind(transport, createEmbedToken),
24621
- list: bind(transport, listEmbedTokens),
24622
- revoke: {
24623
- create: bind(transport, revokeEmbedToken)
24624
- }
24625
- },
24626
24029
  environments: {
24627
24030
  archive: bind(transport, environmentsArchive),
24628
24031
  create: bind(transport, environmentsCreate),
@@ -27391,7 +26794,7 @@ function startProgress(ctx, write = (text) => writeOutput({ stderr: text })) {
27391
26794
  }
27392
26795
 
27393
26796
  // src/main.ts
27394
- var version = "0.1.1-dev.c64b603";
26797
+ var version = "0.1.1-dev.d775f1e";
27395
26798
  var commands = commandTree(operations);
27396
26799
  var manual = [["login"], ["logout"], ["whoami"], ["org", "list"], ["org", "switch"], ["api"], ["skill"]];
27397
26800
  function route(argv) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepraxis/cli",
3
- "version": "0.1.1-dev.c64b603",
3
+ "version": "0.1.1-dev.d775f1e",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "praxis": "dist/praxis.js"