@deepraxis/cli 0.1.0-dev.c6c496f → 0.1.0-dev.d939e0f
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 +8 -2
- package/dist/praxis.js +257 -9
- 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
|
+
358 HTTP operations; 360 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
|
|
|
@@ -43,6 +43,11 @@ Handwritten commands: `login`, `logout`, `whoami`, `org list`, `org switch <orga
|
|
|
43
43
|
| `praxis agent embed-token create` | `agent.embedTokens.create` | POST `/agent/v1/embed_tokens` | `--agent`, `--param-version`, `--external-user-id`, `--ttl-seconds`, `--budget-cents`, `--allowed-origins` |
|
|
44
44
|
| `praxis agent embed-token list` | `agent.embedTokens.list` | GET `/agent/v1/embed_tokens` | `--agent-id`, `--external-user-id`, `--param-limit`, `--page` |
|
|
45
45
|
| `praxis agent embed-token revoke create` | `agent.embedTokens.revoke.create` | POST `/agent/v1/embed_tokens/{id}/revoke` | `--embed-token` |
|
|
46
|
+
| `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` |
|
|
47
|
+
| `praxis agent end-user get <external_user_id>` | `agent.agents.endUsers.retrieve` | GET `/agent/v1/agents/{agent_id}/end_users/{external_user_id}` | `--agent` |
|
|
48
|
+
| `praxis agent end-user list` | `agent.agents.endUsers.list` | GET `/agent/v1/agents/{agent_id}/end_users` | `--agent`, `--param-limit`, `--page`, `--q` |
|
|
49
|
+
| `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` |
|
|
50
|
+
| `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
51
|
| `praxis agent environment archive <environment_id>` | `agent.environments.archive` | POST `/agent/v1/environments/{environment_id}/archive` | |
|
|
47
52
|
| `praxis agent environment create` | `agent.environments.create` | POST `/agent/v1/environments` | `--name`, `--description`, `--scope` |
|
|
48
53
|
| `praxis agent environment get <environment_id>` | `agent.environments.retrieve` | GET `/agent/v1/environments/{environment_id}` | |
|
|
@@ -64,7 +69,7 @@ Handwritten commands: `login`, `logout`, `whoami`, `org list`, `org switch <orga
|
|
|
64
69
|
| `praxis agent session get <session_id>` | `agent.sessions.retrieve` | GET `/agent/v1/sessions/{session_id}` | |
|
|
65
70
|
| `praxis agent session get-compact <operation_id>` | `agent.sessions.retrieveCompact` | GET `/agent/v1/sessions/{session_id}/compact/{operation_id}` | `--session` |
|
|
66
71
|
| `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` |
|
|
72
|
+
| `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
73
|
| `praxis agent session resource create` | `agent.sessions.resources.create` | POST `/agent/v1/sessions/{session_id}/resources` | `--session`, `--type`, `--file-id`, `--mount-path` |
|
|
69
74
|
| `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
75
|
| `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,6 +310,7 @@ Handwritten commands: `login`, `logout`, `whoami`, `org list`, `org switch <orga
|
|
|
305
310
|
| `praxis organization cost list` | `organization.costs.list` | GET `/organization/v1/costs` | `--starting-at`, `--ending-at`, `--bucket-width`, `--time-zone`, `--group-by`, `--page` |
|
|
306
311
|
| `praxis organization event get <id>` | `organization.events.retrieve` | GET `/organization/v1/events/{id}` | |
|
|
307
312
|
| `praxis organization event list` | `organization.events.list` | GET `/organization/v1/events` | `--starting-at`, `--ending-at`, `--param-limit`, `--page` |
|
|
313
|
+
| `praxis organization feedback count list` | `organization.feedback.counts.list` | GET `/organization/v1/feedback/counts` | |
|
|
308
314
|
| `praxis organization feedback create` | `organization.feedback.create` | POST `/organization/v1/feedback` | `--message`, `--contact-email`, `--name`, `--url`, `--associated-event-id`, `--title`, `--type`, `--source` |
|
|
309
315
|
| `praxis organization feedback get <id>` | `organization.feedback.retrieve` | GET `/organization/v1/feedback/{id}` | |
|
|
310
316
|
| `praxis organization feedback list` | `organization.feedback.list` | GET `/organization/v1/feedback` | `--phase`, `--query`, `--param-limit`, `--page` |
|
package/dist/praxis.js
CHANGED
|
@@ -369,6 +369,136 @@ 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: "retrieve",
|
|
413
|
+
summary: "Get End User",
|
|
414
|
+
description: `Inspect one end user and their twenty most recently updated sessions.
|
|
415
|
+
|
|
416
|
+
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.`,
|
|
417
|
+
http: "GET",
|
|
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
|
+
{
|
|
434
|
+
resource: "agent.agents.endUsers.block",
|
|
435
|
+
method: "create",
|
|
436
|
+
summary: "Block End User",
|
|
437
|
+
description: `Block token issuance and session creation, then revoke existing tokens for an end user.
|
|
438
|
+
|
|
439
|
+
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.`,
|
|
440
|
+
http: "POST",
|
|
441
|
+
path: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/block",
|
|
442
|
+
streaming: "no",
|
|
443
|
+
pagination: false,
|
|
444
|
+
pathParams: [
|
|
445
|
+
{
|
|
446
|
+
name: "agent_id",
|
|
447
|
+
sdkName: "agent_id"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
name: "external_user_id",
|
|
451
|
+
sdkName: "external_user_id"
|
|
452
|
+
}
|
|
453
|
+
],
|
|
454
|
+
query: []
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
resource: "agent.agents.endUsers.revokeTokens",
|
|
458
|
+
method: "create",
|
|
459
|
+
summary: "Revoke End User Tokens",
|
|
460
|
+
description: `Revoke all issued tokens for an end user and terminate their open embed streams.
|
|
461
|
+
|
|
462
|
+
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.`,
|
|
463
|
+
http: "POST",
|
|
464
|
+
path: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/revoke_tokens",
|
|
465
|
+
streaming: "no",
|
|
466
|
+
pagination: false,
|
|
467
|
+
pathParams: [
|
|
468
|
+
{
|
|
469
|
+
name: "agent_id",
|
|
470
|
+
sdkName: "agent_id"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
name: "external_user_id",
|
|
474
|
+
sdkName: "external_user_id"
|
|
475
|
+
}
|
|
476
|
+
],
|
|
477
|
+
query: []
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
resource: "agent.agents.endUsers.unblock",
|
|
481
|
+
method: "create",
|
|
482
|
+
summary: "Unblock End User",
|
|
483
|
+
description: `Allow an end user to receive new tokens and create new sessions again.
|
|
484
|
+
|
|
485
|
+
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.`,
|
|
486
|
+
http: "POST",
|
|
487
|
+
path: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/unblock",
|
|
488
|
+
streaming: "no",
|
|
489
|
+
pagination: false,
|
|
490
|
+
pathParams: [
|
|
491
|
+
{
|
|
492
|
+
name: "agent_id",
|
|
493
|
+
sdkName: "agent_id"
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
name: "external_user_id",
|
|
497
|
+
sdkName: "external_user_id"
|
|
498
|
+
}
|
|
499
|
+
],
|
|
500
|
+
query: []
|
|
501
|
+
},
|
|
372
502
|
{
|
|
373
503
|
resource: "agent.agents.versions",
|
|
374
504
|
method: "list",
|
|
@@ -1492,6 +1622,25 @@ owning account only.`
|
|
|
1492
1622
|
type: "string",
|
|
1493
1623
|
required: false,
|
|
1494
1624
|
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."
|
|
1625
|
+
},
|
|
1626
|
+
{
|
|
1627
|
+
name: "external_user_id",
|
|
1628
|
+
type: "string",
|
|
1629
|
+
required: false,
|
|
1630
|
+
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."
|
|
1631
|
+
},
|
|
1632
|
+
{
|
|
1633
|
+
name: "source",
|
|
1634
|
+
type: "string",
|
|
1635
|
+
enum: [
|
|
1636
|
+
"kit",
|
|
1637
|
+
"iframe",
|
|
1638
|
+
"hosted",
|
|
1639
|
+
"api",
|
|
1640
|
+
"automation"
|
|
1641
|
+
],
|
|
1642
|
+
required: false,
|
|
1643
|
+
description: "Filter by session origin: kit, iframe, hosted, api or automation. Keep this filter unchanged when following page."
|
|
1495
1644
|
}
|
|
1496
1645
|
]
|
|
1497
1646
|
},
|
|
@@ -11680,15 +11829,8 @@ for more details.`
|
|
|
11680
11829
|
{
|
|
11681
11830
|
name: "phase",
|
|
11682
11831
|
type: "string",
|
|
11683
|
-
enum: [
|
|
11684
|
-
"open",
|
|
11685
|
-
"awaiting_customer",
|
|
11686
|
-
"in_progress",
|
|
11687
|
-
"resolved",
|
|
11688
|
-
"closed"
|
|
11689
|
-
],
|
|
11690
11832
|
required: false,
|
|
11691
|
-
description: "Only feedback in
|
|
11833
|
+
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."
|
|
11692
11834
|
},
|
|
11693
11835
|
{
|
|
11694
11836
|
name: "query",
|
|
@@ -11798,6 +11940,18 @@ for more details.`
|
|
|
11798
11940
|
]
|
|
11799
11941
|
}
|
|
11800
11942
|
},
|
|
11943
|
+
{
|
|
11944
|
+
resource: "organization.feedback.counts",
|
|
11945
|
+
method: "list",
|
|
11946
|
+
summary: "Count your organization's feedback by phase",
|
|
11947
|
+
description: "How many of your organization's feedback are in each phase, for status tabs. Counts never include another organization's feedback.",
|
|
11948
|
+
http: "GET",
|
|
11949
|
+
path: "/organization/v1/feedback/counts",
|
|
11950
|
+
streaming: "no",
|
|
11951
|
+
pagination: false,
|
|
11952
|
+
pathParams: [],
|
|
11953
|
+
query: []
|
|
11954
|
+
},
|
|
11801
11955
|
{
|
|
11802
11956
|
resource: "organization.feedback",
|
|
11803
11957
|
method: "retrieve",
|
|
@@ -15132,6 +15286,71 @@ var setRunFeedback = (options) => (options.client ?? client).post({
|
|
|
15132
15286
|
...options.headers
|
|
15133
15287
|
}
|
|
15134
15288
|
});
|
|
15289
|
+
var listEndUsers = (options) => (options.client ?? client).get({
|
|
15290
|
+
security: [{
|
|
15291
|
+
key: "BearerAuth",
|
|
15292
|
+
scheme: "bearer",
|
|
15293
|
+
type: "http"
|
|
15294
|
+
}, {
|
|
15295
|
+
key: "ApiKeyAuth",
|
|
15296
|
+
name: "X-API-Key",
|
|
15297
|
+
type: "apiKey"
|
|
15298
|
+
}],
|
|
15299
|
+
url: "/agent/v1/agents/{agent_id}/end_users",
|
|
15300
|
+
...options
|
|
15301
|
+
});
|
|
15302
|
+
var getEndUser = (options) => (options.client ?? client).get({
|
|
15303
|
+
security: [{
|
|
15304
|
+
key: "BearerAuth",
|
|
15305
|
+
scheme: "bearer",
|
|
15306
|
+
type: "http"
|
|
15307
|
+
}, {
|
|
15308
|
+
key: "ApiKeyAuth",
|
|
15309
|
+
name: "X-API-Key",
|
|
15310
|
+
type: "apiKey"
|
|
15311
|
+
}],
|
|
15312
|
+
url: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}",
|
|
15313
|
+
...options
|
|
15314
|
+
});
|
|
15315
|
+
var revokeEndUserTokens = (options) => (options.client ?? client).post({
|
|
15316
|
+
security: [{
|
|
15317
|
+
key: "BearerAuth",
|
|
15318
|
+
scheme: "bearer",
|
|
15319
|
+
type: "http"
|
|
15320
|
+
}, {
|
|
15321
|
+
key: "ApiKeyAuth",
|
|
15322
|
+
name: "X-API-Key",
|
|
15323
|
+
type: "apiKey"
|
|
15324
|
+
}],
|
|
15325
|
+
url: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/revoke_tokens",
|
|
15326
|
+
...options
|
|
15327
|
+
});
|
|
15328
|
+
var blockEndUser = (options) => (options.client ?? client).post({
|
|
15329
|
+
security: [{
|
|
15330
|
+
key: "BearerAuth",
|
|
15331
|
+
scheme: "bearer",
|
|
15332
|
+
type: "http"
|
|
15333
|
+
}, {
|
|
15334
|
+
key: "ApiKeyAuth",
|
|
15335
|
+
name: "X-API-Key",
|
|
15336
|
+
type: "apiKey"
|
|
15337
|
+
}],
|
|
15338
|
+
url: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/block",
|
|
15339
|
+
...options
|
|
15340
|
+
});
|
|
15341
|
+
var unblockEndUser = (options) => (options.client ?? client).post({
|
|
15342
|
+
security: [{
|
|
15343
|
+
key: "BearerAuth",
|
|
15344
|
+
scheme: "bearer",
|
|
15345
|
+
type: "http"
|
|
15346
|
+
}, {
|
|
15347
|
+
key: "ApiKeyAuth",
|
|
15348
|
+
name: "X-API-Key",
|
|
15349
|
+
type: "apiKey"
|
|
15350
|
+
}],
|
|
15351
|
+
url: "/agent/v1/agents/{agent_id}/end_users/{external_user_id}/unblock",
|
|
15352
|
+
...options
|
|
15353
|
+
});
|
|
15135
15354
|
var listEmbedTokens = (options) => (options?.client ?? client).get({
|
|
15136
15355
|
security: [{
|
|
15137
15356
|
key: "BearerAuth",
|
|
@@ -16211,6 +16430,19 @@ var createOrganizationFeedback = (options) => (options.client ?? client).post({
|
|
|
16211
16430
|
...options.headers
|
|
16212
16431
|
}
|
|
16213
16432
|
});
|
|
16433
|
+
var getOrganizationFeedbackCounts = (options) => (options?.client ?? client).get({
|
|
16434
|
+
security: [{
|
|
16435
|
+
key: "BearerAuth",
|
|
16436
|
+
scheme: "bearer",
|
|
16437
|
+
type: "http"
|
|
16438
|
+
}, {
|
|
16439
|
+
key: "ApiKeyAuth",
|
|
16440
|
+
name: "X-API-Key",
|
|
16441
|
+
type: "apiKey"
|
|
16442
|
+
}],
|
|
16443
|
+
url: "/organization/v1/feedback/counts",
|
|
16444
|
+
...options
|
|
16445
|
+
});
|
|
16214
16446
|
var getOrganizationFeedback = (options) => (options.client ?? client).get({
|
|
16215
16447
|
security: [{
|
|
16216
16448
|
key: "BearerAuth",
|
|
@@ -20006,6 +20238,19 @@ function createAgent(transport) {
|
|
|
20006
20238
|
agents: {
|
|
20007
20239
|
archive: bind(transport, agentsArchive),
|
|
20008
20240
|
create: bind(transport, agentsCreate),
|
|
20241
|
+
endUsers: {
|
|
20242
|
+
block: {
|
|
20243
|
+
create: bind(transport, blockEndUser)
|
|
20244
|
+
},
|
|
20245
|
+
list: bind(transport, listEndUsers),
|
|
20246
|
+
retrieve: bind(transport, getEndUser),
|
|
20247
|
+
revokeTokens: {
|
|
20248
|
+
create: bind(transport, revokeEndUserTokens)
|
|
20249
|
+
},
|
|
20250
|
+
unblock: {
|
|
20251
|
+
create: bind(transport, unblockEndUser)
|
|
20252
|
+
}
|
|
20253
|
+
},
|
|
20009
20254
|
list: bind(transport, agentsList),
|
|
20010
20255
|
retrieve: bind(transport, agentsRetrieve),
|
|
20011
20256
|
update: bind(transport, agentsUpdate),
|
|
@@ -20569,6 +20814,9 @@ function createOrganization(transport) {
|
|
|
20569
20814
|
retrieve: bind(transport, getOrganizationEvent)
|
|
20570
20815
|
},
|
|
20571
20816
|
feedback: {
|
|
20817
|
+
counts: {
|
|
20818
|
+
list: bind(transport, getOrganizationFeedbackCounts)
|
|
20819
|
+
},
|
|
20572
20820
|
create: bind(transport, createOrganizationFeedback),
|
|
20573
20821
|
list: bind(transport, listOrganizationFeedback),
|
|
20574
20822
|
messages: {
|
|
@@ -22765,7 +23013,7 @@ function startProgress(ctx, write = (text) => writeOutput({ stderr: text })) {
|
|
|
22765
23013
|
}
|
|
22766
23014
|
|
|
22767
23015
|
// src/main.ts
|
|
22768
|
-
var version = "0.1.0-dev.
|
|
23016
|
+
var version = "0.1.0-dev.d939e0f";
|
|
22769
23017
|
var commands = commandTree(operations);
|
|
22770
23018
|
var manual = [["login"], ["logout"], ["whoami"], ["org", "list"], ["org", "switch"], ["api"], ["skill"]];
|
|
22771
23019
|
function route(argv) {
|