@deepraxis/cli 0.1.0-dev.244cd7e → 0.1.0-dev.e4c5523
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/praxis.js +94 -3
- package/package.json +1 -1
package/dist/praxis.js
CHANGED
|
@@ -1074,6 +1074,45 @@ null to clear. Maximum 50.`
|
|
|
1074
1074
|
],
|
|
1075
1075
|
query: []
|
|
1076
1076
|
},
|
|
1077
|
+
{
|
|
1078
|
+
resource: "agent.embedTokens",
|
|
1079
|
+
method: "list",
|
|
1080
|
+
summary: "List Embed Tokens",
|
|
1081
|
+
description: `List embed token issuance records in your organization.
|
|
1082
|
+
|
|
1083
|
+
Includes expired and revoked grants; returns neither token nor token_id. Sorts by created_at, then grant id, both descending. agent_id accepts agent_ or agt_; external_user_id matches exactly. limit is 1–100 (default 20). Reuse next_page as page with the same filters and organization; a mismatch returns 400. End-user credentials return 404.`,
|
|
1084
|
+
http: "GET",
|
|
1085
|
+
path: "/agent/v1/embed_tokens",
|
|
1086
|
+
streaming: "no",
|
|
1087
|
+
pagination: false,
|
|
1088
|
+
pathParams: [],
|
|
1089
|
+
query: [
|
|
1090
|
+
{
|
|
1091
|
+
name: "agent_id",
|
|
1092
|
+
type: "string",
|
|
1093
|
+
required: false,
|
|
1094
|
+
description: "Filter by service agent identifier (agent_ or agt_ prefix)."
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
name: "external_user_id",
|
|
1098
|
+
type: "string",
|
|
1099
|
+
required: false,
|
|
1100
|
+
description: "Exact host user identifier supplied at issuance."
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
name: "limit",
|
|
1104
|
+
type: "integer",
|
|
1105
|
+
required: false,
|
|
1106
|
+
description: "Maximum records per page; defaults to 20."
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
name: "page",
|
|
1110
|
+
type: "string",
|
|
1111
|
+
required: false,
|
|
1112
|
+
description: "next_page from a previous response with the same filters."
|
|
1113
|
+
}
|
|
1114
|
+
]
|
|
1115
|
+
},
|
|
1077
1116
|
{
|
|
1078
1117
|
resource: "agent.embedTokens",
|
|
1079
1118
|
method: "create",
|
|
@@ -1149,6 +1188,25 @@ Requires an active service agent in your organization with an embed policy. Pins
|
|
|
1149
1188
|
]
|
|
1150
1189
|
}
|
|
1151
1190
|
},
|
|
1191
|
+
{
|
|
1192
|
+
resource: "agent.embedTokens.revoke",
|
|
1193
|
+
method: "create",
|
|
1194
|
+
summary: "Revoke Embed Token",
|
|
1195
|
+
description: `Revoke an embed token and close its open event streams.
|
|
1196
|
+
|
|
1197
|
+
Use an id from issuance or listing. Revokes the credential before setting revoked_at; upstream failure leaves it unset. Streams receive session.error (EMBED_TOKEN_REVOKED), then close immediately; other credentials are unaffected. Idempotent; repeats return the original revoked record without another revocation or audit. Missing or foreign grants and end-user credentials return 404.`,
|
|
1198
|
+
http: "POST",
|
|
1199
|
+
path: "/agent/v1/embed_tokens/{id}/revoke",
|
|
1200
|
+
streaming: "no",
|
|
1201
|
+
pagination: false,
|
|
1202
|
+
pathParams: [
|
|
1203
|
+
{
|
|
1204
|
+
name: "id",
|
|
1205
|
+
sdkName: "id"
|
|
1206
|
+
}
|
|
1207
|
+
],
|
|
1208
|
+
query: []
|
|
1209
|
+
},
|
|
1152
1210
|
{
|
|
1153
1211
|
resource: "agent.environments",
|
|
1154
1212
|
method: "list",
|
|
@@ -14839,6 +14897,19 @@ var createClient = (config = {}) => {
|
|
|
14839
14897
|
var client = createClient(createConfig({ baseUrl: "https://api.deepraxis.com" }));
|
|
14840
14898
|
|
|
14841
14899
|
// ../../packages/sdk/typescript/src/generated/sdk.gen.ts
|
|
14900
|
+
var listEmbedTokens = (options) => (options?.client ?? client).get({
|
|
14901
|
+
security: [{
|
|
14902
|
+
key: "BearerAuth",
|
|
14903
|
+
scheme: "bearer",
|
|
14904
|
+
type: "http"
|
|
14905
|
+
}, {
|
|
14906
|
+
key: "ApiKeyAuth",
|
|
14907
|
+
name: "X-API-Key",
|
|
14908
|
+
type: "apiKey"
|
|
14909
|
+
}],
|
|
14910
|
+
url: "/agent/v1/embed_tokens",
|
|
14911
|
+
...options
|
|
14912
|
+
});
|
|
14842
14913
|
var createEmbedToken = (options) => (options.client ?? client).post({
|
|
14843
14914
|
security: [{
|
|
14844
14915
|
key: "BearerAuth",
|
|
@@ -14856,6 +14927,19 @@ var createEmbedToken = (options) => (options.client ?? client).post({
|
|
|
14856
14927
|
...options.headers
|
|
14857
14928
|
}
|
|
14858
14929
|
});
|
|
14930
|
+
var revokeEmbedToken = (options) => (options.client ?? client).post({
|
|
14931
|
+
security: [{
|
|
14932
|
+
key: "BearerAuth",
|
|
14933
|
+
scheme: "bearer",
|
|
14934
|
+
type: "http"
|
|
14935
|
+
}, {
|
|
14936
|
+
key: "ApiKeyAuth",
|
|
14937
|
+
name: "X-API-Key",
|
|
14938
|
+
type: "apiKey"
|
|
14939
|
+
}],
|
|
14940
|
+
url: "/agent/v1/embed_tokens/{id}/revoke",
|
|
14941
|
+
...options
|
|
14942
|
+
});
|
|
14859
14943
|
var computersList = (options) => (options?.client ?? client).get({
|
|
14860
14944
|
security: [{
|
|
14861
14945
|
key: "BearerAuth",
|
|
@@ -19673,7 +19757,11 @@ function createAgent(transport) {
|
|
|
19673
19757
|
update: bind(transport, deploymentsUpdate)
|
|
19674
19758
|
},
|
|
19675
19759
|
embedTokens: {
|
|
19676
|
-
create: bind(transport, createEmbedToken)
|
|
19760
|
+
create: bind(transport, createEmbedToken),
|
|
19761
|
+
list: bind(transport, listEmbedTokens),
|
|
19762
|
+
revoke: {
|
|
19763
|
+
create: bind(transport, revokeEmbedToken)
|
|
19764
|
+
}
|
|
19677
19765
|
},
|
|
19678
19766
|
environments: {
|
|
19679
19767
|
archive: bind(transport, environmentsArchive),
|
|
@@ -21273,6 +21361,9 @@ var unavailableSecretStore = {
|
|
|
21273
21361
|
return false;
|
|
21274
21362
|
}
|
|
21275
21363
|
};
|
|
21364
|
+
function selectSecretStore(env, injected) {
|
|
21365
|
+
return injected ?? (env.PRAXIS_CREDENTIAL_STORE === "file" ? unavailableSecretStore : undefined);
|
|
21366
|
+
}
|
|
21276
21367
|
function systemSecretStore(options = {}) {
|
|
21277
21368
|
const platform = options.platform ?? process.platform;
|
|
21278
21369
|
const run = options.run ?? runSecretCommand;
|
|
@@ -22371,7 +22462,7 @@ function startProgress(ctx, write = (text) => writeOutput({ stderr: text })) {
|
|
|
22371
22462
|
}
|
|
22372
22463
|
|
|
22373
22464
|
// src/main.ts
|
|
22374
|
-
var version = "0.1.0-dev.
|
|
22465
|
+
var version = "0.1.0-dev.e4c5523";
|
|
22375
22466
|
var commands = commandTree(operations);
|
|
22376
22467
|
var manual = [["login"], ["logout"], ["whoami"], ["org", "list"], ["org", "switch"], ["api"], ["skill"]];
|
|
22377
22468
|
function route(argv) {
|
|
@@ -22515,7 +22606,7 @@ Examples:
|
|
|
22515
22606
|
return 0;
|
|
22516
22607
|
}
|
|
22517
22608
|
const path = ports.tokenPath ?? tokenPath(config.env);
|
|
22518
|
-
const store = createTokenStore(config.env, path, ports.secretStore);
|
|
22609
|
+
const store = createTokenStore(config.env, path, selectSecretStore(ports.env, ports.secretStore));
|
|
22519
22610
|
const wireFetch = async (input, init) => {
|
|
22520
22611
|
const request = new Request(input, init);
|
|
22521
22612
|
request.headers.set("User-Agent", `praxis-cli/${version}${ctx.mode === "agent" ? ` agent/${ctx.agentName ?? "unknown"}` : ""}`);
|