@deepraxis/cli 0.1.0-dev.98b03cc → 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.
Files changed (2) hide show
  1. package/dist/praxis.js +90 -2
  2. 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),
@@ -22374,7 +22462,7 @@ function startProgress(ctx, write = (text) => writeOutput({ stderr: text })) {
22374
22462
  }
22375
22463
 
22376
22464
  // src/main.ts
22377
- var version = "0.1.0-dev.98b03cc";
22465
+ var version = "0.1.0-dev.e4c5523";
22378
22466
  var commands = commandTree(operations);
22379
22467
  var manual = [["login"], ["logout"], ["whoami"], ["org", "list"], ["org", "switch"], ["api"], ["skill"]];
22380
22468
  function route(argv) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepraxis/cli",
3
- "version": "0.1.0-dev.98b03cc",
3
+ "version": "0.1.0-dev.e4c5523",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "praxis": "dist/praxis.js"