@bodhiapp/ts-client 0.1.37 → 0.1.39

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.
@@ -252,7 +252,7 @@ export interface paths {
252
252
  put?: never;
253
253
  /**
254
254
  * Create Access Request
255
- * @description Create an access request for an app to access user resources. Always creates a draft for user review. Unauthenticated endpoint.
255
+ * @description Create an access request for an app to access user resources. Always creates a draft for user review. Anonymous, except `exchange: true` requires the app's current token in the Authorization header.
256
256
  */
257
257
  post: operations["createAccessRequest"];
258
258
  delete?: never;
@@ -1339,6 +1339,7 @@ export interface components {
1339
1339
  mcps_info?: components["schemas"]["McpServerReviewInfo"][];
1340
1340
  /** @description Canonical Keycloak authorize endpoint the review page validates the app-supplied `auth_url` against. */
1341
1341
  auth_endpoint: string;
1342
+ previous_grant?: null | components["schemas"]["PreviousGrantInfo"];
1342
1343
  };
1343
1344
  /** @example {
1344
1345
  * "access_request_scope": "scope_access_request:550e8400-e29b-41d4-a716-446655440000",
@@ -1824,6 +1825,9 @@ export interface components {
1824
1825
  requested_role: components["schemas"]["UserScope"];
1825
1826
  /** @description Resources requested (tools, etc.) */
1826
1827
  requested: components["schemas"]["RequestedResources"];
1828
+ /** @description Upgrade the app's current token: the caller must present it in the `Authorization`
1829
+ * header; the server derives the prior request from the token, never the body. */
1830
+ exchange?: boolean;
1827
1831
  };
1828
1832
  /** @example {
1829
1833
  * "id": "550e8400-e29b-41d4-a716-446655440000",
@@ -2660,6 +2664,10 @@ export interface components {
2660
2664
  */
2661
2665
  message: string;
2662
2666
  };
2667
+ PreviousGrantInfo: {
2668
+ approved_role: components["schemas"]["UserScope"];
2669
+ approved: components["schemas"]["ApprovedResources"];
2670
+ };
2663
2671
  QueueStatusResponse: {
2664
2672
  /** @description Queue status ("idle" or "processing") */
2665
2673
  status: string;
@@ -253,7 +253,7 @@ export interface paths {
253
253
  put?: never;
254
254
  /**
255
255
  * Create Access Request
256
- * @description Create an access request for an app to access user resources. Always creates a draft for user review. Unauthenticated endpoint.
256
+ * @description Create an access request for an app to access user resources. Always creates a draft for user review. Anonymous, except `exchange: true` requires the app's current token in the Authorization header.
257
257
  */
258
258
  post: operations["createAccessRequest"];
259
259
  delete?: never;
@@ -1340,6 +1340,7 @@ export interface components {
1340
1340
  mcps_info?: components["schemas"]["McpServerReviewInfo"][];
1341
1341
  /** @description Canonical Keycloak authorize endpoint the review page validates the app-supplied `auth_url` against. */
1342
1342
  auth_endpoint: string;
1343
+ previous_grant?: null | components["schemas"]["PreviousGrantInfo"];
1343
1344
  };
1344
1345
  /** @example {
1345
1346
  * "access_request_scope": "scope_access_request:550e8400-e29b-41d4-a716-446655440000",
@@ -1825,6 +1826,9 @@ export interface components {
1825
1826
  requested_role: components["schemas"]["UserScope"];
1826
1827
  /** @description Resources requested (tools, etc.) */
1827
1828
  requested: components["schemas"]["RequestedResources"];
1829
+ /** @description Upgrade the app's current token: the caller must present it in the `Authorization`
1830
+ * header; the server derives the prior request from the token, never the body. */
1831
+ exchange?: boolean;
1828
1832
  };
1829
1833
  /** @example {
1830
1834
  * "id": "550e8400-e29b-41d4-a716-446655440000",
@@ -2661,6 +2665,10 @@ export interface components {
2661
2665
  */
2662
2666
  message: string;
2663
2667
  };
2668
+ PreviousGrantInfo: {
2669
+ approved_role: components["schemas"]["UserScope"];
2670
+ approved: components["schemas"]["ApprovedResources"];
2671
+ };
2664
2672
  QueueStatusResponse: {
2665
2673
  /** @description Queue status ("idle" or "processing") */
2666
2674
  status: string;
@@ -24,6 +24,7 @@ export type AccessRequestReviewResponse = {
24
24
  * Canonical Keycloak authorize endpoint the review page validates the app-supplied `auth_url` against.
25
25
  */
26
26
  auth_endpoint: string;
27
+ previous_grant?: null | PreviousGrantInfo;
27
28
  };
28
29
  export type AccessRequestStatusResponse = {
29
30
  id: string;
@@ -426,6 +427,11 @@ export type CreateAccessRequest = {
426
427
  * Resources requested (tools, etc.)
427
428
  */
428
429
  requested: RequestedResources;
430
+ /**
431
+ * Upgrade the app's current token: the caller must present it in the `Authorization`
432
+ * header; the server derives the prior request from the token, never the body.
433
+ */
434
+ exchange?: boolean;
429
435
  };
430
436
  export type CreateAccessRequestResponse = {
431
437
  id: string;
@@ -1312,6 +1318,10 @@ export type PingResponse = {
1312
1318
  */
1313
1319
  message: string;
1314
1320
  };
1321
+ export type PreviousGrantInfo = {
1322
+ approved_role: UserScope;
1323
+ approved: ApprovedResources;
1324
+ };
1315
1325
  export type QueueStatusResponse = {
1316
1326
  /**
1317
1327
  * Queue status ("idle" or "processing")
@@ -27,6 +27,7 @@ export type AccessRequestReviewResponse = {
27
27
  * Canonical Keycloak authorize endpoint the review page validates the app-supplied `auth_url` against.
28
28
  */
29
29
  auth_endpoint: string;
30
+ previous_grant?: null | PreviousGrantInfo;
30
31
  };
31
32
 
32
33
  export type AccessRequestStatusResponse = {
@@ -465,6 +466,11 @@ export type CreateAccessRequest = {
465
466
  * Resources requested (tools, etc.)
466
467
  */
467
468
  requested: RequestedResources;
469
+ /**
470
+ * Upgrade the app's current token: the caller must present it in the `Authorization`
471
+ * header; the server derives the prior request from the token, never the body.
472
+ */
473
+ exchange?: boolean;
468
474
  };
469
475
 
470
476
  export type CreateAccessRequestResponse = {
@@ -1435,6 +1441,11 @@ export type PingResponse = {
1435
1441
  message: string;
1436
1442
  };
1437
1443
 
1444
+ export type PreviousGrantInfo = {
1445
+ approved_role: UserScope;
1446
+ approved: ApprovedResources;
1447
+ };
1448
+
1438
1449
  export type QueueStatusResponse = {
1439
1450
  /**
1440
1451
  * Queue status ("idle" or "processing")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bodhiapp/ts-client",
3
- "version": "0.1.37",
3
+ "version": "0.1.39",
4
4
  "description": "TypeScript types for Bodhi API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",